@gitmyabi/presalev2 0.0.0-stage → 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,2851 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PresaleV2_json = exports.PresaleV2_jsonAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * PresaleV2_json ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.PresaleV2_jsonAbi = [
11
+ {
12
+ "inputs": [],
13
+ "stateMutability": "nonpayable",
14
+ "type": "constructor"
15
+ },
16
+ {
17
+ "anonymous": false,
18
+ "inputs": [
19
+ {
20
+ "indexed": false,
21
+ "internalType": "uint256",
22
+ "name": "prevValue",
23
+ "type": "uint256"
24
+ },
25
+ {
26
+ "indexed": false,
27
+ "internalType": "uint256",
28
+ "name": "newValue",
29
+ "type": "uint256"
30
+ },
31
+ {
32
+ "indexed": false,
33
+ "internalType": "uint256",
34
+ "name": "timestamp",
35
+ "type": "uint256"
36
+ }
37
+ ],
38
+ "name": "ClaimStartUpdated",
39
+ "type": "event"
40
+ },
41
+ {
42
+ "anonymous": false,
43
+ "inputs": [
44
+ {
45
+ "indexed": false,
46
+ "internalType": "uint8",
47
+ "name": "version",
48
+ "type": "uint8"
49
+ }
50
+ ],
51
+ "name": "Initialized",
52
+ "type": "event"
53
+ },
54
+ {
55
+ "anonymous": false,
56
+ "inputs": [
57
+ {
58
+ "indexed": false,
59
+ "internalType": "uint256",
60
+ "name": "prevValue",
61
+ "type": "uint256"
62
+ },
63
+ {
64
+ "indexed": false,
65
+ "internalType": "uint256",
66
+ "name": "newValue",
67
+ "type": "uint256"
68
+ },
69
+ {
70
+ "indexed": false,
71
+ "internalType": "uint256",
72
+ "name": "timestamp",
73
+ "type": "uint256"
74
+ }
75
+ ],
76
+ "name": "MaxTokensUpdated",
77
+ "type": "event"
78
+ },
79
+ {
80
+ "anonymous": false,
81
+ "inputs": [
82
+ {
83
+ "indexed": true,
84
+ "internalType": "address",
85
+ "name": "previousOwner",
86
+ "type": "address"
87
+ },
88
+ {
89
+ "indexed": true,
90
+ "internalType": "address",
91
+ "name": "newOwner",
92
+ "type": "address"
93
+ }
94
+ ],
95
+ "name": "OwnershipTransferred",
96
+ "type": "event"
97
+ },
98
+ {
99
+ "anonymous": false,
100
+ "inputs": [
101
+ {
102
+ "indexed": false,
103
+ "internalType": "address",
104
+ "name": "account",
105
+ "type": "address"
106
+ }
107
+ ],
108
+ "name": "Paused",
109
+ "type": "event"
110
+ },
111
+ {
112
+ "anonymous": false,
113
+ "inputs": [
114
+ {
115
+ "indexed": false,
116
+ "internalType": "uint256",
117
+ "name": "_start",
118
+ "type": "uint256"
119
+ },
120
+ {
121
+ "indexed": false,
122
+ "internalType": "uint256",
123
+ "name": "_end",
124
+ "type": "uint256"
125
+ },
126
+ {
127
+ "indexed": false,
128
+ "internalType": "uint256",
129
+ "name": "timestamp",
130
+ "type": "uint256"
131
+ }
132
+ ],
133
+ "name": "SaleTimeSet",
134
+ "type": "event"
135
+ },
136
+ {
137
+ "anonymous": false,
138
+ "inputs": [
139
+ {
140
+ "indexed": true,
141
+ "internalType": "bytes32",
142
+ "name": "key",
143
+ "type": "bytes32"
144
+ },
145
+ {
146
+ "indexed": false,
147
+ "internalType": "uint256",
148
+ "name": "prevValue",
149
+ "type": "uint256"
150
+ },
151
+ {
152
+ "indexed": false,
153
+ "internalType": "uint256",
154
+ "name": "newValue",
155
+ "type": "uint256"
156
+ },
157
+ {
158
+ "indexed": false,
159
+ "internalType": "uint256",
160
+ "name": "timestamp",
161
+ "type": "uint256"
162
+ }
163
+ ],
164
+ "name": "SaleTimeUpdated",
165
+ "type": "event"
166
+ },
167
+ {
168
+ "anonymous": false,
169
+ "inputs": [
170
+ {
171
+ "indexed": true,
172
+ "internalType": "address",
173
+ "name": "token",
174
+ "type": "address"
175
+ },
176
+ {
177
+ "indexed": false,
178
+ "internalType": "uint256",
179
+ "name": "noOfTokens",
180
+ "type": "uint256"
181
+ },
182
+ {
183
+ "indexed": false,
184
+ "internalType": "uint256",
185
+ "name": "timestamp",
186
+ "type": "uint256"
187
+ }
188
+ ],
189
+ "name": "TokensAdded",
190
+ "type": "event"
191
+ },
192
+ {
193
+ "anonymous": false,
194
+ "inputs": [
195
+ {
196
+ "indexed": true,
197
+ "internalType": "address",
198
+ "name": "user",
199
+ "type": "address"
200
+ },
201
+ {
202
+ "indexed": true,
203
+ "internalType": "uint256",
204
+ "name": "tokensBought",
205
+ "type": "uint256"
206
+ },
207
+ {
208
+ "indexed": true,
209
+ "internalType": "address",
210
+ "name": "purchaseToken",
211
+ "type": "address"
212
+ },
213
+ {
214
+ "indexed": false,
215
+ "internalType": "uint256",
216
+ "name": "amountPaid",
217
+ "type": "uint256"
218
+ },
219
+ {
220
+ "indexed": false,
221
+ "internalType": "uint256",
222
+ "name": "usdEq",
223
+ "type": "uint256"
224
+ },
225
+ {
226
+ "indexed": false,
227
+ "internalType": "uint256",
228
+ "name": "timestamp",
229
+ "type": "uint256"
230
+ }
231
+ ],
232
+ "name": "TokensBought",
233
+ "type": "event"
234
+ },
235
+ {
236
+ "anonymous": false,
237
+ "inputs": [
238
+ {
239
+ "indexed": true,
240
+ "internalType": "address",
241
+ "name": "user",
242
+ "type": "address"
243
+ },
244
+ {
245
+ "indexed": true,
246
+ "internalType": "uint256",
247
+ "name": "tokensBought",
248
+ "type": "uint256"
249
+ },
250
+ {
251
+ "indexed": true,
252
+ "internalType": "address",
253
+ "name": "purchaseToken",
254
+ "type": "address"
255
+ },
256
+ {
257
+ "indexed": false,
258
+ "internalType": "uint256",
259
+ "name": "amountPaid",
260
+ "type": "uint256"
261
+ },
262
+ {
263
+ "indexed": false,
264
+ "internalType": "uint256",
265
+ "name": "usdEq",
266
+ "type": "uint256"
267
+ },
268
+ {
269
+ "indexed": false,
270
+ "internalType": "uint256",
271
+ "name": "timestamp",
272
+ "type": "uint256"
273
+ }
274
+ ],
275
+ "name": "TokensBoughtAndStaked",
276
+ "type": "event"
277
+ },
278
+ {
279
+ "anonymous": false,
280
+ "inputs": [
281
+ {
282
+ "indexed": true,
283
+ "internalType": "address",
284
+ "name": "user",
285
+ "type": "address"
286
+ },
287
+ {
288
+ "indexed": false,
289
+ "internalType": "uint256",
290
+ "name": "amount",
291
+ "type": "uint256"
292
+ },
293
+ {
294
+ "indexed": false,
295
+ "internalType": "uint256",
296
+ "name": "timestamp",
297
+ "type": "uint256"
298
+ }
299
+ ],
300
+ "name": "TokensClaimed",
301
+ "type": "event"
302
+ },
303
+ {
304
+ "anonymous": false,
305
+ "inputs": [
306
+ {
307
+ "indexed": true,
308
+ "internalType": "address",
309
+ "name": "user",
310
+ "type": "address"
311
+ },
312
+ {
313
+ "indexed": false,
314
+ "internalType": "uint256",
315
+ "name": "amount",
316
+ "type": "uint256"
317
+ },
318
+ {
319
+ "indexed": false,
320
+ "internalType": "uint256",
321
+ "name": "timestamp",
322
+ "type": "uint256"
323
+ }
324
+ ],
325
+ "name": "TokensClaimedAndStaked",
326
+ "type": "event"
327
+ },
328
+ {
329
+ "anonymous": false,
330
+ "inputs": [
331
+ {
332
+ "indexed": false,
333
+ "internalType": "address",
334
+ "name": "account",
335
+ "type": "address"
336
+ }
337
+ ],
338
+ "name": "Unpaused",
339
+ "type": "event"
340
+ },
341
+ {
342
+ "inputs": [],
343
+ "name": "USDCInterface",
344
+ "outputs": [
345
+ {
346
+ "internalType": "contract IERC20Upgradeable",
347
+ "name": "",
348
+ "type": "address"
349
+ }
350
+ ],
351
+ "stateMutability": "view",
352
+ "type": "function"
353
+ },
354
+ {
355
+ "inputs": [],
356
+ "name": "USDTInterface",
357
+ "outputs": [
358
+ {
359
+ "internalType": "contract IERC20Upgradeable",
360
+ "name": "",
361
+ "type": "address"
362
+ }
363
+ ],
364
+ "stateMutability": "view",
365
+ "type": "function"
366
+ },
367
+ {
368
+ "inputs": [],
369
+ "name": "admin",
370
+ "outputs": [
371
+ {
372
+ "internalType": "address",
373
+ "name": "",
374
+ "type": "address"
375
+ }
376
+ ],
377
+ "stateMutability": "view",
378
+ "type": "function"
379
+ },
380
+ {
381
+ "inputs": [],
382
+ "name": "aggregatorInterface",
383
+ "outputs": [
384
+ {
385
+ "internalType": "contract Aggregator",
386
+ "name": "",
387
+ "type": "address"
388
+ }
389
+ ],
390
+ "stateMutability": "view",
391
+ "type": "function"
392
+ },
393
+ {
394
+ "inputs": [],
395
+ "name": "applySanctions",
396
+ "outputs": [
397
+ {
398
+ "internalType": "bool",
399
+ "name": "",
400
+ "type": "bool"
401
+ }
402
+ ],
403
+ "stateMutability": "view",
404
+ "type": "function"
405
+ },
406
+ {
407
+ "inputs": [],
408
+ "name": "baseDecimals",
409
+ "outputs": [
410
+ {
411
+ "internalType": "uint256",
412
+ "name": "",
413
+ "type": "uint256"
414
+ }
415
+ ],
416
+ "stateMutability": "view",
417
+ "type": "function"
418
+ },
419
+ {
420
+ "inputs": [
421
+ {
422
+ "internalType": "address[]",
423
+ "name": "_usersToBlacklist",
424
+ "type": "address[]"
425
+ }
426
+ ],
427
+ "name": "blacklistUsers",
428
+ "outputs": [],
429
+ "stateMutability": "nonpayable",
430
+ "type": "function"
431
+ },
432
+ {
433
+ "inputs": [
434
+ {
435
+ "internalType": "address",
436
+ "name": "_user",
437
+ "type": "address"
438
+ },
439
+ {
440
+ "internalType": "uint256",
441
+ "name": "_amount",
442
+ "type": "uint256"
443
+ },
444
+ {
445
+ "internalType": "bool",
446
+ "name": "stake",
447
+ "type": "bool"
448
+ }
449
+ ],
450
+ "name": "buyWithETHWert",
451
+ "outputs": [
452
+ {
453
+ "internalType": "bool",
454
+ "name": "",
455
+ "type": "bool"
456
+ }
457
+ ],
458
+ "stateMutability": "payable",
459
+ "type": "function"
460
+ },
461
+ {
462
+ "inputs": [
463
+ {
464
+ "internalType": "uint256",
465
+ "name": "amount",
466
+ "type": "uint256"
467
+ },
468
+ {
469
+ "internalType": "bool",
470
+ "name": "stake",
471
+ "type": "bool"
472
+ }
473
+ ],
474
+ "name": "buyWithEth",
475
+ "outputs": [
476
+ {
477
+ "internalType": "bool",
478
+ "name": "",
479
+ "type": "bool"
480
+ }
481
+ ],
482
+ "stateMutability": "payable",
483
+ "type": "function"
484
+ },
485
+ {
486
+ "inputs": [
487
+ {
488
+ "internalType": "uint256",
489
+ "name": "amount",
490
+ "type": "uint256"
491
+ },
492
+ {
493
+ "internalType": "bool",
494
+ "name": "stake",
495
+ "type": "bool"
496
+ }
497
+ ],
498
+ "name": "buyWithUSDC",
499
+ "outputs": [
500
+ {
501
+ "internalType": "bool",
502
+ "name": "",
503
+ "type": "bool"
504
+ }
505
+ ],
506
+ "stateMutability": "nonpayable",
507
+ "type": "function"
508
+ },
509
+ {
510
+ "inputs": [
511
+ {
512
+ "internalType": "uint256",
513
+ "name": "amount",
514
+ "type": "uint256"
515
+ },
516
+ {
517
+ "internalType": "bool",
518
+ "name": "stake",
519
+ "type": "bool"
520
+ }
521
+ ],
522
+ "name": "buyWithUSDT",
523
+ "outputs": [
524
+ {
525
+ "internalType": "bool",
526
+ "name": "",
527
+ "type": "bool"
528
+ }
529
+ ],
530
+ "stateMutability": "nonpayable",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "inputs": [
535
+ {
536
+ "internalType": "uint256",
537
+ "name": "_amount",
538
+ "type": "uint256"
539
+ }
540
+ ],
541
+ "name": "calculatePrice",
542
+ "outputs": [
543
+ {
544
+ "internalType": "uint256",
545
+ "name": "",
546
+ "type": "uint256"
547
+ }
548
+ ],
549
+ "stateMutability": "view",
550
+ "type": "function"
551
+ },
552
+ {
553
+ "inputs": [
554
+ {
555
+ "internalType": "uint256",
556
+ "name": "_claimStart",
557
+ "type": "uint256"
558
+ }
559
+ ],
560
+ "name": "changeClaimStart",
561
+ "outputs": [
562
+ {
563
+ "internalType": "bool",
564
+ "name": "",
565
+ "type": "bool"
566
+ }
567
+ ],
568
+ "stateMutability": "nonpayable",
569
+ "type": "function"
570
+ },
571
+ {
572
+ "inputs": [
573
+ {
574
+ "internalType": "uint256",
575
+ "name": "_maxTokensToBuy",
576
+ "type": "uint256"
577
+ }
578
+ ],
579
+ "name": "changeMaxTokensToBuy",
580
+ "outputs": [],
581
+ "stateMutability": "nonpayable",
582
+ "type": "function"
583
+ },
584
+ {
585
+ "inputs": [
586
+ {
587
+ "internalType": "address",
588
+ "name": "_newPaymentWallet",
589
+ "type": "address"
590
+ }
591
+ ],
592
+ "name": "changePaymentWallet",
593
+ "outputs": [],
594
+ "stateMutability": "nonpayable",
595
+ "type": "function"
596
+ },
597
+ {
598
+ "inputs": [
599
+ {
600
+ "internalType": "uint256[][3]",
601
+ "name": "_rounds",
602
+ "type": "uint256[][3]"
603
+ }
604
+ ],
605
+ "name": "changeRoundsData",
606
+ "outputs": [],
607
+ "stateMutability": "nonpayable",
608
+ "type": "function"
609
+ },
610
+ {
611
+ "inputs": [
612
+ {
613
+ "internalType": "uint256",
614
+ "name": "_startTime",
615
+ "type": "uint256"
616
+ },
617
+ {
618
+ "internalType": "uint256",
619
+ "name": "_endTime",
620
+ "type": "uint256"
621
+ }
622
+ ],
623
+ "name": "changeSaleTimes",
624
+ "outputs": [],
625
+ "stateMutability": "nonpayable",
626
+ "type": "function"
627
+ },
628
+ {
629
+ "inputs": [],
630
+ "name": "checkPoint",
631
+ "outputs": [
632
+ {
633
+ "internalType": "uint256",
634
+ "name": "",
635
+ "type": "uint256"
636
+ }
637
+ ],
638
+ "stateMutability": "view",
639
+ "type": "function"
640
+ },
641
+ {
642
+ "inputs": [],
643
+ "name": "claim",
644
+ "outputs": [
645
+ {
646
+ "internalType": "bool",
647
+ "name": "",
648
+ "type": "bool"
649
+ }
650
+ ],
651
+ "stateMutability": "nonpayable",
652
+ "type": "function"
653
+ },
654
+ {
655
+ "inputs": [],
656
+ "name": "claimAndStake",
657
+ "outputs": [
658
+ {
659
+ "internalType": "bool",
660
+ "name": "",
661
+ "type": "bool"
662
+ }
663
+ ],
664
+ "stateMutability": "nonpayable",
665
+ "type": "function"
666
+ },
667
+ {
668
+ "inputs": [],
669
+ "name": "claimStart",
670
+ "outputs": [
671
+ {
672
+ "internalType": "uint256",
673
+ "name": "",
674
+ "type": "uint256"
675
+ }
676
+ ],
677
+ "stateMutability": "view",
678
+ "type": "function"
679
+ },
680
+ {
681
+ "inputs": [],
682
+ "name": "currentStep",
683
+ "outputs": [
684
+ {
685
+ "internalType": "uint256",
686
+ "name": "",
687
+ "type": "uint256"
688
+ }
689
+ ],
690
+ "stateMutability": "view",
691
+ "type": "function"
692
+ },
693
+ {
694
+ "inputs": [],
695
+ "name": "dynamicTimeFlag",
696
+ "outputs": [
697
+ {
698
+ "internalType": "bool",
699
+ "name": "",
700
+ "type": "bool"
701
+ }
702
+ ],
703
+ "stateMutability": "view",
704
+ "type": "function"
705
+ },
706
+ {
707
+ "inputs": [],
708
+ "name": "endTime",
709
+ "outputs": [
710
+ {
711
+ "internalType": "uint256",
712
+ "name": "",
713
+ "type": "uint256"
714
+ }
715
+ ],
716
+ "stateMutability": "view",
717
+ "type": "function"
718
+ },
719
+ {
720
+ "inputs": [
721
+ {
722
+ "internalType": "uint256",
723
+ "name": "amount",
724
+ "type": "uint256"
725
+ }
726
+ ],
727
+ "name": "ethBuyHelper",
728
+ "outputs": [
729
+ {
730
+ "internalType": "uint256",
731
+ "name": "ethAmount",
732
+ "type": "uint256"
733
+ }
734
+ ],
735
+ "stateMutability": "view",
736
+ "type": "function"
737
+ },
738
+ {
739
+ "inputs": [],
740
+ "name": "getLatestPrice",
741
+ "outputs": [
742
+ {
743
+ "internalType": "uint256",
744
+ "name": "",
745
+ "type": "uint256"
746
+ }
747
+ ],
748
+ "stateMutability": "view",
749
+ "type": "function"
750
+ },
751
+ {
752
+ "inputs": [
753
+ {
754
+ "internalType": "address",
755
+ "name": "",
756
+ "type": "address"
757
+ }
758
+ ],
759
+ "name": "hasClaimed",
760
+ "outputs": [
761
+ {
762
+ "internalType": "bool",
763
+ "name": "",
764
+ "type": "bool"
765
+ }
766
+ ],
767
+ "stateMutability": "view",
768
+ "type": "function"
769
+ },
770
+ {
771
+ "inputs": [],
772
+ "name": "incrementCurrentStep",
773
+ "outputs": [],
774
+ "stateMutability": "nonpayable",
775
+ "type": "function"
776
+ },
777
+ {
778
+ "inputs": [
779
+ {
780
+ "internalType": "address",
781
+ "name": "_oracle",
782
+ "type": "address"
783
+ },
784
+ {
785
+ "internalType": "address",
786
+ "name": "_usdt",
787
+ "type": "address"
788
+ },
789
+ {
790
+ "internalType": "uint256",
791
+ "name": "_startTime",
792
+ "type": "uint256"
793
+ },
794
+ {
795
+ "internalType": "uint256",
796
+ "name": "_endTime",
797
+ "type": "uint256"
798
+ },
799
+ {
800
+ "internalType": "uint256[][3]",
801
+ "name": "_rounds",
802
+ "type": "uint256[][3]"
803
+ },
804
+ {
805
+ "internalType": "uint256",
806
+ "name": "_maxTokensToBuy",
807
+ "type": "uint256"
808
+ },
809
+ {
810
+ "internalType": "address",
811
+ "name": "_paymentWallet",
812
+ "type": "address"
813
+ },
814
+ {
815
+ "internalType": "bool",
816
+ "name": "_dynamicTimeFlag",
817
+ "type": "bool"
818
+ },
819
+ {
820
+ "internalType": "uint256",
821
+ "name": "_timeConstant",
822
+ "type": "uint256"
823
+ }
824
+ ],
825
+ "name": "initialize",
826
+ "outputs": [],
827
+ "stateMutability": "nonpayable",
828
+ "type": "function"
829
+ },
830
+ {
831
+ "inputs": [
832
+ {
833
+ "internalType": "address",
834
+ "name": "",
835
+ "type": "address"
836
+ }
837
+ ],
838
+ "name": "isBlacklisted",
839
+ "outputs": [
840
+ {
841
+ "internalType": "bool",
842
+ "name": "",
843
+ "type": "bool"
844
+ }
845
+ ],
846
+ "stateMutability": "view",
847
+ "type": "function"
848
+ },
849
+ {
850
+ "inputs": [
851
+ {
852
+ "internalType": "address",
853
+ "name": "",
854
+ "type": "address"
855
+ }
856
+ ],
857
+ "name": "isWhitelisted",
858
+ "outputs": [
859
+ {
860
+ "internalType": "bool",
861
+ "name": "",
862
+ "type": "bool"
863
+ }
864
+ ],
865
+ "stateMutability": "view",
866
+ "type": "function"
867
+ },
868
+ {
869
+ "inputs": [],
870
+ "name": "maxTokensToBuy",
871
+ "outputs": [
872
+ {
873
+ "internalType": "uint256",
874
+ "name": "",
875
+ "type": "uint256"
876
+ }
877
+ ],
878
+ "stateMutability": "view",
879
+ "type": "function"
880
+ },
881
+ {
882
+ "inputs": [],
883
+ "name": "owner",
884
+ "outputs": [
885
+ {
886
+ "internalType": "address",
887
+ "name": "",
888
+ "type": "address"
889
+ }
890
+ ],
891
+ "stateMutability": "view",
892
+ "type": "function"
893
+ },
894
+ {
895
+ "inputs": [],
896
+ "name": "pause",
897
+ "outputs": [],
898
+ "stateMutability": "nonpayable",
899
+ "type": "function"
900
+ },
901
+ {
902
+ "inputs": [],
903
+ "name": "paused",
904
+ "outputs": [
905
+ {
906
+ "internalType": "bool",
907
+ "name": "",
908
+ "type": "bool"
909
+ }
910
+ ],
911
+ "stateMutability": "view",
912
+ "type": "function"
913
+ },
914
+ {
915
+ "inputs": [],
916
+ "name": "paymentWallet",
917
+ "outputs": [
918
+ {
919
+ "internalType": "address",
920
+ "name": "",
921
+ "type": "address"
922
+ }
923
+ ],
924
+ "stateMutability": "view",
925
+ "type": "function"
926
+ },
927
+ {
928
+ "inputs": [
929
+ {
930
+ "internalType": "uint256",
931
+ "name": "",
932
+ "type": "uint256"
933
+ }
934
+ ],
935
+ "name": "percentages",
936
+ "outputs": [
937
+ {
938
+ "internalType": "uint256",
939
+ "name": "",
940
+ "type": "uint256"
941
+ }
942
+ ],
943
+ "stateMutability": "view",
944
+ "type": "function"
945
+ },
946
+ {
947
+ "inputs": [
948
+ {
949
+ "internalType": "uint256",
950
+ "name": "",
951
+ "type": "uint256"
952
+ }
953
+ ],
954
+ "name": "prevCheckpoints",
955
+ "outputs": [
956
+ {
957
+ "internalType": "uint256",
958
+ "name": "",
959
+ "type": "uint256"
960
+ }
961
+ ],
962
+ "stateMutability": "view",
963
+ "type": "function"
964
+ },
965
+ {
966
+ "inputs": [
967
+ {
968
+ "internalType": "uint256",
969
+ "name": "",
970
+ "type": "uint256"
971
+ }
972
+ ],
973
+ "name": "remainingTokensTracker",
974
+ "outputs": [
975
+ {
976
+ "internalType": "uint256",
977
+ "name": "",
978
+ "type": "uint256"
979
+ }
980
+ ],
981
+ "stateMutability": "view",
982
+ "type": "function"
983
+ },
984
+ {
985
+ "inputs": [
986
+ {
987
+ "internalType": "address[]",
988
+ "name": "_userToRemoveFromBlacklist",
989
+ "type": "address[]"
990
+ }
991
+ ],
992
+ "name": "removeFromBlacklist",
993
+ "outputs": [],
994
+ "stateMutability": "nonpayable",
995
+ "type": "function"
996
+ },
997
+ {
998
+ "inputs": [
999
+ {
1000
+ "internalType": "address[]",
1001
+ "name": "_userToRemoveFromWhitelist",
1002
+ "type": "address[]"
1003
+ }
1004
+ ],
1005
+ "name": "removeFromWhitelist",
1006
+ "outputs": [],
1007
+ "stateMutability": "nonpayable",
1008
+ "type": "function"
1009
+ },
1010
+ {
1011
+ "inputs": [
1012
+ {
1013
+ "internalType": "address[]",
1014
+ "name": "_addressesToRemoveFromWhitelist",
1015
+ "type": "address[]"
1016
+ }
1017
+ ],
1018
+ "name": "removeFromWhitelistForWERT",
1019
+ "outputs": [],
1020
+ "stateMutability": "nonpayable",
1021
+ "type": "function"
1022
+ },
1023
+ {
1024
+ "inputs": [],
1025
+ "name": "renounceOwnership",
1026
+ "outputs": [],
1027
+ "stateMutability": "nonpayable",
1028
+ "type": "function"
1029
+ },
1030
+ {
1031
+ "inputs": [
1032
+ {
1033
+ "internalType": "uint256",
1034
+ "name": "_no",
1035
+ "type": "uint256"
1036
+ }
1037
+ ],
1038
+ "name": "roundDetails",
1039
+ "outputs": [
1040
+ {
1041
+ "internalType": "uint256[]",
1042
+ "name": "",
1043
+ "type": "uint256[]"
1044
+ }
1045
+ ],
1046
+ "stateMutability": "view",
1047
+ "type": "function"
1048
+ },
1049
+ {
1050
+ "inputs": [
1051
+ {
1052
+ "internalType": "uint256",
1053
+ "name": "",
1054
+ "type": "uint256"
1055
+ },
1056
+ {
1057
+ "internalType": "uint256",
1058
+ "name": "",
1059
+ "type": "uint256"
1060
+ }
1061
+ ],
1062
+ "name": "rounds",
1063
+ "outputs": [
1064
+ {
1065
+ "internalType": "uint256",
1066
+ "name": "",
1067
+ "type": "uint256"
1068
+ }
1069
+ ],
1070
+ "stateMutability": "view",
1071
+ "type": "function"
1072
+ },
1073
+ {
1074
+ "inputs": [],
1075
+ "name": "saleToken",
1076
+ "outputs": [
1077
+ {
1078
+ "internalType": "address",
1079
+ "name": "",
1080
+ "type": "address"
1081
+ }
1082
+ ],
1083
+ "stateMutability": "view",
1084
+ "type": "function"
1085
+ },
1086
+ {
1087
+ "inputs": [],
1088
+ "name": "sanctionsList",
1089
+ "outputs": [
1090
+ {
1091
+ "internalType": "contract ISanctionsList",
1092
+ "name": "",
1093
+ "type": "address"
1094
+ }
1095
+ ],
1096
+ "stateMutability": "view",
1097
+ "type": "function"
1098
+ },
1099
+ {
1100
+ "inputs": [
1101
+ {
1102
+ "internalType": "address",
1103
+ "name": "_admin",
1104
+ "type": "address"
1105
+ }
1106
+ ],
1107
+ "name": "setAdmin",
1108
+ "outputs": [],
1109
+ "stateMutability": "nonpayable",
1110
+ "type": "function"
1111
+ },
1112
+ {
1113
+ "inputs": [
1114
+ {
1115
+ "internalType": "bool",
1116
+ "name": "_status",
1117
+ "type": "bool"
1118
+ }
1119
+ ],
1120
+ "name": "setClaimWhitelistStatus",
1121
+ "outputs": [],
1122
+ "stateMutability": "nonpayable",
1123
+ "type": "function"
1124
+ },
1125
+ {
1126
+ "inputs": [
1127
+ {
1128
+ "internalType": "uint256",
1129
+ "name": "_step",
1130
+ "type": "uint256"
1131
+ },
1132
+ {
1133
+ "internalType": "uint256",
1134
+ "name": "_checkpoint",
1135
+ "type": "uint256"
1136
+ }
1137
+ ],
1138
+ "name": "setCurrentStep",
1139
+ "outputs": [],
1140
+ "stateMutability": "nonpayable",
1141
+ "type": "function"
1142
+ },
1143
+ {
1144
+ "inputs": [
1145
+ {
1146
+ "internalType": "bool",
1147
+ "name": "_dynamicTimeFlag",
1148
+ "type": "bool"
1149
+ }
1150
+ ],
1151
+ "name": "setDynamicTimeFlag",
1152
+ "outputs": [],
1153
+ "stateMutability": "nonpayable",
1154
+ "type": "function"
1155
+ },
1156
+ {
1157
+ "inputs": [
1158
+ {
1159
+ "internalType": "uint256[]",
1160
+ "name": "_unsoldTokens",
1161
+ "type": "uint256[]"
1162
+ }
1163
+ ],
1164
+ "name": "setRemainingTokensArray",
1165
+ "outputs": [],
1166
+ "stateMutability": "nonpayable",
1167
+ "type": "function"
1168
+ },
1169
+ {
1170
+ "inputs": [
1171
+ {
1172
+ "internalType": "address",
1173
+ "name": "_sanctionContract",
1174
+ "type": "address"
1175
+ },
1176
+ {
1177
+ "internalType": "bool",
1178
+ "name": "_applySanction",
1179
+ "type": "bool"
1180
+ }
1181
+ ],
1182
+ "name": "setSanctions",
1183
+ "outputs": [],
1184
+ "stateMutability": "nonpayable",
1185
+ "type": "function"
1186
+ },
1187
+ {
1188
+ "inputs": [
1189
+ {
1190
+ "internalType": "address[]",
1191
+ "name": "_wallets",
1192
+ "type": "address[]"
1193
+ },
1194
+ {
1195
+ "internalType": "uint256[]",
1196
+ "name": "_percentages",
1197
+ "type": "uint256[]"
1198
+ }
1199
+ ],
1200
+ "name": "setSplits",
1201
+ "outputs": [],
1202
+ "stateMutability": "nonpayable",
1203
+ "type": "function"
1204
+ },
1205
+ {
1206
+ "inputs": [
1207
+ {
1208
+ "internalType": "bool",
1209
+ "name": "_status",
1210
+ "type": "bool"
1211
+ }
1212
+ ],
1213
+ "name": "setStakeingWhitelistStatus",
1214
+ "outputs": [],
1215
+ "stateMutability": "nonpayable",
1216
+ "type": "function"
1217
+ },
1218
+ {
1219
+ "inputs": [
1220
+ {
1221
+ "internalType": "address",
1222
+ "name": "_stakingManagerAddress",
1223
+ "type": "address"
1224
+ }
1225
+ ],
1226
+ "name": "setStakingManager",
1227
+ "outputs": [],
1228
+ "stateMutability": "nonpayable",
1229
+ "type": "function"
1230
+ },
1231
+ {
1232
+ "inputs": [
1233
+ {
1234
+ "internalType": "uint256",
1235
+ "name": "_timeConstant",
1236
+ "type": "uint256"
1237
+ }
1238
+ ],
1239
+ "name": "setTimeConstant",
1240
+ "outputs": [],
1241
+ "stateMutability": "nonpayable",
1242
+ "type": "function"
1243
+ },
1244
+ {
1245
+ "inputs": [
1246
+ {
1247
+ "internalType": "address",
1248
+ "name": "_usdc",
1249
+ "type": "address"
1250
+ }
1251
+ ],
1252
+ "name": "setUSDCInterface",
1253
+ "outputs": [],
1254
+ "stateMutability": "nonpayable",
1255
+ "type": "function"
1256
+ },
1257
+ {
1258
+ "inputs": [],
1259
+ "name": "stakeingWhitelistStatus",
1260
+ "outputs": [
1261
+ {
1262
+ "internalType": "bool",
1263
+ "name": "",
1264
+ "type": "bool"
1265
+ }
1266
+ ],
1267
+ "stateMutability": "view",
1268
+ "type": "function"
1269
+ },
1270
+ {
1271
+ "inputs": [],
1272
+ "name": "stakingManagerInterface",
1273
+ "outputs": [
1274
+ {
1275
+ "internalType": "contract StakingManager",
1276
+ "name": "",
1277
+ "type": "address"
1278
+ }
1279
+ ],
1280
+ "stateMutability": "view",
1281
+ "type": "function"
1282
+ },
1283
+ {
1284
+ "inputs": [
1285
+ {
1286
+ "internalType": "uint256",
1287
+ "name": "_claimStart",
1288
+ "type": "uint256"
1289
+ },
1290
+ {
1291
+ "internalType": "uint256",
1292
+ "name": "noOfTokens",
1293
+ "type": "uint256"
1294
+ },
1295
+ {
1296
+ "internalType": "address",
1297
+ "name": "_saleToken",
1298
+ "type": "address"
1299
+ },
1300
+ {
1301
+ "internalType": "address",
1302
+ "name": "_stakingManagerAddress",
1303
+ "type": "address"
1304
+ }
1305
+ ],
1306
+ "name": "startClaim",
1307
+ "outputs": [
1308
+ {
1309
+ "internalType": "bool",
1310
+ "name": "",
1311
+ "type": "bool"
1312
+ }
1313
+ ],
1314
+ "stateMutability": "nonpayable",
1315
+ "type": "function"
1316
+ },
1317
+ {
1318
+ "inputs": [],
1319
+ "name": "startTime",
1320
+ "outputs": [
1321
+ {
1322
+ "internalType": "uint256",
1323
+ "name": "",
1324
+ "type": "uint256"
1325
+ }
1326
+ ],
1327
+ "stateMutability": "view",
1328
+ "type": "function"
1329
+ },
1330
+ {
1331
+ "inputs": [],
1332
+ "name": "timeConstant",
1333
+ "outputs": [
1334
+ {
1335
+ "internalType": "uint256",
1336
+ "name": "",
1337
+ "type": "uint256"
1338
+ }
1339
+ ],
1340
+ "stateMutability": "view",
1341
+ "type": "function"
1342
+ },
1343
+ {
1344
+ "inputs": [],
1345
+ "name": "totalBoughtAndStaked",
1346
+ "outputs": [
1347
+ {
1348
+ "internalType": "uint256",
1349
+ "name": "",
1350
+ "type": "uint256"
1351
+ }
1352
+ ],
1353
+ "stateMutability": "view",
1354
+ "type": "function"
1355
+ },
1356
+ {
1357
+ "inputs": [],
1358
+ "name": "totalTokensSold",
1359
+ "outputs": [
1360
+ {
1361
+ "internalType": "uint256",
1362
+ "name": "",
1363
+ "type": "uint256"
1364
+ }
1365
+ ],
1366
+ "stateMutability": "view",
1367
+ "type": "function"
1368
+ },
1369
+ {
1370
+ "inputs": [],
1371
+ "name": "trackRemainingTokens",
1372
+ "outputs": [
1373
+ {
1374
+ "internalType": "uint256[]",
1375
+ "name": "",
1376
+ "type": "uint256[]"
1377
+ }
1378
+ ],
1379
+ "stateMutability": "view",
1380
+ "type": "function"
1381
+ },
1382
+ {
1383
+ "inputs": [
1384
+ {
1385
+ "internalType": "address",
1386
+ "name": "newOwner",
1387
+ "type": "address"
1388
+ }
1389
+ ],
1390
+ "name": "transferOwnership",
1391
+ "outputs": [],
1392
+ "stateMutability": "nonpayable",
1393
+ "type": "function"
1394
+ },
1395
+ {
1396
+ "inputs": [],
1397
+ "name": "unpause",
1398
+ "outputs": [],
1399
+ "stateMutability": "nonpayable",
1400
+ "type": "function"
1401
+ },
1402
+ {
1403
+ "inputs": [
1404
+ {
1405
+ "internalType": "address[]",
1406
+ "name": "_users",
1407
+ "type": "address[]"
1408
+ },
1409
+ {
1410
+ "internalType": "uint256[]",
1411
+ "name": "_userDeposits",
1412
+ "type": "uint256[]"
1413
+ }
1414
+ ],
1415
+ "name": "updateFromBSC",
1416
+ "outputs": [],
1417
+ "stateMutability": "nonpayable",
1418
+ "type": "function"
1419
+ },
1420
+ {
1421
+ "inputs": [],
1422
+ "name": "usdRaised",
1423
+ "outputs": [
1424
+ {
1425
+ "internalType": "uint256",
1426
+ "name": "",
1427
+ "type": "uint256"
1428
+ }
1429
+ ],
1430
+ "stateMutability": "view",
1431
+ "type": "function"
1432
+ },
1433
+ {
1434
+ "inputs": [
1435
+ {
1436
+ "internalType": "uint256",
1437
+ "name": "amount",
1438
+ "type": "uint256"
1439
+ }
1440
+ ],
1441
+ "name": "usdtBuyHelper",
1442
+ "outputs": [
1443
+ {
1444
+ "internalType": "uint256",
1445
+ "name": "usdPrice",
1446
+ "type": "uint256"
1447
+ }
1448
+ ],
1449
+ "stateMutability": "view",
1450
+ "type": "function"
1451
+ },
1452
+ {
1453
+ "inputs": [
1454
+ {
1455
+ "internalType": "address",
1456
+ "name": "",
1457
+ "type": "address"
1458
+ }
1459
+ ],
1460
+ "name": "userDeposits",
1461
+ "outputs": [
1462
+ {
1463
+ "internalType": "uint256",
1464
+ "name": "",
1465
+ "type": "uint256"
1466
+ }
1467
+ ],
1468
+ "stateMutability": "view",
1469
+ "type": "function"
1470
+ },
1471
+ {
1472
+ "inputs": [
1473
+ {
1474
+ "internalType": "uint256",
1475
+ "name": "",
1476
+ "type": "uint256"
1477
+ }
1478
+ ],
1479
+ "name": "wallets",
1480
+ "outputs": [
1481
+ {
1482
+ "internalType": "address",
1483
+ "name": "",
1484
+ "type": "address"
1485
+ }
1486
+ ],
1487
+ "stateMutability": "view",
1488
+ "type": "function"
1489
+ },
1490
+ {
1491
+ "inputs": [
1492
+ {
1493
+ "internalType": "address",
1494
+ "name": "",
1495
+ "type": "address"
1496
+ }
1497
+ ],
1498
+ "name": "wertWhitelisted",
1499
+ "outputs": [
1500
+ {
1501
+ "internalType": "bool",
1502
+ "name": "",
1503
+ "type": "bool"
1504
+ }
1505
+ ],
1506
+ "stateMutability": "view",
1507
+ "type": "function"
1508
+ },
1509
+ {
1510
+ "inputs": [],
1511
+ "name": "whitelistClaimOnly",
1512
+ "outputs": [
1513
+ {
1514
+ "internalType": "bool",
1515
+ "name": "",
1516
+ "type": "bool"
1517
+ }
1518
+ ],
1519
+ "stateMutability": "view",
1520
+ "type": "function"
1521
+ },
1522
+ {
1523
+ "inputs": [
1524
+ {
1525
+ "internalType": "address[]",
1526
+ "name": "_usersToWhitelist",
1527
+ "type": "address[]"
1528
+ }
1529
+ ],
1530
+ "name": "whitelistUsers",
1531
+ "outputs": [],
1532
+ "stateMutability": "nonpayable",
1533
+ "type": "function"
1534
+ },
1535
+ {
1536
+ "inputs": [
1537
+ {
1538
+ "internalType": "address[]",
1539
+ "name": "_addressesToWhitelist",
1540
+ "type": "address[]"
1541
+ }
1542
+ ],
1543
+ "name": "whitelistUsersForWERT",
1544
+ "outputs": [],
1545
+ "stateMutability": "nonpayable",
1546
+ "type": "function"
1547
+ }
1548
+ ];
1549
+ /**
1550
+ * PresaleV2_json Contract Class
1551
+ *
1552
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
1553
+ *
1554
+ * @example
1555
+ * ```typescript
1556
+ * import { createPublicClient, createWalletClient, http } from 'viem';
1557
+ * import { mainnet } from 'viem/chains';
1558
+ * import { PresaleV2_json } from 'PresaleV2_json';
1559
+ *
1560
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1561
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1562
+ *
1563
+ * const contract = new PresaleV2_json('0x...', { publicClient, walletClient });
1564
+ *
1565
+ * // Read functions
1566
+ * const result = await contract.balanceOf('0x...');
1567
+ *
1568
+ * // Write functions
1569
+ * const hash = await contract.transfer('0x...', 1000n);
1570
+ *
1571
+ * // Simulate transactions (dry-run)
1572
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
1573
+ * console.log('Gas estimate:', simulation.request.gas);
1574
+ *
1575
+ * // Watch events
1576
+ * const unwatch = contract.watch.Transfer((event) => {
1577
+ * console.log('Transfer event:', event);
1578
+ * });
1579
+ * ```
1580
+ */
1581
+ class PresaleV2_json {
1582
+ constructor(address, clients) {
1583
+ this.contractAddress = address;
1584
+ this.publicClient = clients.publicClient;
1585
+ this.contract = (0, viem_1.getContract)({
1586
+ address,
1587
+ abi: exports.PresaleV2_jsonAbi,
1588
+ client: {
1589
+ public: clients.publicClient,
1590
+ wallet: clients.walletClient,
1591
+ },
1592
+ });
1593
+ }
1594
+ /**
1595
+ * Get the contract address
1596
+ */
1597
+ get address() {
1598
+ return this.contractAddress;
1599
+ }
1600
+ /**
1601
+ * Get the underlying viem contract instance
1602
+ */
1603
+ getContract() {
1604
+ return this.contract;
1605
+ }
1606
+ /**
1607
+ * USDCInterface
1608
+ * view
1609
+ */
1610
+ async USDCInterface() {
1611
+ return this.contract.read.USDCInterface();
1612
+ }
1613
+ /**
1614
+ * USDTInterface
1615
+ * view
1616
+ */
1617
+ async USDTInterface() {
1618
+ return this.contract.read.USDTInterface();
1619
+ }
1620
+ /**
1621
+ * admin
1622
+ * view
1623
+ */
1624
+ async admin() {
1625
+ return this.contract.read.admin();
1626
+ }
1627
+ /**
1628
+ * aggregatorInterface
1629
+ * view
1630
+ */
1631
+ async aggregatorInterface() {
1632
+ return this.contract.read.aggregatorInterface();
1633
+ }
1634
+ /**
1635
+ * applySanctions
1636
+ * view
1637
+ */
1638
+ async applySanctions() {
1639
+ return this.contract.read.applySanctions();
1640
+ }
1641
+ /**
1642
+ * baseDecimals
1643
+ * view
1644
+ */
1645
+ async baseDecimals() {
1646
+ return this.contract.read.baseDecimals();
1647
+ }
1648
+ /**
1649
+ * calculatePrice
1650
+ * view
1651
+ */
1652
+ async calculatePrice(_amount) {
1653
+ return this.contract.read.calculatePrice([_amount]);
1654
+ }
1655
+ /**
1656
+ * checkPoint
1657
+ * view
1658
+ */
1659
+ async checkPoint() {
1660
+ return this.contract.read.checkPoint();
1661
+ }
1662
+ /**
1663
+ * claimStart
1664
+ * view
1665
+ */
1666
+ async claimStart() {
1667
+ return this.contract.read.claimStart();
1668
+ }
1669
+ /**
1670
+ * currentStep
1671
+ * view
1672
+ */
1673
+ async currentStep() {
1674
+ return this.contract.read.currentStep();
1675
+ }
1676
+ /**
1677
+ * dynamicTimeFlag
1678
+ * view
1679
+ */
1680
+ async dynamicTimeFlag() {
1681
+ return this.contract.read.dynamicTimeFlag();
1682
+ }
1683
+ /**
1684
+ * endTime
1685
+ * view
1686
+ */
1687
+ async endTime() {
1688
+ return this.contract.read.endTime();
1689
+ }
1690
+ /**
1691
+ * ethBuyHelper
1692
+ * view
1693
+ */
1694
+ async ethBuyHelper(amount) {
1695
+ return this.contract.read.ethBuyHelper([amount]);
1696
+ }
1697
+ /**
1698
+ * getLatestPrice
1699
+ * view
1700
+ */
1701
+ async getLatestPrice() {
1702
+ return this.contract.read.getLatestPrice();
1703
+ }
1704
+ /**
1705
+ * hasClaimed
1706
+ * view
1707
+ */
1708
+ async hasClaimed(arg0) {
1709
+ return this.contract.read.hasClaimed([arg0]);
1710
+ }
1711
+ /**
1712
+ * isBlacklisted
1713
+ * view
1714
+ */
1715
+ async isBlacklisted(arg0) {
1716
+ return this.contract.read.isBlacklisted([arg0]);
1717
+ }
1718
+ /**
1719
+ * isWhitelisted
1720
+ * view
1721
+ */
1722
+ async isWhitelisted(arg0) {
1723
+ return this.contract.read.isWhitelisted([arg0]);
1724
+ }
1725
+ /**
1726
+ * maxTokensToBuy
1727
+ * view
1728
+ */
1729
+ async maxTokensToBuy() {
1730
+ return this.contract.read.maxTokensToBuy();
1731
+ }
1732
+ /**
1733
+ * owner
1734
+ * view
1735
+ */
1736
+ async owner() {
1737
+ return this.contract.read.owner();
1738
+ }
1739
+ /**
1740
+ * paused
1741
+ * view
1742
+ */
1743
+ async paused() {
1744
+ return this.contract.read.paused();
1745
+ }
1746
+ /**
1747
+ * paymentWallet
1748
+ * view
1749
+ */
1750
+ async paymentWallet() {
1751
+ return this.contract.read.paymentWallet();
1752
+ }
1753
+ /**
1754
+ * percentages
1755
+ * view
1756
+ */
1757
+ async percentages(arg0) {
1758
+ return this.contract.read.percentages([arg0]);
1759
+ }
1760
+ /**
1761
+ * prevCheckpoints
1762
+ * view
1763
+ */
1764
+ async prevCheckpoints(arg0) {
1765
+ return this.contract.read.prevCheckpoints([arg0]);
1766
+ }
1767
+ /**
1768
+ * remainingTokensTracker
1769
+ * view
1770
+ */
1771
+ async remainingTokensTracker(arg0) {
1772
+ return this.contract.read.remainingTokensTracker([arg0]);
1773
+ }
1774
+ /**
1775
+ * roundDetails
1776
+ * view
1777
+ */
1778
+ async roundDetails(_no) {
1779
+ return this.contract.read.roundDetails([_no]);
1780
+ }
1781
+ /**
1782
+ * rounds
1783
+ * view
1784
+ */
1785
+ async rounds(arg0, arg1) {
1786
+ return this.contract.read.rounds([arg0, arg1]);
1787
+ }
1788
+ /**
1789
+ * saleToken
1790
+ * view
1791
+ */
1792
+ async saleToken() {
1793
+ return this.contract.read.saleToken();
1794
+ }
1795
+ /**
1796
+ * sanctionsList
1797
+ * view
1798
+ */
1799
+ async sanctionsList() {
1800
+ return this.contract.read.sanctionsList();
1801
+ }
1802
+ /**
1803
+ * stakeingWhitelistStatus
1804
+ * view
1805
+ */
1806
+ async stakeingWhitelistStatus() {
1807
+ return this.contract.read.stakeingWhitelistStatus();
1808
+ }
1809
+ /**
1810
+ * stakingManagerInterface
1811
+ * view
1812
+ */
1813
+ async stakingManagerInterface() {
1814
+ return this.contract.read.stakingManagerInterface();
1815
+ }
1816
+ /**
1817
+ * startTime
1818
+ * view
1819
+ */
1820
+ async startTime() {
1821
+ return this.contract.read.startTime();
1822
+ }
1823
+ /**
1824
+ * timeConstant
1825
+ * view
1826
+ */
1827
+ async timeConstant() {
1828
+ return this.contract.read.timeConstant();
1829
+ }
1830
+ /**
1831
+ * totalBoughtAndStaked
1832
+ * view
1833
+ */
1834
+ async totalBoughtAndStaked() {
1835
+ return this.contract.read.totalBoughtAndStaked();
1836
+ }
1837
+ /**
1838
+ * totalTokensSold
1839
+ * view
1840
+ */
1841
+ async totalTokensSold() {
1842
+ return this.contract.read.totalTokensSold();
1843
+ }
1844
+ /**
1845
+ * trackRemainingTokens
1846
+ * view
1847
+ */
1848
+ async trackRemainingTokens() {
1849
+ return this.contract.read.trackRemainingTokens();
1850
+ }
1851
+ /**
1852
+ * usdRaised
1853
+ * view
1854
+ */
1855
+ async usdRaised() {
1856
+ return this.contract.read.usdRaised();
1857
+ }
1858
+ /**
1859
+ * usdtBuyHelper
1860
+ * view
1861
+ */
1862
+ async usdtBuyHelper(amount) {
1863
+ return this.contract.read.usdtBuyHelper([amount]);
1864
+ }
1865
+ /**
1866
+ * userDeposits
1867
+ * view
1868
+ */
1869
+ async userDeposits(arg0) {
1870
+ return this.contract.read.userDeposits([arg0]);
1871
+ }
1872
+ /**
1873
+ * wallets
1874
+ * view
1875
+ */
1876
+ async wallets(arg0) {
1877
+ return this.contract.read.wallets([arg0]);
1878
+ }
1879
+ /**
1880
+ * wertWhitelisted
1881
+ * view
1882
+ */
1883
+ async wertWhitelisted(arg0) {
1884
+ return this.contract.read.wertWhitelisted([arg0]);
1885
+ }
1886
+ /**
1887
+ * whitelistClaimOnly
1888
+ * view
1889
+ */
1890
+ async whitelistClaimOnly() {
1891
+ return this.contract.read.whitelistClaimOnly();
1892
+ }
1893
+ /**
1894
+ * blacklistUsers
1895
+ * nonpayable
1896
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1897
+ */
1898
+ async blacklistUsers(_usersToBlacklist, options) {
1899
+ if (!this.contract.write) {
1900
+ throw new Error('Wallet client is required for write operations');
1901
+ }
1902
+ return this.contract.write.blacklistUsers([_usersToBlacklist], options);
1903
+ }
1904
+ /**
1905
+ * buyWithETHWert
1906
+ * payable
1907
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1908
+ */
1909
+ async buyWithETHWert(_user, _amount, stake, options) {
1910
+ if (!this.contract.write) {
1911
+ throw new Error('Wallet client is required for write operations');
1912
+ }
1913
+ return this.contract.write.buyWithETHWert([_user, _amount, stake], options);
1914
+ }
1915
+ /**
1916
+ * buyWithEth
1917
+ * payable
1918
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1919
+ */
1920
+ async buyWithEth(amount, stake, options) {
1921
+ if (!this.contract.write) {
1922
+ throw new Error('Wallet client is required for write operations');
1923
+ }
1924
+ return this.contract.write.buyWithEth([amount, stake], options);
1925
+ }
1926
+ /**
1927
+ * buyWithUSDC
1928
+ * nonpayable
1929
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1930
+ */
1931
+ async buyWithUSDC(amount, stake, options) {
1932
+ if (!this.contract.write) {
1933
+ throw new Error('Wallet client is required for write operations');
1934
+ }
1935
+ return this.contract.write.buyWithUSDC([amount, stake], options);
1936
+ }
1937
+ /**
1938
+ * buyWithUSDT
1939
+ * nonpayable
1940
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1941
+ */
1942
+ async buyWithUSDT(amount, stake, options) {
1943
+ if (!this.contract.write) {
1944
+ throw new Error('Wallet client is required for write operations');
1945
+ }
1946
+ return this.contract.write.buyWithUSDT([amount, stake], options);
1947
+ }
1948
+ /**
1949
+ * changeClaimStart
1950
+ * nonpayable
1951
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1952
+ */
1953
+ async changeClaimStart(_claimStart, options) {
1954
+ if (!this.contract.write) {
1955
+ throw new Error('Wallet client is required for write operations');
1956
+ }
1957
+ return this.contract.write.changeClaimStart([_claimStart], options);
1958
+ }
1959
+ /**
1960
+ * changeMaxTokensToBuy
1961
+ * nonpayable
1962
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1963
+ */
1964
+ async changeMaxTokensToBuy(_maxTokensToBuy, options) {
1965
+ if (!this.contract.write) {
1966
+ throw new Error('Wallet client is required for write operations');
1967
+ }
1968
+ return this.contract.write.changeMaxTokensToBuy([_maxTokensToBuy], options);
1969
+ }
1970
+ /**
1971
+ * changePaymentWallet
1972
+ * nonpayable
1973
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1974
+ */
1975
+ async changePaymentWallet(_newPaymentWallet, options) {
1976
+ if (!this.contract.write) {
1977
+ throw new Error('Wallet client is required for write operations');
1978
+ }
1979
+ return this.contract.write.changePaymentWallet([_newPaymentWallet], options);
1980
+ }
1981
+ /**
1982
+ * changeRoundsData
1983
+ * nonpayable
1984
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1985
+ */
1986
+ async changeRoundsData(_rounds, options) {
1987
+ if (!this.contract.write) {
1988
+ throw new Error('Wallet client is required for write operations');
1989
+ }
1990
+ return this.contract.write.changeRoundsData([_rounds], options);
1991
+ }
1992
+ /**
1993
+ * changeSaleTimes
1994
+ * nonpayable
1995
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1996
+ */
1997
+ async changeSaleTimes(_startTime, _endTime, options) {
1998
+ if (!this.contract.write) {
1999
+ throw new Error('Wallet client is required for write operations');
2000
+ }
2001
+ return this.contract.write.changeSaleTimes([_startTime, _endTime], options);
2002
+ }
2003
+ /**
2004
+ * claim
2005
+ * nonpayable
2006
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2007
+ */
2008
+ async claim(options) {
2009
+ if (!this.contract.write) {
2010
+ throw new Error('Wallet client is required for write operations');
2011
+ }
2012
+ return this.contract.write.claim(options);
2013
+ }
2014
+ /**
2015
+ * claimAndStake
2016
+ * nonpayable
2017
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2018
+ */
2019
+ async claimAndStake(options) {
2020
+ if (!this.contract.write) {
2021
+ throw new Error('Wallet client is required for write operations');
2022
+ }
2023
+ return this.contract.write.claimAndStake(options);
2024
+ }
2025
+ /**
2026
+ * incrementCurrentStep
2027
+ * nonpayable
2028
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2029
+ */
2030
+ async incrementCurrentStep(options) {
2031
+ if (!this.contract.write) {
2032
+ throw new Error('Wallet client is required for write operations');
2033
+ }
2034
+ return this.contract.write.incrementCurrentStep(options);
2035
+ }
2036
+ /**
2037
+ * initialize
2038
+ * nonpayable
2039
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2040
+ */
2041
+ async initialize(_oracle, _usdt, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant, options) {
2042
+ if (!this.contract.write) {
2043
+ throw new Error('Wallet client is required for write operations');
2044
+ }
2045
+ return this.contract.write.initialize([_oracle, _usdt, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant], options);
2046
+ }
2047
+ /**
2048
+ * pause
2049
+ * nonpayable
2050
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2051
+ */
2052
+ async pause(options) {
2053
+ if (!this.contract.write) {
2054
+ throw new Error('Wallet client is required for write operations');
2055
+ }
2056
+ return this.contract.write.pause(options);
2057
+ }
2058
+ /**
2059
+ * removeFromBlacklist
2060
+ * nonpayable
2061
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2062
+ */
2063
+ async removeFromBlacklist(_userToRemoveFromBlacklist, options) {
2064
+ if (!this.contract.write) {
2065
+ throw new Error('Wallet client is required for write operations');
2066
+ }
2067
+ return this.contract.write.removeFromBlacklist([_userToRemoveFromBlacklist], options);
2068
+ }
2069
+ /**
2070
+ * removeFromWhitelist
2071
+ * nonpayable
2072
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2073
+ */
2074
+ async removeFromWhitelist(_userToRemoveFromWhitelist, options) {
2075
+ if (!this.contract.write) {
2076
+ throw new Error('Wallet client is required for write operations');
2077
+ }
2078
+ return this.contract.write.removeFromWhitelist([_userToRemoveFromWhitelist], options);
2079
+ }
2080
+ /**
2081
+ * removeFromWhitelistForWERT
2082
+ * nonpayable
2083
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2084
+ */
2085
+ async removeFromWhitelistForWERT(_addressesToRemoveFromWhitelist, options) {
2086
+ if (!this.contract.write) {
2087
+ throw new Error('Wallet client is required for write operations');
2088
+ }
2089
+ return this.contract.write.removeFromWhitelistForWERT([_addressesToRemoveFromWhitelist], options);
2090
+ }
2091
+ /**
2092
+ * renounceOwnership
2093
+ * nonpayable
2094
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2095
+ */
2096
+ async renounceOwnership(options) {
2097
+ if (!this.contract.write) {
2098
+ throw new Error('Wallet client is required for write operations');
2099
+ }
2100
+ return this.contract.write.renounceOwnership(options);
2101
+ }
2102
+ /**
2103
+ * setAdmin
2104
+ * nonpayable
2105
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2106
+ */
2107
+ async setAdmin(_admin, options) {
2108
+ if (!this.contract.write) {
2109
+ throw new Error('Wallet client is required for write operations');
2110
+ }
2111
+ return this.contract.write.setAdmin([_admin], options);
2112
+ }
2113
+ /**
2114
+ * setClaimWhitelistStatus
2115
+ * nonpayable
2116
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2117
+ */
2118
+ async setClaimWhitelistStatus(_status, options) {
2119
+ if (!this.contract.write) {
2120
+ throw new Error('Wallet client is required for write operations');
2121
+ }
2122
+ return this.contract.write.setClaimWhitelistStatus([_status], options);
2123
+ }
2124
+ /**
2125
+ * setCurrentStep
2126
+ * nonpayable
2127
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2128
+ */
2129
+ async setCurrentStep(_step, _checkpoint, options) {
2130
+ if (!this.contract.write) {
2131
+ throw new Error('Wallet client is required for write operations');
2132
+ }
2133
+ return this.contract.write.setCurrentStep([_step, _checkpoint], options);
2134
+ }
2135
+ /**
2136
+ * setDynamicTimeFlag
2137
+ * nonpayable
2138
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2139
+ */
2140
+ async setDynamicTimeFlag(_dynamicTimeFlag, options) {
2141
+ if (!this.contract.write) {
2142
+ throw new Error('Wallet client is required for write operations');
2143
+ }
2144
+ return this.contract.write.setDynamicTimeFlag([_dynamicTimeFlag], options);
2145
+ }
2146
+ /**
2147
+ * setRemainingTokensArray
2148
+ * nonpayable
2149
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2150
+ */
2151
+ async setRemainingTokensArray(_unsoldTokens, options) {
2152
+ if (!this.contract.write) {
2153
+ throw new Error('Wallet client is required for write operations');
2154
+ }
2155
+ return this.contract.write.setRemainingTokensArray([_unsoldTokens], options);
2156
+ }
2157
+ /**
2158
+ * setSanctions
2159
+ * nonpayable
2160
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2161
+ */
2162
+ async setSanctions(_sanctionContract, _applySanction, options) {
2163
+ if (!this.contract.write) {
2164
+ throw new Error('Wallet client is required for write operations');
2165
+ }
2166
+ return this.contract.write.setSanctions([_sanctionContract, _applySanction], options);
2167
+ }
2168
+ /**
2169
+ * setSplits
2170
+ * nonpayable
2171
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2172
+ */
2173
+ async setSplits(_wallets, _percentages, options) {
2174
+ if (!this.contract.write) {
2175
+ throw new Error('Wallet client is required for write operations');
2176
+ }
2177
+ return this.contract.write.setSplits([_wallets, _percentages], options);
2178
+ }
2179
+ /**
2180
+ * setStakeingWhitelistStatus
2181
+ * nonpayable
2182
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2183
+ */
2184
+ async setStakeingWhitelistStatus(_status, options) {
2185
+ if (!this.contract.write) {
2186
+ throw new Error('Wallet client is required for write operations');
2187
+ }
2188
+ return this.contract.write.setStakeingWhitelistStatus([_status], options);
2189
+ }
2190
+ /**
2191
+ * setStakingManager
2192
+ * nonpayable
2193
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2194
+ */
2195
+ async setStakingManager(_stakingManagerAddress, options) {
2196
+ if (!this.contract.write) {
2197
+ throw new Error('Wallet client is required for write operations');
2198
+ }
2199
+ return this.contract.write.setStakingManager([_stakingManagerAddress], options);
2200
+ }
2201
+ /**
2202
+ * setTimeConstant
2203
+ * nonpayable
2204
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2205
+ */
2206
+ async setTimeConstant(_timeConstant, options) {
2207
+ if (!this.contract.write) {
2208
+ throw new Error('Wallet client is required for write operations');
2209
+ }
2210
+ return this.contract.write.setTimeConstant([_timeConstant], options);
2211
+ }
2212
+ /**
2213
+ * setUSDCInterface
2214
+ * nonpayable
2215
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2216
+ */
2217
+ async setUSDCInterface(_usdc, options) {
2218
+ if (!this.contract.write) {
2219
+ throw new Error('Wallet client is required for write operations');
2220
+ }
2221
+ return this.contract.write.setUSDCInterface([_usdc], options);
2222
+ }
2223
+ /**
2224
+ * startClaim
2225
+ * nonpayable
2226
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2227
+ */
2228
+ async startClaim(_claimStart, noOfTokens, _saleToken, _stakingManagerAddress, options) {
2229
+ if (!this.contract.write) {
2230
+ throw new Error('Wallet client is required for write operations');
2231
+ }
2232
+ return this.contract.write.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress], options);
2233
+ }
2234
+ /**
2235
+ * transferOwnership
2236
+ * nonpayable
2237
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2238
+ */
2239
+ async transferOwnership(newOwner, options) {
2240
+ if (!this.contract.write) {
2241
+ throw new Error('Wallet client is required for write operations');
2242
+ }
2243
+ return this.contract.write.transferOwnership([newOwner], options);
2244
+ }
2245
+ /**
2246
+ * unpause
2247
+ * nonpayable
2248
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2249
+ */
2250
+ async unpause(options) {
2251
+ if (!this.contract.write) {
2252
+ throw new Error('Wallet client is required for write operations');
2253
+ }
2254
+ return this.contract.write.unpause(options);
2255
+ }
2256
+ /**
2257
+ * updateFromBSC
2258
+ * nonpayable
2259
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2260
+ */
2261
+ async updateFromBSC(_users, _userDeposits, options) {
2262
+ if (!this.contract.write) {
2263
+ throw new Error('Wallet client is required for write operations');
2264
+ }
2265
+ return this.contract.write.updateFromBSC([_users, _userDeposits], options);
2266
+ }
2267
+ /**
2268
+ * whitelistUsers
2269
+ * nonpayable
2270
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2271
+ */
2272
+ async whitelistUsers(_usersToWhitelist, options) {
2273
+ if (!this.contract.write) {
2274
+ throw new Error('Wallet client is required for write operations');
2275
+ }
2276
+ return this.contract.write.whitelistUsers([_usersToWhitelist], options);
2277
+ }
2278
+ /**
2279
+ * whitelistUsersForWERT
2280
+ * nonpayable
2281
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2282
+ */
2283
+ async whitelistUsersForWERT(_addressesToWhitelist, options) {
2284
+ if (!this.contract.write) {
2285
+ throw new Error('Wallet client is required for write operations');
2286
+ }
2287
+ return this.contract.write.whitelistUsersForWERT([_addressesToWhitelist], options);
2288
+ }
2289
+ /**
2290
+ * Simulate contract write operations (dry-run without sending transaction)
2291
+ *
2292
+ * @example
2293
+ * const result = await contract.simulate.transfer('0x...', 1000n);
2294
+ * console.log('Gas estimate:', result.request.gas);
2295
+ * console.log('Would succeed:', result.result);
2296
+ */
2297
+ get simulate() {
2298
+ const contract = this.contract;
2299
+ if (!contract.simulate) {
2300
+ throw new Error('Public client is required for simulation');
2301
+ }
2302
+ return {
2303
+ /**
2304
+ * Simulate blacklistUsers
2305
+ * Returns gas estimate and result without sending transaction
2306
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2307
+ */
2308
+ async blacklistUsers(_usersToBlacklist, options) {
2309
+ return contract.simulate.blacklistUsers([_usersToBlacklist], options);
2310
+ },
2311
+ /**
2312
+ * Simulate buyWithETHWert
2313
+ * Returns gas estimate and result without sending transaction
2314
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2315
+ */
2316
+ async buyWithETHWert(_user, _amount, stake, options) {
2317
+ return contract.simulate.buyWithETHWert([_user, _amount, stake], options);
2318
+ },
2319
+ /**
2320
+ * Simulate buyWithEth
2321
+ * Returns gas estimate and result without sending transaction
2322
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2323
+ */
2324
+ async buyWithEth(amount, stake, options) {
2325
+ return contract.simulate.buyWithEth([amount, stake], options);
2326
+ },
2327
+ /**
2328
+ * Simulate buyWithUSDC
2329
+ * Returns gas estimate and result without sending transaction
2330
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2331
+ */
2332
+ async buyWithUSDC(amount, stake, options) {
2333
+ return contract.simulate.buyWithUSDC([amount, stake], options);
2334
+ },
2335
+ /**
2336
+ * Simulate buyWithUSDT
2337
+ * Returns gas estimate and result without sending transaction
2338
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2339
+ */
2340
+ async buyWithUSDT(amount, stake, options) {
2341
+ return contract.simulate.buyWithUSDT([amount, stake], options);
2342
+ },
2343
+ /**
2344
+ * Simulate changeClaimStart
2345
+ * Returns gas estimate and result without sending transaction
2346
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2347
+ */
2348
+ async changeClaimStart(_claimStart, options) {
2349
+ return contract.simulate.changeClaimStart([_claimStart], options);
2350
+ },
2351
+ /**
2352
+ * Simulate changeMaxTokensToBuy
2353
+ * Returns gas estimate and result without sending transaction
2354
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2355
+ */
2356
+ async changeMaxTokensToBuy(_maxTokensToBuy, options) {
2357
+ return contract.simulate.changeMaxTokensToBuy([_maxTokensToBuy], options);
2358
+ },
2359
+ /**
2360
+ * Simulate changePaymentWallet
2361
+ * Returns gas estimate and result without sending transaction
2362
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2363
+ */
2364
+ async changePaymentWallet(_newPaymentWallet, options) {
2365
+ return contract.simulate.changePaymentWallet([_newPaymentWallet], options);
2366
+ },
2367
+ /**
2368
+ * Simulate changeRoundsData
2369
+ * Returns gas estimate and result without sending transaction
2370
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2371
+ */
2372
+ async changeRoundsData(_rounds, options) {
2373
+ return contract.simulate.changeRoundsData([_rounds], options);
2374
+ },
2375
+ /**
2376
+ * Simulate changeSaleTimes
2377
+ * Returns gas estimate and result without sending transaction
2378
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2379
+ */
2380
+ async changeSaleTimes(_startTime, _endTime, options) {
2381
+ return contract.simulate.changeSaleTimes([_startTime, _endTime], options);
2382
+ },
2383
+ /**
2384
+ * Simulate claim
2385
+ * Returns gas estimate and result without sending transaction
2386
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2387
+ */
2388
+ async claim(options) {
2389
+ return contract.simulate.claim(options);
2390
+ },
2391
+ /**
2392
+ * Simulate claimAndStake
2393
+ * Returns gas estimate and result without sending transaction
2394
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2395
+ */
2396
+ async claimAndStake(options) {
2397
+ return contract.simulate.claimAndStake(options);
2398
+ },
2399
+ /**
2400
+ * Simulate incrementCurrentStep
2401
+ * Returns gas estimate and result without sending transaction
2402
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2403
+ */
2404
+ async incrementCurrentStep(options) {
2405
+ return contract.simulate.incrementCurrentStep(options);
2406
+ },
2407
+ /**
2408
+ * Simulate initialize
2409
+ * Returns gas estimate and result without sending transaction
2410
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2411
+ */
2412
+ async initialize(_oracle, _usdt, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant, options) {
2413
+ return contract.simulate.initialize([_oracle, _usdt, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant], options);
2414
+ },
2415
+ /**
2416
+ * Simulate pause
2417
+ * Returns gas estimate and result without sending transaction
2418
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2419
+ */
2420
+ async pause(options) {
2421
+ return contract.simulate.pause(options);
2422
+ },
2423
+ /**
2424
+ * Simulate removeFromBlacklist
2425
+ * Returns gas estimate and result without sending transaction
2426
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2427
+ */
2428
+ async removeFromBlacklist(_userToRemoveFromBlacklist, options) {
2429
+ return contract.simulate.removeFromBlacklist([_userToRemoveFromBlacklist], options);
2430
+ },
2431
+ /**
2432
+ * Simulate removeFromWhitelist
2433
+ * Returns gas estimate and result without sending transaction
2434
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2435
+ */
2436
+ async removeFromWhitelist(_userToRemoveFromWhitelist, options) {
2437
+ return contract.simulate.removeFromWhitelist([_userToRemoveFromWhitelist], options);
2438
+ },
2439
+ /**
2440
+ * Simulate removeFromWhitelistForWERT
2441
+ * Returns gas estimate and result without sending transaction
2442
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2443
+ */
2444
+ async removeFromWhitelistForWERT(_addressesToRemoveFromWhitelist, options) {
2445
+ return contract.simulate.removeFromWhitelistForWERT([_addressesToRemoveFromWhitelist], options);
2446
+ },
2447
+ /**
2448
+ * Simulate renounceOwnership
2449
+ * Returns gas estimate and result without sending transaction
2450
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2451
+ */
2452
+ async renounceOwnership(options) {
2453
+ return contract.simulate.renounceOwnership(options);
2454
+ },
2455
+ /**
2456
+ * Simulate setAdmin
2457
+ * Returns gas estimate and result without sending transaction
2458
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2459
+ */
2460
+ async setAdmin(_admin, options) {
2461
+ return contract.simulate.setAdmin([_admin], options);
2462
+ },
2463
+ /**
2464
+ * Simulate setClaimWhitelistStatus
2465
+ * Returns gas estimate and result without sending transaction
2466
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2467
+ */
2468
+ async setClaimWhitelistStatus(_status, options) {
2469
+ return contract.simulate.setClaimWhitelistStatus([_status], options);
2470
+ },
2471
+ /**
2472
+ * Simulate setCurrentStep
2473
+ * Returns gas estimate and result without sending transaction
2474
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2475
+ */
2476
+ async setCurrentStep(_step, _checkpoint, options) {
2477
+ return contract.simulate.setCurrentStep([_step, _checkpoint], options);
2478
+ },
2479
+ /**
2480
+ * Simulate setDynamicTimeFlag
2481
+ * Returns gas estimate and result without sending transaction
2482
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2483
+ */
2484
+ async setDynamicTimeFlag(_dynamicTimeFlag, options) {
2485
+ return contract.simulate.setDynamicTimeFlag([_dynamicTimeFlag], options);
2486
+ },
2487
+ /**
2488
+ * Simulate setRemainingTokensArray
2489
+ * Returns gas estimate and result without sending transaction
2490
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2491
+ */
2492
+ async setRemainingTokensArray(_unsoldTokens, options) {
2493
+ return contract.simulate.setRemainingTokensArray([_unsoldTokens], options);
2494
+ },
2495
+ /**
2496
+ * Simulate setSanctions
2497
+ * Returns gas estimate and result without sending transaction
2498
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2499
+ */
2500
+ async setSanctions(_sanctionContract, _applySanction, options) {
2501
+ return contract.simulate.setSanctions([_sanctionContract, _applySanction], options);
2502
+ },
2503
+ /**
2504
+ * Simulate setSplits
2505
+ * Returns gas estimate and result without sending transaction
2506
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2507
+ */
2508
+ async setSplits(_wallets, _percentages, options) {
2509
+ return contract.simulate.setSplits([_wallets, _percentages], options);
2510
+ },
2511
+ /**
2512
+ * Simulate setStakeingWhitelistStatus
2513
+ * Returns gas estimate and result without sending transaction
2514
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2515
+ */
2516
+ async setStakeingWhitelistStatus(_status, options) {
2517
+ return contract.simulate.setStakeingWhitelistStatus([_status], options);
2518
+ },
2519
+ /**
2520
+ * Simulate setStakingManager
2521
+ * Returns gas estimate and result without sending transaction
2522
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2523
+ */
2524
+ async setStakingManager(_stakingManagerAddress, options) {
2525
+ return contract.simulate.setStakingManager([_stakingManagerAddress], options);
2526
+ },
2527
+ /**
2528
+ * Simulate setTimeConstant
2529
+ * Returns gas estimate and result without sending transaction
2530
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2531
+ */
2532
+ async setTimeConstant(_timeConstant, options) {
2533
+ return contract.simulate.setTimeConstant([_timeConstant], options);
2534
+ },
2535
+ /**
2536
+ * Simulate setUSDCInterface
2537
+ * Returns gas estimate and result without sending transaction
2538
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2539
+ */
2540
+ async setUSDCInterface(_usdc, options) {
2541
+ return contract.simulate.setUSDCInterface([_usdc], options);
2542
+ },
2543
+ /**
2544
+ * Simulate startClaim
2545
+ * Returns gas estimate and result without sending transaction
2546
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2547
+ */
2548
+ async startClaim(_claimStart, noOfTokens, _saleToken, _stakingManagerAddress, options) {
2549
+ return contract.simulate.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress], options);
2550
+ },
2551
+ /**
2552
+ * Simulate transferOwnership
2553
+ * Returns gas estimate and result without sending transaction
2554
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2555
+ */
2556
+ async transferOwnership(newOwner, options) {
2557
+ return contract.simulate.transferOwnership([newOwner], options);
2558
+ },
2559
+ /**
2560
+ * Simulate unpause
2561
+ * Returns gas estimate and result without sending transaction
2562
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2563
+ */
2564
+ async unpause(options) {
2565
+ return contract.simulate.unpause(options);
2566
+ },
2567
+ /**
2568
+ * Simulate updateFromBSC
2569
+ * Returns gas estimate and result without sending transaction
2570
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2571
+ */
2572
+ async updateFromBSC(_users, _userDeposits, options) {
2573
+ return contract.simulate.updateFromBSC([_users, _userDeposits], options);
2574
+ },
2575
+ /**
2576
+ * Simulate whitelistUsers
2577
+ * Returns gas estimate and result without sending transaction
2578
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2579
+ */
2580
+ async whitelistUsers(_usersToWhitelist, options) {
2581
+ return contract.simulate.whitelistUsers([_usersToWhitelist], options);
2582
+ },
2583
+ /**
2584
+ * Simulate whitelistUsersForWERT
2585
+ * Returns gas estimate and result without sending transaction
2586
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2587
+ */
2588
+ async whitelistUsersForWERT(_addressesToWhitelist, options) {
2589
+ return contract.simulate.whitelistUsersForWERT([_addressesToWhitelist], options);
2590
+ }
2591
+ };
2592
+ }
2593
+ /**
2594
+ * Watch contract events
2595
+ *
2596
+ * @example
2597
+ * // Watch all Transfer events
2598
+ * const unwatch = contract.watch.Transfer((event) => {
2599
+ * console.log('Transfer:', event);
2600
+ * });
2601
+ *
2602
+ * // Stop watching
2603
+ * unwatch();
2604
+ */
2605
+ get watch() {
2606
+ return {
2607
+ /**
2608
+ * Watch ClaimStartUpdated events
2609
+ * @param callback Function to call when event is emitted
2610
+ * @param filter Optional filter for indexed parameters
2611
+ * @returns Unwatch function to stop listening
2612
+ */
2613
+ ClaimStartUpdated: (callback) => {
2614
+ return this.publicClient.watchContractEvent({
2615
+ address: this.contractAddress,
2616
+ abi: exports.PresaleV2_jsonAbi,
2617
+ eventName: 'ClaimStartUpdated',
2618
+ onLogs: (logs) => {
2619
+ logs.forEach((log) => {
2620
+ callback(log.args);
2621
+ });
2622
+ },
2623
+ });
2624
+ },
2625
+ /**
2626
+ * Watch Initialized events
2627
+ * @param callback Function to call when event is emitted
2628
+ * @param filter Optional filter for indexed parameters
2629
+ * @returns Unwatch function to stop listening
2630
+ */
2631
+ Initialized: (callback) => {
2632
+ return this.publicClient.watchContractEvent({
2633
+ address: this.contractAddress,
2634
+ abi: exports.PresaleV2_jsonAbi,
2635
+ eventName: 'Initialized',
2636
+ onLogs: (logs) => {
2637
+ logs.forEach((log) => {
2638
+ callback(log.args);
2639
+ });
2640
+ },
2641
+ });
2642
+ },
2643
+ /**
2644
+ * Watch MaxTokensUpdated events
2645
+ * @param callback Function to call when event is emitted
2646
+ * @param filter Optional filter for indexed parameters
2647
+ * @returns Unwatch function to stop listening
2648
+ */
2649
+ MaxTokensUpdated: (callback) => {
2650
+ return this.publicClient.watchContractEvent({
2651
+ address: this.contractAddress,
2652
+ abi: exports.PresaleV2_jsonAbi,
2653
+ eventName: 'MaxTokensUpdated',
2654
+ onLogs: (logs) => {
2655
+ logs.forEach((log) => {
2656
+ callback(log.args);
2657
+ });
2658
+ },
2659
+ });
2660
+ },
2661
+ /**
2662
+ * Watch OwnershipTransferred events
2663
+ * @param callback Function to call when event is emitted
2664
+ * @param filter Optional filter for indexed parameters
2665
+ * @returns Unwatch function to stop listening
2666
+ */
2667
+ OwnershipTransferred: (callback, filter) => {
2668
+ return this.publicClient.watchContractEvent({
2669
+ address: this.contractAddress,
2670
+ abi: exports.PresaleV2_jsonAbi,
2671
+ eventName: 'OwnershipTransferred',
2672
+ args: filter,
2673
+ onLogs: (logs) => {
2674
+ logs.forEach((log) => {
2675
+ callback(log.args);
2676
+ });
2677
+ },
2678
+ });
2679
+ },
2680
+ /**
2681
+ * Watch Paused events
2682
+ * @param callback Function to call when event is emitted
2683
+ * @param filter Optional filter for indexed parameters
2684
+ * @returns Unwatch function to stop listening
2685
+ */
2686
+ Paused: (callback) => {
2687
+ return this.publicClient.watchContractEvent({
2688
+ address: this.contractAddress,
2689
+ abi: exports.PresaleV2_jsonAbi,
2690
+ eventName: 'Paused',
2691
+ onLogs: (logs) => {
2692
+ logs.forEach((log) => {
2693
+ callback(log.args);
2694
+ });
2695
+ },
2696
+ });
2697
+ },
2698
+ /**
2699
+ * Watch SaleTimeSet events
2700
+ * @param callback Function to call when event is emitted
2701
+ * @param filter Optional filter for indexed parameters
2702
+ * @returns Unwatch function to stop listening
2703
+ */
2704
+ SaleTimeSet: (callback) => {
2705
+ return this.publicClient.watchContractEvent({
2706
+ address: this.contractAddress,
2707
+ abi: exports.PresaleV2_jsonAbi,
2708
+ eventName: 'SaleTimeSet',
2709
+ onLogs: (logs) => {
2710
+ logs.forEach((log) => {
2711
+ callback(log.args);
2712
+ });
2713
+ },
2714
+ });
2715
+ },
2716
+ /**
2717
+ * Watch SaleTimeUpdated events
2718
+ * @param callback Function to call when event is emitted
2719
+ * @param filter Optional filter for indexed parameters
2720
+ * @returns Unwatch function to stop listening
2721
+ */
2722
+ SaleTimeUpdated: (callback, filter) => {
2723
+ return this.publicClient.watchContractEvent({
2724
+ address: this.contractAddress,
2725
+ abi: exports.PresaleV2_jsonAbi,
2726
+ eventName: 'SaleTimeUpdated',
2727
+ args: filter,
2728
+ onLogs: (logs) => {
2729
+ logs.forEach((log) => {
2730
+ callback(log.args);
2731
+ });
2732
+ },
2733
+ });
2734
+ },
2735
+ /**
2736
+ * Watch TokensAdded events
2737
+ * @param callback Function to call when event is emitted
2738
+ * @param filter Optional filter for indexed parameters
2739
+ * @returns Unwatch function to stop listening
2740
+ */
2741
+ TokensAdded: (callback, filter) => {
2742
+ return this.publicClient.watchContractEvent({
2743
+ address: this.contractAddress,
2744
+ abi: exports.PresaleV2_jsonAbi,
2745
+ eventName: 'TokensAdded',
2746
+ args: filter,
2747
+ onLogs: (logs) => {
2748
+ logs.forEach((log) => {
2749
+ callback(log.args);
2750
+ });
2751
+ },
2752
+ });
2753
+ },
2754
+ /**
2755
+ * Watch TokensBought events
2756
+ * @param callback Function to call when event is emitted
2757
+ * @param filter Optional filter for indexed parameters
2758
+ * @returns Unwatch function to stop listening
2759
+ */
2760
+ TokensBought: (callback, filter) => {
2761
+ return this.publicClient.watchContractEvent({
2762
+ address: this.contractAddress,
2763
+ abi: exports.PresaleV2_jsonAbi,
2764
+ eventName: 'TokensBought',
2765
+ args: filter,
2766
+ onLogs: (logs) => {
2767
+ logs.forEach((log) => {
2768
+ callback(log.args);
2769
+ });
2770
+ },
2771
+ });
2772
+ },
2773
+ /**
2774
+ * Watch TokensBoughtAndStaked events
2775
+ * @param callback Function to call when event is emitted
2776
+ * @param filter Optional filter for indexed parameters
2777
+ * @returns Unwatch function to stop listening
2778
+ */
2779
+ TokensBoughtAndStaked: (callback, filter) => {
2780
+ return this.publicClient.watchContractEvent({
2781
+ address: this.contractAddress,
2782
+ abi: exports.PresaleV2_jsonAbi,
2783
+ eventName: 'TokensBoughtAndStaked',
2784
+ args: filter,
2785
+ onLogs: (logs) => {
2786
+ logs.forEach((log) => {
2787
+ callback(log.args);
2788
+ });
2789
+ },
2790
+ });
2791
+ },
2792
+ /**
2793
+ * Watch TokensClaimed events
2794
+ * @param callback Function to call when event is emitted
2795
+ * @param filter Optional filter for indexed parameters
2796
+ * @returns Unwatch function to stop listening
2797
+ */
2798
+ TokensClaimed: (callback, filter) => {
2799
+ return this.publicClient.watchContractEvent({
2800
+ address: this.contractAddress,
2801
+ abi: exports.PresaleV2_jsonAbi,
2802
+ eventName: 'TokensClaimed',
2803
+ args: filter,
2804
+ onLogs: (logs) => {
2805
+ logs.forEach((log) => {
2806
+ callback(log.args);
2807
+ });
2808
+ },
2809
+ });
2810
+ },
2811
+ /**
2812
+ * Watch TokensClaimedAndStaked events
2813
+ * @param callback Function to call when event is emitted
2814
+ * @param filter Optional filter for indexed parameters
2815
+ * @returns Unwatch function to stop listening
2816
+ */
2817
+ TokensClaimedAndStaked: (callback, filter) => {
2818
+ return this.publicClient.watchContractEvent({
2819
+ address: this.contractAddress,
2820
+ abi: exports.PresaleV2_jsonAbi,
2821
+ eventName: 'TokensClaimedAndStaked',
2822
+ args: filter,
2823
+ onLogs: (logs) => {
2824
+ logs.forEach((log) => {
2825
+ callback(log.args);
2826
+ });
2827
+ },
2828
+ });
2829
+ },
2830
+ /**
2831
+ * Watch Unpaused events
2832
+ * @param callback Function to call when event is emitted
2833
+ * @param filter Optional filter for indexed parameters
2834
+ * @returns Unwatch function to stop listening
2835
+ */
2836
+ Unpaused: (callback) => {
2837
+ return this.publicClient.watchContractEvent({
2838
+ address: this.contractAddress,
2839
+ abi: exports.PresaleV2_jsonAbi,
2840
+ eventName: 'Unpaused',
2841
+ onLogs: (logs) => {
2842
+ logs.forEach((log) => {
2843
+ callback(log.args);
2844
+ });
2845
+ },
2846
+ });
2847
+ }
2848
+ };
2849
+ }
2850
+ }
2851
+ exports.PresaleV2_json = PresaleV2_json;