thirdweb 5.64.4-nightly-c2a90542d7f870c799c297c59cd2b468816f7939-20241031000332 → 5.64.5

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.
Files changed (143) hide show
  1. package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.js +31 -0
  2. package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.js.map +1 -0
  3. package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.js +33 -0
  4. package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.js.map +1 -0
  5. package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.js +149 -0
  6. package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.js.map +1 -0
  7. package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.js +193 -0
  8. package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.js.map +1 -0
  9. package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.js +173 -0
  10. package/dist/cjs/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.js.map +1 -0
  11. package/dist/cjs/extensions/erc1155/drops/write/claimTo.js +5 -2
  12. package/dist/cjs/extensions/erc1155/drops/write/claimTo.js.map +1 -1
  13. package/dist/cjs/extensions/erc1155/drops/write/setClaimConditions.js +4 -1
  14. package/dist/cjs/extensions/erc1155/drops/write/setClaimConditions.js.map +1 -1
  15. package/dist/cjs/extensions/erc20/drops/write/claimTo.js +1 -0
  16. package/dist/cjs/extensions/erc20/drops/write/claimTo.js.map +1 -1
  17. package/dist/cjs/extensions/erc20/drops/write/setClaimConditions.js +1 -0
  18. package/dist/cjs/extensions/erc20/drops/write/setClaimConditions.js.map +1 -1
  19. package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.js +27 -0
  20. package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.js.map +1 -0
  21. package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.js +33 -0
  22. package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.js.map +1 -0
  23. package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.js +105 -0
  24. package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.js.map +1 -0
  25. package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/write/claim.js +184 -0
  26. package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/write/claim.js.map +1 -0
  27. package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.js +164 -0
  28. package/dist/cjs/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.js.map +1 -0
  29. package/dist/cjs/extensions/erc721/drops/write/claimTo.js +6 -3
  30. package/dist/cjs/extensions/erc721/drops/write/claimTo.js.map +1 -1
  31. package/dist/cjs/extensions/erc721/drops/write/setClaimConditions.js +4 -1
  32. package/dist/cjs/extensions/erc721/drops/write/setClaimConditions.js.map +1 -1
  33. package/dist/cjs/utils/extensions/drops/get-claim-params.js +20 -0
  34. package/dist/cjs/utils/extensions/drops/get-claim-params.js.map +1 -1
  35. package/dist/cjs/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.js +39 -12
  36. package/dist/cjs/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.js.map +1 -1
  37. package/dist/cjs/version.js +1 -1
  38. package/dist/cjs/version.js.map +1 -1
  39. package/dist/cjs/wallets/smart/index.js +3 -0
  40. package/dist/cjs/wallets/smart/index.js.map +1 -1
  41. package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.js +28 -0
  42. package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.js.map +1 -0
  43. package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.js +30 -0
  44. package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.js.map +1 -0
  45. package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.js +141 -0
  46. package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.js.map +1 -0
  47. package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.js +186 -0
  48. package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.js.map +1 -0
  49. package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.js +166 -0
  50. package/dist/esm/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.js.map +1 -0
  51. package/dist/esm/extensions/erc1155/drops/write/claimTo.js +5 -2
  52. package/dist/esm/extensions/erc1155/drops/write/claimTo.js.map +1 -1
  53. package/dist/esm/extensions/erc1155/drops/write/setClaimConditions.js +4 -1
  54. package/dist/esm/extensions/erc1155/drops/write/setClaimConditions.js.map +1 -1
  55. package/dist/esm/extensions/erc20/drops/write/claimTo.js +1 -0
  56. package/dist/esm/extensions/erc20/drops/write/claimTo.js.map +1 -1
  57. package/dist/esm/extensions/erc20/drops/write/setClaimConditions.js +1 -0
  58. package/dist/esm/extensions/erc20/drops/write/setClaimConditions.js.map +1 -1
  59. package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.js +24 -0
  60. package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.js.map +1 -0
  61. package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.js +30 -0
  62. package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.js.map +1 -0
  63. package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.js +99 -0
  64. package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.js.map +1 -0
  65. package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/write/claim.js +177 -0
  66. package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/write/claim.js.map +1 -0
  67. package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.js +157 -0
  68. package/dist/esm/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.js.map +1 -0
  69. package/dist/esm/extensions/erc721/drops/write/claimTo.js +6 -3
  70. package/dist/esm/extensions/erc721/drops/write/claimTo.js.map +1 -1
  71. package/dist/esm/extensions/erc721/drops/write/setClaimConditions.js +4 -1
  72. package/dist/esm/extensions/erc721/drops/write/setClaimConditions.js.map +1 -1
  73. package/dist/esm/utils/extensions/drops/get-claim-params.js +20 -0
  74. package/dist/esm/utils/extensions/drops/get-claim-params.js.map +1 -1
  75. package/dist/esm/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.js +39 -12
  76. package/dist/esm/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.js.map +1 -1
  77. package/dist/esm/version.js +1 -1
  78. package/dist/esm/version.js.map +1 -1
  79. package/dist/esm/wallets/smart/index.js +3 -0
  80. package/dist/esm/wallets/smart/index.js.map +1 -1
  81. package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.d.ts +72 -0
  82. package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.d.ts.map +1 -0
  83. package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.d.ts +64 -0
  84. package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.d.ts.map +1 -0
  85. package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.d.ts +101 -0
  86. package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.d.ts.map +1 -0
  87. package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.d.ts +139 -0
  88. package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.d.ts.map +1 -0
  89. package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.d.ts +127 -0
  90. package/dist/types/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.d.ts.map +1 -0
  91. package/dist/types/extensions/erc1155/drops/write/claimTo.d.ts +1 -0
  92. package/dist/types/extensions/erc1155/drops/write/claimTo.d.ts.map +1 -1
  93. package/dist/types/extensions/erc1155/drops/write/setClaimConditions.d.ts +1 -0
  94. package/dist/types/extensions/erc1155/drops/write/setClaimConditions.d.ts.map +1 -1
  95. package/dist/types/extensions/erc20/drops/write/claimTo.d.ts +1 -0
  96. package/dist/types/extensions/erc20/drops/write/claimTo.d.ts.map +1 -1
  97. package/dist/types/extensions/erc20/drops/write/setClaimConditions.d.ts +1 -0
  98. package/dist/types/extensions/erc20/drops/write/setClaimConditions.d.ts.map +1 -1
  99. package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.d.ts +54 -0
  100. package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.d.ts.map +1 -0
  101. package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.d.ts +64 -0
  102. package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.d.ts.map +1 -0
  103. package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.d.ts +62 -0
  104. package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.d.ts.map +1 -0
  105. package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/write/claim.d.ts +132 -0
  106. package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/write/claim.d.ts.map +1 -0
  107. package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.d.ts +120 -0
  108. package/dist/types/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.d.ts.map +1 -0
  109. package/dist/types/extensions/erc721/drops/write/claimTo.d.ts +1 -0
  110. package/dist/types/extensions/erc721/drops/write/claimTo.d.ts.map +1 -1
  111. package/dist/types/extensions/erc721/drops/write/setClaimConditions.d.ts +1 -0
  112. package/dist/types/extensions/erc721/drops/write/setClaimConditions.d.ts.map +1 -1
  113. package/dist/types/utils/extensions/drops/get-claim-params.d.ts +1 -0
  114. package/dist/types/utils/extensions/drops/get-claim-params.d.ts.map +1 -1
  115. package/dist/types/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.d.ts +1 -0
  116. package/dist/types/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.d.ts.map +1 -1
  117. package/dist/types/version.d.ts +1 -1
  118. package/dist/types/version.d.ts.map +1 -1
  119. package/package.json +1 -1
  120. package/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts +43 -0
  121. package/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts +53 -0
  122. package/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts +160 -0
  123. package/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts +229 -0
  124. package/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts +213 -0
  125. package/src/extensions/erc1155/customDrop1155.test.ts +181 -0
  126. package/src/extensions/erc1155/drops/write/claimTo.ts +6 -2
  127. package/src/extensions/erc1155/drops/write/setClaimConditions.ts +5 -1
  128. package/src/extensions/erc20/customDrop20.test.ts +80 -0
  129. package/src/extensions/erc20/drops/write/claimTo.ts +2 -0
  130. package/src/extensions/erc20/drops/write/setClaimConditions.ts +2 -0
  131. package/src/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.ts +25 -0
  132. package/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts +53 -0
  133. package/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts +105 -0
  134. package/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts +219 -0
  135. package/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts +203 -0
  136. package/src/extensions/erc721/customDrop721.test.ts +115 -0
  137. package/src/extensions/erc721/drops/write/claimTo.ts +7 -3
  138. package/src/extensions/erc721/drops/write/setClaimConditions.ts +5 -1
  139. package/src/utils/extensions/drops/get-claim-params.ts +29 -2
  140. package/src/utils/extensions/drops/get-multicall-set-claim-claim-conditon-transactions.ts +46 -16
  141. package/src/version.ts +1 -1
  142. package/src/wallets/smart/index.ts +2 -0
  143. package/src/wallets/smart/smart-wallet-integration.test.ts +33 -0
