@gitmyabi/usdt 1.0.4 → 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.
@@ -1,18 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.USDToken_json = exports.USDToken_jsonAbi = void 0;
3
+ exports.TokenImplementation_json = exports.TokenImplementation_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * USDToken_json ABI
6
+ * TokenImplementation_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.USDToken_jsonAbi = [
11
- {
12
- "inputs": [],
13
- "stateMutability": "nonpayable",
14
- "type": "constructor"
15
- },
10
+ exports.TokenImplementation_jsonAbi = [
16
11
  {
17
12
  "anonymous": false,
18
13
  "inputs": [
@@ -38,45 +33,6 @@ exports.USDToken_jsonAbi = [
38
33
  "name": "Approval",
39
34
  "type": "event"
40
35
  },
41
- {
42
- "anonymous": false,
43
- "inputs": [
44
- {
45
- "indexed": false,
46
- "internalType": "string",
47
- "name": "newName",
48
- "type": "string"
49
- }
50
- ],
51
- "name": "NameChanged",
52
- "type": "event"
53
- },
54
- {
55
- "anonymous": false,
56
- "inputs": [
57
- {
58
- "indexed": true,
59
- "internalType": "address",
60
- "name": "previousOwner",
61
- "type": "address"
62
- }
63
- ],
64
- "name": "OwnershipRenounced",
65
- "type": "event"
66
- },
67
- {
68
- "anonymous": false,
69
- "inputs": [
70
- {
71
- "indexed": false,
72
- "internalType": "string",
73
- "name": "newSymbol",
74
- "type": "string"
75
- }
76
- ],
77
- "name": "SymbolChanged",
78
- "type": "event"
79
- },
80
36
  {
81
37
  "anonymous": false,
82
38
  "inputs": [
@@ -102,16 +58,29 @@ exports.USDToken_jsonAbi = [
102
58
  "name": "Transfer",
103
59
  "type": "event"
104
60
  },
61
+ {
62
+ "inputs": [],
63
+ "name": "DOMAIN_SEPARATOR",
64
+ "outputs": [
65
+ {
66
+ "internalType": "bytes32",
67
+ "name": "",
68
+ "type": "bytes32"
69
+ }
70
+ ],
71
+ "stateMutability": "view",
72
+ "type": "function"
73
+ },
105
74
  {
106
75
  "inputs": [
107
76
  {
108
77
  "internalType": "address",
109
- "name": "",
78
+ "name": "owner_",
110
79
  "type": "address"
111
80
  },
112
81
  {
113
82
  "internalType": "address",
114
- "name": "",
83
+ "name": "spender_",
115
84
  "type": "address"
116
85
  }
117
86
  ],
@@ -130,12 +99,12 @@ exports.USDToken_jsonAbi = [
130
99
  "inputs": [
131
100
  {
132
101
  "internalType": "address",
133
- "name": "spender",
102
+ "name": "spender_",
134
103
  "type": "address"
135
104
  },
136
105
  {
137
106
  "internalType": "uint256",
138
- "name": "amount",
107
+ "name": "amount_",
139
108
  "type": "uint256"
140
109
  }
141
110
  ],
@@ -154,7 +123,7 @@ exports.USDToken_jsonAbi = [
154
123
  "inputs": [
155
124
  {
156
125
  "internalType": "address",
157
- "name": "",
126
+ "name": "account_",
158
127
  "type": "address"
159
128
  }
160
129
  ],
@@ -169,6 +138,37 @@ exports.USDToken_jsonAbi = [
169
138
  "stateMutability": "view",
170
139
  "type": "function"
171
140
  },
141
+ {
142
+ "inputs": [
143
+ {
144
+ "internalType": "address",
145
+ "name": "account_",
146
+ "type": "address"
147
+ },
148
+ {
149
+ "internalType": "uint256",
150
+ "name": "amount_",
151
+ "type": "uint256"
152
+ }
153
+ ],
154
+ "name": "burn",
155
+ "outputs": [],
156
+ "stateMutability": "nonpayable",
157
+ "type": "function"
158
+ },
159
+ {
160
+ "inputs": [],
161
+ "name": "chainId",
162
+ "outputs": [
163
+ {
164
+ "internalType": "uint16",
165
+ "name": "",
166
+ "type": "uint16"
167
+ }
168
+ ],
169
+ "stateMutability": "view",
170
+ "type": "function"
171
+ },
172
172
  {
173
173
  "inputs": [],
174
174
  "name": "decimals",
@@ -186,12 +186,12 @@ exports.USDToken_jsonAbi = [
186
186
  "inputs": [
187
187
  {
188
188
  "internalType": "address",
189
- "name": "spender",
189
+ "name": "spender_",
190
190
  "type": "address"
191
191
  },
192
192
  {
193
193
  "internalType": "uint256",
194
- "name": "subtractedValue",
194
+ "name": "subtractedValue_",
195
195
  "type": "uint256"
196
196
  }
197
197
  ],
@@ -206,16 +206,59 @@ exports.USDToken_jsonAbi = [
206
206
  "stateMutability": "nonpayable",
207
207
  "type": "function"
208
208
  },
209
+ {
210
+ "inputs": [],
211
+ "name": "eip712Domain",
212
+ "outputs": [
213
+ {
214
+ "internalType": "bytes1",
215
+ "name": "domainFields",
216
+ "type": "bytes1"
217
+ },
218
+ {
219
+ "internalType": "string",
220
+ "name": "domainName",
221
+ "type": "string"
222
+ },
223
+ {
224
+ "internalType": "string",
225
+ "name": "domainVersion",
226
+ "type": "string"
227
+ },
228
+ {
229
+ "internalType": "uint256",
230
+ "name": "domainChainId",
231
+ "type": "uint256"
232
+ },
233
+ {
234
+ "internalType": "address",
235
+ "name": "domainVerifyingContract",
236
+ "type": "address"
237
+ },
238
+ {
239
+ "internalType": "bytes32",
240
+ "name": "domainSalt",
241
+ "type": "bytes32"
242
+ },
243
+ {
244
+ "internalType": "uint256[]",
245
+ "name": "domainExtensions",
246
+ "type": "uint256[]"
247
+ }
248
+ ],
249
+ "stateMutability": "view",
250
+ "type": "function"
251
+ },
209
252
  {
210
253
  "inputs": [
211
254
  {
212
255
  "internalType": "address",
213
- "name": "spender",
256
+ "name": "spender_",
214
257
  "type": "address"
215
258
  },
216
259
  {
217
260
  "internalType": "uint256",
218
- "name": "addedValue",
261
+ "name": "addedValue_",
219
262
  "type": "uint256"
220
263
  }
221
264
  ],
@@ -231,16 +274,64 @@ exports.USDToken_jsonAbi = [
231
274
  "type": "function"
232
275
  },
233
276
  {
234
- "inputs": [],
235
- "name": "isRenounced",
236
- "outputs": [
277
+ "inputs": [
237
278
  {
238
- "internalType": "bool",
239
- "name": "",
240
- "type": "bool"
279
+ "internalType": "string",
280
+ "name": "name_",
281
+ "type": "string"
282
+ },
283
+ {
284
+ "internalType": "string",
285
+ "name": "symbol_",
286
+ "type": "string"
287
+ },
288
+ {
289
+ "internalType": "uint8",
290
+ "name": "decimals_",
291
+ "type": "uint8"
292
+ },
293
+ {
294
+ "internalType": "uint64",
295
+ "name": "sequence_",
296
+ "type": "uint64"
297
+ },
298
+ {
299
+ "internalType": "address",
300
+ "name": "owner_",
301
+ "type": "address"
302
+ },
303
+ {
304
+ "internalType": "uint16",
305
+ "name": "chainId_",
306
+ "type": "uint16"
307
+ },
308
+ {
309
+ "internalType": "bytes32",
310
+ "name": "nativeContract_",
311
+ "type": "bytes32"
241
312
  }
242
313
  ],
243
- "stateMutability": "view",
314
+ "name": "initialize",
315
+ "outputs": [],
316
+ "stateMutability": "nonpayable",
317
+ "type": "function"
318
+ },
319
+ {
320
+ "inputs": [
321
+ {
322
+ "internalType": "address",
323
+ "name": "account_",
324
+ "type": "address"
325
+ },
326
+ {
327
+ "internalType": "uint256",
328
+ "name": "amount_",
329
+ "type": "uint256"
330
+ }
331
+ ],
332
+ "name": "mint",
333
+ "outputs": [],
334
+ "stateMutability": "nonpayable",
244
335
  "type": "function"
245
336
  },
246
337
  {
@@ -258,59 +349,88 @@ exports.USDToken_jsonAbi = [
258
349
  },
259
350
  {
260
351
  "inputs": [],
261
- "name": "owner",
352
+ "name": "nativeContract",
262
353
  "outputs": [
263
354
  {
264
- "internalType": "address",
355
+ "internalType": "bytes32",
265
356
  "name": "",
266
- "type": "address"
357
+ "type": "bytes32"
267
358
  }
268
359
  ],
269
360
  "stateMutability": "view",
270
361
  "type": "function"
271
362
  },
272
363
  {
273
- "inputs": [],
274
- "name": "renounceOwnership",
275
- "outputs": [],
276
- "stateMutability": "nonpayable",
277
- "type": "function"
278
- },
279
- {
280
- "inputs": [],
281
- "name": "renounced",
364
+ "inputs": [
365
+ {
366
+ "internalType": "address",
367
+ "name": "owner_",
368
+ "type": "address"
369
+ }
370
+ ],
371
+ "name": "nonces",
282
372
  "outputs": [
283
373
  {
284
- "internalType": "bool",
374
+ "internalType": "uint256",
285
375
  "name": "",
286
- "type": "bool"
376
+ "type": "uint256"
287
377
  }
288
378
  ],
289
379
  "stateMutability": "view",
290
380
  "type": "function"
291
381
  },
292
382
  {
293
- "inputs": [
383
+ "inputs": [],
384
+ "name": "owner",
385
+ "outputs": [
294
386
  {
295
- "internalType": "string",
296
- "name": "newName",
297
- "type": "string"
387
+ "internalType": "address",
388
+ "name": "",
389
+ "type": "address"
298
390
  }
299
391
  ],
300
- "name": "setName",
301
- "outputs": [],
302
- "stateMutability": "nonpayable",
392
+ "stateMutability": "view",
303
393
  "type": "function"
304
394
  },
305
395
  {
306
396
  "inputs": [
307
397
  {
308
- "internalType": "string",
309
- "name": "newSymbol",
310
- "type": "string"
398
+ "internalType": "address",
399
+ "name": "owner_",
400
+ "type": "address"
401
+ },
402
+ {
403
+ "internalType": "address",
404
+ "name": "spender_",
405
+ "type": "address"
406
+ },
407
+ {
408
+ "internalType": "uint256",
409
+ "name": "value_",
410
+ "type": "uint256"
411
+ },
412
+ {
413
+ "internalType": "uint256",
414
+ "name": "deadline_",
415
+ "type": "uint256"
416
+ },
417
+ {
418
+ "internalType": "uint8",
419
+ "name": "v_",
420
+ "type": "uint8"
421
+ },
422
+ {
423
+ "internalType": "bytes32",
424
+ "name": "r_",
425
+ "type": "bytes32"
426
+ },
427
+ {
428
+ "internalType": "bytes32",
429
+ "name": "s_",
430
+ "type": "bytes32"
311
431
  }
312
432
  ],
313
- "name": "setSymbol",
433
+ "name": "permit",
314
434
  "outputs": [],
315
435
  "stateMutability": "nonpayable",
316
436
  "type": "function"
@@ -328,19 +448,6 @@ exports.USDToken_jsonAbi = [
328
448
  "stateMutability": "view",
329
449
  "type": "function"
330
450
  },
331
- {
332
- "inputs": [],
333
- "name": "tokenImage",
334
- "outputs": [
335
- {
336
- "internalType": "string",
337
- "name": "",
338
- "type": "string"
339
- }
340
- ],
341
- "stateMutability": "pure",
342
- "type": "function"
343
- },
344
451
  {
345
452
  "inputs": [],
346
453
  "name": "totalSupply",
@@ -358,12 +465,12 @@ exports.USDToken_jsonAbi = [
358
465
  "inputs": [
359
466
  {
360
467
  "internalType": "address",
361
- "name": "to",
468
+ "name": "recipient_",
362
469
  "type": "address"
363
470
  },
364
471
  {
365
472
  "internalType": "uint256",
366
- "name": "amount",
473
+ "name": "amount_",
367
474
  "type": "uint256"
368
475
  }
369
476
  ],
@@ -382,17 +489,17 @@ exports.USDToken_jsonAbi = [
382
489
  "inputs": [
383
490
  {
384
491
  "internalType": "address",
385
- "name": "from",
492
+ "name": "sender_",
386
493
  "type": "address"
387
494
  },
388
495
  {
389
496
  "internalType": "address",
390
- "name": "to",
497
+ "name": "recipient_",
391
498
  "type": "address"
392
499
  },
393
500
  {
394
501
  "internalType": "uint256",
395
- "name": "amount",
502
+ "name": "amount_",
396
503
  "type": "uint256"
397
504
  }
398
505
  ],
@@ -406,10 +513,33 @@ exports.USDToken_jsonAbi = [
406
513
  ],
407
514
  "stateMutability": "nonpayable",
408
515
  "type": "function"
516
+ },
517
+ {
518
+ "inputs": [
519
+ {
520
+ "internalType": "string",
521
+ "name": "name_",
522
+ "type": "string"
523
+ },
524
+ {
525
+ "internalType": "string",
526
+ "name": "symbol_",
527
+ "type": "string"
528
+ },
529
+ {
530
+ "internalType": "uint64",
531
+ "name": "sequence_",
532
+ "type": "uint64"
533
+ }
534
+ ],
535
+ "name": "updateDetails",
536
+ "outputs": [],
537
+ "stateMutability": "nonpayable",
538
+ "type": "function"
409
539
  }
410
540
  ];
411
541
  /**
412
- * USDToken_json Contract Class
542
+ * TokenImplementation_json Contract Class
413
543
  *
414
544
  * Provides a class-based API similar to TypeChain for interacting with the contract.
415
545
  *
@@ -417,12 +547,12 @@ exports.USDToken_jsonAbi = [
417
547
  * ```typescript
418
548
  * import { createPublicClient, createWalletClient, http } from 'viem';
419
549
  * import { mainnet } from 'viem/chains';
420
- * import { USDToken_json } from 'USDToken_json';
550
+ * import { TokenImplementation_json } from 'TokenImplementation_json';
421
551
  *
422
552
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
423
553
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
424
554
  *
425
- * const contract = new USDToken_json('0x...', { publicClient, walletClient });
555
+ * const contract = new TokenImplementation_json('0x...', { publicClient, walletClient });
426
556
  *
427
557
  * // Read functions
428
558
  * const result = await contract.balanceOf('0x...');
@@ -440,13 +570,13 @@ exports.USDToken_jsonAbi = [
440
570
  * });
441
571
  * ```
442
572
  */
443
- class USDToken_json {
573
+ class TokenImplementation_json {
444
574
  constructor(address, clients) {
445
575
  this.contractAddress = address;
446
576
  this.publicClient = clients.publicClient;
447
577
  this.contract = (0, viem_1.getContract)({
448
578
  address,
449
- abi: exports.USDToken_jsonAbi,
579
+ abi: exports.TokenImplementation_jsonAbi,
450
580
  client: {
451
581
  public: clients.publicClient,
452
582
  wallet: clients.walletClient,
@@ -465,19 +595,33 @@ class USDToken_json {
465
595
  getContract() {
466
596
  return this.contract;
467
597
  }
598
+ /**
599
+ * DOMAIN_SEPARATOR
600
+ * view
601
+ */
602
+ async DOMAIN_SEPARATOR() {
603
+ return this.contract.read.DOMAIN_SEPARATOR();
604
+ }
468
605
  /**
469
606
  * allowance
470
607
  * view
471
608
  */
472
- async allowance(arg0, arg1) {
473
- return this.contract.read.allowance([arg0, arg1]);
609
+ async allowance(owner_, spender_) {
610
+ return this.contract.read.allowance([owner_, spender_]);
474
611
  }
475
612
  /**
476
613
  * balanceOf
477
614
  * view
478
615
  */
479
- async balanceOf(arg0) {
480
- return this.contract.read.balanceOf([arg0]);
616
+ async balanceOf(account_) {
617
+ return this.contract.read.balanceOf([account_]);
618
+ }
619
+ /**
620
+ * chainId
621
+ * view
622
+ */
623
+ async chainId() {
624
+ return this.contract.read.chainId();
481
625
  }
482
626
  /**
483
627
  * decimals
@@ -487,11 +631,11 @@ class USDToken_json {
487
631
  return this.contract.read.decimals();
488
632
  }
489
633
  /**
490
- * isRenounced
634
+ * eip712Domain
491
635
  * view
492
636
  */
493
- async isRenounced() {
494
- return this.contract.read.isRenounced();
637
+ async eip712Domain() {
638
+ return this.contract.read.eip712Domain();
495
639
  }
496
640
  /**
497
641
  * name
@@ -501,32 +645,32 @@ class USDToken_json {
501
645
  return this.contract.read.name();
502
646
  }
503
647
  /**
504
- * owner
648
+ * nativeContract
505
649
  * view
506
650
  */
507
- async owner() {
508
- return this.contract.read.owner();
651
+ async nativeContract() {
652
+ return this.contract.read.nativeContract();
509
653
  }
510
654
  /**
511
- * renounced
655
+ * nonces
512
656
  * view
513
657
  */
514
- async renounced() {
515
- return this.contract.read.renounced();
658
+ async nonces(owner_) {
659
+ return this.contract.read.nonces([owner_]);
516
660
  }
517
661
  /**
518
- * symbol
662
+ * owner
519
663
  * view
520
664
  */
521
- async symbol() {
522
- return this.contract.read.symbol();
665
+ async owner() {
666
+ return this.contract.read.owner();
523
667
  }
524
668
  /**
525
- * tokenImage
526
- * pure
669
+ * symbol
670
+ * view
527
671
  */
528
- async tokenImage() {
529
- return this.contract.read.tokenImage();
672
+ async symbol() {
673
+ return this.contract.read.symbol();
530
674
  }
531
675
  /**
532
676
  * totalSupply
@@ -540,88 +684,110 @@ class USDToken_json {
540
684
  * nonpayable
541
685
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
542
686
  */
543
- async approve(spender, amount, options) {
687
+ async approve(spender_, amount_, options) {
688
+ if (!this.contract.write) {
689
+ throw new Error('Wallet client is required for write operations');
690
+ }
691
+ return this.contract.write.approve([spender_, amount_], options);
692
+ }
693
+ /**
694
+ * burn
695
+ * nonpayable
696
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
697
+ */
698
+ async burn(account_, amount_, options) {
544
699
  if (!this.contract.write) {
545
700
  throw new Error('Wallet client is required for write operations');
546
701
  }
547
- return this.contract.write.approve([spender, amount], options);
702
+ return this.contract.write.burn([account_, amount_], options);
548
703
  }
549
704
  /**
550
705
  * decreaseAllowance
551
706
  * nonpayable
552
707
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
553
708
  */
554
- async decreaseAllowance(spender, subtractedValue, options) {
709
+ async decreaseAllowance(spender_, subtractedValue_, options) {
555
710
  if (!this.contract.write) {
556
711
  throw new Error('Wallet client is required for write operations');
557
712
  }
558
- return this.contract.write.decreaseAllowance([spender, subtractedValue], options);
713
+ return this.contract.write.decreaseAllowance([spender_, subtractedValue_], options);
559
714
  }
560
715
  /**
561
716
  * increaseAllowance
562
717
  * nonpayable
563
718
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
564
719
  */
565
- async increaseAllowance(spender, addedValue, options) {
720
+ async increaseAllowance(spender_, addedValue_, options) {
566
721
  if (!this.contract.write) {
567
722
  throw new Error('Wallet client is required for write operations');
568
723
  }
569
- return this.contract.write.increaseAllowance([spender, addedValue], options);
724
+ return this.contract.write.increaseAllowance([spender_, addedValue_], options);
570
725
  }
571
726
  /**
572
- * renounceOwnership
727
+ * initialize
573
728
  * nonpayable
574
729
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
575
730
  */
576
- async renounceOwnership(options) {
731
+ async initialize(name_, symbol_, decimals_, sequence_, owner_, chainId_, nativeContract_, options) {
577
732
  if (!this.contract.write) {
578
733
  throw new Error('Wallet client is required for write operations');
579
734
  }
580
- return this.contract.write.renounceOwnership(options);
735
+ return this.contract.write.initialize([name_, symbol_, decimals_, sequence_, owner_, chainId_, nativeContract_], options);
581
736
  }
582
737
  /**
583
- * setName
738
+ * mint
584
739
  * nonpayable
585
740
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
586
741
  */
587
- async setName(newName, options) {
742
+ async mint(account_, amount_, options) {
588
743
  if (!this.contract.write) {
589
744
  throw new Error('Wallet client is required for write operations');
590
745
  }
591
- return this.contract.write.setName([newName], options);
746
+ return this.contract.write.mint([account_, amount_], options);
592
747
  }
593
748
  /**
594
- * setSymbol
749
+ * permit
595
750
  * nonpayable
596
751
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
597
752
  */
598
- async setSymbol(newSymbol, options) {
753
+ async permit(owner_, spender_, value_, deadline_, v_, r_, s_, options) {
599
754
  if (!this.contract.write) {
600
755
  throw new Error('Wallet client is required for write operations');
601
756
  }
602
- return this.contract.write.setSymbol([newSymbol], options);
757
+ return this.contract.write.permit([owner_, spender_, value_, deadline_, v_, r_, s_], options);
603
758
  }
604
759
  /**
605
760
  * transfer
606
761
  * nonpayable
607
762
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
608
763
  */
609
- async transfer(to, amount, options) {
764
+ async transfer(recipient_, amount_, options) {
610
765
  if (!this.contract.write) {
611
766
  throw new Error('Wallet client is required for write operations');
612
767
  }
613
- return this.contract.write.transfer([to, amount], options);
768
+ return this.contract.write.transfer([recipient_, amount_], options);
614
769
  }
615
770
  /**
616
771
  * transferFrom
617
772
  * nonpayable
618
773
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
619
774
  */
620
- async transferFrom(from, to, amount, options) {
775
+ async transferFrom(sender_, recipient_, amount_, options) {
621
776
  if (!this.contract.write) {
622
777
  throw new Error('Wallet client is required for write operations');
623
778
  }
624
- return this.contract.write.transferFrom([from, to, amount], options);
779
+ return this.contract.write.transferFrom([sender_, recipient_, amount_], options);
780
+ }
781
+ /**
782
+ * updateDetails
783
+ * nonpayable
784
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
785
+ */
786
+ async updateDetails(name_, symbol_, sequence_, options) {
787
+ if (!this.contract.write) {
788
+ throw new Error('Wallet client is required for write operations');
789
+ }
790
+ return this.contract.write.updateDetails([name_, symbol_, sequence_], options);
625
791
  }
626
792
  /**
627
793
  * Simulate contract write operations (dry-run without sending transaction)
@@ -642,64 +808,80 @@ class USDToken_json {
642
808
  * Returns gas estimate and result without sending transaction
643
809
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
644
810
  */
645
- async approve(spender, amount, options) {
646
- return contract.simulate.approve([spender, amount], options);
811
+ async approve(spender_, amount_, options) {
812
+ return contract.simulate.approve([spender_, amount_], options);
813
+ },
814
+ /**
815
+ * Simulate burn
816
+ * Returns gas estimate and result without sending transaction
817
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
818
+ */
819
+ async burn(account_, amount_, options) {
820
+ return contract.simulate.burn([account_, amount_], options);
647
821
  },
648
822
  /**
649
823
  * Simulate decreaseAllowance
650
824
  * Returns gas estimate and result without sending transaction
651
825
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
652
826
  */
653
- async decreaseAllowance(spender, subtractedValue, options) {
654
- return contract.simulate.decreaseAllowance([spender, subtractedValue], options);
827
+ async decreaseAllowance(spender_, subtractedValue_, options) {
828
+ return contract.simulate.decreaseAllowance([spender_, subtractedValue_], options);
655
829
  },
656
830
  /**
657
831
  * Simulate increaseAllowance
658
832
  * Returns gas estimate and result without sending transaction
659
833
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
660
834
  */
661
- async increaseAllowance(spender, addedValue, options) {
662
- return contract.simulate.increaseAllowance([spender, addedValue], options);
835
+ async increaseAllowance(spender_, addedValue_, options) {
836
+ return contract.simulate.increaseAllowance([spender_, addedValue_], options);
663
837
  },
664
838
  /**
665
- * Simulate renounceOwnership
839
+ * Simulate initialize
666
840
  * Returns gas estimate and result without sending transaction
667
841
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
668
842
  */
669
- async renounceOwnership(options) {
670
- return contract.simulate.renounceOwnership(options);
843
+ async initialize(name_, symbol_, decimals_, sequence_, owner_, chainId_, nativeContract_, options) {
844
+ return contract.simulate.initialize([name_, symbol_, decimals_, sequence_, owner_, chainId_, nativeContract_], options);
671
845
  },
672
846
  /**
673
- * Simulate setName
847
+ * Simulate mint
674
848
  * Returns gas estimate and result without sending transaction
675
849
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
676
850
  */
677
- async setName(newName, options) {
678
- return contract.simulate.setName([newName], options);
851
+ async mint(account_, amount_, options) {
852
+ return contract.simulate.mint([account_, amount_], options);
679
853
  },
680
854
  /**
681
- * Simulate setSymbol
855
+ * Simulate permit
682
856
  * Returns gas estimate and result without sending transaction
683
857
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
684
858
  */
685
- async setSymbol(newSymbol, options) {
686
- return contract.simulate.setSymbol([newSymbol], options);
859
+ async permit(owner_, spender_, value_, deadline_, v_, r_, s_, options) {
860
+ return contract.simulate.permit([owner_, spender_, value_, deadline_, v_, r_, s_], options);
687
861
  },
688
862
  /**
689
863
  * Simulate transfer
690
864
  * Returns gas estimate and result without sending transaction
691
865
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
692
866
  */
693
- async transfer(to, amount, options) {
694
- return contract.simulate.transfer([to, amount], options);
867
+ async transfer(recipient_, amount_, options) {
868
+ return contract.simulate.transfer([recipient_, amount_], options);
695
869
  },
696
870
  /**
697
871
  * Simulate transferFrom
698
872
  * Returns gas estimate and result without sending transaction
699
873
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
700
874
  */
701
- async transferFrom(from, to, amount, options) {
702
- return contract.simulate.transferFrom([from, to, amount], options);
875
+ async transferFrom(sender_, recipient_, amount_, options) {
876
+ return contract.simulate.transferFrom([sender_, recipient_, amount_], options);
877
+ },
878
+ /**
879
+ * Simulate updateDetails
880
+ * Returns gas estimate and result without sending transaction
881
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
882
+ */
883
+ async updateDetails(name_, symbol_, sequence_, options) {
884
+ return contract.simulate.updateDetails([name_, symbol_, sequence_], options);
703
885
  }
704
886
  };
705
887
  }
@@ -726,7 +908,7 @@ class USDToken_json {
726
908
  Approval: (callback, filter) => {
727
909
  return this.publicClient.watchContractEvent({
728
910
  address: this.contractAddress,
729
- abi: exports.USDToken_jsonAbi,
911
+ abi: exports.TokenImplementation_jsonAbi,
730
912
  eventName: 'Approval',
731
913
  args: filter,
732
914
  onLogs: (logs) => {
@@ -736,61 +918,6 @@ class USDToken_json {
736
918
  },
737
919
  });
738
920
  },
739
- /**
740
- * Watch NameChanged events
741
- * @param callback Function to call when event is emitted
742
- * @param filter Optional filter for indexed parameters
743
- * @returns Unwatch function to stop listening
744
- */
745
- NameChanged: (callback) => {
746
- return this.publicClient.watchContractEvent({
747
- address: this.contractAddress,
748
- abi: exports.USDToken_jsonAbi,
749
- eventName: 'NameChanged',
750
- onLogs: (logs) => {
751
- logs.forEach((log) => {
752
- callback(log.args);
753
- });
754
- },
755
- });
756
- },
757
- /**
758
- * Watch OwnershipRenounced events
759
- * @param callback Function to call when event is emitted
760
- * @param filter Optional filter for indexed parameters
761
- * @returns Unwatch function to stop listening
762
- */
763
- OwnershipRenounced: (callback, filter) => {
764
- return this.publicClient.watchContractEvent({
765
- address: this.contractAddress,
766
- abi: exports.USDToken_jsonAbi,
767
- eventName: 'OwnershipRenounced',
768
- args: filter,
769
- onLogs: (logs) => {
770
- logs.forEach((log) => {
771
- callback(log.args);
772
- });
773
- },
774
- });
775
- },
776
- /**
777
- * Watch SymbolChanged events
778
- * @param callback Function to call when event is emitted
779
- * @param filter Optional filter for indexed parameters
780
- * @returns Unwatch function to stop listening
781
- */
782
- SymbolChanged: (callback) => {
783
- return this.publicClient.watchContractEvent({
784
- address: this.contractAddress,
785
- abi: exports.USDToken_jsonAbi,
786
- eventName: 'SymbolChanged',
787
- onLogs: (logs) => {
788
- logs.forEach((log) => {
789
- callback(log.args);
790
- });
791
- },
792
- });
793
- },
794
921
  /**
795
922
  * Watch Transfer events
796
923
  * @param callback Function to call when event is emitted
@@ -800,7 +927,7 @@ class USDToken_json {
800
927
  Transfer: (callback, filter) => {
801
928
  return this.publicClient.watchContractEvent({
802
929
  address: this.contractAddress,
803
- abi: exports.USDToken_jsonAbi,
930
+ abi: exports.TokenImplementation_jsonAbi,
804
931
  eventName: 'Transfer',
805
932
  args: filter,
806
933
  onLogs: (logs) => {
@@ -813,4 +940,4 @@ class USDToken_json {
813
940
  };
814
941
  }
815
942
  }
816
- exports.USDToken_json = USDToken_json;
943
+ exports.TokenImplementation_json = TokenImplementation_json;