thirdweb 5.64.4-nightly-c2a90542d7f870c799c297c59cd2b468816f7939-20241031000332 → 5.64.4
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/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.js +31 -0
- package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.js.map +1 -0
- package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.js +33 -0
- package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.js.map +1 -0
- package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.js +149 -0
- package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.js.map +1 -0
- package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.js +193 -0
- package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.js.map +1 -0
- package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.js +173 -0
- package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.js.map +1 -0
- package/dist/cjs/extensions/erc1155/drops/write/claimTo.js +5 -2
- package/dist/cjs/extensions/erc1155/drops/write/claimTo.js.map +1 -1
- package/dist/cjs/extensions/erc1155/drops/write/setClaimConditions.js +4 -1
- package/dist/cjs/extensions/erc1155/drops/write/setClaimConditions.js.map +1 -1
- package/dist/cjs/extensions/erc20/drops/write/claimTo.js +1 -0
- package/dist/cjs/extensions/erc20/drops/write/claimTo.js.map +1 -1
- package/dist/cjs/extensions/erc20/drops/write/setClaimConditions.js +1 -0
- package/dist/cjs/extensions/erc20/drops/write/setClaimConditions.js.map +1 -1
- package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.js +27 -0
- package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.js +33 -0
- package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.js +105 -0
- package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/write/claim.js +184 -0
- package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/write/claim.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.js +164 -0
- package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.js.map +1 -0
- package/dist/cjs/extensions/erc721/drops/write/claimTo.js +6 -3
- package/dist/cjs/extensions/erc721/drops/write/claimTo.js.map +1 -1
- package/dist/cjs/extensions/erc721/drops/write/setClaimConditions.js +4 -1
- package/dist/cjs/extensions/erc721/drops/write/setClaimConditions.js.map +1 -1
- package/dist/cjs/utils/extensions/drops/get-claim-params.js +20 -0
- package/dist/cjs/utils/extensions/drops/get-claim-params.js.map +1 -1
- package/dist/cjs/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.js +39 -12
- package/dist/cjs/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.js +28 -0
- package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.js.map +1 -0
- package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.js +30 -0
- package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.js.map +1 -0
- package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.js +141 -0
- package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.js.map +1 -0
- package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.js +186 -0
- package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.js.map +1 -0
- package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.js +166 -0
- package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.js.map +1 -0
- package/dist/esm/extensions/erc1155/drops/write/claimTo.js +5 -2
- package/dist/esm/extensions/erc1155/drops/write/claimTo.js.map +1 -1
- package/dist/esm/extensions/erc1155/drops/write/setClaimConditions.js +4 -1
- package/dist/esm/extensions/erc1155/drops/write/setClaimConditions.js.map +1 -1
- package/dist/esm/extensions/erc20/drops/write/claimTo.js +1 -0
- package/dist/esm/extensions/erc20/drops/write/claimTo.js.map +1 -1
- package/dist/esm/extensions/erc20/drops/write/setClaimConditions.js +1 -0
- package/dist/esm/extensions/erc20/drops/write/setClaimConditions.js.map +1 -1
- package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.js +24 -0
- package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.js +30 -0
- package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.js +99 -0
- package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/write/claim.js +177 -0
- package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/write/claim.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.js +157 -0
- package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.js.map +1 -0
- package/dist/esm/extensions/erc721/drops/write/claimTo.js +6 -3
- package/dist/esm/extensions/erc721/drops/write/claimTo.js.map +1 -1
- package/dist/esm/extensions/erc721/drops/write/setClaimConditions.js +4 -1
- package/dist/esm/extensions/erc721/drops/write/setClaimConditions.js.map +1 -1
- package/dist/esm/utils/extensions/drops/get-claim-params.js +20 -0
- package/dist/esm/utils/extensions/drops/get-claim-params.js.map +1 -1
- package/dist/esm/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.js +39 -12
- package/dist/esm/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.d.ts +72 -0
- package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.d.ts.map +1 -0
- package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.d.ts +64 -0
- package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.d.ts.map +1 -0
- package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.d.ts +101 -0
- package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.d.ts.map +1 -0
- package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.d.ts +139 -0
- package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.d.ts.map +1 -0
- package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.d.ts +127 -0
- package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.d.ts.map +1 -0
- package/dist/types/extensions/erc1155/drops/write/claimTo.d.ts +1 -0
- package/dist/types/extensions/erc1155/drops/write/claimTo.d.ts.map +1 -1
- package/dist/types/extensions/erc1155/drops/write/setClaimConditions.d.ts +1 -0
- package/dist/types/extensions/erc1155/drops/write/setClaimConditions.d.ts.map +1 -1
- package/dist/types/extensions/erc20/drops/write/claimTo.d.ts +1 -0
- package/dist/types/extensions/erc20/drops/write/claimTo.d.ts.map +1 -1
- package/dist/types/extensions/erc20/drops/write/setClaimConditions.d.ts +1 -0
- package/dist/types/extensions/erc20/drops/write/setClaimConditions.d.ts.map +1 -1
- package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.d.ts +54 -0
- package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.d.ts +64 -0
- package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.d.ts +62 -0
- package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/write/claim.d.ts +132 -0
- package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/write/claim.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.d.ts +120 -0
- package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.d.ts.map +1 -0
- package/dist/types/extensions/erc721/drops/write/claimTo.d.ts +1 -0
- package/dist/types/extensions/erc721/drops/write/claimTo.d.ts.map +1 -1
- package/dist/types/extensions/erc721/drops/write/setClaimConditions.d.ts +1 -0
- package/dist/types/extensions/erc721/drops/write/setClaimConditions.d.ts.map +1 -1
- package/dist/types/utils/extensions/drops/get-claim-params.d.ts +1 -0
- package/dist/types/utils/extensions/drops/get-claim-params.d.ts.map +1 -1
- package/dist/types/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.d.ts +1 -0
- package/dist/types/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts +43 -0
- package/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts +53 -0
- package/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts +160 -0
- package/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts +229 -0
- package/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts +213 -0
- package/src/extensions/erc1155/customDrop1155.test.ts +181 -0
- package/src/extensions/erc1155/drops/write/claimTo.ts +6 -2
- package/src/extensions/erc1155/drops/write/setClaimConditions.ts +5 -1
- package/src/extensions/erc20/customDrop20.test.ts +80 -0
- package/src/extensions/erc20/drops/write/claimTo.ts +2 -0
- package/src/extensions/erc20/drops/write/setClaimConditions.ts +2 -0
- package/src/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.ts +25 -0
- package/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts +53 -0
- package/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts +105 -0
- package/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts +219 -0
- package/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts +203 -0
- package/src/extensions/erc721/customDrop721.test.ts +115 -0
- package/src/extensions/erc721/drops/write/claimTo.ts +7 -3
- package/src/extensions/erc721/drops/write/setClaimConditions.ts +5 -1
- package/src/utils/extensions/drops/get-claim-params.ts +29 -2
- package/src/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.ts +46 -16
- package/src/version.ts +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"claim.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAM7C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC;IACtC,QAAQ,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;IAC7E,QAAQ,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;IAC7E,QAAQ,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;IAC7E,aAAa,EAAE,2BAA2B,CAAC;QACzC,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,eAAe,CAAC;KACvB,CAAC,CAAC;IACH,cAAc,EAAE,2BAA2B,CAAC;QAC1C,IAAI,EAAE,OAAO,CAAC;QACd,IAAI,EAAE,gBAAgB,CAAC;QACvB,UAAU,EAAE;YACV;gBAAE,IAAI,EAAE,WAAW,CAAC;gBAAC,IAAI,EAAE,OAAO,CAAA;aAAE;YACpC;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,wBAAwB,CAAA;aAAE;YACnD;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,eAAe,CAAA;aAAE;YAC1C;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,UAAU,CAAA;aAAE;SACtC,CAAC;KACH,CAAC,CAAC;IACH,IAAI,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpE,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,cAAwB,CAAC;AA+CjD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAK5D;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,iBASrD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,GAIJ,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CAC3E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,KAAK,CACnB,OAAO,EAAE,sBAAsB,CAC3B,WAAW,GACX;IACE,WAAW,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;CACzC,CACJ,8MA+BF"}
|
package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.d.ts
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
2
|
+
import type { BaseTransactionOptions, WithOverrides } from "../../../../../transaction/types.js";
|
3
|
+
/**
|
4
|
+
* Represents the parameters for the "setClaimConditions" function.
|
5
|
+
*/
|
6
|
+
export type SetClaimConditionsParams = WithOverrides<{
|
7
|
+
phase: AbiParameterToPrimitiveType<{
|
8
|
+
type: "tuple";
|
9
|
+
name: "phase";
|
10
|
+
components: [
|
11
|
+
{
|
12
|
+
type: "uint256";
|
13
|
+
name: "startTimestamp";
|
14
|
+
},
|
15
|
+
{
|
16
|
+
type: "uint256";
|
17
|
+
name: "maxClaimableSupply";
|
18
|
+
},
|
19
|
+
{
|
20
|
+
type: "uint256";
|
21
|
+
name: "supplyClaimed";
|
22
|
+
},
|
23
|
+
{
|
24
|
+
type: "uint256";
|
25
|
+
name: "quantityLimitPerWallet";
|
26
|
+
},
|
27
|
+
{
|
28
|
+
type: "bytes32";
|
29
|
+
name: "merkleRoot";
|
30
|
+
},
|
31
|
+
{
|
32
|
+
type: "uint256";
|
33
|
+
name: "pricePerToken";
|
34
|
+
},
|
35
|
+
{
|
36
|
+
type: "address";
|
37
|
+
name: "currency";
|
38
|
+
},
|
39
|
+
{
|
40
|
+
type: "string";
|
41
|
+
name: "metadata";
|
42
|
+
}
|
43
|
+
];
|
44
|
+
}>;
|
45
|
+
resetClaimEligibility: AbiParameterToPrimitiveType<{
|
46
|
+
type: "bool";
|
47
|
+
name: "resetClaimEligibility";
|
48
|
+
}>;
|
49
|
+
}>;
|
50
|
+
export declare const FN_SELECTOR: "0x426cfaf3";
|
51
|
+
/**
|
52
|
+
* Checks if the `setClaimConditions` method is supported by the given contract.
|
53
|
+
* @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
|
54
|
+
* @returns A boolean indicating if the `setClaimConditions` method is supported.
|
55
|
+
* @extension ERC721
|
56
|
+
* @example
|
57
|
+
* ```ts
|
58
|
+
* import { isSetClaimConditionsSupported } from "thirdweb/extensions/erc721";
|
59
|
+
*
|
60
|
+
* const supported = isSetClaimConditionsSupported(["0x..."]);
|
61
|
+
* ```
|
62
|
+
*/
|
63
|
+
export declare function isSetClaimConditionsSupported(availableSelectors: string[]): boolean;
|
64
|
+
/**
|
65
|
+
* Encodes the parameters for the "setClaimConditions" function.
|
66
|
+
* @param options - The options for the setClaimConditions function.
|
67
|
+
* @returns The encoded ABI parameters.
|
68
|
+
* @extension ERC721
|
69
|
+
* @example
|
70
|
+
* ```ts
|
71
|
+
* import { encodeSetClaimConditionsParams } from "thirdweb/extensions/erc721";
|
72
|
+
* const result = encodeSetClaimConditionsParams({
|
73
|
+
* phase: ...,
|
74
|
+
* resetClaimEligibility: ...,
|
75
|
+
* });
|
76
|
+
* ```
|
77
|
+
*/
|
78
|
+
export declare function encodeSetClaimConditionsParams(options: SetClaimConditionsParams): `0x${string}`;
|
79
|
+
/**
|
80
|
+
* Encodes the "setClaimConditions" function into a Hex string with its parameters.
|
81
|
+
* @param options - The options for the setClaimConditions function.
|
82
|
+
* @returns The encoded hexadecimal string.
|
83
|
+
* @extension ERC721
|
84
|
+
* @example
|
85
|
+
* ```ts
|
86
|
+
* import { encodeSetClaimConditions } from "thirdweb/extensions/erc721";
|
87
|
+
* const result = encodeSetClaimConditions({
|
88
|
+
* phase: ...,
|
89
|
+
* resetClaimEligibility: ...,
|
90
|
+
* });
|
91
|
+
* ```
|
92
|
+
*/
|
93
|
+
export declare function encodeSetClaimConditions(options: SetClaimConditionsParams): `${typeof FN_SELECTOR}${string}`;
|
94
|
+
/**
|
95
|
+
* Prepares a transaction to call the "setClaimConditions" function on the contract.
|
96
|
+
* @param options - The options for the "setClaimConditions" function.
|
97
|
+
* @returns A prepared transaction object.
|
98
|
+
* @extension ERC721
|
99
|
+
* @example
|
100
|
+
* ```ts
|
101
|
+
* import { sendTransaction } from "thirdweb";
|
102
|
+
* import { setClaimConditions } from "thirdweb/extensions/erc721";
|
103
|
+
*
|
104
|
+
* const transaction = setClaimConditions({
|
105
|
+
* contract,
|
106
|
+
* phase: ...,
|
107
|
+
* resetClaimEligibility: ...,
|
108
|
+
* overrides: {
|
109
|
+
* ...
|
110
|
+
* }
|
111
|
+
* });
|
112
|
+
*
|
113
|
+
* // Send the transaction
|
114
|
+
* await sendTransaction({ transaction, account });
|
115
|
+
* ```
|
116
|
+
*/
|
117
|
+
export declare function setClaimConditions(options: BaseTransactionOptions<SetClaimConditionsParams | {
|
118
|
+
asyncParams: () => Promise<SetClaimConditionsParams>;
|
119
|
+
}>): import("../../../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
|
120
|
+
//# sourceMappingURL=setClaimConditions.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"setClaimConditions.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAM7C;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC;IACnD,KAAK,EAAE,2BAA2B,CAAC;QACjC,IAAI,EAAE,OAAO,CAAC;QACd,IAAI,EAAE,OAAO,CAAC;QACd,UAAU,EAAE;YACV;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,gBAAgB,CAAA;aAAE;YAC3C;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,oBAAoB,CAAA;aAAE;YAC/C;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,eAAe,CAAA;aAAE;YAC1C;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,wBAAwB,CAAA;aAAE;YACnD;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,YAAY,CAAA;aAAE;YACvC;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,eAAe,CAAA;aAAE;YAC1C;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,UAAU,CAAA;aAAE;YACrC;gBAAE,IAAI,EAAE,QAAQ,CAAC;gBAAC,IAAI,EAAE,UAAU,CAAA;aAAE;SACrC,CAAC;KACH,CAAC,CAAC;IACH,qBAAqB,EAAE,2BAA2B,CAAC;QACjD,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,uBAAuB,CAAC;KAC/B,CAAC,CAAC;CACJ,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,cAAwB,CAAC;AA+CjD;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKzE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,wBAAwB,iBAMlC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,wBAAwB,GAMhE,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CACzC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,sBAAsB,CAC3B,wBAAwB,GACxB;IACE,WAAW,EAAE,MAAM,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACtD,CACJ,8MA2BF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"claimTo.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc721/drops/write/claimTo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;
|
1
|
+
{"version":3,"file":"claimTo.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc721/drops/write/claimTo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAU/E;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,OAAO,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,sBAAsB,CAAC,aAAa,CAAC,wMAarE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAS9D"}
|
@@ -6,6 +6,7 @@ import type { ClaimConditionsInput } from "../../../../utils/extensions/drops/ty
|
|
6
6
|
export type SetClaimConditionsParams = {
|
7
7
|
phases: ClaimConditionsInput[];
|
8
8
|
resetClaimEligibility?: boolean;
|
9
|
+
singlePhaseDrop?: boolean;
|
9
10
|
};
|
10
11
|
/**
|
11
12
|
* Set the claim conditions for a ERC721 drop
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"setClaimConditions.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc721/drops/write/setClaimConditions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;
|
1
|
+
{"version":3,"file":"setClaimConditions.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc721/drops/write/setClaimConditions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAUxF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,sBAAsB,CAAC,wBAAwB,CAAC,wMAgB1D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAUzE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-claim-params.d.ts","sourceRoot":"","sources":["../../../../../src/utils/extensions/drops/get-claim-params.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"get-claim-params.d.ts","sourceRoot":"","sources":["../../../../../src/utils/extensions/drops/get-claim-params.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhE,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,CACA;IACE,IAAI,EAAE,QAAQ,CAAC;CAChB,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACvB,GACD;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CACJ,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,qBAAqB;;;;;;;UA8IjD,GAAG;;;;;;;;GAMpB"}
|
package/dist/types/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.d.ts
CHANGED
@@ -7,5 +7,6 @@ export declare function getMulticallSetClaimConditionTransactions(options: {
|
|
7
7
|
tokenDecimals: number;
|
8
8
|
tokenId?: bigint;
|
9
9
|
resetClaimEligibility?: boolean;
|
10
|
+
singlePhase?: boolean;
|
10
11
|
}): Promise<Hex[]>;
|
11
12
|
//# sourceMappingURL=get-multicall-set-claim-claim-conditon-transactions.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-multicall-set-claim-claim-conditon-transactions.d.ts","sourceRoot":"","sources":["../../../../../src/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAItE,OAAO,EAAE,KAAK,GAAG,EAAS,MAAM,uBAAuB,CAAC;AAGxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,wBAAsB,yCAAyC,CAAC,OAAO,EAAE;IACvE,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"get-multicall-set-claim-claim-conditon-transactions.d.ts","sourceRoot":"","sources":["../../../../../src/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAItE,OAAO,EAAE,KAAK,GAAG,EAAS,MAAM,uBAAuB,CAAC;AAGxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,wBAAsB,yCAAyC,CAAC,OAAO,EAAE;IACvE,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAgIjB"}
|
package/dist/types/version.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const version = "5.64.4
|
1
|
+
export declare const version = "5.64.4";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/package.json
CHANGED
package/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
import { prepareEvent } from "../../../../../event/prepare-event.js";
|
2
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Represents the filters for the "ClaimConditionUpdated" event.
|
6
|
+
*/
|
7
|
+
export type ClaimConditionUpdatedEventFilters = Partial<{
|
8
|
+
tokenId: AbiParameterToPrimitiveType<{
|
9
|
+
type: "uint256";
|
10
|
+
name: "tokenId";
|
11
|
+
indexed: true;
|
12
|
+
}>;
|
13
|
+
}>;
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Creates an event object for the ClaimConditionUpdated event.
|
17
|
+
* @param filters - Optional filters to apply to the event.
|
18
|
+
* @returns The prepared event object.
|
19
|
+
* @extension ERC1155
|
20
|
+
* @example
|
21
|
+
* ```ts
|
22
|
+
* import { getContractEvents } from "thirdweb";
|
23
|
+
* import { claimConditionUpdatedEvent } from "thirdweb/extensions/erc1155";
|
24
|
+
*
|
25
|
+
* const events = await getContractEvents({
|
26
|
+
* contract,
|
27
|
+
* events: [
|
28
|
+
* claimConditionUpdatedEvent({
|
29
|
+
* tokenId: ...,
|
30
|
+
* })
|
31
|
+
* ],
|
32
|
+
* });
|
33
|
+
* ```
|
34
|
+
*/
|
35
|
+
export function claimConditionUpdatedEvent(
|
36
|
+
filters: ClaimConditionUpdatedEventFilters = {},
|
37
|
+
) {
|
38
|
+
return prepareEvent({
|
39
|
+
signature:
|
40
|
+
"event ClaimConditionUpdated(uint256 indexed tokenId, (uint256 startTimestamp, uint256 maxClaimableSupply, uint256 supplyClaimed, uint256 quantityLimitPerWallet, bytes32 merkleRoot, uint256 pricePerToken, address currency, string metadata) condition, bool resetEligibility)",
|
41
|
+
filters,
|
42
|
+
});
|
43
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { prepareEvent } from "../../../../../event/prepare-event.js";
|
2
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Represents the filters for the "TokensClaimed" event.
|
6
|
+
*/
|
7
|
+
export type TokensClaimedEventFilters = Partial<{
|
8
|
+
claimer: AbiParameterToPrimitiveType<{
|
9
|
+
type: "address";
|
10
|
+
name: "claimer";
|
11
|
+
indexed: true;
|
12
|
+
}>;
|
13
|
+
receiver: AbiParameterToPrimitiveType<{
|
14
|
+
type: "address";
|
15
|
+
name: "receiver";
|
16
|
+
indexed: true;
|
17
|
+
}>;
|
18
|
+
tokenId: AbiParameterToPrimitiveType<{
|
19
|
+
type: "uint256";
|
20
|
+
name: "tokenId";
|
21
|
+
indexed: true;
|
22
|
+
}>;
|
23
|
+
}>;
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Creates an event object for the TokensClaimed event.
|
27
|
+
* @param filters - Optional filters to apply to the event.
|
28
|
+
* @returns The prepared event object.
|
29
|
+
* @extension ERC1155
|
30
|
+
* @example
|
31
|
+
* ```ts
|
32
|
+
* import { getContractEvents } from "thirdweb";
|
33
|
+
* import { tokensClaimedEvent } from "thirdweb/extensions/erc1155";
|
34
|
+
*
|
35
|
+
* const events = await getContractEvents({
|
36
|
+
* contract,
|
37
|
+
* events: [
|
38
|
+
* tokensClaimedEvent({
|
39
|
+
* claimer: ...,
|
40
|
+
* receiver: ...,
|
41
|
+
* tokenId: ...,
|
42
|
+
* })
|
43
|
+
* ],
|
44
|
+
* });
|
45
|
+
* ```
|
46
|
+
*/
|
47
|
+
export function tokensClaimedEvent(filters: TokensClaimedEventFilters = {}) {
|
48
|
+
return prepareEvent({
|
49
|
+
signature:
|
50
|
+
"event TokensClaimed(address indexed claimer, address indexed receiver, uint256 indexed tokenId, uint256 quantityClaimed)",
|
51
|
+
filters,
|
52
|
+
});
|
53
|
+
}
|
@@ -0,0 +1,160 @@
|
|
1
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
2
|
+
import { readContract } from "../../../../../transaction/read-contract.js";
|
3
|
+
import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
|
4
|
+
import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js";
|
5
|
+
import { decodeAbiParameters } from "viem";
|
6
|
+
import type { Hex } from "../../../../../utils/encoding/hex.js";
|
7
|
+
import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js";
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Represents the parameters for the "claimCondition" function.
|
11
|
+
*/
|
12
|
+
export type ClaimConditionParams = {
|
13
|
+
tokenId: AbiParameterToPrimitiveType<{ type: "uint256"; name: "tokenId" }>;
|
14
|
+
};
|
15
|
+
|
16
|
+
export const FN_SELECTOR = "0xe9703d25" as const;
|
17
|
+
const FN_INPUTS = [
|
18
|
+
{
|
19
|
+
type: "uint256",
|
20
|
+
name: "tokenId",
|
21
|
+
},
|
22
|
+
] as const;
|
23
|
+
const FN_OUTPUTS = [
|
24
|
+
{
|
25
|
+
type: "tuple",
|
26
|
+
name: "condition",
|
27
|
+
components: [
|
28
|
+
{
|
29
|
+
type: "uint256",
|
30
|
+
name: "startTimestamp",
|
31
|
+
},
|
32
|
+
{
|
33
|
+
type: "uint256",
|
34
|
+
name: "maxClaimableSupply",
|
35
|
+
},
|
36
|
+
{
|
37
|
+
type: "uint256",
|
38
|
+
name: "supplyClaimed",
|
39
|
+
},
|
40
|
+
{
|
41
|
+
type: "uint256",
|
42
|
+
name: "quantityLimitPerWallet",
|
43
|
+
},
|
44
|
+
{
|
45
|
+
type: "bytes32",
|
46
|
+
name: "merkleRoot",
|
47
|
+
},
|
48
|
+
{
|
49
|
+
type: "uint256",
|
50
|
+
name: "pricePerToken",
|
51
|
+
},
|
52
|
+
{
|
53
|
+
type: "address",
|
54
|
+
name: "currency",
|
55
|
+
},
|
56
|
+
{
|
57
|
+
type: "string",
|
58
|
+
name: "metadata",
|
59
|
+
},
|
60
|
+
],
|
61
|
+
},
|
62
|
+
] as const;
|
63
|
+
|
64
|
+
/**
|
65
|
+
* Checks if the `claimCondition` method is supported by the given contract.
|
66
|
+
* @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
|
67
|
+
* @returns A boolean indicating if the `claimCondition` method is supported.
|
68
|
+
* @extension ERC1155
|
69
|
+
* @example
|
70
|
+
* ```ts
|
71
|
+
* import { isClaimConditionSupported } from "thirdweb/extensions/erc1155";
|
72
|
+
* const supported = isClaimConditionSupported(["0x..."]);
|
73
|
+
* ```
|
74
|
+
*/
|
75
|
+
export function isClaimConditionSupported(availableSelectors: string[]) {
|
76
|
+
return detectMethod({
|
77
|
+
availableSelectors,
|
78
|
+
method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const,
|
79
|
+
});
|
80
|
+
}
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Encodes the parameters for the "claimCondition" function.
|
84
|
+
* @param options - The options for the claimCondition function.
|
85
|
+
* @returns The encoded ABI parameters.
|
86
|
+
* @extension ERC1155
|
87
|
+
* @example
|
88
|
+
* ```ts
|
89
|
+
* import { encodeClaimConditionParams } from "thirdweb/extensions/erc1155";
|
90
|
+
* const result = encodeClaimConditionParams({
|
91
|
+
* tokenId: ...,
|
92
|
+
* });
|
93
|
+
* ```
|
94
|
+
*/
|
95
|
+
export function encodeClaimConditionParams(options: ClaimConditionParams) {
|
96
|
+
return encodeAbiParameters(FN_INPUTS, [options.tokenId]);
|
97
|
+
}
|
98
|
+
|
99
|
+
/**
|
100
|
+
* Encodes the "claimCondition" function into a Hex string with its parameters.
|
101
|
+
* @param options - The options for the claimCondition function.
|
102
|
+
* @returns The encoded hexadecimal string.
|
103
|
+
* @extension ERC1155
|
104
|
+
* @example
|
105
|
+
* ```ts
|
106
|
+
* import { encodeClaimCondition } from "thirdweb/extensions/erc1155";
|
107
|
+
* const result = encodeClaimCondition({
|
108
|
+
* tokenId: ...,
|
109
|
+
* });
|
110
|
+
* ```
|
111
|
+
*/
|
112
|
+
export function encodeClaimCondition(options: ClaimConditionParams) {
|
113
|
+
// we do a "manual" concat here to avoid the overhead of the "concatHex" function
|
114
|
+
// we can do this because we know the specific formats of the values
|
115
|
+
return (FN_SELECTOR +
|
116
|
+
encodeClaimConditionParams(options).slice(
|
117
|
+
2,
|
118
|
+
)) as `${typeof FN_SELECTOR}${string}`;
|
119
|
+
}
|
120
|
+
|
121
|
+
/**
|
122
|
+
* Decodes the result of the claimCondition function call.
|
123
|
+
* @param result - The hexadecimal result to decode.
|
124
|
+
* @returns The decoded result as per the FN_OUTPUTS definition.
|
125
|
+
* @extension ERC1155
|
126
|
+
* @example
|
127
|
+
* ```ts
|
128
|
+
* import { decodeClaimConditionResult } from "thirdweb/extensions/erc1155";
|
129
|
+
* const result = decodeClaimConditionResultResult("...");
|
130
|
+
* ```
|
131
|
+
*/
|
132
|
+
export function decodeClaimConditionResult(result: Hex) {
|
133
|
+
return decodeAbiParameters(FN_OUTPUTS, result)[0];
|
134
|
+
}
|
135
|
+
|
136
|
+
/**
|
137
|
+
* Calls the "claimCondition" function on the contract.
|
138
|
+
* @param options - The options for the claimCondition function.
|
139
|
+
* @returns The parsed result of the function call.
|
140
|
+
* @extension ERC1155
|
141
|
+
* @example
|
142
|
+
* ```ts
|
143
|
+
* import { claimCondition } from "thirdweb/extensions/erc1155";
|
144
|
+
*
|
145
|
+
* const result = await claimCondition({
|
146
|
+
* contract,
|
147
|
+
* tokenId: ...,
|
148
|
+
* });
|
149
|
+
*
|
150
|
+
* ```
|
151
|
+
*/
|
152
|
+
export async function claimCondition(
|
153
|
+
options: BaseTransactionOptions<ClaimConditionParams>,
|
154
|
+
) {
|
155
|
+
return readContract({
|
156
|
+
contract: options.contract,
|
157
|
+
method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const,
|
158
|
+
params: [options.tokenId],
|
159
|
+
});
|
160
|
+
}
|