@0xsequence/abi 2.3.17 → 2.3.19

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.
@@ -1,4638 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const abi$9 = [{
6
- inputs: [{
7
- internalType: 'bytes32',
8
- type: 'bytes32'
9
- }],
10
- name: 'getAlternativeSignature',
11
- outputs: [{
12
- internalType: 'string',
13
- type: 'string'
14
- }],
15
- stateMutability: 'view',
16
- type: 'function'
17
- }];
18
-
19
- var erc5719 = /*#__PURE__*/Object.freeze({
20
- __proto__: null,
21
- abi: abi$9
22
- });
23
-
24
- const abi$8 = [{
25
- type: 'function',
26
- name: 'isValidSignature',
27
- constant: true,
28
- inputs: [{
29
- type: 'bytes32'
30
- }, {
31
- type: 'bytes'
32
- }],
33
- outputs: [{
34
- type: 'bytes4'
35
- }],
36
- payable: false,
37
- stateMutability: 'view'
38
- }];
39
- const returns = {
40
- isValidSignatureBytes32: '0x1626ba7e'
41
- };
42
-
43
- var erc1271 = /*#__PURE__*/Object.freeze({
44
- __proto__: null,
45
- abi: abi$8,
46
- returns: returns
47
- });
48
-
49
- const abi$7 = [{
50
- inputs: [{
51
- internalType: 'bytes',
52
- name: 'error',
53
- type: 'bytes'
54
- }],
55
- name: 'ERC1271Revert',
56
- type: 'error'
57
- }, {
58
- inputs: [{
59
- internalType: 'bytes',
60
- name: 'error',
61
- type: 'bytes'
62
- }],
63
- name: 'ERC6492DeployFailed',
64
- type: 'error'
65
- }, {
66
- inputs: [{
67
- internalType: 'address',
68
- name: '_signer',
69
- type: 'address'
70
- }, {
71
- internalType: 'bytes32',
72
- name: '_hash',
73
- type: 'bytes32'
74
- }, {
75
- internalType: 'bytes',
76
- name: '_signature',
77
- type: 'bytes'
78
- }],
79
- name: 'isValidSig',
80
- outputs: [{
81
- internalType: 'bool',
82
- name: '',
83
- type: 'bool'
84
- }],
85
- stateMutability: 'nonpayable',
86
- type: 'function'
87
- }, {
88
- inputs: [{
89
- internalType: 'address',
90
- name: '_signer',
91
- type: 'address'
92
- }, {
93
- internalType: 'bytes32',
94
- name: '_hash',
95
- type: 'bytes32'
96
- }, {
97
- internalType: 'bytes',
98
- name: '_signature',
99
- type: 'bytes'
100
- }, {
101
- internalType: 'bool',
102
- name: 'allowSideEffects',
103
- type: 'bool'
104
- }, {
105
- internalType: 'bool',
106
- name: 'deployAlreadyDeployed',
107
- type: 'bool'
108
- }],
109
- name: 'isValidSigImpl',
110
- outputs: [{
111
- internalType: 'bool',
112
- name: '',
113
- type: 'bool'
114
- }],
115
- stateMutability: 'nonpayable',
116
- type: 'function'
117
- }, {
118
- inputs: [{
119
- internalType: 'address',
120
- name: '_signer',
121
- type: 'address'
122
- }, {
123
- internalType: 'bytes32',
124
- name: '_hash',
125
- type: 'bytes32'
126
- }, {
127
- internalType: 'bytes',
128
- name: '_signature',
129
- type: 'bytes'
130
- }],
131
- name: 'isValidSigNoThrow',
132
- outputs: [{
133
- internalType: 'bool',
134
- name: '',
135
- type: 'bool'
136
- }],
137
- stateMutability: 'nonpayable',
138
- type: 'function'
139
- }, {
140
- inputs: [{
141
- internalType: 'address',
142
- name: '_signer',
143
- type: 'address'
144
- }, {
145
- internalType: 'bytes32',
146
- name: '_hash',
147
- type: 'bytes32'
148
- }, {
149
- internalType: 'bytes',
150
- name: '_signature',
151
- type: 'bytes'
152
- }],
153
- name: 'isValidSigWithSideEffects',
154
- outputs: [{
155
- internalType: 'bool',
156
- name: '',
157
- type: 'bool'
158
- }],
159
- stateMutability: 'nonpayable',
160
- type: 'function'
161
- }, {
162
- inputs: [{
163
- internalType: 'address',
164
- name: '_signer',
165
- type: 'address'
166
- }, {
167
- internalType: 'bytes32',
168
- name: '_hash',
169
- type: 'bytes32'
170
- }, {
171
- internalType: 'bytes',
172
- name: '_signature',
173
- type: 'bytes'
174
- }],
175
- name: 'isValidSigWithSideEffectsNoThrow',
176
- outputs: [{
177
- internalType: 'bool',
178
- name: '',
179
- type: 'bool'
180
- }],
181
- stateMutability: 'nonpayable',
182
- type: 'function'
183
- }];
184
-
185
- var erc6492 = /*#__PURE__*/Object.freeze({
186
- __proto__: null,
187
- abi: abi$7
188
- });
189
-
190
- const abi$6 = [{
191
- type: 'function',
192
- name: 'deploy',
193
- constant: false,
194
- inputs: [{
195
- type: 'address'
196
- }, {
197
- type: 'bytes32'
198
- }],
199
- outputs: [],
200
- payable: true,
201
- stateMutability: 'payable'
202
- }];
203
-
204
- var factory = /*#__PURE__*/Object.freeze({
205
- __proto__: null,
206
- abi: abi$6
207
- });
208
-
209
- const abi$5 = [{
210
- type: 'function',
211
- name: 'nonce',
212
- constant: true,
213
- inputs: [],
214
- outputs: [{
215
- type: 'uint256'
216
- }],
217
- payable: false,
218
- stateMutability: 'view'
219
- }, {
220
- type: 'function',
221
- name: 'readNonce',
222
- constant: true,
223
- inputs: [{
224
- type: 'uint256'
225
- }],
226
- outputs: [{
227
- type: 'uint256'
228
- }],
229
- payable: false,
230
- stateMutability: 'view'
231
- }, {
232
- type: 'function',
233
- name: 'updateImplementation',
234
- constant: false,
235
- inputs: [{
236
- type: 'address'
237
- }],
238
- outputs: [],
239
- payable: false,
240
- stateMutability: 'nonpayable'
241
- }, {
242
- type: 'function',
243
- name: 'selfExecute',
244
- constant: false,
245
- inputs: [{
246
- components: [{
247
- type: 'bool',
248
- name: 'delegateCall'
249
- }, {
250
- type: 'bool',
251
- name: 'revertOnError'
252
- }, {
253
- type: 'uint256',
254
- name: 'gasLimit'
255
- }, {
256
- type: 'address',
257
- name: 'target'
258
- }, {
259
- type: 'uint256',
260
- name: 'value'
261
- }, {
262
- type: 'bytes',
263
- name: 'data'
264
- }],
265
- type: 'tuple[]'
266
- }],
267
- outputs: [],
268
- payable: false,
269
- stateMutability: 'nonpayable'
270
- }, {
271
- type: 'function',
272
- name: 'execute',
273
- constant: false,
274
- inputs: [{
275
- components: [{
276
- type: 'bool',
277
- name: 'delegateCall'
278
- }, {
279
- type: 'bool',
280
- name: 'revertOnError'
281
- }, {
282
- type: 'uint256',
283
- name: 'gasLimit'
284
- }, {
285
- type: 'address',
286
- name: 'target'
287
- }, {
288
- type: 'uint256',
289
- name: 'value'
290
- }, {
291
- type: 'bytes',
292
- name: 'data'
293
- }],
294
- type: 'tuple[]'
295
- }, {
296
- type: 'uint256'
297
- }, {
298
- type: 'bytes'
299
- }],
300
- outputs: [],
301
- payable: false,
302
- stateMutability: 'nonpayable'
303
- }, {
304
- type: 'function',
305
- name: 'createContract',
306
- inputs: [{
307
- type: 'bytes'
308
- }],
309
- payable: true,
310
- stateMutability: 'payable'
311
- }, {
312
- type: 'function',
313
- name: 'setExtraImageHash',
314
- constant: false,
315
- inputs: [{
316
- type: 'bytes32',
317
- name: 'imageHash'
318
- }, {
319
- type: 'uint256',
320
- name: 'expiration'
321
- }],
322
- outputs: [],
323
- payable: false,
324
- stateMutability: 'nonpayable'
325
- }];
326
-
327
- var mainModule = /*#__PURE__*/Object.freeze({
328
- __proto__: null,
329
- abi: abi$5
330
- });
331
-
332
- const abi$4 = [{
333
- type: 'function',
334
- name: 'updateImageHash',
335
- constant: true,
336
- inputs: [{
337
- type: 'bytes32'
338
- }],
339
- outputs: [],
340
- payable: false,
341
- stateMutability: 'view'
342
- }, {
343
- type: 'function',
344
- name: 'imageHash',
345
- constant: true,
346
- inputs: [],
347
- outputs: [{
348
- type: 'bytes32'
349
- }],
350
- payable: false,
351
- stateMutability: 'view'
352
- }];
353
-
354
- var mainModuleUpgradable = /*#__PURE__*/Object.freeze({
355
- __proto__: null,
356
- abi: abi$4
357
- });
358
-
359
- const abi$3 = [{
360
- inputs: [{
361
- internalType: 'bytes4',
362
- name: '_signature',
363
- type: 'bytes4'
364
- }],
365
- name: 'HookAlreadyExists',
366
- type: 'error'
367
- }, {
368
- inputs: [{
369
- internalType: 'bytes4',
370
- name: '_signature',
371
- type: 'bytes4'
372
- }],
373
- name: 'HookDoesNotExist',
374
- type: 'error'
375
- }, {
376
- inputs: [{
377
- internalType: 'address',
378
- name: '_sender',
379
- type: 'address'
380
- }, {
381
- internalType: 'address',
382
- name: '_self',
383
- type: 'address'
384
- }],
385
- name: 'OnlySelfAuth',
386
- type: 'error'
387
- }, {
388
- anonymous: false,
389
- inputs: [{
390
- indexed: false,
391
- internalType: 'bytes4',
392
- name: '_signature',
393
- type: 'bytes4'
394
- }, {
395
- indexed: false,
396
- internalType: 'address',
397
- name: '_implementation',
398
- type: 'address'
399
- }],
400
- name: 'DefinedHook',
401
- type: 'event'
402
- }, {
403
- stateMutability: 'payable',
404
- type: 'fallback'
405
- }, {
406
- inputs: [{
407
- internalType: 'bytes4',
408
- name: '_signature',
409
- type: 'bytes4'
410
- }, {
411
- internalType: 'address',
412
- name: '_implementation',
413
- type: 'address'
414
- }],
415
- name: 'addHook',
416
- outputs: [],
417
- stateMutability: 'nonpayable',
418
- type: 'function'
419
- }, {
420
- inputs: [{
421
- internalType: 'address',
422
- name: '',
423
- type: 'address'
424
- }, {
425
- internalType: 'address',
426
- name: '',
427
- type: 'address'
428
- }, {
429
- internalType: 'uint256[]',
430
- name: '',
431
- type: 'uint256[]'
432
- }, {
433
- internalType: 'uint256[]',
434
- name: '',
435
- type: 'uint256[]'
436
- }, {
437
- internalType: 'bytes',
438
- name: '',
439
- type: 'bytes'
440
- }],
441
- name: 'onERC1155BatchReceived',
442
- outputs: [{
443
- internalType: 'bytes4',
444
- name: '',
445
- type: 'bytes4'
446
- }],
447
- stateMutability: 'nonpayable',
448
- type: 'function'
449
- }, {
450
- inputs: [{
451
- internalType: 'address',
452
- name: '',
453
- type: 'address'
454
- }, {
455
- internalType: 'address',
456
- name: '',
457
- type: 'address'
458
- }, {
459
- internalType: 'uint256',
460
- name: '',
461
- type: 'uint256'
462
- }, {
463
- internalType: 'uint256',
464
- name: '',
465
- type: 'uint256'
466
- }, {
467
- internalType: 'bytes',
468
- name: '',
469
- type: 'bytes'
470
- }],
471
- name: 'onERC1155Received',
472
- outputs: [{
473
- internalType: 'bytes4',
474
- name: '',
475
- type: 'bytes4'
476
- }],
477
- stateMutability: 'nonpayable',
478
- type: 'function'
479
- }, {
480
- inputs: [{
481
- internalType: 'address',
482
- name: '',
483
- type: 'address'
484
- }, {
485
- internalType: 'address',
486
- name: '',
487
- type: 'address'
488
- }, {
489
- internalType: 'uint256',
490
- name: '',
491
- type: 'uint256'
492
- }, {
493
- internalType: 'bytes',
494
- name: '',
495
- type: 'bytes'
496
- }],
497
- name: 'onERC721Received',
498
- outputs: [{
499
- internalType: 'bytes4',
500
- name: '',
501
- type: 'bytes4'
502
- }],
503
- stateMutability: 'nonpayable',
504
- type: 'function'
505
- }, {
506
- inputs: [{
507
- internalType: 'bytes4',
508
- name: '_signature',
509
- type: 'bytes4'
510
- }],
511
- name: 'readHook',
512
- outputs: [{
513
- internalType: 'address',
514
- name: '',
515
- type: 'address'
516
- }],
517
- stateMutability: 'view',
518
- type: 'function'
519
- }, {
520
- inputs: [{
521
- internalType: 'bytes4',
522
- name: '_signature',
523
- type: 'bytes4'
524
- }],
525
- name: 'removeHook',
526
- outputs: [],
527
- stateMutability: 'nonpayable',
528
- type: 'function'
529
- }, {
530
- inputs: [{
531
- internalType: 'bytes4',
532
- name: '_interfaceID',
533
- type: 'bytes4'
534
- }],
535
- name: 'supportsInterface',
536
- outputs: [{
537
- internalType: 'bool',
538
- name: '',
539
- type: 'bool'
540
- }],
541
- stateMutability: 'pure',
542
- type: 'function'
543
- }, {
544
- stateMutability: 'payable',
545
- type: 'receive'
546
- }];
547
-
548
- var moduleHooks = /*#__PURE__*/Object.freeze({
549
- __proto__: null,
550
- abi: abi$3
551
- });
552
-
553
- const abi$2 = [{
554
- inputs: [{
555
- internalType: 'address',
556
- name: '_factory',
557
- type: 'address'
558
- }, {
559
- internalType: 'address',
560
- name: '_mainModule',
561
- type: 'address'
562
- }],
563
- stateMutability: 'nonpayable',
564
- type: 'constructor'
565
- }, {
566
- anonymous: false,
567
- inputs: [{
568
- indexed: true,
569
- internalType: 'address',
570
- name: '_wallet',
571
- type: 'address'
572
- }, {
573
- indexed: true,
574
- internalType: 'bytes32',
575
- name: '_imageHash',
576
- type: 'bytes32'
577
- }, {
578
- indexed: false,
579
- internalType: 'uint256',
580
- name: '_threshold',
581
- type: 'uint256'
582
- }, {
583
- indexed: false,
584
- internalType: 'bytes',
585
- name: '_signers',
586
- type: 'bytes'
587
- }],
588
- name: 'RequiredConfig',
589
- type: 'event'
590
- }, {
591
- anonymous: false,
592
- inputs: [{
593
- indexed: true,
594
- internalType: 'address',
595
- name: '_wallet',
596
- type: 'address'
597
- }, {
598
- indexed: true,
599
- internalType: 'address',
600
- name: '_signer',
601
- type: 'address'
602
- }],
603
- name: 'RequiredSigner',
604
- type: 'event'
605
- }, {
606
- inputs: [{
607
- internalType: 'address',
608
- name: '_addr',
609
- type: 'address'
610
- }],
611
- name: 'callBalanceOf',
612
- outputs: [{
613
- internalType: 'uint256',
614
- name: '',
615
- type: 'uint256'
616
- }],
617
- stateMutability: 'view',
618
- type: 'function'
619
- }, {
620
- inputs: [],
621
- name: 'callBlockNumber',
622
- outputs: [{
623
- internalType: 'uint256',
624
- name: '',
625
- type: 'uint256'
626
- }],
627
- stateMutability: 'view',
628
- type: 'function'
629
- }, {
630
- inputs: [{
631
- internalType: 'uint256',
632
- name: '_i',
633
- type: 'uint256'
634
- }],
635
- name: 'callBlockhash',
636
- outputs: [{
637
- internalType: 'bytes32',
638
- name: '',
639
- type: 'bytes32'
640
- }],
641
- stateMutability: 'view',
642
- type: 'function'
643
- }, {
644
- inputs: [],
645
- name: 'callChainId',
646
- outputs: [{
647
- internalType: 'uint256',
648
- name: 'id',
649
- type: 'uint256'
650
- }],
651
- stateMutability: 'pure',
652
- type: 'function'
653
- }, {
654
- inputs: [{
655
- internalType: 'address',
656
- name: '_addr',
657
- type: 'address'
658
- }],
659
- name: 'callCode',
660
- outputs: [{
661
- internalType: 'bytes',
662
- name: 'code',
663
- type: 'bytes'
664
- }],
665
- stateMutability: 'view',
666
- type: 'function'
667
- }, {
668
- inputs: [{
669
- internalType: 'address',
670
- name: '_addr',
671
- type: 'address'
672
- }],
673
- name: 'callCodeHash',
674
- outputs: [{
675
- internalType: 'bytes32',
676
- name: 'codeHash',
677
- type: 'bytes32'
678
- }],
679
- stateMutability: 'view',
680
- type: 'function'
681
- }, {
682
- inputs: [{
683
- internalType: 'address',
684
- name: '_addr',
685
- type: 'address'
686
- }],
687
- name: 'callCodeSize',
688
- outputs: [{
689
- internalType: 'uint256',
690
- name: 'size',
691
- type: 'uint256'
692
- }],
693
- stateMutability: 'view',
694
- type: 'function'
695
- }, {
696
- inputs: [],
697
- name: 'callCoinbase',
698
- outputs: [{
699
- internalType: 'address',
700
- name: '',
701
- type: 'address'
702
- }],
703
- stateMutability: 'view',
704
- type: 'function'
705
- }, {
706
- inputs: [],
707
- name: 'callDifficulty',
708
- outputs: [{
709
- internalType: 'uint256',
710
- name: '',
711
- type: 'uint256'
712
- }],
713
- stateMutability: 'view',
714
- type: 'function'
715
- }, {
716
- inputs: [],
717
- name: 'callGasLeft',
718
- outputs: [{
719
- internalType: 'uint256',
720
- name: '',
721
- type: 'uint256'
722
- }],
723
- stateMutability: 'view',
724
- type: 'function'
725
- }, {
726
- inputs: [],
727
- name: 'callGasLimit',
728
- outputs: [{
729
- internalType: 'uint256',
730
- name: '',
731
- type: 'uint256'
732
- }],
733
- stateMutability: 'view',
734
- type: 'function'
735
- }, {
736
- inputs: [],
737
- name: 'callGasPrice',
738
- outputs: [{
739
- internalType: 'uint256',
740
- name: '',
741
- type: 'uint256'
742
- }],
743
- stateMutability: 'view',
744
- type: 'function'
745
- }, {
746
- inputs: [],
747
- name: 'callOrigin',
748
- outputs: [{
749
- internalType: 'address',
750
- name: '',
751
- type: 'address'
752
- }],
753
- stateMutability: 'view',
754
- type: 'function'
755
- }, {
756
- inputs: [],
757
- name: 'callTimestamp',
758
- outputs: [{
759
- internalType: 'uint256',
760
- name: '',
761
- type: 'uint256'
762
- }],
763
- stateMutability: 'view',
764
- type: 'function'
765
- }, {
766
- inputs: [{
767
- internalType: 'address',
768
- name: '',
769
- type: 'address'
770
- }],
771
- name: 'knownImageHashes',
772
- outputs: [{
773
- internalType: 'bytes32',
774
- name: '',
775
- type: 'bytes32'
776
- }],
777
- stateMutability: 'view',
778
- type: 'function'
779
- }, {
780
- inputs: [{
781
- internalType: 'bytes32',
782
- name: '',
783
- type: 'bytes32'
784
- }],
785
- name: 'lastImageHashUpdate',
786
- outputs: [{
787
- internalType: 'uint256',
788
- name: '',
789
- type: 'uint256'
790
- }],
791
- stateMutability: 'view',
792
- type: 'function'
793
- }, {
794
- inputs: [{
795
- internalType: 'address',
796
- name: '',
797
- type: 'address'
798
- }],
799
- name: 'lastSignerUpdate',
800
- outputs: [{
801
- internalType: 'uint256',
802
- name: '',
803
- type: 'uint256'
804
- }],
805
- stateMutability: 'view',
806
- type: 'function'
807
- }, {
808
- inputs: [{
809
- internalType: 'address',
810
- name: '',
811
- type: 'address'
812
- }],
813
- name: 'lastWalletUpdate',
814
- outputs: [{
815
- internalType: 'uint256',
816
- name: '',
817
- type: 'uint256'
818
- }],
819
- stateMutability: 'view',
820
- type: 'function'
821
- }, {
822
- inputs: [{
823
- components: [{
824
- internalType: 'bool',
825
- name: 'delegateCall',
826
- type: 'bool'
827
- }, {
828
- internalType: 'bool',
829
- name: 'revertOnError',
830
- type: 'bool'
831
- }, {
832
- internalType: 'uint256',
833
- name: 'gasLimit',
834
- type: 'uint256'
835
- }, {
836
- internalType: 'address',
837
- name: 'target',
838
- type: 'address'
839
- }, {
840
- internalType: 'uint256',
841
- name: 'value',
842
- type: 'uint256'
843
- }, {
844
- internalType: 'bytes',
845
- name: 'data',
846
- type: 'bytes'
847
- }],
848
- internalType: 'struct IModuleCalls.Transaction[]',
849
- name: '_txs',
850
- type: 'tuple[]'
851
- }],
852
- name: 'multiCall',
853
- outputs: [{
854
- internalType: 'bool[]',
855
- name: '_successes',
856
- type: 'bool[]'
857
- }, {
858
- internalType: 'bytes[]',
859
- name: '_results',
860
- type: 'bytes[]'
861
- }],
862
- stateMutability: 'payable',
863
- type: 'function'
864
- }, {
865
- inputs: [{
866
- internalType: 'address',
867
- name: '_wallet',
868
- type: 'address'
869
- }, {
870
- internalType: 'uint256',
871
- name: '_threshold',
872
- type: 'uint256'
873
- }, {
874
- components: [{
875
- internalType: 'uint256',
876
- name: 'weight',
877
- type: 'uint256'
878
- }, {
879
- internalType: 'address',
880
- name: 'signer',
881
- type: 'address'
882
- }],
883
- internalType: 'struct RequireUtils.Member[]',
884
- name: '_members',
885
- type: 'tuple[]'
886
- }, {
887
- internalType: 'bool',
888
- name: '_index',
889
- type: 'bool'
890
- }],
891
- name: 'publishConfig',
892
- outputs: [],
893
- stateMutability: 'nonpayable',
894
- type: 'function'
895
- }, {
896
- inputs: [{
897
- internalType: 'address',
898
- name: '_wallet',
899
- type: 'address'
900
- }, {
901
- internalType: 'bytes32',
902
- name: '_hash',
903
- type: 'bytes32'
904
- }, {
905
- internalType: 'uint256',
906
- name: '_sizeMembers',
907
- type: 'uint256'
908
- }, {
909
- internalType: 'bytes',
910
- name: '_signature',
911
- type: 'bytes'
912
- }, {
913
- internalType: 'bool',
914
- name: '_index',
915
- type: 'bool'
916
- }],
917
- name: 'publishInitialSigners',
918
- outputs: [],
919
- stateMutability: 'nonpayable',
920
- type: 'function'
921
- }, {
922
- inputs: [{
923
- internalType: 'address',
924
- name: '_wallet',
925
- type: 'address'
926
- }, {
927
- internalType: 'uint256',
928
- name: '_nonce',
929
- type: 'uint256'
930
- }],
931
- name: 'requireMinNonce',
932
- outputs: [],
933
- stateMutability: 'view',
934
- type: 'function'
935
- }, {
936
- inputs: [{
937
- internalType: 'uint256',
938
- name: '_expiration',
939
- type: 'uint256'
940
- }],
941
- name: 'requireNonExpired',
942
- outputs: [],
943
- stateMutability: 'view',
944
- type: 'function'
945
- }];
946
-
947
- var sequenceUtils = /*#__PURE__*/Object.freeze({
948
- __proto__: null,
949
- abi: abi$2
950
- });
951
-
952
- const abi$1 = [{
953
- inputs: [{
954
- internalType: 'address',
955
- name: '',
956
- type: 'address'
957
- }],
958
- name: 'requireFreshSigner',
959
- outputs: [],
960
- stateMutability: 'nonpayable',
961
- type: 'function'
962
- }];
963
-
964
- var requireFreshSigner = /*#__PURE__*/Object.freeze({
965
- __proto__: null,
966
- abi: abi$1
967
- });
968
-
969
- const abi = [{
970
- type: 'function',
971
- name: 'PROXY_getImplementation',
972
- inputs: [],
973
- outputs: [{
974
- name: '',
975
- type: 'address',
976
- internalType: 'address'
977
- }],
978
- stateMutability: 'view'
979
- }];
980
-
981
- var walletProxyHook = /*#__PURE__*/Object.freeze({
982
- __proto__: null,
983
- abi: abi
984
- });
985
-
986
- /**
987
- * @deprecated import directly from @0xsequence/abi/* instead, omitting "walletContracts"
988
- */
989
- const walletContracts = {
990
- erc6492,
991
- erc5719,
992
- erc1271,
993
- factory,
994
- mainModule,
995
- mainModuleUpgradable,
996
- moduleHooks,
997
- sequenceUtils,
998
- requireFreshSigner,
999
- walletProxyHook
1000
- };
1001
-
1002
- // @openzeppelin/contracts@5.0.0/token/ERC1155/ERC1155.sol
1003
- const ERC1155_ABI = [{
1004
- inputs: [],
1005
- stateMutability: 'nonpayable',
1006
- type: 'constructor'
1007
- }, {
1008
- inputs: [{
1009
- internalType: 'address',
1010
- name: 'sender',
1011
- type: 'address'
1012
- }, {
1013
- internalType: 'uint256',
1014
- name: 'balance',
1015
- type: 'uint256'
1016
- }, {
1017
- internalType: 'uint256',
1018
- name: 'needed',
1019
- type: 'uint256'
1020
- }, {
1021
- internalType: 'uint256',
1022
- name: 'tokenId',
1023
- type: 'uint256'
1024
- }],
1025
- name: 'ERC1155InsufficientBalance',
1026
- type: 'error'
1027
- }, {
1028
- inputs: [{
1029
- internalType: 'address',
1030
- name: 'approver',
1031
- type: 'address'
1032
- }],
1033
- name: 'ERC1155InvalidApprover',
1034
- type: 'error'
1035
- }, {
1036
- inputs: [{
1037
- internalType: 'uint256',
1038
- name: 'idsLength',
1039
- type: 'uint256'
1040
- }, {
1041
- internalType: 'uint256',
1042
- name: 'valuesLength',
1043
- type: 'uint256'
1044
- }],
1045
- name: 'ERC1155InvalidArrayLength',
1046
- type: 'error'
1047
- }, {
1048
- inputs: [{
1049
- internalType: 'address',
1050
- name: 'operator',
1051
- type: 'address'
1052
- }],
1053
- name: 'ERC1155InvalidOperator',
1054
- type: 'error'
1055
- }, {
1056
- inputs: [{
1057
- internalType: 'address',
1058
- name: 'receiver',
1059
- type: 'address'
1060
- }],
1061
- name: 'ERC1155InvalidReceiver',
1062
- type: 'error'
1063
- }, {
1064
- inputs: [{
1065
- internalType: 'address',
1066
- name: 'sender',
1067
- type: 'address'
1068
- }],
1069
- name: 'ERC1155InvalidSender',
1070
- type: 'error'
1071
- }, {
1072
- inputs: [{
1073
- internalType: 'address',
1074
- name: 'operator',
1075
- type: 'address'
1076
- }, {
1077
- internalType: 'address',
1078
- name: 'owner',
1079
- type: 'address'
1080
- }],
1081
- name: 'ERC1155MissingApprovalForAll',
1082
- type: 'error'
1083
- }, {
1084
- anonymous: false,
1085
- inputs: [{
1086
- indexed: true,
1087
- internalType: 'address',
1088
- name: 'account',
1089
- type: 'address'
1090
- }, {
1091
- indexed: true,
1092
- internalType: 'address',
1093
- name: 'operator',
1094
- type: 'address'
1095
- }, {
1096
- indexed: false,
1097
- internalType: 'bool',
1098
- name: 'approved',
1099
- type: 'bool'
1100
- }],
1101
- name: 'ApprovalForAll',
1102
- type: 'event'
1103
- }, {
1104
- anonymous: false,
1105
- inputs: [{
1106
- indexed: true,
1107
- internalType: 'address',
1108
- name: 'operator',
1109
- type: 'address'
1110
- }, {
1111
- indexed: true,
1112
- internalType: 'address',
1113
- name: 'from',
1114
- type: 'address'
1115
- }, {
1116
- indexed: true,
1117
- internalType: 'address',
1118
- name: 'to',
1119
- type: 'address'
1120
- }, {
1121
- indexed: false,
1122
- internalType: 'uint256[]',
1123
- name: 'ids',
1124
- type: 'uint256[]'
1125
- }, {
1126
- indexed: false,
1127
- internalType: 'uint256[]',
1128
- name: 'values',
1129
- type: 'uint256[]'
1130
- }],
1131
- name: 'TransferBatch',
1132
- type: 'event'
1133
- }, {
1134
- anonymous: false,
1135
- inputs: [{
1136
- indexed: true,
1137
- internalType: 'address',
1138
- name: 'operator',
1139
- type: 'address'
1140
- }, {
1141
- indexed: true,
1142
- internalType: 'address',
1143
- name: 'from',
1144
- type: 'address'
1145
- }, {
1146
- indexed: true,
1147
- internalType: 'address',
1148
- name: 'to',
1149
- type: 'address'
1150
- }, {
1151
- indexed: false,
1152
- internalType: 'uint256',
1153
- name: 'id',
1154
- type: 'uint256'
1155
- }, {
1156
- indexed: false,
1157
- internalType: 'uint256',
1158
- name: 'value',
1159
- type: 'uint256'
1160
- }],
1161
- name: 'TransferSingle',
1162
- type: 'event'
1163
- }, {
1164
- anonymous: false,
1165
- inputs: [{
1166
- indexed: false,
1167
- internalType: 'string',
1168
- name: 'value',
1169
- type: 'string'
1170
- }, {
1171
- indexed: true,
1172
- internalType: 'uint256',
1173
- name: 'id',
1174
- type: 'uint256'
1175
- }],
1176
- name: 'URI',
1177
- type: 'event'
1178
- }, {
1179
- inputs: [{
1180
- internalType: 'address',
1181
- name: 'account',
1182
- type: 'address'
1183
- }, {
1184
- internalType: 'uint256',
1185
- name: 'id',
1186
- type: 'uint256'
1187
- }],
1188
- name: 'balanceOf',
1189
- outputs: [{
1190
- internalType: 'uint256',
1191
- name: '',
1192
- type: 'uint256'
1193
- }],
1194
- stateMutability: 'view',
1195
- type: 'function'
1196
- }, {
1197
- inputs: [{
1198
- internalType: 'address[]',
1199
- name: 'accounts',
1200
- type: 'address[]'
1201
- }, {
1202
- internalType: 'uint256[]',
1203
- name: 'ids',
1204
- type: 'uint256[]'
1205
- }],
1206
- name: 'balanceOfBatch',
1207
- outputs: [{
1208
- internalType: 'uint256[]',
1209
- name: '',
1210
- type: 'uint256[]'
1211
- }],
1212
- stateMutability: 'view',
1213
- type: 'function'
1214
- }, {
1215
- inputs: [{
1216
- internalType: 'address',
1217
- name: 'account',
1218
- type: 'address'
1219
- }, {
1220
- internalType: 'address',
1221
- name: 'operator',
1222
- type: 'address'
1223
- }],
1224
- name: 'isApprovedForAll',
1225
- outputs: [{
1226
- internalType: 'bool',
1227
- name: '',
1228
- type: 'bool'
1229
- }],
1230
- stateMutability: 'view',
1231
- type: 'function'
1232
- }, {
1233
- inputs: [{
1234
- internalType: 'address',
1235
- name: 'from',
1236
- type: 'address'
1237
- }, {
1238
- internalType: 'address',
1239
- name: 'to',
1240
- type: 'address'
1241
- }, {
1242
- internalType: 'uint256[]',
1243
- name: 'ids',
1244
- type: 'uint256[]'
1245
- }, {
1246
- internalType: 'uint256[]',
1247
- name: 'values',
1248
- type: 'uint256[]'
1249
- }, {
1250
- internalType: 'bytes',
1251
- name: 'data',
1252
- type: 'bytes'
1253
- }],
1254
- name: 'safeBatchTransferFrom',
1255
- outputs: [],
1256
- stateMutability: 'nonpayable',
1257
- type: 'function'
1258
- }, {
1259
- inputs: [{
1260
- internalType: 'address',
1261
- name: 'from',
1262
- type: 'address'
1263
- }, {
1264
- internalType: 'address',
1265
- name: 'to',
1266
- type: 'address'
1267
- }, {
1268
- internalType: 'uint256',
1269
- name: 'id',
1270
- type: 'uint256'
1271
- }, {
1272
- internalType: 'uint256',
1273
- name: 'value',
1274
- type: 'uint256'
1275
- }, {
1276
- internalType: 'bytes',
1277
- name: 'data',
1278
- type: 'bytes'
1279
- }],
1280
- name: 'safeTransferFrom',
1281
- outputs: [],
1282
- stateMutability: 'nonpayable',
1283
- type: 'function'
1284
- }, {
1285
- inputs: [{
1286
- internalType: 'address',
1287
- name: 'operator',
1288
- type: 'address'
1289
- }, {
1290
- internalType: 'bool',
1291
- name: 'approved',
1292
- type: 'bool'
1293
- }],
1294
- name: 'setApprovalForAll',
1295
- outputs: [],
1296
- stateMutability: 'nonpayable',
1297
- type: 'function'
1298
- }, {
1299
- inputs: [{
1300
- internalType: 'bytes4',
1301
- name: 'interfaceId',
1302
- type: 'bytes4'
1303
- }],
1304
- name: 'supportsInterface',
1305
- outputs: [{
1306
- internalType: 'bool',
1307
- name: '',
1308
- type: 'bool'
1309
- }],
1310
- stateMutability: 'view',
1311
- type: 'function'
1312
- }, {
1313
- inputs: [{
1314
- internalType: 'uint256',
1315
- name: '',
1316
- type: 'uint256'
1317
- }],
1318
- name: 'uri',
1319
- outputs: [{
1320
- internalType: 'string',
1321
- name: '',
1322
- type: 'string'
1323
- }],
1324
- stateMutability: 'view',
1325
- type: 'function'
1326
- }];
1327
-
1328
- // @openzeppelin/contracts@5.0.0/token/ERC20/ERC20.sol
1329
- const ERC20_ABI = [{
1330
- inputs: [],
1331
- stateMutability: 'nonpayable',
1332
- type: 'constructor'
1333
- }, {
1334
- inputs: [{
1335
- internalType: 'address',
1336
- name: 'spender',
1337
- type: 'address'
1338
- }, {
1339
- internalType: 'uint256',
1340
- name: 'allowance',
1341
- type: 'uint256'
1342
- }, {
1343
- internalType: 'uint256',
1344
- name: 'needed',
1345
- type: 'uint256'
1346
- }],
1347
- name: 'ERC20InsufficientAllowance',
1348
- type: 'error'
1349
- }, {
1350
- inputs: [{
1351
- internalType: 'address',
1352
- name: 'sender',
1353
- type: 'address'
1354
- }, {
1355
- internalType: 'uint256',
1356
- name: 'balance',
1357
- type: 'uint256'
1358
- }, {
1359
- internalType: 'uint256',
1360
- name: 'needed',
1361
- type: 'uint256'
1362
- }],
1363
- name: 'ERC20InsufficientBalance',
1364
- type: 'error'
1365
- }, {
1366
- inputs: [{
1367
- internalType: 'address',
1368
- name: 'approver',
1369
- type: 'address'
1370
- }],
1371
- name: 'ERC20InvalidApprover',
1372
- type: 'error'
1373
- }, {
1374
- inputs: [{
1375
- internalType: 'address',
1376
- name: 'receiver',
1377
- type: 'address'
1378
- }],
1379
- name: 'ERC20InvalidReceiver',
1380
- type: 'error'
1381
- }, {
1382
- inputs: [{
1383
- internalType: 'address',
1384
- name: 'sender',
1385
- type: 'address'
1386
- }],
1387
- name: 'ERC20InvalidSender',
1388
- type: 'error'
1389
- }, {
1390
- inputs: [{
1391
- internalType: 'address',
1392
- name: 'spender',
1393
- type: 'address'
1394
- }],
1395
- name: 'ERC20InvalidSpender',
1396
- type: 'error'
1397
- }, {
1398
- anonymous: false,
1399
- inputs: [{
1400
- indexed: true,
1401
- internalType: 'address',
1402
- name: 'owner',
1403
- type: 'address'
1404
- }, {
1405
- indexed: true,
1406
- internalType: 'address',
1407
- name: 'spender',
1408
- type: 'address'
1409
- }, {
1410
- indexed: false,
1411
- internalType: 'uint256',
1412
- name: 'value',
1413
- type: 'uint256'
1414
- }],
1415
- name: 'Approval',
1416
- type: 'event'
1417
- }, {
1418
- anonymous: false,
1419
- inputs: [{
1420
- indexed: true,
1421
- internalType: 'address',
1422
- name: 'from',
1423
- type: 'address'
1424
- }, {
1425
- indexed: true,
1426
- internalType: 'address',
1427
- name: 'to',
1428
- type: 'address'
1429
- }, {
1430
- indexed: false,
1431
- internalType: 'uint256',
1432
- name: 'value',
1433
- type: 'uint256'
1434
- }],
1435
- name: 'Transfer',
1436
- type: 'event'
1437
- }, {
1438
- inputs: [{
1439
- internalType: 'address',
1440
- name: 'owner',
1441
- type: 'address'
1442
- }, {
1443
- internalType: 'address',
1444
- name: 'spender',
1445
- type: 'address'
1446
- }],
1447
- name: 'allowance',
1448
- outputs: [{
1449
- internalType: 'uint256',
1450
- name: '',
1451
- type: 'uint256'
1452
- }],
1453
- stateMutability: 'view',
1454
- type: 'function'
1455
- }, {
1456
- inputs: [{
1457
- internalType: 'address',
1458
- name: 'spender',
1459
- type: 'address'
1460
- }, {
1461
- internalType: 'uint256',
1462
- name: 'value',
1463
- type: 'uint256'
1464
- }],
1465
- name: 'approve',
1466
- outputs: [{
1467
- internalType: 'bool',
1468
- name: '',
1469
- type: 'bool'
1470
- }],
1471
- stateMutability: 'nonpayable',
1472
- type: 'function'
1473
- }, {
1474
- inputs: [{
1475
- internalType: 'address',
1476
- name: 'account',
1477
- type: 'address'
1478
- }],
1479
- name: 'balanceOf',
1480
- outputs: [{
1481
- internalType: 'uint256',
1482
- name: '',
1483
- type: 'uint256'
1484
- }],
1485
- stateMutability: 'view',
1486
- type: 'function'
1487
- }, {
1488
- inputs: [],
1489
- name: 'decimals',
1490
- outputs: [{
1491
- internalType: 'uint8',
1492
- name: '',
1493
- type: 'uint8'
1494
- }],
1495
- stateMutability: 'view',
1496
- type: 'function'
1497
- }, {
1498
- inputs: [],
1499
- name: 'name',
1500
- outputs: [{
1501
- internalType: 'string',
1502
- name: '',
1503
- type: 'string'
1504
- }],
1505
- stateMutability: 'view',
1506
- type: 'function'
1507
- }, {
1508
- inputs: [],
1509
- name: 'symbol',
1510
- outputs: [{
1511
- internalType: 'string',
1512
- name: '',
1513
- type: 'string'
1514
- }],
1515
- stateMutability: 'view',
1516
- type: 'function'
1517
- }, {
1518
- inputs: [],
1519
- name: 'totalSupply',
1520
- outputs: [{
1521
- internalType: 'uint256',
1522
- name: '',
1523
- type: 'uint256'
1524
- }],
1525
- stateMutability: 'view',
1526
- type: 'function'
1527
- }, {
1528
- inputs: [{
1529
- internalType: 'address',
1530
- name: 'to',
1531
- type: 'address'
1532
- }, {
1533
- internalType: 'uint256',
1534
- name: 'value',
1535
- type: 'uint256'
1536
- }],
1537
- name: 'transfer',
1538
- outputs: [{
1539
- internalType: 'bool',
1540
- name: '',
1541
- type: 'bool'
1542
- }],
1543
- stateMutability: 'nonpayable',
1544
- type: 'function'
1545
- }, {
1546
- inputs: [{
1547
- internalType: 'address',
1548
- name: 'from',
1549
- type: 'address'
1550
- }, {
1551
- internalType: 'address',
1552
- name: 'to',
1553
- type: 'address'
1554
- }, {
1555
- internalType: 'uint256',
1556
- name: 'value',
1557
- type: 'uint256'
1558
- }],
1559
- name: 'transferFrom',
1560
- outputs: [{
1561
- internalType: 'bool',
1562
- name: '',
1563
- type: 'bool'
1564
- }],
1565
- stateMutability: 'nonpayable',
1566
- type: 'function'
1567
- }];
1568
-
1569
- // @openzeppelin/contracts@5.0.0/token/ERC6909/ERC6909.sol
1570
- const ERC6909_ABI = [{
1571
- inputs: [{
1572
- internalType: 'address',
1573
- name: 'spender',
1574
- type: 'address'
1575
- }, {
1576
- internalType: 'uint256',
1577
- name: 'allowance',
1578
- type: 'uint256'
1579
- }, {
1580
- internalType: 'uint256',
1581
- name: 'needed',
1582
- type: 'uint256'
1583
- }, {
1584
- internalType: 'uint256',
1585
- name: 'id',
1586
- type: 'uint256'
1587
- }],
1588
- name: 'ERC6909InsufficientAllowance',
1589
- type: 'error'
1590
- }, {
1591
- inputs: [{
1592
- internalType: 'address',
1593
- name: 'sender',
1594
- type: 'address'
1595
- }, {
1596
- internalType: 'uint256',
1597
- name: 'balance',
1598
- type: 'uint256'
1599
- }, {
1600
- internalType: 'uint256',
1601
- name: 'needed',
1602
- type: 'uint256'
1603
- }, {
1604
- internalType: 'uint256',
1605
- name: 'id',
1606
- type: 'uint256'
1607
- }],
1608
- name: 'ERC6909InsufficientBalance',
1609
- type: 'error'
1610
- }, {
1611
- inputs: [{
1612
- internalType: 'address',
1613
- name: 'approver',
1614
- type: 'address'
1615
- }],
1616
- name: 'ERC6909InvalidApprover',
1617
- type: 'error'
1618
- }, {
1619
- inputs: [{
1620
- internalType: 'address',
1621
- name: 'receiver',
1622
- type: 'address'
1623
- }],
1624
- name: 'ERC6909InvalidReceiver',
1625
- type: 'error'
1626
- }, {
1627
- inputs: [{
1628
- internalType: 'address',
1629
- name: 'sender',
1630
- type: 'address'
1631
- }],
1632
- name: 'ERC6909InvalidSender',
1633
- type: 'error'
1634
- }, {
1635
- inputs: [{
1636
- internalType: 'address',
1637
- name: 'spender',
1638
- type: 'address'
1639
- }],
1640
- name: 'ERC6909InvalidSpender',
1641
- type: 'error'
1642
- }, {
1643
- anonymous: false,
1644
- inputs: [{
1645
- indexed: true,
1646
- internalType: 'address',
1647
- name: 'owner',
1648
- type: 'address'
1649
- }, {
1650
- indexed: true,
1651
- internalType: 'address',
1652
- name: 'spender',
1653
- type: 'address'
1654
- }, {
1655
- indexed: true,
1656
- internalType: 'uint256',
1657
- name: 'id',
1658
- type: 'uint256'
1659
- }, {
1660
- indexed: false,
1661
- internalType: 'uint256',
1662
- name: 'amount',
1663
- type: 'uint256'
1664
- }],
1665
- name: 'Approval',
1666
- type: 'event'
1667
- }, {
1668
- anonymous: false,
1669
- inputs: [{
1670
- indexed: true,
1671
- internalType: 'address',
1672
- name: 'owner',
1673
- type: 'address'
1674
- }, {
1675
- indexed: true,
1676
- internalType: 'address',
1677
- name: 'spender',
1678
- type: 'address'
1679
- }, {
1680
- indexed: false,
1681
- internalType: 'bool',
1682
- name: 'approved',
1683
- type: 'bool'
1684
- }],
1685
- name: 'OperatorSet',
1686
- type: 'event'
1687
- }, {
1688
- anonymous: false,
1689
- inputs: [{
1690
- indexed: false,
1691
- internalType: 'address',
1692
- name: 'caller',
1693
- type: 'address'
1694
- }, {
1695
- indexed: true,
1696
- internalType: 'address',
1697
- name: 'sender',
1698
- type: 'address'
1699
- }, {
1700
- indexed: true,
1701
- internalType: 'address',
1702
- name: 'receiver',
1703
- type: 'address'
1704
- }, {
1705
- indexed: true,
1706
- internalType: 'uint256',
1707
- name: 'id',
1708
- type: 'uint256'
1709
- }, {
1710
- indexed: false,
1711
- internalType: 'uint256',
1712
- name: 'amount',
1713
- type: 'uint256'
1714
- }],
1715
- name: 'Transfer',
1716
- type: 'event'
1717
- }, {
1718
- inputs: [{
1719
- internalType: 'address',
1720
- name: 'owner',
1721
- type: 'address'
1722
- }, {
1723
- internalType: 'address',
1724
- name: 'spender',
1725
- type: 'address'
1726
- }, {
1727
- internalType: 'uint256',
1728
- name: 'id',
1729
- type: 'uint256'
1730
- }],
1731
- name: 'allowance',
1732
- outputs: [{
1733
- internalType: 'uint256',
1734
- name: '',
1735
- type: 'uint256'
1736
- }],
1737
- stateMutability: 'view',
1738
- type: 'function'
1739
- }, {
1740
- inputs: [{
1741
- internalType: 'address',
1742
- name: 'spender',
1743
- type: 'address'
1744
- }, {
1745
- internalType: 'uint256',
1746
- name: 'id',
1747
- type: 'uint256'
1748
- }, {
1749
- internalType: 'uint256',
1750
- name: 'amount',
1751
- type: 'uint256'
1752
- }],
1753
- name: 'approve',
1754
- outputs: [{
1755
- internalType: 'bool',
1756
- name: '',
1757
- type: 'bool'
1758
- }],
1759
- stateMutability: 'nonpayable',
1760
- type: 'function'
1761
- }, {
1762
- inputs: [{
1763
- internalType: 'address',
1764
- name: 'owner',
1765
- type: 'address'
1766
- }, {
1767
- internalType: 'uint256',
1768
- name: 'id',
1769
- type: 'uint256'
1770
- }],
1771
- name: 'balanceOf',
1772
- outputs: [{
1773
- internalType: 'uint256',
1774
- name: '',
1775
- type: 'uint256'
1776
- }],
1777
- stateMutability: 'view',
1778
- type: 'function'
1779
- }, {
1780
- inputs: [{
1781
- internalType: 'address',
1782
- name: 'owner',
1783
- type: 'address'
1784
- }, {
1785
- internalType: 'address',
1786
- name: 'spender',
1787
- type: 'address'
1788
- }],
1789
- name: 'isOperator',
1790
- outputs: [{
1791
- internalType: 'bool',
1792
- name: '',
1793
- type: 'bool'
1794
- }],
1795
- stateMutability: 'view',
1796
- type: 'function'
1797
- }, {
1798
- inputs: [{
1799
- internalType: 'address',
1800
- name: 'spender',
1801
- type: 'address'
1802
- }, {
1803
- internalType: 'bool',
1804
- name: 'approved',
1805
- type: 'bool'
1806
- }],
1807
- name: 'setOperator',
1808
- outputs: [{
1809
- internalType: 'bool',
1810
- name: '',
1811
- type: 'bool'
1812
- }],
1813
- stateMutability: 'nonpayable',
1814
- type: 'function'
1815
- }, {
1816
- inputs: [{
1817
- internalType: 'bytes4',
1818
- name: 'interfaceId',
1819
- type: 'bytes4'
1820
- }],
1821
- name: 'supportsInterface',
1822
- outputs: [{
1823
- internalType: 'bool',
1824
- name: '',
1825
- type: 'bool'
1826
- }],
1827
- stateMutability: 'view',
1828
- type: 'function'
1829
- }, {
1830
- inputs: [{
1831
- internalType: 'address',
1832
- name: 'receiver',
1833
- type: 'address'
1834
- }, {
1835
- internalType: 'uint256',
1836
- name: 'id',
1837
- type: 'uint256'
1838
- }, {
1839
- internalType: 'uint256',
1840
- name: 'amount',
1841
- type: 'uint256'
1842
- }],
1843
- name: 'transfer',
1844
- outputs: [{
1845
- internalType: 'bool',
1846
- name: '',
1847
- type: 'bool'
1848
- }],
1849
- stateMutability: 'nonpayable',
1850
- type: 'function'
1851
- }, {
1852
- inputs: [{
1853
- internalType: 'address',
1854
- name: 'sender',
1855
- type: 'address'
1856
- }, {
1857
- internalType: 'address',
1858
- name: 'receiver',
1859
- type: 'address'
1860
- }, {
1861
- internalType: 'uint256',
1862
- name: 'id',
1863
- type: 'uint256'
1864
- }, {
1865
- internalType: 'uint256',
1866
- name: 'amount',
1867
- type: 'uint256'
1868
- }],
1869
- name: 'transferFrom',
1870
- outputs: [{
1871
- internalType: 'bool',
1872
- name: '',
1873
- type: 'bool'
1874
- }],
1875
- stateMutability: 'nonpayable',
1876
- type: 'function'
1877
- }];
1878
-
1879
- // @openzeppelin/contracts@5.0.0/token/ERC721/ERC721.sol
1880
- const ERC721_ABI = [{
1881
- inputs: [],
1882
- stateMutability: 'nonpayable',
1883
- type: 'constructor'
1884
- }, {
1885
- inputs: [{
1886
- internalType: 'address',
1887
- name: 'sender',
1888
- type: 'address'
1889
- }, {
1890
- internalType: 'uint256',
1891
- name: 'tokenId',
1892
- type: 'uint256'
1893
- }, {
1894
- internalType: 'address',
1895
- name: 'owner',
1896
- type: 'address'
1897
- }],
1898
- name: 'ERC721IncorrectOwner',
1899
- type: 'error'
1900
- }, {
1901
- inputs: [{
1902
- internalType: 'address',
1903
- name: 'operator',
1904
- type: 'address'
1905
- }, {
1906
- internalType: 'uint256',
1907
- name: 'tokenId',
1908
- type: 'uint256'
1909
- }],
1910
- name: 'ERC721InsufficientApproval',
1911
- type: 'error'
1912
- }, {
1913
- inputs: [{
1914
- internalType: 'address',
1915
- name: 'approver',
1916
- type: 'address'
1917
- }],
1918
- name: 'ERC721InvalidApprover',
1919
- type: 'error'
1920
- }, {
1921
- inputs: [{
1922
- internalType: 'address',
1923
- name: 'operator',
1924
- type: 'address'
1925
- }],
1926
- name: 'ERC721InvalidOperator',
1927
- type: 'error'
1928
- }, {
1929
- inputs: [{
1930
- internalType: 'address',
1931
- name: 'owner',
1932
- type: 'address'
1933
- }],
1934
- name: 'ERC721InvalidOwner',
1935
- type: 'error'
1936
- }, {
1937
- inputs: [{
1938
- internalType: 'address',
1939
- name: 'receiver',
1940
- type: 'address'
1941
- }],
1942
- name: 'ERC721InvalidReceiver',
1943
- type: 'error'
1944
- }, {
1945
- inputs: [{
1946
- internalType: 'address',
1947
- name: 'sender',
1948
- type: 'address'
1949
- }],
1950
- name: 'ERC721InvalidSender',
1951
- type: 'error'
1952
- }, {
1953
- inputs: [{
1954
- internalType: 'uint256',
1955
- name: 'tokenId',
1956
- type: 'uint256'
1957
- }],
1958
- name: 'ERC721NonexistentToken',
1959
- type: 'error'
1960
- }, {
1961
- anonymous: false,
1962
- inputs: [{
1963
- indexed: true,
1964
- internalType: 'address',
1965
- name: 'owner',
1966
- type: 'address'
1967
- }, {
1968
- indexed: true,
1969
- internalType: 'address',
1970
- name: 'approved',
1971
- type: 'address'
1972
- }, {
1973
- indexed: true,
1974
- internalType: 'uint256',
1975
- name: 'tokenId',
1976
- type: 'uint256'
1977
- }],
1978
- name: 'Approval',
1979
- type: 'event'
1980
- }, {
1981
- anonymous: false,
1982
- inputs: [{
1983
- indexed: true,
1984
- internalType: 'address',
1985
- name: 'owner',
1986
- type: 'address'
1987
- }, {
1988
- indexed: true,
1989
- internalType: 'address',
1990
- name: 'operator',
1991
- type: 'address'
1992
- }, {
1993
- indexed: false,
1994
- internalType: 'bool',
1995
- name: 'approved',
1996
- type: 'bool'
1997
- }],
1998
- name: 'ApprovalForAll',
1999
- type: 'event'
2000
- }, {
2001
- anonymous: false,
2002
- inputs: [{
2003
- indexed: true,
2004
- internalType: 'address',
2005
- name: 'from',
2006
- type: 'address'
2007
- }, {
2008
- indexed: true,
2009
- internalType: 'address',
2010
- name: 'to',
2011
- type: 'address'
2012
- }, {
2013
- indexed: true,
2014
- internalType: 'uint256',
2015
- name: 'tokenId',
2016
- type: 'uint256'
2017
- }],
2018
- name: 'Transfer',
2019
- type: 'event'
2020
- }, {
2021
- inputs: [{
2022
- internalType: 'address',
2023
- name: 'to',
2024
- type: 'address'
2025
- }, {
2026
- internalType: 'uint256',
2027
- name: 'tokenId',
2028
- type: 'uint256'
2029
- }],
2030
- name: 'approve',
2031
- outputs: [],
2032
- stateMutability: 'nonpayable',
2033
- type: 'function'
2034
- }, {
2035
- inputs: [{
2036
- internalType: 'address',
2037
- name: 'owner',
2038
- type: 'address'
2039
- }],
2040
- name: 'balanceOf',
2041
- outputs: [{
2042
- internalType: 'uint256',
2043
- name: '',
2044
- type: 'uint256'
2045
- }],
2046
- stateMutability: 'view',
2047
- type: 'function'
2048
- }, {
2049
- inputs: [{
2050
- internalType: 'uint256',
2051
- name: 'tokenId',
2052
- type: 'uint256'
2053
- }],
2054
- name: 'getApproved',
2055
- outputs: [{
2056
- internalType: 'address',
2057
- name: '',
2058
- type: 'address'
2059
- }],
2060
- stateMutability: 'view',
2061
- type: 'function'
2062
- }, {
2063
- inputs: [{
2064
- internalType: 'address',
2065
- name: 'owner',
2066
- type: 'address'
2067
- }, {
2068
- internalType: 'address',
2069
- name: 'operator',
2070
- type: 'address'
2071
- }],
2072
- name: 'isApprovedForAll',
2073
- outputs: [{
2074
- internalType: 'bool',
2075
- name: '',
2076
- type: 'bool'
2077
- }],
2078
- stateMutability: 'view',
2079
- type: 'function'
2080
- }, {
2081
- inputs: [],
2082
- name: 'name',
2083
- outputs: [{
2084
- internalType: 'string',
2085
- name: '',
2086
- type: 'string'
2087
- }],
2088
- stateMutability: 'view',
2089
- type: 'function'
2090
- }, {
2091
- inputs: [{
2092
- internalType: 'uint256',
2093
- name: 'tokenId',
2094
- type: 'uint256'
2095
- }],
2096
- name: 'ownerOf',
2097
- outputs: [{
2098
- internalType: 'address',
2099
- name: '',
2100
- type: 'address'
2101
- }],
2102
- stateMutability: 'view',
2103
- type: 'function'
2104
- }, {
2105
- inputs: [{
2106
- internalType: 'address',
2107
- name: 'from',
2108
- type: 'address'
2109
- }, {
2110
- internalType: 'address',
2111
- name: 'to',
2112
- type: 'address'
2113
- }, {
2114
- internalType: 'uint256',
2115
- name: 'tokenId',
2116
- type: 'uint256'
2117
- }],
2118
- name: 'safeTransferFrom',
2119
- outputs: [],
2120
- stateMutability: 'nonpayable',
2121
- type: 'function'
2122
- }, {
2123
- inputs: [{
2124
- internalType: 'address',
2125
- name: 'from',
2126
- type: 'address'
2127
- }, {
2128
- internalType: 'address',
2129
- name: 'to',
2130
- type: 'address'
2131
- }, {
2132
- internalType: 'uint256',
2133
- name: 'tokenId',
2134
- type: 'uint256'
2135
- }, {
2136
- internalType: 'bytes',
2137
- name: 'data',
2138
- type: 'bytes'
2139
- }],
2140
- name: 'safeTransferFrom',
2141
- outputs: [],
2142
- stateMutability: 'nonpayable',
2143
- type: 'function'
2144
- }, {
2145
- inputs: [{
2146
- internalType: 'address',
2147
- name: 'operator',
2148
- type: 'address'
2149
- }, {
2150
- internalType: 'bool',
2151
- name: 'approved',
2152
- type: 'bool'
2153
- }],
2154
- name: 'setApprovalForAll',
2155
- outputs: [],
2156
- stateMutability: 'nonpayable',
2157
- type: 'function'
2158
- }, {
2159
- inputs: [{
2160
- internalType: 'bytes4',
2161
- name: 'interfaceId',
2162
- type: 'bytes4'
2163
- }],
2164
- name: 'supportsInterface',
2165
- outputs: [{
2166
- internalType: 'bool',
2167
- name: '',
2168
- type: 'bool'
2169
- }],
2170
- stateMutability: 'view',
2171
- type: 'function'
2172
- }, {
2173
- inputs: [],
2174
- name: 'symbol',
2175
- outputs: [{
2176
- internalType: 'string',
2177
- name: '',
2178
- type: 'string'
2179
- }],
2180
- stateMutability: 'view',
2181
- type: 'function'
2182
- }, {
2183
- inputs: [{
2184
- internalType: 'uint256',
2185
- name: 'tokenId',
2186
- type: 'uint256'
2187
- }],
2188
- name: 'tokenURI',
2189
- outputs: [{
2190
- internalType: 'string',
2191
- name: '',
2192
- type: 'string'
2193
- }],
2194
- stateMutability: 'view',
2195
- type: 'function'
2196
- }, {
2197
- inputs: [{
2198
- internalType: 'address',
2199
- name: 'from',
2200
- type: 'address'
2201
- }, {
2202
- internalType: 'address',
2203
- name: 'to',
2204
- type: 'address'
2205
- }, {
2206
- internalType: 'uint256',
2207
- name: 'tokenId',
2208
- type: 'uint256'
2209
- }],
2210
- name: 'transferFrom',
2211
- outputs: [],
2212
- stateMutability: 'nonpayable',
2213
- type: 'function'
2214
- }];
2215
-
2216
- const ERC1155_SALE_ABI = [{
2217
- type: 'function',
2218
- name: 'DEFAULT_ADMIN_ROLE',
2219
- inputs: [],
2220
- outputs: [{
2221
- name: '',
2222
- type: 'bytes32',
2223
- internalType: 'bytes32'
2224
- }],
2225
- stateMutability: 'view'
2226
- }, {
2227
- type: 'function',
2228
- name: 'checkMerkleProof',
2229
- inputs: [{
2230
- name: 'root',
2231
- type: 'bytes32',
2232
- internalType: 'bytes32'
2233
- }, {
2234
- name: 'proof',
2235
- type: 'bytes32[]',
2236
- internalType: 'bytes32[]'
2237
- }, {
2238
- name: 'addr',
2239
- type: 'address',
2240
- internalType: 'address'
2241
- }, {
2242
- name: 'salt',
2243
- type: 'bytes32',
2244
- internalType: 'bytes32'
2245
- }],
2246
- outputs: [{
2247
- name: '',
2248
- type: 'bool',
2249
- internalType: 'bool'
2250
- }],
2251
- stateMutability: 'view'
2252
- }, {
2253
- type: 'function',
2254
- name: 'getRoleAdmin',
2255
- inputs: [{
2256
- name: 'role',
2257
- type: 'bytes32',
2258
- internalType: 'bytes32'
2259
- }],
2260
- outputs: [{
2261
- name: '',
2262
- type: 'bytes32',
2263
- internalType: 'bytes32'
2264
- }],
2265
- stateMutability: 'view'
2266
- }, {
2267
- type: 'function',
2268
- name: 'getRoleMember',
2269
- inputs: [{
2270
- name: 'role',
2271
- type: 'bytes32',
2272
- internalType: 'bytes32'
2273
- }, {
2274
- name: 'index',
2275
- type: 'uint256',
2276
- internalType: 'uint256'
2277
- }],
2278
- outputs: [{
2279
- name: '',
2280
- type: 'address',
2281
- internalType: 'address'
2282
- }],
2283
- stateMutability: 'view'
2284
- }, {
2285
- type: 'function',
2286
- name: 'getRoleMemberCount',
2287
- inputs: [{
2288
- name: 'role',
2289
- type: 'bytes32',
2290
- internalType: 'bytes32'
2291
- }],
2292
- outputs: [{
2293
- name: '',
2294
- type: 'uint256',
2295
- internalType: 'uint256'
2296
- }],
2297
- stateMutability: 'view'
2298
- }, {
2299
- type: 'function',
2300
- name: 'grantRole',
2301
- inputs: [{
2302
- name: 'role',
2303
- type: 'bytes32',
2304
- internalType: 'bytes32'
2305
- }, {
2306
- name: 'account',
2307
- type: 'address',
2308
- internalType: 'address'
2309
- }],
2310
- outputs: [],
2311
- stateMutability: 'nonpayable'
2312
- }, {
2313
- type: 'function',
2314
- name: 'hasRole',
2315
- inputs: [{
2316
- name: 'role',
2317
- type: 'bytes32',
2318
- internalType: 'bytes32'
2319
- }, {
2320
- name: 'account',
2321
- type: 'address',
2322
- internalType: 'address'
2323
- }],
2324
- outputs: [{
2325
- name: '',
2326
- type: 'bool',
2327
- internalType: 'bool'
2328
- }],
2329
- stateMutability: 'view'
2330
- }, {
2331
- type: 'function',
2332
- name: 'initialize',
2333
- inputs: [{
2334
- name: 'owner',
2335
- type: 'address',
2336
- internalType: 'address'
2337
- }, {
2338
- name: 'items',
2339
- type: 'address',
2340
- internalType: 'address'
2341
- }],
2342
- outputs: [],
2343
- stateMutability: 'nonpayable'
2344
- }, {
2345
- type: 'function',
2346
- name: 'itemsContract',
2347
- inputs: [],
2348
- outputs: [{
2349
- name: '',
2350
- type: 'address',
2351
- internalType: 'address'
2352
- }],
2353
- stateMutability: 'view'
2354
- }, {
2355
- type: 'function',
2356
- name: 'mint',
2357
- inputs: [{
2358
- name: 'to',
2359
- type: 'address',
2360
- internalType: 'address'
2361
- }, {
2362
- name: 'amount',
2363
- type: 'uint256',
2364
- internalType: 'uint256'
2365
- }, {
2366
- name: 'paymentToken',
2367
- type: 'address',
2368
- internalType: 'address'
2369
- }, {
2370
- name: 'maxTotal',
2371
- type: 'uint256',
2372
- internalType: 'uint256'
2373
- }, {
2374
- name: 'proof',
2375
- type: 'bytes32[]',
2376
- internalType: 'bytes32[]'
2377
- }],
2378
- outputs: [],
2379
- stateMutability: 'payable'
2380
- }, {
2381
- type: 'function',
2382
- name: 'renounceRole',
2383
- inputs: [{
2384
- name: 'role',
2385
- type: 'bytes32',
2386
- internalType: 'bytes32'
2387
- }, {
2388
- name: 'account',
2389
- type: 'address',
2390
- internalType: 'address'
2391
- }],
2392
- outputs: [],
2393
- stateMutability: 'nonpayable'
2394
- }, {
2395
- type: 'function',
2396
- name: 'revokeRole',
2397
- inputs: [{
2398
- name: 'role',
2399
- type: 'bytes32',
2400
- internalType: 'bytes32'
2401
- }, {
2402
- name: 'account',
2403
- type: 'address',
2404
- internalType: 'address'
2405
- }],
2406
- outputs: [],
2407
- stateMutability: 'nonpayable'
2408
- }, {
2409
- type: 'function',
2410
- name: 'saleDetails',
2411
- inputs: [],
2412
- outputs: [{
2413
- name: '',
2414
- type: 'tuple',
2415
- internalType: 'struct IERC721SaleFunctions.SaleDetails',
2416
- components: [{
2417
- name: 'supplyCap',
2418
- type: 'uint256',
2419
- internalType: 'uint256'
2420
- }, {
2421
- name: 'cost',
2422
- type: 'uint256',
2423
- internalType: 'uint256'
2424
- }, {
2425
- name: 'paymentToken',
2426
- type: 'address',
2427
- internalType: 'address'
2428
- }, {
2429
- name: 'startTime',
2430
- type: 'uint64',
2431
- internalType: 'uint64'
2432
- }, {
2433
- name: 'endTime',
2434
- type: 'uint64',
2435
- internalType: 'uint64'
2436
- }, {
2437
- name: 'merkleRoot',
2438
- type: 'bytes32',
2439
- internalType: 'bytes32'
2440
- }]
2441
- }],
2442
- stateMutability: 'view'
2443
- }, {
2444
- type: 'function',
2445
- name: 'setSaleDetails',
2446
- inputs: [{
2447
- name: 'supplyCap',
2448
- type: 'uint256',
2449
- internalType: 'uint256'
2450
- }, {
2451
- name: 'cost',
2452
- type: 'uint256',
2453
- internalType: 'uint256'
2454
- }, {
2455
- name: 'paymentToken',
2456
- type: 'address',
2457
- internalType: 'address'
2458
- }, {
2459
- name: 'startTime',
2460
- type: 'uint64',
2461
- internalType: 'uint64'
2462
- }, {
2463
- name: 'endTime',
2464
- type: 'uint64',
2465
- internalType: 'uint64'
2466
- }, {
2467
- name: 'merkleRoot',
2468
- type: 'bytes32',
2469
- internalType: 'bytes32'
2470
- }],
2471
- outputs: [],
2472
- stateMutability: 'nonpayable'
2473
- }, {
2474
- type: 'function',
2475
- name: 'supportsInterface',
2476
- inputs: [{
2477
- name: 'interfaceId',
2478
- type: 'bytes4',
2479
- internalType: 'bytes4'
2480
- }],
2481
- outputs: [{
2482
- name: '',
2483
- type: 'bool',
2484
- internalType: 'bool'
2485
- }],
2486
- stateMutability: 'view'
2487
- }, {
2488
- type: 'function',
2489
- name: 'withdrawERC20',
2490
- inputs: [{
2491
- name: 'token',
2492
- type: 'address',
2493
- internalType: 'address'
2494
- }, {
2495
- name: 'to',
2496
- type: 'address',
2497
- internalType: 'address'
2498
- }, {
2499
- name: 'value',
2500
- type: 'uint256',
2501
- internalType: 'uint256'
2502
- }],
2503
- outputs: [],
2504
- stateMutability: 'nonpayable'
2505
- }, {
2506
- type: 'function',
2507
- name: 'withdrawETH',
2508
- inputs: [{
2509
- name: 'to',
2510
- type: 'address',
2511
- internalType: 'address'
2512
- }, {
2513
- name: 'value',
2514
- type: 'uint256',
2515
- internalType: 'uint256'
2516
- }],
2517
- outputs: [],
2518
- stateMutability: 'nonpayable'
2519
- }, {
2520
- type: 'event',
2521
- name: 'RoleAdminChanged',
2522
- inputs: [{
2523
- name: 'role',
2524
- type: 'bytes32',
2525
- indexed: true,
2526
- internalType: 'bytes32'
2527
- }, {
2528
- name: 'previousAdminRole',
2529
- type: 'bytes32',
2530
- indexed: true,
2531
- internalType: 'bytes32'
2532
- }, {
2533
- name: 'newAdminRole',
2534
- type: 'bytes32',
2535
- indexed: true,
2536
- internalType: 'bytes32'
2537
- }],
2538
- anonymous: false
2539
- }, {
2540
- type: 'event',
2541
- name: 'RoleGranted',
2542
- inputs: [{
2543
- name: 'role',
2544
- type: 'bytes32',
2545
- indexed: true,
2546
- internalType: 'bytes32'
2547
- }, {
2548
- name: 'account',
2549
- type: 'address',
2550
- indexed: true,
2551
- internalType: 'address'
2552
- }, {
2553
- name: 'sender',
2554
- type: 'address',
2555
- indexed: true,
2556
- internalType: 'address'
2557
- }],
2558
- anonymous: false
2559
- }, {
2560
- type: 'event',
2561
- name: 'RoleRevoked',
2562
- inputs: [{
2563
- name: 'role',
2564
- type: 'bytes32',
2565
- indexed: true,
2566
- internalType: 'bytes32'
2567
- }, {
2568
- name: 'account',
2569
- type: 'address',
2570
- indexed: true,
2571
- internalType: 'address'
2572
- }, {
2573
- name: 'sender',
2574
- type: 'address',
2575
- indexed: true,
2576
- internalType: 'address'
2577
- }],
2578
- anonymous: false
2579
- }, {
2580
- type: 'event',
2581
- name: 'SaleDetailsUpdated',
2582
- inputs: [{
2583
- name: 'supplyCap',
2584
- type: 'uint256',
2585
- indexed: false,
2586
- internalType: 'uint256'
2587
- }, {
2588
- name: 'cost',
2589
- type: 'uint256',
2590
- indexed: false,
2591
- internalType: 'uint256'
2592
- }, {
2593
- name: 'paymentToken',
2594
- type: 'address',
2595
- indexed: false,
2596
- internalType: 'address'
2597
- }, {
2598
- name: 'startTime',
2599
- type: 'uint64',
2600
- indexed: false,
2601
- internalType: 'uint64'
2602
- }, {
2603
- name: 'endTime',
2604
- type: 'uint64',
2605
- indexed: false,
2606
- internalType: 'uint64'
2607
- }, {
2608
- name: 'merkleRoot',
2609
- type: 'bytes32',
2610
- indexed: false,
2611
- internalType: 'bytes32'
2612
- }],
2613
- anonymous: false
2614
- }, {
2615
- type: 'error',
2616
- name: 'InsufficientPayment',
2617
- inputs: [{
2618
- name: 'currency',
2619
- type: 'address',
2620
- internalType: 'address'
2621
- }, {
2622
- name: 'expected',
2623
- type: 'uint256',
2624
- internalType: 'uint256'
2625
- }, {
2626
- name: 'actual',
2627
- type: 'uint256',
2628
- internalType: 'uint256'
2629
- }]
2630
- }, {
2631
- type: 'error',
2632
- name: 'InsufficientSupply',
2633
- inputs: [{
2634
- name: 'currentSupply',
2635
- type: 'uint256',
2636
- internalType: 'uint256'
2637
- }, {
2638
- name: 'amount',
2639
- type: 'uint256',
2640
- internalType: 'uint256'
2641
- }, {
2642
- name: 'maxSupply',
2643
- type: 'uint256',
2644
- internalType: 'uint256'
2645
- }]
2646
- }, {
2647
- type: 'error',
2648
- name: 'InvalidInitialization',
2649
- inputs: []
2650
- }, {
2651
- type: 'error',
2652
- name: 'InvalidSaleDetails',
2653
- inputs: []
2654
- }, {
2655
- type: 'error',
2656
- name: 'MerkleProofInvalid',
2657
- inputs: [{
2658
- name: 'root',
2659
- type: 'bytes32',
2660
- internalType: 'bytes32'
2661
- }, {
2662
- name: 'proof',
2663
- type: 'bytes32[]',
2664
- internalType: 'bytes32[]'
2665
- }, {
2666
- name: 'addr',
2667
- type: 'address',
2668
- internalType: 'address'
2669
- }, {
2670
- name: 'salt',
2671
- type: 'bytes32',
2672
- internalType: 'bytes32'
2673
- }]
2674
- }, {
2675
- type: 'error',
2676
- name: 'SaleInactive',
2677
- inputs: []
2678
- }, {
2679
- type: 'error',
2680
- name: 'WithdrawFailed',
2681
- inputs: []
2682
- }];
2683
-
2684
- const ERC721_SALE_ABI = [{
2685
- type: 'function',
2686
- name: 'DEFAULT_ADMIN_ROLE',
2687
- inputs: [],
2688
- outputs: [{
2689
- name: '',
2690
- type: 'bytes32',
2691
- internalType: 'bytes32'
2692
- }],
2693
- stateMutability: 'view'
2694
- }, {
2695
- type: 'function',
2696
- name: 'checkMerkleProof',
2697
- inputs: [{
2698
- name: 'root',
2699
- type: 'bytes32',
2700
- internalType: 'bytes32'
2701
- }, {
2702
- name: 'proof',
2703
- type: 'bytes32[]',
2704
- internalType: 'bytes32[]'
2705
- }, {
2706
- name: 'addr',
2707
- type: 'address',
2708
- internalType: 'address'
2709
- }, {
2710
- name: 'salt',
2711
- type: 'bytes32',
2712
- internalType: 'bytes32'
2713
- }],
2714
- outputs: [{
2715
- name: '',
2716
- type: 'bool',
2717
- internalType: 'bool'
2718
- }],
2719
- stateMutability: 'view'
2720
- }, {
2721
- type: 'function',
2722
- name: 'getRoleAdmin',
2723
- inputs: [{
2724
- name: 'role',
2725
- type: 'bytes32',
2726
- internalType: 'bytes32'
2727
- }],
2728
- outputs: [{
2729
- name: '',
2730
- type: 'bytes32',
2731
- internalType: 'bytes32'
2732
- }],
2733
- stateMutability: 'view'
2734
- }, {
2735
- type: 'function',
2736
- name: 'getRoleMember',
2737
- inputs: [{
2738
- name: 'role',
2739
- type: 'bytes32',
2740
- internalType: 'bytes32'
2741
- }, {
2742
- name: 'index',
2743
- type: 'uint256',
2744
- internalType: 'uint256'
2745
- }],
2746
- outputs: [{
2747
- name: '',
2748
- type: 'address',
2749
- internalType: 'address'
2750
- }],
2751
- stateMutability: 'view'
2752
- }, {
2753
- type: 'function',
2754
- name: 'getRoleMemberCount',
2755
- inputs: [{
2756
- name: 'role',
2757
- type: 'bytes32',
2758
- internalType: 'bytes32'
2759
- }],
2760
- outputs: [{
2761
- name: '',
2762
- type: 'uint256',
2763
- internalType: 'uint256'
2764
- }],
2765
- stateMutability: 'view'
2766
- }, {
2767
- type: 'function',
2768
- name: 'grantRole',
2769
- inputs: [{
2770
- name: 'role',
2771
- type: 'bytes32',
2772
- internalType: 'bytes32'
2773
- }, {
2774
- name: 'account',
2775
- type: 'address',
2776
- internalType: 'address'
2777
- }],
2778
- outputs: [],
2779
- stateMutability: 'nonpayable'
2780
- }, {
2781
- type: 'function',
2782
- name: 'hasRole',
2783
- inputs: [{
2784
- name: 'role',
2785
- type: 'bytes32',
2786
- internalType: 'bytes32'
2787
- }, {
2788
- name: 'account',
2789
- type: 'address',
2790
- internalType: 'address'
2791
- }],
2792
- outputs: [{
2793
- name: '',
2794
- type: 'bool',
2795
- internalType: 'bool'
2796
- }],
2797
- stateMutability: 'view'
2798
- }, {
2799
- type: 'function',
2800
- name: 'initialize',
2801
- inputs: [{
2802
- name: 'owner',
2803
- type: 'address',
2804
- internalType: 'address'
2805
- }, {
2806
- name: 'items',
2807
- type: 'address',
2808
- internalType: 'address'
2809
- }],
2810
- outputs: [],
2811
- stateMutability: 'nonpayable'
2812
- }, {
2813
- type: 'function',
2814
- name: 'itemsContract',
2815
- inputs: [],
2816
- outputs: [{
2817
- name: '',
2818
- type: 'address',
2819
- internalType: 'address'
2820
- }],
2821
- stateMutability: 'view'
2822
- }, {
2823
- type: 'function',
2824
- name: 'mint',
2825
- inputs: [{
2826
- name: 'to',
2827
- type: 'address',
2828
- internalType: 'address'
2829
- }, {
2830
- name: 'amount',
2831
- type: 'uint256',
2832
- internalType: 'uint256'
2833
- }, {
2834
- name: 'paymentToken',
2835
- type: 'address',
2836
- internalType: 'address'
2837
- }, {
2838
- name: 'maxTotal',
2839
- type: 'uint256',
2840
- internalType: 'uint256'
2841
- }, {
2842
- name: 'proof',
2843
- type: 'bytes32[]',
2844
- internalType: 'bytes32[]'
2845
- }],
2846
- outputs: [],
2847
- stateMutability: 'payable'
2848
- }, {
2849
- type: 'function',
2850
- name: 'renounceRole',
2851
- inputs: [{
2852
- name: 'role',
2853
- type: 'bytes32',
2854
- internalType: 'bytes32'
2855
- }, {
2856
- name: 'account',
2857
- type: 'address',
2858
- internalType: 'address'
2859
- }],
2860
- outputs: [],
2861
- stateMutability: 'nonpayable'
2862
- }, {
2863
- type: 'function',
2864
- name: 'revokeRole',
2865
- inputs: [{
2866
- name: 'role',
2867
- type: 'bytes32',
2868
- internalType: 'bytes32'
2869
- }, {
2870
- name: 'account',
2871
- type: 'address',
2872
- internalType: 'address'
2873
- }],
2874
- outputs: [],
2875
- stateMutability: 'nonpayable'
2876
- }, {
2877
- type: 'function',
2878
- name: 'saleDetails',
2879
- inputs: [],
2880
- outputs: [{
2881
- name: '',
2882
- type: 'tuple',
2883
- internalType: 'struct IERC721SaleFunctions.SaleDetails',
2884
- components: [{
2885
- name: 'supplyCap',
2886
- type: 'uint256',
2887
- internalType: 'uint256'
2888
- }, {
2889
- name: 'cost',
2890
- type: 'uint256',
2891
- internalType: 'uint256'
2892
- }, {
2893
- name: 'paymentToken',
2894
- type: 'address',
2895
- internalType: 'address'
2896
- }, {
2897
- name: 'startTime',
2898
- type: 'uint64',
2899
- internalType: 'uint64'
2900
- }, {
2901
- name: 'endTime',
2902
- type: 'uint64',
2903
- internalType: 'uint64'
2904
- }, {
2905
- name: 'merkleRoot',
2906
- type: 'bytes32',
2907
- internalType: 'bytes32'
2908
- }]
2909
- }],
2910
- stateMutability: 'view'
2911
- }, {
2912
- type: 'function',
2913
- name: 'setSaleDetails',
2914
- inputs: [{
2915
- name: 'supplyCap',
2916
- type: 'uint256',
2917
- internalType: 'uint256'
2918
- }, {
2919
- name: 'cost',
2920
- type: 'uint256',
2921
- internalType: 'uint256'
2922
- }, {
2923
- name: 'paymentToken',
2924
- type: 'address',
2925
- internalType: 'address'
2926
- }, {
2927
- name: 'startTime',
2928
- type: 'uint64',
2929
- internalType: 'uint64'
2930
- }, {
2931
- name: 'endTime',
2932
- type: 'uint64',
2933
- internalType: 'uint64'
2934
- }, {
2935
- name: 'merkleRoot',
2936
- type: 'bytes32',
2937
- internalType: 'bytes32'
2938
- }],
2939
- outputs: [],
2940
- stateMutability: 'nonpayable'
2941
- }, {
2942
- type: 'function',
2943
- name: 'supportsInterface',
2944
- inputs: [{
2945
- name: 'interfaceId',
2946
- type: 'bytes4',
2947
- internalType: 'bytes4'
2948
- }],
2949
- outputs: [{
2950
- name: '',
2951
- type: 'bool',
2952
- internalType: 'bool'
2953
- }],
2954
- stateMutability: 'view'
2955
- }, {
2956
- type: 'function',
2957
- name: 'withdrawERC20',
2958
- inputs: [{
2959
- name: 'token',
2960
- type: 'address',
2961
- internalType: 'address'
2962
- }, {
2963
- name: 'to',
2964
- type: 'address',
2965
- internalType: 'address'
2966
- }, {
2967
- name: 'value',
2968
- type: 'uint256',
2969
- internalType: 'uint256'
2970
- }],
2971
- outputs: [],
2972
- stateMutability: 'nonpayable'
2973
- }, {
2974
- type: 'function',
2975
- name: 'withdrawETH',
2976
- inputs: [{
2977
- name: 'to',
2978
- type: 'address',
2979
- internalType: 'address'
2980
- }, {
2981
- name: 'value',
2982
- type: 'uint256',
2983
- internalType: 'uint256'
2984
- }],
2985
- outputs: [],
2986
- stateMutability: 'nonpayable'
2987
- }, {
2988
- type: 'event',
2989
- name: 'RoleAdminChanged',
2990
- inputs: [{
2991
- name: 'role',
2992
- type: 'bytes32',
2993
- indexed: true,
2994
- internalType: 'bytes32'
2995
- }, {
2996
- name: 'previousAdminRole',
2997
- type: 'bytes32',
2998
- indexed: true,
2999
- internalType: 'bytes32'
3000
- }, {
3001
- name: 'newAdminRole',
3002
- type: 'bytes32',
3003
- indexed: true,
3004
- internalType: 'bytes32'
3005
- }],
3006
- anonymous: false
3007
- }, {
3008
- type: 'event',
3009
- name: 'RoleGranted',
3010
- inputs: [{
3011
- name: 'role',
3012
- type: 'bytes32',
3013
- indexed: true,
3014
- internalType: 'bytes32'
3015
- }, {
3016
- name: 'account',
3017
- type: 'address',
3018
- indexed: true,
3019
- internalType: 'address'
3020
- }, {
3021
- name: 'sender',
3022
- type: 'address',
3023
- indexed: true,
3024
- internalType: 'address'
3025
- }],
3026
- anonymous: false
3027
- }, {
3028
- type: 'event',
3029
- name: 'RoleRevoked',
3030
- inputs: [{
3031
- name: 'role',
3032
- type: 'bytes32',
3033
- indexed: true,
3034
- internalType: 'bytes32'
3035
- }, {
3036
- name: 'account',
3037
- type: 'address',
3038
- indexed: true,
3039
- internalType: 'address'
3040
- }, {
3041
- name: 'sender',
3042
- type: 'address',
3043
- indexed: true,
3044
- internalType: 'address'
3045
- }],
3046
- anonymous: false
3047
- }, {
3048
- type: 'event',
3049
- name: 'SaleDetailsUpdated',
3050
- inputs: [{
3051
- name: 'supplyCap',
3052
- type: 'uint256',
3053
- indexed: false,
3054
- internalType: 'uint256'
3055
- }, {
3056
- name: 'cost',
3057
- type: 'uint256',
3058
- indexed: false,
3059
- internalType: 'uint256'
3060
- }, {
3061
- name: 'paymentToken',
3062
- type: 'address',
3063
- indexed: false,
3064
- internalType: 'address'
3065
- }, {
3066
- name: 'startTime',
3067
- type: 'uint64',
3068
- indexed: false,
3069
- internalType: 'uint64'
3070
- }, {
3071
- name: 'endTime',
3072
- type: 'uint64',
3073
- indexed: false,
3074
- internalType: 'uint64'
3075
- }, {
3076
- name: 'merkleRoot',
3077
- type: 'bytes32',
3078
- indexed: false,
3079
- internalType: 'bytes32'
3080
- }],
3081
- anonymous: false
3082
- }, {
3083
- type: 'error',
3084
- name: 'InsufficientPayment',
3085
- inputs: [{
3086
- name: 'currency',
3087
- type: 'address',
3088
- internalType: 'address'
3089
- }, {
3090
- name: 'expected',
3091
- type: 'uint256',
3092
- internalType: 'uint256'
3093
- }, {
3094
- name: 'actual',
3095
- type: 'uint256',
3096
- internalType: 'uint256'
3097
- }]
3098
- }, {
3099
- type: 'error',
3100
- name: 'InsufficientSupply',
3101
- inputs: [{
3102
- name: 'currentSupply',
3103
- type: 'uint256',
3104
- internalType: 'uint256'
3105
- }, {
3106
- name: 'amount',
3107
- type: 'uint256',
3108
- internalType: 'uint256'
3109
- }, {
3110
- name: 'maxSupply',
3111
- type: 'uint256',
3112
- internalType: 'uint256'
3113
- }]
3114
- }, {
3115
- type: 'error',
3116
- name: 'InvalidInitialization',
3117
- inputs: []
3118
- }, {
3119
- type: 'error',
3120
- name: 'InvalidSaleDetails',
3121
- inputs: []
3122
- }, {
3123
- type: 'error',
3124
- name: 'MerkleProofInvalid',
3125
- inputs: [{
3126
- name: 'root',
3127
- type: 'bytes32',
3128
- internalType: 'bytes32'
3129
- }, {
3130
- name: 'proof',
3131
- type: 'bytes32[]',
3132
- internalType: 'bytes32[]'
3133
- }, {
3134
- name: 'addr',
3135
- type: 'address',
3136
- internalType: 'address'
3137
- }, {
3138
- name: 'salt',
3139
- type: 'bytes32',
3140
- internalType: 'bytes32'
3141
- }]
3142
- }, {
3143
- type: 'error',
3144
- name: 'SaleInactive',
3145
- inputs: []
3146
- }, {
3147
- type: 'error',
3148
- name: 'WithdrawFailed',
3149
- inputs: []
3150
- }];
3151
-
3152
- const ERC1155_SALE_ITEMS_ABI = [{
3153
- type: 'constructor',
3154
- inputs: [],
3155
- stateMutability: 'nonpayable'
3156
- }, {
3157
- type: 'function',
3158
- name: 'DEFAULT_ADMIN_ROLE',
3159
- inputs: [],
3160
- outputs: [{
3161
- name: '',
3162
- type: 'bytes32',
3163
- internalType: 'bytes32'
3164
- }],
3165
- stateMutability: 'view'
3166
- }, {
3167
- type: 'function',
3168
- name: 'balanceOf',
3169
- inputs: [{
3170
- name: '_owner',
3171
- type: 'address',
3172
- internalType: 'address'
3173
- }, {
3174
- name: '_id',
3175
- type: 'uint256',
3176
- internalType: 'uint256'
3177
- }],
3178
- outputs: [{
3179
- name: '',
3180
- type: 'uint256',
3181
- internalType: 'uint256'
3182
- }],
3183
- stateMutability: 'view'
3184
- }, {
3185
- type: 'function',
3186
- name: 'balanceOfBatch',
3187
- inputs: [{
3188
- name: '_owners',
3189
- type: 'address[]',
3190
- internalType: 'address[]'
3191
- }, {
3192
- name: '_ids',
3193
- type: 'uint256[]',
3194
- internalType: 'uint256[]'
3195
- }],
3196
- outputs: [{
3197
- name: '',
3198
- type: 'uint256[]',
3199
- internalType: 'uint256[]'
3200
- }],
3201
- stateMutability: 'view'
3202
- }, {
3203
- type: 'function',
3204
- name: 'baseURI',
3205
- inputs: [],
3206
- outputs: [{
3207
- name: '',
3208
- type: 'string',
3209
- internalType: 'string'
3210
- }],
3211
- stateMutability: 'view'
3212
- }, {
3213
- type: 'function',
3214
- name: 'batchBurn',
3215
- inputs: [{
3216
- name: 'tokenIds',
3217
- type: 'uint256[]',
3218
- internalType: 'uint256[]'
3219
- }, {
3220
- name: 'amounts',
3221
- type: 'uint256[]',
3222
- internalType: 'uint256[]'
3223
- }],
3224
- outputs: [],
3225
- stateMutability: 'nonpayable'
3226
- }, {
3227
- type: 'function',
3228
- name: 'batchMint',
3229
- inputs: [{
3230
- name: 'to',
3231
- type: 'address',
3232
- internalType: 'address'
3233
- }, {
3234
- name: 'tokenIds',
3235
- type: 'uint256[]',
3236
- internalType: 'uint256[]'
3237
- }, {
3238
- name: 'amounts',
3239
- type: 'uint256[]',
3240
- internalType: 'uint256[]'
3241
- }, {
3242
- name: 'data',
3243
- type: 'bytes',
3244
- internalType: 'bytes'
3245
- }],
3246
- outputs: [],
3247
- stateMutability: 'nonpayable'
3248
- }, {
3249
- type: 'function',
3250
- name: 'burn',
3251
- inputs: [{
3252
- name: 'tokenId',
3253
- type: 'uint256',
3254
- internalType: 'uint256'
3255
- }, {
3256
- name: 'amount',
3257
- type: 'uint256',
3258
- internalType: 'uint256'
3259
- }],
3260
- outputs: [],
3261
- stateMutability: 'nonpayable'
3262
- }, {
3263
- type: 'function',
3264
- name: 'contractURI',
3265
- inputs: [],
3266
- outputs: [{
3267
- name: '',
3268
- type: 'string',
3269
- internalType: 'string'
3270
- }],
3271
- stateMutability: 'view'
3272
- }, {
3273
- type: 'function',
3274
- name: 'getRoleAdmin',
3275
- inputs: [{
3276
- name: 'role',
3277
- type: 'bytes32',
3278
- internalType: 'bytes32'
3279
- }],
3280
- outputs: [{
3281
- name: '',
3282
- type: 'bytes32',
3283
- internalType: 'bytes32'
3284
- }],
3285
- stateMutability: 'view'
3286
- }, {
3287
- type: 'function',
3288
- name: 'getRoleMember',
3289
- inputs: [{
3290
- name: 'role',
3291
- type: 'bytes32',
3292
- internalType: 'bytes32'
3293
- }, {
3294
- name: 'index',
3295
- type: 'uint256',
3296
- internalType: 'uint256'
3297
- }],
3298
- outputs: [{
3299
- name: '',
3300
- type: 'address',
3301
- internalType: 'address'
3302
- }],
3303
- stateMutability: 'view'
3304
- }, {
3305
- type: 'function',
3306
- name: 'getRoleMemberCount',
3307
- inputs: [{
3308
- name: 'role',
3309
- type: 'bytes32',
3310
- internalType: 'bytes32'
3311
- }],
3312
- outputs: [{
3313
- name: '',
3314
- type: 'uint256',
3315
- internalType: 'uint256'
3316
- }],
3317
- stateMutability: 'view'
3318
- }, {
3319
- type: 'function',
3320
- name: 'grantRole',
3321
- inputs: [{
3322
- name: 'role',
3323
- type: 'bytes32',
3324
- internalType: 'bytes32'
3325
- }, {
3326
- name: 'account',
3327
- type: 'address',
3328
- internalType: 'address'
3329
- }],
3330
- outputs: [],
3331
- stateMutability: 'nonpayable'
3332
- }, {
3333
- type: 'function',
3334
- name: 'hasRole',
3335
- inputs: [{
3336
- name: 'role',
3337
- type: 'bytes32',
3338
- internalType: 'bytes32'
3339
- }, {
3340
- name: 'account',
3341
- type: 'address',
3342
- internalType: 'address'
3343
- }],
3344
- outputs: [{
3345
- name: '',
3346
- type: 'bool',
3347
- internalType: 'bool'
3348
- }],
3349
- stateMutability: 'view'
3350
- }, {
3351
- type: 'function',
3352
- name: 'initialize',
3353
- inputs: [{
3354
- name: 'owner',
3355
- type: 'address',
3356
- internalType: 'address'
3357
- }, {
3358
- name: 'tokenName',
3359
- type: 'string',
3360
- internalType: 'string'
3361
- }, {
3362
- name: 'tokenBaseURI',
3363
- type: 'string',
3364
- internalType: 'string'
3365
- }, {
3366
- name: 'tokenContractURI',
3367
- type: 'string',
3368
- internalType: 'string'
3369
- }, {
3370
- name: 'royaltyReceiver',
3371
- type: 'address',
3372
- internalType: 'address'
3373
- }, {
3374
- name: 'royaltyFeeNumerator',
3375
- type: 'uint96',
3376
- internalType: 'uint96'
3377
- }],
3378
- outputs: [],
3379
- stateMutability: 'nonpayable'
3380
- }, {
3381
- type: 'function',
3382
- name: 'isApprovedForAll',
3383
- inputs: [{
3384
- name: '_owner',
3385
- type: 'address',
3386
- internalType: 'address'
3387
- }, {
3388
- name: '_operator',
3389
- type: 'address',
3390
- internalType: 'address'
3391
- }],
3392
- outputs: [{
3393
- name: 'isOperator',
3394
- type: 'bool',
3395
- internalType: 'bool'
3396
- }],
3397
- stateMutability: 'view'
3398
- }, {
3399
- type: 'function',
3400
- name: 'mint',
3401
- inputs: [{
3402
- name: 'to',
3403
- type: 'address',
3404
- internalType: 'address'
3405
- }, {
3406
- name: 'tokenId',
3407
- type: 'uint256',
3408
- internalType: 'uint256'
3409
- }, {
3410
- name: 'amount',
3411
- type: 'uint256',
3412
- internalType: 'uint256'
3413
- }, {
3414
- name: 'data',
3415
- type: 'bytes',
3416
- internalType: 'bytes'
3417
- }],
3418
- outputs: [],
3419
- stateMutability: 'nonpayable'
3420
- }, {
3421
- type: 'function',
3422
- name: 'name',
3423
- inputs: [],
3424
- outputs: [{
3425
- name: '',
3426
- type: 'string',
3427
- internalType: 'string'
3428
- }],
3429
- stateMutability: 'view'
3430
- }, {
3431
- type: 'function',
3432
- name: 'renounceRole',
3433
- inputs: [{
3434
- name: 'role',
3435
- type: 'bytes32',
3436
- internalType: 'bytes32'
3437
- }, {
3438
- name: 'account',
3439
- type: 'address',
3440
- internalType: 'address'
3441
- }],
3442
- outputs: [],
3443
- stateMutability: 'nonpayable'
3444
- }, {
3445
- type: 'function',
3446
- name: 'revokeRole',
3447
- inputs: [{
3448
- name: 'role',
3449
- type: 'bytes32',
3450
- internalType: 'bytes32'
3451
- }, {
3452
- name: 'account',
3453
- type: 'address',
3454
- internalType: 'address'
3455
- }],
3456
- outputs: [],
3457
- stateMutability: 'nonpayable'
3458
- }, {
3459
- type: 'function',
3460
- name: 'royaltyInfo',
3461
- inputs: [{
3462
- name: 'tokenId',
3463
- type: 'uint256',
3464
- internalType: 'uint256'
3465
- }, {
3466
- name: 'salePrice',
3467
- type: 'uint256',
3468
- internalType: 'uint256'
3469
- }],
3470
- outputs: [{
3471
- name: '',
3472
- type: 'address',
3473
- internalType: 'address'
3474
- }, {
3475
- name: '',
3476
- type: 'uint256',
3477
- internalType: 'uint256'
3478
- }],
3479
- stateMutability: 'view'
3480
- }, {
3481
- type: 'function',
3482
- name: 'safeBatchTransferFrom',
3483
- inputs: [{
3484
- name: '_from',
3485
- type: 'address',
3486
- internalType: 'address'
3487
- }, {
3488
- name: '_to',
3489
- type: 'address',
3490
- internalType: 'address'
3491
- }, {
3492
- name: '_ids',
3493
- type: 'uint256[]',
3494
- internalType: 'uint256[]'
3495
- }, {
3496
- name: '_amounts',
3497
- type: 'uint256[]',
3498
- internalType: 'uint256[]'
3499
- }, {
3500
- name: '_data',
3501
- type: 'bytes',
3502
- internalType: 'bytes'
3503
- }],
3504
- outputs: [],
3505
- stateMutability: 'nonpayable'
3506
- }, {
3507
- type: 'function',
3508
- name: 'safeTransferFrom',
3509
- inputs: [{
3510
- name: '_from',
3511
- type: 'address',
3512
- internalType: 'address'
3513
- }, {
3514
- name: '_to',
3515
- type: 'address',
3516
- internalType: 'address'
3517
- }, {
3518
- name: '_id',
3519
- type: 'uint256',
3520
- internalType: 'uint256'
3521
- }, {
3522
- name: '_amount',
3523
- type: 'uint256',
3524
- internalType: 'uint256'
3525
- }, {
3526
- name: '_data',
3527
- type: 'bytes',
3528
- internalType: 'bytes'
3529
- }],
3530
- outputs: [],
3531
- stateMutability: 'nonpayable'
3532
- }, {
3533
- type: 'function',
3534
- name: 'setApprovalForAll',
3535
- inputs: [{
3536
- name: '_operator',
3537
- type: 'address',
3538
- internalType: 'address'
3539
- }, {
3540
- name: '_approved',
3541
- type: 'bool',
3542
- internalType: 'bool'
3543
- }],
3544
- outputs: [],
3545
- stateMutability: 'nonpayable'
3546
- }, {
3547
- type: 'function',
3548
- name: 'setBaseMetadataURI',
3549
- inputs: [{
3550
- name: 'tokenBaseURI',
3551
- type: 'string',
3552
- internalType: 'string'
3553
- }],
3554
- outputs: [],
3555
- stateMutability: 'nonpayable'
3556
- }, {
3557
- type: 'function',
3558
- name: 'setContractName',
3559
- inputs: [{
3560
- name: 'tokenName',
3561
- type: 'string',
3562
- internalType: 'string'
3563
- }],
3564
- outputs: [],
3565
- stateMutability: 'nonpayable'
3566
- }, {
3567
- type: 'function',
3568
- name: 'setContractURI',
3569
- inputs: [{
3570
- name: 'tokenContractURI',
3571
- type: 'string',
3572
- internalType: 'string'
3573
- }],
3574
- outputs: [],
3575
- stateMutability: 'nonpayable'
3576
- }, {
3577
- type: 'function',
3578
- name: 'setDefaultRoyalty',
3579
- inputs: [{
3580
- name: 'receiver',
3581
- type: 'address',
3582
- internalType: 'address'
3583
- }, {
3584
- name: 'feeNumerator',
3585
- type: 'uint96',
3586
- internalType: 'uint96'
3587
- }],
3588
- outputs: [],
3589
- stateMutability: 'nonpayable'
3590
- }, {
3591
- type: 'function',
3592
- name: 'setTokenRoyalty',
3593
- inputs: [{
3594
- name: 'tokenId',
3595
- type: 'uint256',
3596
- internalType: 'uint256'
3597
- }, {
3598
- name: 'receiver',
3599
- type: 'address',
3600
- internalType: 'address'
3601
- }, {
3602
- name: 'feeNumerator',
3603
- type: 'uint96',
3604
- internalType: 'uint96'
3605
- }],
3606
- outputs: [],
3607
- stateMutability: 'nonpayable'
3608
- }, {
3609
- type: 'function',
3610
- name: 'supportsInterface',
3611
- inputs: [{
3612
- name: 'interfaceId',
3613
- type: 'bytes4',
3614
- internalType: 'bytes4'
3615
- }],
3616
- outputs: [{
3617
- name: '',
3618
- type: 'bool',
3619
- internalType: 'bool'
3620
- }],
3621
- stateMutability: 'view'
3622
- }, {
3623
- type: 'function',
3624
- name: 'tokenSupply',
3625
- inputs: [{
3626
- name: '',
3627
- type: 'uint256',
3628
- internalType: 'uint256'
3629
- }],
3630
- outputs: [{
3631
- name: '',
3632
- type: 'uint256',
3633
- internalType: 'uint256'
3634
- }],
3635
- stateMutability: 'view'
3636
- }, {
3637
- type: 'function',
3638
- name: 'totalSupply',
3639
- inputs: [],
3640
- outputs: [{
3641
- name: '',
3642
- type: 'uint256',
3643
- internalType: 'uint256'
3644
- }],
3645
- stateMutability: 'view'
3646
- }, {
3647
- type: 'function',
3648
- name: 'uri',
3649
- inputs: [{
3650
- name: '_id',
3651
- type: 'uint256',
3652
- internalType: 'uint256'
3653
- }],
3654
- outputs: [{
3655
- name: '',
3656
- type: 'string',
3657
- internalType: 'string'
3658
- }],
3659
- stateMutability: 'view'
3660
- }, {
3661
- type: 'event',
3662
- name: 'ApprovalForAll',
3663
- inputs: [{
3664
- name: '_owner',
3665
- type: 'address',
3666
- indexed: true,
3667
- internalType: 'address'
3668
- }, {
3669
- name: '_operator',
3670
- type: 'address',
3671
- indexed: true,
3672
- internalType: 'address'
3673
- }, {
3674
- name: '_approved',
3675
- type: 'bool',
3676
- indexed: false,
3677
- internalType: 'bool'
3678
- }],
3679
- anonymous: false
3680
- }, {
3681
- type: 'event',
3682
- name: 'RoleAdminChanged',
3683
- inputs: [{
3684
- name: 'role',
3685
- type: 'bytes32',
3686
- indexed: true,
3687
- internalType: 'bytes32'
3688
- }, {
3689
- name: 'previousAdminRole',
3690
- type: 'bytes32',
3691
- indexed: true,
3692
- internalType: 'bytes32'
3693
- }, {
3694
- name: 'newAdminRole',
3695
- type: 'bytes32',
3696
- indexed: true,
3697
- internalType: 'bytes32'
3698
- }],
3699
- anonymous: false
3700
- }, {
3701
- type: 'event',
3702
- name: 'RoleGranted',
3703
- inputs: [{
3704
- name: 'role',
3705
- type: 'bytes32',
3706
- indexed: true,
3707
- internalType: 'bytes32'
3708
- }, {
3709
- name: 'account',
3710
- type: 'address',
3711
- indexed: true,
3712
- internalType: 'address'
3713
- }, {
3714
- name: 'sender',
3715
- type: 'address',
3716
- indexed: true,
3717
- internalType: 'address'
3718
- }],
3719
- anonymous: false
3720
- }, {
3721
- type: 'event',
3722
- name: 'RoleRevoked',
3723
- inputs: [{
3724
- name: 'role',
3725
- type: 'bytes32',
3726
- indexed: true,
3727
- internalType: 'bytes32'
3728
- }, {
3729
- name: 'account',
3730
- type: 'address',
3731
- indexed: true,
3732
- internalType: 'address'
3733
- }, {
3734
- name: 'sender',
3735
- type: 'address',
3736
- indexed: true,
3737
- internalType: 'address'
3738
- }],
3739
- anonymous: false
3740
- }, {
3741
- type: 'event',
3742
- name: 'TransferBatch',
3743
- inputs: [{
3744
- name: '_operator',
3745
- type: 'address',
3746
- indexed: true,
3747
- internalType: 'address'
3748
- }, {
3749
- name: '_from',
3750
- type: 'address',
3751
- indexed: true,
3752
- internalType: 'address'
3753
- }, {
3754
- name: '_to',
3755
- type: 'address',
3756
- indexed: true,
3757
- internalType: 'address'
3758
- }, {
3759
- name: '_ids',
3760
- type: 'uint256[]',
3761
- indexed: false,
3762
- internalType: 'uint256[]'
3763
- }, {
3764
- name: '_amounts',
3765
- type: 'uint256[]',
3766
- indexed: false,
3767
- internalType: 'uint256[]'
3768
- }],
3769
- anonymous: false
3770
- }, {
3771
- type: 'event',
3772
- name: 'TransferSingle',
3773
- inputs: [{
3774
- name: '_operator',
3775
- type: 'address',
3776
- indexed: true,
3777
- internalType: 'address'
3778
- }, {
3779
- name: '_from',
3780
- type: 'address',
3781
- indexed: true,
3782
- internalType: 'address'
3783
- }, {
3784
- name: '_to',
3785
- type: 'address',
3786
- indexed: true,
3787
- internalType: 'address'
3788
- }, {
3789
- name: '_id',
3790
- type: 'uint256',
3791
- indexed: false,
3792
- internalType: 'uint256'
3793
- }, {
3794
- name: '_amount',
3795
- type: 'uint256',
3796
- indexed: false,
3797
- internalType: 'uint256'
3798
- }],
3799
- anonymous: false
3800
- }, {
3801
- type: 'event',
3802
- name: 'URI',
3803
- inputs: [{
3804
- name: '_uri',
3805
- type: 'string',
3806
- indexed: false,
3807
- internalType: 'string'
3808
- }, {
3809
- name: '_id',
3810
- type: 'uint256',
3811
- indexed: true,
3812
- internalType: 'uint256'
3813
- }],
3814
- anonymous: false
3815
- }, {
3816
- type: 'error',
3817
- name: 'InvalidArrayLength',
3818
- inputs: []
3819
- }, {
3820
- type: 'error',
3821
- name: 'InvalidInitialization',
3822
- inputs: []
3823
- }];
3824
-
3825
- const ERC721_SALE_ITEMS_ABI = [{
3826
- type: 'constructor',
3827
- inputs: [],
3828
- stateMutability: 'nonpayable'
3829
- }, {
3830
- type: 'function',
3831
- name: 'DEFAULT_ADMIN_ROLE',
3832
- inputs: [],
3833
- outputs: [{
3834
- name: '',
3835
- type: 'bytes32',
3836
- internalType: 'bytes32'
3837
- }],
3838
- stateMutability: 'view'
3839
- }, {
3840
- type: 'function',
3841
- name: 'approve',
3842
- inputs: [{
3843
- name: 'to',
3844
- type: 'address',
3845
- internalType: 'address'
3846
- }, {
3847
- name: 'tokenId',
3848
- type: 'uint256',
3849
- internalType: 'uint256'
3850
- }],
3851
- outputs: [],
3852
- stateMutability: 'payable'
3853
- }, {
3854
- type: 'function',
3855
- name: 'balanceOf',
3856
- inputs: [{
3857
- name: 'owner',
3858
- type: 'address',
3859
- internalType: 'address'
3860
- }],
3861
- outputs: [{
3862
- name: '',
3863
- type: 'uint256',
3864
- internalType: 'uint256'
3865
- }],
3866
- stateMutability: 'view'
3867
- }, {
3868
- type: 'function',
3869
- name: 'batchBurn',
3870
- inputs: [{
3871
- name: 'tokenIds',
3872
- type: 'uint256[]',
3873
- internalType: 'uint256[]'
3874
- }],
3875
- outputs: [],
3876
- stateMutability: 'nonpayable'
3877
- }, {
3878
- type: 'function',
3879
- name: 'burn',
3880
- inputs: [{
3881
- name: 'tokenId',
3882
- type: 'uint256',
3883
- internalType: 'uint256'
3884
- }],
3885
- outputs: [],
3886
- stateMutability: 'nonpayable'
3887
- }, {
3888
- type: 'function',
3889
- name: 'contractURI',
3890
- inputs: [],
3891
- outputs: [{
3892
- name: '',
3893
- type: 'string',
3894
- internalType: 'string'
3895
- }],
3896
- stateMutability: 'view'
3897
- }, {
3898
- type: 'function',
3899
- name: 'explicitOwnershipOf',
3900
- inputs: [{
3901
- name: 'tokenId',
3902
- type: 'uint256',
3903
- internalType: 'uint256'
3904
- }],
3905
- outputs: [{
3906
- name: '',
3907
- type: 'tuple',
3908
- internalType: 'struct IERC721A.TokenOwnership',
3909
- components: [{
3910
- name: 'addr',
3911
- type: 'address',
3912
- internalType: 'address'
3913
- }, {
3914
- name: 'startTimestamp',
3915
- type: 'uint64',
3916
- internalType: 'uint64'
3917
- }, {
3918
- name: 'burned',
3919
- type: 'bool',
3920
- internalType: 'bool'
3921
- }, {
3922
- name: 'extraData',
3923
- type: 'uint24',
3924
- internalType: 'uint24'
3925
- }]
3926
- }],
3927
- stateMutability: 'view'
3928
- }, {
3929
- type: 'function',
3930
- name: 'explicitOwnershipsOf',
3931
- inputs: [{
3932
- name: 'tokenIds',
3933
- type: 'uint256[]',
3934
- internalType: 'uint256[]'
3935
- }],
3936
- outputs: [{
3937
- name: '',
3938
- type: 'tuple[]',
3939
- internalType: 'struct IERC721A.TokenOwnership[]',
3940
- components: [{
3941
- name: 'addr',
3942
- type: 'address',
3943
- internalType: 'address'
3944
- }, {
3945
- name: 'startTimestamp',
3946
- type: 'uint64',
3947
- internalType: 'uint64'
3948
- }, {
3949
- name: 'burned',
3950
- type: 'bool',
3951
- internalType: 'bool'
3952
- }, {
3953
- name: 'extraData',
3954
- type: 'uint24',
3955
- internalType: 'uint24'
3956
- }]
3957
- }],
3958
- stateMutability: 'view'
3959
- }, {
3960
- type: 'function',
3961
- name: 'getApproved',
3962
- inputs: [{
3963
- name: 'tokenId',
3964
- type: 'uint256',
3965
- internalType: 'uint256'
3966
- }],
3967
- outputs: [{
3968
- name: '',
3969
- type: 'address',
3970
- internalType: 'address'
3971
- }],
3972
- stateMutability: 'view'
3973
- }, {
3974
- type: 'function',
3975
- name: 'getRoleAdmin',
3976
- inputs: [{
3977
- name: 'role',
3978
- type: 'bytes32',
3979
- internalType: 'bytes32'
3980
- }],
3981
- outputs: [{
3982
- name: '',
3983
- type: 'bytes32',
3984
- internalType: 'bytes32'
3985
- }],
3986
- stateMutability: 'view'
3987
- }, {
3988
- type: 'function',
3989
- name: 'getRoleMember',
3990
- inputs: [{
3991
- name: 'role',
3992
- type: 'bytes32',
3993
- internalType: 'bytes32'
3994
- }, {
3995
- name: 'index',
3996
- type: 'uint256',
3997
- internalType: 'uint256'
3998
- }],
3999
- outputs: [{
4000
- name: '',
4001
- type: 'address',
4002
- internalType: 'address'
4003
- }],
4004
- stateMutability: 'view'
4005
- }, {
4006
- type: 'function',
4007
- name: 'getRoleMemberCount',
4008
- inputs: [{
4009
- name: 'role',
4010
- type: 'bytes32',
4011
- internalType: 'bytes32'
4012
- }],
4013
- outputs: [{
4014
- name: '',
4015
- type: 'uint256',
4016
- internalType: 'uint256'
4017
- }],
4018
- stateMutability: 'view'
4019
- }, {
4020
- type: 'function',
4021
- name: 'grantRole',
4022
- inputs: [{
4023
- name: 'role',
4024
- type: 'bytes32',
4025
- internalType: 'bytes32'
4026
- }, {
4027
- name: 'account',
4028
- type: 'address',
4029
- internalType: 'address'
4030
- }],
4031
- outputs: [],
4032
- stateMutability: 'nonpayable'
4033
- }, {
4034
- type: 'function',
4035
- name: 'hasRole',
4036
- inputs: [{
4037
- name: 'role',
4038
- type: 'bytes32',
4039
- internalType: 'bytes32'
4040
- }, {
4041
- name: 'account',
4042
- type: 'address',
4043
- internalType: 'address'
4044
- }],
4045
- outputs: [{
4046
- name: '',
4047
- type: 'bool',
4048
- internalType: 'bool'
4049
- }],
4050
- stateMutability: 'view'
4051
- }, {
4052
- type: 'function',
4053
- name: 'initialize',
4054
- inputs: [{
4055
- name: 'owner',
4056
- type: 'address',
4057
- internalType: 'address'
4058
- }, {
4059
- name: 'tokenName',
4060
- type: 'string',
4061
- internalType: 'string'
4062
- }, {
4063
- name: 'tokenSymbol',
4064
- type: 'string',
4065
- internalType: 'string'
4066
- }, {
4067
- name: 'tokenBaseURI',
4068
- type: 'string',
4069
- internalType: 'string'
4070
- }, {
4071
- name: 'tokenContractURI',
4072
- type: 'string',
4073
- internalType: 'string'
4074
- }, {
4075
- name: 'royaltyReceiver',
4076
- type: 'address',
4077
- internalType: 'address'
4078
- }, {
4079
- name: 'royaltyFeeNumerator',
4080
- type: 'uint96',
4081
- internalType: 'uint96'
4082
- }],
4083
- outputs: [],
4084
- stateMutability: 'nonpayable'
4085
- }, {
4086
- type: 'function',
4087
- name: 'isApprovedForAll',
4088
- inputs: [{
4089
- name: 'owner',
4090
- type: 'address',
4091
- internalType: 'address'
4092
- }, {
4093
- name: 'operator',
4094
- type: 'address',
4095
- internalType: 'address'
4096
- }],
4097
- outputs: [{
4098
- name: '',
4099
- type: 'bool',
4100
- internalType: 'bool'
4101
- }],
4102
- stateMutability: 'view'
4103
- }, {
4104
- type: 'function',
4105
- name: 'mint',
4106
- inputs: [{
4107
- name: 'to',
4108
- type: 'address',
4109
- internalType: 'address'
4110
- }, {
4111
- name: 'amount',
4112
- type: 'uint256',
4113
- internalType: 'uint256'
4114
- }],
4115
- outputs: [],
4116
- stateMutability: 'nonpayable'
4117
- }, {
4118
- type: 'function',
4119
- name: 'name',
4120
- inputs: [],
4121
- outputs: [{
4122
- name: '',
4123
- type: 'string',
4124
- internalType: 'string'
4125
- }],
4126
- stateMutability: 'view'
4127
- }, {
4128
- type: 'function',
4129
- name: 'ownerOf',
4130
- inputs: [{
4131
- name: 'tokenId',
4132
- type: 'uint256',
4133
- internalType: 'uint256'
4134
- }],
4135
- outputs: [{
4136
- name: '',
4137
- type: 'address',
4138
- internalType: 'address'
4139
- }],
4140
- stateMutability: 'view'
4141
- }, {
4142
- type: 'function',
4143
- name: 'renounceRole',
4144
- inputs: [{
4145
- name: 'role',
4146
- type: 'bytes32',
4147
- internalType: 'bytes32'
4148
- }, {
4149
- name: 'account',
4150
- type: 'address',
4151
- internalType: 'address'
4152
- }],
4153
- outputs: [],
4154
- stateMutability: 'nonpayable'
4155
- }, {
4156
- type: 'function',
4157
- name: 'revokeRole',
4158
- inputs: [{
4159
- name: 'role',
4160
- type: 'bytes32',
4161
- internalType: 'bytes32'
4162
- }, {
4163
- name: 'account',
4164
- type: 'address',
4165
- internalType: 'address'
4166
- }],
4167
- outputs: [],
4168
- stateMutability: 'nonpayable'
4169
- }, {
4170
- type: 'function',
4171
- name: 'royaltyInfo',
4172
- inputs: [{
4173
- name: 'tokenId',
4174
- type: 'uint256',
4175
- internalType: 'uint256'
4176
- }, {
4177
- name: 'salePrice',
4178
- type: 'uint256',
4179
- internalType: 'uint256'
4180
- }],
4181
- outputs: [{
4182
- name: '',
4183
- type: 'address',
4184
- internalType: 'address'
4185
- }, {
4186
- name: '',
4187
- type: 'uint256',
4188
- internalType: 'uint256'
4189
- }],
4190
- stateMutability: 'view'
4191
- }, {
4192
- type: 'function',
4193
- name: 'safeTransferFrom',
4194
- inputs: [{
4195
- name: 'from',
4196
- type: 'address',
4197
- internalType: 'address'
4198
- }, {
4199
- name: 'to',
4200
- type: 'address',
4201
- internalType: 'address'
4202
- }, {
4203
- name: 'tokenId',
4204
- type: 'uint256',
4205
- internalType: 'uint256'
4206
- }],
4207
- outputs: [],
4208
- stateMutability: 'payable'
4209
- }, {
4210
- type: 'function',
4211
- name: 'safeTransferFrom',
4212
- inputs: [{
4213
- name: 'from',
4214
- type: 'address',
4215
- internalType: 'address'
4216
- }, {
4217
- name: 'to',
4218
- type: 'address',
4219
- internalType: 'address'
4220
- }, {
4221
- name: 'tokenId',
4222
- type: 'uint256',
4223
- internalType: 'uint256'
4224
- }, {
4225
- name: '_data',
4226
- type: 'bytes',
4227
- internalType: 'bytes'
4228
- }],
4229
- outputs: [],
4230
- stateMutability: 'payable'
4231
- }, {
4232
- type: 'function',
4233
- name: 'setApprovalForAll',
4234
- inputs: [{
4235
- name: 'operator',
4236
- type: 'address',
4237
- internalType: 'address'
4238
- }, {
4239
- name: 'approved',
4240
- type: 'bool',
4241
- internalType: 'bool'
4242
- }],
4243
- outputs: [],
4244
- stateMutability: 'nonpayable'
4245
- }, {
4246
- type: 'function',
4247
- name: 'setBaseMetadataURI',
4248
- inputs: [{
4249
- name: 'tokenBaseURI',
4250
- type: 'string',
4251
- internalType: 'string'
4252
- }],
4253
- outputs: [],
4254
- stateMutability: 'nonpayable'
4255
- }, {
4256
- type: 'function',
4257
- name: 'setContractURI',
4258
- inputs: [{
4259
- name: 'tokenContractURI',
4260
- type: 'string',
4261
- internalType: 'string'
4262
- }],
4263
- outputs: [],
4264
- stateMutability: 'nonpayable'
4265
- }, {
4266
- type: 'function',
4267
- name: 'setDefaultRoyalty',
4268
- inputs: [{
4269
- name: 'receiver',
4270
- type: 'address',
4271
- internalType: 'address'
4272
- }, {
4273
- name: 'feeNumerator',
4274
- type: 'uint96',
4275
- internalType: 'uint96'
4276
- }],
4277
- outputs: [],
4278
- stateMutability: 'nonpayable'
4279
- }, {
4280
- type: 'function',
4281
- name: 'setNameAndSymbol',
4282
- inputs: [{
4283
- name: 'tokenName',
4284
- type: 'string',
4285
- internalType: 'string'
4286
- }, {
4287
- name: 'tokenSymbol',
4288
- type: 'string',
4289
- internalType: 'string'
4290
- }],
4291
- outputs: [],
4292
- stateMutability: 'nonpayable'
4293
- }, {
4294
- type: 'function',
4295
- name: 'setTokenRoyalty',
4296
- inputs: [{
4297
- name: 'tokenId',
4298
- type: 'uint256',
4299
- internalType: 'uint256'
4300
- }, {
4301
- name: 'receiver',
4302
- type: 'address',
4303
- internalType: 'address'
4304
- }, {
4305
- name: 'feeNumerator',
4306
- type: 'uint96',
4307
- internalType: 'uint96'
4308
- }],
4309
- outputs: [],
4310
- stateMutability: 'nonpayable'
4311
- }, {
4312
- type: 'function',
4313
- name: 'supportsInterface',
4314
- inputs: [{
4315
- name: 'interfaceId',
4316
- type: 'bytes4',
4317
- internalType: 'bytes4'
4318
- }],
4319
- outputs: [{
4320
- name: '',
4321
- type: 'bool',
4322
- internalType: 'bool'
4323
- }],
4324
- stateMutability: 'view'
4325
- }, {
4326
- type: 'function',
4327
- name: 'symbol',
4328
- inputs: [],
4329
- outputs: [{
4330
- name: '',
4331
- type: 'string',
4332
- internalType: 'string'
4333
- }],
4334
- stateMutability: 'view'
4335
- }, {
4336
- type: 'function',
4337
- name: 'tokenURI',
4338
- inputs: [{
4339
- name: 'tokenId',
4340
- type: 'uint256',
4341
- internalType: 'uint256'
4342
- }],
4343
- outputs: [{
4344
- name: '',
4345
- type: 'string',
4346
- internalType: 'string'
4347
- }],
4348
- stateMutability: 'view'
4349
- }, {
4350
- type: 'function',
4351
- name: 'tokensOfOwner',
4352
- inputs: [{
4353
- name: 'owner',
4354
- type: 'address',
4355
- internalType: 'address'
4356
- }],
4357
- outputs: [{
4358
- name: '',
4359
- type: 'uint256[]',
4360
- internalType: 'uint256[]'
4361
- }],
4362
- stateMutability: 'view'
4363
- }, {
4364
- type: 'function',
4365
- name: 'tokensOfOwnerIn',
4366
- inputs: [{
4367
- name: 'owner',
4368
- type: 'address',
4369
- internalType: 'address'
4370
- }, {
4371
- name: 'start',
4372
- type: 'uint256',
4373
- internalType: 'uint256'
4374
- }, {
4375
- name: 'stop',
4376
- type: 'uint256',
4377
- internalType: 'uint256'
4378
- }],
4379
- outputs: [{
4380
- name: '',
4381
- type: 'uint256[]',
4382
- internalType: 'uint256[]'
4383
- }],
4384
- stateMutability: 'view'
4385
- }, {
4386
- type: 'function',
4387
- name: 'totalSupply',
4388
- inputs: [],
4389
- outputs: [{
4390
- name: '',
4391
- type: 'uint256',
4392
- internalType: 'uint256'
4393
- }],
4394
- stateMutability: 'view'
4395
- }, {
4396
- type: 'function',
4397
- name: 'transferFrom',
4398
- inputs: [{
4399
- name: 'from',
4400
- type: 'address',
4401
- internalType: 'address'
4402
- }, {
4403
- name: 'to',
4404
- type: 'address',
4405
- internalType: 'address'
4406
- }, {
4407
- name: 'tokenId',
4408
- type: 'uint256',
4409
- internalType: 'uint256'
4410
- }],
4411
- outputs: [],
4412
- stateMutability: 'payable'
4413
- }, {
4414
- type: 'event',
4415
- name: 'Approval',
4416
- inputs: [{
4417
- name: 'owner',
4418
- type: 'address',
4419
- indexed: true,
4420
- internalType: 'address'
4421
- }, {
4422
- name: 'approved',
4423
- type: 'address',
4424
- indexed: true,
4425
- internalType: 'address'
4426
- }, {
4427
- name: 'tokenId',
4428
- type: 'uint256',
4429
- indexed: true,
4430
- internalType: 'uint256'
4431
- }],
4432
- anonymous: false
4433
- }, {
4434
- type: 'event',
4435
- name: 'ApprovalForAll',
4436
- inputs: [{
4437
- name: 'owner',
4438
- type: 'address',
4439
- indexed: true,
4440
- internalType: 'address'
4441
- }, {
4442
- name: 'operator',
4443
- type: 'address',
4444
- indexed: true,
4445
- internalType: 'address'
4446
- }, {
4447
- name: 'approved',
4448
- type: 'bool',
4449
- indexed: false,
4450
- internalType: 'bool'
4451
- }],
4452
- anonymous: false
4453
- }, {
4454
- type: 'event',
4455
- name: 'ConsecutiveTransfer',
4456
- inputs: [{
4457
- name: 'fromTokenId',
4458
- type: 'uint256',
4459
- indexed: true,
4460
- internalType: 'uint256'
4461
- }, {
4462
- name: 'toTokenId',
4463
- type: 'uint256',
4464
- indexed: false,
4465
- internalType: 'uint256'
4466
- }, {
4467
- name: 'from',
4468
- type: 'address',
4469
- indexed: true,
4470
- internalType: 'address'
4471
- }, {
4472
- name: 'to',
4473
- type: 'address',
4474
- indexed: true,
4475
- internalType: 'address'
4476
- }],
4477
- anonymous: false
4478
- }, {
4479
- type: 'event',
4480
- name: 'RoleAdminChanged',
4481
- inputs: [{
4482
- name: 'role',
4483
- type: 'bytes32',
4484
- indexed: true,
4485
- internalType: 'bytes32'
4486
- }, {
4487
- name: 'previousAdminRole',
4488
- type: 'bytes32',
4489
- indexed: true,
4490
- internalType: 'bytes32'
4491
- }, {
4492
- name: 'newAdminRole',
4493
- type: 'bytes32',
4494
- indexed: true,
4495
- internalType: 'bytes32'
4496
- }],
4497
- anonymous: false
4498
- }, {
4499
- type: 'event',
4500
- name: 'RoleGranted',
4501
- inputs: [{
4502
- name: 'role',
4503
- type: 'bytes32',
4504
- indexed: true,
4505
- internalType: 'bytes32'
4506
- }, {
4507
- name: 'account',
4508
- type: 'address',
4509
- indexed: true,
4510
- internalType: 'address'
4511
- }, {
4512
- name: 'sender',
4513
- type: 'address',
4514
- indexed: true,
4515
- internalType: 'address'
4516
- }],
4517
- anonymous: false
4518
- }, {
4519
- type: 'event',
4520
- name: 'RoleRevoked',
4521
- inputs: [{
4522
- name: 'role',
4523
- type: 'bytes32',
4524
- indexed: true,
4525
- internalType: 'bytes32'
4526
- }, {
4527
- name: 'account',
4528
- type: 'address',
4529
- indexed: true,
4530
- internalType: 'address'
4531
- }, {
4532
- name: 'sender',
4533
- type: 'address',
4534
- indexed: true,
4535
- internalType: 'address'
4536
- }],
4537
- anonymous: false
4538
- }, {
4539
- type: 'event',
4540
- name: 'Transfer',
4541
- inputs: [{
4542
- name: 'from',
4543
- type: 'address',
4544
- indexed: true,
4545
- internalType: 'address'
4546
- }, {
4547
- name: 'to',
4548
- type: 'address',
4549
- indexed: true,
4550
- internalType: 'address'
4551
- }, {
4552
- name: 'tokenId',
4553
- type: 'uint256',
4554
- indexed: true,
4555
- internalType: 'uint256'
4556
- }],
4557
- anonymous: false
4558
- }, {
4559
- type: 'error',
4560
- name: 'ApprovalCallerNotOwnerNorApproved',
4561
- inputs: []
4562
- }, {
4563
- type: 'error',
4564
- name: 'ApprovalQueryForNonexistentToken',
4565
- inputs: []
4566
- }, {
4567
- type: 'error',
4568
- name: 'BalanceQueryForZeroAddress',
4569
- inputs: []
4570
- }, {
4571
- type: 'error',
4572
- name: 'InvalidInitialization',
4573
- inputs: []
4574
- }, {
4575
- type: 'error',
4576
- name: 'InvalidQueryRange',
4577
- inputs: []
4578
- }, {
4579
- type: 'error',
4580
- name: 'MintERC2309QuantityExceedsLimit',
4581
- inputs: []
4582
- }, {
4583
- type: 'error',
4584
- name: 'MintToZeroAddress',
4585
- inputs: []
4586
- }, {
4587
- type: 'error',
4588
- name: 'MintZeroQuantity',
4589
- inputs: []
4590
- }, {
4591
- type: 'error',
4592
- name: 'OwnerQueryForNonexistentToken',
4593
- inputs: []
4594
- }, {
4595
- type: 'error',
4596
- name: 'OwnershipNotInitializedForExtraData',
4597
- inputs: []
4598
- }, {
4599
- type: 'error',
4600
- name: 'TransferCallerNotOwnerNorApproved',
4601
- inputs: []
4602
- }, {
4603
- type: 'error',
4604
- name: 'TransferFromIncorrectOwner',
4605
- inputs: []
4606
- }, {
4607
- type: 'error',
4608
- name: 'TransferToNonERC721ReceiverImplementer',
4609
- inputs: []
4610
- }, {
4611
- type: 'error',
4612
- name: 'TransferToZeroAddress',
4613
- inputs: []
4614
- }, {
4615
- type: 'error',
4616
- name: 'URIQueryForNonexistentToken',
4617
- inputs: []
4618
- }];
4619
-
4620
- exports.ERC1155_ABI = ERC1155_ABI;
4621
- exports.ERC1155_SALE_ABI = ERC1155_SALE_ABI;
4622
- exports.ERC1155_SALE_ITEMS_ABI = ERC1155_SALE_ITEMS_ABI;
4623
- exports.ERC20_ABI = ERC20_ABI;
4624
- exports.ERC6909_ABI = ERC6909_ABI;
4625
- exports.ERC721_ABI = ERC721_ABI;
4626
- exports.ERC721_SALE_ABI = ERC721_SALE_ABI;
4627
- exports.ERC721_SALE_ITEMS_ABI = ERC721_SALE_ITEMS_ABI;
4628
- exports.erc1271Abi = abi$8;
4629
- exports.erc5719Abi = abi$9;
4630
- exports.erc6492Abi = abi$7;
4631
- exports.factoryAbi = abi$6;
4632
- exports.mainModuleAbi = abi$5;
4633
- exports.mainModuleUpgradableAbi = abi$4;
4634
- exports.moduleHooksAbi = abi$3;
4635
- exports.requireFreshSignerAbi = abi$1;
4636
- exports.sequenceUtilsAbi = abi$2;
4637
- exports.walletContracts = walletContracts;
4638
- exports.walletProxyHookAbi = abi;