@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
@@ -1,3 +1,441 @@
1
- export const abi = []
2
-
3
- export const returns = {}
1
+ // @openzeppelin/contracts@5.0.0/token/ERC721/ERC721.sol
2
+ export const ERC721_ABI = [
3
+ {
4
+ inputs: [],
5
+ stateMutability: 'nonpayable',
6
+ type: 'constructor'
7
+ },
8
+ {
9
+ inputs: [
10
+ {
11
+ internalType: 'address',
12
+ name: 'sender',
13
+ type: 'address'
14
+ },
15
+ {
16
+ internalType: 'uint256',
17
+ name: 'tokenId',
18
+ type: 'uint256'
19
+ },
20
+ {
21
+ internalType: 'address',
22
+ name: 'owner',
23
+ type: 'address'
24
+ }
25
+ ],
26
+ name: 'ERC721IncorrectOwner',
27
+ type: 'error'
28
+ },
29
+ {
30
+ inputs: [
31
+ {
32
+ internalType: 'address',
33
+ name: 'operator',
34
+ type: 'address'
35
+ },
36
+ {
37
+ internalType: 'uint256',
38
+ name: 'tokenId',
39
+ type: 'uint256'
40
+ }
41
+ ],
42
+ name: 'ERC721InsufficientApproval',
43
+ type: 'error'
44
+ },
45
+ {
46
+ inputs: [
47
+ {
48
+ internalType: 'address',
49
+ name: 'approver',
50
+ type: 'address'
51
+ }
52
+ ],
53
+ name: 'ERC721InvalidApprover',
54
+ type: 'error'
55
+ },
56
+ {
57
+ inputs: [
58
+ {
59
+ internalType: 'address',
60
+ name: 'operator',
61
+ type: 'address'
62
+ }
63
+ ],
64
+ name: 'ERC721InvalidOperator',
65
+ type: 'error'
66
+ },
67
+ {
68
+ inputs: [
69
+ {
70
+ internalType: 'address',
71
+ name: 'owner',
72
+ type: 'address'
73
+ }
74
+ ],
75
+ name: 'ERC721InvalidOwner',
76
+ type: 'error'
77
+ },
78
+ {
79
+ inputs: [
80
+ {
81
+ internalType: 'address',
82
+ name: 'receiver',
83
+ type: 'address'
84
+ }
85
+ ],
86
+ name: 'ERC721InvalidReceiver',
87
+ type: 'error'
88
+ },
89
+ {
90
+ inputs: [
91
+ {
92
+ internalType: 'address',
93
+ name: 'sender',
94
+ type: 'address'
95
+ }
96
+ ],
97
+ name: 'ERC721InvalidSender',
98
+ type: 'error'
99
+ },
100
+ {
101
+ inputs: [
102
+ {
103
+ internalType: 'uint256',
104
+ name: 'tokenId',
105
+ type: 'uint256'
106
+ }
107
+ ],
108
+ name: 'ERC721NonexistentToken',
109
+ type: 'error'
110
+ },
111
+ {
112
+ anonymous: false,
113
+ inputs: [
114
+ {
115
+ indexed: true,
116
+ internalType: 'address',
117
+ name: 'owner',
118
+ type: 'address'
119
+ },
120
+ {
121
+ indexed: true,
122
+ internalType: 'address',
123
+ name: 'approved',
124
+ type: 'address'
125
+ },
126
+ {
127
+ indexed: true,
128
+ internalType: 'uint256',
129
+ name: 'tokenId',
130
+ type: 'uint256'
131
+ }
132
+ ],
133
+ name: 'Approval',
134
+ type: 'event'
135
+ },
136
+ {
137
+ anonymous: false,
138
+ inputs: [
139
+ {
140
+ indexed: true,
141
+ internalType: 'address',
142
+ name: 'owner',
143
+ type: 'address'
144
+ },
145
+ {
146
+ indexed: true,
147
+ internalType: 'address',
148
+ name: 'operator',
149
+ type: 'address'
150
+ },
151
+ {
152
+ indexed: false,
153
+ internalType: 'bool',
154
+ name: 'approved',
155
+ type: 'bool'
156
+ }
157
+ ],
158
+ name: 'ApprovalForAll',
159
+ type: 'event'
160
+ },
161
+ {
162
+ anonymous: false,
163
+ inputs: [
164
+ {
165
+ indexed: true,
166
+ internalType: 'address',
167
+ name: 'from',
168
+ type: 'address'
169
+ },
170
+ {
171
+ indexed: true,
172
+ internalType: 'address',
173
+ name: 'to',
174
+ type: 'address'
175
+ },
176
+ {
177
+ indexed: true,
178
+ internalType: 'uint256',
179
+ name: 'tokenId',
180
+ type: 'uint256'
181
+ }
182
+ ],
183
+ name: 'Transfer',
184
+ type: 'event'
185
+ },
186
+ {
187
+ inputs: [
188
+ {
189
+ internalType: 'address',
190
+ name: 'to',
191
+ type: 'address'
192
+ },
193
+ {
194
+ internalType: 'uint256',
195
+ name: 'tokenId',
196
+ type: 'uint256'
197
+ }
198
+ ],
199
+ name: 'approve',
200
+ outputs: [],
201
+ stateMutability: 'nonpayable',
202
+ type: 'function'
203
+ },
204
+ {
205
+ inputs: [
206
+ {
207
+ internalType: 'address',
208
+ name: 'owner',
209
+ type: 'address'
210
+ }
211
+ ],
212
+ name: 'balanceOf',
213
+ outputs: [
214
+ {
215
+ internalType: 'uint256',
216
+ name: '',
217
+ type: 'uint256'
218
+ }
219
+ ],
220
+ stateMutability: 'view',
221
+ type: 'function'
222
+ },
223
+ {
224
+ inputs: [
225
+ {
226
+ internalType: 'uint256',
227
+ name: 'tokenId',
228
+ type: 'uint256'
229
+ }
230
+ ],
231
+ name: 'getApproved',
232
+ outputs: [
233
+ {
234
+ internalType: 'address',
235
+ name: '',
236
+ type: 'address'
237
+ }
238
+ ],
239
+ stateMutability: 'view',
240
+ type: 'function'
241
+ },
242
+ {
243
+ inputs: [
244
+ {
245
+ internalType: 'address',
246
+ name: 'owner',
247
+ type: 'address'
248
+ },
249
+ {
250
+ internalType: 'address',
251
+ name: 'operator',
252
+ type: 'address'
253
+ }
254
+ ],
255
+ name: 'isApprovedForAll',
256
+ outputs: [
257
+ {
258
+ internalType: 'bool',
259
+ name: '',
260
+ type: 'bool'
261
+ }
262
+ ],
263
+ stateMutability: 'view',
264
+ type: 'function'
265
+ },
266
+ {
267
+ inputs: [],
268
+ name: 'name',
269
+ outputs: [
270
+ {
271
+ internalType: 'string',
272
+ name: '',
273
+ type: 'string'
274
+ }
275
+ ],
276
+ stateMutability: 'view',
277
+ type: 'function'
278
+ },
279
+ {
280
+ inputs: [
281
+ {
282
+ internalType: 'uint256',
283
+ name: 'tokenId',
284
+ type: 'uint256'
285
+ }
286
+ ],
287
+ name: 'ownerOf',
288
+ outputs: [
289
+ {
290
+ internalType: 'address',
291
+ name: '',
292
+ type: 'address'
293
+ }
294
+ ],
295
+ stateMutability: 'view',
296
+ type: 'function'
297
+ },
298
+ {
299
+ inputs: [
300
+ {
301
+ internalType: 'address',
302
+ name: 'from',
303
+ type: 'address'
304
+ },
305
+ {
306
+ internalType: 'address',
307
+ name: 'to',
308
+ type: 'address'
309
+ },
310
+ {
311
+ internalType: 'uint256',
312
+ name: 'tokenId',
313
+ type: 'uint256'
314
+ }
315
+ ],
316
+ name: 'safeTransferFrom',
317
+ outputs: [],
318
+ stateMutability: 'nonpayable',
319
+ type: 'function'
320
+ },
321
+ {
322
+ inputs: [
323
+ {
324
+ internalType: 'address',
325
+ name: 'from',
326
+ type: 'address'
327
+ },
328
+ {
329
+ internalType: 'address',
330
+ name: 'to',
331
+ type: 'address'
332
+ },
333
+ {
334
+ internalType: 'uint256',
335
+ name: 'tokenId',
336
+ type: 'uint256'
337
+ },
338
+ {
339
+ internalType: 'bytes',
340
+ name: 'data',
341
+ type: 'bytes'
342
+ }
343
+ ],
344
+ name: 'safeTransferFrom',
345
+ outputs: [],
346
+ stateMutability: 'nonpayable',
347
+ type: 'function'
348
+ },
349
+ {
350
+ inputs: [
351
+ {
352
+ internalType: 'address',
353
+ name: 'operator',
354
+ type: 'address'
355
+ },
356
+ {
357
+ internalType: 'bool',
358
+ name: 'approved',
359
+ type: 'bool'
360
+ }
361
+ ],
362
+ name: 'setApprovalForAll',
363
+ outputs: [],
364
+ stateMutability: 'nonpayable',
365
+ type: 'function'
366
+ },
367
+ {
368
+ inputs: [
369
+ {
370
+ internalType: 'bytes4',
371
+ name: 'interfaceId',
372
+ type: 'bytes4'
373
+ }
374
+ ],
375
+ name: 'supportsInterface',
376
+ outputs: [
377
+ {
378
+ internalType: 'bool',
379
+ name: '',
380
+ type: 'bool'
381
+ }
382
+ ],
383
+ stateMutability: 'view',
384
+ type: 'function'
385
+ },
386
+ {
387
+ inputs: [],
388
+ name: 'symbol',
389
+ outputs: [
390
+ {
391
+ internalType: 'string',
392
+ name: '',
393
+ type: 'string'
394
+ }
395
+ ],
396
+ stateMutability: 'view',
397
+ type: 'function'
398
+ },
399
+ {
400
+ inputs: [
401
+ {
402
+ internalType: 'uint256',
403
+ name: 'tokenId',
404
+ type: 'uint256'
405
+ }
406
+ ],
407
+ name: 'tokenURI',
408
+ outputs: [
409
+ {
410
+ internalType: 'string',
411
+ name: '',
412
+ type: 'string'
413
+ }
414
+ ],
415
+ stateMutability: 'view',
416
+ type: 'function'
417
+ },
418
+ {
419
+ inputs: [
420
+ {
421
+ internalType: 'address',
422
+ name: 'from',
423
+ type: 'address'
424
+ },
425
+ {
426
+ internalType: 'address',
427
+ name: 'to',
428
+ type: 'address'
429
+ },
430
+ {
431
+ internalType: 'uint256',
432
+ name: 'tokenId',
433
+ type: 'uint256'
434
+ }
435
+ ],
436
+ name: 'transferFrom',
437
+ outputs: [],
438
+ stateMutability: 'nonpayable',
439
+ type: 'function'
440
+ }
441
+ ] as const
@@ -19,7 +19,7 @@ export const abi = [
19
19
  payable: false,
20
20
  stateMutability: 'view'
21
21
  }
