gondi 0.51.0 → 0.53.0
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/dist/index.mjs +308 -60
- package/dist/index.mjs.map +3 -3
- package/dist/src/clients/contracts/OldERC721Wrapper.d.ts +2 -0
- package/dist/src/clients/contracts/PurchaseBundlerV2.d.ts +16 -0
- package/dist/src/generated/graphql/index.d.ts +231 -21
- package/dist/src/gondi.d.ts +26 -9
- package/dist/src/utils/blockchain.d.ts +7 -2
- package/dist/src/utils/creditPurchase.d.ts +0 -16
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -18,4 +18,6 @@ export declare class OldERC721Wrapper extends BaseContract<typeof oldErc721Wrapp
|
|
|
18
18
|
txHash: `0x${string}`;
|
|
19
19
|
waitMined: () => Promise<import("viem").TransactionReceipt>;
|
|
20
20
|
}>;
|
|
21
|
+
/** The wrapper's public shape of {@link minedTransaction}: its wait is named `waitMined`. */
|
|
22
|
+
private _sentTransaction;
|
|
21
23
|
}
|
|
@@ -51,6 +51,22 @@ export declare class PurchaseBundlerV2 extends BaseContract<typeof purchaseBundl
|
|
|
51
51
|
}];
|
|
52
52
|
};
|
|
53
53
|
static ETH_SENTINEL: string;
|
|
54
|
+
/** Decodes the `executionInfo` callback carried by an execution or a seller repayment. */
|
|
55
|
+
static decodePurchaseCallback(data: Hex): {
|
|
56
|
+
reservoirExecutionInfo: {
|
|
57
|
+
module: `0x${string}`;
|
|
58
|
+
data: `0x${string}`;
|
|
59
|
+
value: bigint;
|
|
60
|
+
};
|
|
61
|
+
contractMustBeOwner: boolean;
|
|
62
|
+
purchaseCurrency: `0x${string}`;
|
|
63
|
+
amount: bigint;
|
|
64
|
+
swapData: `0x${string}`;
|
|
65
|
+
swapValue: bigint;
|
|
66
|
+
maxSlippage: bigint;
|
|
67
|
+
};
|
|
68
|
+
/** The callback's purchase currency, with every native spelling (including the ETH sentinel) as `zeroAddress`. */
|
|
69
|
+
static callbackPurchaseCurrency(callback: ReturnType<typeof PurchaseBundlerV2.decodePurchaseCallback>): Address;
|
|
54
70
|
buy({ emitCalldata, value }: {
|
|
55
71
|
emitCalldata: Hex;
|
|
56
72
|
value: bigint;
|