@0xsequence/abi 2.3.35 → 3.0.0-beta.2

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 (92) hide show
  1. package/.turbo/turbo-build.log +5 -0
  2. package/CHANGELOG.md +2097 -0
  3. package/LICENSE +0 -17
  4. package/README.md +1 -2
  5. package/dist/index.d.ts +20 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +41 -0
  8. package/dist/{declarations/src/sale → sale}/erc1155Sale.d.ts +1 -0
  9. package/dist/sale/erc1155Sale.d.ts.map +1 -0
  10. package/dist/sale/erc1155Sale.js +355 -0
  11. package/dist/{declarations/src/sale → sale}/erc721Sale.d.ts +1 -0
  12. package/dist/sale/erc721Sale.d.ts.map +1 -0
  13. package/dist/sale/erc721Sale.js +355 -0
  14. package/dist/{declarations/src/tokens → tokens}/erc1155.d.ts +1 -0
  15. package/dist/tokens/erc1155.d.ts.map +1 -0
  16. package/dist/tokens/erc1155.js +425 -0
  17. package/dist/{declarations/src/saleItems/erc1155SaleItems.d.ts → tokens/erc1155Items.d.ts} +2 -1
  18. package/dist/tokens/erc1155Items.d.ts.map +1 -0
  19. package/dist/tokens/erc1155Items.js +381 -0
  20. package/dist/{declarations/src/tokens → tokens}/erc20.d.ts +1 -0
  21. package/dist/tokens/erc20.d.ts.map +1 -0
  22. package/dist/tokens/erc20.js +319 -0
  23. package/dist/{declarations/src/tokens → tokens}/erc6909.d.ts +1 -0
  24. package/dist/tokens/erc6909.d.ts.map +1 -0
  25. package/dist/tokens/erc6909.js +407 -0
  26. package/dist/{declarations/src/tokens → tokens}/erc721.d.ts +1 -0
  27. package/dist/tokens/erc721.d.ts.map +1 -0
  28. package/dist/tokens/erc721.js +444 -0
  29. package/dist/{declarations/src/saleItems/erc721SaleItems.d.ts → tokens/erc721Items.d.ts} +2 -1
  30. package/dist/tokens/erc721Items.d.ts.map +1 -0
  31. package/dist/tokens/erc721Items.js +444 -0
  32. package/dist/{declarations/src/wallet → wallet}/erc1271.d.ts +1 -0
  33. package/dist/wallet/erc1271.d.ts.map +1 -0
  34. package/dist/wallet/erc1271.js +28 -0
  35. package/dist/{declarations/src/wallet → wallet}/erc5719.d.ts +1 -0
  36. package/dist/wallet/erc5719.d.ts.map +1 -0
  37. package/dist/wallet/erc5719.js +22 -0
  38. package/dist/{declarations/src/wallet → wallet}/erc6492.d.ts +1 -0
  39. package/dist/wallet/erc6492.d.ts.map +1 -0
  40. package/dist/wallet/erc6492.js +64 -0
  41. package/dist/{declarations/src/wallet → wallet}/factory.d.ts +1 -0
  42. package/dist/wallet/factory.d.ts.map +1 -0
  43. package/dist/wallet/factory.js +21 -0
  44. package/dist/{declarations/src/wallet → wallet}/index.d.ts +11 -10
  45. package/dist/wallet/index.d.ts.map +1 -0
  46. package/dist/wallet/index.js +61 -0
  47. package/dist/{declarations/src/wallet → wallet}/libs/requireFreshSigners.d.ts +1 -0
  48. package/dist/wallet/libs/requireFreshSigners.d.ts.map +1 -0
  49. package/dist/wallet/libs/requireFreshSigners.js +18 -0
  50. package/dist/{declarations/src/wallet → wallet}/mainModule.d.ts +1 -0
  51. package/dist/wallet/mainModule.d.ts.map +1 -0
  52. package/dist/wallet/mainModule.js +161 -0
  53. package/dist/{declarations/src/wallet → wallet}/mainModuleUpgradable.d.ts +1 -0
  54. package/dist/wallet/mainModuleUpgradable.d.ts.map +1 -0
  55. package/dist/wallet/mainModuleUpgradable.js +31 -0
  56. package/dist/{declarations/src/wallet → wallet}/moduleHooks.d.ts +1 -0
  57. package/dist/wallet/moduleHooks.d.ts.map +1 -0
  58. package/dist/wallet/moduleHooks.js +251 -0
  59. package/dist/{declarations/src/wallet → wallet}/sequenceUtils.d.ts +1 -0
  60. package/dist/wallet/sequenceUtils.d.ts.map +1 -0
  61. package/dist/wallet/sequenceUtils.js +519 -0
  62. package/dist/{declarations/src/wallet → wallet}/walletProxyHook.d.ts +1 -0
  63. package/dist/wallet/walletProxyHook.d.ts.map +1 -0
  64. package/dist/wallet/walletProxyHook.js +12 -0
  65. package/package.json +19 -13
  66. package/src/index.ts +2 -3
  67. package/src/sale/erc1155Sale.ts +67 -67
  68. package/src/sale/erc721Sale.ts +67 -67
  69. package/src/tokens/erc1155.ts +97 -97
  70. package/src/{saleItems/erc1155SaleItems.ts → tokens/erc1155Items.ts} +69 -68
  71. package/src/tokens/erc20.ts +76 -76
  72. package/src/tokens/erc6909.ts +95 -95
  73. package/src/tokens/erc721.ts +105 -105
  74. package/src/{saleItems/erc721SaleItems.ts → tokens/erc721Items.ts} +79 -78
  75. package/src/wallet/erc1271.ts +8 -8
  76. package/src/wallet/erc5719.ts +6 -6
  77. package/src/wallet/erc6492.ts +11 -11
  78. package/src/wallet/factory.ts +5 -5
  79. package/src/wallet/index.ts +1 -1
  80. package/src/wallet/libs/requireFreshSigners.ts +4 -4
  81. package/src/wallet/mainModule.ts +41 -41
  82. package/src/wallet/mainModuleUpgradable.ts +7 -7
  83. package/src/wallet/moduleHooks.ts +60 -60
  84. package/src/wallet/sequenceUtils.ts +123 -123
  85. package/src/wallet/walletProxyHook.ts +2 -2
  86. package/tsconfig.json +10 -0
  87. package/dist/0xsequence-abi.cjs.d.ts +0 -2
  88. package/dist/0xsequence-abi.cjs.dev.js +0 -4638
  89. package/dist/0xsequence-abi.cjs.js +0 -7
  90. package/dist/0xsequence-abi.cjs.prod.js +0 -4638
  91. package/dist/0xsequence-abi.esm.js +0 -4616
  92. package/dist/declarations/src/index.d.ts +0 -19
