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