@gitmyabi/usdt 1.0.7 → 1.0.8

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,39 +2,13 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * MyToken_json ABI
5
+ * Tether_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const MyToken_jsonAbi = [
9
+ export const Tether_jsonAbi = [
10
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": "_cap",
25
- "type": "uint256"
26
- },
27
- {
28
- "internalType": "uint256",
29
- "name": "_initialSupply",
30
- "type": "uint256"
31
- },
32
- {
33
- "internalType": "string",
34
- "name": "_logoURI",
35
- "type": "string"
36
- }
37
- ],
11
+ "inputs": [],
38
12
  "stateMutability": "nonpayable",
39
13
  "type": "constructor"
40
14
  },
@@ -44,7 +18,7 @@ export const MyToken_jsonAbi = [
44
18
  {
45
19
  "indexed": true,
46
20
  "internalType": "address",
47
- "name": "owner",
21
+ "name": "tokenOwner",
48
22
  "type": "address"
49
23
  },
50
24
  {
@@ -63,6 +37,25 @@ export const MyToken_jsonAbi = [
63
37
  "name": "Approval",
64
38
  "type": "event"
65
39
  },
40
+ {
41
+ "anonymous": false,
42
+ "inputs": [
43
+ {
44
+ "indexed": true,
45
+ "internalType": "address",
46
+ "name": "account",
47
+ "type": "address"
48
+ },
49
+ {
50
+ "indexed": false,
51
+ "internalType": "uint256",
52
+ "name": "amount",
53
+ "type": "uint256"
54
+ }
55
+ ],
56
+ "name": "Freeze",
57
+ "type": "event"
58
+ },
66
59
  {
67
60
  "anonymous": false,
68
61
  "inputs": [
@@ -108,15 +101,34 @@ export const MyToken_jsonAbi = [
108
101
  "type": "event"
109
102
  },
110
103
  {
104
+ "anonymous": false,
111
105
  "inputs": [
112
106
  {
107
+ "indexed": true,
113
108
  "internalType": "address",
114
- "name": "",
109
+ "name": "account",
110
+ "type": "address"
111
+ },
112
+ {
113
+ "indexed": false,
114
+ "internalType": "uint256",
115
+ "name": "amount",
116
+ "type": "uint256"
117
+ }
118
+ ],
119
+ "name": "Unfreeze",
120
+ "type": "event"
121
+ },
122
+ {
123
+ "inputs": [
124
+ {
125
+ "internalType": "address",
126
+ "name": "tokenOwner",
115
127
  "type": "address"
116
128
  },
117
129
  {
118
130
  "internalType": "address",
119
- "name": "",
131
+ "name": "spender",
120
132
  "type": "address"
121
133
  }
122
134
  ],
@@ -140,7 +152,7 @@ export const MyToken_jsonAbi = [
140
152
  },
141
153
  {
142
154
  "internalType": "uint256",
143
- "name": "value",
155
+ "name": "amount",
144
156
  "type": "uint256"
145
157
  }
146
158
  ],
@@ -159,11 +171,11 @@ export const MyToken_jsonAbi = [
159
171
  "inputs": [
160
172
  {
161
173
  "internalType": "address",
162
- "name": "",
174
+ "name": "account",
163
175
  "type": "address"
164
176
  }
165
177
  ],
166
- "name": "balanceOf",
178
+ "name": "availableBalanceOf",
167
179
  "outputs": [
168
180
  {
169
181
  "internalType": "uint256",
@@ -175,8 +187,14 @@ export const MyToken_jsonAbi = [
175
187
  "type": "function"
176
188
  },
177
189
  {
178
- "inputs": [],
179
- "name": "cap",
190
+ "inputs": [
191
+ {
192
+ "internalType": "address",
193
+ "name": "account",
194
+ "type": "address"
195
+ }
196
+ ],
197
+ "name": "balanceOf",
180
198
  "outputs": [
181
199
  {
182
200
  "internalType": "uint256",
@@ -201,23 +219,34 @@ export const MyToken_jsonAbi = [
201
219
  "type": "function"
202
220
  },
203
221
  {
204
- "inputs": [],
205
- "name": "logoURI",
222
+ "inputs": [
223
+ {
224
+ "internalType": "address",
225
+ "name": "spender",
226
+ "type": "address"
227
+ },
228
+ {
229
+ "internalType": "uint256",
230
+ "name": "subtractedValue",
231
+ "type": "uint256"
232
+ }
233
+ ],
234
+ "name": "decreaseAllowance",
206
235
  "outputs": [
207
236
  {
208
- "internalType": "string",
237
+ "internalType": "bool",
209
238
  "name": "",
210
- "type": "string"
239
+ "type": "bool"
211
240
  }
212
241
  ],
213
- "stateMutability": "view",
242
+ "stateMutability": "nonpayable",
214
243
  "type": "function"
215
244
  },
216
245
  {
217
246
  "inputs": [
218
247
  {
219
248
  "internalType": "address",
220
- "name": "to",
249
+ "name": "account",
221
250
  "type": "address"
222
251
  },
223
252
  {
@@ -226,55 +255,84 @@ export const MyToken_jsonAbi = [
226
255
  "type": "uint256"
227
256
  }
228
257
  ],
229
- "name": "mint",
230
- "outputs": [],
258
+ "name": "freezeBalance",
259
+ "outputs": [
260
+ {
261
+ "internalType": "bool",
262
+ "name": "",
263
+ "type": "bool"
264
+ }
265
+ ],
231
266
  "stateMutability": "nonpayable",
232
267
  "type": "function"
233
268
  },
234
269
  {
235
- "inputs": [],
236
- "name": "name",
270
+ "inputs": [
271
+ {
272
+ "internalType": "address",
273
+ "name": "account",
274
+ "type": "address"
275
+ }
276
+ ],
277
+ "name": "frozenBalanceOf",
237
278
  "outputs": [
238
279
  {
239
- "internalType": "string",
280
+ "internalType": "uint256",
240
281
  "name": "",
241
- "type": "string"
282
+ "type": "uint256"
242
283
  }
243
284
  ],
244
285
  "stateMutability": "view",
245
286
  "type": "function"
246
287
  },
247
288
  {
248
- "inputs": [],
249
- "name": "owner",
250
- "outputs": [
289
+ "inputs": [
251
290
  {
252
291
  "internalType": "address",
253
- "name": "",
292
+ "name": "spender",
254
293
  "type": "address"
294
+ },
295
+ {
296
+ "internalType": "uint256",
297
+ "name": "addedValue",
298
+ "type": "uint256"
255
299
  }
256
300
  ],
257
- "stateMutability": "view",
301
+ "name": "increaseAllowance",
302
+ "outputs": [
303
+ {
304
+ "internalType": "bool",
305
+ "name": "",
306
+ "type": "bool"
307
+ }
308
+ ],
309
+ "stateMutability": "nonpayable",
258
310
  "type": "function"
259
311
  },
260
312
  {
261
313
  "inputs": [],
262
- "name": "renounceOwnership",
263
- "outputs": [],
264
- "stateMutability": "nonpayable",
314
+ "name": "name",
315
+ "outputs": [
316
+ {
317
+ "internalType": "string",
318
+ "name": "",
319
+ "type": "string"
320
+ }
321
+ ],
322
+ "stateMutability": "view",
265
323
  "type": "function"
266
324
  },
267
325
  {
268
- "inputs": [
326
+ "inputs": [],
327
+ "name": "owner",
328
+ "outputs": [
269
329
  {
270
- "internalType": "string",
271
- "name": "_logoURI",
272
- "type": "string"
330
+ "internalType": "address",
331
+ "name": "",
332
+ "type": "address"
273
333
  }
274
334
  ],
275
- "name": "setLogoURI",
276
- "outputs": [],
277
- "stateMutability": "nonpayable",
335
+ "stateMutability": "view",
278
336
  "type": "function"
279
337
  },
280
338
  {
@@ -312,7 +370,7 @@ export const MyToken_jsonAbi = [
312
370
  },
313
371
  {
314
372
  "internalType": "uint256",
315
- "name": "value",
373
+ "name": "amount",
316
374
  "type": "uint256"
317
375
  }
318
376
  ],
@@ -341,7 +399,7 @@ export const MyToken_jsonAbi = [
341
399
  },
342
400
  {
343
401
  "internalType": "uint256",
344
- "name": "value",
402
+ "name": "amount",
345
403
  "type": "uint256"
346
404
  }
347
405
  ],
@@ -365,26 +423,80 @@ export const MyToken_jsonAbi = [
365
423
  }
366
424
  ],
367
425
  "name": "transferOwnership",
368
- "outputs": [],
426
+ "outputs": [
427
+ {
428
+ "internalType": "bool",
429
+ "name": "",
430
+ "type": "bool"
431
+ }
432
+ ],
433
+ "stateMutability": "nonpayable",
434
+ "type": "function"
435
+ },
436
+ {
437
+ "inputs": [
438
+ {
439
+ "internalType": "address",
440
+ "name": "to",
441
+ "type": "address"
442
+ },
443
+ {
444
+ "internalType": "uint256",
445
+ "name": "amount",
446
+ "type": "uint256"
447
+ }
448
+ ],
449
+ "name": "transferWithFreeze",
450
+ "outputs": [
451
+ {
452
+ "internalType": "bool",
453
+ "name": "",
454
+ "type": "bool"
455
+ }
456
+ ],
457
+ "stateMutability": "nonpayable",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [
462
+ {
463
+ "internalType": "address",
464
+ "name": "account",
465
+ "type": "address"
466
+ },
467
+ {
468
+ "internalType": "uint256",
469
+ "name": "amount",
470
+ "type": "uint256"
471
+ }
472
+ ],
473
+ "name": "unfreezeBalance",
474
+ "outputs": [
475
+ {
476
+ "internalType": "bool",
477
+ "name": "",
478
+ "type": "bool"
479
+ }
480
+ ],
369
481
  "stateMutability": "nonpayable",
370
482
  "type": "function"
371
483
  }
372
484
  ] as const satisfies Abi;
373
485
 
374
486
  /**
375
- * Type-safe ABI for MyToken_json
487
+ * Type-safe ABI for Tether_json
376
488
  */
377
- export type MyToken_jsonAbi = typeof MyToken_jsonAbi;
489
+ export type Tether_jsonAbi = typeof Tether_jsonAbi;
378
490
 
379
491
  /**
380
- * Contract instance type for MyToken_json
492
+ * Contract instance type for Tether_json
381
493
  */
382
494
  // Use any for contract type to avoid complex viem type issues
383
495
  // The runtime behavior is type-safe through viem's ABI typing
384
- export type MyToken_jsonContract = any;
496
+ export type Tether_jsonContract = any;
385
497
 
386
498
  /**
387
- * MyToken_json Contract Class
499
+ * Tether_json Contract Class
388
500
  *
389
501
  * Provides a class-based API similar to TypeChain for interacting with the contract.
390
502
  *
@@ -392,12 +504,12 @@ export type MyToken_jsonContract = any;
392
504
  * ```typescript
393
505
  * import { createPublicClient, createWalletClient, http } from 'viem';
394
506
  * import { mainnet } from 'viem/chains';
395
- * import { MyToken_json } from 'MyToken_json';
507
+ * import { Tether_json } from 'Tether_json';
396
508
  *
397
509
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
398
510
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
399
511
  *
400
- * const contract = new MyToken_json('0x...', { publicClient, walletClient });
512
+ * const contract = new Tether_json('0x...', { publicClient, walletClient });
401
513
  *
402
514
  * // Read functions
403
515
  * const result = await contract.balanceOf('0x...');
@@ -415,8 +527,8 @@ export type MyToken_jsonContract = any;
415
527
  * });
416
528
  * ```
417
529
  */
418
- export class MyToken_json {
419
- private contract: MyToken_jsonContract;
530
+ export class Tether_json {
531
+ private contract: Tether_jsonContract;
420
532
  private contractAddress: Address;
421
533
  private publicClient: PublicClient;
422
534
 
@@ -431,7 +543,7 @@ export class MyToken_json {
431
543
  this.publicClient = clients.publicClient;
432
544
  this.contract = getContract({
433
545
  address,
434
- abi: MyToken_jsonAbi,
546
+ abi: Tether_jsonAbi,
435
547
  client: {
436
548
  public: clients.publicClient,
437
549
  wallet: clients.walletClient,
@@ -449,7 +561,7 @@ export class MyToken_json {
449
561
  /**
450
562
  * Get the underlying viem contract instance
451
563
  */
452
- getContract(): MyToken_jsonContract {
564
+ getContract(): Tether_jsonContract {
453
565
  return this.contract;
454
566
  }
455
567
 
@@ -457,24 +569,24 @@ export class MyToken_json {
457
569
  * allowance
458
570
  * view
459
571
  */
460
- async allowance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint> {
461
- return this.contract.read.allowance([arg0, arg1] as const) as Promise<bigint>;
572
+ async allowance(tokenOwner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
573
+ return this.contract.read.allowance([tokenOwner, spender] as const) as Promise<bigint>;
462
574
  }
463
575
 
464
576
  /**
465
- * balanceOf
577
+ * availableBalanceOf
466
578
  * view
467
579
  */
468
- async balanceOf(arg0: `0x${string}`): Promise<bigint> {
469
- return this.contract.read.balanceOf([arg0] as const) as Promise<bigint>;
580
+ async availableBalanceOf(account: `0x${string}`): Promise<bigint> {
581
+ return this.contract.read.availableBalanceOf([account] as const) as Promise<bigint>;
470
582
  }
471
583
 
472
584
  /**
473
- * cap
585
+ * balanceOf
474
586
  * view
475
587
  */
476
- async cap(): Promise<bigint> {
477
- return this.contract.read.cap() as Promise<bigint>;
588
+ async balanceOf(account: `0x${string}`): Promise<bigint> {
589
+ return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
478
590
  }
479
591
 
480
592
  /**
@@ -486,11 +598,11 @@ export class MyToken_json {
486
598
  }
487
599
 
488
600
  /**
489
- * logoURI
601
+ * frozenBalanceOf
490
602
  * view
491
603
  */
492
- async logoURI(): Promise<string> {
493
- return this.contract.read.logoURI() as Promise<string>;
604
+ async frozenBalanceOf(account: `0x${string}`): Promise<bigint> {
605
+ return this.contract.read.frozenBalanceOf([account] as const) as Promise<bigint>;
494
606
  }
495
607
 
496
608
  /**
@@ -530,7 +642,7 @@ export class MyToken_json {
530
642
  * nonpayable
531
643
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
532
644
  */
533
- async approve(spender: `0x${string}`, value: bigint, options?: {
645
+ async approve(spender: `0x${string}`, amount: bigint, options?: {
534
646
  accessList?: import('viem').AccessList;
535
647
  authorizationList?: import('viem').AuthorizationList;
536
648
  chain?: import('viem').Chain | null;
@@ -545,15 +657,15 @@ export class MyToken_json {
545
657
  if (!this.contract.write) {
546
658
  throw new Error('Wallet client is required for write operations');
547
659
  }
548
- return this.contract.write.approve([spender, value] as const, options) as Promise<`0x${string}`>;
660
+ return this.contract.write.approve([spender, amount] as const, options) as Promise<`0x${string}`>;
549
661
  }
550
662
 
551
663
  /**
552
- * mint
664
+ * decreaseAllowance
553
665
  * nonpayable
554
666
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
555
667
  */
556
- async mint(to: `0x${string}`, amount: bigint, options?: {
668
+ async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
557
669
  accessList?: import('viem').AccessList;
558
670
  authorizationList?: import('viem').AuthorizationList;
559
671
  chain?: import('viem').Chain | null;
@@ -568,15 +680,15 @@ export class MyToken_json {
568
680
  if (!this.contract.write) {
569
681
  throw new Error('Wallet client is required for write operations');
570
682
  }
571
- return this.contract.write.mint([to, amount] as const, options) as Promise<`0x${string}`>;
683
+ return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
572
684
  }
573
685
 
574
686
  /**
575
- * renounceOwnership
687
+ * freezeBalance
576
688
  * nonpayable
577
689
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
578
690
  */
579
- async renounceOwnership(options?: {
691
+ async freezeBalance(account: `0x${string}`, amount: bigint, options?: {
580
692
  accessList?: import('viem').AccessList;
581
693
  authorizationList?: import('viem').AuthorizationList;
582
694
  chain?: import('viem').Chain | null;
@@ -591,15 +703,15 @@ export class MyToken_json {
591
703
  if (!this.contract.write) {
592
704
  throw new Error('Wallet client is required for write operations');
593
705
  }
594
- return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
706
+ return this.contract.write.freezeBalance([account, amount] as const, options) as Promise<`0x${string}`>;
595
707
  }
596
708
 
597
709
  /**
598
- * setLogoURI
710
+ * increaseAllowance
599
711
  * nonpayable
600
712
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
601
713
  */
602
- async setLogoURI(_logoURI: string, options?: {
714
+ async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
603
715
  accessList?: import('viem').AccessList;
604
716
  authorizationList?: import('viem').AuthorizationList;
605
717
  chain?: import('viem').Chain | null;
@@ -614,7 +726,7 @@ export class MyToken_json {
614
726
  if (!this.contract.write) {
615
727
  throw new Error('Wallet client is required for write operations');
616
728
  }
617
- return this.contract.write.setLogoURI([_logoURI] as const, options) as Promise<`0x${string}`>;
729
+ return this.contract.write.increaseAllowance([spender, addedValue] as const, options) as Promise<`0x${string}`>;
618
730
  }
619
731
 
620
732
  /**
@@ -622,7 +734,7 @@ export class MyToken_json {
622
734
  * nonpayable
623
735
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
624
736
  */
625
- async transfer(to: `0x${string}`, value: bigint, options?: {
737
+ async transfer(to: `0x${string}`, amount: bigint, options?: {
626
738
  accessList?: import('viem').AccessList;
627
739
  authorizationList?: import('viem').AuthorizationList;
628
740
  chain?: import('viem').Chain | null;
@@ -637,7 +749,7 @@ export class MyToken_json {
637
749
  if (!this.contract.write) {
638
750
  throw new Error('Wallet client is required for write operations');
639
751
  }
640
- return this.contract.write.transfer([to, value] as const, options) as Promise<`0x${string}`>;
752
+ return this.contract.write.transfer([to, amount] as const, options) as Promise<`0x${string}`>;
641
753
  }
642
754
 
643
755
  /**
@@ -645,7 +757,7 @@ export class MyToken_json {
645
757
  * nonpayable
646
758
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
647
759
  */
648
- async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
760
+ async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
649
761
  accessList?: import('viem').AccessList;
650
762
  authorizationList?: import('viem').AuthorizationList;
651
763
  chain?: import('viem').Chain | null;
@@ -660,7 +772,7 @@ export class MyToken_json {
660
772
  if (!this.contract.write) {
661
773
  throw new Error('Wallet client is required for write operations');
662
774
  }
663
- return this.contract.write.transferFrom([from, to, value] as const, options) as Promise<`0x${string}`>;
775
+ return this.contract.write.transferFrom([from, to, amount] as const, options) as Promise<`0x${string}`>;
664
776
  }
665
777
 
666
778
  /**
@@ -686,6 +798,52 @@ export class MyToken_json {
686
798
  return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
687
799
  }
688
800
 
801
+ /**
802
+ * transferWithFreeze
803
+ * nonpayable
804
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
805
+ */
806
+ async transferWithFreeze(to: `0x${string}`, amount: bigint, options?: {
807
+ accessList?: import('viem').AccessList;
808
+ authorizationList?: import('viem').AuthorizationList;
809
+ chain?: import('viem').Chain | null;
810
+ dataSuffix?: `0x${string}`;
811
+ gas?: bigint;
812
+ gasPrice?: bigint;
813
+ maxFeePerGas?: bigint;
814
+ maxPriorityFeePerGas?: bigint;
815
+ nonce?: number;
816
+ value?: bigint;
817
+ }): Promise<`0x${string}`> {
818
+ if (!this.contract.write) {
819
+ throw new Error('Wallet client is required for write operations');
820
+ }
821
+ return this.contract.write.transferWithFreeze([to, amount] as const, options) as Promise<`0x${string}`>;
822
+ }
823
+
824
+ /**
825
+ * unfreezeBalance
826
+ * nonpayable
827
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
828
+ */
829
+ async unfreezeBalance(account: `0x${string}`, amount: bigint, options?: {
830
+ accessList?: import('viem').AccessList;
831
+ authorizationList?: import('viem').AuthorizationList;
832
+ chain?: import('viem').Chain | null;
833
+ dataSuffix?: `0x${string}`;
834
+ gas?: bigint;
835
+ gasPrice?: bigint;
836
+ maxFeePerGas?: bigint;
837
+ maxPriorityFeePerGas?: bigint;
838
+ nonce?: number;
839
+ value?: bigint;
840
+ }): Promise<`0x${string}`> {
841
+ if (!this.contract.write) {
842
+ throw new Error('Wallet client is required for write operations');
843
+ }
844
+ return this.contract.write.unfreezeBalance([account, amount] as const, options) as Promise<`0x${string}`>;
845
+ }
846
+
689
847
 
690
848
 
691
849
  /**
@@ -707,7 +865,7 @@ export class MyToken_json {
707
865
  * Returns gas estimate and result without sending transaction
708
866
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
709
867
  */
710
- async approve(spender: `0x${string}`, value: bigint, options?: {
868
+ async approve(spender: `0x${string}`, amount: bigint, options?: {
711
869
  accessList?: import('viem').AccessList;
712
870
  authorizationList?: import('viem').AuthorizationList;
713
871
  chain?: import('viem').Chain | null;
@@ -719,14 +877,14 @@ export class MyToken_json {
719
877
  nonce?: number;
720
878
  value?: bigint;
721
879
  }): Promise<boolean> {
722
- return contract.simulate.approve([spender, value] as const, options) as Promise<boolean>;
880
+ return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
723
881
  },
724
882
  /**
725
- * Simulate mint
883
+ * Simulate decreaseAllowance
726
884
  * Returns gas estimate and result without sending transaction
727
885
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
728
886
  */
729
- async mint(to: `0x${string}`, amount: bigint, options?: {
887
+ async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
730
888
  accessList?: import('viem').AccessList;
731
889
  authorizationList?: import('viem').AuthorizationList;
732
890
  chain?: import('viem').Chain | null;
@@ -737,15 +895,15 @@ export class MyToken_json {
737
895
  maxPriorityFeePerGas?: bigint;
738
896
  nonce?: number;
739
897
  value?: bigint;
740
- }): Promise<void> {
741
- return contract.simulate.mint([to, amount] as const, options) as Promise<void>;
898
+ }): Promise<boolean> {
899
+ return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
742
900
  },
743
901
  /**
744
- * Simulate renounceOwnership
902
+ * Simulate freezeBalance
745
903
  * Returns gas estimate and result without sending transaction
746
904
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
747
905
  */
748
- async renounceOwnership(options?: {
906
+ async freezeBalance(account: `0x${string}`, amount: bigint, options?: {
749
907
  accessList?: import('viem').AccessList;
750
908
  authorizationList?: import('viem').AuthorizationList;
751
909
  chain?: import('viem').Chain | null;
@@ -756,15 +914,15 @@ export class MyToken_json {
756
914
  maxPriorityFeePerGas?: bigint;
757
915
  nonce?: number;
758
916
  value?: bigint;
759
- }): Promise<void> {
760
- return contract.simulate.renounceOwnership(options) as Promise<void>;
917
+ }): Promise<boolean> {
918
+ return contract.simulate.freezeBalance([account, amount] as const, options) as Promise<boolean>;
761
919
  },
762
920
  /**
763
- * Simulate setLogoURI
921
+ * Simulate increaseAllowance
764
922
  * Returns gas estimate and result without sending transaction
765
923
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
766
924
  */
767
- async setLogoURI(_logoURI: string, options?: {
925
+ async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
768
926
  accessList?: import('viem').AccessList;
769
927
  authorizationList?: import('viem').AuthorizationList;
770
928
  chain?: import('viem').Chain | null;
@@ -775,15 +933,15 @@ export class MyToken_json {
775
933
  maxPriorityFeePerGas?: bigint;
776
934
  nonce?: number;
777
935
  value?: bigint;
778
- }): Promise<void> {
779
- return contract.simulate.setLogoURI([_logoURI] as const, options) as Promise<void>;
936
+ }): Promise<boolean> {
937
+ return contract.simulate.increaseAllowance([spender, addedValue] as const, options) as Promise<boolean>;
780
938
  },
781
939
  /**
782
940
  * Simulate transfer
783
941
  * Returns gas estimate and result without sending transaction
784
942
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
785
943
  */
786
- async transfer(to: `0x${string}`, value: bigint, options?: {
944
+ async transfer(to: `0x${string}`, amount: bigint, options?: {
787
945
  accessList?: import('viem').AccessList;
788
946
  authorizationList?: import('viem').AuthorizationList;
789
947
  chain?: import('viem').Chain | null;
@@ -795,14 +953,14 @@ export class MyToken_json {
795
953
  nonce?: number;
796
954
  value?: bigint;
797
955
  }): Promise<boolean> {
798
- return contract.simulate.transfer([to, value] as const, options) as Promise<boolean>;
956
+ return contract.simulate.transfer([to, amount] as const, options) as Promise<boolean>;
799
957
  },
800
958
  /**
801
959
  * Simulate transferFrom
802
960
  * Returns gas estimate and result without sending transaction
803
961
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
804
962
  */
805
- async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
963
+ async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
806
964
  accessList?: import('viem').AccessList;
807
965
  authorizationList?: import('viem').AuthorizationList;
808
966
  chain?: import('viem').Chain | null;
@@ -814,7 +972,7 @@ export class MyToken_json {
814
972
  nonce?: number;
815
973
  value?: bigint;
816
974
  }): Promise<boolean> {
817
- return contract.simulate.transferFrom([from, to, value] as const, options) as Promise<boolean>;
975
+ return contract.simulate.transferFrom([from, to, amount] as const, options) as Promise<boolean>;
818
976
  },
819
977
  /**
820
978
  * Simulate transferOwnership
@@ -832,8 +990,46 @@ export class MyToken_json {
832
990
  maxPriorityFeePerGas?: bigint;
833
991
  nonce?: number;
834
992
  value?: bigint;
835
- }): Promise<void> {
836
- return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
993
+ }): Promise<boolean> {
994
+ return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<boolean>;
995
+ },
996
+ /**
997
+ * Simulate transferWithFreeze
998
+ * Returns gas estimate and result without sending transaction
999
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1000
+ */
1001
+ async transferWithFreeze(to: `0x${string}`, amount: bigint, options?: {
1002
+ accessList?: import('viem').AccessList;
1003
+ authorizationList?: import('viem').AuthorizationList;
1004
+ chain?: import('viem').Chain | null;
1005
+ dataSuffix?: `0x${string}`;
1006
+ gas?: bigint;
1007
+ gasPrice?: bigint;
1008
+ maxFeePerGas?: bigint;
1009
+ maxPriorityFeePerGas?: bigint;
1010
+ nonce?: number;
1011
+ value?: bigint;
1012
+ }): Promise<boolean> {
1013
+ return contract.simulate.transferWithFreeze([to, amount] as const, options) as Promise<boolean>;
1014
+ },
1015
+ /**
1016
+ * Simulate unfreezeBalance
1017
+ * Returns gas estimate and result without sending transaction
1018
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1019
+ */
1020
+ async unfreezeBalance(account: `0x${string}`, amount: bigint, options?: {
1021
+ accessList?: import('viem').AccessList;
1022
+ authorizationList?: import('viem').AuthorizationList;
1023
+ chain?: import('viem').Chain | null;
1024
+ dataSuffix?: `0x${string}`;
1025
+ gas?: bigint;
1026
+ gasPrice?: bigint;
1027
+ maxFeePerGas?: bigint;
1028
+ maxPriorityFeePerGas?: bigint;
1029
+ nonce?: number;
1030
+ value?: bigint;
1031
+ }): Promise<boolean> {
1032
+ return contract.simulate.unfreezeBalance([account, amount] as const, options) as Promise<boolean>;
837
1033
  }
838
1034
  };
839
1035
  }
@@ -858,10 +1054,10 @@ export class MyToken_json {
858
1054
  * @param filter Optional filter for indexed parameters
859
1055
  * @returns Unwatch function to stop listening
860
1056
  */
861
- Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
1057
+ Approval: (callback: (event: { tokenOwner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { tokenOwner: `0x${string}`; spender: `0x${string}` }) => {
862
1058
  return this.publicClient.watchContractEvent({
863
1059
  address: this.contractAddress,
864
- abi: MyToken_jsonAbi,
1060
+ abi: Tether_jsonAbi,
865
1061
  eventName: 'Approval',
866
1062
  args: filter,
867
1063
  onLogs: (logs: any[]) => {
@@ -871,6 +1067,25 @@ export class MyToken_json {
871
1067
  },
872
1068
  }) as () => void;
873
1069
  },
1070
+ /**
1071
+ * Watch Freeze events
1072
+ * @param callback Function to call when event is emitted
1073
+ * @param filter Optional filter for indexed parameters
1074
+ * @returns Unwatch function to stop listening
1075
+ */
1076
+ Freeze: (callback: (event: { account: `0x${string}`; amount: bigint }) => void, filter?: { account: `0x${string}` }) => {
1077
+ return this.publicClient.watchContractEvent({
1078
+ address: this.contractAddress,
1079
+ abi: Tether_jsonAbi,
1080
+ eventName: 'Freeze',
1081
+ args: filter,
1082
+ onLogs: (logs: any[]) => {
1083
+ logs.forEach((log: any) => {
1084
+ callback(log.args as any);
1085
+ });
1086
+ },
1087
+ }) as () => void;
1088
+ },
874
1089
  /**
875
1090
  * Watch OwnershipTransferred events
876
1091
  * @param callback Function to call when event is emitted
@@ -880,7 +1095,7 @@ export class MyToken_json {
880
1095
  OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
881
1096
  return this.publicClient.watchContractEvent({
882
1097
  address: this.contractAddress,
883
- abi: MyToken_jsonAbi,
1098
+ abi: Tether_jsonAbi,
884
1099
  eventName: 'OwnershipTransferred',
885
1100
  args: filter,
886
1101
  onLogs: (logs: any[]) => {
@@ -899,7 +1114,7 @@ export class MyToken_json {
899
1114
  Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
900
1115
  return this.publicClient.watchContractEvent({
901
1116
  address: this.contractAddress,
902
- abi: MyToken_jsonAbi,
1117
+ abi: Tether_jsonAbi,
903
1118
  eventName: 'Transfer',
904
1119
  args: filter,
905
1120
  onLogs: (logs: any[]) => {
@@ -908,6 +1123,25 @@ export class MyToken_json {
908
1123
  });
909
1124
  },
910
1125
  }) as () => void;
1126
+ },
1127
+ /**
1128
+ * Watch Unfreeze 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
+ Unfreeze: (callback: (event: { account: `0x${string}`; amount: bigint }) => void, filter?: { account: `0x${string}` }) => {
1134
+ return this.publicClient.watchContractEvent({
1135
+ address: this.contractAddress,
1136
+ abi: Tether_jsonAbi,
1137
+ eventName: 'Unfreeze',
1138
+ args: filter,
1139
+ onLogs: (logs: any[]) => {
1140
+ logs.forEach((log: any) => {
1141
+ callback(log.args as any);
1142
+ });
1143
+ },
1144
+ }) as () => void;
911
1145
  }
912
1146
  };
913
1147
  }