@gitmyabi/usdt 1.0.13 → 1.0.14
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.
- package/README.md +6 -6
- package/contracts/ERC1967Proxy_json.d.ts +169 -0
- package/contracts/ERC1967Proxy_json.js +221 -0
- package/contracts/ERC1967Proxy_json.ts +251 -0
- package/contracts/{EssentialToken_json.d.ts → USDTProxy_json.d.ts} +282 -157
- package/contracts/{EssentialToken_json.js → USDTProxy_json.js} +342 -169
- package/contracts/{EssentialToken_json.ts → USDTProxy_json.ts} +382 -209
- package/contracts/index.d.ts +4 -2
- package/contracts/index.js +7 -4
- package/contracts/index.ts +4 -2
- package/package.json +3 -3
|
@@ -2,16 +2,35 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
|
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* USDTProxy_json ABI
|
|
6
6
|
*
|
|
7
7
|
* This ABI is typed using viem's type system for full type safety.
|
|
8
8
|
*/
|
|
9
|
-
export const
|
|
9
|
+
export const USDTProxy_jsonAbi = [
|
|
10
10
|
{
|
|
11
11
|
"inputs": [],
|
|
12
12
|
"stateMutability": "nonpayable",
|
|
13
13
|
"type": "constructor"
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
"anonymous": false,
|
|
17
|
+
"inputs": [
|
|
18
|
+
{
|
|
19
|
+
"indexed": false,
|
|
20
|
+
"internalType": "address",
|
|
21
|
+
"name": "previousAdmin",
|
|
22
|
+
"type": "address"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"indexed": false,
|
|
26
|
+
"internalType": "address",
|
|
27
|
+
"name": "newAdmin",
|
|
28
|
+
"type": "address"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"name": "AdminChanged",
|
|
32
|
+
"type": "event"
|
|
33
|
+
},
|
|
15
34
|
{
|
|
16
35
|
"anonymous": false,
|
|
17
36
|
"inputs": [
|
|
@@ -43,11 +62,49 @@ export const EssentialToken_jsonAbi = [
|
|
|
43
62
|
{
|
|
44
63
|
"indexed": true,
|
|
45
64
|
"internalType": "address",
|
|
46
|
-
"name": "
|
|
65
|
+
"name": "beacon",
|
|
66
|
+
"type": "address"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"name": "BeaconUpgraded",
|
|
70
|
+
"type": "event"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"anonymous": false,
|
|
74
|
+
"inputs": [
|
|
75
|
+
{
|
|
76
|
+
"indexed": true,
|
|
77
|
+
"internalType": "address",
|
|
78
|
+
"name": "account",
|
|
47
79
|
"type": "address"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"indexed": false,
|
|
83
|
+
"internalType": "bool",
|
|
84
|
+
"name": "status",
|
|
85
|
+
"type": "bool"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"name": "Blacklisted",
|
|
89
|
+
"type": "event"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"anonymous": false,
|
|
93
|
+
"inputs": [
|
|
94
|
+
{
|
|
95
|
+
"indexed": true,
|
|
96
|
+
"internalType": "address",
|
|
97
|
+
"name": "from",
|
|
98
|
+
"type": "address"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"indexed": false,
|
|
102
|
+
"internalType": "uint256",
|
|
103
|
+
"name": "amount",
|
|
104
|
+
"type": "uint256"
|
|
48
105
|
}
|
|
49
106
|
],
|
|
50
|
-
"name": "
|
|
107
|
+
"name": "Burned",
|
|
51
108
|
"type": "event"
|
|
52
109
|
},
|
|
53
110
|
{
|
|
@@ -63,6 +120,25 @@ export const EssentialToken_jsonAbi = [
|
|
|
63
120
|
"name": "Initialized",
|
|
64
121
|
"type": "event"
|
|
65
122
|
},
|
|
123
|
+
{
|
|
124
|
+
"anonymous": false,
|
|
125
|
+
"inputs": [
|
|
126
|
+
{
|
|
127
|
+
"indexed": true,
|
|
128
|
+
"internalType": "address",
|
|
129
|
+
"name": "to",
|
|
130
|
+
"type": "address"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"indexed": false,
|
|
134
|
+
"internalType": "uint256",
|
|
135
|
+
"name": "amount",
|
|
136
|
+
"type": "uint256"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"name": "Minted",
|
|
140
|
+
"type": "event"
|
|
141
|
+
},
|
|
66
142
|
{
|
|
67
143
|
"anonymous": false,
|
|
68
144
|
"inputs": [
|
|
@@ -86,7 +162,7 @@ export const EssentialToken_jsonAbi = [
|
|
|
86
162
|
"anonymous": false,
|
|
87
163
|
"inputs": [
|
|
88
164
|
{
|
|
89
|
-
"indexed":
|
|
165
|
+
"indexed": true,
|
|
90
166
|
"internalType": "address",
|
|
91
167
|
"name": "account",
|
|
92
168
|
"type": "address"
|
|
@@ -126,24 +202,24 @@ export const EssentialToken_jsonAbi = [
|
|
|
126
202
|
{
|
|
127
203
|
"indexed": true,
|
|
128
204
|
"internalType": "address",
|
|
129
|
-
"name": "
|
|
205
|
+
"name": "account",
|
|
130
206
|
"type": "address"
|
|
131
207
|
}
|
|
132
208
|
],
|
|
133
|
-
"name": "
|
|
209
|
+
"name": "Unpaused",
|
|
134
210
|
"type": "event"
|
|
135
211
|
},
|
|
136
212
|
{
|
|
137
213
|
"anonymous": false,
|
|
138
214
|
"inputs": [
|
|
139
215
|
{
|
|
140
|
-
"indexed":
|
|
216
|
+
"indexed": true,
|
|
141
217
|
"internalType": "address",
|
|
142
|
-
"name": "
|
|
218
|
+
"name": "implementation",
|
|
143
219
|
"type": "address"
|
|
144
220
|
}
|
|
145
221
|
],
|
|
146
|
-
"name": "
|
|
222
|
+
"name": "Upgraded",
|
|
147
223
|
"type": "event"
|
|
148
224
|
},
|
|
149
225
|
{
|
|
@@ -217,33 +293,7 @@ export const EssentialToken_jsonAbi = [
|
|
|
217
293
|
"inputs": [
|
|
218
294
|
{
|
|
219
295
|
"internalType": "address",
|
|
220
|
-
"name": "
|
|
221
|
-
"type": "address"
|
|
222
|
-
}
|
|
223
|
-
],
|
|
224
|
-
"name": "blockAccount",
|
|
225
|
-
"outputs": [],
|
|
226
|
-
"stateMutability": "nonpayable",
|
|
227
|
-
"type": "function"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
"inputs": [
|
|
231
|
-
{
|
|
232
|
-
"internalType": "uint256",
|
|
233
|
-
"name": "amount",
|
|
234
|
-
"type": "uint256"
|
|
235
|
-
}
|
|
236
|
-
],
|
|
237
|
-
"name": "burn",
|
|
238
|
-
"outputs": [],
|
|
239
|
-
"stateMutability": "nonpayable",
|
|
240
|
-
"type": "function"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"inputs": [
|
|
244
|
-
{
|
|
245
|
-
"internalType": "address",
|
|
246
|
-
"name": "account",
|
|
296
|
+
"name": "from",
|
|
247
297
|
"type": "address"
|
|
248
298
|
},
|
|
249
299
|
{
|
|
@@ -252,7 +302,7 @@ export const EssentialToken_jsonAbi = [
|
|
|
252
302
|
"type": "uint256"
|
|
253
303
|
}
|
|
254
304
|
],
|
|
255
|
-
"name": "
|
|
305
|
+
"name": "burn",
|
|
256
306
|
"outputs": [],
|
|
257
307
|
"stateMutability": "nonpayable",
|
|
258
308
|
"type": "function"
|
|
@@ -267,7 +317,7 @@ export const EssentialToken_jsonAbi = [
|
|
|
267
317
|
"type": "uint8"
|
|
268
318
|
}
|
|
269
319
|
],
|
|
270
|
-
"stateMutability": "
|
|
320
|
+
"stateMutability": "pure",
|
|
271
321
|
"type": "function"
|
|
272
322
|
},
|
|
273
323
|
{
|
|
@@ -320,35 +370,25 @@ export const EssentialToken_jsonAbi = [
|
|
|
320
370
|
},
|
|
321
371
|
{
|
|
322
372
|
"inputs": [
|
|
323
|
-
{
|
|
324
|
-
"internalType": "address",
|
|
325
|
-
"name": "_owner",
|
|
326
|
-
"type": "address"
|
|
327
|
-
},
|
|
328
373
|
{
|
|
329
374
|
"internalType": "string",
|
|
330
|
-
"name": "
|
|
375
|
+
"name": "name",
|
|
331
376
|
"type": "string"
|
|
332
377
|
},
|
|
333
378
|
{
|
|
334
379
|
"internalType": "string",
|
|
335
|
-
"name": "
|
|
380
|
+
"name": "symbol",
|
|
336
381
|
"type": "string"
|
|
337
382
|
},
|
|
338
|
-
{
|
|
339
|
-
"internalType": "uint8",
|
|
340
|
-
"name": "_decimals",
|
|
341
|
-
"type": "uint8"
|
|
342
|
-
},
|
|
343
383
|
{
|
|
344
384
|
"internalType": "uint256",
|
|
345
|
-
"name": "
|
|
385
|
+
"name": "initialSupply",
|
|
346
386
|
"type": "uint256"
|
|
347
387
|
},
|
|
348
388
|
{
|
|
349
|
-
"internalType": "
|
|
350
|
-
"name": "
|
|
351
|
-
"type": "
|
|
389
|
+
"internalType": "address",
|
|
390
|
+
"name": "owner",
|
|
391
|
+
"type": "address"
|
|
352
392
|
}
|
|
353
393
|
],
|
|
354
394
|
"name": "initialize",
|
|
@@ -360,11 +400,11 @@ export const EssentialToken_jsonAbi = [
|
|
|
360
400
|
"inputs": [
|
|
361
401
|
{
|
|
362
402
|
"internalType": "address",
|
|
363
|
-
"name": "
|
|
403
|
+
"name": "",
|
|
364
404
|
"type": "address"
|
|
365
405
|
}
|
|
366
406
|
],
|
|
367
|
-
"name": "
|
|
407
|
+
"name": "isBlacklisted",
|
|
368
408
|
"outputs": [
|
|
369
409
|
{
|
|
370
410
|
"internalType": "bool",
|
|
@@ -375,19 +415,6 @@ export const EssentialToken_jsonAbi = [
|
|
|
375
415
|
"stateMutability": "view",
|
|
376
416
|
"type": "function"
|
|
377
417
|
},
|
|
378
|
-
{
|
|
379
|
-
"inputs": [],
|
|
380
|
-
"name": "maxSupply",
|
|
381
|
-
"outputs": [
|
|
382
|
-
{
|
|
383
|
-
"internalType": "uint256",
|
|
384
|
-
"name": "",
|
|
385
|
-
"type": "uint256"
|
|
386
|
-
}
|
|
387
|
-
],
|
|
388
|
-
"stateMutability": "view",
|
|
389
|
-
"type": "function"
|
|
390
|
-
},
|
|
391
418
|
{
|
|
392
419
|
"inputs": [
|
|
393
420
|
{
|
|
@@ -452,6 +479,19 @@ export const EssentialToken_jsonAbi = [
|
|
|
452
479
|
"stateMutability": "view",
|
|
453
480
|
"type": "function"
|
|
454
481
|
},
|
|
482
|
+
{
|
|
483
|
+
"inputs": [],
|
|
484
|
+
"name": "proxiableUUID",
|
|
485
|
+
"outputs": [
|
|
486
|
+
{
|
|
487
|
+
"internalType": "bytes32",
|
|
488
|
+
"name": "",
|
|
489
|
+
"type": "bytes32"
|
|
490
|
+
}
|
|
491
|
+
],
|
|
492
|
+
"stateMutability": "view",
|
|
493
|
+
"type": "function"
|
|
494
|
+
},
|
|
455
495
|
{
|
|
456
496
|
"inputs": [],
|
|
457
497
|
"name": "renounceOwnership",
|
|
@@ -459,6 +499,24 @@ export const EssentialToken_jsonAbi = [
|
|
|
459
499
|
"stateMutability": "nonpayable",
|
|
460
500
|
"type": "function"
|
|
461
501
|
},
|
|
502
|
+
{
|
|
503
|
+
"inputs": [
|
|
504
|
+
{
|
|
505
|
+
"internalType": "address",
|
|
506
|
+
"name": "account",
|
|
507
|
+
"type": "address"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"internalType": "bool",
|
|
511
|
+
"name": "status",
|
|
512
|
+
"type": "bool"
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"name": "setBlacklisted",
|
|
516
|
+
"outputs": [],
|
|
517
|
+
"stateMutability": "nonpayable",
|
|
518
|
+
"type": "function"
|
|
519
|
+
},
|
|
462
520
|
{
|
|
463
521
|
"inputs": [],
|
|
464
522
|
"name": "symbol",
|
|
@@ -551,42 +609,73 @@ export const EssentialToken_jsonAbi = [
|
|
|
551
609
|
"stateMutability": "nonpayable",
|
|
552
610
|
"type": "function"
|
|
553
611
|
},
|
|
612
|
+
{
|
|
613
|
+
"inputs": [],
|
|
614
|
+
"name": "unpause",
|
|
615
|
+
"outputs": [],
|
|
616
|
+
"stateMutability": "nonpayable",
|
|
617
|
+
"type": "function"
|
|
618
|
+
},
|
|
554
619
|
{
|
|
555
620
|
"inputs": [
|
|
556
621
|
{
|
|
557
622
|
"internalType": "address",
|
|
558
|
-
"name": "
|
|
623
|
+
"name": "newImplementation",
|
|
559
624
|
"type": "address"
|
|
560
625
|
}
|
|
561
626
|
],
|
|
562
|
-
"name": "
|
|
627
|
+
"name": "upgradeTo",
|
|
563
628
|
"outputs": [],
|
|
564
629
|
"stateMutability": "nonpayable",
|
|
565
630
|
"type": "function"
|
|
566
631
|
},
|
|
567
632
|
{
|
|
568
|
-
"inputs": [
|
|
569
|
-
|
|
633
|
+
"inputs": [
|
|
634
|
+
{
|
|
635
|
+
"internalType": "address",
|
|
636
|
+
"name": "newImplementation",
|
|
637
|
+
"type": "address"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"internalType": "bytes",
|
|
641
|
+
"name": "data",
|
|
642
|
+
"type": "bytes"
|
|
643
|
+
}
|
|
644
|
+
],
|
|
645
|
+
"name": "upgradeToAndCall",
|
|
570
646
|
"outputs": [],
|
|
571
|
-
"stateMutability": "
|
|
647
|
+
"stateMutability": "payable",
|
|
648
|
+
"type": "function"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"inputs": [],
|
|
652
|
+
"name": "version",
|
|
653
|
+
"outputs": [
|
|
654
|
+
{
|
|
655
|
+
"internalType": "string",
|
|
656
|
+
"name": "",
|
|
657
|
+
"type": "string"
|
|
658
|
+
}
|
|
659
|
+
],
|
|
660
|
+
"stateMutability": "pure",
|
|
572
661
|
"type": "function"
|
|
573
662
|
}
|
|
574
663
|
] as const satisfies Abi;
|
|
575
664
|
|
|
576
665
|
/**
|
|
577
|
-
* Type-safe ABI for
|
|
666
|
+
* Type-safe ABI for USDTProxy_json
|
|
578
667
|
*/
|
|
579
|
-
export type
|
|
668
|
+
export type USDTProxy_jsonAbi = typeof USDTProxy_jsonAbi;
|
|
580
669
|
|
|
581
670
|
/**
|
|
582
|
-
* Contract instance type for
|
|
671
|
+
* Contract instance type for USDTProxy_json
|
|
583
672
|
*/
|
|
584
673
|
// Use any for contract type to avoid complex viem type issues
|
|
585
674
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
586
|
-
export type
|
|
675
|
+
export type USDTProxy_jsonContract = any;
|
|
587
676
|
|
|
588
677
|
/**
|
|
589
|
-
*
|
|
678
|
+
* USDTProxy_json Contract Class
|
|
590
679
|
*
|
|
591
680
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
592
681
|
*
|
|
@@ -594,12 +683,12 @@ export type EssentialToken_jsonContract = any;
|
|
|
594
683
|
* ```typescript
|
|
595
684
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
596
685
|
* import { mainnet } from 'viem/chains';
|
|
597
|
-
* import {
|
|
686
|
+
* import { USDTProxy_json } from 'USDTProxy_json';
|
|
598
687
|
*
|
|
599
688
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
600
689
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
601
690
|
*
|
|
602
|
-
* const contract = new
|
|
691
|
+
* const contract = new USDTProxy_json('0x...', { publicClient, walletClient });
|
|
603
692
|
*
|
|
604
693
|
* // Read functions
|
|
605
694
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -617,8 +706,8 @@ export type EssentialToken_jsonContract = any;
|
|
|
617
706
|
* });
|
|
618
707
|
* ```
|
|
619
708
|
*/
|
|
620
|
-
export class
|
|
621
|
-
private contract:
|
|
709
|
+
export class USDTProxy_json {
|
|
710
|
+
private contract: USDTProxy_jsonContract;
|
|
622
711
|
private contractAddress: Address;
|
|
623
712
|
private publicClient: PublicClient;
|
|
624
713
|
|
|
@@ -633,7 +722,7 @@ export class EssentialToken_json {
|
|
|
633
722
|
this.publicClient = clients.publicClient;
|
|
634
723
|
this.contract = getContract({
|
|
635
724
|
address,
|
|
636
|
-
abi:
|
|
725
|
+
abi: USDTProxy_jsonAbi,
|
|
637
726
|
client: {
|
|
638
727
|
public: clients.publicClient,
|
|
639
728
|
wallet: clients.walletClient,
|
|
@@ -651,7 +740,7 @@ export class EssentialToken_json {
|
|
|
651
740
|
/**
|
|
652
741
|
* Get the underlying viem contract instance
|
|
653
742
|
*/
|
|
654
|
-
getContract():
|
|
743
|
+
getContract(): USDTProxy_jsonContract {
|
|
655
744
|
return this.contract;
|
|
656
745
|
}
|
|
657
746
|
|
|
@@ -673,26 +762,18 @@ export class EssentialToken_json {
|
|
|
673
762
|
|
|
674
763
|
/**
|
|
675
764
|
* decimals
|
|
676
|
-
*
|
|
765
|
+
* pure
|
|
677
766
|
*/
|
|
678
767
|
async decimals(): Promise<bigint> {
|
|
679
768
|
return this.contract.read.decimals() as Promise<bigint>;
|
|
680
769
|
}
|
|
681
770
|
|
|
682
771
|
/**
|
|
683
|
-
*
|
|
772
|
+
* isBlacklisted
|
|
684
773
|
* view
|
|
685
774
|
*/
|
|
686
|
-
async
|
|
687
|
-
return this.contract.read.
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
/**
|
|
691
|
-
* maxSupply
|
|
692
|
-
* view
|
|
693
|
-
*/
|
|
694
|
-
async maxSupply(): Promise<bigint> {
|
|
695
|
-
return this.contract.read.maxSupply() as Promise<bigint>;
|
|
775
|
+
async isBlacklisted(arg0: `0x${string}`): Promise<boolean> {
|
|
776
|
+
return this.contract.read.isBlacklisted([arg0] as const) as Promise<boolean>;
|
|
696
777
|
}
|
|
697
778
|
|
|
698
779
|
/**
|
|
@@ -719,6 +800,14 @@ export class EssentialToken_json {
|
|
|
719
800
|
return this.contract.read.paused() as Promise<boolean>;
|
|
720
801
|
}
|
|
721
802
|
|
|
803
|
+
/**
|
|
804
|
+
* proxiableUUID
|
|
805
|
+
* view
|
|
806
|
+
*/
|
|
807
|
+
async proxiableUUID(): Promise<`0x${string}`> {
|
|
808
|
+
return this.contract.read.proxiableUUID() as Promise<`0x${string}`>;
|
|
809
|
+
}
|
|
810
|
+
|
|
722
811
|
/**
|
|
723
812
|
* symbol
|
|
724
813
|
* view
|
|
@@ -735,6 +824,14 @@ export class EssentialToken_json {
|
|
|
735
824
|
return this.contract.read.totalSupply() as Promise<bigint>;
|
|
736
825
|
}
|
|
737
826
|
|
|
827
|
+
/**
|
|
828
|
+
* version
|
|
829
|
+
* pure
|
|
830
|
+
*/
|
|
831
|
+
async version(): Promise<string> {
|
|
832
|
+
return this.contract.read.version() as Promise<string>;
|
|
833
|
+
}
|
|
834
|
+
|
|
738
835
|
/**
|
|
739
836
|
* approve
|
|
740
837
|
* nonpayable
|
|
@@ -759,11 +856,11 @@ export class EssentialToken_json {
|
|
|
759
856
|
}
|
|
760
857
|
|
|
761
858
|
/**
|
|
762
|
-
*
|
|
859
|
+
* burn
|
|
763
860
|
* nonpayable
|
|
764
861
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
765
862
|
*/
|
|
766
|
-
async
|
|
863
|
+
async burn(from: `0x${string}`, amount: bigint, options?: {
|
|
767
864
|
accessList?: import('viem').AccessList;
|
|
768
865
|
authorizationList?: import('viem').AuthorizationList;
|
|
769
866
|
chain?: import('viem').Chain | null;
|
|
@@ -778,15 +875,15 @@ export class EssentialToken_json {
|
|
|
778
875
|
if (!this.contract.write) {
|
|
779
876
|
throw new Error('Wallet client is required for write operations');
|
|
780
877
|
}
|
|
781
|
-
return this.contract.write.
|
|
878
|
+
return this.contract.write.burn([from, amount] as const, options) as Promise<`0x${string}`>;
|
|
782
879
|
}
|
|
783
880
|
|
|
784
881
|
/**
|
|
785
|
-
*
|
|
882
|
+
* decreaseAllowance
|
|
786
883
|
* nonpayable
|
|
787
884
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
788
885
|
*/
|
|
789
|
-
async
|
|
886
|
+
async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
790
887
|
accessList?: import('viem').AccessList;
|
|
791
888
|
authorizationList?: import('viem').AuthorizationList;
|
|
792
889
|
chain?: import('viem').Chain | null;
|
|
@@ -801,15 +898,15 @@ export class EssentialToken_json {
|
|
|
801
898
|
if (!this.contract.write) {
|
|
802
899
|
throw new Error('Wallet client is required for write operations');
|
|
803
900
|
}
|
|
804
|
-
return this.contract.write.
|
|
901
|
+
return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
|
|
805
902
|
}
|
|
806
903
|
|
|
807
904
|
/**
|
|
808
|
-
*
|
|
905
|
+
* increaseAllowance
|
|
809
906
|
* nonpayable
|
|
810
907
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
811
908
|
*/
|
|
812
|
-
async
|
|
909
|
+
async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
813
910
|
accessList?: import('viem').AccessList;
|
|
814
911
|
authorizationList?: import('viem').AuthorizationList;
|
|
815
912
|
chain?: import('viem').Chain | null;
|
|
@@ -824,15 +921,15 @@ export class EssentialToken_json {
|
|
|
824
921
|
if (!this.contract.write) {
|
|
825
922
|
throw new Error('Wallet client is required for write operations');
|
|
826
923
|
}
|
|
827
|
-
return this.contract.write.
|
|
924
|
+
return this.contract.write.increaseAllowance([spender, addedValue] as const, options) as Promise<`0x${string}`>;
|
|
828
925
|
}
|
|
829
926
|
|
|
830
927
|
/**
|
|
831
|
-
*
|
|
928
|
+
* initialize
|
|
832
929
|
* nonpayable
|
|
833
930
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
834
931
|
*/
|
|
835
|
-
async
|
|
932
|
+
async initialize(name: string, symbol: string, initialSupply: bigint, owner: `0x${string}`, options?: {
|
|
836
933
|
accessList?: import('viem').AccessList;
|
|
837
934
|
authorizationList?: import('viem').AuthorizationList;
|
|
838
935
|
chain?: import('viem').Chain | null;
|
|
@@ -847,15 +944,15 @@ export class EssentialToken_json {
|
|
|
847
944
|
if (!this.contract.write) {
|
|
848
945
|
throw new Error('Wallet client is required for write operations');
|
|
849
946
|
}
|
|
850
|
-
return this.contract.write.
|
|
947
|
+
return this.contract.write.initialize([name, symbol, initialSupply, owner] as const, options) as Promise<`0x${string}`>;
|
|
851
948
|
}
|
|
852
949
|
|
|
853
950
|
/**
|
|
854
|
-
*
|
|
951
|
+
* mint
|
|
855
952
|
* nonpayable
|
|
856
953
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
857
954
|
*/
|
|
858
|
-
async
|
|
955
|
+
async mint(to: `0x${string}`, amount: bigint, options?: {
|
|
859
956
|
accessList?: import('viem').AccessList;
|
|
860
957
|
authorizationList?: import('viem').AuthorizationList;
|
|
861
958
|
chain?: import('viem').Chain | null;
|
|
@@ -870,15 +967,15 @@ export class EssentialToken_json {
|
|
|
870
967
|
if (!this.contract.write) {
|
|
871
968
|
throw new Error('Wallet client is required for write operations');
|
|
872
969
|
}
|
|
873
|
-
return this.contract.write.
|
|
970
|
+
return this.contract.write.mint([to, amount] as const, options) as Promise<`0x${string}`>;
|
|
874
971
|
}
|
|
875
972
|
|
|
876
973
|
/**
|
|
877
|
-
*
|
|
974
|
+
* pause
|
|
878
975
|
* nonpayable
|
|
879
976
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
880
977
|
*/
|
|
881
|
-
async
|
|
978
|
+
async pause(options?: {
|
|
882
979
|
accessList?: import('viem').AccessList;
|
|
883
980
|
authorizationList?: import('viem').AuthorizationList;
|
|
884
981
|
chain?: import('viem').Chain | null;
|
|
@@ -893,15 +990,15 @@ export class EssentialToken_json {
|
|
|
893
990
|
if (!this.contract.write) {
|
|
894
991
|
throw new Error('Wallet client is required for write operations');
|
|
895
992
|
}
|
|
896
|
-
return this.contract.write.
|
|
993
|
+
return this.contract.write.pause(options) as Promise<`0x${string}`>;
|
|
897
994
|
}
|
|
898
995
|
|
|
899
996
|
/**
|
|
900
|
-
*
|
|
997
|
+
* renounceOwnership
|
|
901
998
|
* nonpayable
|
|
902
999
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
903
1000
|
*/
|
|
904
|
-
async
|
|
1001
|
+
async renounceOwnership(options?: {
|
|
905
1002
|
accessList?: import('viem').AccessList;
|
|
906
1003
|
authorizationList?: import('viem').AuthorizationList;
|
|
907
1004
|
chain?: import('viem').Chain | null;
|
|
@@ -916,15 +1013,15 @@ export class EssentialToken_json {
|
|
|
916
1013
|
if (!this.contract.write) {
|
|
917
1014
|
throw new Error('Wallet client is required for write operations');
|
|
918
1015
|
}
|
|
919
|
-
return this.contract.write.
|
|
1016
|
+
return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
|
|
920
1017
|
}
|
|
921
1018
|
|
|
922
1019
|
/**
|
|
923
|
-
*
|
|
1020
|
+
* setBlacklisted
|
|
924
1021
|
* nonpayable
|
|
925
1022
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
926
1023
|
*/
|
|
927
|
-
async
|
|
1024
|
+
async setBlacklisted(account: `0x${string}`, status: boolean, options?: {
|
|
928
1025
|
accessList?: import('viem').AccessList;
|
|
929
1026
|
authorizationList?: import('viem').AuthorizationList;
|
|
930
1027
|
chain?: import('viem').Chain | null;
|
|
@@ -939,15 +1036,15 @@ export class EssentialToken_json {
|
|
|
939
1036
|
if (!this.contract.write) {
|
|
940
1037
|
throw new Error('Wallet client is required for write operations');
|
|
941
1038
|
}
|
|
942
|
-
return this.contract.write.
|
|
1039
|
+
return this.contract.write.setBlacklisted([account, status] as const, options) as Promise<`0x${string}`>;
|
|
943
1040
|
}
|
|
944
1041
|
|
|
945
1042
|
/**
|
|
946
|
-
*
|
|
1043
|
+
* transfer
|
|
947
1044
|
* nonpayable
|
|
948
1045
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
949
1046
|
*/
|
|
950
|
-
async
|
|
1047
|
+
async transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
951
1048
|
accessList?: import('viem').AccessList;
|
|
952
1049
|
authorizationList?: import('viem').AuthorizationList;
|
|
953
1050
|
chain?: import('viem').Chain | null;
|
|
@@ -962,15 +1059,15 @@ export class EssentialToken_json {
|
|
|
962
1059
|
if (!this.contract.write) {
|
|
963
1060
|
throw new Error('Wallet client is required for write operations');
|
|
964
1061
|
}
|
|
965
|
-
return this.contract.write.
|
|
1062
|
+
return this.contract.write.transfer([to, amount] as const, options) as Promise<`0x${string}`>;
|
|
966
1063
|
}
|
|
967
1064
|
|
|
968
1065
|
/**
|
|
969
|
-
*
|
|
1066
|
+
* transferFrom
|
|
970
1067
|
* nonpayable
|
|
971
1068
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
972
1069
|
*/
|
|
973
|
-
async
|
|
1070
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
974
1071
|
accessList?: import('viem').AccessList;
|
|
975
1072
|
authorizationList?: import('viem').AuthorizationList;
|
|
976
1073
|
chain?: import('viem').Chain | null;
|
|
@@ -985,15 +1082,15 @@ export class EssentialToken_json {
|
|
|
985
1082
|
if (!this.contract.write) {
|
|
986
1083
|
throw new Error('Wallet client is required for write operations');
|
|
987
1084
|
}
|
|
988
|
-
return this.contract.write.
|
|
1085
|
+
return this.contract.write.transferFrom([from, to, amount] as const, options) as Promise<`0x${string}`>;
|
|
989
1086
|
}
|
|
990
1087
|
|
|
991
1088
|
/**
|
|
992
|
-
*
|
|
1089
|
+
* transferOwnership
|
|
993
1090
|
* nonpayable
|
|
994
1091
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
995
1092
|
*/
|
|
996
|
-
async
|
|
1093
|
+
async transferOwnership(newOwner: `0x${string}`, options?: {
|
|
997
1094
|
accessList?: import('viem').AccessList;
|
|
998
1095
|
authorizationList?: import('viem').AuthorizationList;
|
|
999
1096
|
chain?: import('viem').Chain | null;
|
|
@@ -1008,15 +1105,15 @@ export class EssentialToken_json {
|
|
|
1008
1105
|
if (!this.contract.write) {
|
|
1009
1106
|
throw new Error('Wallet client is required for write operations');
|
|
1010
1107
|
}
|
|
1011
|
-
return this.contract.write.
|
|
1108
|
+
return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
|
|
1012
1109
|
}
|
|
1013
1110
|
|
|
1014
1111
|
/**
|
|
1015
|
-
*
|
|
1112
|
+
* unpause
|
|
1016
1113
|
* nonpayable
|
|
1017
1114
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1018
1115
|
*/
|
|
1019
|
-
async
|
|
1116
|
+
async unpause(options?: {
|
|
1020
1117
|
accessList?: import('viem').AccessList;
|
|
1021
1118
|
authorizationList?: import('viem').AuthorizationList;
|
|
1022
1119
|
chain?: import('viem').Chain | null;
|
|
@@ -1031,15 +1128,15 @@ export class EssentialToken_json {
|
|
|
1031
1128
|
if (!this.contract.write) {
|
|
1032
1129
|
throw new Error('Wallet client is required for write operations');
|
|
1033
1130
|
}
|
|
1034
|
-
return this.contract.write.
|
|
1131
|
+
return this.contract.write.unpause(options) as Promise<`0x${string}`>;
|
|
1035
1132
|
}
|
|
1036
1133
|
|
|
1037
1134
|
/**
|
|
1038
|
-
*
|
|
1135
|
+
* upgradeTo
|
|
1039
1136
|
* nonpayable
|
|
1040
1137
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1041
1138
|
*/
|
|
1042
|
-
async
|
|
1139
|
+
async upgradeTo(newImplementation: `0x${string}`, options?: {
|
|
1043
1140
|
accessList?: import('viem').AccessList;
|
|
1044
1141
|
authorizationList?: import('viem').AuthorizationList;
|
|
1045
1142
|
chain?: import('viem').Chain | null;
|
|
@@ -1054,15 +1151,15 @@ export class EssentialToken_json {
|
|
|
1054
1151
|
if (!this.contract.write) {
|
|
1055
1152
|
throw new Error('Wallet client is required for write operations');
|
|
1056
1153
|
}
|
|
1057
|
-
return this.contract.write.
|
|
1154
|
+
return this.contract.write.upgradeTo([newImplementation] as const, options) as Promise<`0x${string}`>;
|
|
1058
1155
|
}
|
|
1059
1156
|
|
|
1060
1157
|
/**
|
|
1061
|
-
*
|
|
1062
|
-
*
|
|
1158
|
+
* upgradeToAndCall
|
|
1159
|
+
* payable
|
|
1063
1160
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1064
1161
|
*/
|
|
1065
|
-
async
|
|
1162
|
+
async upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
1066
1163
|
accessList?: import('viem').AccessList;
|
|
1067
1164
|
authorizationList?: import('viem').AuthorizationList;
|
|
1068
1165
|
chain?: import('viem').Chain | null;
|
|
@@ -1077,7 +1174,7 @@ export class EssentialToken_json {
|
|
|
1077
1174
|
if (!this.contract.write) {
|
|
1078
1175
|
throw new Error('Wallet client is required for write operations');
|
|
1079
1176
|
}
|
|
1080
|
-
return this.contract.write.
|
|
1177
|
+
return this.contract.write.upgradeToAndCall([newImplementation, data] as const, options) as Promise<`0x${string}`>;
|
|
1081
1178
|
}
|
|
1082
1179
|
|
|
1083
1180
|
|
|
@@ -1115,31 +1212,12 @@ export class EssentialToken_json {
|
|
|
1115
1212
|
}): Promise<boolean> {
|
|
1116
1213
|
return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
|
|
1117
1214
|
},
|
|
1118
|
-
/**
|
|
1119
|
-
* Simulate blockAccount
|
|
1120
|
-
* Returns gas estimate and result without sending transaction
|
|
1121
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1122
|
-
*/
|
|
1123
|
-
async blockAccount(_account: `0x${string}`, options?: {
|
|
1124
|
-
accessList?: import('viem').AccessList;
|
|
1125
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1126
|
-
chain?: import('viem').Chain | null;
|
|
1127
|
-
dataSuffix?: `0x${string}`;
|
|
1128
|
-
gas?: bigint;
|
|
1129
|
-
gasPrice?: bigint;
|
|
1130
|
-
maxFeePerGas?: bigint;
|
|
1131
|
-
maxPriorityFeePerGas?: bigint;
|
|
1132
|
-
nonce?: number;
|
|
1133
|
-
value?: bigint;
|
|
1134
|
-
}): Promise<void> {
|
|
1135
|
-
return contract.simulate.blockAccount([_account] as const, options) as Promise<void>;
|
|
1136
|
-
},
|
|
1137
1215
|
/**
|
|
1138
1216
|
* Simulate burn
|
|
1139
1217
|
* Returns gas estimate and result without sending transaction
|
|
1140
1218
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1141
1219
|
*/
|
|
1142
|
-
async burn(amount: bigint, options?: {
|
|
1220
|
+
async burn(from: `0x${string}`, amount: bigint, options?: {
|
|
1143
1221
|
accessList?: import('viem').AccessList;
|
|
1144
1222
|
authorizationList?: import('viem').AuthorizationList;
|
|
1145
1223
|
chain?: import('viem').Chain | null;
|
|
@@ -1151,26 +1229,7 @@ export class EssentialToken_json {
|
|
|
1151
1229
|
nonce?: number;
|
|
1152
1230
|
value?: bigint;
|
|
1153
1231
|
}): Promise<void> {
|
|
1154
|
-
return contract.simulate.burn([amount] as const, options) as Promise<void>;
|
|
1155
|
-
},
|
|
1156
|
-
/**
|
|
1157
|
-
* Simulate burnFrom
|
|
1158
|
-
* Returns gas estimate and result without sending transaction
|
|
1159
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1160
|
-
*/
|
|
1161
|
-
async burnFrom(account: `0x${string}`, amount: bigint, options?: {
|
|
1162
|
-
accessList?: import('viem').AccessList;
|
|
1163
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1164
|
-
chain?: import('viem').Chain | null;
|
|
1165
|
-
dataSuffix?: `0x${string}`;
|
|
1166
|
-
gas?: bigint;
|
|
1167
|
-
gasPrice?: bigint;
|
|
1168
|
-
maxFeePerGas?: bigint;
|
|
1169
|
-
maxPriorityFeePerGas?: bigint;
|
|
1170
|
-
nonce?: number;
|
|
1171
|
-
value?: bigint;
|
|
1172
|
-
}): Promise<void> {
|
|
1173
|
-
return contract.simulate.burnFrom([account, amount] as const, options) as Promise<void>;
|
|
1232
|
+
return contract.simulate.burn([from, amount] as const, options) as Promise<void>;
|
|
1174
1233
|
},
|
|
1175
1234
|
/**
|
|
1176
1235
|
* Simulate decreaseAllowance
|
|
@@ -1215,7 +1274,7 @@ export class EssentialToken_json {
|
|
|
1215
1274
|
* Returns gas estimate and result without sending transaction
|
|
1216
1275
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1217
1276
|
*/
|
|
1218
|
-
async initialize(
|
|
1277
|
+
async initialize(name: string, symbol: string, initialSupply: bigint, owner: `0x${string}`, options?: {
|
|
1219
1278
|
accessList?: import('viem').AccessList;
|
|
1220
1279
|
authorizationList?: import('viem').AuthorizationList;
|
|
1221
1280
|
chain?: import('viem').Chain | null;
|
|
@@ -1227,7 +1286,7 @@ export class EssentialToken_json {
|
|
|
1227
1286
|
nonce?: number;
|
|
1228
1287
|
value?: bigint;
|
|
1229
1288
|
}): Promise<void> {
|
|
1230
|
-
return contract.simulate.initialize([
|
|
1289
|
+
return contract.simulate.initialize([name, symbol, initialSupply, owner] as const, options) as Promise<void>;
|
|
1231
1290
|
},
|
|
1232
1291
|
/**
|
|
1233
1292
|
* Simulate mint
|
|
@@ -1286,6 +1345,25 @@ export class EssentialToken_json {
|
|
|
1286
1345
|
}): Promise<void> {
|
|
1287
1346
|
return contract.simulate.renounceOwnership(options) as Promise<void>;
|
|
1288
1347
|
},
|
|
1348
|
+
/**
|
|
1349
|
+
* Simulate setBlacklisted
|
|
1350
|
+
* Returns gas estimate and result without sending transaction
|
|
1351
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1352
|
+
*/
|
|
1353
|
+
async setBlacklisted(account: `0x${string}`, status: boolean, options?: {
|
|
1354
|
+
accessList?: import('viem').AccessList;
|
|
1355
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1356
|
+
chain?: import('viem').Chain | null;
|
|
1357
|
+
dataSuffix?: `0x${string}`;
|
|
1358
|
+
gas?: bigint;
|
|
1359
|
+
gasPrice?: bigint;
|
|
1360
|
+
maxFeePerGas?: bigint;
|
|
1361
|
+
maxPriorityFeePerGas?: bigint;
|
|
1362
|
+
nonce?: number;
|
|
1363
|
+
value?: bigint;
|
|
1364
|
+
}): Promise<void> {
|
|
1365
|
+
return contract.simulate.setBlacklisted([account, status] as const, options) as Promise<void>;
|
|
1366
|
+
},
|
|
1289
1367
|
/**
|
|
1290
1368
|
* Simulate transfer
|
|
1291
1369
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1344,11 +1422,11 @@ export class EssentialToken_json {
|
|
|
1344
1422
|
return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
|
|
1345
1423
|
},
|
|
1346
1424
|
/**
|
|
1347
|
-
* Simulate
|
|
1425
|
+
* Simulate unpause
|
|
1348
1426
|
* Returns gas estimate and result without sending transaction
|
|
1349
1427
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1350
1428
|
*/
|
|
1351
|
-
async
|
|
1429
|
+
async unpause(options?: {
|
|
1352
1430
|
accessList?: import('viem').AccessList;
|
|
1353
1431
|
authorizationList?: import('viem').AuthorizationList;
|
|
1354
1432
|
chain?: import('viem').Chain | null;
|
|
@@ -1360,14 +1438,14 @@ export class EssentialToken_json {
|
|
|
1360
1438
|
nonce?: number;
|
|
1361
1439
|
value?: bigint;
|
|
1362
1440
|
}): Promise<void> {
|
|
1363
|
-
return contract.simulate.
|
|
1441
|
+
return contract.simulate.unpause(options) as Promise<void>;
|
|
1364
1442
|
},
|
|
1365
1443
|
/**
|
|
1366
|
-
* Simulate
|
|
1444
|
+
* Simulate upgradeTo
|
|
1367
1445
|
* Returns gas estimate and result without sending transaction
|
|
1368
1446
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1369
1447
|
*/
|
|
1370
|
-
async
|
|
1448
|
+
async upgradeTo(newImplementation: `0x${string}`, options?: {
|
|
1371
1449
|
accessList?: import('viem').AccessList;
|
|
1372
1450
|
authorizationList?: import('viem').AuthorizationList;
|
|
1373
1451
|
chain?: import('viem').Chain | null;
|
|
@@ -1379,7 +1457,26 @@ export class EssentialToken_json {
|
|
|
1379
1457
|
nonce?: number;
|
|
1380
1458
|
value?: bigint;
|
|
1381
1459
|
}): Promise<void> {
|
|
1382
|
-
return contract.simulate.
|
|
1460
|
+
return contract.simulate.upgradeTo([newImplementation] as const, options) as Promise<void>;
|
|
1461
|
+
},
|
|
1462
|
+
/**
|
|
1463
|
+
* Simulate upgradeToAndCall
|
|
1464
|
+
* Returns gas estimate and result without sending transaction
|
|
1465
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1466
|
+
*/
|
|
1467
|
+
async upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
1468
|
+
accessList?: import('viem').AccessList;
|
|
1469
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1470
|
+
chain?: import('viem').Chain | null;
|
|
1471
|
+
dataSuffix?: `0x${string}`;
|
|
1472
|
+
gas?: bigint;
|
|
1473
|
+
gasPrice?: bigint;
|
|
1474
|
+
maxFeePerGas?: bigint;
|
|
1475
|
+
maxPriorityFeePerGas?: bigint;
|
|
1476
|
+
nonce?: number;
|
|
1477
|
+
value?: bigint;
|
|
1478
|
+
}): Promise<void> {
|
|
1479
|
+
return contract.simulate.upgradeToAndCall([newImplementation, data] as const, options) as Promise<void>;
|
|
1383
1480
|
}
|
|
1384
1481
|
};
|
|
1385
1482
|
}
|
|
@@ -1398,6 +1495,25 @@ export class EssentialToken_json {
|
|
|
1398
1495
|
*/
|
|
1399
1496
|
get watch() {
|
|
1400
1497
|
return {
|
|
1498
|
+
/**
|
|
1499
|
+
* Watch AdminChanged events
|
|
1500
|
+
* @param callback Function to call when event is emitted
|
|
1501
|
+
* @param filter Optional filter for indexed parameters
|
|
1502
|
+
* @returns Unwatch function to stop listening
|
|
1503
|
+
*/
|
|
1504
|
+
AdminChanged: (callback: (event: { previousAdmin: `0x${string}`; newAdmin: `0x${string}` }) => void) => {
|
|
1505
|
+
return this.publicClient.watchContractEvent({
|
|
1506
|
+
address: this.contractAddress,
|
|
1507
|
+
abi: USDTProxy_jsonAbi,
|
|
1508
|
+
eventName: 'AdminChanged',
|
|
1509
|
+
|
|
1510
|
+
onLogs: (logs: any[]) => {
|
|
1511
|
+
logs.forEach((log: any) => {
|
|
1512
|
+
callback(log.args as any);
|
|
1513
|
+
});
|
|
1514
|
+
},
|
|
1515
|
+
}) as () => void;
|
|
1516
|
+
},
|
|
1401
1517
|
/**
|
|
1402
1518
|
* Watch Approval events
|
|
1403
1519
|
* @param callback Function to call when event is emitted
|
|
@@ -1407,7 +1523,7 @@ export class EssentialToken_json {
|
|
|
1407
1523
|
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
|
|
1408
1524
|
return this.publicClient.watchContractEvent({
|
|
1409
1525
|
address: this.contractAddress,
|
|
1410
|
-
abi:
|
|
1526
|
+
abi: USDTProxy_jsonAbi,
|
|
1411
1527
|
eventName: 'Approval',
|
|
1412
1528
|
args: filter,
|
|
1413
1529
|
onLogs: (logs: any[]) => {
|
|
@@ -1418,16 +1534,54 @@ export class EssentialToken_json {
|
|
|
1418
1534
|
}) as () => void;
|
|
1419
1535
|
},
|
|
1420
1536
|
/**
|
|
1421
|
-
* Watch
|
|
1537
|
+
* Watch BeaconUpgraded events
|
|
1422
1538
|
* @param callback Function to call when event is emitted
|
|
1423
1539
|
* @param filter Optional filter for indexed parameters
|
|
1424
1540
|
* @returns Unwatch function to stop listening
|
|
1425
1541
|
*/
|
|
1426
|
-
|
|
1542
|
+
BeaconUpgraded: (callback: (event: { beacon: `0x${string}` }) => void, filter?: { beacon: `0x${string}` }) => {
|
|
1427
1543
|
return this.publicClient.watchContractEvent({
|
|
1428
1544
|
address: this.contractAddress,
|
|
1429
|
-
abi:
|
|
1430
|
-
eventName: '
|
|
1545
|
+
abi: USDTProxy_jsonAbi,
|
|
1546
|
+
eventName: 'BeaconUpgraded',
|
|
1547
|
+
args: filter,
|
|
1548
|
+
onLogs: (logs: any[]) => {
|
|
1549
|
+
logs.forEach((log: any) => {
|
|
1550
|
+
callback(log.args as any);
|
|
1551
|
+
});
|
|
1552
|
+
},
|
|
1553
|
+
}) as () => void;
|
|
1554
|
+
},
|
|
1555
|
+
/**
|
|
1556
|
+
* Watch Blacklisted events
|
|
1557
|
+
* @param callback Function to call when event is emitted
|
|
1558
|
+
* @param filter Optional filter for indexed parameters
|
|
1559
|
+
* @returns Unwatch function to stop listening
|
|
1560
|
+
*/
|
|
1561
|
+
Blacklisted: (callback: (event: { account: `0x${string}`; status: boolean }) => void, filter?: { account: `0x${string}` }) => {
|
|
1562
|
+
return this.publicClient.watchContractEvent({
|
|
1563
|
+
address: this.contractAddress,
|
|
1564
|
+
abi: USDTProxy_jsonAbi,
|
|
1565
|
+
eventName: 'Blacklisted',
|
|
1566
|
+
args: filter,
|
|
1567
|
+
onLogs: (logs: any[]) => {
|
|
1568
|
+
logs.forEach((log: any) => {
|
|
1569
|
+
callback(log.args as any);
|
|
1570
|
+
});
|
|
1571
|
+
},
|
|
1572
|
+
}) as () => void;
|
|
1573
|
+
},
|
|
1574
|
+
/**
|
|
1575
|
+
* Watch Burned events
|
|
1576
|
+
* @param callback Function to call when event is emitted
|
|
1577
|
+
* @param filter Optional filter for indexed parameters
|
|
1578
|
+
* @returns Unwatch function to stop listening
|
|
1579
|
+
*/
|
|
1580
|
+
Burned: (callback: (event: { from: `0x${string}`; amount: bigint }) => void, filter?: { from: `0x${string}` }) => {
|
|
1581
|
+
return this.publicClient.watchContractEvent({
|
|
1582
|
+
address: this.contractAddress,
|
|
1583
|
+
abi: USDTProxy_jsonAbi,
|
|
1584
|
+
eventName: 'Burned',
|
|
1431
1585
|
args: filter,
|
|
1432
1586
|
onLogs: (logs: any[]) => {
|
|
1433
1587
|
logs.forEach((log: any) => {
|
|
@@ -1445,7 +1599,7 @@ export class EssentialToken_json {
|
|
|
1445
1599
|
Initialized: (callback: (event: { version: bigint }) => void) => {
|
|
1446
1600
|
return this.publicClient.watchContractEvent({
|
|
1447
1601
|
address: this.contractAddress,
|
|
1448
|
-
abi:
|
|
1602
|
+
abi: USDTProxy_jsonAbi,
|
|
1449
1603
|
eventName: 'Initialized',
|
|
1450
1604
|
|
|
1451
1605
|
onLogs: (logs: any[]) => {
|
|
@@ -1455,6 +1609,25 @@ export class EssentialToken_json {
|
|
|
1455
1609
|
},
|
|
1456
1610
|
}) as () => void;
|
|
1457
1611
|
},
|
|
1612
|
+
/**
|
|
1613
|
+
* Watch Minted events
|
|
1614
|
+
* @param callback Function to call when event is emitted
|
|
1615
|
+
* @param filter Optional filter for indexed parameters
|
|
1616
|
+
* @returns Unwatch function to stop listening
|
|
1617
|
+
*/
|
|
1618
|
+
Minted: (callback: (event: { to: `0x${string}`; amount: bigint }) => void, filter?: { to: `0x${string}` }) => {
|
|
1619
|
+
return this.publicClient.watchContractEvent({
|
|
1620
|
+
address: this.contractAddress,
|
|
1621
|
+
abi: USDTProxy_jsonAbi,
|
|
1622
|
+
eventName: 'Minted',
|
|
1623
|
+
args: filter,
|
|
1624
|
+
onLogs: (logs: any[]) => {
|
|
1625
|
+
logs.forEach((log: any) => {
|
|
1626
|
+
callback(log.args as any);
|
|
1627
|
+
});
|
|
1628
|
+
},
|
|
1629
|
+
}) as () => void;
|
|
1630
|
+
},
|
|
1458
1631
|
/**
|
|
1459
1632
|
* Watch OwnershipTransferred events
|
|
1460
1633
|
* @param callback Function to call when event is emitted
|
|
@@ -1464,7 +1637,7 @@ export class EssentialToken_json {
|
|
|
1464
1637
|
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
|
|
1465
1638
|
return this.publicClient.watchContractEvent({
|
|
1466
1639
|
address: this.contractAddress,
|
|
1467
|
-
abi:
|
|
1640
|
+
abi: USDTProxy_jsonAbi,
|
|
1468
1641
|
eventName: 'OwnershipTransferred',
|
|
1469
1642
|
args: filter,
|
|
1470
1643
|
onLogs: (logs: any[]) => {
|
|
@@ -1480,12 +1653,12 @@ export class EssentialToken_json {
|
|
|
1480
1653
|
* @param filter Optional filter for indexed parameters
|
|
1481
1654
|
* @returns Unwatch function to stop listening
|
|
1482
1655
|
*/
|
|
1483
|
-
Paused: (callback: (event: { account: `0x${string}` }) => void) => {
|
|
1656
|
+
Paused: (callback: (event: { account: `0x${string}` }) => void, filter?: { account: `0x${string}` }) => {
|
|
1484
1657
|
return this.publicClient.watchContractEvent({
|
|
1485
1658
|
address: this.contractAddress,
|
|
1486
|
-
abi:
|
|
1659
|
+
abi: USDTProxy_jsonAbi,
|
|
1487
1660
|
eventName: 'Paused',
|
|
1488
|
-
|
|
1661
|
+
args: filter,
|
|
1489
1662
|
onLogs: (logs: any[]) => {
|
|
1490
1663
|
logs.forEach((log: any) => {
|
|
1491
1664
|
callback(log.args as any);
|
|
@@ -1502,7 +1675,7 @@ export class EssentialToken_json {
|
|
|
1502
1675
|
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
|
|
1503
1676
|
return this.publicClient.watchContractEvent({
|
|
1504
1677
|
address: this.contractAddress,
|
|
1505
|
-
abi:
|
|
1678
|
+
abi: USDTProxy_jsonAbi,
|
|
1506
1679
|
eventName: 'Transfer',
|
|
1507
1680
|
args: filter,
|
|
1508
1681
|
onLogs: (logs: any[]) => {
|
|
@@ -1513,16 +1686,16 @@ export class EssentialToken_json {
|
|
|
1513
1686
|
}) as () => void;
|
|
1514
1687
|
},
|
|
1515
1688
|
/**
|
|
1516
|
-
* Watch
|
|
1689
|
+
* Watch Unpaused events
|
|
1517
1690
|
* @param callback Function to call when event is emitted
|
|
1518
1691
|
* @param filter Optional filter for indexed parameters
|
|
1519
1692
|
* @returns Unwatch function to stop listening
|
|
1520
1693
|
*/
|
|
1521
|
-
|
|
1694
|
+
Unpaused: (callback: (event: { account: `0x${string}` }) => void, filter?: { account: `0x${string}` }) => {
|
|
1522
1695
|
return this.publicClient.watchContractEvent({
|
|
1523
1696
|
address: this.contractAddress,
|
|
1524
|
-
abi:
|
|
1525
|
-
eventName: '
|
|
1697
|
+
abi: USDTProxy_jsonAbi,
|
|
1698
|
+
eventName: 'Unpaused',
|
|
1526
1699
|
args: filter,
|
|
1527
1700
|
onLogs: (logs: any[]) => {
|
|
1528
1701
|
logs.forEach((log: any) => {
|
|
@@ -1532,17 +1705,17 @@ export class EssentialToken_json {
|
|
|
1532
1705
|
}) as () => void;
|
|
1533
1706
|
},
|
|
1534
1707
|
/**
|
|
1535
|
-
* Watch
|
|
1708
|
+
* Watch Upgraded events
|
|
1536
1709
|
* @param callback Function to call when event is emitted
|
|
1537
1710
|
* @param filter Optional filter for indexed parameters
|
|
1538
1711
|
* @returns Unwatch function to stop listening
|
|
1539
1712
|
*/
|
|
1540
|
-
|
|
1713
|
+
Upgraded: (callback: (event: { implementation: `0x${string}` }) => void, filter?: { implementation: `0x${string}` }) => {
|
|
1541
1714
|
return this.publicClient.watchContractEvent({
|
|
1542
1715
|
address: this.contractAddress,
|
|
1543
|
-
abi:
|
|
1544
|
-
eventName: '
|
|
1545
|
-
|
|
1716
|
+
abi: USDTProxy_jsonAbi,
|
|
1717
|
+
eventName: 'Upgraded',
|
|
1718
|
+
args: filter,
|
|
1546
1719
|
onLogs: (logs: any[]) => {
|
|
1547
1720
|
logs.forEach((log: any) => {
|
|
1548
1721
|
callback(log.args as any);
|