@@ -0,0 +1,101 @@
1
+ import type { AbiParameterToPrimitiveType } from "abitype";
2
+ import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
3
+ import type { Hex } from "../../../../../utils/encoding/hex.js";
4
+ /**
5
+ * Represents the parameters for the "claimCondition" function.
6
+ */
7
+ export type ClaimConditionParams = {
8
+ tokenId: AbiParameterToPrimitiveType<{
9
+ type: "uint256";
10
+ name: "tokenId";
11
+ }>;
12
+ };
13
+ export declare const FN_SELECTOR: "0xe9703d25";
14
+ /**
15
+ * Checks if the `claimCondition` method is supported by the given contract.
16
+ * @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.
17
+ * @returns A boolean indicating if the `claimCondition` method is supported.
18
+ * @extension ERC1155
19
+ * @example
20
+ * ```ts
21
+ * import { isClaimConditionSupported } from "thirdweb/extensions/erc1155";
22
+ * const supported = isClaimConditionSupported(["0x..."]);
23
+ * ```
24
+ */
25
+ export declare function isClaimConditionSupported(availableSelectors: string[]): boolean;
26
+ /**
27
+ * Encodes the parameters for the "claimCondition" function.
28
+ * @param options - The options for the claimCondition function.
29
+ * @returns The encoded ABI parameters.
30
+ * @extension ERC1155
31
+ * @example
32
+ * ```ts
33
+ * import { encodeClaimConditionParams } from "thirdweb/extensions/erc1155";
34
+ * const result = encodeClaimConditionParams({
35
+ * tokenId: ...,
36
+ * });
37
+ * ```
38
+ */
39
+ export declare function encodeClaimConditionParams(options: ClaimConditionParams): `0x${string}`;
40
+ /**
41
+ * Encodes the "claimCondition" function into a Hex string with its parameters.
42
+ * @param options - The options for the claimCondition function.
43
+ * @returns The encoded hexadecimal string.
44
+ * @extension ERC1155
45
+ * @example
46
+ * ```ts
47
+ * import { encodeClaimCondition } from "thirdweb/extensions/erc1155";
48
+ * const result = encodeClaimCondition({
49
+ * tokenId: ...,
50
+ * });
51
+ * ```
52
+ */
53
+ export declare function encodeClaimCondition(options: ClaimConditionParams): `${typeof FN_SELECTOR}${string}`;
54
+ /**
55
+ * Decodes the result of the claimCondition function call.
56
+ * @param result - The hexadecimal result to decode.
57
+ * @returns The decoded result as per the FN_OUTPUTS definition.
58
+ * @extension ERC1155
59
+ * @example
60
+ * ```ts
61
+ * import { decodeClaimConditionResult } from "thirdweb/extensions/erc1155";
62
+ * const result = decodeClaimConditionResultResult("...");
63
+ * ```
64
+ */
65
+ export declare function decodeClaimConditionResult(result: Hex): {
66
+ startTimestamp: bigint;
67
+ maxClaimableSupply: bigint;
68
+ supplyClaimed: bigint;
69
+ quantityLimitPerWallet: bigint;
70
+ merkleRoot: `0x${string}`;
71
+ pricePerToken: bigint;
72
+ currency: string;
73
+ metadata: string;
74
+ };
75
+ /**
76
+ * Calls the "claimCondition" function on the contract.
77
+ * @param options - The options for the claimCondition function.
78
+ * @returns The parsed result of the function call.
79
+ * @extension ERC1155
80
+ * @example
81
+ * ```ts
82
+ * import { claimCondition } from "thirdweb/extensions/erc1155";
83
+ *
84
+ * const result = await claimCondition({
85
+ * contract,
86
+ * tokenId: ...,
87
+ * });
88
+ *
89
+ * ```
90
+ */
91
+ export declare function claimCondition(options: BaseTransactionOptions<ClaimConditionParams>): Promise<{
92
+ startTimestamp: bigint;
93
+ maxClaimableSupply: bigint;
94
+ supplyClaimed: bigint;
95
+ quantityLimitPerWallet: bigint;
96
+ merkleRoot: `0x${string}`;
97
+ pricePerToken: bigint;
98
+ currency: string;
99
+ metadata: string;
100
+ }>;
101
+ //# sourceMappingURL=claimCondition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claimCondition.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;CAC5E,CAAC;AAEF,eAAO,MAAM,WAAW,cAAwB,CAAC;AAgDjD;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKrE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,oBAAoB,iBAEvE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,oBAAoB,GAMxD,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CACzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,GAAG;;;;;;;;;EAErD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,sBAAsB,CAAC,oBAAoB,CAAC;;;;;;;;;GAOtD"}
@@ -0,0 +1,139 @@
1
+ import type { AbiParameterToPrimitiveType } from "abitype";
2
+ import type { BaseTransactionOptions, WithOverrides } from "../../../../../transaction/types.js";
3
+ /**
4
+ * Represents the parameters for the "claim" function.
5
+ */
6
+ export type ClaimParams = WithOverrides<{
7
+ receiver: AbiParameterToPrimitiveType<{
8
+ type: "address";
9
+ name: "receiver";
10
+ }>;
11
+ tokenId: AbiParameterToPrimitiveType<{
12
+ type: "uint256";
13
+ name: "tokenId";
14
+ }>;
15
+ quantity: AbiParameterToPrimitiveType<{
16
+ type: "uint256";
17
+ name: "quantity";
18
+ }>;
19
+ currency: AbiParameterToPrimitiveType<{
20
+ type: "address";
21
+ name: "currency";
22
+ }>;
23
+ pricePerToken: AbiParameterToPrimitiveType<{
24
+ type: "uint256";
25
+ name: "pricePerToken";
26
+ }>;
27
+ allowlistProof: AbiParameterToPrimitiveType<{
28
+ type: "tuple";
29
+ name: "allowlistProof";
30
+ components: [
31
+ {
32
+ type: "bytes32[]";
33
+ name: "proof";
34
+ },
35
+ {
36
+ type: "uint256";
37
+ name: "quantityLimitPerWallet";
38
+ },
39
+ {
40
+ type: "uint256";
41
+ name: "pricePerToken";
42
+ },
43
+ {
44
+ type: "address";
45
+ name: "currency";
46
+ }
47
+ ];
48
+ }>;
49
+ data: AbiParameterToPrimitiveType<{
50
+ type: "bytes";
51
+ name: "data";
52
+ }>;
53
+ }>;
54
+ export declare const FN_SELECTOR: "0x57bc3d78";
55
+ /**
56
+ * Checks if the `claim` method is supported by the given contract.
57
+ * @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.
58
+ * @returns A boolean indicating if the `claim` method is supported.
59
+ * @extension ERC1155
60
+ * @example
61
+ * ```ts
62
+ * import { isClaimSupported } from "thirdweb/extensions/erc1155";
63
+ *
64
+ * const supported = isClaimSupported(["0x..."]);
65
+ * ```
66
+ */
67
+ export declare function isClaimSupported(availableSelectors: string[]): boolean;
68
+ /**
69
+ * Encodes the parameters for the "claim" function.
70
+ * @param options - The options for the claim function.
71
+ * @returns The encoded ABI parameters.
72
+ * @extension ERC1155
73
+ * @example
74
+ * ```ts
75
+ * import { encodeClaimParams } from "thirdweb/extensions/erc1155";
76
+ * const result = encodeClaimParams({
77
+ * receiver: ...,
78
+ * tokenId: ...,
79
+ * quantity: ...,
80
+ * currency: ...,
81
+ * pricePerToken: ...,
82
+ * allowlistProof: ...,
83
+ * data: ...,
84
+ * });
85
+ * ```
86
+ */
87
+ export declare function encodeClaimParams(options: ClaimParams): `0x${string}`;
88
+ /**
89
+ * Encodes the "claim" function into a Hex string with its parameters.
90
+ * @param options - The options for the claim function.
91
+ * @returns The encoded hexadecimal string.
92
+ * @extension ERC1155
93
+ * @example
94
+ * ```ts
95
+ * import { encodeClaim } from "thirdweb/extensions/erc1155";
96
+ * const result = encodeClaim({
97
+ * receiver: ...,
98
+ * tokenId: ...,
99
+ * quantity: ...,
100
+ * currency: ...,
101
+ * pricePerToken: ...,
102
+ * allowlistProof: ...,
103
+ * data: ...,
104
+ * });
105
+ * ```
106
+ */
107
+ export declare function encodeClaim(options: ClaimParams): `${typeof FN_SELECTOR}${string}`;
108
+ /**
109
+ * Prepares a transaction to call the "claim" function on the contract.
110
+ * @param options - The options for the "claim" function.
111
+ * @returns A prepared transaction object.
112
+ * @extension ERC1155
113
+ * @example
114
+ * ```ts
115
+ * import { sendTransaction } from "thirdweb";
116
+ * import { claim } from "thirdweb/extensions/erc1155";
117
+ *
118
+ * const transaction = claim({
119
+ * contract,
120
+ * receiver: ...,
121
+ * tokenId: ...,
122
+ * quantity: ...,
123
+ * currency: ...,
124
+ * pricePerToken: ...,
125
+ * allowlistProof: ...,
126
+ * data: ...,
127
+ * overrides: {
128
+ * ...
129
+ * }
130
+ * });
131
+ *
132
+ * // Send the transaction
133
+ * await sendTransaction({ transaction, account });
134
+ * ```
135
+ */
136
+ export declare function claim(options: BaseTransactionOptions<ClaimParams | {
137
+ asyncParams: () => Promise<ClaimParams>;
138
+ }>): import("../../../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
139
+ //# sourceMappingURL=claim.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claim.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc1155/__generated__/IDropSinglePhase1155/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,OAAO,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;IAC3E,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;AAmDjD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAK5D;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,iBAUrD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,GAIJ,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CAC3E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,KAAK,CACnB,OAAO,EAAE,sBAAsB,CAC3B,WAAW,GACX;IACE,WAAW,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;CACzC,CACJ,8MAgCF"}
@@ -0,0 +1,127 @@
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
+ tokenId: AbiParameterToPrimitiveType<{
8
+ type: "uint256";
9
+ name: "tokenId";
10
+ }>;
11
+ phase: AbiParameterToPrimitiveType<{
12
+ type: "tuple";
13
+ name: "phase";
14
+ components: [
15
+ {
16
+ type: "uint256";
17
+ name: "startTimestamp";
18
+ },
19
+ {
20
+ type: "uint256";
21
+ name: "maxClaimableSupply";
22
+ },
23
+ {
24
+ type: "uint256";
25
+ name: "supplyClaimed";
26
+ },
27
+ {
28
+ type: "uint256";
29
+ name: "quantityLimitPerWallet";
30
+ },
31
+ {
32
+ type: "bytes32";
33
+ name: "merkleRoot";
34
+ },
35
+ {
36
+ type: "uint256";
37
+ name: "pricePerToken";
38
+ },
39
+ {
40
+ type: "address";
41
+ name: "currency";
42
+ },
43
+ {
44
+ type: "string";
45
+ name: "metadata";
46
+ }
47
+ ];
48
+ }>;
49
+ resetClaimEligibility: AbiParameterToPrimitiveType<{
50
+ type: "bool";
51
+ name: "resetClaimEligibility";
52
+ }>;
53
+ }>;
54
+ export declare const FN_SELECTOR: "0x8affb89f";
55
+ /**
56
+ * Checks if the `setClaimConditions` method is supported by the given contract.
57
+ * @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.
58
+ * @returns A boolean indicating if the `setClaimConditions` method is supported.
59
+ * @extension ERC1155
60
+ * @example
61
+ * ```ts
62
+ * import { isSetClaimConditionsSupported } from "thirdweb/extensions/erc1155";
63
+ *
64
+ * const supported = isSetClaimConditionsSupported(["0x..."]);
65
+ * ```
66
+ */
67
+ export declare function isSetClaimConditionsSupported(availableSelectors: string[]): boolean;
68
+ /**
69
+ * Encodes the parameters for the "setClaimConditions" function.
70
+ * @param options - The options for the setClaimConditions function.
71
+ * @returns The encoded ABI parameters.
72
+ * @extension ERC1155
73
+ * @example
74
+ * ```ts
75
+ * import { encodeSetClaimConditionsParams } from "thirdweb/extensions/erc1155";
76
+ * const result = encodeSetClaimConditionsParams({
77
+ * tokenId: ...,
78
+ * phase: ...,
79
+ * resetClaimEligibility: ...,
80
+ * });
81
+ * ```
82
+ */
83
+ export declare function encodeSetClaimConditionsParams(options: SetClaimConditionsParams): `0x${string}`;
84
+ /**
85
+ * Encodes the "setClaimConditions" function into a Hex string with its parameters.
86
+ * @param options - The options for the setClaimConditions function.
87
+ * @returns The encoded hexadecimal string.
88
+ * @extension ERC1155
89
+ * @example
90
+ * ```ts
91
+ * import { encodeSetClaimConditions } from "thirdweb/extensions/erc1155";
92
+ * const result = encodeSetClaimConditions({
93
+ * tokenId: ...,
94
+ * phase: ...,
95
+ * resetClaimEligibility: ...,
96
+ * });
97
+ * ```
98
+ */
99
+ export declare function encodeSetClaimConditions(options: SetClaimConditionsParams): `${typeof FN_SELECTOR}${string}`;
100
+ /**
101
+ * Prepares a transaction to call the "setClaimConditions" function on the contract.
102
+ * @param options - The options for the "setClaimConditions" function.
103
+ * @returns A prepared transaction object.
104
+ * @extension ERC1155
105
+ * @example
106
+ * ```ts
107
+ * import { sendTransaction } from "thirdweb";
108
+ * import { setClaimConditions } from "thirdweb/extensions/erc1155";
109
+ *
110
+ * const transaction = setClaimConditions({
111
+ * contract,
112
+ * tokenId: ...,
113
+ * phase: ...,
114
+ * resetClaimEligibility: ...,
115
+ * overrides: {
116
+ * ...
117
+ * }
118
+ * });
119
+ *
120
+ * // Send the transaction
121
+ * await sendTransaction({ transaction, account });
122
+ * ```
123
+ */
124
+ export declare function setClaimConditions(options: BaseTransactionOptions<SetClaimConditionsParams | {
125
+ asyncParams: () => Promise<SetClaimConditionsParams>;
126
+ }>): import("../../../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
127
+ //# sourceMappingURL=setClaimConditions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setClaimConditions.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc1155/__generated__/IDropSinglePhase1155/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,OAAO,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;IAC3E,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;AAmDjD;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKzE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,wBAAwB,iBAOlC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,wBAAwB,GAMhE,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CACzC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,sBAAsB,CAC3B,wBAAwB,GACxB;IACE,WAAW,EAAE,MAAM,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACtD,CACJ,8MA4BF"}
@@ -7,6 +7,7 @@ export type ClaimToParams = {
7
7
  tokenId: bigint;
8
8
  quantity: bigint;
9
9
  from?: string;
10
+ singlePhaseDrop?: boolean;
10
11
  };
11
12
  /**
12
13
  * Claim ERC1155 NFTs to a specified address
@@ -1 +1 @@
1
- {"version":3,"file":"claimTo.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc1155/drops/write/claimTo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAM/E;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,sBAAsB,CAAC,aAAa,CAAC,wMAmBrE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAS9D"}
1
+ {"version":3,"file":"claimTo.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc1155/drops/write/claimTo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAO/E;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,sBAAsB,CAAC,aAAa,CAAC,wMAoBrE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAU9D"}
@@ -7,6 +7,7 @@ export type SetClaimConditionsParams = {
7
7
  tokenId: bigint;
8
8
  phases: ClaimConditionsInput[];
9
9
  resetClaimEligibility?: boolean;
10
+ singlePhaseDrop?: boolean;
10
11
  };
11
12
  /**
12
13
  * Set the claim conditions for a ERC1155 drop
@@ -1 +1 @@
1
- {"version":3,"file":"setClaimConditions.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc1155/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;AASxF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,sBAAsB,CAAC,wBAAwB,CAAC,wMAgB1D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAAC,kBAAkB,EAAE,MAAM,EAAE,WASzE"}
1
+ {"version":3,"file":"setClaimConditions.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc1155/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,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,sBAAsB,CAAC,wBAAwB,CAAC,wMAiB1D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAUzE"}
@@ -7,6 +7,7 @@ import type { BaseTransactionOptions } from "../../../../transaction/types.js";
7
7
  export type ClaimToParams = {
8
8
  to: Address;
9
9
  from?: Address;
10
+ singlePhaseDrop?: boolean;
10
11
  } & ({
11
12
  quantityInWei: bigint;
12
13
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"claimTo.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc20/drops/write/claimTo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAO/E;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,CAAC;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,sBAAsB,CAAC,aAAa,CAAC,wMA0BrE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAW9D"}
1
+ {"version":3,"file":"claimTo.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc20/drops/write/claimTo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAO/E;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,CAAC;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,sBAAsB,CAAC,aAAa,CAAC,wMA2BrE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAW9D"}
@@ -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 ERC20 drop
@@ -1 +1 @@
1
- {"version":3,"file":"setClaimConditions.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc20/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;CACjC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,sBAAsB,CAAC,wBAAwB,CAAC,wMAe1D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAWzE"}
1
+ {"version":3,"file":"setClaimConditions.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc20/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,WAWzE"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Creates an event object for the ClaimConditionUpdated event.
3
+ * @returns The prepared event object.
4
+ * @extension ERC721
5
+ * @example
6
+ * ```ts
7
+ * import { getContractEvents } from "thirdweb";
8
+ * import { claimConditionUpdatedEvent } from "thirdweb/extensions/erc721";
9
+ *
10
+ * const events = await getContractEvents({
11
+ * contract,
12
+ * events: [
13
+ * claimConditionUpdatedEvent()
14
+ * ],
15
+ * });
16
+ * ```
17
+ */
18
+ export declare function claimConditionUpdatedEvent(): import("../../../../../event/prepare-event.js").PreparedEvent<{
19
+ readonly name: "ClaimConditionUpdated";
20
+ readonly type: "event";
21
+ readonly inputs: readonly [{
22
+ readonly type: "tuple";
23
+ readonly components: readonly [{
24
+ readonly type: "uint256";
25
+ readonly name: "startTimestamp";
26
+ }, {
27
+ readonly type: "uint256";
28
+ readonly name: "maxClaimableSupply";
29
+ }, {
30
+ readonly type: "uint256";
31
+ readonly name: "supplyClaimed";
32
+ }, {
33
+ readonly type: "uint256";
34
+ readonly name: "quantityLimitPerWallet";
35
+ }, {
36
+ readonly type: "bytes32";
37
+ readonly name: "merkleRoot";
38
+ }, {
39
+ readonly type: "uint256";
40
+ readonly name: "pricePerToken";
41
+ }, {
42
+ readonly type: "address";
43
+ readonly name: "currency";
44
+ }, {
45
+ readonly type: "string";
46
+ readonly name: "metadata";
47
+ }];
48
+ readonly name: "condition";
49
+ }, {
50
+ readonly type: "bool";
51
+ readonly name: "resetEligibility";
52
+ }];
53
+ }>;
54
+ //# sourceMappingURL=ClaimConditionUpdated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClaimConditionUpdated.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/IDropSinglePhase/events/ClaimConditionUpdated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKzC"}
@@ -0,0 +1,64 @@
1
+ import type { AbiParameterToPrimitiveType } from "abitype";
2
+ /**
3
+ * Represents the filters for the "TokensClaimed" event.
4
+ */
5
+ export type TokensClaimedEventFilters = Partial<{
6
+ claimer: AbiParameterToPrimitiveType<{
7
+ type: "address";
8
+ name: "claimer";
9
+ indexed: true;
10
+ }>;
11
+ receiver: AbiParameterToPrimitiveType<{
12
+ type: "address";
13
+ name: "receiver";
14
+ indexed: true;
15
+ }>;
16
+ startTokenId: AbiParameterToPrimitiveType<{
17
+ type: "uint256";
18
+ name: "startTokenId";
19
+ indexed: true;
20
+ }>;
21
+ }>;
22
+ /**
23
+ * Creates an event object for the TokensClaimed event.
24
+ * @param filters - Optional filters to apply to the event.
25
+ * @returns The prepared event object.
26
+ * @extension ERC721
27
+ * @example
28
+ * ```ts
29
+ * import { getContractEvents } from "thirdweb";
30
+ * import { tokensClaimedEvent } from "thirdweb/extensions/erc721";
31
+ *
32
+ * const events = await getContractEvents({
33
+ * contract,
34
+ * events: [
35
+ * tokensClaimedEvent({
36
+ * claimer: ...,
37
+ * receiver: ...,
38
+ * startTokenId: ...,
39
+ * })
40
+ * ],
41
+ * });
42
+ * ```
43
+ */
44
+ export declare function tokensClaimedEvent(filters?: TokensClaimedEventFilters): import("../../../../../event/prepare-event.js").PreparedEvent<{
45
+ readonly name: "TokensClaimed";
46
+ readonly type: "event";
47
+ readonly inputs: readonly [{
48
+ readonly type: "address";
49
+ readonly name: "claimer";
50
+ readonly indexed: true;
51
+ }, {
52
+ readonly type: "address";
53
+ readonly name: "receiver";
54
+ readonly indexed: true;
55
+ }, {
56
+ readonly type: "uint256";
57
+ readonly name: "startTokenId";
58
+ readonly indexed: true;
59
+ }, {
60
+ readonly type: "uint256";
61
+ readonly name: "quantityClaimed";
62
+ }];
63
+ }>;
64
+ //# sourceMappingURL=TokensClaimed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TokensClaimed.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC;IAC9C,OAAO,EAAE,2BAA2B,CAAC;QACnC,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,SAAS,CAAC;QAChB,OAAO,EAAE,IAAI,CAAC;KACf,CAAC,CAAC;IACH,QAAQ,EAAE,2BAA2B,CAAC;QACpC,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,UAAU,CAAC;QACjB,OAAO,EAAE,IAAI,CAAC;KACf,CAAC,CAAC;IACH,YAAY,EAAE,2BAA2B,CAAC;QACxC,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,cAAc,CAAC;QACrB,OAAO,EAAE,IAAI,CAAC;KACf,CAAC,CAAC;CACJ,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,yBAA8B;;;;;;;;;;;;;;;;;;;GAMzE"}
@@ -0,0 +1,62 @@
1
+ import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
2
+ import type { Hex } from "../../../../../utils/encoding/hex.js";
3
+ export declare const FN_SELECTOR: "0xd637ed59";
4
+ /**
5
+ * Checks if the `claimCondition` method is supported by the given contract.
6
+ * @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.
7
+ * @returns A boolean indicating if the `claimCondition` method is supported.
8
+ * @extension ERC721
9
+ * @example
10
+ * ```ts
11
+ * import { isClaimConditionSupported } from "thirdweb/extensions/erc721";
12
+ * const supported = isClaimConditionSupported(["0x..."]);
13
+ * ```
14
+ */
15
+ export declare function isClaimConditionSupported(availableSelectors: string[]): boolean;
16
+ /**
17
+ * Decodes the result of the claimCondition function call.
18
+ * @param result - The hexadecimal result to decode.
19
+ * @returns The decoded result as per the FN_OUTPUTS definition.
20
+ * @extension ERC721
21
+ * @example
22
+ * ```ts
23
+ * import { decodeClaimConditionResult } from "thirdweb/extensions/erc721";
24
+ * const result = decodeClaimConditionResultResult("...");
25
+ * ```
26
+ */
27
+ export declare function decodeClaimConditionResult(result: Hex): {
28
+ startTimestamp: bigint;
29
+ maxClaimableSupply: bigint;
30
+ supplyClaimed: bigint;
31
+ quantityLimitPerWallet: bigint;
32
+ merkleRoot: `0x${string}`;
33
+ pricePerToken: bigint;
34
+ currency: string;
35
+ metadata: string;
36
+ };
37
+ /**
38
+ * Calls the "claimCondition" function on the contract.
39
+ * @param options - The options for the claimCondition function.
40
+ * @returns The parsed result of the function call.
41
+ * @extension ERC721
42
+ * @example
43
+ * ```ts
44
+ * import { claimCondition } from "thirdweb/extensions/erc721";
45
+ *
46
+ * const result = await claimCondition({
47
+ * contract,
48
+ * });
49
+ *
50
+ * ```
51
+ */
52
+ export declare function claimCondition(options: BaseTransactionOptions): Promise<{
53
+ startTimestamp: bigint;
54
+ maxClaimableSupply: bigint;
55
+ supplyClaimed: bigint;
56
+ quantityLimitPerWallet: bigint;
57
+ merkleRoot: `0x${string}`;
58
+ pricePerToken: bigint;
59
+ currency: string;
60
+ metadata: string;
61
+ }>;
62
+ //# sourceMappingURL=claimCondition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claimCondition.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE,eAAO,MAAM,WAAW,cAAwB,CAAC;AA2CjD;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKrE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,GAAG;;;;;;;;;EAErD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,sBAAsB;;;;;;;;;GAMnE"}