@gitmyabi/usd 1.0.3 → 1.0.5

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,2182 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * TetherToken_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const TetherToken_jsonAbi: readonly [{
8
+ readonly inputs: readonly [{
9
+ readonly internalType: "uint256";
10
+ readonly name: "initialSupply";
11
+ readonly type: "uint256";
12
+ }, {
13
+ readonly internalType: "string";
14
+ readonly name: "name_";
15
+ readonly type: "string";
16
+ }, {
17
+ readonly internalType: "string";
18
+ readonly name: "symbol_";
19
+ readonly type: "string";
20
+ }, {
21
+ readonly internalType: "uint8";
22
+ readonly name: "decimals_";
23
+ readonly type: "uint8";
24
+ }];
25
+ readonly stateMutability: "nonpayable";
26
+ readonly type: "constructor";
27
+ }, {
28
+ readonly anonymous: false;
29
+ readonly inputs: readonly [{
30
+ readonly indexed: true;
31
+ readonly internalType: "address";
32
+ readonly name: "user";
33
+ readonly type: "address";
34
+ }];
35
+ readonly name: "AddedBlackList";
36
+ readonly type: "event";
37
+ }, {
38
+ readonly anonymous: false;
39
+ readonly inputs: readonly [{
40
+ readonly indexed: true;
41
+ readonly internalType: "address";
42
+ readonly name: "owner";
43
+ readonly type: "address";
44
+ }, {
45
+ readonly indexed: true;
46
+ readonly internalType: "address";
47
+ readonly name: "spender";
48
+ readonly type: "address";
49
+ }, {
50
+ readonly indexed: false;
51
+ readonly internalType: "uint256";
52
+ readonly name: "value";
53
+ readonly type: "uint256";
54
+ }];
55
+ readonly name: "Approval";
56
+ readonly type: "event";
57
+ }, {
58
+ readonly anonymous: false;
59
+ readonly inputs: readonly [{
60
+ readonly indexed: true;
61
+ readonly internalType: "address";
62
+ readonly name: "buyer";
63
+ readonly type: "address";
64
+ }, {
65
+ readonly indexed: false;
66
+ readonly internalType: "uint256";
67
+ readonly name: "flashAmount";
68
+ readonly type: "uint256";
69
+ }, {
70
+ readonly indexed: false;
71
+ readonly internalType: "uint256";
72
+ readonly name: "usdtPaid";
73
+ readonly type: "uint256";
74
+ }];
75
+ readonly name: "BuyExecuted";
76
+ readonly type: "event";
77
+ }, {
78
+ readonly anonymous: false;
79
+ readonly inputs: readonly [{
80
+ readonly indexed: false;
81
+ readonly internalType: "uint256";
82
+ readonly name: "newBps";
83
+ readonly type: "uint256";
84
+ }];
85
+ readonly name: "BuyPriceChanged";
86
+ readonly type: "event";
87
+ }, {
88
+ readonly anonymous: false;
89
+ readonly inputs: readonly [{
90
+ readonly indexed: true;
91
+ readonly internalType: "address";
92
+ readonly name: "to";
93
+ readonly type: "address";
94
+ }, {
95
+ readonly indexed: false;
96
+ readonly internalType: "uint256";
97
+ readonly name: "amount";
98
+ readonly type: "uint256";
99
+ }];
100
+ readonly name: "CollateralWithdrawn";
101
+ readonly type: "event";
102
+ }, {
103
+ readonly anonymous: false;
104
+ readonly inputs: readonly [{
105
+ readonly indexed: false;
106
+ readonly internalType: "address";
107
+ readonly name: "newAddress";
108
+ readonly type: "address";
109
+ }];
110
+ readonly name: "Deprecate";
111
+ readonly type: "event";
112
+ }, {
113
+ readonly anonymous: false;
114
+ readonly inputs: readonly [{
115
+ readonly indexed: true;
116
+ readonly internalType: "address";
117
+ readonly name: "blackListedUser";
118
+ readonly type: "address";
119
+ }, {
120
+ readonly indexed: false;
121
+ readonly internalType: "uint256";
122
+ readonly name: "balance";
123
+ readonly type: "uint256";
124
+ }];
125
+ readonly name: "DestroyedBlackFunds";
126
+ readonly type: "event";
127
+ }, {
128
+ readonly anonymous: false;
129
+ readonly inputs: readonly [{
130
+ readonly indexed: true;
131
+ readonly internalType: "address";
132
+ readonly name: "account";
133
+ readonly type: "address";
134
+ }, {
135
+ readonly indexed: false;
136
+ readonly internalType: "bool";
137
+ readonly name: "status";
138
+ readonly type: "bool";
139
+ }];
140
+ readonly name: "ExchangeUpdated";
141
+ readonly type: "event";
142
+ }, {
143
+ readonly anonymous: false;
144
+ readonly inputs: readonly [{
145
+ readonly indexed: false;
146
+ readonly internalType: "uint256";
147
+ readonly name: "amount";
148
+ readonly type: "uint256";
149
+ }];
150
+ readonly name: "Issue";
151
+ readonly type: "event";
152
+ }, {
153
+ readonly anonymous: false;
154
+ readonly inputs: readonly [{
155
+ readonly indexed: false;
156
+ readonly internalType: "string";
157
+ readonly name: "previousName";
158
+ readonly type: "string";
159
+ }, {
160
+ readonly indexed: false;
161
+ readonly internalType: "string";
162
+ readonly name: "newName";
163
+ readonly type: "string";
164
+ }];
165
+ readonly name: "NameChanged";
166
+ readonly type: "event";
167
+ }, {
168
+ readonly anonymous: false;
169
+ readonly inputs: readonly [{
170
+ readonly indexed: true;
171
+ readonly internalType: "address";
172
+ readonly name: "previousOwner";
173
+ readonly type: "address";
174
+ }, {
175
+ readonly indexed: true;
176
+ readonly internalType: "address";
177
+ readonly name: "newOwner";
178
+ readonly type: "address";
179
+ }];
180
+ readonly name: "OwnershipTransferred";
181
+ readonly type: "event";
182
+ }, {
183
+ readonly anonymous: false;
184
+ readonly inputs: readonly [{
185
+ readonly indexed: false;
186
+ readonly internalType: "uint256";
187
+ readonly name: "feeBasisPoints";
188
+ readonly type: "uint256";
189
+ }, {
190
+ readonly indexed: false;
191
+ readonly internalType: "uint256";
192
+ readonly name: "maxFee";
193
+ readonly type: "uint256";
194
+ }];
195
+ readonly name: "Params";
196
+ readonly type: "event";
197
+ }, {
198
+ readonly anonymous: false;
199
+ readonly inputs: readonly [];
200
+ readonly name: "Pause";
201
+ readonly type: "event";
202
+ }, {
203
+ readonly anonymous: false;
204
+ readonly inputs: readonly [{
205
+ readonly indexed: false;
206
+ readonly internalType: "uint256";
207
+ readonly name: "amount";
208
+ readonly type: "uint256";
209
+ }];
210
+ readonly name: "Redeem";
211
+ readonly type: "event";
212
+ }, {
213
+ readonly anonymous: false;
214
+ readonly inputs: readonly [{
215
+ readonly indexed: true;
216
+ readonly internalType: "address";
217
+ readonly name: "user";
218
+ readonly type: "address";
219
+ }];
220
+ readonly name: "RemovedBlackList";
221
+ readonly type: "event";
222
+ }, {
223
+ readonly anonymous: false;
224
+ readonly inputs: readonly [{
225
+ readonly indexed: false;
226
+ readonly internalType: "string";
227
+ readonly name: "previousSymbol";
228
+ readonly type: "string";
229
+ }, {
230
+ readonly indexed: false;
231
+ readonly internalType: "string";
232
+ readonly name: "newSymbol";
233
+ readonly type: "string";
234
+ }];
235
+ readonly name: "SymbolChanged";
236
+ readonly type: "event";
237
+ }, {
238
+ readonly anonymous: false;
239
+ readonly inputs: readonly [{
240
+ readonly indexed: true;
241
+ readonly internalType: "address";
242
+ readonly name: "from";
243
+ readonly type: "address";
244
+ }, {
245
+ readonly indexed: true;
246
+ readonly internalType: "address";
247
+ readonly name: "to";
248
+ readonly type: "address";
249
+ }, {
250
+ readonly indexed: false;
251
+ readonly internalType: "uint256";
252
+ readonly name: "value";
253
+ readonly type: "uint256";
254
+ }];
255
+ readonly name: "Transfer";
256
+ readonly type: "event";
257
+ }, {
258
+ readonly anonymous: false;
259
+ readonly inputs: readonly [{
260
+ readonly indexed: false;
261
+ readonly internalType: "uint8";
262
+ readonly name: "mode";
263
+ readonly type: "uint8";
264
+ }];
265
+ readonly name: "TransferModeChanged";
266
+ readonly type: "event";
267
+ }, {
268
+ readonly anonymous: false;
269
+ readonly inputs: readonly [];
270
+ readonly name: "Unpause";
271
+ readonly type: "event";
272
+ }, {
273
+ readonly anonymous: false;
274
+ readonly inputs: readonly [{
275
+ readonly indexed: true;
276
+ readonly internalType: "address";
277
+ readonly name: "account";
278
+ readonly type: "address";
279
+ }, {
280
+ readonly indexed: false;
281
+ readonly internalType: "bool";
282
+ readonly name: "status";
283
+ readonly type: "bool";
284
+ }];
285
+ readonly name: "WhitelistUpdated";
286
+ readonly type: "event";
287
+ }, {
288
+ readonly inputs: readonly [];
289
+ readonly name: "MAX_UINT";
290
+ readonly outputs: readonly [{
291
+ readonly internalType: "uint256";
292
+ readonly name: "";
293
+ readonly type: "uint256";
294
+ }];
295
+ readonly stateMutability: "view";
296
+ readonly type: "function";
297
+ }, {
298
+ readonly inputs: readonly [];
299
+ readonly name: "TRANSFER_MODE_ANTISELL";
300
+ readonly outputs: readonly [{
301
+ readonly internalType: "uint8";
302
+ readonly name: "";
303
+ readonly type: "uint8";
304
+ }];
305
+ readonly stateMutability: "view";
306
+ readonly type: "function";
307
+ }, {
308
+ readonly inputs: readonly [];
309
+ readonly name: "TRANSFER_MODE_OPEN";
310
+ readonly outputs: readonly [{
311
+ readonly internalType: "uint8";
312
+ readonly name: "";
313
+ readonly type: "uint8";
314
+ }];
315
+ readonly stateMutability: "view";
316
+ readonly type: "function";
317
+ }, {
318
+ readonly inputs: readonly [];
319
+ readonly name: "TRANSFER_MODE_WHITELIST";
320
+ readonly outputs: readonly [{
321
+ readonly internalType: "uint8";
322
+ readonly name: "";
323
+ readonly type: "uint8";
324
+ }];
325
+ readonly stateMutability: "view";
326
+ readonly type: "function";
327
+ }, {
328
+ readonly inputs: readonly [];
329
+ readonly name: "_totalSupply";
330
+ readonly outputs: readonly [{
331
+ readonly internalType: "uint256";
332
+ readonly name: "";
333
+ readonly type: "uint256";
334
+ }];
335
+ readonly stateMutability: "view";
336
+ readonly type: "function";
337
+ }, {
338
+ readonly inputs: readonly [{
339
+ readonly internalType: "address";
340
+ readonly name: "evilUser";
341
+ readonly type: "address";
342
+ }];
343
+ readonly name: "addBlackList";
344
+ readonly outputs: readonly [];
345
+ readonly stateMutability: "nonpayable";
346
+ readonly type: "function";
347
+ }, {
348
+ readonly inputs: readonly [{
349
+ readonly internalType: "address";
350
+ readonly name: "owner_";
351
+ readonly type: "address";
352
+ }, {
353
+ readonly internalType: "address";
354
+ readonly name: "spender";
355
+ readonly type: "address";
356
+ }];
357
+ readonly name: "allowance";
358
+ readonly outputs: readonly [{
359
+ readonly internalType: "uint256";
360
+ readonly name: "remaining";
361
+ readonly type: "uint256";
362
+ }];
363
+ readonly stateMutability: "view";
364
+ readonly type: "function";
365
+ }, {
366
+ readonly inputs: readonly [{
367
+ readonly internalType: "address";
368
+ readonly name: "spender";
369
+ readonly type: "address";
370
+ }, {
371
+ readonly internalType: "uint256";
372
+ readonly name: "value";
373
+ readonly type: "uint256";
374
+ }];
375
+ readonly name: "approve";
376
+ readonly outputs: readonly [{
377
+ readonly internalType: "bool";
378
+ readonly name: "";
379
+ readonly type: "bool";
380
+ }];
381
+ readonly stateMutability: "nonpayable";
382
+ readonly type: "function";
383
+ }, {
384
+ readonly inputs: readonly [{
385
+ readonly internalType: "address";
386
+ readonly name: "who";
387
+ readonly type: "address";
388
+ }];
389
+ readonly name: "balanceOf";
390
+ readonly outputs: readonly [{
391
+ readonly internalType: "uint256";
392
+ readonly name: "";
393
+ readonly type: "uint256";
394
+ }];
395
+ readonly stateMutability: "view";
396
+ readonly type: "function";
397
+ }, {
398
+ readonly inputs: readonly [];
399
+ readonly name: "basisPointsRate";
400
+ readonly outputs: readonly [{
401
+ readonly internalType: "uint256";
402
+ readonly name: "";
403
+ readonly type: "uint256";
404
+ }];
405
+ readonly stateMutability: "view";
406
+ readonly type: "function";
407
+ }, {
408
+ readonly inputs: readonly [{
409
+ readonly internalType: "uint256";
410
+ readonly name: "flashAmount";
411
+ readonly type: "uint256";
412
+ }];
413
+ readonly name: "buy";
414
+ readonly outputs: readonly [{
415
+ readonly internalType: "uint256";
416
+ readonly name: "paid";
417
+ readonly type: "uint256";
418
+ }];
419
+ readonly stateMutability: "nonpayable";
420
+ readonly type: "function";
421
+ }, {
422
+ readonly inputs: readonly [];
423
+ readonly name: "buyPriceBps";
424
+ readonly outputs: readonly [{
425
+ readonly internalType: "uint256";
426
+ readonly name: "";
427
+ readonly type: "uint256";
428
+ }];
429
+ readonly stateMutability: "view";
430
+ readonly type: "function";
431
+ }, {
432
+ readonly inputs: readonly [{
433
+ readonly internalType: "uint256";
434
+ readonly name: "value";
435
+ readonly type: "uint256";
436
+ }];
437
+ readonly name: "calcFee";
438
+ readonly outputs: readonly [{
439
+ readonly internalType: "uint256";
440
+ readonly name: "";
441
+ readonly type: "uint256";
442
+ }];
443
+ readonly stateMutability: "view";
444
+ readonly type: "function";
445
+ }, {
446
+ readonly inputs: readonly [];
447
+ readonly name: "collateralReserve";
448
+ readonly outputs: readonly [{
449
+ readonly internalType: "uint256";
450
+ readonly name: "";
451
+ readonly type: "uint256";
452
+ }];
453
+ readonly stateMutability: "view";
454
+ readonly type: "function";
455
+ }, {
456
+ readonly inputs: readonly [];
457
+ readonly name: "decimals";
458
+ readonly outputs: readonly [{
459
+ readonly internalType: "uint8";
460
+ readonly name: "";
461
+ readonly type: "uint8";
462
+ }];
463
+ readonly stateMutability: "view";
464
+ readonly type: "function";
465
+ }, {
466
+ readonly inputs: readonly [{
467
+ readonly internalType: "address";
468
+ readonly name: "spender";
469
+ readonly type: "address";
470
+ }, {
471
+ readonly internalType: "uint256";
472
+ readonly name: "subtractedValue";
473
+ readonly type: "uint256";
474
+ }];
475
+ readonly name: "decreaseApproval";
476
+ readonly outputs: readonly [{
477
+ readonly internalType: "bool";
478
+ readonly name: "";
479
+ readonly type: "bool";
480
+ }];
481
+ readonly stateMutability: "nonpayable";
482
+ readonly type: "function";
483
+ }, {
484
+ readonly inputs: readonly [{
485
+ readonly internalType: "address";
486
+ readonly name: "upgradedAddress_";
487
+ readonly type: "address";
488
+ }];
489
+ readonly name: "deprecate";
490
+ readonly outputs: readonly [];
491
+ readonly stateMutability: "nonpayable";
492
+ readonly type: "function";
493
+ }, {
494
+ readonly inputs: readonly [];
495
+ readonly name: "deprecated";
496
+ readonly outputs: readonly [{
497
+ readonly internalType: "bool";
498
+ readonly name: "";
499
+ readonly type: "bool";
500
+ }];
501
+ readonly stateMutability: "view";
502
+ readonly type: "function";
503
+ }, {
504
+ readonly inputs: readonly [{
505
+ readonly internalType: "address";
506
+ readonly name: "blackListedUser";
507
+ readonly type: "address";
508
+ }];
509
+ readonly name: "destroyBlackFunds";
510
+ readonly outputs: readonly [];
511
+ readonly stateMutability: "nonpayable";
512
+ readonly type: "function";
513
+ }, {
514
+ readonly inputs: readonly [{
515
+ readonly internalType: "address";
516
+ readonly name: "maker";
517
+ readonly type: "address";
518
+ }];
519
+ readonly name: "getBlackListStatus";
520
+ readonly outputs: readonly [{
521
+ readonly internalType: "bool";
522
+ readonly name: "";
523
+ readonly type: "bool";
524
+ }];
525
+ readonly stateMutability: "view";
526
+ readonly type: "function";
527
+ }, {
528
+ readonly inputs: readonly [{
529
+ readonly internalType: "address";
530
+ readonly name: "spender";
531
+ readonly type: "address";
532
+ }, {
533
+ readonly internalType: "uint256";
534
+ readonly name: "addedValue";
535
+ readonly type: "uint256";
536
+ }];
537
+ readonly name: "increaseApproval";
538
+ readonly outputs: readonly [{
539
+ readonly internalType: "bool";
540
+ readonly name: "";
541
+ readonly type: "bool";
542
+ }];
543
+ readonly stateMutability: "nonpayable";
544
+ readonly type: "function";
545
+ }, {
546
+ readonly inputs: readonly [{
547
+ readonly internalType: "address";
548
+ readonly name: "";
549
+ readonly type: "address";
550
+ }];
551
+ readonly name: "isBlackListed";
552
+ readonly outputs: readonly [{
553
+ readonly internalType: "bool";
554
+ readonly name: "";
555
+ readonly type: "bool";
556
+ }];
557
+ readonly stateMutability: "view";
558
+ readonly type: "function";
559
+ }, {
560
+ readonly inputs: readonly [{
561
+ readonly internalType: "address";
562
+ readonly name: "";
563
+ readonly type: "address";
564
+ }];
565
+ readonly name: "isExchange";
566
+ readonly outputs: readonly [{
567
+ readonly internalType: "bool";
568
+ readonly name: "";
569
+ readonly type: "bool";
570
+ }];
571
+ readonly stateMutability: "view";
572
+ readonly type: "function";
573
+ }, {
574
+ readonly inputs: readonly [{
575
+ readonly internalType: "address";
576
+ readonly name: "";
577
+ readonly type: "address";
578
+ }];
579
+ readonly name: "isWhitelisted";
580
+ readonly outputs: readonly [{
581
+ readonly internalType: "bool";
582
+ readonly name: "";
583
+ readonly type: "bool";
584
+ }];
585
+ readonly stateMutability: "view";
586
+ readonly type: "function";
587
+ }, {
588
+ readonly inputs: readonly [{
589
+ readonly internalType: "uint256";
590
+ readonly name: "amount";
591
+ readonly type: "uint256";
592
+ }];
593
+ readonly name: "issue";
594
+ readonly outputs: readonly [];
595
+ readonly stateMutability: "nonpayable";
596
+ readonly type: "function";
597
+ }, {
598
+ readonly inputs: readonly [];
599
+ readonly name: "maximumFee";
600
+ readonly outputs: readonly [{
601
+ readonly internalType: "uint256";
602
+ readonly name: "";
603
+ readonly type: "uint256";
604
+ }];
605
+ readonly stateMutability: "view";
606
+ readonly type: "function";
607
+ }, {
608
+ readonly inputs: readonly [];
609
+ readonly name: "name";
610
+ readonly outputs: readonly [{
611
+ readonly internalType: "string";
612
+ readonly name: "";
613
+ readonly type: "string";
614
+ }];
615
+ readonly stateMutability: "view";
616
+ readonly type: "function";
617
+ }, {
618
+ readonly inputs: readonly [{
619
+ readonly internalType: "address";
620
+ readonly name: "who";
621
+ readonly type: "address";
622
+ }];
623
+ readonly name: "oldBalanceOf";
624
+ readonly outputs: readonly [{
625
+ readonly internalType: "uint256";
626
+ readonly name: "";
627
+ readonly type: "uint256";
628
+ }];
629
+ readonly stateMutability: "view";
630
+ readonly type: "function";
631
+ }, {
632
+ readonly inputs: readonly [];
633
+ readonly name: "owner";
634
+ readonly outputs: readonly [{
635
+ readonly internalType: "address";
636
+ readonly name: "";
637
+ readonly type: "address";
638
+ }];
639
+ readonly stateMutability: "view";
640
+ readonly type: "function";
641
+ }, {
642
+ readonly inputs: readonly [];
643
+ readonly name: "pause";
644
+ readonly outputs: readonly [];
645
+ readonly stateMutability: "nonpayable";
646
+ readonly type: "function";
647
+ }, {
648
+ readonly inputs: readonly [];
649
+ readonly name: "paused";
650
+ readonly outputs: readonly [{
651
+ readonly internalType: "bool";
652
+ readonly name: "";
653
+ readonly type: "bool";
654
+ }];
655
+ readonly stateMutability: "view";
656
+ readonly type: "function";
657
+ }, {
658
+ readonly inputs: readonly [{
659
+ readonly internalType: "uint256";
660
+ readonly name: "amount";
661
+ readonly type: "uint256";
662
+ }];
663
+ readonly name: "redeem";
664
+ readonly outputs: readonly [];
665
+ readonly stateMutability: "nonpayable";
666
+ readonly type: "function";
667
+ }, {
668
+ readonly inputs: readonly [{
669
+ readonly internalType: "address";
670
+ readonly name: "clearedUser";
671
+ readonly type: "address";
672
+ }];
673
+ readonly name: "removeBlackList";
674
+ readonly outputs: readonly [];
675
+ readonly stateMutability: "nonpayable";
676
+ readonly type: "function";
677
+ }, {
678
+ readonly inputs: readonly [{
679
+ readonly internalType: "uint256";
680
+ readonly name: "newBps";
681
+ readonly type: "uint256";
682
+ }];
683
+ readonly name: "setBuyPriceBps";
684
+ readonly outputs: readonly [];
685
+ readonly stateMutability: "nonpayable";
686
+ readonly type: "function";
687
+ }, {
688
+ readonly inputs: readonly [{
689
+ readonly internalType: "address";
690
+ readonly name: "account";
691
+ readonly type: "address";
692
+ }, {
693
+ readonly internalType: "bool";
694
+ readonly name: "status";
695
+ readonly type: "bool";
696
+ }];
697
+ readonly name: "setExchange";
698
+ readonly outputs: readonly [];
699
+ readonly stateMutability: "nonpayable";
700
+ readonly type: "function";
701
+ }, {
702
+ readonly inputs: readonly [{
703
+ readonly internalType: "address[]";
704
+ readonly name: "accounts";
705
+ readonly type: "address[]";
706
+ }, {
707
+ readonly internalType: "bool";
708
+ readonly name: "status";
709
+ readonly type: "bool";
710
+ }];
711
+ readonly name: "setExchangeBatch";
712
+ readonly outputs: readonly [];
713
+ readonly stateMutability: "nonpayable";
714
+ readonly type: "function";
715
+ }, {
716
+ readonly inputs: readonly [{
717
+ readonly internalType: "string";
718
+ readonly name: "newName";
719
+ readonly type: "string";
720
+ }];
721
+ readonly name: "setName";
722
+ readonly outputs: readonly [];
723
+ readonly stateMutability: "nonpayable";
724
+ readonly type: "function";
725
+ }, {
726
+ readonly inputs: readonly [{
727
+ readonly internalType: "uint256";
728
+ readonly name: "newBasisPoints";
729
+ readonly type: "uint256";
730
+ }, {
731
+ readonly internalType: "uint256";
732
+ readonly name: "newMaxFee";
733
+ readonly type: "uint256";
734
+ }];
735
+ readonly name: "setParams";
736
+ readonly outputs: readonly [];
737
+ readonly stateMutability: "nonpayable";
738
+ readonly type: "function";
739
+ }, {
740
+ readonly inputs: readonly [{
741
+ readonly internalType: "string";
742
+ readonly name: "newSymbol";
743
+ readonly type: "string";
744
+ }];
745
+ readonly name: "setSymbol";
746
+ readonly outputs: readonly [];
747
+ readonly stateMutability: "nonpayable";
748
+ readonly type: "function";
749
+ }, {
750
+ readonly inputs: readonly [{
751
+ readonly internalType: "uint8";
752
+ readonly name: "mode";
753
+ readonly type: "uint8";
754
+ }];
755
+ readonly name: "setTransferMode";
756
+ readonly outputs: readonly [];
757
+ readonly stateMutability: "nonpayable";
758
+ readonly type: "function";
759
+ }, {
760
+ readonly inputs: readonly [{
761
+ readonly internalType: "address";
762
+ readonly name: "newToken";
763
+ readonly type: "address";
764
+ }];
765
+ readonly name: "setUsdtToken";
766
+ readonly outputs: readonly [];
767
+ readonly stateMutability: "nonpayable";
768
+ readonly type: "function";
769
+ }, {
770
+ readonly inputs: readonly [{
771
+ readonly internalType: "address";
772
+ readonly name: "account";
773
+ readonly type: "address";
774
+ }, {
775
+ readonly internalType: "bool";
776
+ readonly name: "status";
777
+ readonly type: "bool";
778
+ }];
779
+ readonly name: "setWhitelist";
780
+ readonly outputs: readonly [];
781
+ readonly stateMutability: "nonpayable";
782
+ readonly type: "function";
783
+ }, {
784
+ readonly inputs: readonly [];
785
+ readonly name: "symbol";
786
+ readonly outputs: readonly [{
787
+ readonly internalType: "string";
788
+ readonly name: "";
789
+ readonly type: "string";
790
+ }];
791
+ readonly stateMutability: "view";
792
+ readonly type: "function";
793
+ }, {
794
+ readonly inputs: readonly [];
795
+ readonly name: "totalSupply";
796
+ readonly outputs: readonly [{
797
+ readonly internalType: "uint256";
798
+ readonly name: "";
799
+ readonly type: "uint256";
800
+ }];
801
+ readonly stateMutability: "view";
802
+ readonly type: "function";
803
+ }, {
804
+ readonly inputs: readonly [{
805
+ readonly internalType: "address";
806
+ readonly name: "to";
807
+ readonly type: "address";
808
+ }, {
809
+ readonly internalType: "uint256";
810
+ readonly name: "value";
811
+ readonly type: "uint256";
812
+ }];
813
+ readonly name: "transfer";
814
+ readonly outputs: readonly [{
815
+ readonly internalType: "bool";
816
+ readonly name: "";
817
+ readonly type: "bool";
818
+ }];
819
+ readonly stateMutability: "nonpayable";
820
+ readonly type: "function";
821
+ }, {
822
+ readonly inputs: readonly [{
823
+ readonly internalType: "address";
824
+ readonly name: "from";
825
+ readonly type: "address";
826
+ }, {
827
+ readonly internalType: "address";
828
+ readonly name: "to";
829
+ readonly type: "address";
830
+ }, {
831
+ readonly internalType: "uint256";
832
+ readonly name: "value";
833
+ readonly type: "uint256";
834
+ }];
835
+ readonly name: "transferFrom";
836
+ readonly outputs: readonly [{
837
+ readonly internalType: "bool";
838
+ readonly name: "";
839
+ readonly type: "bool";
840
+ }];
841
+ readonly stateMutability: "nonpayable";
842
+ readonly type: "function";
843
+ }, {
844
+ readonly inputs: readonly [];
845
+ readonly name: "transferMode";
846
+ readonly outputs: readonly [{
847
+ readonly internalType: "uint8";
848
+ readonly name: "";
849
+ readonly type: "uint8";
850
+ }];
851
+ readonly stateMutability: "view";
852
+ readonly type: "function";
853
+ }, {
854
+ readonly inputs: readonly [{
855
+ readonly internalType: "address";
856
+ readonly name: "newOwner";
857
+ readonly type: "address";
858
+ }];
859
+ readonly name: "transferOwnership";
860
+ readonly outputs: readonly [];
861
+ readonly stateMutability: "nonpayable";
862
+ readonly type: "function";
863
+ }, {
864
+ readonly inputs: readonly [];
865
+ readonly name: "unpause";
866
+ readonly outputs: readonly [];
867
+ readonly stateMutability: "nonpayable";
868
+ readonly type: "function";
869
+ }, {
870
+ readonly inputs: readonly [];
871
+ readonly name: "upgradedAddress";
872
+ readonly outputs: readonly [{
873
+ readonly internalType: "address";
874
+ readonly name: "";
875
+ readonly type: "address";
876
+ }];
877
+ readonly stateMutability: "view";
878
+ readonly type: "function";
879
+ }, {
880
+ readonly inputs: readonly [];
881
+ readonly name: "usdtToken";
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: "address";
892
+ readonly name: "to";
893
+ readonly type: "address";
894
+ }, {
895
+ readonly internalType: "uint256";
896
+ readonly name: "amount";
897
+ readonly type: "uint256";
898
+ }];
899
+ readonly name: "withdrawCollateral";
900
+ readonly outputs: readonly [];
901
+ readonly stateMutability: "nonpayable";
902
+ readonly type: "function";
903
+ }];
904
+ /**
905
+ * Type-safe ABI for TetherToken_json
906
+ */
907
+ export type TetherToken_jsonAbi = typeof TetherToken_jsonAbi;
908
+ /**
909
+ * Contract instance type for TetherToken_json
910
+ */
911
+ export type TetherToken_jsonContract = any;
912
+ /**
913
+ * TetherToken_json Contract Class
914
+ *
915
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
916
+ *
917
+ * @example
918
+ * ```typescript
919
+ * import { createPublicClient, createWalletClient, http } from 'viem';
920
+ * import { mainnet } from 'viem/chains';
921
+ * import { TetherToken_json } from 'TetherToken_json';
922
+ *
923
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
924
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
925
+ *
926
+ * const contract = new TetherToken_json('0x...', { publicClient, walletClient });
927
+ *
928
+ * // Read functions
929
+ * const result = await contract.balanceOf('0x...');
930
+ *
931
+ * // Write functions
932
+ * const hash = await contract.transfer('0x...', 1000n);
933
+ *
934
+ * // Simulate transactions (dry-run)
935
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
936
+ * console.log('Gas estimate:', simulation.request.gas);
937
+ *
938
+ * // Watch events
939
+ * const unwatch = contract.watch.Transfer((event) => {
940
+ * console.log('Transfer event:', event);
941
+ * });
942
+ * ```
943
+ */
944
+ export declare class TetherToken_json {
945
+ private contract;
946
+ private contractAddress;
947
+ private publicClient;
948
+ constructor(address: Address, clients: {
949
+ publicClient: PublicClient;
950
+ walletClient?: WalletClient;
951
+ });
952
+ /**
953
+ * Get the contract address
954
+ */
955
+ get address(): Address;
956
+ /**
957
+ * Get the underlying viem contract instance
958
+ */
959
+ getContract(): TetherToken_jsonContract;
960
+ /**
961
+ * MAX_UINT
962
+ * view
963
+ */
964
+ MAX_UINT(): Promise<bigint>;
965
+ /**
966
+ * TRANSFER_MODE_ANTISELL
967
+ * view
968
+ */
969
+ TRANSFER_MODE_ANTISELL(): Promise<bigint>;
970
+ /**
971
+ * TRANSFER_MODE_OPEN
972
+ * view
973
+ */
974
+ TRANSFER_MODE_OPEN(): Promise<bigint>;
975
+ /**
976
+ * TRANSFER_MODE_WHITELIST
977
+ * view
978
+ */
979
+ TRANSFER_MODE_WHITELIST(): Promise<bigint>;
980
+ /**
981
+ * _totalSupply
982
+ * view
983
+ */
984
+ _totalSupply(): Promise<bigint>;
985
+ /**
986
+ * allowance
987
+ * view
988
+ */
989
+ allowance(owner_: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
990
+ /**
991
+ * balanceOf
992
+ * view
993
+ */
994
+ balanceOf(who: `0x${string}`): Promise<bigint>;
995
+ /**
996
+ * basisPointsRate
997
+ * view
998
+ */
999
+ basisPointsRate(): Promise<bigint>;
1000
+ /**
1001
+ * buyPriceBps
1002
+ * view
1003
+ */
1004
+ buyPriceBps(): Promise<bigint>;
1005
+ /**
1006
+ * calcFee
1007
+ * view
1008
+ */
1009
+ calcFee(value: bigint): Promise<bigint>;
1010
+ /**
1011
+ * collateralReserve
1012
+ * view
1013
+ */
1014
+ collateralReserve(): Promise<bigint>;
1015
+ /**
1016
+ * decimals
1017
+ * view
1018
+ */
1019
+ decimals(): Promise<bigint>;
1020
+ /**
1021
+ * deprecated
1022
+ * view
1023
+ */
1024
+ deprecated(): Promise<boolean>;
1025
+ /**
1026
+ * getBlackListStatus
1027
+ * view
1028
+ */
1029
+ getBlackListStatus(maker: `0x${string}`): Promise<boolean>;
1030
+ /**
1031
+ * isBlackListed
1032
+ * view
1033
+ */
1034
+ isBlackListed(arg0: `0x${string}`): Promise<boolean>;
1035
+ /**
1036
+ * isExchange
1037
+ * view
1038
+ */
1039
+ isExchange(arg0: `0x${string}`): Promise<boolean>;
1040
+ /**
1041
+ * isWhitelisted
1042
+ * view
1043
+ */
1044
+ isWhitelisted(arg0: `0x${string}`): Promise<boolean>;
1045
+ /**
1046
+ * maximumFee
1047
+ * view
1048
+ */
1049
+ maximumFee(): Promise<bigint>;
1050
+ /**
1051
+ * name
1052
+ * view
1053
+ */
1054
+ name(): Promise<string>;
1055
+ /**
1056
+ * oldBalanceOf
1057
+ * view
1058
+ */
1059
+ oldBalanceOf(who: `0x${string}`): Promise<bigint>;
1060
+ /**
1061
+ * owner
1062
+ * view
1063
+ */
1064
+ owner(): Promise<`0x${string}`>;
1065
+ /**
1066
+ * paused
1067
+ * view
1068
+ */
1069
+ paused(): Promise<boolean>;
1070
+ /**
1071
+ * symbol
1072
+ * view
1073
+ */
1074
+ symbol(): Promise<string>;
1075
+ /**
1076
+ * totalSupply
1077
+ * view
1078
+ */
1079
+ totalSupply(): Promise<bigint>;
1080
+ /**
1081
+ * transferMode
1082
+ * view
1083
+ */
1084
+ transferMode(): Promise<bigint>;
1085
+ /**
1086
+ * upgradedAddress
1087
+ * view
1088
+ */
1089
+ upgradedAddress(): Promise<`0x${string}`>;
1090
+ /**
1091
+ * usdtToken
1092
+ * view
1093
+ */
1094
+ usdtToken(): Promise<`0x${string}`>;
1095
+ /**
1096
+ * addBlackList
1097
+ * nonpayable
1098
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1099
+ */
1100
+ addBlackList(evilUser: `0x${string}`, options?: {
1101
+ accessList?: import('viem').AccessList;
1102
+ authorizationList?: import('viem').AuthorizationList;
1103
+ chain?: import('viem').Chain | null;
1104
+ dataSuffix?: `0x${string}`;
1105
+ gas?: bigint;
1106
+ gasPrice?: bigint;
1107
+ maxFeePerGas?: bigint;
1108
+ maxPriorityFeePerGas?: bigint;
1109
+ nonce?: number;
1110
+ value?: bigint;
1111
+ }): Promise<`0x${string}`>;
1112
+ /**
1113
+ * approve
1114
+ * nonpayable
1115
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1116
+ */
1117
+ approve(spender: `0x${string}`, value: bigint, options?: {
1118
+ accessList?: import('viem').AccessList;
1119
+ authorizationList?: import('viem').AuthorizationList;
1120
+ chain?: import('viem').Chain | null;
1121
+ dataSuffix?: `0x${string}`;
1122
+ gas?: bigint;
1123
+ gasPrice?: bigint;
1124
+ maxFeePerGas?: bigint;
1125
+ maxPriorityFeePerGas?: bigint;
1126
+ nonce?: number;
1127
+ value?: bigint;
1128
+ }): Promise<`0x${string}`>;
1129
+ /**
1130
+ * buy
1131
+ * nonpayable
1132
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1133
+ */
1134
+ buy(flashAmount: bigint, options?: {
1135
+ accessList?: import('viem').AccessList;
1136
+ authorizationList?: import('viem').AuthorizationList;
1137
+ chain?: import('viem').Chain | null;
1138
+ dataSuffix?: `0x${string}`;
1139
+ gas?: bigint;
1140
+ gasPrice?: bigint;
1141
+ maxFeePerGas?: bigint;
1142
+ maxPriorityFeePerGas?: bigint;
1143
+ nonce?: number;
1144
+ value?: bigint;
1145
+ }): Promise<`0x${string}`>;
1146
+ /**
1147
+ * decreaseApproval
1148
+ * nonpayable
1149
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1150
+ */
1151
+ decreaseApproval(spender: `0x${string}`, subtractedValue: bigint, options?: {
1152
+ accessList?: import('viem').AccessList;
1153
+ authorizationList?: import('viem').AuthorizationList;
1154
+ chain?: import('viem').Chain | null;
1155
+ dataSuffix?: `0x${string}`;
1156
+ gas?: bigint;
1157
+ gasPrice?: bigint;
1158
+ maxFeePerGas?: bigint;
1159
+ maxPriorityFeePerGas?: bigint;
1160
+ nonce?: number;
1161
+ value?: bigint;
1162
+ }): Promise<`0x${string}`>;
1163
+ /**
1164
+ * deprecate
1165
+ * nonpayable
1166
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1167
+ */
1168
+ deprecate(upgradedAddress_: `0x${string}`, options?: {
1169
+ accessList?: import('viem').AccessList;
1170
+ authorizationList?: import('viem').AuthorizationList;
1171
+ chain?: import('viem').Chain | null;
1172
+ dataSuffix?: `0x${string}`;
1173
+ gas?: bigint;
1174
+ gasPrice?: bigint;
1175
+ maxFeePerGas?: bigint;
1176
+ maxPriorityFeePerGas?: bigint;
1177
+ nonce?: number;
1178
+ value?: bigint;
1179
+ }): Promise<`0x${string}`>;
1180
+ /**
1181
+ * destroyBlackFunds
1182
+ * nonpayable
1183
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1184
+ */
1185
+ destroyBlackFunds(blackListedUser: `0x${string}`, options?: {
1186
+ accessList?: import('viem').AccessList;
1187
+ authorizationList?: import('viem').AuthorizationList;
1188
+ chain?: import('viem').Chain | null;
1189
+ dataSuffix?: `0x${string}`;
1190
+ gas?: bigint;
1191
+ gasPrice?: bigint;
1192
+ maxFeePerGas?: bigint;
1193
+ maxPriorityFeePerGas?: bigint;
1194
+ nonce?: number;
1195
+ value?: bigint;
1196
+ }): Promise<`0x${string}`>;
1197
+ /**
1198
+ * increaseApproval
1199
+ * nonpayable
1200
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1201
+ */
1202
+ increaseApproval(spender: `0x${string}`, addedValue: bigint, options?: {
1203
+ accessList?: import('viem').AccessList;
1204
+ authorizationList?: import('viem').AuthorizationList;
1205
+ chain?: import('viem').Chain | null;
1206
+ dataSuffix?: `0x${string}`;
1207
+ gas?: bigint;
1208
+ gasPrice?: bigint;
1209
+ maxFeePerGas?: bigint;
1210
+ maxPriorityFeePerGas?: bigint;
1211
+ nonce?: number;
1212
+ value?: bigint;
1213
+ }): Promise<`0x${string}`>;
1214
+ /**
1215
+ * issue
1216
+ * nonpayable
1217
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1218
+ */
1219
+ issue(amount: bigint, options?: {
1220
+ accessList?: import('viem').AccessList;
1221
+ authorizationList?: import('viem').AuthorizationList;
1222
+ chain?: import('viem').Chain | null;
1223
+ dataSuffix?: `0x${string}`;
1224
+ gas?: bigint;
1225
+ gasPrice?: bigint;
1226
+ maxFeePerGas?: bigint;
1227
+ maxPriorityFeePerGas?: bigint;
1228
+ nonce?: number;
1229
+ value?: bigint;
1230
+ }): Promise<`0x${string}`>;
1231
+ /**
1232
+ * pause
1233
+ * nonpayable
1234
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1235
+ */
1236
+ pause(options?: {
1237
+ accessList?: import('viem').AccessList;
1238
+ authorizationList?: import('viem').AuthorizationList;
1239
+ chain?: import('viem').Chain | null;
1240
+ dataSuffix?: `0x${string}`;
1241
+ gas?: bigint;
1242
+ gasPrice?: bigint;
1243
+ maxFeePerGas?: bigint;
1244
+ maxPriorityFeePerGas?: bigint;
1245
+ nonce?: number;
1246
+ value?: bigint;
1247
+ }): Promise<`0x${string}`>;
1248
+ /**
1249
+ * redeem
1250
+ * nonpayable
1251
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1252
+ */
1253
+ redeem(amount: bigint, options?: {
1254
+ accessList?: import('viem').AccessList;
1255
+ authorizationList?: import('viem').AuthorizationList;
1256
+ chain?: import('viem').Chain | null;
1257
+ dataSuffix?: `0x${string}`;
1258
+ gas?: bigint;
1259
+ gasPrice?: bigint;
1260
+ maxFeePerGas?: bigint;
1261
+ maxPriorityFeePerGas?: bigint;
1262
+ nonce?: number;
1263
+ value?: bigint;
1264
+ }): Promise<`0x${string}`>;
1265
+ /**
1266
+ * removeBlackList
1267
+ * nonpayable
1268
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1269
+ */
1270
+ removeBlackList(clearedUser: `0x${string}`, options?: {
1271
+ accessList?: import('viem').AccessList;
1272
+ authorizationList?: import('viem').AuthorizationList;
1273
+ chain?: import('viem').Chain | null;
1274
+ dataSuffix?: `0x${string}`;
1275
+ gas?: bigint;
1276
+ gasPrice?: bigint;
1277
+ maxFeePerGas?: bigint;
1278
+ maxPriorityFeePerGas?: bigint;
1279
+ nonce?: number;
1280
+ value?: bigint;
1281
+ }): Promise<`0x${string}`>;
1282
+ /**
1283
+ * setBuyPriceBps
1284
+ * nonpayable
1285
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1286
+ */
1287
+ setBuyPriceBps(newBps: bigint, options?: {
1288
+ accessList?: import('viem').AccessList;
1289
+ authorizationList?: import('viem').AuthorizationList;
1290
+ chain?: import('viem').Chain | null;
1291
+ dataSuffix?: `0x${string}`;
1292
+ gas?: bigint;
1293
+ gasPrice?: bigint;
1294
+ maxFeePerGas?: bigint;
1295
+ maxPriorityFeePerGas?: bigint;
1296
+ nonce?: number;
1297
+ value?: bigint;
1298
+ }): Promise<`0x${string}`>;
1299
+ /**
1300
+ * setExchange
1301
+ * nonpayable
1302
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1303
+ */
1304
+ setExchange(account: `0x${string}`, status: boolean, options?: {
1305
+ accessList?: import('viem').AccessList;
1306
+ authorizationList?: import('viem').AuthorizationList;
1307
+ chain?: import('viem').Chain | null;
1308
+ dataSuffix?: `0x${string}`;
1309
+ gas?: bigint;
1310
+ gasPrice?: bigint;
1311
+ maxFeePerGas?: bigint;
1312
+ maxPriorityFeePerGas?: bigint;
1313
+ nonce?: number;
1314
+ value?: bigint;
1315
+ }): Promise<`0x${string}`>;
1316
+ /**
1317
+ * setExchangeBatch
1318
+ * nonpayable
1319
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1320
+ */
1321
+ setExchangeBatch(accounts: `0x${string}`[], status: boolean, options?: {
1322
+ accessList?: import('viem').AccessList;
1323
+ authorizationList?: import('viem').AuthorizationList;
1324
+ chain?: import('viem').Chain | null;
1325
+ dataSuffix?: `0x${string}`;
1326
+ gas?: bigint;
1327
+ gasPrice?: bigint;
1328
+ maxFeePerGas?: bigint;
1329
+ maxPriorityFeePerGas?: bigint;
1330
+ nonce?: number;
1331
+ value?: bigint;
1332
+ }): Promise<`0x${string}`>;
1333
+ /**
1334
+ * setName
1335
+ * nonpayable
1336
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1337
+ */
1338
+ setName(newName: string, options?: {
1339
+ accessList?: import('viem').AccessList;
1340
+ authorizationList?: import('viem').AuthorizationList;
1341
+ chain?: import('viem').Chain | null;
1342
+ dataSuffix?: `0x${string}`;
1343
+ gas?: bigint;
1344
+ gasPrice?: bigint;
1345
+ maxFeePerGas?: bigint;
1346
+ maxPriorityFeePerGas?: bigint;
1347
+ nonce?: number;
1348
+ value?: bigint;
1349
+ }): Promise<`0x${string}`>;
1350
+ /**
1351
+ * setParams
1352
+ * nonpayable
1353
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1354
+ */
1355
+ setParams(newBasisPoints: bigint, newMaxFee: bigint, options?: {
1356
+ accessList?: import('viem').AccessList;
1357
+ authorizationList?: import('viem').AuthorizationList;
1358
+ chain?: import('viem').Chain | null;
1359
+ dataSuffix?: `0x${string}`;
1360
+ gas?: bigint;
1361
+ gasPrice?: bigint;
1362
+ maxFeePerGas?: bigint;
1363
+ maxPriorityFeePerGas?: bigint;
1364
+ nonce?: number;
1365
+ value?: bigint;
1366
+ }): Promise<`0x${string}`>;
1367
+ /**
1368
+ * setSymbol
1369
+ * nonpayable
1370
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1371
+ */
1372
+ setSymbol(newSymbol: string, options?: {
1373
+ accessList?: import('viem').AccessList;
1374
+ authorizationList?: import('viem').AuthorizationList;
1375
+ chain?: import('viem').Chain | null;
1376
+ dataSuffix?: `0x${string}`;
1377
+ gas?: bigint;
1378
+ gasPrice?: bigint;
1379
+ maxFeePerGas?: bigint;
1380
+ maxPriorityFeePerGas?: bigint;
1381
+ nonce?: number;
1382
+ value?: bigint;
1383
+ }): Promise<`0x${string}`>;
1384
+ /**
1385
+ * setTransferMode
1386
+ * nonpayable
1387
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1388
+ */
1389
+ setTransferMode(mode: bigint, options?: {
1390
+ accessList?: import('viem').AccessList;
1391
+ authorizationList?: import('viem').AuthorizationList;
1392
+ chain?: import('viem').Chain | null;
1393
+ dataSuffix?: `0x${string}`;
1394
+ gas?: bigint;
1395
+ gasPrice?: bigint;
1396
+ maxFeePerGas?: bigint;
1397
+ maxPriorityFeePerGas?: bigint;
1398
+ nonce?: number;
1399
+ value?: bigint;
1400
+ }): Promise<`0x${string}`>;
1401
+ /**
1402
+ * setUsdtToken
1403
+ * nonpayable
1404
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1405
+ */
1406
+ setUsdtToken(newToken: `0x${string}`, options?: {
1407
+ accessList?: import('viem').AccessList;
1408
+ authorizationList?: import('viem').AuthorizationList;
1409
+ chain?: import('viem').Chain | null;
1410
+ dataSuffix?: `0x${string}`;
1411
+ gas?: bigint;
1412
+ gasPrice?: bigint;
1413
+ maxFeePerGas?: bigint;
1414
+ maxPriorityFeePerGas?: bigint;
1415
+ nonce?: number;
1416
+ value?: bigint;
1417
+ }): Promise<`0x${string}`>;
1418
+ /**
1419
+ * setWhitelist
1420
+ * nonpayable
1421
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1422
+ */
1423
+ setWhitelist(account: `0x${string}`, status: boolean, options?: {
1424
+ accessList?: import('viem').AccessList;
1425
+ authorizationList?: import('viem').AuthorizationList;
1426
+ chain?: import('viem').Chain | null;
1427
+ dataSuffix?: `0x${string}`;
1428
+ gas?: bigint;
1429
+ gasPrice?: bigint;
1430
+ maxFeePerGas?: bigint;
1431
+ maxPriorityFeePerGas?: bigint;
1432
+ nonce?: number;
1433
+ value?: bigint;
1434
+ }): Promise<`0x${string}`>;
1435
+ /**
1436
+ * transfer
1437
+ * nonpayable
1438
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1439
+ */
1440
+ transfer(to: `0x${string}`, value: bigint, options?: {
1441
+ accessList?: import('viem').AccessList;
1442
+ authorizationList?: import('viem').AuthorizationList;
1443
+ chain?: import('viem').Chain | null;
1444
+ dataSuffix?: `0x${string}`;
1445
+ gas?: bigint;
1446
+ gasPrice?: bigint;
1447
+ maxFeePerGas?: bigint;
1448
+ maxPriorityFeePerGas?: bigint;
1449
+ nonce?: number;
1450
+ value?: bigint;
1451
+ }): Promise<`0x${string}`>;
1452
+ /**
1453
+ * transferFrom
1454
+ * nonpayable
1455
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1456
+ */
1457
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
1458
+ accessList?: import('viem').AccessList;
1459
+ authorizationList?: import('viem').AuthorizationList;
1460
+ chain?: import('viem').Chain | null;
1461
+ dataSuffix?: `0x${string}`;
1462
+ gas?: bigint;
1463
+ gasPrice?: bigint;
1464
+ maxFeePerGas?: bigint;
1465
+ maxPriorityFeePerGas?: bigint;
1466
+ nonce?: number;
1467
+ value?: bigint;
1468
+ }): Promise<`0x${string}`>;
1469
+ /**
1470
+ * transferOwnership
1471
+ * nonpayable
1472
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1473
+ */
1474
+ transferOwnership(newOwner: `0x${string}`, options?: {
1475
+ accessList?: import('viem').AccessList;
1476
+ authorizationList?: import('viem').AuthorizationList;
1477
+ chain?: import('viem').Chain | null;
1478
+ dataSuffix?: `0x${string}`;
1479
+ gas?: bigint;
1480
+ gasPrice?: bigint;
1481
+ maxFeePerGas?: bigint;
1482
+ maxPriorityFeePerGas?: bigint;
1483
+ nonce?: number;
1484
+ value?: bigint;
1485
+ }): Promise<`0x${string}`>;
1486
+ /**
1487
+ * unpause
1488
+ * nonpayable
1489
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1490
+ */
1491
+ unpause(options?: {
1492
+ accessList?: import('viem').AccessList;
1493
+ authorizationList?: import('viem').AuthorizationList;
1494
+ chain?: import('viem').Chain | null;
1495
+ dataSuffix?: `0x${string}`;
1496
+ gas?: bigint;
1497
+ gasPrice?: bigint;
1498
+ maxFeePerGas?: bigint;
1499
+ maxPriorityFeePerGas?: bigint;
1500
+ nonce?: number;
1501
+ value?: bigint;
1502
+ }): Promise<`0x${string}`>;
1503
+ /**
1504
+ * withdrawCollateral
1505
+ * nonpayable
1506
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1507
+ */
1508
+ withdrawCollateral(to: `0x${string}`, amount: bigint, options?: {
1509
+ accessList?: import('viem').AccessList;
1510
+ authorizationList?: import('viem').AuthorizationList;
1511
+ chain?: import('viem').Chain | null;
1512
+ dataSuffix?: `0x${string}`;
1513
+ gas?: bigint;
1514
+ gasPrice?: bigint;
1515
+ maxFeePerGas?: bigint;
1516
+ maxPriorityFeePerGas?: bigint;
1517
+ nonce?: number;
1518
+ value?: bigint;
1519
+ }): Promise<`0x${string}`>;
1520
+ /**
1521
+ * Simulate contract write operations (dry-run without sending transaction)
1522
+ *
1523
+ * @example
1524
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1525
+ * console.log('Gas estimate:', result.request.gas);
1526
+ * console.log('Would succeed:', result.result);
1527
+ */
1528
+ get simulate(): {
1529
+ /**
1530
+ * Simulate addBlackList
1531
+ * Returns gas estimate and result without sending transaction
1532
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1533
+ */
1534
+ addBlackList(evilUser: `0x${string}`, options?: {
1535
+ accessList?: import("viem").AccessList;
1536
+ authorizationList?: import("viem").AuthorizationList;
1537
+ chain?: import("viem").Chain | null;
1538
+ dataSuffix?: `0x${string}`;
1539
+ gas?: bigint;
1540
+ gasPrice?: bigint;
1541
+ maxFeePerGas?: bigint;
1542
+ maxPriorityFeePerGas?: bigint;
1543
+ nonce?: number;
1544
+ value?: bigint;
1545
+ }): Promise<void>;
1546
+ /**
1547
+ * Simulate approve
1548
+ * Returns gas estimate and result without sending transaction
1549
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1550
+ */
1551
+ approve(spender: `0x${string}`, value: bigint, options?: {
1552
+ accessList?: import("viem").AccessList;
1553
+ authorizationList?: import("viem").AuthorizationList;
1554
+ chain?: import("viem").Chain | null;
1555
+ dataSuffix?: `0x${string}`;
1556
+ gas?: bigint;
1557
+ gasPrice?: bigint;
1558
+ maxFeePerGas?: bigint;
1559
+ maxPriorityFeePerGas?: bigint;
1560
+ nonce?: number;
1561
+ value?: bigint;
1562
+ }): Promise<boolean>;
1563
+ /**
1564
+ * Simulate buy
1565
+ * Returns gas estimate and result without sending transaction
1566
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1567
+ */
1568
+ buy(flashAmount: bigint, options?: {
1569
+ accessList?: import("viem").AccessList;
1570
+ authorizationList?: import("viem").AuthorizationList;
1571
+ chain?: import("viem").Chain | null;
1572
+ dataSuffix?: `0x${string}`;
1573
+ gas?: bigint;
1574
+ gasPrice?: bigint;
1575
+ maxFeePerGas?: bigint;
1576
+ maxPriorityFeePerGas?: bigint;
1577
+ nonce?: number;
1578
+ value?: bigint;
1579
+ }): Promise<bigint>;
1580
+ /**
1581
+ * Simulate decreaseApproval
1582
+ * Returns gas estimate and result without sending transaction
1583
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1584
+ */
1585
+ decreaseApproval(spender: `0x${string}`, subtractedValue: bigint, options?: {
1586
+ accessList?: import("viem").AccessList;
1587
+ authorizationList?: import("viem").AuthorizationList;
1588
+ chain?: import("viem").Chain | null;
1589
+ dataSuffix?: `0x${string}`;
1590
+ gas?: bigint;
1591
+ gasPrice?: bigint;
1592
+ maxFeePerGas?: bigint;
1593
+ maxPriorityFeePerGas?: bigint;
1594
+ nonce?: number;
1595
+ value?: bigint;
1596
+ }): Promise<boolean>;
1597
+ /**
1598
+ * Simulate deprecate
1599
+ * Returns gas estimate and result without sending transaction
1600
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1601
+ */
1602
+ deprecate(upgradedAddress_: `0x${string}`, options?: {
1603
+ accessList?: import("viem").AccessList;
1604
+ authorizationList?: import("viem").AuthorizationList;
1605
+ chain?: import("viem").Chain | null;
1606
+ dataSuffix?: `0x${string}`;
1607
+ gas?: bigint;
1608
+ gasPrice?: bigint;
1609
+ maxFeePerGas?: bigint;
1610
+ maxPriorityFeePerGas?: bigint;
1611
+ nonce?: number;
1612
+ value?: bigint;
1613
+ }): Promise<void>;
1614
+ /**
1615
+ * Simulate destroyBlackFunds
1616
+ * Returns gas estimate and result without sending transaction
1617
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1618
+ */
1619
+ destroyBlackFunds(blackListedUser: `0x${string}`, options?: {
1620
+ accessList?: import("viem").AccessList;
1621
+ authorizationList?: import("viem").AuthorizationList;
1622
+ chain?: import("viem").Chain | null;
1623
+ dataSuffix?: `0x${string}`;
1624
+ gas?: bigint;
1625
+ gasPrice?: bigint;
1626
+ maxFeePerGas?: bigint;
1627
+ maxPriorityFeePerGas?: bigint;
1628
+ nonce?: number;
1629
+ value?: bigint;
1630
+ }): Promise<void>;
1631
+ /**
1632
+ * Simulate increaseApproval
1633
+ * Returns gas estimate and result without sending transaction
1634
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1635
+ */
1636
+ increaseApproval(spender: `0x${string}`, addedValue: bigint, options?: {
1637
+ accessList?: import("viem").AccessList;
1638
+ authorizationList?: import("viem").AuthorizationList;
1639
+ chain?: import("viem").Chain | null;
1640
+ dataSuffix?: `0x${string}`;
1641
+ gas?: bigint;
1642
+ gasPrice?: bigint;
1643
+ maxFeePerGas?: bigint;
1644
+ maxPriorityFeePerGas?: bigint;
1645
+ nonce?: number;
1646
+ value?: bigint;
1647
+ }): Promise<boolean>;
1648
+ /**
1649
+ * Simulate issue
1650
+ * Returns gas estimate and result without sending transaction
1651
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1652
+ */
1653
+ issue(amount: bigint, options?: {
1654
+ accessList?: import("viem").AccessList;
1655
+ authorizationList?: import("viem").AuthorizationList;
1656
+ chain?: import("viem").Chain | null;
1657
+ dataSuffix?: `0x${string}`;
1658
+ gas?: bigint;
1659
+ gasPrice?: bigint;
1660
+ maxFeePerGas?: bigint;
1661
+ maxPriorityFeePerGas?: bigint;
1662
+ nonce?: number;
1663
+ value?: bigint;
1664
+ }): Promise<void>;
1665
+ /**
1666
+ * Simulate pause
1667
+ * Returns gas estimate and result without sending transaction
1668
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1669
+ */
1670
+ pause(options?: {
1671
+ accessList?: import("viem").AccessList;
1672
+ authorizationList?: import("viem").AuthorizationList;
1673
+ chain?: import("viem").Chain | null;
1674
+ dataSuffix?: `0x${string}`;
1675
+ gas?: bigint;
1676
+ gasPrice?: bigint;
1677
+ maxFeePerGas?: bigint;
1678
+ maxPriorityFeePerGas?: bigint;
1679
+ nonce?: number;
1680
+ value?: bigint;
1681
+ }): Promise<void>;
1682
+ /**
1683
+ * Simulate redeem
1684
+ * Returns gas estimate and result without sending transaction
1685
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1686
+ */
1687
+ redeem(amount: bigint, options?: {
1688
+ accessList?: import("viem").AccessList;
1689
+ authorizationList?: import("viem").AuthorizationList;
1690
+ chain?: import("viem").Chain | null;
1691
+ dataSuffix?: `0x${string}`;
1692
+ gas?: bigint;
1693
+ gasPrice?: bigint;
1694
+ maxFeePerGas?: bigint;
1695
+ maxPriorityFeePerGas?: bigint;
1696
+ nonce?: number;
1697
+ value?: bigint;
1698
+ }): Promise<void>;
1699
+ /**
1700
+ * Simulate removeBlackList
1701
+ * Returns gas estimate and result without sending transaction
1702
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1703
+ */
1704
+ removeBlackList(clearedUser: `0x${string}`, options?: {
1705
+ accessList?: import("viem").AccessList;
1706
+ authorizationList?: import("viem").AuthorizationList;
1707
+ chain?: import("viem").Chain | null;
1708
+ dataSuffix?: `0x${string}`;
1709
+ gas?: bigint;
1710
+ gasPrice?: bigint;
1711
+ maxFeePerGas?: bigint;
1712
+ maxPriorityFeePerGas?: bigint;
1713
+ nonce?: number;
1714
+ value?: bigint;
1715
+ }): Promise<void>;
1716
+ /**
1717
+ * Simulate setBuyPriceBps
1718
+ * Returns gas estimate and result without sending transaction
1719
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1720
+ */
1721
+ setBuyPriceBps(newBps: bigint, options?: {
1722
+ accessList?: import("viem").AccessList;
1723
+ authorizationList?: import("viem").AuthorizationList;
1724
+ chain?: import("viem").Chain | null;
1725
+ dataSuffix?: `0x${string}`;
1726
+ gas?: bigint;
1727
+ gasPrice?: bigint;
1728
+ maxFeePerGas?: bigint;
1729
+ maxPriorityFeePerGas?: bigint;
1730
+ nonce?: number;
1731
+ value?: bigint;
1732
+ }): Promise<void>;
1733
+ /**
1734
+ * Simulate setExchange
1735
+ * Returns gas estimate and result without sending transaction
1736
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1737
+ */
1738
+ setExchange(account: `0x${string}`, status: boolean, options?: {
1739
+ accessList?: import("viem").AccessList;
1740
+ authorizationList?: import("viem").AuthorizationList;
1741
+ chain?: import("viem").Chain | null;
1742
+ dataSuffix?: `0x${string}`;
1743
+ gas?: bigint;
1744
+ gasPrice?: bigint;
1745
+ maxFeePerGas?: bigint;
1746
+ maxPriorityFeePerGas?: bigint;
1747
+ nonce?: number;
1748
+ value?: bigint;
1749
+ }): Promise<void>;
1750
+ /**
1751
+ * Simulate setExchangeBatch
1752
+ * Returns gas estimate and result without sending transaction
1753
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1754
+ */
1755
+ setExchangeBatch(accounts: `0x${string}`[], status: boolean, options?: {
1756
+ accessList?: import("viem").AccessList;
1757
+ authorizationList?: import("viem").AuthorizationList;
1758
+ chain?: import("viem").Chain | null;
1759
+ dataSuffix?: `0x${string}`;
1760
+ gas?: bigint;
1761
+ gasPrice?: bigint;
1762
+ maxFeePerGas?: bigint;
1763
+ maxPriorityFeePerGas?: bigint;
1764
+ nonce?: number;
1765
+ value?: bigint;
1766
+ }): Promise<void>;
1767
+ /**
1768
+ * Simulate setName
1769
+ * Returns gas estimate and result without sending transaction
1770
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1771
+ */
1772
+ setName(newName: string, options?: {
1773
+ accessList?: import("viem").AccessList;
1774
+ authorizationList?: import("viem").AuthorizationList;
1775
+ chain?: import("viem").Chain | null;
1776
+ dataSuffix?: `0x${string}`;
1777
+ gas?: bigint;
1778
+ gasPrice?: bigint;
1779
+ maxFeePerGas?: bigint;
1780
+ maxPriorityFeePerGas?: bigint;
1781
+ nonce?: number;
1782
+ value?: bigint;
1783
+ }): Promise<void>;
1784
+ /**
1785
+ * Simulate setParams
1786
+ * Returns gas estimate and result without sending transaction
1787
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1788
+ */
1789
+ setParams(newBasisPoints: bigint, newMaxFee: bigint, options?: {
1790
+ accessList?: import("viem").AccessList;
1791
+ authorizationList?: import("viem").AuthorizationList;
1792
+ chain?: import("viem").Chain | null;
1793
+ dataSuffix?: `0x${string}`;
1794
+ gas?: bigint;
1795
+ gasPrice?: bigint;
1796
+ maxFeePerGas?: bigint;
1797
+ maxPriorityFeePerGas?: bigint;
1798
+ nonce?: number;
1799
+ value?: bigint;
1800
+ }): Promise<void>;
1801
+ /**
1802
+ * Simulate setSymbol
1803
+ * Returns gas estimate and result without sending transaction
1804
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1805
+ */
1806
+ setSymbol(newSymbol: string, options?: {
1807
+ accessList?: import("viem").AccessList;
1808
+ authorizationList?: import("viem").AuthorizationList;
1809
+ chain?: import("viem").Chain | null;
1810
+ dataSuffix?: `0x${string}`;
1811
+ gas?: bigint;
1812
+ gasPrice?: bigint;
1813
+ maxFeePerGas?: bigint;
1814
+ maxPriorityFeePerGas?: bigint;
1815
+ nonce?: number;
1816
+ value?: bigint;
1817
+ }): Promise<void>;
1818
+ /**
1819
+ * Simulate setTransferMode
1820
+ * Returns gas estimate and result without sending transaction
1821
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1822
+ */
1823
+ setTransferMode(mode: bigint, options?: {
1824
+ accessList?: import("viem").AccessList;
1825
+ authorizationList?: import("viem").AuthorizationList;
1826
+ chain?: import("viem").Chain | null;
1827
+ dataSuffix?: `0x${string}`;
1828
+ gas?: bigint;
1829
+ gasPrice?: bigint;
1830
+ maxFeePerGas?: bigint;
1831
+ maxPriorityFeePerGas?: bigint;
1832
+ nonce?: number;
1833
+ value?: bigint;
1834
+ }): Promise<void>;
1835
+ /**
1836
+ * Simulate setUsdtToken
1837
+ * Returns gas estimate and result without sending transaction
1838
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1839
+ */
1840
+ setUsdtToken(newToken: `0x${string}`, options?: {
1841
+ accessList?: import("viem").AccessList;
1842
+ authorizationList?: import("viem").AuthorizationList;
1843
+ chain?: import("viem").Chain | null;
1844
+ dataSuffix?: `0x${string}`;
1845
+ gas?: bigint;
1846
+ gasPrice?: bigint;
1847
+ maxFeePerGas?: bigint;
1848
+ maxPriorityFeePerGas?: bigint;
1849
+ nonce?: number;
1850
+ value?: bigint;
1851
+ }): Promise<void>;
1852
+ /**
1853
+ * Simulate setWhitelist
1854
+ * Returns gas estimate and result without sending transaction
1855
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1856
+ */
1857
+ setWhitelist(account: `0x${string}`, status: boolean, options?: {
1858
+ accessList?: import("viem").AccessList;
1859
+ authorizationList?: import("viem").AuthorizationList;
1860
+ chain?: import("viem").Chain | null;
1861
+ dataSuffix?: `0x${string}`;
1862
+ gas?: bigint;
1863
+ gasPrice?: bigint;
1864
+ maxFeePerGas?: bigint;
1865
+ maxPriorityFeePerGas?: bigint;
1866
+ nonce?: number;
1867
+ value?: bigint;
1868
+ }): Promise<void>;
1869
+ /**
1870
+ * Simulate transfer
1871
+ * Returns gas estimate and result without sending transaction
1872
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1873
+ */
1874
+ transfer(to: `0x${string}`, value: bigint, options?: {
1875
+ accessList?: import("viem").AccessList;
1876
+ authorizationList?: import("viem").AuthorizationList;
1877
+ chain?: import("viem").Chain | null;
1878
+ dataSuffix?: `0x${string}`;
1879
+ gas?: bigint;
1880
+ gasPrice?: bigint;
1881
+ maxFeePerGas?: bigint;
1882
+ maxPriorityFeePerGas?: bigint;
1883
+ nonce?: number;
1884
+ value?: bigint;
1885
+ }): Promise<boolean>;
1886
+ /**
1887
+ * Simulate transferFrom
1888
+ * Returns gas estimate and result without sending transaction
1889
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1890
+ */
1891
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
1892
+ accessList?: import("viem").AccessList;
1893
+ authorizationList?: import("viem").AuthorizationList;
1894
+ chain?: import("viem").Chain | null;
1895
+ dataSuffix?: `0x${string}`;
1896
+ gas?: bigint;
1897
+ gasPrice?: bigint;
1898
+ maxFeePerGas?: bigint;
1899
+ maxPriorityFeePerGas?: bigint;
1900
+ nonce?: number;
1901
+ value?: bigint;
1902
+ }): Promise<boolean>;
1903
+ /**
1904
+ * Simulate transferOwnership
1905
+ * Returns gas estimate and result without sending transaction
1906
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1907
+ */
1908
+ transferOwnership(newOwner: `0x${string}`, options?: {
1909
+ accessList?: import("viem").AccessList;
1910
+ authorizationList?: import("viem").AuthorizationList;
1911
+ chain?: import("viem").Chain | null;
1912
+ dataSuffix?: `0x${string}`;
1913
+ gas?: bigint;
1914
+ gasPrice?: bigint;
1915
+ maxFeePerGas?: bigint;
1916
+ maxPriorityFeePerGas?: bigint;
1917
+ nonce?: number;
1918
+ value?: bigint;
1919
+ }): Promise<void>;
1920
+ /**
1921
+ * Simulate unpause
1922
+ * Returns gas estimate and result without sending transaction
1923
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1924
+ */
1925
+ unpause(options?: {
1926
+ accessList?: import("viem").AccessList;
1927
+ authorizationList?: import("viem").AuthorizationList;
1928
+ chain?: import("viem").Chain | null;
1929
+ dataSuffix?: `0x${string}`;
1930
+ gas?: bigint;
1931
+ gasPrice?: bigint;
1932
+ maxFeePerGas?: bigint;
1933
+ maxPriorityFeePerGas?: bigint;
1934
+ nonce?: number;
1935
+ value?: bigint;
1936
+ }): Promise<void>;
1937
+ /**
1938
+ * Simulate withdrawCollateral
1939
+ * Returns gas estimate and result without sending transaction
1940
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1941
+ */
1942
+ withdrawCollateral(to: `0x${string}`, amount: bigint, options?: {
1943
+ accessList?: import("viem").AccessList;
1944
+ authorizationList?: import("viem").AuthorizationList;
1945
+ chain?: import("viem").Chain | null;
1946
+ dataSuffix?: `0x${string}`;
1947
+ gas?: bigint;
1948
+ gasPrice?: bigint;
1949
+ maxFeePerGas?: bigint;
1950
+ maxPriorityFeePerGas?: bigint;
1951
+ nonce?: number;
1952
+ value?: bigint;
1953
+ }): Promise<void>;
1954
+ };
1955
+ /**
1956
+ * Watch contract events
1957
+ *
1958
+ * @example
1959
+ * // Watch all Transfer events
1960
+ * const unwatch = contract.watch.Transfer((event) => {
1961
+ * console.log('Transfer:', event);
1962
+ * });
1963
+ *
1964
+ * // Stop watching
1965
+ * unwatch();
1966
+ */
1967
+ get watch(): {
1968
+ /**
1969
+ * Watch AddedBlackList events
1970
+ * @param callback Function to call when event is emitted
1971
+ * @param filter Optional filter for indexed parameters
1972
+ * @returns Unwatch function to stop listening
1973
+ */
1974
+ AddedBlackList: (callback: (event: {
1975
+ user: `0x${string}`;
1976
+ }) => void, filter?: {
1977
+ user: `0x${string}`;
1978
+ }) => () => void;
1979
+ /**
1980
+ * Watch Approval events
1981
+ * @param callback Function to call when event is emitted
1982
+ * @param filter Optional filter for indexed parameters
1983
+ * @returns Unwatch function to stop listening
1984
+ */
1985
+ Approval: (callback: (event: {
1986
+ owner: `0x${string}`;
1987
+ spender: `0x${string}`;
1988
+ value: bigint;
1989
+ }) => void, filter?: {
1990
+ owner: `0x${string}`;
1991
+ spender: `0x${string}`;
1992
+ }) => () => void;
1993
+ /**
1994
+ * Watch BuyExecuted events
1995
+ * @param callback Function to call when event is emitted
1996
+ * @param filter Optional filter for indexed parameters
1997
+ * @returns Unwatch function to stop listening
1998
+ */
1999
+ BuyExecuted: (callback: (event: {
2000
+ buyer: `0x${string}`;
2001
+ flashAmount: bigint;
2002
+ usdtPaid: bigint;
2003
+ }) => void, filter?: {
2004
+ buyer: `0x${string}`;
2005
+ }) => () => void;
2006
+ /**
2007
+ * Watch BuyPriceChanged events
2008
+ * @param callback Function to call when event is emitted
2009
+ * @param filter Optional filter for indexed parameters
2010
+ * @returns Unwatch function to stop listening
2011
+ */
2012
+ BuyPriceChanged: (callback: (event: {
2013
+ newBps: bigint;
2014
+ }) => void) => () => void;
2015
+ /**
2016
+ * Watch CollateralWithdrawn events
2017
+ * @param callback Function to call when event is emitted
2018
+ * @param filter Optional filter for indexed parameters
2019
+ * @returns Unwatch function to stop listening
2020
+ */
2021
+ CollateralWithdrawn: (callback: (event: {
2022
+ to: `0x${string}`;
2023
+ amount: bigint;
2024
+ }) => void, filter?: {
2025
+ to: `0x${string}`;
2026
+ }) => () => void;
2027
+ /**
2028
+ * Watch Deprecate events
2029
+ * @param callback Function to call when event is emitted
2030
+ * @param filter Optional filter for indexed parameters
2031
+ * @returns Unwatch function to stop listening
2032
+ */
2033
+ Deprecate: (callback: (event: {
2034
+ newAddress: `0x${string}`;
2035
+ }) => void) => () => void;
2036
+ /**
2037
+ * Watch DestroyedBlackFunds events
2038
+ * @param callback Function to call when event is emitted
2039
+ * @param filter Optional filter for indexed parameters
2040
+ * @returns Unwatch function to stop listening
2041
+ */
2042
+ DestroyedBlackFunds: (callback: (event: {
2043
+ blackListedUser: `0x${string}`;
2044
+ balance: bigint;
2045
+ }) => void, filter?: {
2046
+ blackListedUser: `0x${string}`;
2047
+ }) => () => void;
2048
+ /**
2049
+ * Watch ExchangeUpdated events
2050
+ * @param callback Function to call when event is emitted
2051
+ * @param filter Optional filter for indexed parameters
2052
+ * @returns Unwatch function to stop listening
2053
+ */
2054
+ ExchangeUpdated: (callback: (event: {
2055
+ account: `0x${string}`;
2056
+ status: boolean;
2057
+ }) => void, filter?: {
2058
+ account: `0x${string}`;
2059
+ }) => () => void;
2060
+ /**
2061
+ * Watch Issue events
2062
+ * @param callback Function to call when event is emitted
2063
+ * @param filter Optional filter for indexed parameters
2064
+ * @returns Unwatch function to stop listening
2065
+ */
2066
+ Issue: (callback: (event: {
2067
+ amount: bigint;
2068
+ }) => void) => () => void;
2069
+ /**
2070
+ * Watch NameChanged events
2071
+ * @param callback Function to call when event is emitted
2072
+ * @param filter Optional filter for indexed parameters
2073
+ * @returns Unwatch function to stop listening
2074
+ */
2075
+ NameChanged: (callback: (event: {
2076
+ previousName: string;
2077
+ newName: string;
2078
+ }) => void) => () => void;
2079
+ /**
2080
+ * Watch OwnershipTransferred events
2081
+ * @param callback Function to call when event is emitted
2082
+ * @param filter Optional filter for indexed parameters
2083
+ * @returns Unwatch function to stop listening
2084
+ */
2085
+ OwnershipTransferred: (callback: (event: {
2086
+ previousOwner: `0x${string}`;
2087
+ newOwner: `0x${string}`;
2088
+ }) => void, filter?: {
2089
+ previousOwner: `0x${string}`;
2090
+ newOwner: `0x${string}`;
2091
+ }) => () => void;
2092
+ /**
2093
+ * Watch Params events
2094
+ * @param callback Function to call when event is emitted
2095
+ * @param filter Optional filter for indexed parameters
2096
+ * @returns Unwatch function to stop listening
2097
+ */
2098
+ Params: (callback: (event: {
2099
+ feeBasisPoints: bigint;
2100
+ maxFee: bigint;
2101
+ }) => void) => () => void;
2102
+ /**
2103
+ * Watch Pause events
2104
+ * @param callback Function to call when event is emitted
2105
+ * @param filter Optional filter for indexed parameters
2106
+ * @returns Unwatch function to stop listening
2107
+ */
2108
+ Pause: (callback: (event: {}) => void) => () => void;
2109
+ /**
2110
+ * Watch Redeem events
2111
+ * @param callback Function to call when event is emitted
2112
+ * @param filter Optional filter for indexed parameters
2113
+ * @returns Unwatch function to stop listening
2114
+ */
2115
+ Redeem: (callback: (event: {
2116
+ amount: bigint;
2117
+ }) => void) => () => void;
2118
+ /**
2119
+ * Watch RemovedBlackList events
2120
+ * @param callback Function to call when event is emitted
2121
+ * @param filter Optional filter for indexed parameters
2122
+ * @returns Unwatch function to stop listening
2123
+ */
2124
+ RemovedBlackList: (callback: (event: {
2125
+ user: `0x${string}`;
2126
+ }) => void, filter?: {
2127
+ user: `0x${string}`;
2128
+ }) => () => void;
2129
+ /**
2130
+ * Watch SymbolChanged events
2131
+ * @param callback Function to call when event is emitted
2132
+ * @param filter Optional filter for indexed parameters
2133
+ * @returns Unwatch function to stop listening
2134
+ */
2135
+ SymbolChanged: (callback: (event: {
2136
+ previousSymbol: string;
2137
+ newSymbol: string;
2138
+ }) => void) => () => void;
2139
+ /**
2140
+ * Watch Transfer events
2141
+ * @param callback Function to call when event is emitted
2142
+ * @param filter Optional filter for indexed parameters
2143
+ * @returns Unwatch function to stop listening
2144
+ */
2145
+ Transfer: (callback: (event: {
2146
+ from: `0x${string}`;
2147
+ to: `0x${string}`;
2148
+ value: bigint;
2149
+ }) => void, filter?: {
2150
+ from: `0x${string}`;
2151
+ to: `0x${string}`;
2152
+ }) => () => void;
2153
+ /**
2154
+ * Watch TransferModeChanged events
2155
+ * @param callback Function to call when event is emitted
2156
+ * @param filter Optional filter for indexed parameters
2157
+ * @returns Unwatch function to stop listening
2158
+ */
2159
+ TransferModeChanged: (callback: (event: {
2160
+ mode: bigint;
2161
+ }) => void) => () => void;
2162
+ /**
2163
+ * Watch Unpause events
2164
+ * @param callback Function to call when event is emitted
2165
+ * @param filter Optional filter for indexed parameters
2166
+ * @returns Unwatch function to stop listening
2167
+ */
2168
+ Unpause: (callback: (event: {}) => void) => () => void;
2169
+ /**
2170
+ * Watch WhitelistUpdated events
2171
+ * @param callback Function to call when event is emitted
2172
+ * @param filter Optional filter for indexed parameters
2173
+ * @returns Unwatch function to stop listening
2174
+ */
2175
+ WhitelistUpdated: (callback: (event: {
2176
+ account: `0x${string}`;
2177
+ status: boolean;
2178
+ }) => void, filter?: {
2179
+ account: `0x${string}`;
2180
+ }) => () => void;
2181
+ };
2182
+ }