@0xsequence/marketplace-sdk 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/dist/chess-tile-6BS5MQT5.png +0 -0
  2. package/dist/chunk-22NLQ3AS.js +3078 -0
  3. package/dist/chunk-22NLQ3AS.js.map +1 -0
  4. package/dist/chunk-3OHM45R3.js +1294 -0
  5. package/dist/chunk-3OHM45R3.js.map +1 -0
  6. package/dist/{chunk-4E34HVSA.js → chunk-4YU2UPYH.js} +29 -74
  7. package/dist/chunk-4YU2UPYH.js.map +1 -0
  8. package/dist/chunk-7NJETFMF.js +21 -0
  9. package/dist/chunk-7NJETFMF.js.map +1 -0
  10. package/dist/{chunk-UYRQ5MJQ.js → chunk-FUM4OGOQ.js} +4 -4
  11. package/dist/chunk-FUM4OGOQ.js.map +1 -0
  12. package/dist/{chunk-FCQCNLFZ.js → chunk-G33554LK.js} +4 -1
  13. package/dist/chunk-G33554LK.js.map +1 -0
  14. package/dist/{chunk-7OO74L2K.js → chunk-GJAKQ5Q3.js} +40 -1
  15. package/dist/chunk-GJAKQ5Q3.js.map +1 -0
  16. package/dist/{chunk-GZIA25G4.js → chunk-GZG2QO64.js} +22 -6
  17. package/dist/chunk-GZG2QO64.js.map +1 -0
  18. package/dist/chunk-MCI3KOSQ.js +2 -0
  19. package/dist/{chunk-5EOVZAKT.js → chunk-O7UQGT43.js} +891 -100
  20. package/dist/chunk-O7UQGT43.js.map +1 -0
  21. package/dist/{chunk-CSN7YD5Q.js → chunk-Q57TEA3Z.js} +20 -2
  22. package/dist/chunk-Q57TEA3Z.js.map +1 -0
  23. package/dist/{chunk-VEX7FDL6.js → chunk-SBVLWSRZ.js} +2 -2
  24. package/dist/{chunk-VEX7FDL6.js.map → chunk-SBVLWSRZ.js.map} +1 -1
  25. package/dist/{chunk-6S4FYXP6.js → chunk-SPW24Y7I.js} +40 -1
  26. package/dist/chunk-SPW24Y7I.js.map +1 -0
  27. package/dist/chunk-UISBTKFF.js +1 -0
  28. package/dist/{chunk-LFQB477Y.js → chunk-WA433WAJ.js} +9 -33
  29. package/dist/chunk-WA433WAJ.js.map +1 -0
  30. package/dist/{chunk-O5JXKTWP.js → chunk-WFE6OCYF.js} +4 -4
  31. package/dist/chunk-WFE6OCYF.js.map +1 -0
  32. package/dist/chunk-XX4EVWBF.js +1292 -0
  33. package/dist/chunk-XX4EVWBF.js.map +1 -0
  34. package/dist/chunk-Y7YO5TLE.js +53 -0
  35. package/dist/chunk-Y7YO5TLE.js.map +1 -0
  36. package/dist/index.css +1 -50
  37. package/dist/index.d.ts +5 -7
  38. package/dist/index.js +158 -73
  39. package/dist/index.js.map +1 -1
  40. package/dist/{marketplace.gen-Ceofb9Cs.d.ts → marketplace.gen-BLP7822q.d.ts} +17 -5
  41. package/dist/react/_internal/api/index.d.ts +4 -2
  42. package/dist/react/_internal/api/index.js +1 -1
  43. package/dist/react/_internal/index.d.ts +3 -3
  44. package/dist/react/_internal/index.js +7 -7
  45. package/dist/react/hooks/index.css +82 -0
  46. package/dist/react/hooks/index.css.map +1 -0
  47. package/dist/react/hooks/index.d.ts +577 -427
  48. package/dist/react/hooks/index.js +39 -7
  49. package/dist/react/index.css +86 -81
  50. package/dist/react/index.css.map +1 -1
  51. package/dist/react/index.d.ts +6 -5
  52. package/dist/react/index.js +49 -16
  53. package/dist/react/ssr/index.js +4 -3
  54. package/dist/react/ssr/index.js.map +1 -1
  55. package/dist/react/ui/components/index.css +241 -0
  56. package/dist/react/ui/components/index.css.map +1 -0
  57. package/dist/react/ui/components/index.d.ts +23 -0
  58. package/dist/react/ui/components/index.js +25 -0
  59. package/dist/react/ui/icons/index.js +3 -2
  60. package/dist/react/ui/icons/index.js.map +1 -1
  61. package/dist/react/ui/index.css +86 -81
  62. package/dist/react/ui/index.css.map +1 -1
  63. package/dist/react/ui/index.d.ts +34 -33
  64. package/dist/react/ui/index.js +17 -12
  65. package/dist/react/ui/modals/_internal/components/actionModal/index.js +6 -17
  66. package/dist/react/ui/modals/_internal/components/actionModal/index.js.map +1 -1
  67. package/dist/react/ui/styles/index.d.ts +1 -1
  68. package/dist/{services-Dei25J6_.d.ts → services-C9-lvWcC.d.ts} +1 -1
  69. package/dist/styles/index.css +1 -50
  70. package/dist/styles/index.css.map +1 -1
  71. package/dist/styles/index.d.ts +1 -5
  72. package/dist/styles/index.js +10 -12
  73. package/dist/types/index.d.ts +2 -2
  74. package/dist/types/index.js +2 -2
  75. package/dist/{types-BzZVURNL.d.ts → types-QqXjNuUP.d.ts} +1 -1
  76. package/dist/utils/abi/index.d.ts +2 -0
  77. package/dist/utils/abi/index.js +21 -0
  78. package/dist/utils/abi/marketplace/index.d.ts +805 -0
  79. package/dist/utils/abi/marketplace/index.js +12 -0
  80. package/dist/utils/abi/{abi/token → token}/index.js +1 -2
  81. package/dist/utils/abi/token/index.js.map +1 -0
  82. package/dist/utils/index.d.ts +7 -7
  83. package/dist/utils/index.js +12 -14
  84. package/package.json +17 -15
  85. package/src/react/_internal/api/get-query-client.ts +3 -3
  86. package/src/react/_internal/api/marketplace.gen.ts +34 -10
  87. package/src/react/_internal/api/query-keys.ts +8 -0
  88. package/src/react/_internal/transaction-machine/execute-transaction.ts +592 -0
  89. package/src/react/_internal/transaction-machine/useTransactionMachine.ts +66 -0
  90. package/src/react/hooks/index.ts +7 -0
  91. package/src/react/hooks/useBuyCollectable.tsx +38 -0
  92. package/src/react/hooks/useCancelOrder.tsx +38 -0
  93. package/src/react/hooks/useCheckoutOptions.tsx +46 -43
  94. package/src/react/hooks/useCountOfCollectables.tsx +52 -52
  95. package/src/react/hooks/useCreateListing.tsx +65 -0
  96. package/src/react/hooks/useCurrencies.tsx +60 -60
  97. package/src/react/hooks/useCurrency.tsx +64 -0
  98. package/src/react/hooks/useGenerateBuyTransaction.tsx +71 -0
  99. package/src/react/hooks/useGenerateCancelTransaction.tsx +50 -0
  100. package/src/react/hooks/useListBalances.tsx +2 -3
  101. package/src/react/hooks/useListCollectibles.tsx +5 -6
  102. package/src/react/hooks/useListCollections.tsx +88 -0
  103. package/src/react/hooks/useListListingsForCollectible.tsx +61 -0
  104. package/src/react/hooks/useListOffersForCollectible.tsx +14 -16
  105. package/src/react/hooks/useMakeOffer.tsx +62 -0
  106. package/src/react/hooks/useRoyaltyPercentage.tsx +1 -1
  107. package/src/react/hooks/useSell.tsx +62 -0
  108. package/src/react/ui/components/_internals/action-button/ActionButton.tsx +156 -0
  109. package/src/react/ui/components/_internals/custom-network-image/CustomNetworkImage.tsx +27 -0
  110. package/src/react/ui/components/_internals/custom-network-image/styles.css.ts +51 -0
  111. package/src/react/ui/components/_internals/custom-select/CustomSelect.tsx +63 -0
  112. package/src/react/ui/components/_internals/custom-select/styles.css.ts +64 -0
  113. package/src/react/ui/components/_internals/pill/Pill.tsx +20 -0
  114. package/src/react/ui/components/collectible-card/CollectibleCard.tsx +191 -0
  115. package/src/react/ui/components/collectible-card/Footer.tsx +128 -0
  116. package/src/react/ui/components/collectible-card/styles.css.ts +62 -0
  117. package/src/react/ui/components/index.ts +1 -0
  118. package/src/react/ui/icons/Bell.tsx +31 -0
  119. package/src/react/ui/icons/DiamondEye.tsx +31 -0
  120. package/src/react/ui/images/chess-tile.png +0 -0
  121. package/src/react/ui/index.ts +4 -0
  122. package/src/react/ui/modals/BuyModal/_store.ts +53 -0
  123. package/src/react/ui/modals/BuyModal/index.tsx +119 -0
  124. package/src/react/ui/modals/CreateListingModal/_store.ts +35 -312
  125. package/src/react/ui/modals/CreateListingModal/index.tsx +216 -157
  126. package/src/react/ui/modals/MakeOfferModal/_store.ts +34 -276
  127. package/src/react/ui/modals/MakeOfferModal/index.tsx +195 -136
  128. package/src/react/ui/modals/SellModal/_store.ts +29 -262
  129. package/src/react/ui/modals/SellModal/index.tsx +156 -122
  130. package/src/react/ui/modals/SuccessfulPurchaseModal/_store.ts +17 -3
  131. package/src/react/ui/modals/SuccessfulPurchaseModal/index.tsx +3 -2
  132. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +92 -92
  133. package/src/react/ui/modals/TransferModal/index.tsx +10 -17
  134. package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +1 -0
  135. package/src/react/ui/modals/_internal/components/actionModal/ErrorModal.tsx +18 -0
  136. package/src/react/ui/modals/_internal/components/actionModal/LoadingModal.tsx +18 -0
  137. package/src/react/ui/modals/_internal/components/calendarPopover/index.tsx +1 -0
  138. package/src/react/ui/modals/_internal/components/calendarPopover/overrides.css +8 -0
  139. package/src/react/ui/modals/_internal/components/calendarPopover/styles.css.ts +10 -4
  140. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +10 -13
  141. package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +23 -9
  142. package/src/react/ui/modals/_internal/components/priceInput/index.tsx +7 -18
  143. package/src/react/ui/modals/_internal/components/switchChainModal/index.tsx +17 -44
  144. package/src/react/ui/modals/_internal/components/switchChainModal/store.ts +10 -8
  145. package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +14 -3
  146. package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +4 -2
  147. package/src/react/ui/modals/_internal/components/transactionHeader/index.tsx +4 -4
  148. package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +4 -2
  149. package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +13 -10
  150. package/src/react/ui/modals/_internal/types.ts +13 -0
  151. package/src/react/ui/modals/modal-provider.tsx +2 -1
  152. package/src/styles/index.ts +0 -2
  153. package/src/types/custom.d.ts +1 -0
  154. package/src/utils/abi/index.ts +2 -0
  155. package/src/utils/abi/marketplace/index.ts +3 -0
  156. package/src/utils/abi/marketplace/sequence-marketplace-v1.ts +463 -0
  157. package/src/utils/abi/marketplace/sequence-marketplace-v2.ts +802 -0
  158. package/src/utils/index.ts +2 -3
  159. package/src/utils/network.ts +4 -2
  160. package/tsconfig.tsbuildinfo +1 -1
  161. package/dist/chunk-4E34HVSA.js.map +0 -1
  162. package/dist/chunk-5EOVZAKT.js.map +0 -1
  163. package/dist/chunk-6JWGELXL.js +0 -214
  164. package/dist/chunk-6JWGELXL.js.map +0 -1
  165. package/dist/chunk-6S4FYXP6.js.map +0 -1
  166. package/dist/chunk-7OO74L2K.js.map +0 -1
  167. package/dist/chunk-BCNFYVAL.js +0 -1
  168. package/dist/chunk-CSN7YD5Q.js.map +0 -1
  169. package/dist/chunk-D7QQP6MS.js +0 -2
  170. package/dist/chunk-DBFOPEV6.js +0 -23
  171. package/dist/chunk-DBFOPEV6.js.map +0 -1
  172. package/dist/chunk-FCQCNLFZ.js.map +0 -1
  173. package/dist/chunk-GZIA25G4.js.map +0 -1
  174. package/dist/chunk-LFQB477Y.js.map +0 -1
  175. package/dist/chunk-MD4JHPMH.js +0 -2815
  176. package/dist/chunk-MD4JHPMH.js.map +0 -1
  177. package/dist/chunk-O5JXKTWP.js.map +0 -1
  178. package/dist/chunk-PE2LLUTJ.js +0 -213
  179. package/dist/chunk-PE2LLUTJ.js.map +0 -1
  180. package/dist/chunk-QVFMD6S2.js +0 -21
  181. package/dist/chunk-QVFMD6S2.js.map +0 -1
  182. package/dist/chunk-UYRQ5MJQ.js.map +0 -1
  183. package/dist/utils/abi/abi/standard/index.d.ts +0 -25
  184. package/dist/utils/abi/abi/standard/index.js +0 -8
  185. package/dist/utils/abi/clients/index.d.ts +0 -27
  186. package/dist/utils/abi/clients/index.js +0 -13
  187. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/styles.css.ts +0 -33
  188. package/src/react/ui/modals/_internal/components/expirationDateSelect/styles.css.ts +0 -25
  189. package/src/utils/abi/abi/standard/index.ts +0 -1
  190. package/src/utils/abi/clients/ERC1155.ts +0 -82
  191. package/src/utils/abi/clients/ERC20.ts +0 -101
  192. package/src/utils/abi/clients/ERC721.ts +0 -97
  193. package/src/utils/abi/clients/index.ts +0 -3
  194. /package/dist/{chunk-BCNFYVAL.js.map → chunk-MCI3KOSQ.js.map} +0 -0
  195. /package/dist/{chunk-D7QQP6MS.js.map → chunk-UISBTKFF.js.map} +0 -0
  196. /package/dist/{utils/abi/abi/standard → react/ui/components}/index.js.map +0 -0
  197. /package/dist/utils/abi/{abi/token/index.js.map → index.js.map} +0 -0
  198. /package/dist/utils/abi/{clients → marketplace}/index.js.map +0 -0
  199. /package/dist/utils/abi/{abi/token → token}/index.d.ts +0 -0
  200. /package/src/utils/abi/{abi/standard → marketplace}/EIP2981.ts +0 -0
  201. /package/src/utils/abi/{abi/token → token}/ERC1155.ts +0 -0
  202. /package/src/utils/abi/{abi/token → token}/ERC20.ts +0 -0
  203. /package/src/utils/abi/{abi/token → token}/ERC721.ts +0 -0
  204. /package/src/utils/abi/{abi/token → token}/index.ts +0 -0