@@ -4,16 +4,16 @@ export const abi = [
4
4
  {
5
5
  internalType: 'address',
6
6
  name: '_factory',
7
- type: 'address'
7
+ type: 'address',
8
8
  },
9
9
  {
10
10
  internalType: 'address',
11
11
  name: '_mainModule',
12
- type: 'address'
13
- }
12
+ type: 'address',
13
+ },
14
14
  ],
15
15
  stateMutability: 'nonpayable',
16
- type: 'constructor'
16
+ type: 'constructor',
17
17
  },
18
18
  {
19
19
  anonymous: false,
@@ -22,29 +22,29 @@ export const abi = [
22
22
  indexed: true,
23
23
  internalType: 'address',
24
24
  name: '_wallet',
25
- type: 'address'
25
+ type: 'address',
26
26
  },
27
27
  {
28
28
  indexed: true,
29
29
  internalType: 'bytes32',
30
30
  name: '_imageHash',
31
- type: 'bytes32'
31
+ type: 'bytes32',
32
32
  },
33
33
  {
34
34
  indexed: false,
35
35
  internalType: 'uint256',
36
36
  name: '_threshold',
37
- type: 'uint256'
37
+ type: 'uint256',
38
38
  },
39
39
  {
40
40
  indexed: false,
41
41
  internalType: 'bytes',
42
42
  name: '_signers',
43
- type: 'bytes'
44
- }
43
+ type: 'bytes',
44
+ },
45
45
  ],
