@gitmyabi/roundpresale 1.0.0

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,4103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RoundPresaleV3_json = exports.RoundPresaleV3_jsonAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * RoundPresaleV3_json ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.RoundPresaleV3_jsonAbi = [
11
+ {
12
+ "inputs": [],
13
+ "name": "AccessControlBadConfirmation",
14
+ "type": "error"
15
+ },
16
+ {
17
+ "inputs": [
18
+ {
19
+ "internalType": "address",
20
+ "name": "account",
21
+ "type": "address"
22
+ },
23
+ {
24
+ "internalType": "bytes32",
25
+ "name": "neededRole",
26
+ "type": "bytes32"
27
+ }
28
+ ],
29
+ "name": "AccessControlUnauthorizedAccount",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "address",
36
+ "name": "target",
37
+ "type": "address"
38
+ }
39
+ ],
40
+ "name": "AddressEmptyCode",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [
45
+ {
46
+ "internalType": "address",
47
+ "name": "implementation",
48
+ "type": "address"
49
+ }
50
+ ],
51
+ "name": "ERC1967InvalidImplementation",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "ERC1967NonPayable",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [],
61
+ "name": "EnforcedPause",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "ExpectedPause",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "FailedCall",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "InvalidInitialization",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "inputs": [],
81
+ "name": "NotInitializing",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "inputs": [
86
+ {
87
+ "internalType": "address",
88
+ "name": "owner",
89
+ "type": "address"
90
+ }
91
+ ],
92
+ "name": "OwnableInvalidOwner",
93
+ "type": "error"
94
+ },
95
+ {
96
+ "inputs": [
97
+ {
98
+ "internalType": "address",
99
+ "name": "account",
100
+ "type": "address"
101
+ }
102
+ ],
103
+ "name": "OwnableUnauthorizedAccount",
104
+ "type": "error"
105
+ },
106
+ {
107
+ "inputs": [],
108
+ "name": "ReentrancyGuardReentrantCall",
109
+ "type": "error"
110
+ },
111
+ {
112
+ "inputs": [],
113
+ "name": "UUPSUnauthorizedCallContext",
114
+ "type": "error"
115
+ },
116
+ {
117
+ "inputs": [
118
+ {
119
+ "internalType": "bytes32",
120
+ "name": "slot",
121
+ "type": "bytes32"
122
+ }
123
+ ],
124
+ "name": "UUPSUnsupportedProxiableUUID",
125
+ "type": "error"
126
+ },
127
+ {
128
+ "anonymous": false,
129
+ "inputs": [
130
+ {
131
+ "indexed": false,
132
+ "internalType": "string",
133
+ "name": "name",
134
+ "type": "string"
135
+ },
136
+ {
137
+ "indexed": false,
138
+ "internalType": "uint256",
139
+ "name": "value",
140
+ "type": "uint256"
141
+ }
142
+ ],
143
+ "name": "ConfigUpdated",
144
+ "type": "event"
145
+ },
146
+ {
147
+ "anonymous": false,
148
+ "inputs": [
149
+ {
150
+ "indexed": true,
151
+ "internalType": "address",
152
+ "name": "buyer",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "indexed": false,
157
+ "internalType": "uint256",
158
+ "name": "nextRoundId",
159
+ "type": "uint256"
160
+ }
161
+ ],
162
+ "name": "CrossRoundPurchase",
163
+ "type": "event"
164
+ },
165
+ {
166
+ "anonymous": false,
167
+ "inputs": [
168
+ {
169
+ "indexed": true,
170
+ "internalType": "address",
171
+ "name": "token",
172
+ "type": "address"
173
+ },
174
+ {
175
+ "indexed": false,
176
+ "internalType": "bool",
177
+ "name": "isMain",
178
+ "type": "bool"
179
+ }
180
+ ],
181
+ "name": "FeedUpdated",
182
+ "type": "event"
183
+ },
184
+ {
185
+ "anonymous": false,
186
+ "inputs": [
187
+ {
188
+ "indexed": true,
189
+ "internalType": "address",
190
+ "name": "token",
191
+ "type": "address"
192
+ }
193
+ ],
194
+ "name": "FundsTransferred",
195
+ "type": "event"
196
+ },
197
+ {
198
+ "anonymous": false,
199
+ "inputs": [
200
+ {
201
+ "indexed": false,
202
+ "internalType": "uint64",
203
+ "name": "version",
204
+ "type": "uint64"
205
+ }
206
+ ],
207
+ "name": "Initialized",
208
+ "type": "event"
209
+ },
210
+ {
211
+ "anonymous": false,
212
+ "inputs": [
213
+ {
214
+ "indexed": true,
215
+ "internalType": "address",
216
+ "name": "previousOwner",
217
+ "type": "address"
218
+ },
219
+ {
220
+ "indexed": true,
221
+ "internalType": "address",
222
+ "name": "newOwner",
223
+ "type": "address"
224
+ }
225
+ ],
226
+ "name": "OwnershipTransferred",
227
+ "type": "event"
228
+ },
229
+ {
230
+ "anonymous": false,
231
+ "inputs": [
232
+ {
233
+ "indexed": false,
234
+ "internalType": "address",
235
+ "name": "account",
236
+ "type": "address"
237
+ }
238
+ ],
239
+ "name": "Paused",
240
+ "type": "event"
241
+ },
242
+ {
243
+ "anonymous": false,
244
+ "inputs": [
245
+ {
246
+ "indexed": false,
247
+ "internalType": "address",
248
+ "name": "addr",
249
+ "type": "address"
250
+ },
251
+ {
252
+ "indexed": false,
253
+ "internalType": "uint256",
254
+ "name": "share",
255
+ "type": "uint256"
256
+ },
257
+ {
258
+ "indexed": false,
259
+ "internalType": "bool",
260
+ "name": "isAdd",
261
+ "type": "bool"
262
+ }
263
+ ],
264
+ "name": "ReceiverChanged",
265
+ "type": "event"
266
+ },
267
+ {
268
+ "anonymous": false,
269
+ "inputs": [
270
+ {
271
+ "indexed": true,
272
+ "internalType": "bytes32",
273
+ "name": "role",
274
+ "type": "bytes32"
275
+ },
276
+ {
277
+ "indexed": true,
278
+ "internalType": "bytes32",
279
+ "name": "previousAdminRole",
280
+ "type": "bytes32"
281
+ },
282
+ {
283
+ "indexed": true,
284
+ "internalType": "bytes32",
285
+ "name": "newAdminRole",
286
+ "type": "bytes32"
287
+ }
288
+ ],
289
+ "name": "RoleAdminChanged",
290
+ "type": "event"
291
+ },
292
+ {
293
+ "anonymous": false,
294
+ "inputs": [
295
+ {
296
+ "indexed": true,
297
+ "internalType": "bytes32",
298
+ "name": "role",
299
+ "type": "bytes32"
300
+ },
301
+ {
302
+ "indexed": true,
303
+ "internalType": "address",
304
+ "name": "account",
305
+ "type": "address"
306
+ },
307
+ {
308
+ "indexed": true,
309
+ "internalType": "address",
310
+ "name": "sender",
311
+ "type": "address"
312
+ }
313
+ ],
314
+ "name": "RoleGranted",
315
+ "type": "event"
316
+ },
317
+ {
318
+ "anonymous": false,
319
+ "inputs": [
320
+ {
321
+ "indexed": true,
322
+ "internalType": "bytes32",
323
+ "name": "role",
324
+ "type": "bytes32"
325
+ },
326
+ {
327
+ "indexed": true,
328
+ "internalType": "address",
329
+ "name": "account",
330
+ "type": "address"
331
+ },
332
+ {
333
+ "indexed": true,
334
+ "internalType": "address",
335
+ "name": "sender",
336
+ "type": "address"
337
+ }
338
+ ],
339
+ "name": "RoleRevoked",
340
+ "type": "event"
341
+ },
342
+ {
343
+ "anonymous": false,
344
+ "inputs": [
345
+ {
346
+ "indexed": true,
347
+ "internalType": "uint256",
348
+ "name": "roundId",
349
+ "type": "uint256"
350
+ },
351
+ {
352
+ "indexed": false,
353
+ "internalType": "uint256",
354
+ "name": "price",
355
+ "type": "uint256"
356
+ }
357
+ ],
358
+ "name": "RoundCreated",
359
+ "type": "event"
360
+ },
361
+ {
362
+ "anonymous": false,
363
+ "inputs": [
364
+ {
365
+ "indexed": true,
366
+ "internalType": "uint256",
367
+ "name": "roundId",
368
+ "type": "uint256"
369
+ },
370
+ {
371
+ "indexed": false,
372
+ "internalType": "uint256",
373
+ "name": "sold",
374
+ "type": "uint256"
375
+ }
376
+ ],
377
+ "name": "RoundEnded",
378
+ "type": "event"
379
+ },
380
+ {
381
+ "anonymous": false,
382
+ "inputs": [
383
+ {
384
+ "indexed": true,
385
+ "internalType": "uint256",
386
+ "name": "roundId",
387
+ "type": "uint256"
388
+ }
389
+ ],
390
+ "name": "RoundStarted",
391
+ "type": "event"
392
+ },
393
+ {
394
+ "anonymous": false,
395
+ "inputs": [
396
+ {
397
+ "indexed": true,
398
+ "internalType": "uint256",
399
+ "name": "roundId",
400
+ "type": "uint256"
401
+ }
402
+ ],
403
+ "name": "RoundUpdated",
404
+ "type": "event"
405
+ },
406
+ {
407
+ "anonymous": false,
408
+ "inputs": [
409
+ {
410
+ "indexed": true,
411
+ "internalType": "uint256",
412
+ "name": "snapshotId",
413
+ "type": "uint256"
414
+ }
415
+ ],
416
+ "name": "SnapshotTaken",
417
+ "type": "event"
418
+ },
419
+ {
420
+ "anonymous": false,
421
+ "inputs": [
422
+ {
423
+ "indexed": true,
424
+ "internalType": "address",
425
+ "name": "token",
426
+ "type": "address"
427
+ }
428
+ ],
429
+ "name": "TokenAdded",
430
+ "type": "event"
431
+ },
432
+ {
433
+ "anonymous": false,
434
+ "inputs": [
435
+ {
436
+ "indexed": true,
437
+ "internalType": "address",
438
+ "name": "buyer",
439
+ "type": "address"
440
+ },
441
+ {
442
+ "indexed": true,
443
+ "internalType": "uint256",
444
+ "name": "orderId",
445
+ "type": "uint256"
446
+ }
447
+ ],
448
+ "name": "TokenClaimed",
449
+ "type": "event"
450
+ },
451
+ {
452
+ "anonymous": false,
453
+ "inputs": [
454
+ {
455
+ "indexed": true,
456
+ "internalType": "address",
457
+ "name": "buyer",
458
+ "type": "address"
459
+ },
460
+ {
461
+ "indexed": true,
462
+ "internalType": "uint256",
463
+ "name": "orderId",
464
+ "type": "uint256"
465
+ },
466
+ {
467
+ "indexed": false,
468
+ "internalType": "uint256",
469
+ "name": "amount",
470
+ "type": "uint256"
471
+ }
472
+ ],
473
+ "name": "TokenPurchased",
474
+ "type": "event"
475
+ },
476
+ {
477
+ "anonymous": false,
478
+ "inputs": [
479
+ {
480
+ "indexed": true,
481
+ "internalType": "address",
482
+ "name": "token",
483
+ "type": "address"
484
+ }
485
+ ],
486
+ "name": "TokenRemoved",
487
+ "type": "event"
488
+ },
489
+ {
490
+ "anonymous": false,
491
+ "inputs": [
492
+ {
493
+ "indexed": false,
494
+ "internalType": "address",
495
+ "name": "account",
496
+ "type": "address"
497
+ }
498
+ ],
499
+ "name": "Unpaused",
500
+ "type": "event"
501
+ },
502
+ {
503
+ "anonymous": false,
504
+ "inputs": [
505
+ {
506
+ "indexed": true,
507
+ "internalType": "address",
508
+ "name": "implementation",
509
+ "type": "address"
510
+ }
511
+ ],
512
+ "name": "Upgraded",
513
+ "type": "event"
514
+ },
515
+ {
516
+ "inputs": [],
517
+ "name": "DEFAULT_ADMIN_ROLE",
518
+ "outputs": [
519
+ {
520
+ "internalType": "bytes32",
521
+ "name": "",
522
+ "type": "bytes32"
523
+ }
524
+ ],
525
+ "stateMutability": "view",
526
+ "type": "function"
527
+ },
528
+ {
529
+ "inputs": [],
530
+ "name": "MANAGER_ROLE",
531
+ "outputs": [
532
+ {
533
+ "internalType": "bytes32",
534
+ "name": "",
535
+ "type": "bytes32"
536
+ }
537
+ ],
538
+ "stateMutability": "view",
539
+ "type": "function"
540
+ },
541
+ {
542
+ "inputs": [],
543
+ "name": "UPGRADE_INTERFACE_VERSION",
544
+ "outputs": [
545
+ {
546
+ "internalType": "string",
547
+ "name": "",
548
+ "type": "string"
549
+ }
550
+ ],
551
+ "stateMutability": "view",
552
+ "type": "function"
553
+ },
554
+ {
555
+ "inputs": [
556
+ {
557
+ "internalType": "address",
558
+ "name": "addr",
559
+ "type": "address"
560
+ },
561
+ {
562
+ "internalType": "uint256",
563
+ "name": "share",
564
+ "type": "uint256"
565
+ }
566
+ ],
567
+ "name": "addRcvr",
568
+ "outputs": [],
569
+ "stateMutability": "nonpayable",
570
+ "type": "function"
571
+ },
572
+ {
573
+ "inputs": [
574
+ {
575
+ "internalType": "address",
576
+ "name": "token",
577
+ "type": "address"
578
+ },
579
+ {
580
+ "internalType": "address",
581
+ "name": "priceFeed",
582
+ "type": "address"
583
+ },
584
+ {
585
+ "internalType": "address",
586
+ "name": "backupFeed",
587
+ "type": "address"
588
+ },
589
+ {
590
+ "internalType": "uint256",
591
+ "name": "backupPrice",
592
+ "type": "uint256"
593
+ }
594
+ ],
595
+ "name": "addToken",
596
+ "outputs": [],
597
+ "stateMutability": "nonpayable",
598
+ "type": "function"
599
+ },
600
+ {
601
+ "inputs": [],
602
+ "name": "autoCreateEnabled",
603
+ "outputs": [
604
+ {
605
+ "internalType": "bool",
606
+ "name": "",
607
+ "type": "bool"
608
+ }
609
+ ],
610
+ "stateMutability": "view",
611
+ "type": "function"
612
+ },
613
+ {
614
+ "inputs": [],
615
+ "name": "autoIncreaseEnabled",
616
+ "outputs": [
617
+ {
618
+ "internalType": "bool",
619
+ "name": "",
620
+ "type": "bool"
621
+ }
622
+ ],
623
+ "stateMutability": "view",
624
+ "type": "function"
625
+ },
626
+ {
627
+ "inputs": [],
628
+ "name": "autoIncreaseRate",
629
+ "outputs": [
630
+ {
631
+ "internalType": "uint256",
632
+ "name": "",
633
+ "type": "uint256"
634
+ }
635
+ ],
636
+ "stateMutability": "view",
637
+ "type": "function"
638
+ },
639
+ {
640
+ "inputs": [],
641
+ "name": "batchLimit",
642
+ "outputs": [
643
+ {
644
+ "internalType": "uint256",
645
+ "name": "",
646
+ "type": "uint256"
647
+ }
648
+ ],
649
+ "stateMutability": "view",
650
+ "type": "function"
651
+ },
652
+ {
653
+ "inputs": [],
654
+ "name": "buy",
655
+ "outputs": [],
656
+ "stateMutability": "payable",
657
+ "type": "function"
658
+ },
659
+ {
660
+ "inputs": [
661
+ {
662
+ "internalType": "address",
663
+ "name": "token",
664
+ "type": "address"
665
+ },
666
+ {
667
+ "internalType": "uint256",
668
+ "name": "amount",
669
+ "type": "uint256"
670
+ }
671
+ ],
672
+ "name": "buyWithToken",
673
+ "outputs": [],
674
+ "stateMutability": "nonpayable",
675
+ "type": "function"
676
+ },
677
+ {
678
+ "inputs": [
679
+ {
680
+ "internalType": "address",
681
+ "name": "newToken",
682
+ "type": "address"
683
+ }
684
+ ],
685
+ "name": "changeToken",
686
+ "outputs": [],
687
+ "stateMutability": "nonpayable",
688
+ "type": "function"
689
+ },
690
+ {
691
+ "inputs": [
692
+ {
693
+ "internalType": "uint256",
694
+ "name": "orderId",
695
+ "type": "uint256"
696
+ }
697
+ ],
698
+ "name": "claim",
699
+ "outputs": [],
700
+ "stateMutability": "nonpayable",
701
+ "type": "function"
702
+ },
703
+ {
704
+ "inputs": [
705
+ {
706
+ "internalType": "address",
707
+ "name": "buyer",
708
+ "type": "address"
709
+ }
710
+ ],
711
+ "name": "claimAll",
712
+ "outputs": [],
713
+ "stateMutability": "nonpayable",
714
+ "type": "function"
715
+ },
716
+ {
717
+ "inputs": [],
718
+ "name": "claimEnabled",
719
+ "outputs": [
720
+ {
721
+ "internalType": "bool",
722
+ "name": "",
723
+ "type": "bool"
724
+ }
725
+ ],
726
+ "stateMutability": "view",
727
+ "type": "function"
728
+ },
729
+ {
730
+ "inputs": [],
731
+ "name": "claimPeriod",
732
+ "outputs": [
733
+ {
734
+ "internalType": "uint256",
735
+ "name": "",
736
+ "type": "uint256"
737
+ }
738
+ ],
739
+ "stateMutability": "view",
740
+ "type": "function"
741
+ },
742
+ {
743
+ "inputs": [
744
+ {
745
+ "internalType": "uint256",
746
+ "name": "price",
747
+ "type": "uint256"
748
+ },
749
+ {
750
+ "internalType": "uint256",
751
+ "name": "priceUSD",
752
+ "type": "uint256"
753
+ },
754
+ {
755
+ "internalType": "uint256",
756
+ "name": "allocation",
757
+ "type": "uint256"
758
+ },
759
+ {
760
+ "internalType": "bool",
761
+ "name": "useUSD",
762
+ "type": "bool"
763
+ }
764
+ ],
765
+ "name": "createRound",
766
+ "outputs": [],
767
+ "stateMutability": "nonpayable",
768
+ "type": "function"
769
+ },
770
+ {
771
+ "inputs": [
772
+ {
773
+ "internalType": "uint256",
774
+ "name": "priceUSD",
775
+ "type": "uint256"
776
+ },
777
+ {
778
+ "internalType": "uint256",
779
+ "name": "allocation",
780
+ "type": "uint256"
781
+ }
782
+ ],
783
+ "name": "createUSDRound",
784
+ "outputs": [],
785
+ "stateMutability": "nonpayable",
786
+ "type": "function"
787
+ },
788
+ {
789
+ "inputs": [],
790
+ "name": "crossRoundPurchaseEnabled",
791
+ "outputs": [
792
+ {
793
+ "internalType": "bool",
794
+ "name": "",
795
+ "type": "bool"
796
+ }
797
+ ],
798
+ "stateMutability": "view",
799
+ "type": "function"
800
+ },
801
+ {
802
+ "inputs": [],
803
+ "name": "currentRound",
804
+ "outputs": [
805
+ {
806
+ "internalType": "uint256",
807
+ "name": "",
808
+ "type": "uint256"
809
+ }
810
+ ],
811
+ "stateMutability": "view",
812
+ "type": "function"
813
+ },
814
+ {
815
+ "inputs": [],
816
+ "name": "defaultAllocation",
817
+ "outputs": [
818
+ {
819
+ "internalType": "uint256",
820
+ "name": "",
821
+ "type": "uint256"
822
+ }
823
+ ],
824
+ "stateMutability": "view",
825
+ "type": "function"
826
+ },
827
+ {
828
+ "inputs": [],
829
+ "name": "defaultPriceUSD",
830
+ "outputs": [
831
+ {
832
+ "internalType": "uint256",
833
+ "name": "",
834
+ "type": "uint256"
835
+ }
836
+ ],
837
+ "stateMutability": "view",
838
+ "type": "function"
839
+ },
840
+ {
841
+ "inputs": [],
842
+ "name": "emergencyETH",
843
+ "outputs": [],
844
+ "stateMutability": "nonpayable",
845
+ "type": "function"
846
+ },
847
+ {
848
+ "inputs": [],
849
+ "name": "endRound",
850
+ "outputs": [],
851
+ "stateMutability": "nonpayable",
852
+ "type": "function"
853
+ },
854
+ {
855
+ "inputs": [],
856
+ "name": "ethBackupFeed",
857
+ "outputs": [
858
+ {
859
+ "internalType": "contract AggregatorV3Interface",
860
+ "name": "",
861
+ "type": "address"
862
+ }
863
+ ],
864
+ "stateMutability": "view",
865
+ "type": "function"
866
+ },
867
+ {
868
+ "inputs": [],
869
+ "name": "ethBackupPrice",
870
+ "outputs": [
871
+ {
872
+ "internalType": "uint256",
873
+ "name": "",
874
+ "type": "uint256"
875
+ }
876
+ ],
877
+ "stateMutability": "view",
878
+ "type": "function"
879
+ },
880
+ {
881
+ "inputs": [],
882
+ "name": "ethPriceFeed",
883
+ "outputs": [
884
+ {
885
+ "internalType": "contract AggregatorV3Interface",
886
+ "name": "",
887
+ "type": "address"
888
+ }
889
+ ],
890
+ "stateMutability": "view",
891
+ "type": "function"
892
+ },
893
+ {
894
+ "inputs": [],
895
+ "name": "ethThreshold",
896
+ "outputs": [
897
+ {
898
+ "internalType": "uint256",
899
+ "name": "",
900
+ "type": "uint256"
901
+ }
902
+ ],
903
+ "stateMutability": "view",
904
+ "type": "function"
905
+ },
906
+ {
907
+ "inputs": [],
908
+ "name": "gasLimit",
909
+ "outputs": [
910
+ {
911
+ "internalType": "uint256",
912
+ "name": "",
913
+ "type": "uint256"
914
+ }
915
+ ],
916
+ "stateMutability": "view",
917
+ "type": "function"
918
+ },
919
+ {
920
+ "inputs": [
921
+ {
922
+ "internalType": "address",
923
+ "name": "token",
924
+ "type": "address"
925
+ },
926
+ {
927
+ "internalType": "uint256",
928
+ "name": "amount",
929
+ "type": "uint256"
930
+ }
931
+ ],
932
+ "name": "getApproveInfo",
933
+ "outputs": [
934
+ {
935
+ "internalType": "address",
936
+ "name": "",
937
+ "type": "address"
938
+ },
939
+ {
940
+ "internalType": "uint256",
941
+ "name": "",
942
+ "type": "uint256"
943
+ }
944
+ ],
945
+ "stateMutability": "view",
946
+ "type": "function"
947
+ },
948
+ {
949
+ "inputs": [],
950
+ "name": "getETHPrice",
951
+ "outputs": [
952
+ {
953
+ "internalType": "uint256",
954
+ "name": "",
955
+ "type": "uint256"
956
+ }
957
+ ],
958
+ "stateMutability": "view",
959
+ "type": "function"
960
+ },
961
+ {
962
+ "inputs": [
963
+ {
964
+ "internalType": "address",
965
+ "name": "buyer",
966
+ "type": "address"
967
+ }
968
+ ],
969
+ "name": "getOrderCount",
970
+ "outputs": [
971
+ {
972
+ "internalType": "uint256",
973
+ "name": "",
974
+ "type": "uint256"
975
+ }
976
+ ],
977
+ "stateMutability": "view",
978
+ "type": "function"
979
+ },
980
+ {
981
+ "inputs": [
982
+ {
983
+ "internalType": "address",
984
+ "name": "buyer",
985
+ "type": "address"
986
+ },
987
+ {
988
+ "internalType": "uint256",
989
+ "name": "offset",
990
+ "type": "uint256"
991
+ },
992
+ {
993
+ "internalType": "uint256",
994
+ "name": "limit",
995
+ "type": "uint256"
996
+ }
997
+ ],
998
+ "name": "getOrderDetails",
999
+ "outputs": [
1000
+ {
1001
+ "components": [
1002
+ {
1003
+ "internalType": "uint256",
1004
+ "name": "orderId",
1005
+ "type": "uint256"
1006
+ },
1007
+ {
1008
+ "internalType": "uint256",
1009
+ "name": "amount",
1010
+ "type": "uint256"
1011
+ },
1012
+ {
1013
+ "internalType": "uint256",
1014
+ "name": "price",
1015
+ "type": "uint256"
1016
+ },
1017
+ {
1018
+ "internalType": "uint256",
1019
+ "name": "timestamp",
1020
+ "type": "uint256"
1021
+ },
1022
+ {
1023
+ "internalType": "bool",
1024
+ "name": "claimed",
1025
+ "type": "bool"
1026
+ }
1027
+ ],
1028
+ "internalType": "struct RoundPresaleV3.OrderDetail[]",
1029
+ "name": "",
1030
+ "type": "tuple[]"
1031
+ }
1032
+ ],
1033
+ "stateMutability": "view",
1034
+ "type": "function"
1035
+ },
1036
+ {
1037
+ "inputs": [
1038
+ {
1039
+ "internalType": "address",
1040
+ "name": "buyer",
1041
+ "type": "address"
1042
+ }
1043
+ ],
1044
+ "name": "getOrders",
1045
+ "outputs": [
1046
+ {
1047
+ "internalType": "uint256[]",
1048
+ "name": "",
1049
+ "type": "uint256[]"
1050
+ }
1051
+ ],
1052
+ "stateMutability": "view",
1053
+ "type": "function"
1054
+ },
1055
+ {
1056
+ "inputs": [
1057
+ {
1058
+ "internalType": "uint256",
1059
+ "name": "roundId",
1060
+ "type": "uint256"
1061
+ }
1062
+ ],
1063
+ "name": "getProgress",
1064
+ "outputs": [
1065
+ {
1066
+ "internalType": "uint256",
1067
+ "name": "",
1068
+ "type": "uint256"
1069
+ }
1070
+ ],
1071
+ "stateMutability": "view",
1072
+ "type": "function"
1073
+ },
1074
+ {
1075
+ "inputs": [],
1076
+ "name": "getRcvrCount",
1077
+ "outputs": [
1078
+ {
1079
+ "internalType": "uint256",
1080
+ "name": "",
1081
+ "type": "uint256"
1082
+ }
1083
+ ],
1084
+ "stateMutability": "view",
1085
+ "type": "function"
1086
+ },
1087
+ {
1088
+ "inputs": [
1089
+ {
1090
+ "internalType": "bytes32",
1091
+ "name": "role",
1092
+ "type": "bytes32"
1093
+ }
1094
+ ],
1095
+ "name": "getRoleAdmin",
1096
+ "outputs": [
1097
+ {
1098
+ "internalType": "bytes32",
1099
+ "name": "",
1100
+ "type": "bytes32"
1101
+ }
1102
+ ],
1103
+ "stateMutability": "view",
1104
+ "type": "function"
1105
+ },
1106
+ {
1107
+ "inputs": [
1108
+ {
1109
+ "internalType": "address",
1110
+ "name": "token",
1111
+ "type": "address"
1112
+ }
1113
+ ],
1114
+ "name": "getTokenPrice",
1115
+ "outputs": [
1116
+ {
1117
+ "internalType": "uint256",
1118
+ "name": "",
1119
+ "type": "uint256"
1120
+ }
1121
+ ],
1122
+ "stateMutability": "view",
1123
+ "type": "function"
1124
+ },
1125
+ {
1126
+ "inputs": [],
1127
+ "name": "getTokens",
1128
+ "outputs": [
1129
+ {
1130
+ "internalType": "address[]",
1131
+ "name": "",
1132
+ "type": "address[]"
1133
+ }
1134
+ ],
1135
+ "stateMutability": "view",
1136
+ "type": "function"
1137
+ },
1138
+ {
1139
+ "inputs": [
1140
+ {
1141
+ "internalType": "bytes32",
1142
+ "name": "role",
1143
+ "type": "bytes32"
1144
+ },
1145
+ {
1146
+ "internalType": "address",
1147
+ "name": "account",
1148
+ "type": "address"
1149
+ }
1150
+ ],
1151
+ "name": "grantRole",
1152
+ "outputs": [],
1153
+ "stateMutability": "nonpayable",
1154
+ "type": "function"
1155
+ },
1156
+ {
1157
+ "inputs": [
1158
+ {
1159
+ "internalType": "bytes32",
1160
+ "name": "role",
1161
+ "type": "bytes32"
1162
+ },
1163
+ {
1164
+ "internalType": "address",
1165
+ "name": "account",
1166
+ "type": "address"
1167
+ }
1168
+ ],
1169
+ "name": "hasRole",
1170
+ "outputs": [
1171
+ {
1172
+ "internalType": "bool",
1173
+ "name": "",
1174
+ "type": "bool"
1175
+ }
1176
+ ],
1177
+ "stateMutability": "view",
1178
+ "type": "function"
1179
+ },
1180
+ {
1181
+ "inputs": [
1182
+ {
1183
+ "internalType": "address",
1184
+ "name": "_saleToken",
1185
+ "type": "address"
1186
+ },
1187
+ {
1188
+ "internalType": "address",
1189
+ "name": "_ethPriceFeed",
1190
+ "type": "address"
1191
+ }
1192
+ ],
1193
+ "name": "init",
1194
+ "outputs": [],
1195
+ "stateMutability": "nonpayable",
1196
+ "type": "function"
1197
+ },
1198
+ {
1199
+ "inputs": [
1200
+ {
1201
+ "internalType": "uint256",
1202
+ "name": "_defaultAllocation",
1203
+ "type": "uint256"
1204
+ },
1205
+ {
1206
+ "internalType": "uint256",
1207
+ "name": "_defaultPriceUSD",
1208
+ "type": "uint256"
1209
+ },
1210
+ {
1211
+ "internalType": "uint256",
1212
+ "name": "autoIncreaseRateValue",
1213
+ "type": "uint256"
1214
+ }
1215
+ ],
1216
+ "name": "initV2",
1217
+ "outputs": [],
1218
+ "stateMutability": "nonpayable",
1219
+ "type": "function"
1220
+ },
1221
+ {
1222
+ "inputs": [],
1223
+ "name": "lastOrderId",
1224
+ "outputs": [
1225
+ {
1226
+ "internalType": "uint256",
1227
+ "name": "",
1228
+ "type": "uint256"
1229
+ }
1230
+ ],
1231
+ "stateMutability": "view",
1232
+ "type": "function"
1233
+ },
1234
+ {
1235
+ "inputs": [],
1236
+ "name": "lastPriceUpdateTime",
1237
+ "outputs": [
1238
+ {
1239
+ "internalType": "uint256",
1240
+ "name": "",
1241
+ "type": "uint256"
1242
+ }
1243
+ ],
1244
+ "stateMutability": "view",
1245
+ "type": "function"
1246
+ },
1247
+ {
1248
+ "inputs": [],
1249
+ "name": "lastRoundCheckTime",
1250
+ "outputs": [
1251
+ {
1252
+ "internalType": "uint256",
1253
+ "name": "",
1254
+ "type": "uint256"
1255
+ }
1256
+ ],
1257
+ "stateMutability": "view",
1258
+ "type": "function"
1259
+ },
1260
+ {
1261
+ "inputs": [],
1262
+ "name": "lastSnapshotTime",
1263
+ "outputs": [
1264
+ {
1265
+ "internalType": "uint256",
1266
+ "name": "",
1267
+ "type": "uint256"
1268
+ }
1269
+ ],
1270
+ "stateMutability": "view",
1271
+ "type": "function"
1272
+ },
1273
+ {
1274
+ "inputs": [],
1275
+ "name": "maxPriceDeviation",
1276
+ "outputs": [
1277
+ {
1278
+ "internalType": "uint256",
1279
+ "name": "",
1280
+ "type": "uint256"
1281
+ }
1282
+ ],
1283
+ "stateMutability": "view",
1284
+ "type": "function"
1285
+ },
1286
+ {
1287
+ "inputs": [],
1288
+ "name": "maxRound",
1289
+ "outputs": [
1290
+ {
1291
+ "internalType": "uint256",
1292
+ "name": "",
1293
+ "type": "uint256"
1294
+ }
1295
+ ],
1296
+ "stateMutability": "view",
1297
+ "type": "function"
1298
+ },
1299
+ {
1300
+ "inputs": [],
1301
+ "name": "minInvestment",
1302
+ "outputs": [
1303
+ {
1304
+ "internalType": "uint256",
1305
+ "name": "",
1306
+ "type": "uint256"
1307
+ }
1308
+ ],
1309
+ "stateMutability": "view",
1310
+ "type": "function"
1311
+ },
1312
+ {
1313
+ "inputs": [],
1314
+ "name": "opDelay",
1315
+ "outputs": [
1316
+ {
1317
+ "internalType": "uint256",
1318
+ "name": "",
1319
+ "type": "uint256"
1320
+ }
1321
+ ],
1322
+ "stateMutability": "view",
1323
+ "type": "function"
1324
+ },
1325
+ {
1326
+ "inputs": [
1327
+ {
1328
+ "internalType": "uint256",
1329
+ "name": "",
1330
+ "type": "uint256"
1331
+ }
1332
+ ],
1333
+ "name": "orders",
1334
+ "outputs": [
1335
+ {
1336
+ "internalType": "address",
1337
+ "name": "buyer",
1338
+ "type": "address"
1339
+ },
1340
+ {
1341
+ "internalType": "uint256",
1342
+ "name": "amount",
1343
+ "type": "uint256"
1344
+ },
1345
+ {
1346
+ "internalType": "uint256",
1347
+ "name": "price",
1348
+ "type": "uint256"
1349
+ },
1350
+ {
1351
+ "internalType": "uint256",
1352
+ "name": "timestamp",
1353
+ "type": "uint256"
1354
+ },
1355
+ {
1356
+ "internalType": "bool",
1357
+ "name": "claimed",
1358
+ "type": "bool"
1359
+ }
1360
+ ],
1361
+ "stateMutability": "view",
1362
+ "type": "function"
1363
+ },
1364
+ {
1365
+ "inputs": [],
1366
+ "name": "owner",
1367
+ "outputs": [
1368
+ {
1369
+ "internalType": "address",
1370
+ "name": "",
1371
+ "type": "address"
1372
+ }
1373
+ ],
1374
+ "stateMutability": "view",
1375
+ "type": "function"
1376
+ },
1377
+ {
1378
+ "inputs": [],
1379
+ "name": "pause",
1380
+ "outputs": [],
1381
+ "stateMutability": "nonpayable",
1382
+ "type": "function"
1383
+ },
1384
+ {
1385
+ "inputs": [],
1386
+ "name": "paused",
1387
+ "outputs": [
1388
+ {
1389
+ "internalType": "bool",
1390
+ "name": "",
1391
+ "type": "bool"
1392
+ }
1393
+ ],
1394
+ "stateMutability": "view",
1395
+ "type": "function"
1396
+ },
1397
+ {
1398
+ "inputs": [],
1399
+ "name": "pendingETH",
1400
+ "outputs": [
1401
+ {
1402
+ "internalType": "uint256",
1403
+ "name": "",
1404
+ "type": "uint256"
1405
+ }
1406
+ ],
1407
+ "stateMutability": "view",
1408
+ "type": "function"
1409
+ },
1410
+ {
1411
+ "inputs": [],
1412
+ "name": "priceUpdateInterval",
1413
+ "outputs": [
1414
+ {
1415
+ "internalType": "uint256",
1416
+ "name": "",
1417
+ "type": "uint256"
1418
+ }
1419
+ ],
1420
+ "stateMutability": "view",
1421
+ "type": "function"
1422
+ },
1423
+ {
1424
+ "inputs": [],
1425
+ "name": "proxiableUUID",
1426
+ "outputs": [
1427
+ {
1428
+ "internalType": "bytes32",
1429
+ "name": "",
1430
+ "type": "bytes32"
1431
+ }
1432
+ ],
1433
+ "stateMutability": "view",
1434
+ "type": "function"
1435
+ },
1436
+ {
1437
+ "inputs": [
1438
+ {
1439
+ "internalType": "uint256",
1440
+ "name": "",
1441
+ "type": "uint256"
1442
+ }
1443
+ ],
1444
+ "name": "receivers",
1445
+ "outputs": [
1446
+ {
1447
+ "internalType": "address",
1448
+ "name": "addr",
1449
+ "type": "address"
1450
+ },
1451
+ {
1452
+ "internalType": "uint256",
1453
+ "name": "share",
1454
+ "type": "uint256"
1455
+ }
1456
+ ],
1457
+ "stateMutability": "view",
1458
+ "type": "function"
1459
+ },
1460
+ {
1461
+ "inputs": [],
1462
+ "name": "renounceOwnership",
1463
+ "outputs": [],
1464
+ "stateMutability": "nonpayable",
1465
+ "type": "function"
1466
+ },
1467
+ {
1468
+ "inputs": [
1469
+ {
1470
+ "internalType": "bytes32",
1471
+ "name": "role",
1472
+ "type": "bytes32"
1473
+ },
1474
+ {
1475
+ "internalType": "address",
1476
+ "name": "callerConfirmation",
1477
+ "type": "address"
1478
+ }
1479
+ ],
1480
+ "name": "renounceRole",
1481
+ "outputs": [],
1482
+ "stateMutability": "nonpayable",
1483
+ "type": "function"
1484
+ },
1485
+ {
1486
+ "inputs": [],
1487
+ "name": "requiredApprovals",
1488
+ "outputs": [
1489
+ {
1490
+ "internalType": "uint256",
1491
+ "name": "",
1492
+ "type": "uint256"
1493
+ }
1494
+ ],
1495
+ "stateMutability": "view",
1496
+ "type": "function"
1497
+ },
1498
+ {
1499
+ "inputs": [
1500
+ {
1501
+ "internalType": "address",
1502
+ "name": "_saleToken",
1503
+ "type": "address"
1504
+ },
1505
+ {
1506
+ "internalType": "address",
1507
+ "name": "_ethPriceFeed",
1508
+ "type": "address"
1509
+ }
1510
+ ],
1511
+ "name": "reset",
1512
+ "outputs": [],
1513
+ "stateMutability": "nonpayable",
1514
+ "type": "function"
1515
+ },
1516
+ {
1517
+ "inputs": [
1518
+ {
1519
+ "internalType": "bytes32",
1520
+ "name": "role",
1521
+ "type": "bytes32"
1522
+ },
1523
+ {
1524
+ "internalType": "address",
1525
+ "name": "account",
1526
+ "type": "address"
1527
+ }
1528
+ ],
1529
+ "name": "revokeRole",
1530
+ "outputs": [],
1531
+ "stateMutability": "nonpayable",
1532
+ "type": "function"
1533
+ },
1534
+ {
1535
+ "inputs": [
1536
+ {
1537
+ "internalType": "address",
1538
+ "name": "addr",
1539
+ "type": "address"
1540
+ }
1541
+ ],
1542
+ "name": "rmRcvr",
1543
+ "outputs": [],
1544
+ "stateMutability": "nonpayable",
1545
+ "type": "function"
1546
+ },
1547
+ {
1548
+ "inputs": [
1549
+ {
1550
+ "internalType": "address",
1551
+ "name": "token",
1552
+ "type": "address"
1553
+ }
1554
+ ],
1555
+ "name": "rmToken",
1556
+ "outputs": [],
1557
+ "stateMutability": "nonpayable",
1558
+ "type": "function"
1559
+ },
1560
+ {
1561
+ "inputs": [],
1562
+ "name": "roundDuration",
1563
+ "outputs": [
1564
+ {
1565
+ "internalType": "uint256",
1566
+ "name": "",
1567
+ "type": "uint256"
1568
+ }
1569
+ ],
1570
+ "stateMutability": "view",
1571
+ "type": "function"
1572
+ },
1573
+ {
1574
+ "inputs": [
1575
+ {
1576
+ "internalType": "uint256",
1577
+ "name": "",
1578
+ "type": "uint256"
1579
+ }
1580
+ ],
1581
+ "name": "rounds",
1582
+ "outputs": [
1583
+ {
1584
+ "internalType": "uint256",
1585
+ "name": "price",
1586
+ "type": "uint256"
1587
+ },
1588
+ {
1589
+ "internalType": "uint256",
1590
+ "name": "priceUSD",
1591
+ "type": "uint256"
1592
+ },
1593
+ {
1594
+ "internalType": "uint256",
1595
+ "name": "allocation",
1596
+ "type": "uint256"
1597
+ },
1598
+ {
1599
+ "internalType": "uint256",
1600
+ "name": "sold",
1601
+ "type": "uint256"
1602
+ },
1603
+ {
1604
+ "internalType": "uint256",
1605
+ "name": "startTime",
1606
+ "type": "uint256"
1607
+ },
1608
+ {
1609
+ "internalType": "uint256",
1610
+ "name": "endTime",
1611
+ "type": "uint256"
1612
+ },
1613
+ {
1614
+ "internalType": "bool",
1615
+ "name": "active",
1616
+ "type": "bool"
1617
+ },
1618
+ {
1619
+ "internalType": "bool",
1620
+ "name": "useUSDPrice",
1621
+ "type": "bool"
1622
+ }
1623
+ ],
1624
+ "stateMutability": "view",
1625
+ "type": "function"
1626
+ },
1627
+ {
1628
+ "inputs": [],
1629
+ "name": "saleToken",
1630
+ "outputs": [
1631
+ {
1632
+ "internalType": "contract IERC20Upgradeable",
1633
+ "name": "",
1634
+ "type": "address"
1635
+ }
1636
+ ],
1637
+ "stateMutability": "view",
1638
+ "type": "function"
1639
+ },
1640
+ {
1641
+ "inputs": [
1642
+ {
1643
+ "internalType": "uint256",
1644
+ "name": "allocation",
1645
+ "type": "uint256"
1646
+ }
1647
+ ],
1648
+ "name": "setAlloc",
1649
+ "outputs": [],
1650
+ "stateMutability": "nonpayable",
1651
+ "type": "function"
1652
+ },
1653
+ {
1654
+ "inputs": [
1655
+ {
1656
+ "internalType": "uint256",
1657
+ "name": "duration",
1658
+ "type": "uint256"
1659
+ }
1660
+ ],
1661
+ "name": "setDuration",
1662
+ "outputs": [],
1663
+ "stateMutability": "nonpayable",
1664
+ "type": "function"
1665
+ },
1666
+ {
1667
+ "inputs": [
1668
+ {
1669
+ "internalType": "uint256",
1670
+ "name": "threshold",
1671
+ "type": "uint256"
1672
+ }
1673
+ ],
1674
+ "name": "setETHThreshold",
1675
+ "outputs": [],
1676
+ "stateMutability": "nonpayable",
1677
+ "type": "function"
1678
+ },
1679
+ {
1680
+ "inputs": [
1681
+ {
1682
+ "internalType": "uint256",
1683
+ "name": "interval",
1684
+ "type": "uint256"
1685
+ }
1686
+ ],
1687
+ "name": "setInterval",
1688
+ "outputs": [],
1689
+ "stateMutability": "nonpayable",
1690
+ "type": "function"
1691
+ },
1692
+ {
1693
+ "inputs": [
1694
+ {
1695
+ "internalType": "uint256",
1696
+ "name": "max",
1697
+ "type": "uint256"
1698
+ }
1699
+ ],
1700
+ "name": "setMax",
1701
+ "outputs": [],
1702
+ "stateMutability": "nonpayable",
1703
+ "type": "function"
1704
+ },
1705
+ {
1706
+ "inputs": [
1707
+ {
1708
+ "internalType": "uint256",
1709
+ "name": "amount",
1710
+ "type": "uint256"
1711
+ }
1712
+ ],
1713
+ "name": "setMin",
1714
+ "outputs": [],
1715
+ "stateMutability": "nonpayable",
1716
+ "type": "function"
1717
+ },
1718
+ {
1719
+ "inputs": [
1720
+ {
1721
+ "internalType": "uint256",
1722
+ "name": "priceUSD",
1723
+ "type": "uint256"
1724
+ }
1725
+ ],
1726
+ "name": "setPrice",
1727
+ "outputs": [],
1728
+ "stateMutability": "nonpayable",
1729
+ "type": "function"
1730
+ },
1731
+ {
1732
+ "inputs": [
1733
+ {
1734
+ "internalType": "uint256",
1735
+ "name": "rate",
1736
+ "type": "uint256"
1737
+ }
1738
+ ],
1739
+ "name": "setRate",
1740
+ "outputs": [],
1741
+ "stateMutability": "nonpayable",
1742
+ "type": "function"
1743
+ },
1744
+ {
1745
+ "inputs": [
1746
+ {
1747
+ "internalType": "address",
1748
+ "name": "token",
1749
+ "type": "address"
1750
+ },
1751
+ {
1752
+ "internalType": "uint256",
1753
+ "name": "threshold",
1754
+ "type": "uint256"
1755
+ }
1756
+ ],
1757
+ "name": "setTokenThreshold",
1758
+ "outputs": [],
1759
+ "stateMutability": "nonpayable",
1760
+ "type": "function"
1761
+ },
1762
+ {
1763
+ "inputs": [],
1764
+ "name": "snapshot",
1765
+ "outputs": [],
1766
+ "stateMutability": "nonpayable",
1767
+ "type": "function"
1768
+ },
1769
+ {
1770
+ "inputs": [],
1771
+ "name": "snapshotCount",
1772
+ "outputs": [
1773
+ {
1774
+ "internalType": "uint256",
1775
+ "name": "",
1776
+ "type": "uint256"
1777
+ }
1778
+ ],
1779
+ "stateMutability": "view",
1780
+ "type": "function"
1781
+ },
1782
+ {
1783
+ "inputs": [],
1784
+ "name": "snapshotInterval",
1785
+ "outputs": [
1786
+ {
1787
+ "internalType": "uint256",
1788
+ "name": "",
1789
+ "type": "uint256"
1790
+ }
1791
+ ],
1792
+ "stateMutability": "view",
1793
+ "type": "function"
1794
+ },
1795
+ {
1796
+ "inputs": [
1797
+ {
1798
+ "internalType": "uint256",
1799
+ "name": "",
1800
+ "type": "uint256"
1801
+ }
1802
+ ],
1803
+ "name": "snapshots",
1804
+ "outputs": [
1805
+ {
1806
+ "internalType": "uint256",
1807
+ "name": "timestamp",
1808
+ "type": "uint256"
1809
+ },
1810
+ {
1811
+ "internalType": "uint256",
1812
+ "name": "balance",
1813
+ "type": "uint256"
1814
+ }
1815
+ ],
1816
+ "stateMutability": "view",
1817
+ "type": "function"
1818
+ },
1819
+ {
1820
+ "inputs": [
1821
+ {
1822
+ "internalType": "uint256",
1823
+ "name": "roundId",
1824
+ "type": "uint256"
1825
+ }
1826
+ ],
1827
+ "name": "startRound",
1828
+ "outputs": [],
1829
+ "stateMutability": "nonpayable",
1830
+ "type": "function"
1831
+ },
1832
+ {
1833
+ "inputs": [
1834
+ {
1835
+ "internalType": "bytes4",
1836
+ "name": "interfaceId",
1837
+ "type": "bytes4"
1838
+ }
1839
+ ],
1840
+ "name": "supportsInterface",
1841
+ "outputs": [
1842
+ {
1843
+ "internalType": "bool",
1844
+ "name": "",
1845
+ "type": "bool"
1846
+ }
1847
+ ],
1848
+ "stateMutability": "view",
1849
+ "type": "function"
1850
+ },
1851
+ {
1852
+ "inputs": [
1853
+ {
1854
+ "internalType": "bool",
1855
+ "name": "autoIncrease",
1856
+ "type": "bool"
1857
+ },
1858
+ {
1859
+ "internalType": "bool",
1860
+ "name": "autoCreate",
1861
+ "type": "bool"
1862
+ }
1863
+ ],
1864
+ "name": "toggleAuto",
1865
+ "outputs": [],
1866
+ "stateMutability": "nonpayable",
1867
+ "type": "function"
1868
+ },
1869
+ {
1870
+ "inputs": [
1871
+ {
1872
+ "internalType": "bool",
1873
+ "name": "enabled",
1874
+ "type": "bool"
1875
+ }
1876
+ ],
1877
+ "name": "toggleClaim",
1878
+ "outputs": [],
1879
+ "stateMutability": "nonpayable",
1880
+ "type": "function"
1881
+ },
1882
+ {
1883
+ "inputs": [
1884
+ {
1885
+ "internalType": "bool",
1886
+ "name": "enabled",
1887
+ "type": "bool"
1888
+ }
1889
+ ],
1890
+ "name": "toggleCross",
1891
+ "outputs": [],
1892
+ "stateMutability": "nonpayable",
1893
+ "type": "function"
1894
+ },
1895
+ {
1896
+ "inputs": [
1897
+ {
1898
+ "internalType": "uint256",
1899
+ "name": "",
1900
+ "type": "uint256"
1901
+ }
1902
+ ],
1903
+ "name": "tokenList",
1904
+ "outputs": [
1905
+ {
1906
+ "internalType": "address",
1907
+ "name": "",
1908
+ "type": "address"
1909
+ }
1910
+ ],
1911
+ "stateMutability": "view",
1912
+ "type": "function"
1913
+ },
1914
+ {
1915
+ "inputs": [
1916
+ {
1917
+ "internalType": "address",
1918
+ "name": "",
1919
+ "type": "address"
1920
+ }
1921
+ ],
1922
+ "name": "tokens",
1923
+ "outputs": [
1924
+ {
1925
+ "internalType": "uint8",
1926
+ "name": "decimals",
1927
+ "type": "uint8"
1928
+ },
1929
+ {
1930
+ "internalType": "bool",
1931
+ "name": "enabled",
1932
+ "type": "bool"
1933
+ },
1934
+ {
1935
+ "internalType": "address",
1936
+ "name": "priceFeed",
1937
+ "type": "address"
1938
+ },
1939
+ {
1940
+ "internalType": "address",
1941
+ "name": "backupFeed",
1942
+ "type": "address"
1943
+ },
1944
+ {
1945
+ "internalType": "uint256",
1946
+ "name": "backupPrice",
1947
+ "type": "uint256"
1948
+ },
1949
+ {
1950
+ "internalType": "uint256",
1951
+ "name": "minInvestment",
1952
+ "type": "uint256"
1953
+ },
1954
+ {
1955
+ "internalType": "uint256",
1956
+ "name": "threshold",
1957
+ "type": "uint256"
1958
+ }
1959
+ ],
1960
+ "stateMutability": "view",
1961
+ "type": "function"
1962
+ },
1963
+ {
1964
+ "inputs": [],
1965
+ "name": "totalDistributed",
1966
+ "outputs": [
1967
+ {
1968
+ "internalType": "uint256",
1969
+ "name": "",
1970
+ "type": "uint256"
1971
+ }
1972
+ ],
1973
+ "stateMutability": "view",
1974
+ "type": "function"
1975
+ },
1976
+ {
1977
+ "inputs": [],
1978
+ "name": "totalRaisedETH",
1979
+ "outputs": [
1980
+ {
1981
+ "internalType": "uint256",
1982
+ "name": "",
1983
+ "type": "uint256"
1984
+ }
1985
+ ],
1986
+ "stateMutability": "view",
1987
+ "type": "function"
1988
+ },
1989
+ {
1990
+ "inputs": [],
1991
+ "name": "totalRaisedUSD",
1992
+ "outputs": [
1993
+ {
1994
+ "internalType": "uint256",
1995
+ "name": "",
1996
+ "type": "uint256"
1997
+ }
1998
+ ],
1999
+ "stateMutability": "view",
2000
+ "type": "function"
2001
+ },
2002
+ {
2003
+ "inputs": [],
2004
+ "name": "totalRounds",
2005
+ "outputs": [
2006
+ {
2007
+ "internalType": "uint256",
2008
+ "name": "",
2009
+ "type": "uint256"
2010
+ }
2011
+ ],
2012
+ "stateMutability": "view",
2013
+ "type": "function"
2014
+ },
2015
+ {
2016
+ "inputs": [],
2017
+ "name": "totalShares",
2018
+ "outputs": [
2019
+ {
2020
+ "internalType": "uint256",
2021
+ "name": "",
2022
+ "type": "uint256"
2023
+ }
2024
+ ],
2025
+ "stateMutability": "view",
2026
+ "type": "function"
2027
+ },
2028
+ {
2029
+ "inputs": [],
2030
+ "name": "transferETH",
2031
+ "outputs": [],
2032
+ "stateMutability": "nonpayable",
2033
+ "type": "function"
2034
+ },
2035
+ {
2036
+ "inputs": [
2037
+ {
2038
+ "internalType": "address",
2039
+ "name": "newOwner",
2040
+ "type": "address"
2041
+ }
2042
+ ],
2043
+ "name": "transferOwnership",
2044
+ "outputs": [],
2045
+ "stateMutability": "nonpayable",
2046
+ "type": "function"
2047
+ },
2048
+ {
2049
+ "inputs": [
2050
+ {
2051
+ "internalType": "address",
2052
+ "name": "token",
2053
+ "type": "address"
2054
+ }
2055
+ ],
2056
+ "name": "transferToken",
2057
+ "outputs": [],
2058
+ "stateMutability": "nonpayable",
2059
+ "type": "function"
2060
+ },
2061
+ {
2062
+ "inputs": [],
2063
+ "name": "unpause",
2064
+ "outputs": [],
2065
+ "stateMutability": "nonpayable",
2066
+ "type": "function"
2067
+ },
2068
+ {
2069
+ "inputs": [
2070
+ {
2071
+ "internalType": "address",
2072
+ "name": "token",
2073
+ "type": "address"
2074
+ },
2075
+ {
2076
+ "internalType": "address",
2077
+ "name": "newFeed",
2078
+ "type": "address"
2079
+ }
2080
+ ],
2081
+ "name": "updBackupFeed",
2082
+ "outputs": [],
2083
+ "stateMutability": "nonpayable",
2084
+ "type": "function"
2085
+ },
2086
+ {
2087
+ "inputs": [
2088
+ {
2089
+ "internalType": "address",
2090
+ "name": "token",
2091
+ "type": "address"
2092
+ },
2093
+ {
2094
+ "internalType": "uint256",
2095
+ "name": "newPrice",
2096
+ "type": "uint256"
2097
+ }
2098
+ ],
2099
+ "name": "updBackupPrice",
2100
+ "outputs": [],
2101
+ "stateMutability": "nonpayable",
2102
+ "type": "function"
2103
+ },
2104
+ {
2105
+ "inputs": [],
2106
+ "name": "updCheckTime",
2107
+ "outputs": [],
2108
+ "stateMutability": "nonpayable",
2109
+ "type": "function"
2110
+ },
2111
+ {
2112
+ "inputs": [
2113
+ {
2114
+ "internalType": "address",
2115
+ "name": "newFeed",
2116
+ "type": "address"
2117
+ }
2118
+ ],
2119
+ "name": "updETHBFeed",
2120
+ "outputs": [],
2121
+ "stateMutability": "nonpayable",
2122
+ "type": "function"
2123
+ },
2124
+ {
2125
+ "inputs": [
2126
+ {
2127
+ "internalType": "uint256",
2128
+ "name": "price",
2129
+ "type": "uint256"
2130
+ }
2131
+ ],
2132
+ "name": "updETHBPrice",
2133
+ "outputs": [],
2134
+ "stateMutability": "nonpayable",
2135
+ "type": "function"
2136
+ },
2137
+ {
2138
+ "inputs": [
2139
+ {
2140
+ "internalType": "address",
2141
+ "name": "newFeed",
2142
+ "type": "address"
2143
+ }
2144
+ ],
2145
+ "name": "updETHFeed",
2146
+ "outputs": [],
2147
+ "stateMutability": "nonpayable",
2148
+ "type": "function"
2149
+ },
2150
+ {
2151
+ "inputs": [
2152
+ {
2153
+ "internalType": "address",
2154
+ "name": "addr",
2155
+ "type": "address"
2156
+ },
2157
+ {
2158
+ "internalType": "uint256",
2159
+ "name": "newShare",
2160
+ "type": "uint256"
2161
+ }
2162
+ ],
2163
+ "name": "updRcvr",
2164
+ "outputs": [],
2165
+ "stateMutability": "nonpayable",
2166
+ "type": "function"
2167
+ },
2168
+ {
2169
+ "inputs": [
2170
+ {
2171
+ "internalType": "uint256",
2172
+ "name": "roundId",
2173
+ "type": "uint256"
2174
+ },
2175
+ {
2176
+ "internalType": "uint256",
2177
+ "name": "price",
2178
+ "type": "uint256"
2179
+ },
2180
+ {
2181
+ "internalType": "uint256",
2182
+ "name": "priceUSD",
2183
+ "type": "uint256"
2184
+ },
2185
+ {
2186
+ "internalType": "uint256",
2187
+ "name": "allocation",
2188
+ "type": "uint256"
2189
+ },
2190
+ {
2191
+ "internalType": "bool",
2192
+ "name": "useUSD",
2193
+ "type": "bool"
2194
+ }
2195
+ ],
2196
+ "name": "updRound",
2197
+ "outputs": [],
2198
+ "stateMutability": "nonpayable",
2199
+ "type": "function"
2200
+ },
2201
+ {
2202
+ "inputs": [
2203
+ {
2204
+ "internalType": "address",
2205
+ "name": "newImplementation",
2206
+ "type": "address"
2207
+ },
2208
+ {
2209
+ "internalType": "bytes",
2210
+ "name": "data",
2211
+ "type": "bytes"
2212
+ }
2213
+ ],
2214
+ "name": "upgradeToAndCall",
2215
+ "outputs": [],
2216
+ "stateMutability": "payable",
2217
+ "type": "function"
2218
+ },
2219
+ {
2220
+ "inputs": [
2221
+ {
2222
+ "internalType": "address",
2223
+ "name": "",
2224
+ "type": "address"
2225
+ },
2226
+ {
2227
+ "internalType": "uint256",
2228
+ "name": "",
2229
+ "type": "uint256"
2230
+ }
2231
+ ],
2232
+ "name": "userOrders",
2233
+ "outputs": [
2234
+ {
2235
+ "internalType": "uint256",
2236
+ "name": "",
2237
+ "type": "uint256"
2238
+ }
2239
+ ],
2240
+ "stateMutability": "view",
2241
+ "type": "function"
2242
+ },
2243
+ {
2244
+ "inputs": [],
2245
+ "name": "votePeriod",
2246
+ "outputs": [
2247
+ {
2248
+ "internalType": "uint256",
2249
+ "name": "",
2250
+ "type": "uint256"
2251
+ }
2252
+ ],
2253
+ "stateMutability": "view",
2254
+ "type": "function"
2255
+ },
2256
+ {
2257
+ "stateMutability": "payable",
2258
+ "type": "receive"
2259
+ }
2260
+ ];
2261
+ /**
2262
+ * RoundPresaleV3_json Contract Class
2263
+ *
2264
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
2265
+ *
2266
+ * @example
2267
+ * ```typescript
2268
+ * import { createPublicClient, createWalletClient, http } from 'viem';
2269
+ * import { mainnet } from 'viem/chains';
2270
+ * import { RoundPresaleV3_json } from 'RoundPresaleV3_json';
2271
+ *
2272
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
2273
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
2274
+ *
2275
+ * const contract = new RoundPresaleV3_json('0x...', { publicClient, walletClient });
2276
+ *
2277
+ * // Read functions
2278
+ * const result = await contract.balanceOf('0x...');
2279
+ *
2280
+ * // Write functions
2281
+ * const hash = await contract.transfer('0x...', 1000n);
2282
+ *
2283
+ * // Simulate transactions (dry-run)
2284
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
2285
+ * console.log('Gas estimate:', simulation.request.gas);
2286
+ *
2287
+ * // Watch events
2288
+ * const unwatch = contract.watch.Transfer((event) => {
2289
+ * console.log('Transfer event:', event);
2290
+ * });
2291
+ * ```
2292
+ */
2293
+ class RoundPresaleV3_json {
2294
+ constructor(address, clients) {
2295
+ this.contractAddress = address;
2296
+ this.publicClient = clients.publicClient;
2297
+ this.contract = (0, viem_1.getContract)({
2298
+ address,
2299
+ abi: exports.RoundPresaleV3_jsonAbi,
2300
+ client: {
2301
+ public: clients.publicClient,
2302
+ wallet: clients.walletClient,
2303
+ },
2304
+ });
2305
+ }
2306
+ /**
2307
+ * Get the contract address
2308
+ */
2309
+ get address() {
2310
+ return this.contractAddress;
2311
+ }
2312
+ /**
2313
+ * Get the underlying viem contract instance
2314
+ */
2315
+ getContract() {
2316
+ return this.contract;
2317
+ }
2318
+ /**
2319
+ * DEFAULT_ADMIN_ROLE
2320
+ * view
2321
+ */
2322
+ async DEFAULT_ADMIN_ROLE() {
2323
+ return this.contract.read.DEFAULT_ADMIN_ROLE();
2324
+ }
2325
+ /**
2326
+ * MANAGER_ROLE
2327
+ * view
2328
+ */
2329
+ async MANAGER_ROLE() {
2330
+ return this.contract.read.MANAGER_ROLE();
2331
+ }
2332
+ /**
2333
+ * UPGRADE_INTERFACE_VERSION
2334
+ * view
2335
+ */
2336
+ async UPGRADE_INTERFACE_VERSION() {
2337
+ return this.contract.read.UPGRADE_INTERFACE_VERSION();
2338
+ }
2339
+ /**
2340
+ * autoCreateEnabled
2341
+ * view
2342
+ */
2343
+ async autoCreateEnabled() {
2344
+ return this.contract.read.autoCreateEnabled();
2345
+ }
2346
+ /**
2347
+ * autoIncreaseEnabled
2348
+ * view
2349
+ */
2350
+ async autoIncreaseEnabled() {
2351
+ return this.contract.read.autoIncreaseEnabled();
2352
+ }
2353
+ /**
2354
+ * autoIncreaseRate
2355
+ * view
2356
+ */
2357
+ async autoIncreaseRate() {
2358
+ return this.contract.read.autoIncreaseRate();
2359
+ }
2360
+ /**
2361
+ * batchLimit
2362
+ * view
2363
+ */
2364
+ async batchLimit() {
2365
+ return this.contract.read.batchLimit();
2366
+ }
2367
+ /**
2368
+ * claimEnabled
2369
+ * view
2370
+ */
2371
+ async claimEnabled() {
2372
+ return this.contract.read.claimEnabled();
2373
+ }
2374
+ /**
2375
+ * claimPeriod
2376
+ * view
2377
+ */
2378
+ async claimPeriod() {
2379
+ return this.contract.read.claimPeriod();
2380
+ }
2381
+ /**
2382
+ * crossRoundPurchaseEnabled
2383
+ * view
2384
+ */
2385
+ async crossRoundPurchaseEnabled() {
2386
+ return this.contract.read.crossRoundPurchaseEnabled();
2387
+ }
2388
+ /**
2389
+ * currentRound
2390
+ * view
2391
+ */
2392
+ async currentRound() {
2393
+ return this.contract.read.currentRound();
2394
+ }
2395
+ /**
2396
+ * defaultAllocation
2397
+ * view
2398
+ */
2399
+ async defaultAllocation() {
2400
+ return this.contract.read.defaultAllocation();
2401
+ }
2402
+ /**
2403
+ * defaultPriceUSD
2404
+ * view
2405
+ */
2406
+ async defaultPriceUSD() {
2407
+ return this.contract.read.defaultPriceUSD();
2408
+ }
2409
+ /**
2410
+ * ethBackupFeed
2411
+ * view
2412
+ */
2413
+ async ethBackupFeed() {
2414
+ return this.contract.read.ethBackupFeed();
2415
+ }
2416
+ /**
2417
+ * ethBackupPrice
2418
+ * view
2419
+ */
2420
+ async ethBackupPrice() {
2421
+ return this.contract.read.ethBackupPrice();
2422
+ }
2423
+ /**
2424
+ * ethPriceFeed
2425
+ * view
2426
+ */
2427
+ async ethPriceFeed() {
2428
+ return this.contract.read.ethPriceFeed();
2429
+ }
2430
+ /**
2431
+ * ethThreshold
2432
+ * view
2433
+ */
2434
+ async ethThreshold() {
2435
+ return this.contract.read.ethThreshold();
2436
+ }
2437
+ /**
2438
+ * gasLimit
2439
+ * view
2440
+ */
2441
+ async gasLimit() {
2442
+ return this.contract.read.gasLimit();
2443
+ }
2444
+ /**
2445
+ * getApproveInfo
2446
+ * view
2447
+ */
2448
+ async getApproveInfo(token, amount) {
2449
+ return this.contract.read.getApproveInfo([token, amount]);
2450
+ }
2451
+ /**
2452
+ * getETHPrice
2453
+ * view
2454
+ */
2455
+ async getETHPrice() {
2456
+ return this.contract.read.getETHPrice();
2457
+ }
2458
+ /**
2459
+ * getOrderCount
2460
+ * view
2461
+ */
2462
+ async getOrderCount(buyer) {
2463
+ return this.contract.read.getOrderCount([buyer]);
2464
+ }
2465
+ /**
2466
+ * getOrderDetails
2467
+ * view
2468
+ */
2469
+ async getOrderDetails(buyer, offset, limit) {
2470
+ return this.contract.read.getOrderDetails([buyer, offset, limit]);
2471
+ }
2472
+ /**
2473
+ * getOrders
2474
+ * view
2475
+ */
2476
+ async getOrders(buyer) {
2477
+ return this.contract.read.getOrders([buyer]);
2478
+ }
2479
+ /**
2480
+ * getProgress
2481
+ * view
2482
+ */
2483
+ async getProgress(roundId) {
2484
+ return this.contract.read.getProgress([roundId]);
2485
+ }
2486
+ /**
2487
+ * getRcvrCount
2488
+ * view
2489
+ */
2490
+ async getRcvrCount() {
2491
+ return this.contract.read.getRcvrCount();
2492
+ }
2493
+ /**
2494
+ * getRoleAdmin
2495
+ * view
2496
+ */
2497
+ async getRoleAdmin(role) {
2498
+ return this.contract.read.getRoleAdmin([role]);
2499
+ }
2500
+ /**
2501
+ * getTokenPrice
2502
+ * view
2503
+ */
2504
+ async getTokenPrice(token) {
2505
+ return this.contract.read.getTokenPrice([token]);
2506
+ }
2507
+ /**
2508
+ * getTokens
2509
+ * view
2510
+ */
2511
+ async getTokens() {
2512
+ return this.contract.read.getTokens();
2513
+ }
2514
+ /**
2515
+ * hasRole
2516
+ * view
2517
+ */
2518
+ async hasRole(role, account) {
2519
+ return this.contract.read.hasRole([role, account]);
2520
+ }
2521
+ /**
2522
+ * lastOrderId
2523
+ * view
2524
+ */
2525
+ async lastOrderId() {
2526
+ return this.contract.read.lastOrderId();
2527
+ }
2528
+ /**
2529
+ * lastPriceUpdateTime
2530
+ * view
2531
+ */
2532
+ async lastPriceUpdateTime() {
2533
+ return this.contract.read.lastPriceUpdateTime();
2534
+ }
2535
+ /**
2536
+ * lastRoundCheckTime
2537
+ * view
2538
+ */
2539
+ async lastRoundCheckTime() {
2540
+ return this.contract.read.lastRoundCheckTime();
2541
+ }
2542
+ /**
2543
+ * lastSnapshotTime
2544
+ * view
2545
+ */
2546
+ async lastSnapshotTime() {
2547
+ return this.contract.read.lastSnapshotTime();
2548
+ }
2549
+ /**
2550
+ * maxPriceDeviation
2551
+ * view
2552
+ */
2553
+ async maxPriceDeviation() {
2554
+ return this.contract.read.maxPriceDeviation();
2555
+ }
2556
+ /**
2557
+ * maxRound
2558
+ * view
2559
+ */
2560
+ async maxRound() {
2561
+ return this.contract.read.maxRound();
2562
+ }
2563
+ /**
2564
+ * minInvestment
2565
+ * view
2566
+ */
2567
+ async minInvestment() {
2568
+ return this.contract.read.minInvestment();
2569
+ }
2570
+ /**
2571
+ * opDelay
2572
+ * view
2573
+ */
2574
+ async opDelay() {
2575
+ return this.contract.read.opDelay();
2576
+ }
2577
+ /**
2578
+ * orders
2579
+ * view
2580
+ */
2581
+ async orders(arg0) {
2582
+ return this.contract.read.orders([arg0]);
2583
+ }
2584
+ /**
2585
+ * owner
2586
+ * view
2587
+ */
2588
+ async owner() {
2589
+ return this.contract.read.owner();
2590
+ }
2591
+ /**
2592
+ * paused
2593
+ * view
2594
+ */
2595
+ async paused() {
2596
+ return this.contract.read.paused();
2597
+ }
2598
+ /**
2599
+ * pendingETH
2600
+ * view
2601
+ */
2602
+ async pendingETH() {
2603
+ return this.contract.read.pendingETH();
2604
+ }
2605
+ /**
2606
+ * priceUpdateInterval
2607
+ * view
2608
+ */
2609
+ async priceUpdateInterval() {
2610
+ return this.contract.read.priceUpdateInterval();
2611
+ }
2612
+ /**
2613
+ * proxiableUUID
2614
+ * view
2615
+ */
2616
+ async proxiableUUID() {
2617
+ return this.contract.read.proxiableUUID();
2618
+ }
2619
+ /**
2620
+ * receivers
2621
+ * view
2622
+ */
2623
+ async receivers(arg0) {
2624
+ return this.contract.read.receivers([arg0]);
2625
+ }
2626
+ /**
2627
+ * requiredApprovals
2628
+ * view
2629
+ */
2630
+ async requiredApprovals() {
2631
+ return this.contract.read.requiredApprovals();
2632
+ }
2633
+ /**
2634
+ * roundDuration
2635
+ * view
2636
+ */
2637
+ async roundDuration() {
2638
+ return this.contract.read.roundDuration();
2639
+ }
2640
+ /**
2641
+ * rounds
2642
+ * view
2643
+ */
2644
+ async rounds(arg0) {
2645
+ return this.contract.read.rounds([arg0]);
2646
+ }
2647
+ /**
2648
+ * saleToken
2649
+ * view
2650
+ */
2651
+ async saleToken() {
2652
+ return this.contract.read.saleToken();
2653
+ }
2654
+ /**
2655
+ * snapshotCount
2656
+ * view
2657
+ */
2658
+ async snapshotCount() {
2659
+ return this.contract.read.snapshotCount();
2660
+ }
2661
+ /**
2662
+ * snapshotInterval
2663
+ * view
2664
+ */
2665
+ async snapshotInterval() {
2666
+ return this.contract.read.snapshotInterval();
2667
+ }
2668
+ /**
2669
+ * snapshots
2670
+ * view
2671
+ */
2672
+ async snapshots(arg0) {
2673
+ return this.contract.read.snapshots([arg0]);
2674
+ }
2675
+ /**
2676
+ * supportsInterface
2677
+ * view
2678
+ */
2679
+ async supportsInterface(interfaceId) {
2680
+ return this.contract.read.supportsInterface([interfaceId]);
2681
+ }
2682
+ /**
2683
+ * tokenList
2684
+ * view
2685
+ */
2686
+ async tokenList(arg0) {
2687
+ return this.contract.read.tokenList([arg0]);
2688
+ }
2689
+ /**
2690
+ * tokens
2691
+ * view
2692
+ */
2693
+ async tokens(arg0) {
2694
+ return this.contract.read.tokens([arg0]);
2695
+ }
2696
+ /**
2697
+ * totalDistributed
2698
+ * view
2699
+ */
2700
+ async totalDistributed() {
2701
+ return this.contract.read.totalDistributed();
2702
+ }
2703
+ /**
2704
+ * totalRaisedETH
2705
+ * view
2706
+ */
2707
+ async totalRaisedETH() {
2708
+ return this.contract.read.totalRaisedETH();
2709
+ }
2710
+ /**
2711
+ * totalRaisedUSD
2712
+ * view
2713
+ */
2714
+ async totalRaisedUSD() {
2715
+ return this.contract.read.totalRaisedUSD();
2716
+ }
2717
+ /**
2718
+ * totalRounds
2719
+ * view
2720
+ */
2721
+ async totalRounds() {
2722
+ return this.contract.read.totalRounds();
2723
+ }
2724
+ /**
2725
+ * totalShares
2726
+ * view
2727
+ */
2728
+ async totalShares() {
2729
+ return this.contract.read.totalShares();
2730
+ }
2731
+ /**
2732
+ * userOrders
2733
+ * view
2734
+ */
2735
+ async userOrders(arg0, arg1) {
2736
+ return this.contract.read.userOrders([arg0, arg1]);
2737
+ }
2738
+ /**
2739
+ * votePeriod
2740
+ * view
2741
+ */
2742
+ async votePeriod() {
2743
+ return this.contract.read.votePeriod();
2744
+ }
2745
+ /**
2746
+ * addRcvr
2747
+ * nonpayable
2748
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2749
+ */
2750
+ async addRcvr(addr, share, options) {
2751
+ if (!this.contract.write) {
2752
+ throw new Error('Wallet client is required for write operations');
2753
+ }
2754
+ return this.contract.write.addRcvr([addr, share], options);
2755
+ }
2756
+ /**
2757
+ * addToken
2758
+ * nonpayable
2759
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2760
+ */
2761
+ async addToken(token, priceFeed, backupFeed, backupPrice, options) {
2762
+ if (!this.contract.write) {
2763
+ throw new Error('Wallet client is required for write operations');
2764
+ }
2765
+ return this.contract.write.addToken([token, priceFeed, backupFeed, backupPrice], options);
2766
+ }
2767
+ /**
2768
+ * buy
2769
+ * payable
2770
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2771
+ */
2772
+ async buy(options) {
2773
+ if (!this.contract.write) {
2774
+ throw new Error('Wallet client is required for write operations');
2775
+ }
2776
+ return this.contract.write.buy(options);
2777
+ }
2778
+ /**
2779
+ * buyWithToken
2780
+ * nonpayable
2781
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2782
+ */
2783
+ async buyWithToken(token, amount, options) {
2784
+ if (!this.contract.write) {
2785
+ throw new Error('Wallet client is required for write operations');
2786
+ }
2787
+ return this.contract.write.buyWithToken([token, amount], options);
2788
+ }
2789
+ /**
2790
+ * changeToken
2791
+ * nonpayable
2792
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2793
+ */
2794
+ async changeToken(newToken, options) {
2795
+ if (!this.contract.write) {
2796
+ throw new Error('Wallet client is required for write operations');
2797
+ }
2798
+ return this.contract.write.changeToken([newToken], options);
2799
+ }
2800
+ /**
2801
+ * claim
2802
+ * nonpayable
2803
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2804
+ */
2805
+ async claim(orderId, options) {
2806
+ if (!this.contract.write) {
2807
+ throw new Error('Wallet client is required for write operations');
2808
+ }
2809
+ return this.contract.write.claim([orderId], options);
2810
+ }
2811
+ /**
2812
+ * claimAll
2813
+ * nonpayable
2814
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2815
+ */
2816
+ async claimAll(buyer, options) {
2817
+ if (!this.contract.write) {
2818
+ throw new Error('Wallet client is required for write operations');
2819
+ }
2820
+ return this.contract.write.claimAll([buyer], options);
2821
+ }
2822
+ /**
2823
+ * createRound
2824
+ * nonpayable
2825
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2826
+ */
2827
+ async createRound(price, priceUSD, allocation, useUSD, options) {
2828
+ if (!this.contract.write) {
2829
+ throw new Error('Wallet client is required for write operations');
2830
+ }
2831
+ return this.contract.write.createRound([price, priceUSD, allocation, useUSD], options);
2832
+ }
2833
+ /**
2834
+ * createUSDRound
2835
+ * nonpayable
2836
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2837
+ */
2838
+ async createUSDRound(priceUSD, allocation, options) {
2839
+ if (!this.contract.write) {
2840
+ throw new Error('Wallet client is required for write operations');
2841
+ }
2842
+ return this.contract.write.createUSDRound([priceUSD, allocation], options);
2843
+ }
2844
+ /**
2845
+ * emergencyETH
2846
+ * nonpayable
2847
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2848
+ */
2849
+ async emergencyETH(options) {
2850
+ if (!this.contract.write) {
2851
+ throw new Error('Wallet client is required for write operations');
2852
+ }
2853
+ return this.contract.write.emergencyETH(options);
2854
+ }
2855
+ /**
2856
+ * endRound
2857
+ * nonpayable
2858
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2859
+ */
2860
+ async endRound(options) {
2861
+ if (!this.contract.write) {
2862
+ throw new Error('Wallet client is required for write operations');
2863
+ }
2864
+ return this.contract.write.endRound(options);
2865
+ }
2866
+ /**
2867
+ * grantRole
2868
+ * nonpayable
2869
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2870
+ */
2871
+ async grantRole(role, account, options) {
2872
+ if (!this.contract.write) {
2873
+ throw new Error('Wallet client is required for write operations');
2874
+ }
2875
+ return this.contract.write.grantRole([role, account], options);
2876
+ }
2877
+ /**
2878
+ * init
2879
+ * nonpayable
2880
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2881
+ */
2882
+ async init(_saleToken, _ethPriceFeed, options) {
2883
+ if (!this.contract.write) {
2884
+ throw new Error('Wallet client is required for write operations');
2885
+ }
2886
+ return this.contract.write.init([_saleToken, _ethPriceFeed], options);
2887
+ }
2888
+ /**
2889
+ * initV2
2890
+ * nonpayable
2891
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2892
+ */
2893
+ async initV2(_defaultAllocation, _defaultPriceUSD, autoIncreaseRateValue, options) {
2894
+ if (!this.contract.write) {
2895
+ throw new Error('Wallet client is required for write operations');
2896
+ }
2897
+ return this.contract.write.initV2([_defaultAllocation, _defaultPriceUSD, autoIncreaseRateValue], options);
2898
+ }
2899
+ /**
2900
+ * pause
2901
+ * nonpayable
2902
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2903
+ */
2904
+ async pause(options) {
2905
+ if (!this.contract.write) {
2906
+ throw new Error('Wallet client is required for write operations');
2907
+ }
2908
+ return this.contract.write.pause(options);
2909
+ }
2910
+ /**
2911
+ * renounceOwnership
2912
+ * nonpayable
2913
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2914
+ */
2915
+ async renounceOwnership(options) {
2916
+ if (!this.contract.write) {
2917
+ throw new Error('Wallet client is required for write operations');
2918
+ }
2919
+ return this.contract.write.renounceOwnership(options);
2920
+ }
2921
+ /**
2922
+ * renounceRole
2923
+ * nonpayable
2924
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2925
+ */
2926
+ async renounceRole(role, callerConfirmation, options) {
2927
+ if (!this.contract.write) {
2928
+ throw new Error('Wallet client is required for write operations');
2929
+ }
2930
+ return this.contract.write.renounceRole([role, callerConfirmation], options);
2931
+ }
2932
+ /**
2933
+ * reset
2934
+ * nonpayable
2935
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2936
+ */
2937
+ async reset(_saleToken, _ethPriceFeed, options) {
2938
+ if (!this.contract.write) {
2939
+ throw new Error('Wallet client is required for write operations');
2940
+ }
2941
+ return this.contract.write.reset([_saleToken, _ethPriceFeed], options);
2942
+ }
2943
+ /**
2944
+ * revokeRole
2945
+ * nonpayable
2946
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2947
+ */
2948
+ async revokeRole(role, account, options) {
2949
+ if (!this.contract.write) {
2950
+ throw new Error('Wallet client is required for write operations');
2951
+ }
2952
+ return this.contract.write.revokeRole([role, account], options);
2953
+ }
2954
+ /**
2955
+ * rmRcvr
2956
+ * nonpayable
2957
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2958
+ */
2959
+ async rmRcvr(addr, options) {
2960
+ if (!this.contract.write) {
2961
+ throw new Error('Wallet client is required for write operations');
2962
+ }
2963
+ return this.contract.write.rmRcvr([addr], options);
2964
+ }
2965
+ /**
2966
+ * rmToken
2967
+ * nonpayable
2968
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2969
+ */
2970
+ async rmToken(token, options) {
2971
+ if (!this.contract.write) {
2972
+ throw new Error('Wallet client is required for write operations');
2973
+ }
2974
+ return this.contract.write.rmToken([token], options);
2975
+ }
2976
+ /**
2977
+ * setAlloc
2978
+ * nonpayable
2979
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2980
+ */
2981
+ async setAlloc(allocation, options) {
2982
+ if (!this.contract.write) {
2983
+ throw new Error('Wallet client is required for write operations');
2984
+ }
2985
+ return this.contract.write.setAlloc([allocation], options);
2986
+ }
2987
+ /**
2988
+ * setDuration
2989
+ * nonpayable
2990
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2991
+ */
2992
+ async setDuration(duration, options) {
2993
+ if (!this.contract.write) {
2994
+ throw new Error('Wallet client is required for write operations');
2995
+ }
2996
+ return this.contract.write.setDuration([duration], options);
2997
+ }
2998
+ /**
2999
+ * setETHThreshold
3000
+ * nonpayable
3001
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3002
+ */
3003
+ async setETHThreshold(threshold, options) {
3004
+ if (!this.contract.write) {
3005
+ throw new Error('Wallet client is required for write operations');
3006
+ }
3007
+ return this.contract.write.setETHThreshold([threshold], options);
3008
+ }
3009
+ /**
3010
+ * setInterval
3011
+ * nonpayable
3012
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3013
+ */
3014
+ async setInterval(interval, options) {
3015
+ if (!this.contract.write) {
3016
+ throw new Error('Wallet client is required for write operations');
3017
+ }
3018
+ return this.contract.write.setInterval([interval], options);
3019
+ }
3020
+ /**
3021
+ * setMax
3022
+ * nonpayable
3023
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3024
+ */
3025
+ async setMax(max, options) {
3026
+ if (!this.contract.write) {
3027
+ throw new Error('Wallet client is required for write operations');
3028
+ }
3029
+ return this.contract.write.setMax([max], options);
3030
+ }
3031
+ /**
3032
+ * setMin
3033
+ * nonpayable
3034
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3035
+ */
3036
+ async setMin(amount, options) {
3037
+ if (!this.contract.write) {
3038
+ throw new Error('Wallet client is required for write operations');
3039
+ }
3040
+ return this.contract.write.setMin([amount], options);
3041
+ }
3042
+ /**
3043
+ * setPrice
3044
+ * nonpayable
3045
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3046
+ */
3047
+ async setPrice(priceUSD, options) {
3048
+ if (!this.contract.write) {
3049
+ throw new Error('Wallet client is required for write operations');
3050
+ }
3051
+ return this.contract.write.setPrice([priceUSD], options);
3052
+ }
3053
+ /**
3054
+ * setRate
3055
+ * nonpayable
3056
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3057
+ */
3058
+ async setRate(rate, options) {
3059
+ if (!this.contract.write) {
3060
+ throw new Error('Wallet client is required for write operations');
3061
+ }
3062
+ return this.contract.write.setRate([rate], options);
3063
+ }
3064
+ /**
3065
+ * setTokenThreshold
3066
+ * nonpayable
3067
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3068
+ */
3069
+ async setTokenThreshold(token, threshold, options) {
3070
+ if (!this.contract.write) {
3071
+ throw new Error('Wallet client is required for write operations');
3072
+ }
3073
+ return this.contract.write.setTokenThreshold([token, threshold], options);
3074
+ }
3075
+ /**
3076
+ * snapshot
3077
+ * nonpayable
3078
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3079
+ */
3080
+ async snapshot(options) {
3081
+ if (!this.contract.write) {
3082
+ throw new Error('Wallet client is required for write operations');
3083
+ }
3084
+ return this.contract.write.snapshot(options);
3085
+ }
3086
+ /**
3087
+ * startRound
3088
+ * nonpayable
3089
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3090
+ */
3091
+ async startRound(roundId, options) {
3092
+ if (!this.contract.write) {
3093
+ throw new Error('Wallet client is required for write operations');
3094
+ }
3095
+ return this.contract.write.startRound([roundId], options);
3096
+ }
3097
+ /**
3098
+ * toggleAuto
3099
+ * nonpayable
3100
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3101
+ */
3102
+ async toggleAuto(autoIncrease, autoCreate, options) {
3103
+ if (!this.contract.write) {
3104
+ throw new Error('Wallet client is required for write operations');
3105
+ }
3106
+ return this.contract.write.toggleAuto([autoIncrease, autoCreate], options);
3107
+ }
3108
+ /**
3109
+ * toggleClaim
3110
+ * nonpayable
3111
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3112
+ */
3113
+ async toggleClaim(enabled, options) {
3114
+ if (!this.contract.write) {
3115
+ throw new Error('Wallet client is required for write operations');
3116
+ }
3117
+ return this.contract.write.toggleClaim([enabled], options);
3118
+ }
3119
+ /**
3120
+ * toggleCross
3121
+ * nonpayable
3122
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3123
+ */
3124
+ async toggleCross(enabled, options) {
3125
+ if (!this.contract.write) {
3126
+ throw new Error('Wallet client is required for write operations');
3127
+ }
3128
+ return this.contract.write.toggleCross([enabled], options);
3129
+ }
3130
+ /**
3131
+ * transferETH
3132
+ * nonpayable
3133
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3134
+ */
3135
+ async transferETH(options) {
3136
+ if (!this.contract.write) {
3137
+ throw new Error('Wallet client is required for write operations');
3138
+ }
3139
+ return this.contract.write.transferETH(options);
3140
+ }
3141
+ /**
3142
+ * transferOwnership
3143
+ * nonpayable
3144
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3145
+ */
3146
+ async transferOwnership(newOwner, options) {
3147
+ if (!this.contract.write) {
3148
+ throw new Error('Wallet client is required for write operations');
3149
+ }
3150
+ return this.contract.write.transferOwnership([newOwner], options);
3151
+ }
3152
+ /**
3153
+ * transferToken
3154
+ * nonpayable
3155
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3156
+ */
3157
+ async transferToken(token, options) {
3158
+ if (!this.contract.write) {
3159
+ throw new Error('Wallet client is required for write operations');
3160
+ }
3161
+ return this.contract.write.transferToken([token], options);
3162
+ }
3163
+ /**
3164
+ * unpause
3165
+ * nonpayable
3166
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3167
+ */
3168
+ async unpause(options) {
3169
+ if (!this.contract.write) {
3170
+ throw new Error('Wallet client is required for write operations');
3171
+ }
3172
+ return this.contract.write.unpause(options);
3173
+ }
3174
+ /**
3175
+ * updBackupFeed
3176
+ * nonpayable
3177
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3178
+ */
3179
+ async updBackupFeed(token, newFeed, options) {
3180
+ if (!this.contract.write) {
3181
+ throw new Error('Wallet client is required for write operations');
3182
+ }
3183
+ return this.contract.write.updBackupFeed([token, newFeed], options);
3184
+ }
3185
+ /**
3186
+ * updBackupPrice
3187
+ * nonpayable
3188
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3189
+ */
3190
+ async updBackupPrice(token, newPrice, options) {
3191
+ if (!this.contract.write) {
3192
+ throw new Error('Wallet client is required for write operations');
3193
+ }
3194
+ return this.contract.write.updBackupPrice([token, newPrice], options);
3195
+ }
3196
+ /**
3197
+ * updCheckTime
3198
+ * nonpayable
3199
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3200
+ */
3201
+ async updCheckTime(options) {
3202
+ if (!this.contract.write) {
3203
+ throw new Error('Wallet client is required for write operations');
3204
+ }
3205
+ return this.contract.write.updCheckTime(options);
3206
+ }
3207
+ /**
3208
+ * updETHBFeed
3209
+ * nonpayable
3210
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3211
+ */
3212
+ async updETHBFeed(newFeed, options) {
3213
+ if (!this.contract.write) {
3214
+ throw new Error('Wallet client is required for write operations');
3215
+ }
3216
+ return this.contract.write.updETHBFeed([newFeed], options);
3217
+ }
3218
+ /**
3219
+ * updETHBPrice
3220
+ * nonpayable
3221
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3222
+ */
3223
+ async updETHBPrice(price, options) {
3224
+ if (!this.contract.write) {
3225
+ throw new Error('Wallet client is required for write operations');
3226
+ }
3227
+ return this.contract.write.updETHBPrice([price], options);
3228
+ }
3229
+ /**
3230
+ * updETHFeed
3231
+ * nonpayable
3232
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3233
+ */
3234
+ async updETHFeed(newFeed, options) {
3235
+ if (!this.contract.write) {
3236
+ throw new Error('Wallet client is required for write operations');
3237
+ }
3238
+ return this.contract.write.updETHFeed([newFeed], options);
3239
+ }
3240
+ /**
3241
+ * updRcvr
3242
+ * nonpayable
3243
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3244
+ */
3245
+ async updRcvr(addr, newShare, options) {
3246
+ if (!this.contract.write) {
3247
+ throw new Error('Wallet client is required for write operations');
3248
+ }
3249
+ return this.contract.write.updRcvr([addr, newShare], options);
3250
+ }
3251
+ /**
3252
+ * updRound
3253
+ * nonpayable
3254
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3255
+ */
3256
+ async updRound(roundId, price, priceUSD, allocation, useUSD, options) {
3257
+ if (!this.contract.write) {
3258
+ throw new Error('Wallet client is required for write operations');
3259
+ }
3260
+ return this.contract.write.updRound([roundId, price, priceUSD, allocation, useUSD], options);
3261
+ }
3262
+ /**
3263
+ * upgradeToAndCall
3264
+ * payable
3265
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3266
+ */
3267
+ async upgradeToAndCall(newImplementation, data, options) {
3268
+ if (!this.contract.write) {
3269
+ throw new Error('Wallet client is required for write operations');
3270
+ }
3271
+ return this.contract.write.upgradeToAndCall([newImplementation, data], options);
3272
+ }
3273
+ /**
3274
+ * Simulate contract write operations (dry-run without sending transaction)
3275
+ *
3276
+ * @example
3277
+ * const result = await contract.simulate.transfer('0x...', 1000n);
3278
+ * console.log('Gas estimate:', result.request.gas);
3279
+ * console.log('Would succeed:', result.result);
3280
+ */
3281
+ get simulate() {
3282
+ const contract = this.contract;
3283
+ if (!contract.simulate) {
3284
+ throw new Error('Public client is required for simulation');
3285
+ }
3286
+ return {
3287
+ /**
3288
+ * Simulate addRcvr
3289
+ * Returns gas estimate and result without sending transaction
3290
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3291
+ */
3292
+ async addRcvr(addr, share, options) {
3293
+ return contract.simulate.addRcvr([addr, share], options);
3294
+ },
3295
+ /**
3296
+ * Simulate addToken
3297
+ * Returns gas estimate and result without sending transaction
3298
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3299
+ */
3300
+ async addToken(token, priceFeed, backupFeed, backupPrice, options) {
3301
+ return contract.simulate.addToken([token, priceFeed, backupFeed, backupPrice], options);
3302
+ },
3303
+ /**
3304
+ * Simulate buy
3305
+ * Returns gas estimate and result without sending transaction
3306
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3307
+ */
3308
+ async buy(options) {
3309
+ return contract.simulate.buy(options);
3310
+ },
3311
+ /**
3312
+ * Simulate buyWithToken
3313
+ * Returns gas estimate and result without sending transaction
3314
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3315
+ */
3316
+ async buyWithToken(token, amount, options) {
3317
+ return contract.simulate.buyWithToken([token, amount], options);
3318
+ },
3319
+ /**
3320
+ * Simulate changeToken
3321
+ * Returns gas estimate and result without sending transaction
3322
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3323
+ */
3324
+ async changeToken(newToken, options) {
3325
+ return contract.simulate.changeToken([newToken], options);
3326
+ },
3327
+ /**
3328
+ * Simulate claim
3329
+ * Returns gas estimate and result without sending transaction
3330
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3331
+ */
3332
+ async claim(orderId, options) {
3333
+ return contract.simulate.claim([orderId], options);
3334
+ },
3335
+ /**
3336
+ * Simulate claimAll
3337
+ * Returns gas estimate and result without sending transaction
3338
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3339
+ */
3340
+ async claimAll(buyer, options) {
3341
+ return contract.simulate.claimAll([buyer], options);
3342
+ },
3343
+ /**
3344
+ * Simulate createRound
3345
+ * Returns gas estimate and result without sending transaction
3346
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3347
+ */
3348
+ async createRound(price, priceUSD, allocation, useUSD, options) {
3349
+ return contract.simulate.createRound([price, priceUSD, allocation, useUSD], options);
3350
+ },
3351
+ /**
3352
+ * Simulate createUSDRound
3353
+ * Returns gas estimate and result without sending transaction
3354
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3355
+ */
3356
+ async createUSDRound(priceUSD, allocation, options) {
3357
+ return contract.simulate.createUSDRound([priceUSD, allocation], options);
3358
+ },
3359
+ /**
3360
+ * Simulate emergencyETH
3361
+ * Returns gas estimate and result without sending transaction
3362
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3363
+ */
3364
+ async emergencyETH(options) {
3365
+ return contract.simulate.emergencyETH(options);
3366
+ },
3367
+ /**
3368
+ * Simulate endRound
3369
+ * Returns gas estimate and result without sending transaction
3370
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3371
+ */
3372
+ async endRound(options) {
3373
+ return contract.simulate.endRound(options);
3374
+ },
3375
+ /**
3376
+ * Simulate grantRole
3377
+ * Returns gas estimate and result without sending transaction
3378
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3379
+ */
3380
+ async grantRole(role, account, options) {
3381
+ return contract.simulate.grantRole([role, account], options);
3382
+ },
3383
+ /**
3384
+ * Simulate init
3385
+ * Returns gas estimate and result without sending transaction
3386
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3387
+ */
3388
+ async init(_saleToken, _ethPriceFeed, options) {
3389
+ return contract.simulate.init([_saleToken, _ethPriceFeed], options);
3390
+ },
3391
+ /**
3392
+ * Simulate initV2
3393
+ * Returns gas estimate and result without sending transaction
3394
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3395
+ */
3396
+ async initV2(_defaultAllocation, _defaultPriceUSD, autoIncreaseRateValue, options) {
3397
+ return contract.simulate.initV2([_defaultAllocation, _defaultPriceUSD, autoIncreaseRateValue], options);
3398
+ },
3399
+ /**
3400
+ * Simulate pause
3401
+ * Returns gas estimate and result without sending transaction
3402
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3403
+ */
3404
+ async pause(options) {
3405
+ return contract.simulate.pause(options);
3406
+ },
3407
+ /**
3408
+ * Simulate renounceOwnership
3409
+ * Returns gas estimate and result without sending transaction
3410
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3411
+ */
3412
+ async renounceOwnership(options) {
3413
+ return contract.simulate.renounceOwnership(options);
3414
+ },
3415
+ /**
3416
+ * Simulate renounceRole
3417
+ * Returns gas estimate and result without sending transaction
3418
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3419
+ */
3420
+ async renounceRole(role, callerConfirmation, options) {
3421
+ return contract.simulate.renounceRole([role, callerConfirmation], options);
3422
+ },
3423
+ /**
3424
+ * Simulate reset
3425
+ * Returns gas estimate and result without sending transaction
3426
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3427
+ */
3428
+ async reset(_saleToken, _ethPriceFeed, options) {
3429
+ return contract.simulate.reset([_saleToken, _ethPriceFeed], options);
3430
+ },
3431
+ /**
3432
+ * Simulate revokeRole
3433
+ * Returns gas estimate and result without sending transaction
3434
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3435
+ */
3436
+ async revokeRole(role, account, options) {
3437
+ return contract.simulate.revokeRole([role, account], options);
3438
+ },
3439
+ /**
3440
+ * Simulate rmRcvr
3441
+ * Returns gas estimate and result without sending transaction
3442
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3443
+ */
3444
+ async rmRcvr(addr, options) {
3445
+ return contract.simulate.rmRcvr([addr], options);
3446
+ },
3447
+ /**
3448
+ * Simulate rmToken
3449
+ * Returns gas estimate and result without sending transaction
3450
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3451
+ */
3452
+ async rmToken(token, options) {
3453
+ return contract.simulate.rmToken([token], options);
3454
+ },
3455
+ /**
3456
+ * Simulate setAlloc
3457
+ * Returns gas estimate and result without sending transaction
3458
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3459
+ */
3460
+ async setAlloc(allocation, options) {
3461
+ return contract.simulate.setAlloc([allocation], options);
3462
+ },
3463
+ /**
3464
+ * Simulate setDuration
3465
+ * Returns gas estimate and result without sending transaction
3466
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3467
+ */
3468
+ async setDuration(duration, options) {
3469
+ return contract.simulate.setDuration([duration], options);
3470
+ },
3471
+ /**
3472
+ * Simulate setETHThreshold
3473
+ * Returns gas estimate and result without sending transaction
3474
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3475
+ */
3476
+ async setETHThreshold(threshold, options) {
3477
+ return contract.simulate.setETHThreshold([threshold], options);
3478
+ },
3479
+ /**
3480
+ * Simulate setInterval
3481
+ * Returns gas estimate and result without sending transaction
3482
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3483
+ */
3484
+ async setInterval(interval, options) {
3485
+ return contract.simulate.setInterval([interval], options);
3486
+ },
3487
+ /**
3488
+ * Simulate setMax
3489
+ * Returns gas estimate and result without sending transaction
3490
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3491
+ */
3492
+ async setMax(max, options) {
3493
+ return contract.simulate.setMax([max], options);
3494
+ },
3495
+ /**
3496
+ * Simulate setMin
3497
+ * Returns gas estimate and result without sending transaction
3498
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3499
+ */
3500
+ async setMin(amount, options) {
3501
+ return contract.simulate.setMin([amount], options);
3502
+ },
3503
+ /**
3504
+ * Simulate setPrice
3505
+ * Returns gas estimate and result without sending transaction
3506
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3507
+ */
3508
+ async setPrice(priceUSD, options) {
3509
+ return contract.simulate.setPrice([priceUSD], options);
3510
+ },
3511
+ /**
3512
+ * Simulate setRate
3513
+ * Returns gas estimate and result without sending transaction
3514
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3515
+ */
3516
+ async setRate(rate, options) {
3517
+ return contract.simulate.setRate([rate], options);
3518
+ },
3519
+ /**
3520
+ * Simulate setTokenThreshold
3521
+ * Returns gas estimate and result without sending transaction
3522
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3523
+ */
3524
+ async setTokenThreshold(token, threshold, options) {
3525
+ return contract.simulate.setTokenThreshold([token, threshold], options);
3526
+ },
3527
+ /**
3528
+ * Simulate snapshot
3529
+ * Returns gas estimate and result without sending transaction
3530
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3531
+ */
3532
+ async snapshot(options) {
3533
+ return contract.simulate.snapshot(options);
3534
+ },
3535
+ /**
3536
+ * Simulate startRound
3537
+ * Returns gas estimate and result without sending transaction
3538
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3539
+ */
3540
+ async startRound(roundId, options) {
3541
+ return contract.simulate.startRound([roundId], options);
3542
+ },
3543
+ /**
3544
+ * Simulate toggleAuto
3545
+ * Returns gas estimate and result without sending transaction
3546
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3547
+ */
3548
+ async toggleAuto(autoIncrease, autoCreate, options) {
3549
+ return contract.simulate.toggleAuto([autoIncrease, autoCreate], options);
3550
+ },
3551
+ /**
3552
+ * Simulate toggleClaim
3553
+ * Returns gas estimate and result without sending transaction
3554
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3555
+ */
3556
+ async toggleClaim(enabled, options) {
3557
+ return contract.simulate.toggleClaim([enabled], options);
3558
+ },
3559
+ /**
3560
+ * Simulate toggleCross
3561
+ * Returns gas estimate and result without sending transaction
3562
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3563
+ */
3564
+ async toggleCross(enabled, options) {
3565
+ return contract.simulate.toggleCross([enabled], options);
3566
+ },
3567
+ /**
3568
+ * Simulate transferETH
3569
+ * Returns gas estimate and result without sending transaction
3570
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3571
+ */
3572
+ async transferETH(options) {
3573
+ return contract.simulate.transferETH(options);
3574
+ },
3575
+ /**
3576
+ * Simulate transferOwnership
3577
+ * Returns gas estimate and result without sending transaction
3578
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3579
+ */
3580
+ async transferOwnership(newOwner, options) {
3581
+ return contract.simulate.transferOwnership([newOwner], options);
3582
+ },
3583
+ /**
3584
+ * Simulate transferToken
3585
+ * Returns gas estimate and result without sending transaction
3586
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3587
+ */
3588
+ async transferToken(token, options) {
3589
+ return contract.simulate.transferToken([token], options);
3590
+ },
3591
+ /**
3592
+ * Simulate unpause
3593
+ * Returns gas estimate and result without sending transaction
3594
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3595
+ */
3596
+ async unpause(options) {
3597
+ return contract.simulate.unpause(options);
3598
+ },
3599
+ /**
3600
+ * Simulate updBackupFeed
3601
+ * Returns gas estimate and result without sending transaction
3602
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3603
+ */
3604
+ async updBackupFeed(token, newFeed, options) {
3605
+ return contract.simulate.updBackupFeed([token, newFeed], options);
3606
+ },
3607
+ /**
3608
+ * Simulate updBackupPrice
3609
+ * Returns gas estimate and result without sending transaction
3610
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3611
+ */
3612
+ async updBackupPrice(token, newPrice, options) {
3613
+ return contract.simulate.updBackupPrice([token, newPrice], options);
3614
+ },
3615
+ /**
3616
+ * Simulate updCheckTime
3617
+ * Returns gas estimate and result without sending transaction
3618
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3619
+ */
3620
+ async updCheckTime(options) {
3621
+ return contract.simulate.updCheckTime(options);
3622
+ },
3623
+ /**
3624
+ * Simulate updETHBFeed
3625
+ * Returns gas estimate and result without sending transaction
3626
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3627
+ */
3628
+ async updETHBFeed(newFeed, options) {
3629
+ return contract.simulate.updETHBFeed([newFeed], options);
3630
+ },
3631
+ /**
3632
+ * Simulate updETHBPrice
3633
+ * Returns gas estimate and result without sending transaction
3634
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3635
+ */
3636
+ async updETHBPrice(price, options) {
3637
+ return contract.simulate.updETHBPrice([price], options);
3638
+ },
3639
+ /**
3640
+ * Simulate updETHFeed
3641
+ * Returns gas estimate and result without sending transaction
3642
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3643
+ */
3644
+ async updETHFeed(newFeed, options) {
3645
+ return contract.simulate.updETHFeed([newFeed], options);
3646
+ },
3647
+ /**
3648
+ * Simulate updRcvr
3649
+ * Returns gas estimate and result without sending transaction
3650
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3651
+ */
3652
+ async updRcvr(addr, newShare, options) {
3653
+ return contract.simulate.updRcvr([addr, newShare], options);
3654
+ },
3655
+ /**
3656
+ * Simulate updRound
3657
+ * Returns gas estimate and result without sending transaction
3658
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3659
+ */
3660
+ async updRound(roundId, price, priceUSD, allocation, useUSD, options) {
3661
+ return contract.simulate.updRound([roundId, price, priceUSD, allocation, useUSD], options);
3662
+ },
3663
+ /**
3664
+ * Simulate upgradeToAndCall
3665
+ * Returns gas estimate and result without sending transaction
3666
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3667
+ */
3668
+ async upgradeToAndCall(newImplementation, data, options) {
3669
+ return contract.simulate.upgradeToAndCall([newImplementation, data], options);
3670
+ }
3671
+ };
3672
+ }
3673
+ /**
3674
+ * Watch contract events
3675
+ *
3676
+ * @example
3677
+ * // Watch all Transfer events
3678
+ * const unwatch = contract.watch.Transfer((event) => {
3679
+ * console.log('Transfer:', event);
3680
+ * });
3681
+ *
3682
+ * // Stop watching
3683
+ * unwatch();
3684
+ */
3685
+ get watch() {
3686
+ return {
3687
+ /**
3688
+ * Watch ConfigUpdated events
3689
+ * @param callback Function to call when event is emitted
3690
+ * @param filter Optional filter for indexed parameters
3691
+ * @returns Unwatch function to stop listening
3692
+ */
3693
+ ConfigUpdated: (callback) => {
3694
+ return this.publicClient.watchContractEvent({
3695
+ address: this.contractAddress,
3696
+ abi: exports.RoundPresaleV3_jsonAbi,
3697
+ eventName: 'ConfigUpdated',
3698
+ onLogs: (logs) => {
3699
+ logs.forEach((log) => {
3700
+ callback(log.args);
3701
+ });
3702
+ },
3703
+ });
3704
+ },
3705
+ /**
3706
+ * Watch CrossRoundPurchase events
3707
+ * @param callback Function to call when event is emitted
3708
+ * @param filter Optional filter for indexed parameters
3709
+ * @returns Unwatch function to stop listening
3710
+ */
3711
+ CrossRoundPurchase: (callback, filter) => {
3712
+ return this.publicClient.watchContractEvent({
3713
+ address: this.contractAddress,
3714
+ abi: exports.RoundPresaleV3_jsonAbi,
3715
+ eventName: 'CrossRoundPurchase',
3716
+ args: filter,
3717
+ onLogs: (logs) => {
3718
+ logs.forEach((log) => {
3719
+ callback(log.args);
3720
+ });
3721
+ },
3722
+ });
3723
+ },
3724
+ /**
3725
+ * Watch FeedUpdated events
3726
+ * @param callback Function to call when event is emitted
3727
+ * @param filter Optional filter for indexed parameters
3728
+ * @returns Unwatch function to stop listening
3729
+ */
3730
+ FeedUpdated: (callback, filter) => {
3731
+ return this.publicClient.watchContractEvent({
3732
+ address: this.contractAddress,
3733
+ abi: exports.RoundPresaleV3_jsonAbi,
3734
+ eventName: 'FeedUpdated',
3735
+ args: filter,
3736
+ onLogs: (logs) => {
3737
+ logs.forEach((log) => {
3738
+ callback(log.args);
3739
+ });
3740
+ },
3741
+ });
3742
+ },
3743
+ /**
3744
+ * Watch FundsTransferred events
3745
+ * @param callback Function to call when event is emitted
3746
+ * @param filter Optional filter for indexed parameters
3747
+ * @returns Unwatch function to stop listening
3748
+ */
3749
+ FundsTransferred: (callback, filter) => {
3750
+ return this.publicClient.watchContractEvent({
3751
+ address: this.contractAddress,
3752
+ abi: exports.RoundPresaleV3_jsonAbi,
3753
+ eventName: 'FundsTransferred',
3754
+ args: filter,
3755
+ onLogs: (logs) => {
3756
+ logs.forEach((log) => {
3757
+ callback(log.args);
3758
+ });
3759
+ },
3760
+ });
3761
+ },
3762
+ /**
3763
+ * Watch Initialized events
3764
+ * @param callback Function to call when event is emitted
3765
+ * @param filter Optional filter for indexed parameters
3766
+ * @returns Unwatch function to stop listening
3767
+ */
3768
+ Initialized: (callback) => {
3769
+ return this.publicClient.watchContractEvent({
3770
+ address: this.contractAddress,
3771
+ abi: exports.RoundPresaleV3_jsonAbi,
3772
+ eventName: 'Initialized',
3773
+ onLogs: (logs) => {
3774
+ logs.forEach((log) => {
3775
+ callback(log.args);
3776
+ });
3777
+ },
3778
+ });
3779
+ },
3780
+ /**
3781
+ * Watch OwnershipTransferred events
3782
+ * @param callback Function to call when event is emitted
3783
+ * @param filter Optional filter for indexed parameters
3784
+ * @returns Unwatch function to stop listening
3785
+ */
3786
+ OwnershipTransferred: (callback, filter) => {
3787
+ return this.publicClient.watchContractEvent({
3788
+ address: this.contractAddress,
3789
+ abi: exports.RoundPresaleV3_jsonAbi,
3790
+ eventName: 'OwnershipTransferred',
3791
+ args: filter,
3792
+ onLogs: (logs) => {
3793
+ logs.forEach((log) => {
3794
+ callback(log.args);
3795
+ });
3796
+ },
3797
+ });
3798
+ },
3799
+ /**
3800
+ * Watch Paused events
3801
+ * @param callback Function to call when event is emitted
3802
+ * @param filter Optional filter for indexed parameters
3803
+ * @returns Unwatch function to stop listening
3804
+ */
3805
+ Paused: (callback) => {
3806
+ return this.publicClient.watchContractEvent({
3807
+ address: this.contractAddress,
3808
+ abi: exports.RoundPresaleV3_jsonAbi,
3809
+ eventName: 'Paused',
3810
+ onLogs: (logs) => {
3811
+ logs.forEach((log) => {
3812
+ callback(log.args);
3813
+ });
3814
+ },
3815
+ });
3816
+ },
3817
+ /**
3818
+ * Watch ReceiverChanged events
3819
+ * @param callback Function to call when event is emitted
3820
+ * @param filter Optional filter for indexed parameters
3821
+ * @returns Unwatch function to stop listening
3822
+ */
3823
+ ReceiverChanged: (callback) => {
3824
+ return this.publicClient.watchContractEvent({
3825
+ address: this.contractAddress,
3826
+ abi: exports.RoundPresaleV3_jsonAbi,
3827
+ eventName: 'ReceiverChanged',
3828
+ onLogs: (logs) => {
3829
+ logs.forEach((log) => {
3830
+ callback(log.args);
3831
+ });
3832
+ },
3833
+ });
3834
+ },
3835
+ /**
3836
+ * Watch RoleAdminChanged events
3837
+ * @param callback Function to call when event is emitted
3838
+ * @param filter Optional filter for indexed parameters
3839
+ * @returns Unwatch function to stop listening
3840
+ */
3841
+ RoleAdminChanged: (callback, filter) => {
3842
+ return this.publicClient.watchContractEvent({
3843
+ address: this.contractAddress,
3844
+ abi: exports.RoundPresaleV3_jsonAbi,
3845
+ eventName: 'RoleAdminChanged',
3846
+ args: filter,
3847
+ onLogs: (logs) => {
3848
+ logs.forEach((log) => {
3849
+ callback(log.args);
3850
+ });
3851
+ },
3852
+ });
3853
+ },
3854
+ /**
3855
+ * Watch RoleGranted events
3856
+ * @param callback Function to call when event is emitted
3857
+ * @param filter Optional filter for indexed parameters
3858
+ * @returns Unwatch function to stop listening
3859
+ */
3860
+ RoleGranted: (callback, filter) => {
3861
+ return this.publicClient.watchContractEvent({
3862
+ address: this.contractAddress,
3863
+ abi: exports.RoundPresaleV3_jsonAbi,
3864
+ eventName: 'RoleGranted',
3865
+ args: filter,
3866
+ onLogs: (logs) => {
3867
+ logs.forEach((log) => {
3868
+ callback(log.args);
3869
+ });
3870
+ },
3871
+ });
3872
+ },
3873
+ /**
3874
+ * Watch RoleRevoked events
3875
+ * @param callback Function to call when event is emitted
3876
+ * @param filter Optional filter for indexed parameters
3877
+ * @returns Unwatch function to stop listening
3878
+ */
3879
+ RoleRevoked: (callback, filter) => {
3880
+ return this.publicClient.watchContractEvent({
3881
+ address: this.contractAddress,
3882
+ abi: exports.RoundPresaleV3_jsonAbi,
3883
+ eventName: 'RoleRevoked',
3884
+ args: filter,
3885
+ onLogs: (logs) => {
3886
+ logs.forEach((log) => {
3887
+ callback(log.args);
3888
+ });
3889
+ },
3890
+ });
3891
+ },
3892
+ /**
3893
+ * Watch RoundCreated events
3894
+ * @param callback Function to call when event is emitted
3895
+ * @param filter Optional filter for indexed parameters
3896
+ * @returns Unwatch function to stop listening
3897
+ */
3898
+ RoundCreated: (callback, filter) => {
3899
+ return this.publicClient.watchContractEvent({
3900
+ address: this.contractAddress,
3901
+ abi: exports.RoundPresaleV3_jsonAbi,
3902
+ eventName: 'RoundCreated',
3903
+ args: filter,
3904
+ onLogs: (logs) => {
3905
+ logs.forEach((log) => {
3906
+ callback(log.args);
3907
+ });
3908
+ },
3909
+ });
3910
+ },
3911
+ /**
3912
+ * Watch RoundEnded events
3913
+ * @param callback Function to call when event is emitted
3914
+ * @param filter Optional filter for indexed parameters
3915
+ * @returns Unwatch function to stop listening
3916
+ */
3917
+ RoundEnded: (callback, filter) => {
3918
+ return this.publicClient.watchContractEvent({
3919
+ address: this.contractAddress,
3920
+ abi: exports.RoundPresaleV3_jsonAbi,
3921
+ eventName: 'RoundEnded',
3922
+ args: filter,
3923
+ onLogs: (logs) => {
3924
+ logs.forEach((log) => {
3925
+ callback(log.args);
3926
+ });
3927
+ },
3928
+ });
3929
+ },
3930
+ /**
3931
+ * Watch RoundStarted events
3932
+ * @param callback Function to call when event is emitted
3933
+ * @param filter Optional filter for indexed parameters
3934
+ * @returns Unwatch function to stop listening
3935
+ */
3936
+ RoundStarted: (callback, filter) => {
3937
+ return this.publicClient.watchContractEvent({
3938
+ address: this.contractAddress,
3939
+ abi: exports.RoundPresaleV3_jsonAbi,
3940
+ eventName: 'RoundStarted',
3941
+ args: filter,
3942
+ onLogs: (logs) => {
3943
+ logs.forEach((log) => {
3944
+ callback(log.args);
3945
+ });
3946
+ },
3947
+ });
3948
+ },
3949
+ /**
3950
+ * Watch RoundUpdated events
3951
+ * @param callback Function to call when event is emitted
3952
+ * @param filter Optional filter for indexed parameters
3953
+ * @returns Unwatch function to stop listening
3954
+ */
3955
+ RoundUpdated: (callback, filter) => {
3956
+ return this.publicClient.watchContractEvent({
3957
+ address: this.contractAddress,
3958
+ abi: exports.RoundPresaleV3_jsonAbi,
3959
+ eventName: 'RoundUpdated',
3960
+ args: filter,
3961
+ onLogs: (logs) => {
3962
+ logs.forEach((log) => {
3963
+ callback(log.args);
3964
+ });
3965
+ },
3966
+ });
3967
+ },
3968
+ /**
3969
+ * Watch SnapshotTaken events
3970
+ * @param callback Function to call when event is emitted
3971
+ * @param filter Optional filter for indexed parameters
3972
+ * @returns Unwatch function to stop listening
3973
+ */
3974
+ SnapshotTaken: (callback, filter) => {
3975
+ return this.publicClient.watchContractEvent({
3976
+ address: this.contractAddress,
3977
+ abi: exports.RoundPresaleV3_jsonAbi,
3978
+ eventName: 'SnapshotTaken',
3979
+ args: filter,
3980
+ onLogs: (logs) => {
3981
+ logs.forEach((log) => {
3982
+ callback(log.args);
3983
+ });
3984
+ },
3985
+ });
3986
+ },
3987
+ /**
3988
+ * Watch TokenAdded events
3989
+ * @param callback Function to call when event is emitted
3990
+ * @param filter Optional filter for indexed parameters
3991
+ * @returns Unwatch function to stop listening
3992
+ */
3993
+ TokenAdded: (callback, filter) => {
3994
+ return this.publicClient.watchContractEvent({
3995
+ address: this.contractAddress,
3996
+ abi: exports.RoundPresaleV3_jsonAbi,
3997
+ eventName: 'TokenAdded',
3998
+ args: filter,
3999
+ onLogs: (logs) => {
4000
+ logs.forEach((log) => {
4001
+ callback(log.args);
4002
+ });
4003
+ },
4004
+ });
4005
+ },
4006
+ /**
4007
+ * Watch TokenClaimed events
4008
+ * @param callback Function to call when event is emitted
4009
+ * @param filter Optional filter for indexed parameters
4010
+ * @returns Unwatch function to stop listening
4011
+ */
4012
+ TokenClaimed: (callback, filter) => {
4013
+ return this.publicClient.watchContractEvent({
4014
+ address: this.contractAddress,
4015
+ abi: exports.RoundPresaleV3_jsonAbi,
4016
+ eventName: 'TokenClaimed',
4017
+ args: filter,
4018
+ onLogs: (logs) => {
4019
+ logs.forEach((log) => {
4020
+ callback(log.args);
4021
+ });
4022
+ },
4023
+ });
4024
+ },
4025
+ /**
4026
+ * Watch TokenPurchased events
4027
+ * @param callback Function to call when event is emitted
4028
+ * @param filter Optional filter for indexed parameters
4029
+ * @returns Unwatch function to stop listening
4030
+ */
4031
+ TokenPurchased: (callback, filter) => {
4032
+ return this.publicClient.watchContractEvent({
4033
+ address: this.contractAddress,
4034
+ abi: exports.RoundPresaleV3_jsonAbi,
4035
+ eventName: 'TokenPurchased',
4036
+ args: filter,
4037
+ onLogs: (logs) => {
4038
+ logs.forEach((log) => {
4039
+ callback(log.args);
4040
+ });
4041
+ },
4042
+ });
4043
+ },
4044
+ /**
4045
+ * Watch TokenRemoved events
4046
+ * @param callback Function to call when event is emitted
4047
+ * @param filter Optional filter for indexed parameters
4048
+ * @returns Unwatch function to stop listening
4049
+ */
4050
+ TokenRemoved: (callback, filter) => {
4051
+ return this.publicClient.watchContractEvent({
4052
+ address: this.contractAddress,
4053
+ abi: exports.RoundPresaleV3_jsonAbi,
4054
+ eventName: 'TokenRemoved',
4055
+ args: filter,
4056
+ onLogs: (logs) => {
4057
+ logs.forEach((log) => {
4058
+ callback(log.args);
4059
+ });
4060
+ },
4061
+ });
4062
+ },
4063
+ /**
4064
+ * Watch Unpaused events
4065
+ * @param callback Function to call when event is emitted
4066
+ * @param filter Optional filter for indexed parameters
4067
+ * @returns Unwatch function to stop listening
4068
+ */
4069
+ Unpaused: (callback) => {
4070
+ return this.publicClient.watchContractEvent({
4071
+ address: this.contractAddress,
4072
+ abi: exports.RoundPresaleV3_jsonAbi,
4073
+ eventName: 'Unpaused',
4074
+ onLogs: (logs) => {
4075
+ logs.forEach((log) => {
4076
+ callback(log.args);
4077
+ });
4078
+ },
4079
+ });
4080
+ },
4081
+ /**
4082
+ * Watch Upgraded events
4083
+ * @param callback Function to call when event is emitted
4084
+ * @param filter Optional filter for indexed parameters
4085
+ * @returns Unwatch function to stop listening
4086
+ */
4087
+ Upgraded: (callback, filter) => {
4088
+ return this.publicClient.watchContractEvent({
4089
+ address: this.contractAddress,
4090
+ abi: exports.RoundPresaleV3_jsonAbi,
4091
+ eventName: 'Upgraded',
4092
+ args: filter,
4093
+ onLogs: (logs) => {
4094
+ logs.forEach((log) => {
4095
+ callback(log.args);
4096
+ });
4097
+ },
4098
+ });
4099
+ }
4100
+ };
4101
+ }
4102
+ }
4103
+ exports.RoundPresaleV3_json = RoundPresaleV3_json;