@@ -0,0 +1,802 @@
1
+ export const SequenceMarketplaceV2_ABI = [
2
+ { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
3
+ {
4
+ type: 'function',
5
+ name: 'acceptRequest',
6
+ inputs: [
7
+ { name: 'requestId', type: 'uint256', internalType: 'uint256' },
8
+ { name: 'quantity', type: 'uint256', internalType: 'uint256' },
9
+ { name: 'recipient', type: 'address', internalType: 'address' },
10
+ {
11
+ name: 'additionalFees',
12
+ type: 'uint256[]',
13
+ internalType: 'uint256[]',
14
+ },
15
+ {
16
+ name: 'additionalFeeRecipients',
17
+ type: 'address[]',
18
+ internalType: 'address[]',
19
+ },
20
+ ],
21
+ outputs: [],
22
+ stateMutability: 'payable',
23
+ },
24
+ {
25
+ type: 'function',
26
+ name: 'acceptRequestBatch',
27
+ inputs: [
28
+ {
29
+ name: 'requestIds',
30
+ type: 'uint256[]',
31
+ internalType: 'uint256[]',
32
+ },
33
+ {
34
+ name: 'quantities',
35
+ type: 'uint256[]',
36
+ internalType: 'uint256[]',
37
+ },
38
+ {
39
+ name: 'recipients',
40
+ type: 'address[]',
41
+ internalType: 'address[]',
42
+ },
43
+ {
44
+ name: 'additionalFees',
45
+ type: 'uint256[]',
46
+ internalType: 'uint256[]',
47
+ },
48
+ {
49
+ name: 'additionalFeeRecipients',
50
+ type: 'address[]',
51
+ internalType: 'address[]',
52
+ },
53
+ ],
54
+ outputs: [],
55
+ stateMutability: 'nonpayable',
56
+ },
57
+ {
58
+ type: 'function',
59
+ name: 'cancelRequest',
60
+ inputs: [{ name: 'requestId', type: 'uint256', internalType: 'uint256' }],
61
+ outputs: [],
62
+ stateMutability: 'nonpayable',
63
+ },
64
+ {
65
+ type: 'function',
66
+ name: 'cancelRequestBatch',
67
+ inputs: [
68
+ {
69
+ name: 'requestIds',
70
+ type: 'uint256[]',
71
+ internalType: 'uint256[]',
72
+ },
73
+ ],
74
+ outputs: [],
75
+ stateMutability: 'nonpayable',
76
+ },
77
+ {
78
+ type: 'function',
79
+ name: 'createRequest',
80
+ inputs: [
81
+ {
82
+ name: 'request',
83
+ type: 'tuple',
84
+ internalType: 'struct ISequenceMarketStorage.RequestParams',
85
+ components: [
86
+ { name: 'isListing', type: 'bool', internalType: 'bool' },
87
+ { name: 'isERC1155', type: 'bool', internalType: 'bool' },
88
+ {
89
+ name: 'tokenContract',
90
+ type: 'address',
91
+ internalType: 'address',
92
+ },
93
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
94
+ {
95
+ name: 'quantity',
96
+ type: 'uint256',
97
+ internalType: 'uint256',
98
+ },
99
+ { name: 'expiry', type: 'uint96', internalType: 'uint96' },
100
+ {
101
+ name: 'currency',
102
+ type: 'address',
103
+ internalType: 'address',
104
+ },
105
+ {
106
+ name: 'pricePerToken',
107
+ type: 'uint256',
108
+ internalType: 'uint256',
109
+ },
110
+ ],
111
+ },
112
+ ],
113
+ outputs: [{ name: 'requestId', type: 'uint256', internalType: 'uint256' }],
114
+ stateMutability: 'nonpayable',
115
+ },
116
+ {
117
+ type: 'function',
118
+ name: 'createRequestBatch',
119
+ inputs: [
120
+ {
121
+ name: 'requests',
122
+ type: 'tuple[]',
123
+ internalType: 'struct ISequenceMarketStorage.RequestParams[]',
124
+ components: [
125
+ { name: 'isListing', type: 'bool', internalType: 'bool' },
126
+ { name: 'isERC1155', type: 'bool', internalType: 'bool' },
127
+ {
128
+ name: 'tokenContract',
129
+ type: 'address',
130
+ internalType: 'address',
131
+ },
132
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
133
+ {
134
+ name: 'quantity',
135
+ type: 'uint256',
136
+ internalType: 'uint256',
137
+ },
138
+ { name: 'expiry', type: 'uint96', internalType: 'uint96' },
139
+ {
140
+ name: 'currency',
141
+ type: 'address',
142
+ internalType: 'address',
143
+ },
144
+ {
145
+ name: 'pricePerToken',
146
+ type: 'uint256',
147
+ internalType: 'uint256',
148
+ },
149
+ ],
150
+ },
151
+ ],
152
+ outputs: [
153
+ {
154
+ name: 'requestIds',
155
+ type: 'uint256[]',
156
+ internalType: 'uint256[]',
157
+ },
158
+ ],
159
+ stateMutability: 'nonpayable',
160
+ },
161
+ {
162
+ type: 'function',
163
+ name: 'customRoyalties',
164
+ inputs: [{ name: '', type: 'address', internalType: 'address' }],
165
+ outputs: [
166
+ { name: 'recipient', type: 'address', internalType: 'address' },
167
+ { name: 'fee', type: 'uint96', internalType: 'uint96' },
168
+ ],
169
+ stateMutability: 'view',
170
+ },
171
+ {
172
+ type: 'function',
173
+ name: 'getRequest',
174
+ inputs: [{ name: 'requestId', type: 'uint256', internalType: 'uint256' }],
175
+ outputs: [
176
+ {
177
+ name: 'request',
178
+ type: 'tuple',
179
+ internalType: 'struct ISequenceMarketStorage.Request',
180
+ components: [
181
+ { name: 'creator', type: 'address', internalType: 'address' },
182
+ { name: 'isListing', type: 'bool', internalType: 'bool' },
183
+ { name: 'isERC1155', type: 'bool', internalType: 'bool' },
184
+ {
185
+ name: 'tokenContract',
186
+ type: 'address',
187
+ internalType: 'address',
188
+ },
189
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
190
+ {
191
+ name: 'quantity',
192
+ type: 'uint256',
193
+ internalType: 'uint256',
194
+ },
195
+ { name: 'expiry', type: 'uint96', internalType: 'uint96' },
196
+ {
197
+ name: 'currency',
198
+ type: 'address',
199
+ internalType: 'address',
200
+ },
201
+ {
202
+ name: 'pricePerToken',
203
+ type: 'uint256',
204
+ internalType: 'uint256',
205
+ },
206
+ ],
207
+ },
208
+ ],
209
+ stateMutability: 'view',
210
+ },
211
+ {
212
+ type: 'function',
213
+ name: 'getRequestBatch',
214
+ inputs: [
215
+ {
216
+ name: 'requestIds',
217
+ type: 'uint256[]',
218
+ internalType: 'uint256[]',
219
+ },
220
+ ],
221
+ outputs: [
222
+ {
223
+ name: 'requests',
224
+ type: 'tuple[]',
225
+ internalType: 'struct ISequenceMarketStorage.Request[]',
226
+ components: [
227
+ { name: 'creator', type: 'address', internalType: 'address' },
228
+ { name: 'isListing', type: 'bool', internalType: 'bool' },
229
+ { name: 'isERC1155', type: 'bool', internalType: 'bool' },
230
+ {
231
+ name: 'tokenContract',
232
+ type: 'address',
233
+ internalType: 'address',
234
+ },
235
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
236
+ {
237
+ name: 'quantity',
238
+ type: 'uint256',
239
+ internalType: 'uint256',
240
+ },
241
+ { name: 'expiry', type: 'uint96', internalType: 'uint96' },
242
+ {
243
+ name: 'currency',
244
+ type: 'address',
245
+ internalType: 'address',
246
+ },
247
+ {
248
+ name: 'pricePerToken',
249
+ type: 'uint256',
250
+ internalType: 'uint256',
251
+ },
252
+ ],
253
+ },
254
+ ],
255
+ stateMutability: 'view',
256
+ },
257
+ {
258
+ type: 'function',
259
+ name: 'getRoyaltyInfo',
260
+ inputs: [
261
+ {
262
+ name: 'tokenContract',
263
+ type: 'address',
264
+ internalType: 'address',
265
+ },
266
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
267
+ { name: 'cost', type: 'uint256', internalType: 'uint256' },
268
+ ],
269
+ outputs: [
270
+ { name: 'recipient', type: 'address', internalType: 'address' },
271
+ { name: 'royalty', type: 'uint256', internalType: 'uint256' },
272
+ ],
273
+ stateMutability: 'view',
274
+ },
275
+ {
276
+ type: 'function',
277
+ name: 'initialize',
278
+ inputs: [{ name: '_owner', type: 'address', internalType: 'address' }],
279
+ outputs: [],
280
+ stateMutability: 'nonpayable',
281
+ },
282
+ {
283
+ type: 'function',
284
+ name: 'invalidBeforeId',
285
+ inputs: [{ name: '', type: 'address', internalType: 'address' }],
286
+ outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
287
+ stateMutability: 'view',
288
+ },
289
+ {
290
+ type: 'function',
291
+ name: 'invalidTokenBeforeId',
292
+ inputs: [
293
+ { name: '', type: 'address', internalType: 'address' },
294
+ { name: '', type: 'address', internalType: 'address' },
295
+ ],
296
+ outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
297
+ stateMutability: 'view',
298
+ },
299
+ {
300
+ type: 'function',
301
+ name: 'invalidateRequests',
302
+ inputs: [],
303
+ outputs: [],
304
+ stateMutability: 'nonpayable',
305
+ },
306
+ {
307
+ type: 'function',
308
+ name: 'invalidateRequests',
309
+ inputs: [
310
+ {
311
+ name: 'tokenContract',
312
+ type: 'address',
313
+ internalType: 'address',
314
+ },
315
+ ],
316
+ outputs: [],
317
+ stateMutability: 'nonpayable',
318
+ },
319
+ {
320
+ type: 'function',
321
+ name: 'isRequestValid',
322
+ inputs: [
323
+ { name: 'requestId', type: 'uint256', internalType: 'uint256' },
324
+ { name: 'quantity', type: 'uint256', internalType: 'uint256' },
325
+ ],
326
+ outputs: [
327
+ { name: 'valid', type: 'bool', internalType: 'bool' },
328
+ {
329
+ name: 'request',
330
+ type: 'tuple',
331
+ internalType: 'struct ISequenceMarketStorage.Request',
332
+ components: [
333
+ { name: 'creator', type: 'address', internalType: 'address' },
334
+ { name: 'isListing', type: 'bool', internalType: 'bool' },
335
+ { name: 'isERC1155', type: 'bool', internalType: 'bool' },
336
+ {
337
+ name: 'tokenContract',
338
+ type: 'address',
339
+ internalType: 'address',
340
+ },
341
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
342
+ {
343
+ name: 'quantity',
344
+ type: 'uint256',
345
+ internalType: 'uint256',
346
+ },
347
+ { name: 'expiry', type: 'uint96', internalType: 'uint96' },
348
+ {
349
+ name: 'currency',
350
+ type: 'address',
351
+ internalType: 'address',
352
+ },
353
+ {
354
+ name: 'pricePerToken',
355
+ type: 'uint256',
356
+ internalType: 'uint256',
357
+ },
358
+ ],
359
+ },
360
+ ],
361
+ stateMutability: 'view',
362
+ },
363
+ {
364
+ type: 'function',
365
+ name: 'isRequestValidBatch',
366
+ inputs: [
367
+ {
368
+ name: 'requestIds',
369
+ type: 'uint256[]',
370
+ internalType: 'uint256[]',
371
+ },
372
+ {
373
+ name: 'quantities',
374
+ type: 'uint256[]',
375
+ internalType: 'uint256[]',
376
+ },
377
+ ],
378
+ outputs: [
379
+ { name: 'valid', type: 'bool[]', internalType: 'bool[]' },
380
+ {
381
+ name: 'requests',
382
+ type: 'tuple[]',
383
+ internalType: 'struct ISequenceMarketStorage.Request[]',
384
+ components: [
385
+ { name: 'creator', type: 'address', internalType: 'address' },
386
+ { name: 'isListing', type: 'bool', internalType: 'bool' },
387
+ { name: 'isERC1155', type: 'bool', internalType: 'bool' },
388
+ {
389
+ name: 'tokenContract',
390
+ type: 'address',
391
+ internalType: 'address',
392
+ },
393
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
394
+ {
395
+ name: 'quantity',
396
+ type: 'uint256',
397
+ internalType: 'uint256',
398
+ },
399
+ { name: 'expiry', type: 'uint96', internalType: 'uint96' },
400
+ {
401
+ name: 'currency',
402
+ type: 'address',
403
+ internalType: 'address',
404
+ },
405
+ {
406
+ name: 'pricePerToken',
407
+ type: 'uint256',
408
+ internalType: 'uint256',
409
+ },
410
+ ],
411
+ },
412
+ ],
413
+ stateMutability: 'view',
414
+ },
415
+ {
416
+ type: 'function',
417
+ name: 'owner',
418
+ inputs: [],
419
+ outputs: [{ name: '', type: 'address', internalType: 'address' }],
420
+ stateMutability: 'view',
421
+ },
422
+ {
423
+ type: 'function',
424
+ name: 'proxiableUUID',
425
+ inputs: [],
426
+ outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
427
+ stateMutability: 'view',
428
+ },
429
+ {
430
+ type: 'function',
431
+ name: 'renounceOwnership',
432
+ inputs: [],
433
+ outputs: [],
434
+ stateMutability: 'nonpayable',
435
+ },
436
+ {
437
+ type: 'function',
438
+ name: 'setRoyaltyInfo',
439
+ inputs: [
440
+ {
441
+ name: 'tokenContract',
442
+ type: 'address',
443
+ internalType: 'address',
444
+ },
445
+ { name: 'recipient', type: 'address', internalType: 'address' },
446
+ { name: 'fee', type: 'uint96', internalType: 'uint96' },
447
+ ],
448
+ outputs: [],
449
+ stateMutability: 'nonpayable',
450
+ },
451
+ {
452
+ type: 'function',
453
+ name: 'transferOwnership',
454
+ inputs: [{ name: 'newOwner', type: 'address', internalType: 'address' }],
455
+ outputs: [],
456
+ stateMutability: 'nonpayable',
457
+ },
458
+ {
459
+ type: 'function',
460
+ name: 'upgradeTo',
461
+ inputs: [
462
+ {
463
+ name: 'newImplementation',
464
+ type: 'address',
465
+ internalType: 'address',
466
+ },
467
+ ],
468
+ outputs: [],
469
+ stateMutability: 'nonpayable',
470
+ },
471
+ {
472
+ type: 'function',
473
+ name: 'upgradeToAndCall',
474
+ inputs: [
475
+ {
476
+ name: 'newImplementation',
477
+ type: 'address',
478
+ internalType: 'address',
479
+ },
480
+ { name: 'data', type: 'bytes', internalType: 'bytes' },
481
+ ],
482
+ outputs: [],
483
+ stateMutability: 'payable',
484
+ },
485
+ {
486
+ type: 'event',
487
+ name: 'AdminChanged',
488
+ inputs: [
489
+ {
490
+ name: 'previousAdmin',
491
+ type: 'address',
492
+ indexed: false,
493
+ internalType: 'address',
494
+ },
495
+ {
496
+ name: 'newAdmin',
497
+ type: 'address',
498
+ indexed: false,
499
+ internalType: 'address',
500
+ },
501
+ ],
502
+ anonymous: false,
503
+ },
504
+ {
505
+ type: 'event',
506
+ name: 'BeaconUpgraded',
507
+ inputs: [
508
+ {
509
+ name: 'beacon',
510
+ type: 'address',
511
+ indexed: true,
512
+ internalType: 'address',
513
+ },
514
+ ],
515
+ anonymous: false,
516
+ },
517
+ {
518
+ type: 'event',
519
+ name: 'CustomRoyaltyChanged',
520
+ inputs: [
521
+ {
522
+ name: 'tokenContract',
523
+ type: 'address',
524
+ indexed: true,
525
+ internalType: 'address',
526
+ },
527
+ {
528
+ name: 'recipient',
529
+ type: 'address',
530
+ indexed: false,
531
+ internalType: 'address',
532
+ },
533
+ {
534
+ name: 'fee',
535
+ type: 'uint96',
536
+ indexed: false,
537
+ internalType: 'uint96',
538
+ },
539
+ ],
540
+ anonymous: false,
541
+ },
542
+ {
543
+ type: 'event',
544
+ name: 'Initialized',
545
+ inputs: [
546
+ {
547
+ name: 'version',
548
+ type: 'uint8',
549
+ indexed: false,
550
+ internalType: 'uint8',
551
+ },
552
+ ],
553
+ anonymous: false,
554
+ },
555
+ {
556
+ type: 'event',
557
+ name: 'OwnershipTransferred',
558
+ inputs: [
559
+ {
560
+ name: 'previousOwner',
561
+ type: 'address',
562
+ indexed: true,
563
+ internalType: 'address',
564
+ },
565
+ {
566
+ name: 'newOwner',
567
+ type: 'address',
568
+ indexed: true,
569
+ internalType: 'address',
570
+ },
571
+ ],
572
+ anonymous: false,
573
+ },
574
+ {
575
+ type: 'event',
576
+ name: 'RequestAccepted',
577
+ inputs: [
578
+ {
579
+ name: 'requestId',
580
+ type: 'uint256',
581
+ indexed: true,
582
+ internalType: 'uint256',
583
+ },
584
+ {
585
+ name: 'buyer',
586
+ type: 'address',
587
+ indexed: true,
588
+ internalType: 'address',
589
+ },
590
+ {
591
+ name: 'tokenContract',
592
+ type: 'address',
593
+ indexed: true,
594
+ internalType: 'address',
595
+ },
596
+ {
597
+ name: 'recipient',
598
+ type: 'address',
599
+ indexed: false,
600
+ internalType: 'address',
601
+ },
602
+ {
603
+ name: 'quantity',
604
+ type: 'uint256',
605
+ indexed: false,
606
+ internalType: 'uint256',
607
+ },
608
+ {
609
+ name: 'quantityRemaining',
610
+ type: 'uint256',
611
+ indexed: false,
612
+ internalType: 'uint256',
613
+ },
614
+ ],
615
+ anonymous: false,
616
+ },
617
+ {
618
+ type: 'event',
619
+ name: 'RequestCancelled',
620
+ inputs: [
621
+ {
622
+ name: 'requestId',
623
+ type: 'uint256',
624
+ indexed: true,
625
+ internalType: 'uint256',
626
+ },
627
+ {
628
+ name: 'tokenContract',
629
+ type: 'address',
630
+ indexed: true,
631
+ internalType: 'address',
632
+ },
633
+ ],
634
+ anonymous: false,
635
+ },
636
+ {
637
+ type: 'event',
638
+ name: 'RequestCreated',
639
+ inputs: [
640
+ {
641
+ name: 'requestId',
642
+ type: 'uint256',
643
+ indexed: true,
644
+ internalType: 'uint256',
645
+ },
646
+ {
647
+ name: 'creator',
648
+ type: 'address',
649
+ indexed: true,
650
+ internalType: 'address',
651
+ },
652
+ {
653
+ name: 'tokenContract',
654
+ type: 'address',
655
+ indexed: true,
656
+ internalType: 'address',
657
+ },
658
+ {
659
+ name: 'tokenId',
660
+ type: 'uint256',
661
+ indexed: false,
662
+ internalType: 'uint256',
663
+ },
664
+ {
665
+ name: 'isListing',
666
+ type: 'bool',
667
+ indexed: false,
668
+ internalType: 'bool',
669
+ },
670
+ {
671
+ name: 'quantity',
672
+ type: 'uint256',
673
+ indexed: false,
674
+ internalType: 'uint256',
675
+ },
676
+ {
677
+ name: 'currency',
678
+ type: 'address',
679
+ indexed: false,
680
+ internalType: 'address',
681
+ },
682
+ {
683
+ name: 'pricePerToken',
684
+ type: 'uint256',
685
+ indexed: false,
686
+ internalType: 'uint256',
687
+ },
688
+ {
689
+ name: 'expiry',
690
+ type: 'uint256',
691
+ indexed: false,
692
+ internalType: 'uint256',
693
+ },
694
+ ],
695
+ anonymous: false,
696
+ },
697
+ {
698
+ type: 'event',
699
+ name: 'RequestsInvalidated',
700
+ inputs: [
701
+ {
702
+ name: 'creator',
703
+ type: 'address',
704
+ indexed: true,
705
+ internalType: 'address',
706
+ },
707
+ {
708
+ name: 'invalidatedBefore',
709
+ type: 'uint256',
710
+ indexed: true,
711
+ internalType: 'uint256',
712
+ },
713
+ ],
714
+ anonymous: false,
715
+ },
716
+ {
717
+ type: 'event',
718
+ name: 'RequestsInvalidated',
719
+ inputs: [
720
+ {
721
+ name: 'creator',
722
+ type: 'address',
723
+ indexed: true,
724
+ internalType: 'address',
725
+ },
726
+ {
727
+ name: 'tokenContract',
728
+ type: 'address',
729
+ indexed: true,
730
+ internalType: 'address',
731
+ },
732
+ {
733
+ name: 'invalidatedBefore',
734
+ type: 'uint256',
735
+ indexed: true,
736
+ internalType: 'uint256',
737
+ },
738
+ ],
739
+ anonymous: false,
740
+ },
741
+ {
742
+ type: 'event',
743
+ name: 'Upgraded',
744
+ inputs: [
745
+ {
746
+ name: 'implementation',
747
+ type: 'address',
748
+ indexed: true,
749
+ internalType: 'address',
750
+ },
751
+ ],
752
+ anonymous: false,
753
+ },
754
+ { type: 'error', name: 'InvalidAdditionalFees', inputs: [] },
755
+ { type: 'error', name: 'InvalidBatchRequest', inputs: [] },
756
+ { type: 'error', name: 'InvalidCurrency', inputs: [] },
757
+ {
758
+ type: 'error',
759
+ name: 'InvalidCurrencyApproval',
760
+ inputs: [
761
+ { name: 'currency', type: 'address', internalType: 'address' },
762
+ { name: 'quantity', type: 'uint256', internalType: 'uint256' },
763
+ { name: 'owner', type: 'address', internalType: 'address' },
764
+ ],
765
+ },
766
+ { type: 'error', name: 'InvalidExpiry', inputs: [] },
767
+ { type: 'error', name: 'InvalidPrice', inputs: [] },
768
+ { type: 'error', name: 'InvalidQuantity', inputs: [] },
769
+ {
770
+ type: 'error',
771
+ name: 'InvalidRequestId',
772
+ inputs: [{ name: 'requestId', type: 'uint256', internalType: 'uint256' }],
773
+ },
774
+ { type: 'error', name: 'InvalidRoyalty', inputs: [] },
775
+ {
776
+ type: 'error',
777
+ name: 'InvalidTokenApproval',
778
+ inputs: [
779
+ {
780
+ name: 'tokenContract',
781
+ type: 'address',
782
+ internalType: 'address',
783
+ },
784
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
785
+ { name: 'quantity', type: 'uint256', internalType: 'uint256' },
786
+ { name: 'owner', type: 'address', internalType: 'address' },
787
+ ],
788
+ },
789
+ { type: 'error', name: 'Invalidated', inputs: [] },
790
+ {
791
+ type: 'error',
792
+ name: 'UnsupportedContractInterface',
793
+ inputs: [
794
+ {
795
+ name: 'contractAddress',
796
+ type: 'address',
797
+ internalType: 'address',
798
+ },
799
+ { name: 'interfaceId', type: 'bytes4', internalType: 'bytes4' },
800
+ ],
801
+ },
802
+ ];