46
46
  name: 'RequiredConfig',
47
- type: 'event'
47
+ type: 'event',
48
48
  },
49
49
  {
50
50
  anonymous: false,
@@ -53,36 +53,36 @@ export const abi = [
53
53
  indexed: true,
54
54
  internalType: 'address',
55
55
  name: '_wallet',
56
- type: 'address'
56
+ type: 'address',
57
57
  },
58
58
  {
59
59
  indexed: true,
60
60
  internalType: 'address',
61
61
  name: '_signer',
62
- type: 'address'
63
- }
62
+ type: 'address',
63
+ },
64
64
  ],
65
65
  name: 'RequiredSigner',
66
- type: 'event'
66
+ type: 'event',
67
67
  },
68
68
  {
69
69
  inputs: [
70
70
  {
71
71
  internalType: 'address',
72
72
  name: '_addr',
73
- type: 'address'
74
- }
73
+ type: 'address',
74
+ },
75
75
  ],
76
76
  name: 'callBalanceOf',
77
77
  outputs: [
78
78
  {
79
79
  internalType: 'uint256',
80
80
  name: '',
81
- type: 'uint256'
82
- }
81
+ type: 'uint256',
82
+ },
83
83
  ],
84
84
  stateMutability: 'view',
85
- type: 'function'
85
+ type: 'function',
86
86
  },
87
87
  {
88
88
  inputs: [],
@@ -91,30 +91,30 @@ export const abi = [
91
91
  {
92
92
  internalType: 'uint256',
93
93
  name: '',
94
- type: 'uint256'
95
- }
94
+ type: 'uint256',
95
+ },
96
96
  ],
97
97
  stateMutability: 'view',
98
- type: 'function'
98
+ type: 'function',
99
99
  },
100
100
  {
101
101
  inputs: [
102
102
  {
103
103
  internalType: 'uint256',
104
104
  name: '_i',
105
- type: 'uint256'
106
- }
105
+ type: 'uint256',
106
+ },
107
107
  ],
108
108
  name: 'callBlockhash',
109
109
  outputs: [
110
110
  {
111
111
  internalType: 'bytes32',
112
112
  name: '',
113
- type: 'bytes32'
114
- }
113
+ type: 'bytes32',
114
+ },
115
115
  ],
116
116
  stateMutability: 'view',
117
- type: 'function'
117
+ type: 'function',
118
118
  },
119
119
  {
120
120
  inputs: [],
@@ -123,68 +123,68 @@ export const abi = [
123
123
  {
124
124
  internalType: 'uint256',
125
125
  name: 'id',
126
- type: 'uint256'
127
- }
126
+ type: 'uint256',
127
+ },
128
128
  ],
129
129
  stateMutability: 'pure',
130
- type: 'function'
130
+ type: 'function',
131
131
  },
132
132
  {
133
133
  inputs: [
134
134
  {
135
135
  internalType: 'address',
136
136
  name: '_addr',
137
- type: 'address'
138
- }
137
+ type: 'address',
138
+ },
139
139
  ],
140
140
  name: 'callCode',
141
141
  outputs: [
142
142
  {
143
143
  internalType: 'bytes',
144
144
  name: 'code',
145
- type: 'bytes'
146
- }
145
+ type: 'bytes',
146
+ },
147
147
  ],
148
148
  stateMutability: 'view',
149
- type: 'function'
149
+ type: 'function',
150
150
  },
151
151
  {
152
152
  inputs: [
153
153
  {
154
154
  internalType: 'address',
155
155
  name: '_addr',
156
- type: 'address'
157
- }
156
+ type: 'address',
157
+ },
158
158
  ],
159
159
  name: 'callCodeHash',
160
160
  outputs: [
161
161
  {
162
162
  internalType: 'bytes32',
163
163
  name: 'codeHash',
164
- type: 'bytes32'
165
- }
164
+ type: 'bytes32',
165
+ },
166
166
  ],
