@0xsequence/marketplace-sdk 0.8.9 → 0.8.11

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 (196) hide show
  1. package/.changeset/fluffy-jokes-lay.md +5 -0
  2. package/.changeset/wise-bugs-boil.md +8 -0
  3. package/CHANGELOG.md +43 -0
  4. package/dist/{chunk-FMEEJFAF.js → chunk-5C6ZZ6WX.js} +1 -1
  5. package/dist/{chunk-YEGD7PWE.js → chunk-5O44EPXZ.js} +2 -2
  6. package/dist/chunk-6CTFVBKU.js +1 -0
  7. package/dist/{chunk-DWTLVJAW.js → chunk-6OPMUCGX.js} +1 -1
  8. package/dist/chunk-6OPMUCGX.js.map +1 -0
  9. package/dist/{chunk-O34GCB47.js → chunk-L6KWLCER.js} +4 -4
  10. package/dist/chunk-L6KWLCER.js.map +1 -0
  11. package/dist/{chunk-4XLXOEXQ.js → chunk-LAP2CKLN.js} +78 -4
  12. package/dist/chunk-LAP2CKLN.js.map +1 -0
  13. package/dist/{chunk-Y63BOO6M.js → chunk-LECCEZAO.js} +1 -1
  14. package/dist/{chunk-YALXP2PW.js → chunk-N7SQWS2R.js} +3 -3
  15. package/dist/{chunk-KGM2WLSP.js → chunk-OAOONM4S.js} +695 -440
  16. package/dist/chunk-OAOONM4S.js.map +1 -0
  17. package/dist/chunk-Q3ECVC4F.js +811 -0
  18. package/dist/chunk-Q3ECVC4F.js.map +1 -0
  19. package/dist/chunk-QY52UADF.js +107 -0
  20. package/dist/chunk-QY52UADF.js.map +1 -0
  21. package/dist/{chunk-I2BYHDFE.js → chunk-TNAR3XEF.js} +3898 -844
  22. package/dist/chunk-TNAR3XEF.js.map +1 -0
  23. package/dist/chunk-XABYNWXO.js +549 -0
  24. package/dist/chunk-XABYNWXO.js.map +1 -0
  25. package/dist/chunk-YB5UUF2G.js +11 -0
  26. package/dist/chunk-YB5UUF2G.js.map +1 -0
  27. package/dist/{chunk-35WWD5V6.js → chunk-YWGFI4PN.js} +88 -25
  28. package/dist/chunk-YWGFI4PN.js.map +1 -0
  29. package/dist/{create-config-DwrnzwpM.d.ts → create-config-DLMvMTkZ.d.ts} +2 -2
  30. package/dist/index.css +7 -7
  31. package/dist/index.css.map +1 -1
  32. package/dist/index.d.ts +8 -6
  33. package/dist/index.js +19 -14
  34. package/dist/{lowestListing-BQHIuvNF.d.ts → marketCurrencies-enNVYwBk.d.ts} +95 -3
  35. package/dist/{marketplace.gen-DQzWciwC.d.ts → marketplace.gen-D24veUQs.d.ts} +3 -2
  36. package/dist/marketplaceConfig-BwNAbLPw.d.ts +21 -0
  37. package/dist/new-marketplace-types-BCw19X9S.d.ts +102 -0
  38. package/dist/react/_internal/api/index.d.ts +4 -3
  39. package/dist/react/_internal/api/index.js +5 -1
  40. package/dist/react/_internal/databeat/index.css +2764 -0
  41. package/dist/react/_internal/databeat/index.css.map +1 -0
  42. package/dist/react/_internal/databeat/index.d.ts +1 -1
  43. package/dist/react/_internal/databeat/index.js +15 -14
  44. package/dist/react/_internal/index.d.ts +62 -9
  45. package/dist/react/_internal/index.js +7 -3
  46. package/dist/react/_internal/wagmi/index.d.ts +5 -6
  47. package/dist/react/_internal/wagmi/index.js +1 -1
  48. package/dist/react/hooks/index.css +2764 -0
  49. package/dist/react/hooks/index.css.map +1 -0
  50. package/dist/react/hooks/index.d.ts +74 -222
  51. package/dist/react/hooks/index.js +21 -22
  52. package/dist/react/hooks/options/index.d.ts +5 -4
  53. package/dist/react/hooks/options/index.js +9 -7
  54. package/dist/react/index.css +7 -7
  55. package/dist/react/index.css.map +1 -1
  56. package/dist/react/index.d.ts +12 -11
  57. package/dist/react/index.js +34 -37
  58. package/dist/react/queries/index.d.ts +4 -3
  59. package/dist/react/queries/index.js +19 -6
  60. package/dist/react/ssr/index.d.ts +3 -3
  61. package/dist/react/ssr/index.js +6 -5
  62. package/dist/react/ssr/index.js.map +1 -1
  63. package/dist/react/ui/components/collectible-card/index.css +7 -7
  64. package/dist/react/ui/components/collectible-card/index.css.map +1 -1
  65. package/dist/react/ui/components/collectible-card/index.d.ts +9 -6
  66. package/dist/react/ui/components/collectible-card/index.js +19 -23
  67. package/dist/react/ui/components/marketplace-logos/index.js +1 -1
  68. package/dist/react/ui/icons/index.js +9 -8
  69. package/dist/react/ui/index.css +7 -7
  70. package/dist/react/ui/index.css.map +1 -1
  71. package/dist/react/ui/index.d.ts +2 -2
  72. package/dist/react/ui/index.js +17 -21
  73. package/dist/react/ui/modals/_internal/components/actionModal/index.css +2764 -0
  74. package/dist/react/ui/modals/_internal/components/actionModal/index.css.map +1 -0
  75. package/dist/react/ui/modals/_internal/components/actionModal/index.js +15 -14
  76. package/dist/sdk-config-qorA0TgF.d.ts +165 -0
  77. package/dist/{services-BI_w8Eq4.d.ts → services-WrshxCqc.d.ts} +6 -3
  78. package/dist/types/index.d.ts +5 -4
  79. package/dist/types/index.js +7 -7
  80. package/dist/{index-DGsVBflk.d.ts → useCollection-YAdXfVO7.d.ts} +1 -2
  81. package/dist/utils/abi/index.d.ts +1 -0
  82. package/dist/utils/abi/index.js +7 -1
  83. package/dist/utils/abi/primary-sale/index.d.ts +1054 -0
  84. package/dist/utils/abi/primary-sale/index.js +9 -0
  85. package/dist/utils/index.d.ts +2 -1
  86. package/dist/utils/index.js +13 -6
  87. package/package.json +32 -32
  88. package/src/react/_internal/api/__mocks__/builder.msw.ts +157 -80
  89. package/src/react/_internal/api/builder-api.ts +2 -2
  90. package/src/react/_internal/api/builder.gen.ts +667 -112
  91. package/src/react/_internal/api/marketplace.gen.ts +1981 -1316
  92. package/src/react/_internal/api/services.ts +12 -1
  93. package/src/react/_internal/types.ts +1 -13
  94. package/src/react/_internal/wagmi/__tests__/create-config.test.ts +99 -84
  95. package/src/react/_internal/wagmi/create-config.ts +8 -4
  96. package/src/react/_internal/wagmi/get-connectors.ts +24 -19
  97. package/src/react/hooks/__tests__/__snapshots__/useListCollections.test.tsx.snap +114 -0
  98. package/src/react/hooks/__tests__/__snapshots__/useMarketplaceConfig.test.tsx.snap +85 -83
  99. package/src/react/hooks/__tests__/useFilters.test.tsx +0 -16
  100. package/src/react/hooks/__tests__/useInventory.test.tsx +16 -16
  101. package/src/react/hooks/__tests__/useListCollections.test.tsx +23 -56
  102. package/src/react/hooks/__tests__/{useCurrencies.test.tsx → useMarketCurrencies.test.tsx} +21 -15
  103. package/src/react/hooks/__tests__/useMarketplaceConfig.test.tsx +2 -59
  104. package/src/react/hooks/index.ts +3 -1
  105. package/src/react/hooks/useBalanceOfCollectible.tsx +5 -3
  106. package/src/react/hooks/useConvertPriceToUSD.tsx +1 -1
  107. package/src/react/hooks/useFilters.tsx +14 -22
  108. package/src/react/hooks/useGetTokenSuppliesMap.ts +28 -0
  109. package/src/react/hooks/useInventory.tsx +4 -3
  110. package/src/react/hooks/useList1155SaleSupplies.tsx +62 -0
  111. package/src/react/hooks/useListBalances.tsx +5 -3
  112. package/src/react/hooks/useListCollectibles.tsx +5 -3
  113. package/src/react/hooks/useListCollections.tsx +14 -76
  114. package/src/react/hooks/useListTokenMetadata.ts +19 -0
  115. package/src/react/hooks/useMarketCurrencies.tsx +8 -0
  116. package/src/react/hooks/useMarketplaceConfig.tsx +0 -2
  117. package/src/react/queries/index.ts +2 -0
  118. package/src/react/queries/inventory.ts +1 -1
  119. package/src/react/queries/listCollections.ts +118 -0
  120. package/src/react/queries/listTokenMetadata.ts +38 -0
  121. package/src/react/queries/marketCurrencies.ts +77 -0
  122. package/src/react/queries/marketplaceConfig.ts +83 -55
  123. package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +85 -83
  124. package/src/react/ui/components/collectible-card/CollectibleCard.tsx +2 -2
  125. package/src/react/ui/components/collectible-card/__tests__/{CollectibleAsset.test.tsx → Media.test.tsx} +48 -14
  126. package/src/react/ui/components/collectible-card/index.ts +1 -1
  127. package/src/react/ui/components/collectible-card/media/Media.tsx +211 -0
  128. package/src/react/ui/components/collectible-card/{collectible-asset/CollectibleAssetSkeleton.tsx → media/MediaSkeleton.tsx} +2 -2
  129. package/src/react/ui/components/collectible-card/media/types.ts +18 -0
  130. package/src/react/ui/components/collectible-card/{collectible-asset → media}/utils.ts +8 -3
  131. package/src/react/ui/index.ts +1 -1
  132. package/src/react/ui/modals/BuyModal/ERC1155QuantityModal.tsx +9 -3
  133. package/src/react/ui/modals/BuyModal/hooks/__tests__/useFees.test.tsx +31 -21
  134. package/src/react/ui/modals/BuyModal/hooks/useFees.ts +3 -2
  135. package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +28 -3
  136. package/src/react/ui/modals/CreateListingModal/Modal.tsx +3 -5
  137. package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +5 -3
  138. package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +2 -2
  139. package/src/react/ui/modals/MakeOfferModal/Modal.tsx +2 -3
  140. package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +4 -3
  141. package/src/react/ui/modals/SellModal/Modal.tsx +0 -1
  142. package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +2 -2
  143. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/WalletAddressInput.tsx +1 -1
  144. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +0 -1
  145. package/src/react/ui/modals/TransferModal/index.tsx +0 -1
  146. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +2 -2
  147. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +7 -6
  148. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +13 -7
  149. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/index.tsx +3 -5
  150. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +5 -3
  151. package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +2 -2
  152. package/src/react/ui/modals/_internal/hooks/useSelectWaasFeeOptions.ts +2 -12
  153. package/src/types/index.ts +1 -6
  154. package/src/types/new-marketplace-types.ts +119 -0
  155. package/src/types/sdk-config.ts +19 -2
  156. package/src/types/types.ts +1 -0
  157. package/src/utils/abi/index.ts +1 -0
  158. package/src/utils/abi/primary-sale/index.ts +2 -0
  159. package/src/utils/abi/primary-sale/sequence-1155-sales-contract.ts +450 -0
  160. package/src/utils/abi/primary-sale/sequence-721-sales-contract.ts +352 -0
  161. package/src/utils/abi/token/sequence-erc1155-items.ts +454 -0
  162. package/src/utils/fetchContentType.ts +5 -1
  163. package/tsconfig.tsbuildinfo +1 -1
  164. package/dist/chunk-35WWD5V6.js.map +0 -1
  165. package/dist/chunk-4XLXOEXQ.js.map +0 -1
  166. package/dist/chunk-D7RVSZAQ.js +0 -332
  167. package/dist/chunk-D7RVSZAQ.js.map +0 -1
  168. package/dist/chunk-DWTLVJAW.js.map +0 -1
  169. package/dist/chunk-EODKQL6Y.js +0 -76
  170. package/dist/chunk-EODKQL6Y.js.map +0 -1
  171. package/dist/chunk-G3447GIP.js +0 -2880
  172. package/dist/chunk-G3447GIP.js.map +0 -1
  173. package/dist/chunk-HHYNOPPI.js +0 -53
  174. package/dist/chunk-HHYNOPPI.js.map +0 -1
  175. package/dist/chunk-I2BYHDFE.js.map +0 -1
  176. package/dist/chunk-JKCF7HEA.js +0 -1
  177. package/dist/chunk-KGM2WLSP.js.map +0 -1
  178. package/dist/chunk-MAD64DLJ.js +0 -81
  179. package/dist/chunk-MAD64DLJ.js.map +0 -1
  180. package/dist/chunk-N7BPFK46.js +0 -1
  181. package/dist/chunk-O34GCB47.js.map +0 -1
  182. package/dist/chunk-UISBTKFF.js +0 -1
  183. package/dist/chunk-UISBTKFF.js.map +0 -1
  184. package/dist/chunk-YBOFRP65.js +0 -128
  185. package/dist/chunk-YBOFRP65.js.map +0 -1
  186. package/dist/marketplaceConfig-B4Fdsmxu.d.ts +0 -17
  187. package/dist/sdk-config-txlivEKe.d.ts +0 -133
  188. package/dist/types-isjvwapz.d.ts +0 -68
  189. package/src/react/hooks/useCurrencies.tsx +0 -77
  190. package/src/react/ui/components/collectible-card/collectible-asset/CollectibleAsset.tsx +0 -174
  191. /package/dist/{chunk-FMEEJFAF.js.map → chunk-5C6ZZ6WX.js.map} +0 -0
  192. /package/dist/{chunk-YEGD7PWE.js.map → chunk-5O44EPXZ.js.map} +0 -0
  193. /package/dist/{chunk-JKCF7HEA.js.map → chunk-6CTFVBKU.js.map} +0 -0
  194. /package/dist/{chunk-Y63BOO6M.js.map → chunk-LECCEZAO.js.map} +0 -0
  195. /package/dist/{chunk-YALXP2PW.js.map → chunk-N7SQWS2R.js.map} +0 -0
  196. /package/dist/{chunk-N7BPFK46.js.map → utils/abi/primary-sale/index.js.map} +0 -0
