@0xsequence/abi 2.3.7 → 2.3.9

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 (40) hide show
  1. package/dist/0xsequence-abi.cjs.dev.js +3639 -0
  2. package/dist/0xsequence-abi.cjs.prod.js +3639 -0
  3. package/dist/0xsequence-abi.esm.js +3622 -1
  4. package/dist/declarations/src/index.d.ts +18 -0
  5. package/dist/declarations/src/sale/erc1155Sale.d.ts +467 -0
  6. package/dist/declarations/src/sale/erc721Sale.d.ts +467 -0
  7. package/dist/declarations/src/saleItems/erc1155SaleItems.d.ts +672 -0
  8. package/dist/declarations/src/saleItems/erc721SaleItems.d.ts +794 -0
  9. package/dist/declarations/src/tokens/erc1155.d.ts +324 -0
  10. package/dist/declarations/src/tokens/erc20.d.ts +239 -0
  11. package/dist/declarations/src/tokens/erc6909.d.ts +308 -0
  12. package/dist/declarations/src/tokens/erc721.d.ts +335 -0
  13. package/dist/declarations/src/wallet/erc1271.d.ts +15 -13
  14. package/dist/declarations/src/wallet/erc5719.d.ts +13 -13
  15. package/dist/declarations/src/wallet/erc6492.d.ts +135 -25
  16. package/dist/declarations/src/wallet/factory.d.ts +13 -11
  17. package/dist/declarations/src/wallet/index.d.ts +3 -0
  18. package/dist/declarations/src/wallet/libs/requireFreshSigners.d.ts +11 -11
  19. package/dist/declarations/src/wallet/mainModule.d.ts +117 -51
  20. package/dist/declarations/src/wallet/mainModuleUpgradable.d.ts +21 -21
  21. package/dist/declarations/src/wallet/sequenceUtils.d.ts +393 -80
  22. package/package.json +1 -1
  23. package/src/index.ts +22 -0
  24. package/src/sale/erc1155Sale.ts +352 -0
  25. package/src/sale/erc721Sale.ts +352 -0
  26. package/src/saleItems/erc1155SaleItems.ts +377 -0
  27. package/src/saleItems/erc721SaleItems.ts +440 -0
  28. package/src/tokens/erc1155.ts +422 -3
  29. package/src/tokens/erc20.ts +316 -3
  30. package/src/tokens/erc6909.ts +404 -0
  31. package/src/tokens/erc721.ts +441 -3
  32. package/src/wallet/erc1271.ts +1 -1
  33. package/src/wallet/erc5719.ts +1 -1
  34. package/src/wallet/erc6492.ts +1 -1
  35. package/src/wallet/factory.ts +1 -1
  36. package/src/wallet/index.ts +3 -0
  37. package/src/wallet/libs/requireFreshSigners.ts +1 -1
  38. package/src/wallet/mainModule.ts +1 -1
  39. package/src/wallet/mainModuleUpgradable.ts +1 -1
  40. package/src/wallet/sequenceUtils.ts +1 -1