167
167
  stateMutability: 'view',
168
- type: 'function'
168
+ type: 'function',
169
169
  },
170
170
  {
171
171
  inputs: [
172
172
  {
173
173
  internalType: 'address',
174
174
  name: '_addr',
175
- type: 'address'
176
- }
175
+ type: 'address',
176
+ },
177
177
  ],
178
178
  name: 'callCodeSize',
179
179
  outputs: [
180
180
  {
181
181
  internalType: 'uint256',
182
182
  name: 'size',
183
- type: 'uint256'
184
- }
183
+ type: 'uint256',
184
+ },
185
185
  ],
186
186
  stateMutability: 'view',
187
- type: 'function'
187
+ type: 'function',
188
188
  },
189
189
  {
190
190
  inputs: [],
@@ -193,11 +193,11 @@ export const abi = [
193
193
  {
194
194
  internalType: 'address',
195
195
  name: '',
196
- type: 'address'
197
- }
196
+ type: 'address',
197
+ },
198
198
  ],
199
199
  stateMutability: 'view',
200
- type: 'function'
200
+ type: 'function',
201
201
  },
202
202
  {
203
203
  inputs: [],
@@ -206,11 +206,11 @@ export const abi = [
206
206
  {
207
207
  internalType: 'uint256',
208
208
  name: '',
209
- type: 'uint256'
210
- }
209
+ type: 'uint256',
210
+ },
211
211
  ],
212
212
  stateMutability: 'view',
213
- type: 'function'
213
+ type: 'function',
214
214
  },
215
215
  {
216
216
  inputs: [],
@@ -219,11 +219,11 @@ export const abi = [
219
219
  {
220
220
  internalType: 'uint256',
221
221
  name: '',
222
- type: 'uint256'
223
- }
222
+ type: 'uint256',
223
+ },
224
224
  ],
225
225
  stateMutability: 'view',
226
- type: 'function'
226
+ type: 'function',
227
227
  },
228
228
  {
229
229
  inputs: [],
@@ -232,11 +232,11 @@ export const abi = [
232
232
  {
233
233
  internalType: 'uint256',
234
234
  name: '',
235
- type: 'uint256'
236
- }
235
+ type: 'uint256',
236
+ },
237
237
  ],
238
238
  stateMutability: 'view',
239
- type: 'function'
239
+ type: 'function',
240
240
  },
241
241
  {
242
242
  inputs: [],
@@ -245,11 +245,11 @@ export const abi = [
245
245
  {
246
246
  internalType: 'uint256',
247
247
  name: '',
248
- type: 'uint256'
249
- }
248
+ type: 'uint256',
249
+ },
250
250
  ],
251
251
  stateMutability: 'view',
252
- type: 'function'
252
+ type: 'function',
253
253
  },
254
254
  {
255
255
  inputs: [],
@@ -258,11 +258,11 @@ export const abi = [
258
258
  {
259
259
  internalType: 'address',
260
260
  name: '',
261
- type: 'address'
262
- }
261
+ type: 'address',
262
+ },
263
263
  ],
264
264
  stateMutability: 'view',
265
- type: 'function'
265
+ type: 'function',
266
266
  },
267
267
  {
268
268
  inputs: [],
@@ -271,87 +271,87 @@ export const abi = [
271
271
  {
272
272
  internalType: 'uint256',
273
273
  name: '',
274
- type: 'uint256'
275
- }
274
+ type: 'uint256',
275
+ },
276
276
  ],
277
277
  stateMutability: 'view',
278
- type: 'function'
278
+ type: 'function',
279
279
  },
280
280
  {
281
281
  inputs: [
282
282
  {
283
283
  internalType: 'address',
284
284
  name: '',
285
- type: 'address'
286
- }
285
+ type: 'address',
286
+ },
287
287
  ],
288
288
  name: 'knownImageHashes',
289
289
  outputs: [
290
290
  {
291
291
  internalType: 'bytes32',
292
292
  name: '',
293
- type: 'bytes32'
294
- }
293
+ type: 'bytes32',
294
+ },
295
295
  ],
296
296
  stateMutability: 'view',