@@ -0,0 +1,450 @@
1
+ export const ERC1155_SALES_CONTRACT_ABI = [
2
+ {
3
+ type: 'function',
4
+ name: 'DEFAULT_ADMIN_ROLE',
5
+ inputs: [],
6
+ outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
7
+ stateMutability: 'view',
8
+ },
9
+ {
10
+ type: 'function',
11
+ name: 'checkMerkleProof',
12
+ inputs: [
13
+ { name: 'root', type: 'bytes32', internalType: 'bytes32' },
14
+ { name: 'proof', type: 'bytes32[]', internalType: 'bytes32[]' },
15
+ { name: 'addr', type: 'address', internalType: 'address' },
16
+ { name: 'salt', type: 'bytes32', internalType: 'bytes32' },
17
+ ],
18
+ outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
19
+ stateMutability: 'view',
20
+ },
21
+ {
22
+ type: 'function',
23
+ name: 'getRoleAdmin',
24
+ inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
25
+ outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
26
+ stateMutability: 'view',
27
+ },
28
+ {
29
+ type: 'function',
30
+ name: 'getRoleMember',
31
+ inputs: [
32
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
33
+ { name: 'index', type: 'uint256', internalType: 'uint256' },
34
+ ],
35
+ outputs: [{ name: '', type: 'address', internalType: 'address' }],
36
+ stateMutability: 'view',
37
+ },
38
+ {
39
+ type: 'function',
40
+ name: 'getRoleMemberCount',
41
+ inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
42
+ outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
43
+ stateMutability: 'view',
44
+ },
45
+ {
46
+ type: 'function',
47
+ name: 'globalSaleDetails',
48
+ inputs: [],
49
+ outputs: [
50
+ {
51
+ name: '',
52
+ type: 'tuple',
53
+ internalType: 'struct IERC1155SaleFunctions.SaleDetails',
54
+ components: [
55
+ { name: 'cost', type: 'uint256', internalType: 'uint256' },
56
+ {
57
+ name: 'supplyCap',
58
+ type: 'uint256',
59
+ internalType: 'uint256',
60
+ },
61
+ { name: 'startTime', type: 'uint64', internalType: 'uint64' },
62
+ { name: 'endTime', type: 'uint64', internalType: 'uint64' },
63
+ {
64
+ name: 'merkleRoot',
65
+ type: 'bytes32',
66
+ internalType: 'bytes32',
67
+ },
68
+ ],
69
+ },
70
+ ],
71
+ stateMutability: 'view',
72
+ },
73
+ {
74
+ type: 'function',
75
+ name: 'grantRole',
76
+ inputs: [
77
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
78
+ { name: 'account', type: 'address', internalType: 'address' },
79
+ ],
80
+ outputs: [],
81
+ stateMutability: 'nonpayable',
82
+ },
83
+ {
84
+ type: 'function',
85
+ name: 'hasRole',
86
+ inputs: [
87
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
88
+ { name: 'account', type: 'address', internalType: 'address' },
89
+ ],
90
+ outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
91
+ stateMutability: 'view',
92
+ },
93
+ {
94
+ type: 'function',
95
+ name: 'initialize',
96
+ inputs: [
97
+ { name: 'owner', type: 'address', internalType: 'address' },
98
+ { name: 'items', type: 'address', internalType: 'address' },
99
+ ],
100
+ outputs: [],
101
+ stateMutability: 'nonpayable',
102
+ },
103
+ {
104
+ type: 'function',
105
+ name: 'mint',
106
+ inputs: [
107
+ { name: 'to', type: 'address', internalType: 'address' },
108
+ {
109
+ name: 'tokenIds',
110
+ type: 'uint256[]',
111
+ internalType: 'uint256[]',
112
+ },
113
+ { name: 'amounts', type: 'uint256[]', internalType: 'uint256[]' },
114
+ { name: 'data', type: 'bytes', internalType: 'bytes' },
115
+ {
116
+ name: 'expectedPaymentToken',
117
+ type: 'address',
118
+ internalType: 'address',
119
+ },
120
+ { name: 'maxTotal', type: 'uint256', internalType: 'uint256' },
121
+ { name: 'proof', type: 'bytes32[]', internalType: 'bytes32[]' },
122
+ ],
123
+ outputs: [],
124
+ stateMutability: 'payable',
125
+ },
126
+ {
127
+ type: 'function',
128
+ name: 'paymentToken',
129
+ inputs: [],
130
+ outputs: [{ name: '', type: 'address', internalType: 'address' }],
131
+ stateMutability: 'view',
132
+ },
133
+ {
134
+ type: 'function',
135
+ name: 'renounceRole',
136
+ inputs: [
137
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
138
+ { name: 'account', type: 'address', internalType: 'address' },
139
+ ],
140
+ outputs: [],
141
+ stateMutability: 'nonpayable',
142
+ },
143
+ {
144
+ type: 'function',
145
+ name: 'revokeRole',
146
+ inputs: [
147
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
148
+ { name: 'account', type: 'address', internalType: 'address' },
149
+ ],
150
+ outputs: [],
151
+ stateMutability: 'nonpayable',
152
+ },
153
+ {
154
+ type: 'function',
155
+ name: 'setGlobalSaleDetails',
156
+ inputs: [
157
+ { name: 'cost', type: 'uint256', internalType: 'uint256' },
158
+ { name: 'supplyCap', type: 'uint256', internalType: 'uint256' },
159
+ { name: 'startTime', type: 'uint64', internalType: 'uint64' },
160
+ { name: 'endTime', type: 'uint64', internalType: 'uint64' },
161
+ { name: 'merkleRoot', type: 'bytes32', internalType: 'bytes32' },
162
+ ],
163
+ outputs: [],
164
+ stateMutability: 'nonpayable',
165
+ },
166
+ {
167
+ type: 'function',
168
+ name: 'setPaymentToken',
169
+ inputs: [
170
+ {
171
+ name: 'paymentTokenAddr',
172
+ type: 'address',
173
+ internalType: 'address',
174
+ },
175
+ ],
176
+ outputs: [],
177
+ stateMutability: 'nonpayable',
178
+ },
179
+ {
180
+ type: 'function',
181
+ name: 'setTokenSaleDetails',
182
+ inputs: [
183
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
184
+ { name: 'cost', type: 'uint256', internalType: 'uint256' },
185
+ { name: 'supplyCap', type: 'uint256', internalType: 'uint256' },
186
+ { name: 'startTime', type: 'uint64', internalType: 'uint64' },
187
+ { name: 'endTime', type: 'uint64', internalType: 'uint64' },
188
+ { name: 'merkleRoot', type: 'bytes32', internalType: 'bytes32' },
189
+ ],
190
+ outputs: [],
191
+ stateMutability: 'nonpayable',
192
+ },
193
+ {
194
+ type: 'function',
195
+ name: 'supportsInterface',
196
+ inputs: [{ name: 'interfaceId', type: 'bytes4', internalType: 'bytes4' }],
197
+ outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
198
+ stateMutability: 'view',
199
+ },
200
+ {
201
+ type: 'function',
202
+ name: 'tokenSaleDetails',
203
+ inputs: [{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }],
204
+ outputs: [
205
+ {
206
+ name: '',
207
+ type: 'tuple',
208
+ internalType: 'struct IERC1155SaleFunctions.SaleDetails',
209
+ components: [
210
+ { name: 'cost', type: 'uint256', internalType: 'uint256' },
211
+ {
212
+ name: 'supplyCap',
213
+ type: 'uint256',
214
+ internalType: 'uint256',
215
+ },
216
+ { name: 'startTime', type: 'uint64', internalType: 'uint64' },
217
+ { name: 'endTime', type: 'uint64', internalType: 'uint64' },
218
+ {
219
+ name: 'merkleRoot',
220
+ type: 'bytes32',
221
+ internalType: 'bytes32',
222
+ },
223
+ ],
224
+ },
225
+ ],
226
+ stateMutability: 'view',
227
+ },
228
+ {
229
+ type: 'function',
230
+ name: 'withdrawERC20',
231
+ inputs: [
232
+ { name: 'token', type: 'address', internalType: 'address' },
233
+ { name: 'to', type: 'address', internalType: 'address' },
234
+ { name: 'value', type: 'uint256', internalType: 'uint256' },
235
+ ],
236
+ outputs: [],
237
+ stateMutability: 'nonpayable',
238
+ },
239
+ {
240
+ type: 'function',
241
+ name: 'withdrawETH',
242
+ inputs: [
243
+ { name: 'to', type: 'address', internalType: 'address' },
244
+ { name: 'value', type: 'uint256', internalType: 'uint256' },
245
+ ],
246
+ outputs: [],
247
+ stateMutability: 'nonpayable',
248
+ },
249
+ {
250
+ type: 'event',
251
+ name: 'GlobalSaleDetailsUpdated',
252
+ inputs: [
253
+ {
254
+ name: 'cost',
255
+ type: 'uint256',
256
+ indexed: false,
257
+ internalType: 'uint256',
258
+ },
259
+ {
260
+ name: 'supplyCap',
261
+ type: 'uint256',
262
+ indexed: false,
263
+ internalType: 'uint256',
264
+ },
265
+ {
266
+ name: 'startTime',
267
+ type: 'uint64',
268
+ indexed: false,
269
+ internalType: 'uint64',
270
+ },
271
+ {
272
+ name: 'endTime',
273
+ type: 'uint64',
274
+ indexed: false,
275
+ internalType: 'uint64',
276
+ },
277
+ {
278
+ name: 'merkleRoot',
279
+ type: 'bytes32',
280
+ indexed: false,
281
+ internalType: 'bytes32',
282
+ },
283
+ ],
284
+ anonymous: false,
285
+ },
286
+ {
287
+ type: 'event',
288
+ name: 'RoleAdminChanged',
289
+ inputs: [
290
+ {
291
+ name: 'role',
292
+ type: 'bytes32',
293
+ indexed: true,
294
+ internalType: 'bytes32',
295
+ },
296
+ {
297
+ name: 'previousAdminRole',
298
+ type: 'bytes32',
299
+ indexed: true,
300
+ internalType: 'bytes32',
301
+ },
302
+ {
303
+ name: 'newAdminRole',
304
+ type: 'bytes32',
305
+ indexed: true,
306
+ internalType: 'bytes32',
307
+ },
308
+ ],
309
+ anonymous: false,
310
+ },
311
+ {
312
+ type: 'event',
313
+ name: 'RoleGranted',
314
+ inputs: [
315
+ {
316
+ name: 'role',
317
+ type: 'bytes32',
318
+ indexed: true,
319
+ internalType: 'bytes32',
320
+ },
321
+ {
322
+ name: 'account',
323
+ type: 'address',
324
+ indexed: true,
325
+ internalType: 'address',
326
+ },
327
+ {
328
+ name: 'sender',
329
+ type: 'address',
330
+ indexed: true,
331
+ internalType: 'address',
332
+ },
333
+ ],
334
+ anonymous: false,
335
+ },
336
+ {
337
+ type: 'event',
338
+ name: 'RoleRevoked',
339
+ inputs: [
340
+ {
341
+ name: 'role',
342
+ type: 'bytes32',
343
+ indexed: true,
344
+ internalType: 'bytes32',
345
+ },
346
+ {
347
+ name: 'account',
348
+ type: 'address',
349
+ indexed: true,
350
+ internalType: 'address',
351
+ },
352
+ {
353
+ name: 'sender',
354
+ type: 'address',
355
+ indexed: true,
356
+ internalType: 'address',
357
+ },
358
+ ],
359
+ anonymous: false,
360
+ },
361
+ {
362
+ type: 'event',
363
+ name: 'TokenSaleDetailsUpdated',
364
+ inputs: [
365
+ {
366
+ name: 'tokenId',
367
+ type: 'uint256',
368
+ indexed: false,
369
+ internalType: 'uint256',
370
+ },
371
+ {
372
+ name: 'cost',
373
+ type: 'uint256',
374
+ indexed: false,
375
+ internalType: 'uint256',
376
+ },
377
+ {
378
+ name: 'supplyCap',
379
+ type: 'uint256',
380
+ indexed: false,
381
+ internalType: 'uint256',
382
+ },
383
+ {
384
+ name: 'startTime',
385
+ type: 'uint64',
386
+ indexed: false,
387
+ internalType: 'uint64',
388
+ },
389
+ {
390
+ name: 'endTime',
391
+ type: 'uint64',
392
+ indexed: false,
393
+ internalType: 'uint64',
394
+ },
395
+ {
396
+ name: 'merkleRoot',
397
+ type: 'bytes32',
398
+ indexed: false,
399
+ internalType: 'bytes32',
400
+ },
401
+ ],
402
+ anonymous: false,
403
+ },
404
+ { type: 'error', name: 'GlobalSaleInactive', inputs: [] },
405
+ {
406
+ type: 'error',
407
+ name: 'InsufficientPayment',
408
+ inputs: [
409
+ { name: 'currency', type: 'address', internalType: 'address' },
410
+ { name: 'expected', type: 'uint256', internalType: 'uint256' },
411
+ { name: 'actual', type: 'uint256', internalType: 'uint256' },
412
+ ],
413
+ },
414
+ {
415
+ type: 'error',
416
+ name: 'InsufficientSupply',
417
+ inputs: [
418
+ {
419
+ name: 'currentSupply',
420
+ type: 'uint256',
421
+ internalType: 'uint256',
422
+ },
423
+ {
424
+ name: 'requestedAmount',
425
+ type: 'uint256',
426
+ internalType: 'uint256',
427
+ },
428
+ { name: 'maxSupply', type: 'uint256', internalType: 'uint256' },
429
+ ],
430
+ },
431
+ { type: 'error', name: 'InvalidInitialization', inputs: [] },
432
+ { type: 'error', name: 'InvalidSaleDetails', inputs: [] },
433
+ { type: 'error', name: 'InvalidTokenIds', inputs: [] },
434
+ {
435
+ type: 'error',
436
+ name: 'MerkleProofInvalid',
437
+ inputs: [
438
+ { name: 'root', type: 'bytes32', internalType: 'bytes32' },
439
+ { name: 'proof', type: 'bytes32[]', internalType: 'bytes32[]' },
440
+ { name: 'addr', type: 'address', internalType: 'address' },
441
+ { name: 'salt', type: 'bytes32', internalType: 'bytes32' },
442
+ ],
443
+ },
444
+ {
445
+ type: 'error',
446
+ name: 'SaleInactive',
447
+ inputs: [{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }],
448
+ },
449
+ { type: 'error', name: 'WithdrawFailed', inputs: [] },
450
+ ] as const;