@gitmyabi/usdt 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.
@@ -2,47 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * TetherUSD_json ABI
5
+ * TokenImplementation_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const TetherUSD_jsonAbi = [
10
- {
11
- "inputs": [
12
- {
13
- "internalType": "string",
14
- "name": "name_",
15
- "type": "string"
16
- },
17
- {
18
- "internalType": "string",
19
- "name": "symbol_",
20
- "type": "string"
21
- },
22
- {
23
- "internalType": "uint256",
24
- "name": "decimals_",
25
- "type": "uint256"
26
- },
27
- {
28
- "internalType": "uint256",
29
- "name": "initialBalance_",
30
- "type": "uint256"
31
- },
32
- {
33
- "internalType": "address",
34
- "name": "tokenOwner",
35
- "type": "address"
36
- },
37
- {
38
- "internalType": "address payable",
39
- "name": "feeReceiver_",
40
- "type": "address"
41
- }
42
- ],
43
- "stateMutability": "payable",
44
- "type": "constructor"
45
- },
9
+ export const TokenImplementation_jsonAbi = [
46
10
  {
47
11
  "anonymous": false,
48
12
  "inputs": [
@@ -68,25 +32,6 @@ export const TetherUSD_jsonAbi = [
68
32
  "name": "Approval",
69
33
  "type": "event"
70
34
  },
71
- {
72
- "anonymous": false,
73
- "inputs": [
74
- {
75
- "indexed": true,
76
- "internalType": "address",
77
- "name": "previousOwner",
78
- "type": "address"
79
- },
80
- {
81
- "indexed": true,
82
- "internalType": "address",
83
- "name": "newOwner",
84
- "type": "address"
85
- }
86
- ],
87
- "name": "OwnershipTransferred",
88
- "type": "event"
89
- },
90
35
  {
91
36
  "anonymous": false,
92
37
  "inputs": [
@@ -114,25 +59,12 @@ export const TetherUSD_jsonAbi = [
114
59
  },
115
60
  {
116
61
  "inputs": [],
117
- "name": "Optimization",
62
+ "name": "DOMAIN_SEPARATOR",
118
63
  "outputs": [
119
64
  {
120
- "internalType": "uint256",
65
+ "internalType": "bytes32",
121
66
  "name": "",
122
- "type": "uint256"
123
- }
124
- ],
125
- "stateMutability": "view",
126
- "type": "function"
127
- },
128
- {
129
- "inputs": [],
130
- "name": "_owner",
131
- "outputs": [
132
- {
133
- "internalType": "address",
134
- "name": "",
135
- "type": "address"
67
+ "type": "bytes32"
136
68
  }
137
69
  ],
138
70
  "stateMutability": "view",
@@ -142,12 +74,12 @@ export const TetherUSD_jsonAbi = [
142
74
  "inputs": [
143
75
  {
144
76
  "internalType": "address",
145
- "name": "owner",
77
+ "name": "owner_",
146
78
  "type": "address"
147
79
  },
148
80
  {
149
81
  "internalType": "address",
150
- "name": "spender",
82
+ "name": "spender_",
151
83
  "type": "address"
152
84
  }
153
85
  ],
@@ -166,12 +98,12 @@ export const TetherUSD_jsonAbi = [
166
98
  "inputs": [
167
99
  {
168
100
  "internalType": "address",
169
- "name": "spender",
101
+ "name": "spender_",
170
102
  "type": "address"
171
103
  },
172
104
  {
173
105
  "internalType": "uint256",
174
- "name": "amount",
106
+ "name": "amount_",
175
107
  "type": "uint256"
176
108
  }
177
109
  ],
@@ -190,7 +122,7 @@ export const TetherUSD_jsonAbi = [
190
122
  "inputs": [
191
123
  {
192
124
  "internalType": "address",
193
- "name": "account",
125
+ "name": "account_",
194
126
  "type": "address"
195
127
  }
196
128
  ],
@@ -205,14 +137,45 @@ export const TetherUSD_jsonAbi = [
205
137
  "stateMutability": "view",
206
138
  "type": "function"
207
139
  },
140
+ {
141
+ "inputs": [
142
+ {
143
+ "internalType": "address",
144
+ "name": "account_",
145
+ "type": "address"
146
+ },
147
+ {
148
+ "internalType": "uint256",
149
+ "name": "amount_",
150
+ "type": "uint256"
151
+ }
152
+ ],
153
+ "name": "burn",
154
+ "outputs": [],
155
+ "stateMutability": "nonpayable",
156
+ "type": "function"
157
+ },
158
+ {
159
+ "inputs": [],
160
+ "name": "chainId",
161
+ "outputs": [
162
+ {
163
+ "internalType": "uint16",
164
+ "name": "",
165
+ "type": "uint16"
166
+ }
167
+ ],
168
+ "stateMutability": "view",
169
+ "type": "function"
170
+ },
208
171
  {
209
172
  "inputs": [],
210
173
  "name": "decimals",
211
174
  "outputs": [
212
175
  {
213
- "internalType": "uint256",
176
+ "internalType": "uint8",
214
177
  "name": "",
215
- "type": "uint256"
178
+ "type": "uint8"
216
179
  }
217
180
  ],
218
181
  "stateMutability": "view",
@@ -222,12 +185,12 @@ export const TetherUSD_jsonAbi = [
222
185
  "inputs": [
223
186
  {
224
187
  "internalType": "address",
225
- "name": "spender",
188
+ "name": "spender_",
226
189
  "type": "address"
227
190
  },
228
191
  {
229
192
  "internalType": "uint256",
230
- "name": "subtractedValue",
193
+ "name": "subtractedValue_",
231
194
  "type": "uint256"
232
195
  }
233
196
  ],
@@ -242,16 +205,59 @@ export const TetherUSD_jsonAbi = [
242
205
  "stateMutability": "nonpayable",
243
206
  "type": "function"
244
207
  },
208
+ {
209
+ "inputs": [],
210
+ "name": "eip712Domain",
211
+ "outputs": [
212
+ {
213
+ "internalType": "bytes1",
214
+ "name": "domainFields",
215
+ "type": "bytes1"
216
+ },
217
+ {
218
+ "internalType": "string",
219
+ "name": "domainName",
220
+ "type": "string"
221
+ },
222
+ {
223
+ "internalType": "string",
224
+ "name": "domainVersion",
225
+ "type": "string"
226
+ },
227
+ {
228
+ "internalType": "uint256",
229
+ "name": "domainChainId",
230
+ "type": "uint256"
231
+ },
232
+ {
233
+ "internalType": "address",
234
+ "name": "domainVerifyingContract",
235
+ "type": "address"
236
+ },
237
+ {
238
+ "internalType": "bytes32",
239
+ "name": "domainSalt",
240
+ "type": "bytes32"
241
+ },
242
+ {
243
+ "internalType": "uint256[]",
244
+ "name": "domainExtensions",
245
+ "type": "uint256[]"
246
+ }
247
+ ],
248
+ "stateMutability": "view",
249
+ "type": "function"
250
+ },
245
251
  {
246
252
  "inputs": [
247
253
  {
248
254
  "internalType": "address",
249
- "name": "spender",
255
+ "name": "spender_",
250
256
  "type": "address"
251
257
  },
252
258
  {
253
259
  "internalType": "uint256",
254
- "name": "addedValue",
260
+ "name": "addedValue_",
255
261
  "type": "uint256"
256
262
  }
257
263
  ],
@@ -266,16 +272,59 @@ export const TetherUSD_jsonAbi = [
266
272
  "stateMutability": "nonpayable",
267
273
  "type": "function"
268
274
  },
275
+ {
276
+ "inputs": [
277
+ {
278
+ "internalType": "string",
279
+ "name": "name_",
280
+ "type": "string"
281
+ },
282
+ {
283
+ "internalType": "string",
284
+ "name": "symbol_",
285
+ "type": "string"
286
+ },
287
+ {
288
+ "internalType": "uint8",
289
+ "name": "decimals_",
290
+ "type": "uint8"
291
+ },
292
+ {
293
+ "internalType": "uint64",
294
+ "name": "sequence_",
295
+ "type": "uint64"
296
+ },
297
+ {
298
+ "internalType": "address",
299
+ "name": "owner_",
300
+ "type": "address"
301
+ },
302
+ {
303
+ "internalType": "uint16",
304
+ "name": "chainId_",
305
+ "type": "uint16"
306
+ },
307
+ {
308
+ "internalType": "bytes32",
309
+ "name": "nativeContract_",
310
+ "type": "bytes32"
311
+ }
312
+ ],
313
+ "name": "initialize",
314
+ "outputs": [],
315
+ "stateMutability": "nonpayable",
316
+ "type": "function"
317
+ },
269
318
  {
270
319
  "inputs": [
271
320
  {
272
321
  "internalType": "address",
273
- "name": "account",
322
+ "name": "account_",
274
323
  "type": "address"
275
324
  },
276
325
  {
277
326
  "internalType": "uint256",
278
- "name": "amount",
327
+ "name": "amount_",
279
328
  "type": "uint256"
280
329
  }
281
330
  ],
@@ -299,12 +348,12 @@ export const TetherUSD_jsonAbi = [
299
348
  },
300
349
  {
301
350
  "inputs": [],
302
- "name": "owner",
351
+ "name": "nativeContract",
303
352
  "outputs": [
304
353
  {
305
- "internalType": "address",
354
+ "internalType": "bytes32",
306
355
  "name": "",
307
- "type": "address"
356
+ "type": "bytes32"
308
357
  }
309
358
  ],
310
359
  "stateMutability": "view",
@@ -314,23 +363,73 @@ export const TetherUSD_jsonAbi = [
314
363
  "inputs": [
315
364
  {
316
365
  "internalType": "address",
317
- "name": "tokenAddress",
366
+ "name": "owner_",
318
367
  "type": "address"
319
- },
368
+ }
369
+ ],
370
+ "name": "nonces",
371
+ "outputs": [
320
372
  {
321
373
  "internalType": "uint256",
322
- "name": "tokenAmount",
374
+ "name": "",
323
375
  "type": "uint256"
324
376
  }
325
377
  ],
326
- "name": "recoverERC20",
327
- "outputs": [],
328
- "stateMutability": "nonpayable",
378
+ "stateMutability": "view",
329
379
  "type": "function"
330
380
  },
331
381
  {
332
382
  "inputs": [],
333
- "name": "renounceOwnership",
383
+ "name": "owner",
384
+ "outputs": [
385
+ {
386
+ "internalType": "address",
387
+ "name": "",
388
+ "type": "address"
389
+ }
390
+ ],
391
+ "stateMutability": "view",
392
+ "type": "function"
393
+ },
394
+ {
395
+ "inputs": [
396
+ {
397
+ "internalType": "address",
398
+ "name": "owner_",
399
+ "type": "address"
400
+ },
401
+ {
402
+ "internalType": "address",
403
+ "name": "spender_",
404
+ "type": "address"
405
+ },
406
+ {
407
+ "internalType": "uint256",
408
+ "name": "value_",
409
+ "type": "uint256"
410
+ },
411
+ {
412
+ "internalType": "uint256",
413
+ "name": "deadline_",
414
+ "type": "uint256"
415
+ },
416
+ {
417
+ "internalType": "uint8",
418
+ "name": "v_",
419
+ "type": "uint8"
420
+ },
421
+ {
422
+ "internalType": "bytes32",
423
+ "name": "r_",
424
+ "type": "bytes32"
425
+ },
426
+ {
427
+ "internalType": "bytes32",
428
+ "name": "s_",
429
+ "type": "bytes32"
430
+ }
431
+ ],
432
+ "name": "permit",
334
433
  "outputs": [],
335
434
  "stateMutability": "nonpayable",
336
435
  "type": "function"
@@ -365,12 +464,12 @@ export const TetherUSD_jsonAbi = [
365
464
  "inputs": [
366
465
  {
367
466
  "internalType": "address",
368
- "name": "recipient",
467
+ "name": "recipient_",
369
468
  "type": "address"
370
469
  },
371
470
  {
372
471
  "internalType": "uint256",
373
- "name": "amount",
472
+ "name": "amount_",
374
473
  "type": "uint256"
375
474
  }
376
475
  ],
@@ -389,17 +488,17 @@ export const TetherUSD_jsonAbi = [
389
488
  "inputs": [
390
489
  {
391
490
  "internalType": "address",
392
- "name": "sender",
491
+ "name": "sender_",
393
492
  "type": "address"
394
493
  },
395
494
  {
396
495
  "internalType": "address",
397
- "name": "recipient",
496
+ "name": "recipient_",
398
497
  "type": "address"
399
498
  },
400
499
  {
401
500
  "internalType": "uint256",
402
- "name": "amount",
501
+ "name": "amount_",
403
502
  "type": "uint256"
404
503
  }
405
504
  ],
@@ -417,12 +516,22 @@ export const TetherUSD_jsonAbi = [
417
516
  {
418
517
  "inputs": [
419
518
  {
420
- "internalType": "address",
421
- "name": "newOwner",
422
- "type": "address"
519
+ "internalType": "string",
520
+ "name": "name_",
521
+ "type": "string"
522
+ },
523
+ {
524
+ "internalType": "string",
525
+ "name": "symbol_",
526
+ "type": "string"
527
+ },
528
+ {
529
+ "internalType": "uint64",
530
+ "name": "sequence_",
531
+ "type": "uint64"
423
532
  }
424
533
  ],
425
- "name": "transferOwnership",
534
+ "name": "updateDetails",
426
535
  "outputs": [],
427
536
  "stateMutability": "nonpayable",
428
537
  "type": "function"
@@ -430,19 +539,19 @@ export const TetherUSD_jsonAbi = [
430
539
  ] as const satisfies Abi;
431
540
 
432
541
  /**
433
- * Type-safe ABI for TetherUSD_json
542
+ * Type-safe ABI for TokenImplementation_json
434
543
  */
435
- export type TetherUSD_jsonAbi = typeof TetherUSD_jsonAbi;
544
+ export type TokenImplementation_jsonAbi = typeof TokenImplementation_jsonAbi;
436
545
 
437
546
  /**
438
- * Contract instance type for TetherUSD_json
547
+ * Contract instance type for TokenImplementation_json
439
548
  */
440
549
  // Use any for contract type to avoid complex viem type issues
441
550
  // The runtime behavior is type-safe through viem's ABI typing
442
- export type TetherUSD_jsonContract = any;
551
+ export type TokenImplementation_jsonContract = any;
443
552
 
444
553
  /**
445
- * TetherUSD_json Contract Class
554
+ * TokenImplementation_json Contract Class
446
555
  *
447
556
  * Provides a class-based API similar to TypeChain for interacting with the contract.
448
557
  *
@@ -450,12 +559,12 @@ export type TetherUSD_jsonContract = any;
450
559
  * ```typescript
451
560
  * import { createPublicClient, createWalletClient, http } from 'viem';
452
561
  * import { mainnet } from 'viem/chains';
453
- * import { TetherUSD_json } from 'TetherUSD_json';
562
+ * import { TokenImplementation_json } from 'TokenImplementation_json';
454
563
  *
455
564
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
456
565
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
457
566
  *
458
- * const contract = new TetherUSD_json('0x...', { publicClient, walletClient });
567
+ * const contract = new TokenImplementation_json('0x...', { publicClient, walletClient });
459
568
  *
460
569
  * // Read functions
461
570
  * const result = await contract.balanceOf('0x...');
@@ -473,8 +582,8 @@ export type TetherUSD_jsonContract = any;
473
582
  * });
474
583
  * ```
475
584
  */
476
- export class TetherUSD_json {
477
- private contract: TetherUSD_jsonContract;
585
+ export class TokenImplementation_json {
586
+ private contract: TokenImplementation_jsonContract;
478
587
  private contractAddress: Address;
479
588
  private publicClient: PublicClient;
480
589
 
@@ -489,7 +598,7 @@ export class TetherUSD_json {
489
598
  this.publicClient = clients.publicClient;
490
599
  this.contract = getContract({
491
600
  address,
492
- abi: TetherUSD_jsonAbi,
601
+ abi: TokenImplementation_jsonAbi,
493
602
  client: {
494
603
  public: clients.publicClient,
495
604
  wallet: clients.walletClient,
@@ -507,40 +616,40 @@ export class TetherUSD_json {
507
616
  /**
508
617
  * Get the underlying viem contract instance
509
618
  */
510
- getContract(): TetherUSD_jsonContract {
619
+ getContract(): TokenImplementation_jsonContract {
511
620
  return this.contract;
512
621
  }
513
622
 
514
623
  /**
515
- * Optimization
624
+ * DOMAIN_SEPARATOR
516
625
  * view
517
626
  */
518
- async Optimization(): Promise<bigint> {
519
- return this.contract.read.Optimization() as Promise<bigint>;
627
+ async DOMAIN_SEPARATOR(): Promise<`0x${string}`> {
628
+ return this.contract.read.DOMAIN_SEPARATOR() as Promise<`0x${string}`>;
520
629
  }
521
630
 
522
631
  /**
523
- * _owner
632
+ * allowance
524
633
  * view
525
634
  */
526
- async _owner(): Promise<`0x${string}`> {
527
- return this.contract.read._owner() as Promise<`0x${string}`>;
635
+ async allowance(owner_: `0x${string}`, spender_: `0x${string}`): Promise<bigint> {
636
+ return this.contract.read.allowance([owner_, spender_] as const) as Promise<bigint>;
528
637
  }
529
638
 
530
639
  /**
531
- * allowance
640
+ * balanceOf
532
641
  * view
533
642
  */
534
- async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
535
- return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
643
+ async balanceOf(account_: `0x${string}`): Promise<bigint> {
644
+ return this.contract.read.balanceOf([account_] as const) as Promise<bigint>;
536
645
  }
537
646
 
538
647
  /**
539
- * balanceOf
648
+ * chainId
540
649
  * view
541
650
  */
542
- async balanceOf(account: `0x${string}`): Promise<bigint> {
543
- return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
651
+ async chainId(): Promise<bigint> {
652
+ return this.contract.read.chainId() as Promise<bigint>;
544
653
  }
545
654
 
546
655
  /**
@@ -551,6 +660,14 @@ export class TetherUSD_json {
551
660
  return this.contract.read.decimals() as Promise<bigint>;
552
661
  }
553
662
 
663
+ /**
664
+ * eip712Domain
665
+ * view
666
+ */
667
+ async eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]> {
668
+ return this.contract.read.eip712Domain() as Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
669
+ }
670
+
554
671
  /**
555
672
  * name
556
673
  * view
@@ -559,6 +676,22 @@ export class TetherUSD_json {
559
676
  return this.contract.read.name() as Promise<string>;
560
677
  }
561
678
 
679
+ /**
680
+ * nativeContract
681
+ * view
682
+ */
683
+ async nativeContract(): Promise<`0x${string}`> {
684
+ return this.contract.read.nativeContract() as Promise<`0x${string}`>;
685
+ }
686
+
687
+ /**
688
+ * nonces
689
+ * view
690
+ */
691
+ async nonces(owner_: `0x${string}`): Promise<bigint> {
692
+ return this.contract.read.nonces([owner_] as const) as Promise<bigint>;
693
+ }
694
+
562
695
  /**
563
696
  * owner
564
697
  * view
@@ -588,7 +721,30 @@ export class TetherUSD_json {
588
721
  * nonpayable
589
722
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
590
723
  */
591
- async approve(spender: `0x${string}`, amount: bigint, options?: {
724
+ async approve(spender_: `0x${string}`, amount_: bigint, options?: {
725
+ accessList?: import('viem').AccessList;
726
+ authorizationList?: import('viem').AuthorizationList;
727
+ chain?: import('viem').Chain | null;
728
+ dataSuffix?: `0x${string}`;
729
+ gas?: bigint;
730
+ gasPrice?: bigint;
731
+ maxFeePerGas?: bigint;
732
+ maxPriorityFeePerGas?: bigint;
733
+ nonce?: number;
734
+ value?: bigint;
735
+ }): Promise<`0x${string}`> {
736
+ if (!this.contract.write) {
737
+ throw new Error('Wallet client is required for write operations');
738
+ }
739
+ return this.contract.write.approve([spender_, amount_] as const, options) as Promise<`0x${string}`>;
740
+ }
741
+
742
+ /**
743
+ * burn
744
+ * nonpayable
745
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
746
+ */
747
+ async burn(account_: `0x${string}`, amount_: bigint, options?: {
592
748
  accessList?: import('viem').AccessList;
593
749
  authorizationList?: import('viem').AuthorizationList;
594
750
  chain?: import('viem').Chain | null;
@@ -603,7 +759,7 @@ export class TetherUSD_json {
603
759
  if (!this.contract.write) {
604
760
  throw new Error('Wallet client is required for write operations');
605
761
  }
606
- return this.contract.write.approve([spender, amount] as const, options) as Promise<`0x${string}`>;
762
+ return this.contract.write.burn([account_, amount_] as const, options) as Promise<`0x${string}`>;
607
763
  }
608
764
 
609
765
  /**
@@ -611,7 +767,7 @@ export class TetherUSD_json {
611
767
  * nonpayable
612
768
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
613
769
  */
614
- async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
770
+ async decreaseAllowance(spender_: `0x${string}`, subtractedValue_: bigint, options?: {
615
771
  accessList?: import('viem').AccessList;
616
772
  authorizationList?: import('viem').AuthorizationList;
617
773
  chain?: import('viem').Chain | null;
@@ -626,7 +782,7 @@ export class TetherUSD_json {
626
782
  if (!this.contract.write) {
627
783
  throw new Error('Wallet client is required for write operations');
628
784
  }
629
- return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
785
+ return this.contract.write.decreaseAllowance([spender_, subtractedValue_] as const, options) as Promise<`0x${string}`>;
630
786
  }
631
787
 
632
788
  /**
@@ -634,7 +790,7 @@ export class TetherUSD_json {
634
790
  * nonpayable
635
791
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
636
792
  */
637
- async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
793
+ async increaseAllowance(spender_: `0x${string}`, addedValue_: bigint, options?: {
638
794
  accessList?: import('viem').AccessList;
639
795
  authorizationList?: import('viem').AuthorizationList;
640
796
  chain?: import('viem').Chain | null;
@@ -649,15 +805,15 @@ export class TetherUSD_json {
649
805
  if (!this.contract.write) {
650
806
  throw new Error('Wallet client is required for write operations');
651
807
  }
652
- return this.contract.write.increaseAllowance([spender, addedValue] as const, options) as Promise<`0x${string}`>;
808
+ return this.contract.write.increaseAllowance([spender_, addedValue_] as const, options) as Promise<`0x${string}`>;
653
809
  }
654
810
 
655
811
  /**
656
- * mint
812
+ * initialize
657
813
  * nonpayable
658
814
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
659
815
  */
660
- async mint(account: `0x${string}`, amount: bigint, options?: {
816
+ async initialize(name_: string, symbol_: string, decimals_: bigint, sequence_: bigint, owner_: `0x${string}`, chainId_: bigint, nativeContract_: `0x${string}`, options?: {
661
817
  accessList?: import('viem').AccessList;
662
818
  authorizationList?: import('viem').AuthorizationList;
663
819
  chain?: import('viem').Chain | null;
@@ -672,15 +828,15 @@ export class TetherUSD_json {
672
828
  if (!this.contract.write) {
673
829
  throw new Error('Wallet client is required for write operations');
674
830
  }
675
- return this.contract.write.mint([account, amount] as const, options) as Promise<`0x${string}`>;
831
+ return this.contract.write.initialize([name_, symbol_, decimals_, sequence_, owner_, chainId_, nativeContract_] as const, options) as Promise<`0x${string}`>;
676
832
  }
677
833
 
678
834
  /**
679
- * recoverERC20
835
+ * mint
680
836
  * nonpayable
681
837
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
682
838
  */
683
- async recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
839
+ async mint(account_: `0x${string}`, amount_: bigint, options?: {
684
840
  accessList?: import('viem').AccessList;
685
841
  authorizationList?: import('viem').AuthorizationList;
686
842
  chain?: import('viem').Chain | null;
@@ -695,15 +851,15 @@ export class TetherUSD_json {
695
851
  if (!this.contract.write) {
696
852
  throw new Error('Wallet client is required for write operations');
697
853
  }
698
- return this.contract.write.recoverERC20([tokenAddress, tokenAmount] as const, options) as Promise<`0x${string}`>;
854
+ return this.contract.write.mint([account_, amount_] as const, options) as Promise<`0x${string}`>;
699
855
  }
700
856
 
701
857
  /**
702
- * renounceOwnership
858
+ * permit
703
859
  * nonpayable
704
860
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
705
861
  */
706
- async renounceOwnership(options?: {
862
+ async permit(owner_: `0x${string}`, spender_: `0x${string}`, value_: bigint, deadline_: bigint, v_: bigint, r_: `0x${string}`, s_: `0x${string}`, options?: {
707
863
  accessList?: import('viem').AccessList;
708
864
  authorizationList?: import('viem').AuthorizationList;
709
865
  chain?: import('viem').Chain | null;
@@ -718,7 +874,7 @@ export class TetherUSD_json {
718
874
  if (!this.contract.write) {
719
875
  throw new Error('Wallet client is required for write operations');
720
876
  }
721
- return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
877
+ return this.contract.write.permit([owner_, spender_, value_, deadline_, v_, r_, s_] as const, options) as Promise<`0x${string}`>;
722
878
  }
723
879
 
724
880
  /**
@@ -726,7 +882,7 @@ export class TetherUSD_json {
726
882
  * nonpayable
727
883
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
728
884
  */
729
- async transfer(recipient: `0x${string}`, amount: bigint, options?: {
885
+ async transfer(recipient_: `0x${string}`, amount_: bigint, options?: {
730
886
  accessList?: import('viem').AccessList;
731
887
  authorizationList?: import('viem').AuthorizationList;
732
888
  chain?: import('viem').Chain | null;
@@ -741,7 +897,7 @@ export class TetherUSD_json {
741
897
  if (!this.contract.write) {
742
898
  throw new Error('Wallet client is required for write operations');
743
899
  }
744
- return this.contract.write.transfer([recipient, amount] as const, options) as Promise<`0x${string}`>;
900
+ return this.contract.write.transfer([recipient_, amount_] as const, options) as Promise<`0x${string}`>;
745
901
  }
746
902
 
747
903
  /**
@@ -749,7 +905,7 @@ export class TetherUSD_json {
749
905
  * nonpayable
750
906
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
751
907
  */
752
- async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
908
+ async transferFrom(sender_: `0x${string}`, recipient_: `0x${string}`, amount_: bigint, options?: {
753
909
  accessList?: import('viem').AccessList;
754
910
  authorizationList?: import('viem').AuthorizationList;
755
911
  chain?: import('viem').Chain | null;
@@ -764,15 +920,15 @@ export class TetherUSD_json {
764
920
  if (!this.contract.write) {
765
921
  throw new Error('Wallet client is required for write operations');
766
922
  }
767
- return this.contract.write.transferFrom([sender, recipient, amount] as const, options) as Promise<`0x${string}`>;
923
+ return this.contract.write.transferFrom([sender_, recipient_, amount_] as const, options) as Promise<`0x${string}`>;
768
924
  }
769
925
 
770
926
  /**
771
- * transferOwnership
927
+ * updateDetails
772
928
  * nonpayable
773
929
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
774
930
  */
775
- async transferOwnership(newOwner: `0x${string}`, options?: {
931
+ async updateDetails(name_: string, symbol_: string, sequence_: bigint, options?: {
776
932
  accessList?: import('viem').AccessList;
777
933
  authorizationList?: import('viem').AuthorizationList;
778
934
  chain?: import('viem').Chain | null;
@@ -787,7 +943,7 @@ export class TetherUSD_json {
787
943
  if (!this.contract.write) {
788
944
  throw new Error('Wallet client is required for write operations');
789
945
  }
790
- return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
946
+ return this.contract.write.updateDetails([name_, symbol_, sequence_] as const, options) as Promise<`0x${string}`>;
791
947
  }
792
948
 
793
949
 
@@ -811,7 +967,7 @@ export class TetherUSD_json {
811
967
  * Returns gas estimate and result without sending transaction
812
968
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
813
969
  */
814
- async approve(spender: `0x${string}`, amount: bigint, options?: {
970
+ async approve(spender_: `0x${string}`, amount_: bigint, options?: {
815
971
  accessList?: import('viem').AccessList;
816
972
  authorizationList?: import('viem').AuthorizationList;
817
973
  chain?: import('viem').Chain | null;
@@ -823,14 +979,33 @@ export class TetherUSD_json {
823
979
  nonce?: number;
824
980
  value?: bigint;
825
981
  }): Promise<boolean> {
826
- return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
982
+ return contract.simulate.approve([spender_, amount_] as const, options) as Promise<boolean>;
983
+ },
984
+ /**
985
+ * Simulate burn
986
+ * Returns gas estimate and result without sending transaction
987
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
988
+ */
989
+ async burn(account_: `0x${string}`, amount_: bigint, options?: {
990
+ accessList?: import('viem').AccessList;
991
+ authorizationList?: import('viem').AuthorizationList;
992
+ chain?: import('viem').Chain | null;
993
+ dataSuffix?: `0x${string}`;
994
+ gas?: bigint;
995
+ gasPrice?: bigint;
996
+ maxFeePerGas?: bigint;
997
+ maxPriorityFeePerGas?: bigint;
998
+ nonce?: number;
999
+ value?: bigint;
1000
+ }): Promise<void> {
1001
+ return contract.simulate.burn([account_, amount_] as const, options) as Promise<void>;
827
1002
  },
828
1003
  /**
829
1004
  * Simulate decreaseAllowance
830
1005
  * Returns gas estimate and result without sending transaction
831
1006
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
832
1007
  */
833
- async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
1008
+ async decreaseAllowance(spender_: `0x${string}`, subtractedValue_: bigint, options?: {
834
1009
  accessList?: import('viem').AccessList;
835
1010
  authorizationList?: import('viem').AuthorizationList;
836
1011
  chain?: import('viem').Chain | null;
@@ -842,14 +1017,14 @@ export class TetherUSD_json {
842
1017
  nonce?: number;
843
1018
  value?: bigint;
844
1019
  }): Promise<boolean> {
845
- return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
1020
+ return contract.simulate.decreaseAllowance([spender_, subtractedValue_] as const, options) as Promise<boolean>;
846
1021
  },
847
1022
  /**
848
1023
  * Simulate increaseAllowance
849
1024
  * Returns gas estimate and result without sending transaction
850
1025
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
851
1026
  */
852
- async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
1027
+ async increaseAllowance(spender_: `0x${string}`, addedValue_: bigint, options?: {
853
1028
  accessList?: import('viem').AccessList;
854
1029
  authorizationList?: import('viem').AuthorizationList;
855
1030
  chain?: import('viem').Chain | null;
@@ -861,14 +1036,14 @@ export class TetherUSD_json {
861
1036
  nonce?: number;
862
1037
  value?: bigint;
863
1038
  }): Promise<boolean> {
864
- return contract.simulate.increaseAllowance([spender, addedValue] as const, options) as Promise<boolean>;
1039
+ return contract.simulate.increaseAllowance([spender_, addedValue_] as const, options) as Promise<boolean>;
865
1040
  },
866
1041
  /**
867
- * Simulate mint
1042
+ * Simulate initialize
868
1043
  * Returns gas estimate and result without sending transaction
869
1044
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
870
1045
  */
871
- async mint(account: `0x${string}`, amount: bigint, options?: {
1046
+ async initialize(name_: string, symbol_: string, decimals_: bigint, sequence_: bigint, owner_: `0x${string}`, chainId_: bigint, nativeContract_: `0x${string}`, options?: {
872
1047
  accessList?: import('viem').AccessList;
873
1048
  authorizationList?: import('viem').AuthorizationList;
874
1049
  chain?: import('viem').Chain | null;
@@ -880,14 +1055,14 @@ export class TetherUSD_json {
880
1055
  nonce?: number;
881
1056
  value?: bigint;
882
1057
  }): Promise<void> {
883
- return contract.simulate.mint([account, amount] as const, options) as Promise<void>;
1058
+ return contract.simulate.initialize([name_, symbol_, decimals_, sequence_, owner_, chainId_, nativeContract_] as const, options) as Promise<void>;
884
1059
  },
885
1060
  /**
886
- * Simulate recoverERC20
1061
+ * Simulate mint
887
1062
  * Returns gas estimate and result without sending transaction
888
1063
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
889
1064
  */
890
- async recoverERC20(tokenAddress: `0x${string}`, tokenAmount: bigint, options?: {
1065
+ async mint(account_: `0x${string}`, amount_: bigint, options?: {
891
1066
  accessList?: import('viem').AccessList;
892
1067
  authorizationList?: import('viem').AuthorizationList;
893
1068
  chain?: import('viem').Chain | null;
@@ -899,14 +1074,14 @@ export class TetherUSD_json {
899
1074
  nonce?: number;
900
1075
  value?: bigint;
901
1076
  }): Promise<void> {
902
- return contract.simulate.recoverERC20([tokenAddress, tokenAmount] as const, options) as Promise<void>;
1077
+ return contract.simulate.mint([account_, amount_] as const, options) as Promise<void>;
903
1078
  },
904
1079
  /**
905
- * Simulate renounceOwnership
1080
+ * Simulate permit
906
1081
  * Returns gas estimate and result without sending transaction
907
1082
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
908
1083
  */
909
- async renounceOwnership(options?: {
1084
+ async permit(owner_: `0x${string}`, spender_: `0x${string}`, value_: bigint, deadline_: bigint, v_: bigint, r_: `0x${string}`, s_: `0x${string}`, options?: {
910
1085
  accessList?: import('viem').AccessList;
911
1086
  authorizationList?: import('viem').AuthorizationList;
912
1087
  chain?: import('viem').Chain | null;
@@ -918,14 +1093,14 @@ export class TetherUSD_json {
918
1093
  nonce?: number;
919
1094
  value?: bigint;
920
1095
  }): Promise<void> {
921
- return contract.simulate.renounceOwnership(options) as Promise<void>;
1096
+ return contract.simulate.permit([owner_, spender_, value_, deadline_, v_, r_, s_] as const, options) as Promise<void>;
922
1097
  },
923
1098
  /**
924
1099
  * Simulate transfer
925
1100
  * Returns gas estimate and result without sending transaction
926
1101
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
927
1102
  */
928
- async transfer(recipient: `0x${string}`, amount: bigint, options?: {
1103
+ async transfer(recipient_: `0x${string}`, amount_: bigint, options?: {
929
1104
  accessList?: import('viem').AccessList;
930
1105
  authorizationList?: import('viem').AuthorizationList;
931
1106
  chain?: import('viem').Chain | null;
@@ -937,14 +1112,14 @@ export class TetherUSD_json {
937
1112
  nonce?: number;
938
1113
  value?: bigint;
939
1114
  }): Promise<boolean> {
940
- return contract.simulate.transfer([recipient, amount] as const, options) as Promise<boolean>;
1115
+ return contract.simulate.transfer([recipient_, amount_] as const, options) as Promise<boolean>;
941
1116
  },
942
1117
  /**
943
1118
  * Simulate transferFrom
944
1119
  * Returns gas estimate and result without sending transaction
945
1120
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
946
1121
  */
947
- async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
1122
+ async transferFrom(sender_: `0x${string}`, recipient_: `0x${string}`, amount_: bigint, options?: {
948
1123
  accessList?: import('viem').AccessList;
949
1124
  authorizationList?: import('viem').AuthorizationList;
950
1125
  chain?: import('viem').Chain | null;
@@ -956,14 +1131,14 @@ export class TetherUSD_json {
956
1131
  nonce?: number;
957
1132
  value?: bigint;
958
1133
  }): Promise<boolean> {
959
- return contract.simulate.transferFrom([sender, recipient, amount] as const, options) as Promise<boolean>;
1134
+ return contract.simulate.transferFrom([sender_, recipient_, amount_] as const, options) as Promise<boolean>;
960
1135
  },
961
1136
  /**
962
- * Simulate transferOwnership
1137
+ * Simulate updateDetails
963
1138
  * Returns gas estimate and result without sending transaction
964
1139
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
965
1140
  */
966
- async transferOwnership(newOwner: `0x${string}`, options?: {
1141
+ async updateDetails(name_: string, symbol_: string, sequence_: bigint, options?: {
967
1142
  accessList?: import('viem').AccessList;
968
1143
  authorizationList?: import('viem').AuthorizationList;
969
1144
  chain?: import('viem').Chain | null;
@@ -975,7 +1150,7 @@ export class TetherUSD_json {
975
1150
  nonce?: number;
976
1151
  value?: bigint;
977
1152
  }): Promise<void> {
978
- return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
1153
+ return contract.simulate.updateDetails([name_, symbol_, sequence_] as const, options) as Promise<void>;
979
1154
  }
980
1155
  };
981
1156
  }
@@ -1003,7 +1178,7 @@ export class TetherUSD_json {
1003
1178
  Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
1004
1179
  return this.publicClient.watchContractEvent({
1005
1180
  address: this.contractAddress,
1006
- abi: TetherUSD_jsonAbi,
1181
+ abi: TokenImplementation_jsonAbi,
1007
1182
  eventName: 'Approval',
1008
1183
  args: filter,
1009
1184
  onLogs: (logs: any[]) => {
@@ -1013,25 +1188,6 @@ export class TetherUSD_json {
1013
1188
  },
1014
1189
  }) as () => void;
1015
1190
  },
1016
- /**
1017
- * Watch OwnershipTransferred events
1018
- * @param callback Function to call when event is emitted
1019
- * @param filter Optional filter for indexed parameters
1020
- * @returns Unwatch function to stop listening
1021
- */
1022
- OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
1023
- return this.publicClient.watchContractEvent({
1024
- address: this.contractAddress,
1025
- abi: TetherUSD_jsonAbi,
1026
- eventName: 'OwnershipTransferred',
1027
- args: filter,
1028
- onLogs: (logs: any[]) => {
1029
- logs.forEach((log: any) => {
1030
- callback(log.args as any);
1031
- });
1032
- },
1033
- }) as () => void;
1034
- },
1035
1191
  /**
1036
1192
  * Watch Transfer events
1037
1193
  * @param callback Function to call when event is emitted
@@ -1041,7 +1197,7 @@ export class TetherUSD_json {
1041
1197
  Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
1042
1198
  return this.publicClient.watchContractEvent({
1043
1199
  address: this.contractAddress,
1044
- abi: TetherUSD_jsonAbi,
1200
+ abi: TokenImplementation_jsonAbi,
1045
1201
  eventName: 'Transfer',
1046
1202
  args: filter,
1047
1203
  onLogs: (logs: any[]) => {