gondi 0.43.0 → 0.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -17
- package/dist/index.mjs +56 -51
- package/dist/index.mjs.map +3 -3
- package/dist/src/blockchain.d.ts +2 -0
- package/dist/src/clients/contracts/MslV6.d.ts +7 -0
- package/dist/src/generated/graphql/index.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -1
package/dist/src/blockchain.d.ts
CHANGED
|
@@ -58,6 +58,8 @@ export declare const zeroAddress: Address;
|
|
|
58
58
|
export declare const zeroHash: Hash;
|
|
59
59
|
export declare const zeroHex: HexString;
|
|
60
60
|
export declare const REORG_SAFETY_BUFFER: bigint;
|
|
61
|
+
/** How long a borrower's signed loan execution data stays valid once it is sent on-chain. */
|
|
62
|
+
export declare const BORROWER_SIGNATURE_LIFETIME: bigint;
|
|
61
63
|
/** Native ETH marker on Ethereum mainnet: the zero address. */
|
|
62
64
|
export declare const __ETH_ADDRESS: `0x${string}`;
|
|
63
65
|
/** Synthetic sentinel the Gondi API uses for native HYPE on HyperEVM. */
|
|
@@ -9047,6 +9047,13 @@ export declare class MslV6 extends BaseContract<typeof multiSourceLoanAbiV6 | ty
|
|
|
9047
9047
|
cancelAllRenegotiations(_: {
|
|
9048
9048
|
minId: bigint;
|
|
9049
9049
|
}): Promise<void>;
|
|
9050
|
+
/**
|
|
9051
|
+
* Maps SDK emit arguments to the contract's `LoanExecutionData`.
|
|
9052
|
+
*
|
|
9053
|
+
* @remarks
|
|
9054
|
+
* Without an `expirationTime` the execution data expires `lifetime` seconds from now: a day for
|
|
9055
|
+
* a loan the borrower sends, `BORROWER_SIGNATURE_LIFETIME` when the borrower signs it.
|
|
9056
|
+
*/
|
|
9050
9057
|
private mapEmitLoanToMslEmitLoanArgs;
|
|
9051
9058
|
emitLoan(emitArgs: EmitLoanArgs): Promise<{
|
|
9052
9059
|
txHash: `0x${string}`;
|
|
@@ -315,6 +315,8 @@ export type BnplOrderInput = {
|
|
|
315
315
|
amounts: Array<Scalars['BigInt']>;
|
|
316
316
|
contractAddress: Scalars['Address'];
|
|
317
317
|
creditPurchaseExecution?: InputMaybe<CreditPurchaseExecutionInput>;
|
|
318
|
+
/** When the borrower's signed loan execution data expires, at most the server's configured lifetime ahead (five minutes by default). Required unless creditPurchaseExecution sets the deadline. */
|
|
319
|
+
emitExpirationTime?: InputMaybe<Scalars['BigInt']>;
|
|
318
320
|
emitSignature?: InputMaybe<Scalars['Signature']>;
|
|
319
321
|
extraSeaportData?: InputMaybe<Scalars['Hex']>;
|
|
320
322
|
loanDuration: Scalars['BigInt'];
|