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