@@ -0,0 +1,377 @@
1
+ export const ERC1155_SALE_ITEMS_ABI = [
2
+ { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
3
+ {
4
+ type: 'function',
5
+ name: 'DEFAULT_ADMIN_ROLE',
6
+ inputs: [],
7
+ outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
8
+ stateMutability: 'view'
9
+ },
10
+ {
11
+ type: 'function',
12
+ name: 'balanceOf',
13
+ inputs: [
14
+ { name: '_owner', type: 'address', internalType: 'address' },
15
+ { name: '_id', type: 'uint256', internalType: 'uint256' }
16
+ ],
17
+ outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
18
+ stateMutability: 'view'
19
+ },
20
+ {
21
+ type: 'function',
22
+ name: 'balanceOfBatch',
23
+ inputs: [
24
+ { name: '_owners', type: 'address[]', internalType: 'address[]' },
25
+ { name: '_ids', type: 'uint256[]', internalType: 'uint256[]' }
26
+ ],
27
+ outputs: [{ name: '', type: 'uint256[]', internalType: 'uint256[]' }],
28
+ stateMutability: 'view'
29
+ },
30
+ {
31
+ type: 'function',
32
+ name: 'baseURI',
33
+ inputs: [],
34
+ outputs: [{ name: '', type: 'string', internalType: 'string' }],
35
+ stateMutability: 'view'
36
+ },
37
+ {
38
+ type: 'function',
39
+ name: 'batchBurn',
40
+ inputs: [
41
+ { name: 'tokenIds', type: 'uint256[]', internalType: 'uint256[]' },
42
+ { name: 'amounts', type: 'uint256[]', internalType: 'uint256[]' }
43
+ ],
44
+ outputs: [],
45
+ stateMutability: 'nonpayable'
46
+ },
47
+ {
48
+ type: 'function',
49
+ name: 'batchMint',
50
+ inputs: [
51
+ { name: 'to', type: 'address', internalType: 'address' },
52
+ { name: 'tokenIds', type: 'uint256[]', internalType: 'uint256[]' },
53
+ { name: 'amounts', type: 'uint256[]', internalType: 'uint256[]' },
54
+ { name: 'data', type: 'bytes', internalType: 'bytes' }
55
+ ],
56
+ outputs: [],
57
+ stateMutability: 'nonpayable'
58
+ },
59
+ {
60
+ type: 'function',
61
+ name: 'burn',
62
+ inputs: [
63
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
64
+ { name: 'amount', type: 'uint256', internalType: 'uint256' }
65
+ ],
66
+ outputs: [],
67
+ stateMutability: 'nonpayable'
68
+ },
69
+ {
70
+ type: 'function',
71
+ name: 'contractURI',
72
+ inputs: [],
73
+ outputs: [{ name: '', type: 'string', internalType: 'string' }],
74
+ stateMutability: 'view'
75
+ },
76
+ {
77
+ type: 'function',
78
+ name: 'getRoleAdmin',
79
+ inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
80
+ outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
81
+ stateMutability: 'view'
82
+ },
83
+ {
84
+ type: 'function',
85
+ name: 'getRoleMember',
86
+ inputs: [
87
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
88
+ { name: 'index', type: 'uint256', internalType: 'uint256' }
89
+ ],
90
+ outputs: [{ name: '', type: 'address', internalType: 'address' }],
91
+ stateMutability: 'view'
92
+ },
93
+ {
94
+ type: 'function',
95
+ name: 'getRoleMemberCount',
96
+ inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
97
+ outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
98
+ stateMutability: 'view'
99
+ },
100
+ {
101
+ type: 'function',
102
+ name: 'grantRole',
103
+ inputs: [
104
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
105
+ { name: 'account', type: 'address', internalType: 'address' }
106
+ ],
107
+ outputs: [],
108
+ stateMutability: 'nonpayable'
109
+ },
110
+ {
111
+ type: 'function',
112
+ name: 'hasRole',
113
+ inputs: [
114
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
115
+ { name: 'account', type: 'address', internalType: 'address' }
116
+ ],
117
+ outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
118
+ stateMutability: 'view'
119
+ },
120
+ {
121
+ type: 'function',
122
+ name: 'initialize',
123
+ inputs: [
124
+ { name: 'owner', type: 'address', internalType: 'address' },
125
+ { name: 'tokenName', type: 'string', internalType: 'string' },
126
+ { name: 'tokenBaseURI', type: 'string', internalType: 'string' },
127
+ { name: 'tokenContractURI', type: 'string', internalType: 'string' },
128
+ { name: 'royaltyReceiver', type: 'address', internalType: 'address' },
129
+ { name: 'royaltyFeeNumerator', type: 'uint96', internalType: 'uint96' }
130
+ ],
131
+ outputs: [],
132
+ stateMutability: 'nonpayable'
133
+ },
134
+ {
135
+ type: 'function',
136
+ name: 'isApprovedForAll',
137
+ inputs: [
138
+ { name: '_owner', type: 'address', internalType: 'address' },
139
+ { name: '_operator', type: 'address', internalType: 'address' }
140
+ ],
141
+ outputs: [{ name: 'isOperator', type: 'bool', internalType: 'bool' }],
142
+ stateMutability: 'view'
143
+ },
144
+ {
145
+ type: 'function',
146
+ name: 'mint',
147
+ inputs: [
148
+ { name: 'to', type: 'address', internalType: 'address' },
149
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
150
+ { name: 'amount', type: 'uint256', internalType: 'uint256' },
151
+ { name: 'data', type: 'bytes', internalType: 'bytes' }
152
+ ],
153
+ outputs: [],
154
+ stateMutability: 'nonpayable'
155
+ },
156
+ {
157
+ type: 'function',
158
+ name: 'name',
159
+ inputs: [],
160
+ outputs: [{ name: '', type: 'string', internalType: 'string' }],
161
+ stateMutability: 'view'
162
+ },
163
+ {
164
+ type: 'function',
165
+ name: 'renounceRole',
166
+ inputs: [
167
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
168
+ { name: 'account', type: 'address', internalType: 'address' }
169
+ ],
170
+ outputs: [],
171
+ stateMutability: 'nonpayable'
172
+ },
173
+ {
174
+ type: 'function',
175
+ name: 'revokeRole',
176
+ inputs: [
177
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
178
+ { name: 'account', type: 'address', internalType: 'address' }
179
+ ],
180
+ outputs: [],
181
+ stateMutability: 'nonpayable'
182
+ },
183
+ {
184
+ type: 'function',
185
+ name: 'royaltyInfo',
186
+ inputs: [
187
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
188
+ { name: 'salePrice', type: 'uint256', internalType: 'uint256' }
189
+ ],
190
+ outputs: [
191
+ { name: '', type: 'address', internalType: 'address' },
192
+ { name: '', type: 'uint256', internalType: 'uint256' }
193
+ ],
194
+ stateMutability: 'view'
195
+ },
196
+ {
197
+ type: 'function',
198
+ name: 'safeBatchTransferFrom',
199
+ inputs: [
200
+ { name: '_from', type: 'address', internalType: 'address' },
201
+ { name: '_to', type: 'address', internalType: 'address' },
202
+ { name: '_ids', type: 'uint256[]', internalType: 'uint256[]' },
203
+ { name: '_amounts', type: 'uint256[]', internalType: 'uint256[]' },
204
+ { name: '_data', type: 'bytes', internalType: 'bytes' }
205
+ ],
206
+ outputs: [],
207
+ stateMutability: 'nonpayable'
208
+ },
209
+ {
210
+ type: 'function',
211
+ name: 'safeTransferFrom',
212
+ inputs: [
213
+ { name: '_from', type: 'address', internalType: 'address' },
214
+ { name: '_to', type: 'address', internalType: 'address' },
215
+ { name: '_id', type: 'uint256', internalType: 'uint256' },
216
+ { name: '_amount', type: 'uint256', internalType: 'uint256' },
217
+ { name: '_data', type: 'bytes', internalType: 'bytes' }
218
+ ],
219
+ outputs: [],
220
+ stateMutability: 'nonpayable'
221
+ },
222
+ {
223
+ type: 'function',
224
+ name: 'setApprovalForAll',
225
+ inputs: [
226
+ { name: '_operator', type: 'address', internalType: 'address' },
227
+ { name: '_approved', type: 'bool', internalType: 'bool' }
228
+ ],
229
+ outputs: [],
230
+ stateMutability: 'nonpayable'
231
+ },
232
+ {
233
+ type: 'function',
234
+ name: 'setBaseMetadataURI',
235
+ inputs: [{ name: 'tokenBaseURI', type: 'string', internalType: 'string' }],
236
+ outputs: [],
237
+ stateMutability: 'nonpayable'
238
+ },
239
+ {
240
+ type: 'function',
241
+ name: 'setContractName',
242
+ inputs: [{ name: 'tokenName', type: 'string', internalType: 'string' }],
243
+ outputs: [],
244
+ stateMutability: 'nonpayable'
245
+ },
246
+ {
247
+ type: 'function',
248
+ name: 'setContractURI',
249
+ inputs: [{ name: 'tokenContractURI', type: 'string', internalType: 'string' }],
250
+ outputs: [],
251
+ stateMutability: 'nonpayable'
252
+ },
253
+ {
254
+ type: 'function',
255
+ name: 'setDefaultRoyalty',
256
+ inputs: [
257
+ { name: 'receiver', type: 'address', internalType: 'address' },
258
+ { name: 'feeNumerator', type: 'uint96', internalType: 'uint96' }
259
+ ],
260
+ outputs: [],
261
+ stateMutability: 'nonpayable'
262
+ },
263
+ {
264
+ type: 'function',
265
+ name: 'setTokenRoyalty',
266
+ inputs: [
267
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
268
+ { name: 'receiver', type: 'address', internalType: 'address' },
269
+ { name: 'feeNumerator', type: 'uint96', internalType: 'uint96' }
270
+ ],
271
+ outputs: [],
272
+ stateMutability: 'nonpayable'
273
+ },
274
+ {
275
+ type: 'function',
276
+ name: 'supportsInterface',
277
+ inputs: [{ name: 'interfaceId', type: 'bytes4', internalType: 'bytes4' }],
278
+ outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
279
+ stateMutability: 'view'
280
+ },
281
+ {
282
+ type: 'function',
283
+ name: 'tokenSupply',
284
+ inputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
285
+ outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
286
+ stateMutability: 'view'
287
+ },
288
+ {
289
+ type: 'function',
290
+ name: 'totalSupply',
291
+ inputs: [],
292
+ outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
293
+ stateMutability: 'view'
294
+ },
295
+ {
296
+ type: 'function',
297
+ name: 'uri',
298
+ inputs: [{ name: '_id', type: 'uint256', internalType: 'uint256' }],
299
+ outputs: [{ name: '', type: 'string', internalType: 'string' }],
300
+ stateMutability: 'view'
301
+ },
302
+ {
303
+ type: 'event',
304
+ name: 'ApprovalForAll',
305
+ inputs: [
306
+ { name: '_owner', type: 'address', indexed: true, internalType: 'address' },
307
+ { name: '_operator', type: 'address', indexed: true, internalType: 'address' },
308
+ { name: '_approved', type: 'bool', indexed: false, internalType: 'bool' }
309
+ ],
310
+ anonymous: false
311
+ },
312
+ {
313
+ type: 'event',
314
+ name: 'RoleAdminChanged',
315
+ inputs: [
316
+ { name: 'role', type: 'bytes32', indexed: true, internalType: 'bytes32' },
317
+ { name: 'previousAdminRole', type: 'bytes32', indexed: true, internalType: 'bytes32' },
318
+ { name: 'newAdminRole', type: 'bytes32', indexed: true, internalType: 'bytes32' }
319
+ ],
320
+ anonymous: false
321
+ },
322
+ {
323
+ type: 'event',
324
+ name: 'RoleGranted',
325
+ inputs: [
326
+ { name: 'role', type: 'bytes32', indexed: true, internalType: 'bytes32' },
327
+ { name: 'account', type: 'address', indexed: true, internalType: 'address' },
328
+ { name: 'sender', type: 'address', indexed: true, internalType: 'address' }
329
+ ],
330
+ anonymous: false
331
+ },
332
+ {
333
+ type: 'event',
334
+ name: 'RoleRevoked',
335
+ inputs: [
336
+ { name: 'role', type: 'bytes32', indexed: true, internalType: 'bytes32' },
337
+ { name: 'account', type: 'address', indexed: true, internalType: 'address' },
338
+ { name: 'sender', type: 'address', indexed: true, internalType: 'address' }
339
+ ],
340
+ anonymous: false
341
+ },
342
+ {
343
+ type: 'event',
344
+ name: 'TransferBatch',
345
+ inputs: [
346
+ { name: '_operator', type: 'address', indexed: true, internalType: 'address' },
347
+ { name: '_from', type: 'address', indexed: true, internalType: 'address' },
348
+ { name: '_to', type: 'address', indexed: true, internalType: 'address' },
349
+ { name: '_ids', type: 'uint256[]', indexed: false, internalType: 'uint256[]' },
350
+ { name: '_amounts', type: 'uint256[]', indexed: false, internalType: 'uint256[]' }
351
+ ],
352
+ anonymous: false
353
+ },
354
+ {
355
+ type: 'event',
356
+ name: 'TransferSingle',
357
+ inputs: [
358
+ { name: '_operator', type: 'address', indexed: true, internalType: 'address' },
359
+ { name: '_from', type: 'address', indexed: true, internalType: 'address' },
360
+ { name: '_to', type: 'address', indexed: true, internalType: 'address' },
361
+ { name: '_id', type: 'uint256', indexed: false, internalType: 'uint256' },
362
+ { name: '_amount', type: 'uint256', indexed: false, internalType: 'uint256' }
363
+ ],
364
+ anonymous: false
365
+ },
366
+ {
367
+ type: 'event',
368
+ name: 'URI',
369
+ inputs: [
370
+ { name: '_uri', type: 'string', indexed: false, internalType: 'string' },
371
+ { name: '_id', type: 'uint256', indexed: true, internalType: 'uint256' }
372
+ ],
373
+ anonymous: false
374
+ },
375
+ { type: 'error', name: 'InvalidArrayLength', inputs: [] },
376
+ { type: 'error', name: 'InvalidInitialization', inputs: [] }
377
+ ] as const