@0xsequence/abi 2.3.8 → 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,440 @@
1
+ export const ERC721_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: 'approve',
13
+ inputs: [
14
+ { name: 'to', type: 'address', internalType: 'address' },
15
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' }
16
+ ],
17
+ outputs: [],
18
+ stateMutability: 'payable'
19
+ },
20
+ {
21
+ type: 'function',
22
+ name: 'balanceOf',
23
+ inputs: [{ name: 'owner', type: 'address', internalType: 'address' }],
24
+ outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
25
+ stateMutability: 'view'
26
+ },
27
+ {
28
+ type: 'function',
29
+ name: 'batchBurn',
30
+ inputs: [{ name: 'tokenIds', type: 'uint256[]', internalType: 'uint256[]' }],
31
+ outputs: [],
32
+ stateMutability: 'nonpayable'
33
+ },
34
+ {
35
+ type: 'function',
36
+ name: 'burn',
37
+ inputs: [{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }],
38
+ outputs: [],
39
+ stateMutability: 'nonpayable'
40
+ },
41
+ {
42
+ type: 'function',
43
+ name: 'contractURI',
44
+ inputs: [],
45
+ outputs: [{ name: '', type: 'string', internalType: 'string' }],
46
+ stateMutability: 'view'
47
+ },
48
+ {
49
+ type: 'function',
50
+ name: 'explicitOwnershipOf',
51
+ inputs: [{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }],
52
+ outputs: [
53
+ {
54
+ name: '',
55
+ type: 'tuple',
56
+ internalType: 'struct IERC721A.TokenOwnership',
57
+ components: [
58
+ { name: 'addr', type: 'address', internalType: 'address' },
59
+ { name: 'startTimestamp', type: 'uint64', internalType: 'uint64' },
60
+ { name: 'burned', type: 'bool', internalType: 'bool' },
61
+ { name: 'extraData', type: 'uint24', internalType: 'uint24' }
62
+ ]
63
+ }
64
+ ],
65
+ stateMutability: 'view'
66
+ },
67
+ {
68
+ type: 'function',
69
+ name: 'explicitOwnershipsOf',
70
+ inputs: [{ name: 'tokenIds', type: 'uint256[]', internalType: 'uint256[]' }],
71
+ outputs: [
72
+ {
73
+ name: '',
74
+ type: 'tuple[]',
75
+ internalType: 'struct IERC721A.TokenOwnership[]',
76
+ components: [
77
+ { name: 'addr', type: 'address', internalType: 'address' },
78
+ { name: 'startTimestamp', type: 'uint64', internalType: 'uint64' },
79
+ { name: 'burned', type: 'bool', internalType: 'bool' },
80
+ { name: 'extraData', type: 'uint24', internalType: 'uint24' }
81
+ ]
82
+ }
83
+ ],
84
+ stateMutability: 'view'
85
+ },
86
+ {
87
+ type: 'function',
88
+ name: 'getApproved',
89
+ inputs: [{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }],
90
+ outputs: [{ name: '', type: 'address', internalType: 'address' }],
91
+ stateMutability: 'view'
92
+ },
93
+ {
94
+ type: 'function',
95
+ name: 'getRoleAdmin',
96
+ inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
97
+ outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
98
+ stateMutability: 'view'
99
+ },
100
+ {
101
+ type: 'function',
102
+ name: 'getRoleMember',
103
+ inputs: [
104
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
105
+ { name: 'index', type: 'uint256', internalType: 'uint256' }
106
+ ],
107
+ outputs: [{ name: '', type: 'address', internalType: 'address' }],
108
+ stateMutability: 'view'
109
+ },
110
+ {
111
+ type: 'function',
112
+ name: 'getRoleMemberCount',
113
+ inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
114
+ outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
115
+ stateMutability: 'view'
116
+ },
117
+ {
118
+ type: 'function',
119
+ name: 'grantRole',
120
+ inputs: [
121
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
122
+ { name: 'account', type: 'address', internalType: 'address' }
123
+ ],
124
+ outputs: [],
125
+ stateMutability: 'nonpayable'
126
+ },
127
+ {
128
+ type: 'function',
129
+ name: 'hasRole',
130
+ inputs: [
131
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
132
+ { name: 'account', type: 'address', internalType: 'address' }
133
+ ],
134
+ outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
135
+ stateMutability: 'view'
136
+ },
137
+ {
138
+ type: 'function',
139
+ name: 'initialize',
140
+ inputs: [
141
+ { name: 'owner', type: 'address', internalType: 'address' },
142
+ { name: 'tokenName', type: 'string', internalType: 'string' },
143
+ { name: 'tokenSymbol', type: 'string', internalType: 'string' },
144
+ { name: 'tokenBaseURI', type: 'string', internalType: 'string' },
145
+ { name: 'tokenContractURI', type: 'string', internalType: 'string' },
146
+ { name: 'royaltyReceiver', type: 'address', internalType: 'address' },
147
+ { name: 'royaltyFeeNumerator', type: 'uint96', internalType: 'uint96' }
148
+ ],
149
+ outputs: [],
150
+ stateMutability: 'nonpayable'
151
+ },
152
+ {
153
+ type: 'function',
154
+ name: 'isApprovedForAll',
155
+ inputs: [
156
+ { name: 'owner', type: 'address', internalType: 'address' },
157
+ { name: 'operator', type: 'address', internalType: 'address' }
158
+ ],
159
+ outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
160
+ stateMutability: 'view'
161
+ },
162
+ {
163
+ type: 'function',
164
+ name: 'mint',
165
+ inputs: [
166
+ { name: 'to', type: 'address', internalType: 'address' },
167
+ { name: 'amount', type: 'uint256', internalType: 'uint256' }
168
+ ],
169
+ outputs: [],
170
+ stateMutability: 'nonpayable'
171
+ },
172
+ {
173
+ type: 'function',
174
+ name: 'name',
175
+ inputs: [],
176
+ outputs: [{ name: '', type: 'string', internalType: 'string' }],
177
+ stateMutability: 'view'
178
+ },
179
+ {
180
+ type: 'function',
181
+ name: 'ownerOf',
182
+ inputs: [{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }],
183
+ outputs: [{ name: '', type: 'address', internalType: 'address' }],
184
+ stateMutability: 'view'
185
+ },
186
+ {
187
+ type: 'function',
188
+ name: 'renounceRole',
189
+ inputs: [
190
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
191
+ { name: 'account', type: 'address', internalType: 'address' }
192
+ ],
193
+ outputs: [],
194
+ stateMutability: 'nonpayable'
195
+ },
196
+ {
197
+ type: 'function',
198
+ name: 'revokeRole',
199
+ inputs: [
200
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
201
+ { name: 'account', type: 'address', internalType: 'address' }
202
+ ],
203
+ outputs: [],
204
+ stateMutability: 'nonpayable'
205
+ },
206
+ {
207
+ type: 'function',
208
+ name: 'royaltyInfo',
209
+ inputs: [
210
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
211
+ { name: 'salePrice', type: 'uint256', internalType: 'uint256' }
212
+ ],
213
+ outputs: [
214
+ { name: '', type: 'address', internalType: 'address' },
215
+ { name: '', type: 'uint256', internalType: 'uint256' }
216
+ ],
217
+ stateMutability: 'view'
218
+ },
219
+ {
220
+ type: 'function',
221
+ name: 'safeTransferFrom',
222
+ inputs: [
223
+ { name: 'from', type: 'address', internalType: 'address' },
224
+ { name: 'to', type: 'address', internalType: 'address' },
225
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' }
226
+ ],
227
+ outputs: [],
228
+ stateMutability: 'payable'
229
+ },
230
+ {
231
+ type: 'function',
232
+ name: 'safeTransferFrom',
233
+ inputs: [
234
+ { name: 'from', type: 'address', internalType: 'address' },
235
+ { name: 'to', type: 'address', internalType: 'address' },
236
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
237
+ { name: '_data', type: 'bytes', internalType: 'bytes' }
238
+ ],
239
+ outputs: [],
240
+ stateMutability: 'payable'
241
+ },
242
+ {
243
+ type: 'function',
244
+ name: 'setApprovalForAll',
245
+ inputs: [
246
+ { name: 'operator', type: 'address', internalType: 'address' },
247
+ { name: 'approved', type: 'bool', internalType: 'bool' }
248
+ ],
249
+ outputs: [],
250
+ stateMutability: 'nonpayable'
251
+ },
252
+ {
253
+ type: 'function',
254
+ name: 'setBaseMetadataURI',
255
+ inputs: [{ name: 'tokenBaseURI', type: 'string', internalType: 'string' }],
256
+ outputs: [],
257
+ stateMutability: 'nonpayable'
258
+ },
259
+ {
260
+ type: 'function',
261
+ name: 'setContractURI',
262
+ inputs: [{ name: 'tokenContractURI', type: 'string', internalType: 'string' }],
263
+ outputs: [],
264
+ stateMutability: 'nonpayable'
265
+ },
266
+ {
267
+ type: 'function',
268
+ name: 'setDefaultRoyalty',
269
+ inputs: [
270
+ { name: 'receiver', type: 'address', internalType: 'address' },
271
+ { name: 'feeNumerator', type: 'uint96', internalType: 'uint96' }
272
+ ],
273
+ outputs: [],
274
+ stateMutability: 'nonpayable'
275
+ },
276
+ {
277
+ type: 'function',
278
+ name: 'setNameAndSymbol',
279
+ inputs: [
280
+ { name: 'tokenName', type: 'string', internalType: 'string' },
281
+ { name: 'tokenSymbol', type: 'string', internalType: 'string' }
282
+ ],
283
+ outputs: [],
284
+ stateMutability: 'nonpayable'
285
+ },
286
+ {
287
+ type: 'function',
288
+ name: 'setTokenRoyalty',
289
+ inputs: [
290
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' },
291
+ { name: 'receiver', type: 'address', internalType: 'address' },
292
+ { name: 'feeNumerator', type: 'uint96', internalType: 'uint96' }
293
+ ],
294
+ outputs: [],
295
+ stateMutability: 'nonpayable'
296
+ },
297
+ {
298
+ type: 'function',
299
+ name: 'supportsInterface',
300
+ inputs: [{ name: 'interfaceId', type: 'bytes4', internalType: 'bytes4' }],
301
+ outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
302
+ stateMutability: 'view'
303
+ },
304
+ {
305
+ type: 'function',
306
+ name: 'symbol',
307
+ inputs: [],
308
+ outputs: [{ name: '', type: 'string', internalType: 'string' }],
309
+ stateMutability: 'view'
310
+ },
311
+ {
312
+ type: 'function',
313
+ name: 'tokenURI',
314
+ inputs: [{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }],
315
+ outputs: [{ name: '', type: 'string', internalType: 'string' }],
316
+ stateMutability: 'view'
317
+ },
318
+ {
319
+ type: 'function',
320
+ name: 'tokensOfOwner',
321
+ inputs: [{ name: 'owner', type: 'address', internalType: 'address' }],
322
+ outputs: [{ name: '', type: 'uint256[]', internalType: 'uint256[]' }],
323
+ stateMutability: 'view'
324
+ },
325
+ {
326
+ type: 'function',
327
+ name: 'tokensOfOwnerIn',
328
+ inputs: [
329
+ { name: 'owner', type: 'address', internalType: 'address' },
330
+ { name: 'start', type: 'uint256', internalType: 'uint256' },
331
+ { name: 'stop', type: 'uint256', internalType: 'uint256' }
332
+ ],
333
+ outputs: [{ name: '', type: 'uint256[]', internalType: 'uint256[]' }],
334
+ stateMutability: 'view'
335
+ },
336
+ {
337
+ type: 'function',
338
+ name: 'totalSupply',
339
+ inputs: [],
340
+ outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
341
+ stateMutability: 'view'
342
+ },
343
+ {
344
+ type: 'function',
345
+ name: 'transferFrom',
346
+ inputs: [
347
+ { name: 'from', type: 'address', internalType: 'address' },
348
+ { name: 'to', type: 'address', internalType: 'address' },
349
+ { name: 'tokenId', type: 'uint256', internalType: 'uint256' }
350
+ ],
351
+ outputs: [],
352
+ stateMutability: 'payable'
353
+ },
354
+ {
355
+ type: 'event',
356
+ name: 'Approval',
357
+ inputs: [
358
+ { name: 'owner', type: 'address', indexed: true, internalType: 'address' },
359
+ { name: 'approved', type: 'address', indexed: true, internalType: 'address' },
360
+ { name: 'tokenId', type: 'uint256', indexed: true, internalType: 'uint256' }
361
+ ],
362
+ anonymous: false
363
+ },
364
+ {
365
+ type: 'event',
366
+ name: 'ApprovalForAll',
367
+ inputs: [
368
+ { name: 'owner', type: 'address', indexed: true, internalType: 'address' },
369
+ { name: 'operator', type: 'address', indexed: true, internalType: 'address' },
370
+ { name: 'approved', type: 'bool', indexed: false, internalType: 'bool' }
371
+ ],
372
+ anonymous: false
373
+ },
374
+ {
375
+ type: 'event',
376
+ name: 'ConsecutiveTransfer',
377
+ inputs: [
378
+ { name: 'fromTokenId', type: 'uint256', indexed: true, internalType: 'uint256' },
379
+ { name: 'toTokenId', type: 'uint256', indexed: false, internalType: 'uint256' },
380
+ { name: 'from', type: 'address', indexed: true, internalType: 'address' },
381
+ { name: 'to', type: 'address', indexed: true, internalType: 'address' }
382
+ ],
383
+ anonymous: false
384
+ },
385
+ {
386
+ type: 'event',
387
+ name: 'RoleAdminChanged',
388
+ inputs: [
389
+ { name: 'role', type: 'bytes32', indexed: true, internalType: 'bytes32' },
390
+ { name: 'previousAdminRole', type: 'bytes32', indexed: true, internalType: 'bytes32' },
391
+ { name: 'newAdminRole', type: 'bytes32', indexed: true, internalType: 'bytes32' }
392
+ ],
393
+ anonymous: false
394
+ },
395
+ {
396
+ type: 'event',
397
+ name: 'RoleGranted',
398
+ inputs: [
399
+ { name: 'role', type: 'bytes32', indexed: true, internalType: 'bytes32' },
400
+ { name: 'account', type: 'address', indexed: true, internalType: 'address' },
401
+ { name: 'sender', type: 'address', indexed: true, internalType: 'address' }
402
+ ],
403
+ anonymous: false
404
+ },
405
+ {
406
+ type: 'event',
407
+ name: 'RoleRevoked',
408
+ inputs: [
409
+ { name: 'role', type: 'bytes32', indexed: true, internalType: 'bytes32' },
410
+ { name: 'account', type: 'address', indexed: true, internalType: 'address' },
411
+ { name: 'sender', type: 'address', indexed: true, internalType: 'address' }
412
+ ],
413
+ anonymous: false
414
+ },
415
+ {
416
+ type: 'event',
417
+ name: 'Transfer',
418
+ inputs: [
419
+ { name: 'from', type: 'address', indexed: true, internalType: 'address' },
420
+ { name: 'to', type: 'address', indexed: true, internalType: 'address' },
421
+ { name: 'tokenId', type: 'uint256', indexed: true, internalType: 'uint256' }
422
+ ],
423
+ anonymous: false
424
+ },
425
+ { type: 'error', name: 'ApprovalCallerNotOwnerNorApproved', inputs: [] },
426
+ { type: 'error', name: 'ApprovalQueryForNonexistentToken', inputs: [] },
427
+ { type: 'error', name: 'BalanceQueryForZeroAddress', inputs: [] },
428
+ { type: 'error', name: 'InvalidInitialization', inputs: [] },
429
+ { type: 'error', name: 'InvalidQueryRange', inputs: [] },
430
+ { type: 'error', name: 'MintERC2309QuantityExceedsLimit', inputs: [] },
431
+ { type: 'error', name: 'MintToZeroAddress', inputs: [] },
432
+ { type: 'error', name: 'MintZeroQuantity', inputs: [] },
433
+ { type: 'error', name: 'OwnerQueryForNonexistentToken', inputs: [] },
434
+ { type: 'error', name: 'OwnershipNotInitializedForExtraData', inputs: [] },
435
+ { type: 'error', name: 'TransferCallerNotOwnerNorApproved', inputs: [] },
436
+ { type: 'error', name: 'TransferFromIncorrectOwner', inputs: [] },
437
+ { type: 'error', name: 'TransferToNonERC721ReceiverImplementer', inputs: [] },
438
+ { type: 'error', name: 'TransferToZeroAddress', inputs: [] },
439
+ { type: 'error', name: 'URIQueryForNonexistentToken', inputs: [] }
440
+ ] as const