@0xsequence/abi 2.3.18 → 2.3.20

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