297
- type: 'function'
297
+ type: 'function',
298
298
  },
299
299
  {
300
300
  inputs: [
301
301
  {
302
302
  internalType: 'bytes32',
303
303
  name: '',
304
- type: 'bytes32'
305
- }
304
+ type: 'bytes32',
305
+ },
306
306
  ],
307
307
  name: 'lastImageHashUpdate',
308
308
  outputs: [
309
309
  {
310
310
  internalType: 'uint256',
311
311
  name: '',
312
- type: 'uint256'
313
- }
312
+ type: 'uint256',
313
+ },
314
314
  ],
315
315
  stateMutability: 'view',
316
- type: 'function'
316
+ type: 'function',
317
317
  },
318
318
  {
319
319
  inputs: [
320
320
  {
321
321
  internalType: 'address',
322
322
  name: '',
323
- type: 'address'
324
- }
323
+ type: 'address',
324
+ },
325
325
  ],
326
326
  name: 'lastSignerUpdate',
327
327
  outputs: [
328
328
  {
329
329
  internalType: 'uint256',
330
330
  name: '',
331
- type: 'uint256'
332
- }
331
+ type: 'uint256',
332
+ },
333
333
  ],
334
334
  stateMutability: 'view',
335
- type: 'function'
335
+ type: 'function',
336
336
  },
337
337
  {
338
338
  inputs: [
339
339
  {
340
340
  internalType: 'address',
341
341
  name: '',
342
- type: 'address'
343
- }
342
+ type: 'address',
343
+ },
344
344
  ],
345
345
  name: 'lastWalletUpdate',
346
346
  outputs: [
347
347
  {
348
348
  internalType: 'uint256',
349
349
  name: '',
350
- type: 'uint256'
351
- }
350
+ type: 'uint256',
351
+ },
352
352
  ],
353
353
  stateMutability: 'view',
354
- type: 'function'
354
+ type: 'function',
355
355
  },
356
356
  {
357
357
  inputs: [
@@ -360,157 +360,157 @@ export const abi = [
360
360
  {
361
361
  internalType: 'bool',
362
362
  name: 'delegateCall',
363
- type: 'bool'
363
+ type: 'bool',
364
364
  },
365
365
  {
366
366
  internalType: 'bool',
367
367
  name: 'revertOnError',
368
- type: 'bool'
368
+ type: 'bool',
369
369
  },
370
370
  {
371
371
  internalType: 'uint256',
372
372
  name: 'gasLimit',
373
- type: 'uint256'
373
+ type: 'uint256',
374
374
  },
375
375
  {
376
376
  internalType: 'address',
377
377
  name: 'target',
378
- type: 'address'
378
+ type: 'address',
379
379
  },
380
380
  {
381
381
  internalType: 'uint256',
382
382
  name: 'value',
383
- type: 'uint256'
383
+ type: 'uint256',
384
384
  },
385
385
  {
386
386
  internalType: 'bytes',
387
387
  name: 'data',
388
- type: 'bytes'
389
- }
388
+ type: 'bytes',
389
+ },
390
390
  ],
391
391
  internalType: 'struct IModuleCalls.Transaction[]',
392
392
  name: '_txs',
393
- type: 'tuple[]'
394
- }
393
+ type: 'tuple[]',
394
+ },
395
395
  ],
396
396
  name: 'multiCall',
397
397
  outputs: [
398
398
  {
399
399
  internalType: 'bool[]',
400
400
  name: '_successes',
401
- type: 'bool[]'
401
+ type: 'bool[]',
402
402
  },
403
403
  {
404
404
  internalType: 'bytes[]',
405
405
  name: '_results',
406
- type: 'bytes[]'
407
- }
406
+ type: 'bytes[]',
407
+ },
408
408
  ],
409
409
  stateMutability: 'payable',
410
- type: 'function'
410
+ type: 'function',
411
411
  },
