@gitmyabi/usdt 1.0.16 → 1.0.18

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,1224 @@
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 stateMutability: "nonpayable";
10
+ readonly type: "constructor";
11
+ }, {
12
+ readonly inputs: readonly [{
13
+ readonly internalType: "address";
14
+ readonly name: "spender";
15
+ readonly type: "address";
16
+ }, {
17
+ readonly internalType: "uint256";
18
+ readonly name: "allowance";
19
+ readonly type: "uint256";
20
+ }, {
21
+ readonly internalType: "uint256";
22
+ readonly name: "needed";
23
+ readonly type: "uint256";
24
+ }];
25
+ readonly name: "ERC20InsufficientAllowance";
26
+ readonly type: "error";
27
+ }, {
28
+ readonly inputs: readonly [{
29
+ readonly internalType: "address";
30
+ readonly name: "sender";
31
+ readonly type: "address";
32
+ }, {
33
+ readonly internalType: "uint256";
34
+ readonly name: "balance";
35
+ readonly type: "uint256";
36
+ }, {
37
+ readonly internalType: "uint256";
38
+ readonly name: "needed";
39
+ readonly type: "uint256";
40
+ }];
41
+ readonly name: "ERC20InsufficientBalance";
42
+ readonly type: "error";
43
+ }, {
44
+ readonly inputs: readonly [{
45
+ readonly internalType: "address";
46
+ readonly name: "approver";
47
+ readonly type: "address";
48
+ }];
49
+ readonly name: "ERC20InvalidApprover";
50
+ readonly type: "error";
51
+ }, {
52
+ readonly inputs: readonly [{
53
+ readonly internalType: "address";
54
+ readonly name: "receiver";
55
+ readonly type: "address";
56
+ }];
57
+ readonly name: "ERC20InvalidReceiver";
58
+ readonly type: "error";
59
+ }, {
60
+ readonly inputs: readonly [{
61
+ readonly internalType: "address";
62
+ readonly name: "sender";
63
+ readonly type: "address";
64
+ }];
65
+ readonly name: "ERC20InvalidSender";
66
+ readonly type: "error";
67
+ }, {
68
+ readonly inputs: readonly [{
69
+ readonly internalType: "address";
70
+ readonly name: "spender";
71
+ readonly type: "address";
72
+ }];
73
+ readonly name: "ERC20InvalidSpender";
74
+ readonly type: "error";
75
+ }, {
76
+ readonly inputs: readonly [{
77
+ readonly internalType: "address";
78
+ readonly name: "owner";
79
+ readonly type: "address";
80
+ }];
81
+ readonly name: "OwnableInvalidOwner";
82
+ readonly type: "error";
83
+ }, {
84
+ readonly inputs: readonly [{
85
+ readonly internalType: "address";
86
+ readonly name: "account";
87
+ readonly type: "address";
88
+ }];
89
+ readonly name: "OwnableUnauthorizedAccount";
90
+ readonly type: "error";
91
+ }, {
92
+ readonly anonymous: false;
93
+ readonly inputs: readonly [{
94
+ readonly indexed: true;
95
+ readonly internalType: "address";
96
+ readonly name: "_user";
97
+ readonly type: "address";
98
+ }];
99
+ readonly name: "AddedBlackList";
100
+ readonly type: "event";
101
+ }, {
102
+ readonly anonymous: false;
103
+ readonly inputs: readonly [{
104
+ readonly indexed: true;
105
+ readonly internalType: "address";
106
+ readonly name: "owner";
107
+ readonly type: "address";
108
+ }, {
109
+ readonly indexed: true;
110
+ readonly internalType: "address";
111
+ readonly name: "spender";
112
+ readonly type: "address";
113
+ }, {
114
+ readonly indexed: false;
115
+ readonly internalType: "uint256";
116
+ readonly name: "value";
117
+ readonly type: "uint256";
118
+ }];
119
+ readonly name: "Approval";
120
+ readonly type: "event";
121
+ }, {
122
+ readonly anonymous: false;
123
+ readonly inputs: readonly [{
124
+ readonly indexed: false;
125
+ readonly internalType: "address";
126
+ readonly name: "newAddress";
127
+ readonly type: "address";
128
+ }];
129
+ readonly name: "Deprecate";
130
+ readonly type: "event";
131
+ }, {
132
+ readonly anonymous: false;
133
+ readonly inputs: readonly [{
134
+ readonly indexed: true;
135
+ readonly internalType: "address";
136
+ readonly name: "_blackListedUser";
137
+ readonly type: "address";
138
+ }, {
139
+ readonly indexed: false;
140
+ readonly internalType: "uint256";
141
+ readonly name: "_balance";
142
+ readonly type: "uint256";
143
+ }];
144
+ readonly name: "DestroyedBlackFunds";
145
+ readonly type: "event";
146
+ }, {
147
+ readonly anonymous: false;
148
+ readonly inputs: readonly [{
149
+ readonly indexed: false;
150
+ readonly internalType: "uint256";
151
+ readonly name: "amount";
152
+ readonly type: "uint256";
153
+ }];
154
+ readonly name: "Issue";
155
+ readonly type: "event";
156
+ }, {
157
+ readonly anonymous: false;
158
+ readonly inputs: readonly [{
159
+ readonly indexed: true;
160
+ readonly internalType: "address";
161
+ readonly name: "previousOwner";
162
+ readonly type: "address";
163
+ }, {
164
+ readonly indexed: true;
165
+ readonly internalType: "address";
166
+ readonly name: "newOwner";
167
+ readonly type: "address";
168
+ }];
169
+ readonly name: "OwnershipTransferred";
170
+ readonly type: "event";
171
+ }, {
172
+ readonly anonymous: false;
173
+ readonly inputs: readonly [{
174
+ readonly indexed: false;
175
+ readonly internalType: "uint256";
176
+ readonly name: "feeBasisPoints";
177
+ readonly type: "uint256";
178
+ }, {
179
+ readonly indexed: false;
180
+ readonly internalType: "uint256";
181
+ readonly name: "maxFee";
182
+ readonly type: "uint256";
183
+ }];
184
+ readonly name: "Params";
185
+ readonly type: "event";
186
+ }, {
187
+ readonly anonymous: false;
188
+ readonly inputs: readonly [{
189
+ readonly indexed: false;
190
+ readonly internalType: "address";
191
+ readonly name: "account";
192
+ readonly type: "address";
193
+ }];
194
+ readonly name: "Paused";
195
+ readonly type: "event";
196
+ }, {
197
+ readonly anonymous: false;
198
+ readonly inputs: readonly [{
199
+ readonly indexed: false;
200
+ readonly internalType: "uint256";
201
+ readonly name: "amount";
202
+ readonly type: "uint256";
203
+ }];
204
+ readonly name: "Redeem";
205
+ readonly type: "event";
206
+ }, {
207
+ readonly anonymous: false;
208
+ readonly inputs: readonly [{
209
+ readonly indexed: true;
210
+ readonly internalType: "address";
211
+ readonly name: "_user";
212
+ readonly type: "address";
213
+ }];
214
+ readonly name: "RemovedBlackList";
215
+ readonly type: "event";
216
+ }, {
217
+ readonly anonymous: false;
218
+ readonly inputs: readonly [{
219
+ readonly indexed: true;
220
+ readonly internalType: "address";
221
+ readonly name: "from";
222
+ readonly type: "address";
223
+ }, {
224
+ readonly indexed: true;
225
+ readonly internalType: "address";
226
+ readonly name: "to";
227
+ readonly type: "address";
228
+ }, {
229
+ readonly indexed: false;
230
+ readonly internalType: "uint256";
231
+ readonly name: "value";
232
+ readonly type: "uint256";
233
+ }];
234
+ readonly name: "Transfer";
235
+ readonly type: "event";
236
+ }, {
237
+ readonly anonymous: false;
238
+ readonly inputs: readonly [{
239
+ readonly indexed: false;
240
+ readonly internalType: "address";
241
+ readonly name: "account";
242
+ readonly type: "address";
243
+ }];
244
+ readonly name: "Unpaused";
245
+ readonly type: "event";
246
+ }, {
247
+ readonly inputs: readonly [{
248
+ readonly internalType: "address";
249
+ readonly name: "_evilUser";
250
+ readonly type: "address";
251
+ }];
252
+ readonly name: "addBlackList";
253
+ readonly outputs: readonly [];
254
+ readonly stateMutability: "nonpayable";
255
+ readonly type: "function";
256
+ }, {
257
+ readonly inputs: readonly [{
258
+ readonly internalType: "address";
259
+ readonly name: "owner";
260
+ readonly type: "address";
261
+ }, {
262
+ readonly internalType: "address";
263
+ readonly name: "spender";
264
+ readonly type: "address";
265
+ }];
266
+ readonly name: "allowance";
267
+ readonly outputs: readonly [{
268
+ readonly internalType: "uint256";
269
+ readonly name: "";
270
+ readonly type: "uint256";
271
+ }];
272
+ readonly stateMutability: "view";
273
+ readonly type: "function";
274
+ }, {
275
+ readonly inputs: readonly [{
276
+ readonly internalType: "address";
277
+ readonly name: "spender";
278
+ readonly type: "address";
279
+ }, {
280
+ readonly internalType: "uint256";
281
+ readonly name: "value";
282
+ readonly type: "uint256";
283
+ }];
284
+ readonly name: "approve";
285
+ readonly outputs: readonly [{
286
+ readonly internalType: "bool";
287
+ readonly name: "";
288
+ readonly type: "bool";
289
+ }];
290
+ readonly stateMutability: "nonpayable";
291
+ readonly type: "function";
292
+ }, {
293
+ readonly inputs: readonly [{
294
+ readonly internalType: "address";
295
+ readonly name: "account";
296
+ readonly type: "address";
297
+ }];
298
+ readonly name: "balanceOf";
299
+ readonly outputs: readonly [{
300
+ readonly internalType: "uint256";
301
+ readonly name: "";
302
+ readonly type: "uint256";
303
+ }];
304
+ readonly stateMutability: "view";
305
+ readonly type: "function";
306
+ }, {
307
+ readonly inputs: readonly [];
308
+ readonly name: "basisPointsRate";
309
+ readonly outputs: readonly [{
310
+ readonly internalType: "uint256";
311
+ readonly name: "";
312
+ readonly type: "uint256";
313
+ }];
314
+ readonly stateMutability: "view";
315
+ readonly type: "function";
316
+ }, {
317
+ readonly inputs: readonly [];
318
+ readonly name: "decimals";
319
+ readonly outputs: readonly [{
320
+ readonly internalType: "uint8";
321
+ readonly name: "";
322
+ readonly type: "uint8";
323
+ }];
324
+ readonly stateMutability: "pure";
325
+ readonly type: "function";
326
+ }, {
327
+ readonly inputs: readonly [{
328
+ readonly internalType: "address";
329
+ readonly name: "_upgradedAddress";
330
+ readonly type: "address";
331
+ }];
332
+ readonly name: "deprecate";
333
+ readonly outputs: readonly [];
334
+ readonly stateMutability: "nonpayable";
335
+ readonly type: "function";
336
+ }, {
337
+ readonly inputs: readonly [];
338
+ readonly name: "deprecated";
339
+ readonly outputs: readonly [{
340
+ readonly internalType: "bool";
341
+ readonly name: "";
342
+ readonly type: "bool";
343
+ }];
344
+ readonly stateMutability: "view";
345
+ readonly type: "function";
346
+ }, {
347
+ readonly inputs: readonly [{
348
+ readonly internalType: "address";
349
+ readonly name: "_blackListedUser";
350
+ readonly type: "address";
351
+ }];
352
+ readonly name: "destroyBlackFunds";
353
+ readonly outputs: readonly [];
354
+ readonly stateMutability: "nonpayable";
355
+ readonly type: "function";
356
+ }, {
357
+ readonly inputs: readonly [{
358
+ readonly internalType: "address";
359
+ readonly name: "";
360
+ readonly type: "address";
361
+ }];
362
+ readonly name: "isBlackListed";
363
+ readonly outputs: readonly [{
364
+ readonly internalType: "bool";
365
+ readonly name: "";
366
+ readonly type: "bool";
367
+ }];
368
+ readonly stateMutability: "view";
369
+ readonly type: "function";
370
+ }, {
371
+ readonly inputs: readonly [{
372
+ readonly internalType: "uint256";
373
+ readonly name: "amount";
374
+ readonly type: "uint256";
375
+ }];
376
+ readonly name: "issue";
377
+ readonly outputs: readonly [];
378
+ readonly stateMutability: "nonpayable";
379
+ readonly type: "function";
380
+ }, {
381
+ readonly inputs: readonly [];
382
+ readonly name: "maximumFee";
383
+ readonly outputs: readonly [{
384
+ readonly internalType: "uint256";
385
+ readonly name: "";
386
+ readonly type: "uint256";
387
+ }];
388
+ readonly stateMutability: "view";
389
+ readonly type: "function";
390
+ }, {
391
+ readonly inputs: readonly [];
392
+ readonly name: "name";
393
+ readonly outputs: readonly [{
394
+ readonly internalType: "string";
395
+ readonly name: "";
396
+ readonly type: "string";
397
+ }];
398
+ readonly stateMutability: "view";
399
+ readonly type: "function";
400
+ }, {
401
+ readonly inputs: readonly [];
402
+ readonly name: "owner";
403
+ readonly outputs: readonly [{
404
+ readonly internalType: "address";
405
+ readonly name: "";
406
+ readonly type: "address";
407
+ }];
408
+ readonly stateMutability: "view";
409
+ readonly type: "function";
410
+ }, {
411
+ readonly inputs: readonly [];
412
+ readonly name: "paused";
413
+ readonly outputs: readonly [{
414
+ readonly internalType: "bool";
415
+ readonly name: "";
416
+ readonly type: "bool";
417
+ }];
418
+ readonly stateMutability: "view";
419
+ readonly type: "function";
420
+ }, {
421
+ readonly inputs: readonly [{
422
+ readonly internalType: "uint256";
423
+ readonly name: "amount";
424
+ readonly type: "uint256";
425
+ }];
426
+ readonly name: "redeem";
427
+ readonly outputs: readonly [];
428
+ readonly stateMutability: "nonpayable";
429
+ readonly type: "function";
430
+ }, {
431
+ readonly inputs: readonly [{
432
+ readonly internalType: "address";
433
+ readonly name: "_clearedUser";
434
+ readonly type: "address";
435
+ }];
436
+ readonly name: "removeBlackList";
437
+ readonly outputs: readonly [];
438
+ readonly stateMutability: "nonpayable";
439
+ readonly type: "function";
440
+ }, {
441
+ readonly inputs: readonly [];
442
+ readonly name: "renounceOwnership";
443
+ readonly outputs: readonly [];
444
+ readonly stateMutability: "nonpayable";
445
+ readonly type: "function";
446
+ }, {
447
+ readonly inputs: readonly [{
448
+ readonly internalType: "uint256";
449
+ readonly name: "newBasisPoints";
450
+ readonly type: "uint256";
451
+ }, {
452
+ readonly internalType: "uint256";
453
+ readonly name: "newMaxFee";
454
+ readonly type: "uint256";
455
+ }];
456
+ readonly name: "setParams";
457
+ readonly outputs: readonly [];
458
+ readonly stateMutability: "nonpayable";
459
+ readonly type: "function";
460
+ }, {
461
+ readonly inputs: readonly [];
462
+ readonly name: "symbol";
463
+ readonly outputs: readonly [{
464
+ readonly internalType: "string";
465
+ readonly name: "";
466
+ readonly type: "string";
467
+ }];
468
+ readonly stateMutability: "view";
469
+ readonly type: "function";
470
+ }, {
471
+ readonly inputs: readonly [];
472
+ readonly name: "totalSupply";
473
+ readonly outputs: readonly [{
474
+ readonly internalType: "uint256";
475
+ readonly name: "";
476
+ readonly type: "uint256";
477
+ }];
478
+ readonly stateMutability: "view";
479
+ readonly type: "function";
480
+ }, {
481
+ readonly inputs: readonly [{
482
+ readonly internalType: "address";
483
+ readonly name: "_to";
484
+ readonly type: "address";
485
+ }, {
486
+ readonly internalType: "uint256";
487
+ readonly name: "_value";
488
+ readonly type: "uint256";
489
+ }];
490
+ readonly name: "transfer";
491
+ readonly outputs: readonly [{
492
+ readonly internalType: "bool";
493
+ readonly name: "";
494
+ readonly type: "bool";
495
+ }];
496
+ readonly stateMutability: "nonpayable";
497
+ readonly type: "function";
498
+ }, {
499
+ readonly inputs: readonly [{
500
+ readonly internalType: "address";
501
+ readonly name: "_from";
502
+ readonly type: "address";
503
+ }, {
504
+ readonly internalType: "address";
505
+ readonly name: "_to";
506
+ readonly type: "address";
507
+ }, {
508
+ readonly internalType: "uint256";
509
+ readonly name: "_value";
510
+ readonly type: "uint256";
511
+ }];
512
+ readonly name: "transferFrom";
513
+ readonly outputs: readonly [{
514
+ readonly internalType: "bool";
515
+ readonly name: "";
516
+ readonly type: "bool";
517
+ }];
518
+ readonly stateMutability: "nonpayable";
519
+ readonly type: "function";
520
+ }, {
521
+ readonly inputs: readonly [{
522
+ readonly internalType: "address";
523
+ readonly name: "newOwner";
524
+ readonly type: "address";
525
+ }];
526
+ readonly name: "transferOwnership";
527
+ readonly outputs: readonly [];
528
+ readonly stateMutability: "nonpayable";
529
+ readonly type: "function";
530
+ }, {
531
+ readonly inputs: readonly [];
532
+ readonly name: "upgradedAddress";
533
+ readonly outputs: readonly [{
534
+ readonly internalType: "address";
535
+ readonly name: "";
536
+ readonly type: "address";
537
+ }];
538
+ readonly stateMutability: "view";
539
+ readonly type: "function";
540
+ }];
541
+ /**
542
+ * Type-safe ABI for TetherToken_json
543
+ */
544
+ export type TetherToken_jsonAbi = typeof TetherToken_jsonAbi;
545
+ /**
546
+ * Contract instance type for TetherToken_json
547
+ */
548
+ export type TetherToken_jsonContract = any;
549
+ /**
550
+ * TetherToken_json Contract Class
551
+ *
552
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
553
+ *
554
+ * @example
555
+ * ```typescript
556
+ * import { createPublicClient, createWalletClient, http } from 'viem';
557
+ * import { mainnet } from 'viem/chains';
558
+ * import { TetherToken_json } from 'TetherToken_json';
559
+ *
560
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
561
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
562
+ *
563
+ * const contract = new TetherToken_json('0x...', { publicClient, walletClient });
564
+ *
565
+ * // Read functions
566
+ * const result = await contract.balanceOf('0x...');
567
+ *
568
+ * // Write functions
569
+ * const hash = await contract.transfer('0x...', 1000n);
570
+ *
571
+ * // Simulate transactions (dry-run)
572
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
573
+ * console.log('Gas estimate:', simulation.request.gas);
574
+ *
575
+ * // Watch events
576
+ * const unwatch = contract.watch.Transfer((event) => {
577
+ * console.log('Transfer event:', event);
578
+ * });
579
+ * ```
580
+ */
581
+ export declare class TetherToken_json {
582
+ private contract;
583
+ private contractAddress;
584
+ private publicClient;
585
+ constructor(address: Address, clients: {
586
+ publicClient: PublicClient;
587
+ walletClient?: WalletClient;
588
+ });
589
+ /**
590
+ * Get the contract address
591
+ */
592
+ get address(): Address;
593
+ /**
594
+ * Get the underlying viem contract instance
595
+ */
596
+ getContract(): TetherToken_jsonContract;
597
+ /**
598
+ * allowance
599
+ * view
600
+ */
601
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
602
+ /**
603
+ * balanceOf
604
+ * view
605
+ */
606
+ balanceOf(account: `0x${string}`): Promise<bigint>;
607
+ /**
608
+ * basisPointsRate
609
+ * view
610
+ */
611
+ basisPointsRate(): Promise<bigint>;
612
+ /**
613
+ * decimals
614
+ * pure
615
+ */
616
+ decimals(): Promise<bigint>;
617
+ /**
618
+ * deprecated
619
+ * view
620
+ */
621
+ deprecated(): Promise<boolean>;
622
+ /**
623
+ * isBlackListed
624
+ * view
625
+ */
626
+ isBlackListed(arg0: `0x${string}`): Promise<boolean>;
627
+ /**
628
+ * maximumFee
629
+ * view
630
+ */
631
+ maximumFee(): Promise<bigint>;
632
+ /**
633
+ * name
634
+ * view
635
+ */
636
+ name(): Promise<string>;
637
+ /**
638
+ * owner
639
+ * view
640
+ */
641
+ owner(): Promise<`0x${string}`>;
642
+ /**
643
+ * paused
644
+ * view
645
+ */
646
+ paused(): Promise<boolean>;
647
+ /**
648
+ * symbol
649
+ * view
650
+ */
651
+ symbol(): Promise<string>;
652
+ /**
653
+ * totalSupply
654
+ * view
655
+ */
656
+ totalSupply(): Promise<bigint>;
657
+ /**
658
+ * upgradedAddress
659
+ * view
660
+ */
661
+ upgradedAddress(): Promise<`0x${string}`>;
662
+ /**
663
+ * addBlackList
664
+ * nonpayable
665
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
666
+ */
667
+ addBlackList(_evilUser: `0x${string}`, options?: {
668
+ accessList?: import('viem').AccessList;
669
+ authorizationList?: import('viem').AuthorizationList;
670
+ chain?: import('viem').Chain | null;
671
+ dataSuffix?: `0x${string}`;
672
+ gas?: bigint;
673
+ gasPrice?: bigint;
674
+ maxFeePerGas?: bigint;
675
+ maxPriorityFeePerGas?: bigint;
676
+ nonce?: number;
677
+ value?: bigint;
678
+ }): Promise<`0x${string}`>;
679
+ /**
680
+ * approve
681
+ * nonpayable
682
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
683
+ */
684
+ approve(spender: `0x${string}`, value: bigint, options?: {
685
+ accessList?: import('viem').AccessList;
686
+ authorizationList?: import('viem').AuthorizationList;
687
+ chain?: import('viem').Chain | null;
688
+ dataSuffix?: `0x${string}`;
689
+ gas?: bigint;
690
+ gasPrice?: bigint;
691
+ maxFeePerGas?: bigint;
692
+ maxPriorityFeePerGas?: bigint;
693
+ nonce?: number;
694
+ value?: bigint;
695
+ }): Promise<`0x${string}`>;
696
+ /**
697
+ * deprecate
698
+ * nonpayable
699
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
700
+ */
701
+ deprecate(_upgradedAddress: `0x${string}`, options?: {
702
+ accessList?: import('viem').AccessList;
703
+ authorizationList?: import('viem').AuthorizationList;
704
+ chain?: import('viem').Chain | null;
705
+ dataSuffix?: `0x${string}`;
706
+ gas?: bigint;
707
+ gasPrice?: bigint;
708
+ maxFeePerGas?: bigint;
709
+ maxPriorityFeePerGas?: bigint;
710
+ nonce?: number;
711
+ value?: bigint;
712
+ }): Promise<`0x${string}`>;
713
+ /**
714
+ * destroyBlackFunds
715
+ * nonpayable
716
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
717
+ */
718
+ destroyBlackFunds(_blackListedUser: `0x${string}`, options?: {
719
+ accessList?: import('viem').AccessList;
720
+ authorizationList?: import('viem').AuthorizationList;
721
+ chain?: import('viem').Chain | null;
722
+ dataSuffix?: `0x${string}`;
723
+ gas?: bigint;
724
+ gasPrice?: bigint;
725
+ maxFeePerGas?: bigint;
726
+ maxPriorityFeePerGas?: bigint;
727
+ nonce?: number;
728
+ value?: bigint;
729
+ }): Promise<`0x${string}`>;
730
+ /**
731
+ * issue
732
+ * nonpayable
733
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
734
+ */
735
+ issue(amount: bigint, options?: {
736
+ accessList?: import('viem').AccessList;
737
+ authorizationList?: import('viem').AuthorizationList;
738
+ chain?: import('viem').Chain | null;
739
+ dataSuffix?: `0x${string}`;
740
+ gas?: bigint;
741
+ gasPrice?: bigint;
742
+ maxFeePerGas?: bigint;
743
+ maxPriorityFeePerGas?: bigint;
744
+ nonce?: number;
745
+ value?: bigint;
746
+ }): Promise<`0x${string}`>;
747
+ /**
748
+ * redeem
749
+ * nonpayable
750
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
751
+ */
752
+ redeem(amount: bigint, options?: {
753
+ accessList?: import('viem').AccessList;
754
+ authorizationList?: import('viem').AuthorizationList;
755
+ chain?: import('viem').Chain | null;
756
+ dataSuffix?: `0x${string}`;
757
+ gas?: bigint;
758
+ gasPrice?: bigint;
759
+ maxFeePerGas?: bigint;
760
+ maxPriorityFeePerGas?: bigint;
761
+ nonce?: number;
762
+ value?: bigint;
763
+ }): Promise<`0x${string}`>;
764
+ /**
765
+ * removeBlackList
766
+ * nonpayable
767
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
768
+ */
769
+ removeBlackList(_clearedUser: `0x${string}`, options?: {
770
+ accessList?: import('viem').AccessList;
771
+ authorizationList?: import('viem').AuthorizationList;
772
+ chain?: import('viem').Chain | null;
773
+ dataSuffix?: `0x${string}`;
774
+ gas?: bigint;
775
+ gasPrice?: bigint;
776
+ maxFeePerGas?: bigint;
777
+ maxPriorityFeePerGas?: bigint;
778
+ nonce?: number;
779
+ value?: bigint;
780
+ }): Promise<`0x${string}`>;
781
+ /**
782
+ * renounceOwnership
783
+ * nonpayable
784
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
785
+ */
786
+ renounceOwnership(options?: {
787
+ accessList?: import('viem').AccessList;
788
+ authorizationList?: import('viem').AuthorizationList;
789
+ chain?: import('viem').Chain | null;
790
+ dataSuffix?: `0x${string}`;
791
+ gas?: bigint;
792
+ gasPrice?: bigint;
793
+ maxFeePerGas?: bigint;
794
+ maxPriorityFeePerGas?: bigint;
795
+ nonce?: number;
796
+ value?: bigint;
797
+ }): Promise<`0x${string}`>;
798
+ /**
799
+ * setParams
800
+ * nonpayable
801
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
802
+ */
803
+ setParams(newBasisPoints: bigint, newMaxFee: bigint, options?: {
804
+ accessList?: import('viem').AccessList;
805
+ authorizationList?: import('viem').AuthorizationList;
806
+ chain?: import('viem').Chain | null;
807
+ dataSuffix?: `0x${string}`;
808
+ gas?: bigint;
809
+ gasPrice?: bigint;
810
+ maxFeePerGas?: bigint;
811
+ maxPriorityFeePerGas?: bigint;
812
+ nonce?: number;
813
+ value?: bigint;
814
+ }): Promise<`0x${string}`>;
815
+ /**
816
+ * transfer
817
+ * nonpayable
818
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
819
+ */
820
+ transfer(_to: `0x${string}`, _value: bigint, options?: {
821
+ accessList?: import('viem').AccessList;
822
+ authorizationList?: import('viem').AuthorizationList;
823
+ chain?: import('viem').Chain | null;
824
+ dataSuffix?: `0x${string}`;
825
+ gas?: bigint;
826
+ gasPrice?: bigint;
827
+ maxFeePerGas?: bigint;
828
+ maxPriorityFeePerGas?: bigint;
829
+ nonce?: number;
830
+ value?: bigint;
831
+ }): Promise<`0x${string}`>;
832
+ /**
833
+ * transferFrom
834
+ * nonpayable
835
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
836
+ */
837
+ transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
838
+ accessList?: import('viem').AccessList;
839
+ authorizationList?: import('viem').AuthorizationList;
840
+ chain?: import('viem').Chain | null;
841
+ dataSuffix?: `0x${string}`;
842
+ gas?: bigint;
843
+ gasPrice?: bigint;
844
+ maxFeePerGas?: bigint;
845
+ maxPriorityFeePerGas?: bigint;
846
+ nonce?: number;
847
+ value?: bigint;
848
+ }): Promise<`0x${string}`>;
849
+ /**
850
+ * transferOwnership
851
+ * nonpayable
852
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
853
+ */
854
+ transferOwnership(newOwner: `0x${string}`, options?: {
855
+ accessList?: import('viem').AccessList;
856
+ authorizationList?: import('viem').AuthorizationList;
857
+ chain?: import('viem').Chain | null;
858
+ dataSuffix?: `0x${string}`;
859
+ gas?: bigint;
860
+ gasPrice?: bigint;
861
+ maxFeePerGas?: bigint;
862
+ maxPriorityFeePerGas?: bigint;
863
+ nonce?: number;
864
+ value?: bigint;
865
+ }): Promise<`0x${string}`>;
866
+ /**
867
+ * Simulate contract write operations (dry-run without sending transaction)
868
+ *
869
+ * @example
870
+ * const result = await contract.simulate.transfer('0x...', 1000n);
871
+ * console.log('Gas estimate:', result.request.gas);
872
+ * console.log('Would succeed:', result.result);
873
+ */
874
+ get simulate(): {
875
+ /**
876
+ * Simulate addBlackList
877
+ * Returns gas estimate and result without sending transaction
878
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
879
+ */
880
+ addBlackList(_evilUser: `0x${string}`, options?: {
881
+ accessList?: import("viem").AccessList;
882
+ authorizationList?: import("viem").AuthorizationList;
883
+ chain?: import("viem").Chain | null;
884
+ dataSuffix?: `0x${string}`;
885
+ gas?: bigint;
886
+ gasPrice?: bigint;
887
+ maxFeePerGas?: bigint;
888
+ maxPriorityFeePerGas?: bigint;
889
+ nonce?: number;
890
+ value?: bigint;
891
+ }): Promise<void>;
892
+ /**
893
+ * Simulate approve
894
+ * Returns gas estimate and result without sending transaction
895
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
896
+ */
897
+ approve(spender: `0x${string}`, value: bigint, options?: {
898
+ accessList?: import("viem").AccessList;
899
+ authorizationList?: import("viem").AuthorizationList;
900
+ chain?: import("viem").Chain | null;
901
+ dataSuffix?: `0x${string}`;
902
+ gas?: bigint;
903
+ gasPrice?: bigint;
904
+ maxFeePerGas?: bigint;
905
+ maxPriorityFeePerGas?: bigint;
906
+ nonce?: number;
907
+ value?: bigint;
908
+ }): Promise<boolean>;
909
+ /**
910
+ * Simulate deprecate
911
+ * Returns gas estimate and result without sending transaction
912
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
913
+ */
914
+ deprecate(_upgradedAddress: `0x${string}`, options?: {
915
+ accessList?: import("viem").AccessList;
916
+ authorizationList?: import("viem").AuthorizationList;
917
+ chain?: import("viem").Chain | null;
918
+ dataSuffix?: `0x${string}`;
919
+ gas?: bigint;
920
+ gasPrice?: bigint;
921
+ maxFeePerGas?: bigint;
922
+ maxPriorityFeePerGas?: bigint;
923
+ nonce?: number;
924
+ value?: bigint;
925
+ }): Promise<void>;
926
+ /**
927
+ * Simulate destroyBlackFunds
928
+ * Returns gas estimate and result without sending transaction
929
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
930
+ */
931
+ destroyBlackFunds(_blackListedUser: `0x${string}`, options?: {
932
+ accessList?: import("viem").AccessList;
933
+ authorizationList?: import("viem").AuthorizationList;
934
+ chain?: import("viem").Chain | null;
935
+ dataSuffix?: `0x${string}`;
936
+ gas?: bigint;
937
+ gasPrice?: bigint;
938
+ maxFeePerGas?: bigint;
939
+ maxPriorityFeePerGas?: bigint;
940
+ nonce?: number;
941
+ value?: bigint;
942
+ }): Promise<void>;
943
+ /**
944
+ * Simulate issue
945
+ * Returns gas estimate and result without sending transaction
946
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
947
+ */
948
+ issue(amount: bigint, options?: {
949
+ accessList?: import("viem").AccessList;
950
+ authorizationList?: import("viem").AuthorizationList;
951
+ chain?: import("viem").Chain | null;
952
+ dataSuffix?: `0x${string}`;
953
+ gas?: bigint;
954
+ gasPrice?: bigint;
955
+ maxFeePerGas?: bigint;
956
+ maxPriorityFeePerGas?: bigint;
957
+ nonce?: number;
958
+ value?: bigint;
959
+ }): Promise<void>;
960
+ /**
961
+ * Simulate redeem
962
+ * Returns gas estimate and result without sending transaction
963
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
964
+ */
965
+ redeem(amount: bigint, options?: {
966
+ accessList?: import("viem").AccessList;
967
+ authorizationList?: import("viem").AuthorizationList;
968
+ chain?: import("viem").Chain | null;
969
+ dataSuffix?: `0x${string}`;
970
+ gas?: bigint;
971
+ gasPrice?: bigint;
972
+ maxFeePerGas?: bigint;
973
+ maxPriorityFeePerGas?: bigint;
974
+ nonce?: number;
975
+ value?: bigint;
976
+ }): Promise<void>;
977
+ /**
978
+ * Simulate removeBlackList
979
+ * Returns gas estimate and result without sending transaction
980
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
981
+ */
982
+ removeBlackList(_clearedUser: `0x${string}`, options?: {
983
+ accessList?: import("viem").AccessList;
984
+ authorizationList?: import("viem").AuthorizationList;
985
+ chain?: import("viem").Chain | null;
986
+ dataSuffix?: `0x${string}`;
987
+ gas?: bigint;
988
+ gasPrice?: bigint;
989
+ maxFeePerGas?: bigint;
990
+ maxPriorityFeePerGas?: bigint;
991
+ nonce?: number;
992
+ value?: bigint;
993
+ }): Promise<void>;
994
+ /**
995
+ * Simulate renounceOwnership
996
+ * Returns gas estimate and result without sending transaction
997
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
998
+ */
999
+ renounceOwnership(options?: {
1000
+ accessList?: import("viem").AccessList;
1001
+ authorizationList?: import("viem").AuthorizationList;
1002
+ chain?: import("viem").Chain | null;
1003
+ dataSuffix?: `0x${string}`;
1004
+ gas?: bigint;
1005
+ gasPrice?: bigint;
1006
+ maxFeePerGas?: bigint;
1007
+ maxPriorityFeePerGas?: bigint;
1008
+ nonce?: number;
1009
+ value?: bigint;
1010
+ }): Promise<void>;
1011
+ /**
1012
+ * Simulate setParams
1013
+ * Returns gas estimate and result without sending transaction
1014
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1015
+ */
1016
+ setParams(newBasisPoints: bigint, newMaxFee: bigint, options?: {
1017
+ accessList?: import("viem").AccessList;
1018
+ authorizationList?: import("viem").AuthorizationList;
1019
+ chain?: import("viem").Chain | null;
1020
+ dataSuffix?: `0x${string}`;
1021
+ gas?: bigint;
1022
+ gasPrice?: bigint;
1023
+ maxFeePerGas?: bigint;
1024
+ maxPriorityFeePerGas?: bigint;
1025
+ nonce?: number;
1026
+ value?: bigint;
1027
+ }): Promise<void>;
1028
+ /**
1029
+ * Simulate transfer
1030
+ * Returns gas estimate and result without sending transaction
1031
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1032
+ */
1033
+ transfer(_to: `0x${string}`, _value: bigint, options?: {
1034
+ accessList?: import("viem").AccessList;
1035
+ authorizationList?: import("viem").AuthorizationList;
1036
+ chain?: import("viem").Chain | null;
1037
+ dataSuffix?: `0x${string}`;
1038
+ gas?: bigint;
1039
+ gasPrice?: bigint;
1040
+ maxFeePerGas?: bigint;
1041
+ maxPriorityFeePerGas?: bigint;
1042
+ nonce?: number;
1043
+ value?: bigint;
1044
+ }): Promise<boolean>;
1045
+ /**
1046
+ * Simulate transferFrom
1047
+ * Returns gas estimate and result without sending transaction
1048
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1049
+ */
1050
+ transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
1051
+ accessList?: import("viem").AccessList;
1052
+ authorizationList?: import("viem").AuthorizationList;
1053
+ chain?: import("viem").Chain | null;
1054
+ dataSuffix?: `0x${string}`;
1055
+ gas?: bigint;
1056
+ gasPrice?: bigint;
1057
+ maxFeePerGas?: bigint;
1058
+ maxPriorityFeePerGas?: bigint;
1059
+ nonce?: number;
1060
+ value?: bigint;
1061
+ }): Promise<boolean>;
1062
+ /**
1063
+ * Simulate transferOwnership
1064
+ * Returns gas estimate and result without sending transaction
1065
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1066
+ */
1067
+ transferOwnership(newOwner: `0x${string}`, options?: {
1068
+ accessList?: import("viem").AccessList;
1069
+ authorizationList?: import("viem").AuthorizationList;
1070
+ chain?: import("viem").Chain | null;
1071
+ dataSuffix?: `0x${string}`;
1072
+ gas?: bigint;
1073
+ gasPrice?: bigint;
1074
+ maxFeePerGas?: bigint;
1075
+ maxPriorityFeePerGas?: bigint;
1076
+ nonce?: number;
1077
+ value?: bigint;
1078
+ }): Promise<void>;
1079
+ };
1080
+ /**
1081
+ * Watch contract events
1082
+ *
1083
+ * @example
1084
+ * // Watch all Transfer events
1085
+ * const unwatch = contract.watch.Transfer((event) => {
1086
+ * console.log('Transfer:', event);
1087
+ * });
1088
+ *
1089
+ * // Stop watching
1090
+ * unwatch();
1091
+ */
1092
+ get watch(): {
1093
+ /**
1094
+ * Watch AddedBlackList events
1095
+ * @param callback Function to call when event is emitted
1096
+ * @param filter Optional filter for indexed parameters
1097
+ * @returns Unwatch function to stop listening
1098
+ */
1099
+ AddedBlackList: (callback: (event: {
1100
+ _user: `0x${string}`;
1101
+ }) => void, filter?: {
1102
+ _user: `0x${string}`;
1103
+ }) => () => void;
1104
+ /**
1105
+ * Watch Approval events
1106
+ * @param callback Function to call when event is emitted
1107
+ * @param filter Optional filter for indexed parameters
1108
+ * @returns Unwatch function to stop listening
1109
+ */
1110
+ Approval: (callback: (event: {
1111
+ owner: `0x${string}`;
1112
+ spender: `0x${string}`;
1113
+ value: bigint;
1114
+ }) => void, filter?: {
1115
+ owner: `0x${string}`;
1116
+ spender: `0x${string}`;
1117
+ }) => () => void;
1118
+ /**
1119
+ * Watch Deprecate events
1120
+ * @param callback Function to call when event is emitted
1121
+ * @param filter Optional filter for indexed parameters
1122
+ * @returns Unwatch function to stop listening
1123
+ */
1124
+ Deprecate: (callback: (event: {
1125
+ newAddress: `0x${string}`;
1126
+ }) => void) => () => void;
1127
+ /**
1128
+ * Watch DestroyedBlackFunds events
1129
+ * @param callback Function to call when event is emitted
1130
+ * @param filter Optional filter for indexed parameters
1131
+ * @returns Unwatch function to stop listening
1132
+ */
1133
+ DestroyedBlackFunds: (callback: (event: {
1134
+ _blackListedUser: `0x${string}`;
1135
+ _balance: bigint;
1136
+ }) => void, filter?: {
1137
+ _blackListedUser: `0x${string}`;
1138
+ }) => () => void;
1139
+ /**
1140
+ * Watch Issue events
1141
+ * @param callback Function to call when event is emitted
1142
+ * @param filter Optional filter for indexed parameters
1143
+ * @returns Unwatch function to stop listening
1144
+ */
1145
+ Issue: (callback: (event: {
1146
+ amount: bigint;
1147
+ }) => void) => () => void;
1148
+ /**
1149
+ * Watch OwnershipTransferred events
1150
+ * @param callback Function to call when event is emitted
1151
+ * @param filter Optional filter for indexed parameters
1152
+ * @returns Unwatch function to stop listening
1153
+ */
1154
+ OwnershipTransferred: (callback: (event: {
1155
+ previousOwner: `0x${string}`;
1156
+ newOwner: `0x${string}`;
1157
+ }) => void, filter?: {
1158
+ previousOwner: `0x${string}`;
1159
+ newOwner: `0x${string}`;
1160
+ }) => () => void;
1161
+ /**
1162
+ * Watch Params events
1163
+ * @param callback Function to call when event is emitted
1164
+ * @param filter Optional filter for indexed parameters
1165
+ * @returns Unwatch function to stop listening
1166
+ */
1167
+ Params: (callback: (event: {
1168
+ feeBasisPoints: bigint;
1169
+ maxFee: bigint;
1170
+ }) => void) => () => void;
1171
+ /**
1172
+ * Watch Paused events
1173
+ * @param callback Function to call when event is emitted
1174
+ * @param filter Optional filter for indexed parameters
1175
+ * @returns Unwatch function to stop listening
1176
+ */
1177
+ Paused: (callback: (event: {
1178
+ account: `0x${string}`;
1179
+ }) => void) => () => void;
1180
+ /**
1181
+ * Watch Redeem events
1182
+ * @param callback Function to call when event is emitted
1183
+ * @param filter Optional filter for indexed parameters
1184
+ * @returns Unwatch function to stop listening
1185
+ */
1186
+ Redeem: (callback: (event: {
1187
+ amount: bigint;
1188
+ }) => void) => () => void;
1189
+ /**
1190
+ * Watch RemovedBlackList events
1191
+ * @param callback Function to call when event is emitted
1192
+ * @param filter Optional filter for indexed parameters
1193
+ * @returns Unwatch function to stop listening
1194
+ */
1195
+ RemovedBlackList: (callback: (event: {
1196
+ _user: `0x${string}`;
1197
+ }) => void, filter?: {
1198
+ _user: `0x${string}`;
1199
+ }) => () => void;
1200
+ /**
1201
+ * Watch Transfer events
1202
+ * @param callback Function to call when event is emitted
1203
+ * @param filter Optional filter for indexed parameters
1204
+ * @returns Unwatch function to stop listening
1205
+ */
1206
+ Transfer: (callback: (event: {
1207
+ from: `0x${string}`;
1208
+ to: `0x${string}`;
1209
+ value: bigint;
1210
+ }) => void, filter?: {
1211
+ from: `0x${string}`;
1212
+ to: `0x${string}`;
1213
+ }) => () => void;
1214
+ /**
1215
+ * Watch Unpaused events
1216
+ * @param callback Function to call when event is emitted
1217
+ * @param filter Optional filter for indexed parameters
1218
+ * @returns Unwatch function to stop listening
1219
+ */
1220
+ Unpaused: (callback: (event: {
1221
+ account: `0x${string}`;
1222
+ }) => void) => () => void;
1223
+ };
1224
+ }