22
- ]
22
+ ] as const
23
23
 
24
24
  export const returns = {
25
25
  isValidSignatureBytes32: '0x1626ba7e'
@@ -16,4 +16,4 @@ export const abi = [
16
16
  stateMutability: 'view',
17
17
  type: 'function'
18
18
  }
19
- ]
19
+ ] as const
@@ -58,4 +58,4 @@ export const abi = [
58
58
  stateMutability: 'nonpayable',
59
59
  type: 'function'
60
60
  }
61
- ]
61
+ ] as const
@@ -15,4 +15,4 @@ export const abi = [
15
15
  payable: true,
16
16
  stateMutability: 'payable'
17
17
  }
18
- ]
18
+ ] as const
@@ -9,6 +9,9 @@ import * as sequenceUtils from './sequenceUtils'
9
9
  import * as requireFreshSigner from './libs/requireFreshSigners'
10
10
  import * as walletProxyHook from './walletProxyHook'
11
11
 
12
+ /**
13
+ * @deprecated import directly from @0xsequence/abi/* instead, omitting "walletContracts"
14
+ */
12
15
  export const walletContracts = {
13
16
  erc6492,
14
17
  erc5719,
@@ -12,4 +12,4 @@ export const abi = [
12
12
  stateMutability: 'nonpayable',
13
13
  type: 'function'
14
14
  }
15
- ]
15
+ ] as const
@@ -155,4 +155,4 @@ export const abi = [
155
155
  payable: false,
156
156
  stateMutability: 'nonpayable'
157
157
  }
158
- ]
158
+ ] as const
@@ -25,4 +25,4 @@ export const abi = [
25
25
  payable: false,
26
26
  stateMutability: 'view'
27
27
  }
28
- ]
28
+ ] as const
@@ -513,4 +513,4 @@ export const abi = [
513
513
  stateMutability: 'view',
514
514
  type: 'function'
515
515
  }
516
- ]
516
+ ] as const