412
412
  {
413
413
  inputs: [
414
414
  {
415
415
  internalType: 'address',
416
416
  name: '_wallet',
417
- type: 'address'
417
+ type: 'address',
418
418
  },
419
419
  {
420
420
  internalType: 'uint256',
421
421
  name: '_threshold',
422
- type: 'uint256'
422
+ type: 'uint256',
423
423
  },
424
424
  {
425
425
  components: [
426
426
  {
427
427
  internalType: 'uint256',
428
428
  name: 'weight',
429
- type: 'uint256'
429
+ type: 'uint256',
430
430
  },
431
431
  {
432
432
  internalType: 'address',
433
433
  name: 'signer',
434
- type: 'address'
435
- }
434
+ type: 'address',
435
+ },
436
436
  ],
437
437
  internalType: 'struct RequireUtils.Member[]',
438
438
  name: '_members',
439
- type: 'tuple[]'
439
+ type: 'tuple[]',
440
440
  },
441
441
  {
442
442
  internalType: 'bool',
443
443
  name: '_index',
444
- type: 'bool'
445
- }
444
+ type: 'bool',
445
+ },
446
446
  ],
447
447
  name: 'publishConfig',
448
448
  outputs: [],
449
449
  stateMutability: 'nonpayable',
450
- type: 'function'
450
+ type: 'function',
451
451
  },
452
452
  {
453
453
  inputs: [
454
454
  {
455
455
  internalType: 'address',
456
456
  name: '_wallet',
457
- type: 'address'
457
+ type: 'address',
458
458
  },
459
459
  {
460
460
  internalType: 'bytes32',
461
461
  name: '_hash',
462
- type: 'bytes32'
462
+ type: 'bytes32',
463
463
  },
464
464
  {
465
465
  internalType: 'uint256',
466
466
  name: '_sizeMembers',
467
- type: 'uint256'
467
+ type: 'uint256',
468
468
  },
469
469
  {
470
470
  internalType: 'bytes',
471
471
  name: '_signature',
472
- type: 'bytes'
472
+ type: 'bytes',
473
473
  },
474
474
  {
475
475
  internalType: 'bool',
476
476
  name: '_index',
477
- type: 'bool'
478
- }
477
+ type: 'bool',
478
+ },
479
479
  ],
480
480
  name: 'publishInitialSigners',
481
481
  outputs: [],
482
482
  stateMutability: 'nonpayable',
483
- type: 'function'
483
+ type: 'function',
484
484
  },
485
485
  {
486
486
  inputs: [
487
487
  {
488
488
  internalType: 'address',
489
489
  name: '_wallet',
490
- type: 'address'
490
+ type: 'address',
491
491
  },
492
492
  {
493
493
  internalType: 'uint256',
494
494
  name: '_nonce',
495
- type: 'uint256'
496
- }
495
+ type: 'uint256',
496
+ },
497
497
  ],
498
498
  name: 'requireMinNonce',
499
499
  outputs: [],
500
500
  stateMutability: 'view',
501
- type: 'function'
501
+ type: 'function',
502
502
  },
503
503
  {
504
504
  inputs: [
505
505
  {
506
506
  internalType: 'uint256',
507
507
  name: '_expiration',
508
- type: 'uint256'
509
- }
508
+ type: 'uint256',
509
+ },
510
510
  ],
511
511
  name: 'requireNonExpired',
512
512
  outputs: [],
513
513
  stateMutability: 'view',
514
- type: 'function'
515
- }
514
+ type: 'function',
515
+ },
516
516
  ] as const
@@ -4,6 +4,6 @@ export const abi = [
4
4
  name: 'PROXY_getImplementation',
5
5
  inputs: [],
6
6
  outputs: [{ name: '', type: 'address', internalType: 'address' }],
7
- stateMutability: 'view'
8
- }
7
+ stateMutability: 'view',
8
+ },
9
9
  ] as const
package/tsconfig.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "@repo/typescript-config/base.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "outDir": "dist",
6
+ "types": ["node"]
7
+ },
8
+ "include": ["src"],
9
+ "exclude": ["node_modules", "dist"]
10
+ }
@@ -1,2 +0,0 @@
1
- export * from "./declarations/src/index.js";
2
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMHhzZXF1ZW5jZS1hYmkuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9