@gitmyabi/usdt 1.0.5 → 1.0.7

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,13 +1,44 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TokenImplementation_json = exports.TokenImplementation_jsonAbi = void 0;
3
+ exports.MyToken_json = exports.MyToken_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * TokenImplementation_json ABI
6
+ * MyToken_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.TokenImplementation_jsonAbi = [
10
+ exports.MyToken_jsonAbi = [
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "string",
15
+ "name": "_name",
16
+ "type": "string"
17
+ },
18
+ {
19
+ "internalType": "string",
20
+ "name": "_symbol",
21
+ "type": "string"
22
+ },
23
+ {
24
+ "internalType": "uint256",
25
+ "name": "_cap",
26
+ "type": "uint256"
27
+ },
28
+ {
29
+ "internalType": "uint256",
30
+ "name": "_initialSupply",
31
+ "type": "uint256"
32
+ },
33
+ {
34
+ "internalType": "string",
35
+ "name": "_logoURI",
36
+ "type": "string"
37
+ }
38
+ ],
39
+ "stateMutability": "nonpayable",
40
+ "type": "constructor"
41
+ },
11
42
  {
12
43
  "anonymous": false,
13
44
  "inputs": [
@@ -33,6 +64,25 @@ exports.TokenImplementation_jsonAbi = [
33
64
  "name": "Approval",
34
65
  "type": "event"
35
66
  },
67
+ {
68
+ "anonymous": false,
69
+ "inputs": [
70
+ {
71
+ "indexed": true,
72
+ "internalType": "address",
73
+ "name": "previousOwner",
74
+ "type": "address"
75
+ },
76
+ {
77
+ "indexed": true,
78
+ "internalType": "address",
79
+ "name": "newOwner",
80
+ "type": "address"
81
+ }
82
+ ],
83
+ "name": "OwnershipTransferred",
84
+ "type": "event"
85
+ },
36
86
  {
37
87
  "anonymous": false,
38
88
  "inputs": [
@@ -58,29 +108,16 @@ exports.TokenImplementation_jsonAbi = [
58
108
  "name": "Transfer",
59
109
  "type": "event"
60
110
  },
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
- },
74
111
  {
75
112
  "inputs": [
76
113
  {
77
114
  "internalType": "address",
78
- "name": "owner_",
115
+ "name": "",
79
116
  "type": "address"
80
117
  },
81
118
  {
82
119
  "internalType": "address",
83
- "name": "spender_",
120
+ "name": "",
84
121
  "type": "address"
85
122
  }
86
123
  ],
@@ -99,12 +136,12 @@ exports.TokenImplementation_jsonAbi = [
99
136
  "inputs": [
100
137
  {
101
138
  "internalType": "address",
102
- "name": "spender_",
139
+ "name": "spender",
103
140
  "type": "address"
104
141
  },
105
142
  {
106
143
  "internalType": "uint256",
107
- "name": "amount_",
144
+ "name": "value",
108
145
  "type": "uint256"
109
146
  }
110
147
  ],
@@ -123,7 +160,7 @@ exports.TokenImplementation_jsonAbi = [
123
160
  "inputs": [
124
161
  {
125
162
  "internalType": "address",
126
- "name": "account_",
163
+ "name": "",
127
164
  "type": "address"
128
165
  }
129
166
  ],
@@ -138,32 +175,14 @@ exports.TokenImplementation_jsonAbi = [
138
175
  "stateMutability": "view",
139
176
  "type": "function"
140
177
  },
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
178
  {
160
179
  "inputs": [],
161
- "name": "chainId",
180
+ "name": "cap",
162
181
  "outputs": [
163
182
  {
164
- "internalType": "uint16",
183
+ "internalType": "uint256",
165
184
  "name": "",
166
- "type": "uint16"
185
+ "type": "uint256"
167
186
  }
168
187
  ],
169
188
  "stateMutability": "view",
@@ -182,150 +201,29 @@ exports.TokenImplementation_jsonAbi = [
182
201
  "stateMutability": "view",
183
202
  "type": "function"
184
203
  },
185
- {
186
- "inputs": [
187
- {
188
- "internalType": "address",
189
- "name": "spender_",
190
- "type": "address"
191
- },
192
- {
193
- "internalType": "uint256",
194
- "name": "subtractedValue_",
195
- "type": "uint256"
196
- }
197
- ],
198
- "name": "decreaseAllowance",
199
- "outputs": [
200
- {
201
- "internalType": "bool",
202
- "name": "",
203
- "type": "bool"
204
- }
205
- ],
206
- "stateMutability": "nonpayable",
207
- "type": "function"
208
- },
209
204
  {
210
205
  "inputs": [],
211
- "name": "eip712Domain",
206
+ "name": "logoURI",
212
207
  "outputs": [
213
- {
214
- "internalType": "bytes1",
215
- "name": "domainFields",
216
- "type": "bytes1"
217
- },
218
- {
219
- "internalType": "string",
220
- "name": "domainName",
221
- "type": "string"
222
- },
223
208
  {
224
209
  "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
- },
252
- {
253
- "inputs": [
254
- {
255
- "internalType": "address",
256
- "name": "spender_",
257
- "type": "address"
258
- },
259
- {
260
- "internalType": "uint256",
261
- "name": "addedValue_",
262
- "type": "uint256"
263
- }
264
- ],
265
- "name": "increaseAllowance",
266
- "outputs": [
267
- {
268
- "internalType": "bool",
269
210
  "name": "",
270
- "type": "bool"
271
- }
272
- ],
273
- "stateMutability": "nonpayable",
274
- "type": "function"
275
- },
276
- {
277
- "inputs": [
278
- {
279
- "internalType": "string",
280
- "name": "name_",
281
211
  "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"
312
212
  }
313
213
  ],
314
- "name": "initialize",
315
- "outputs": [],
316
- "stateMutability": "nonpayable",
214
+ "stateMutability": "view",
317
215
  "type": "function"
318
216
  },
319
217
  {
320
218
  "inputs": [
321
219
  {
322
220
  "internalType": "address",
323
- "name": "account_",
221
+ "name": "to",
324
222
  "type": "address"
325
223
  },
326
224
  {
327
225
  "internalType": "uint256",
328
- "name": "amount_",
226
+ "name": "amount",
329
227
  "type": "uint256"
330
228
  }
331
229
  ],
@@ -349,31 +247,12 @@ exports.TokenImplementation_jsonAbi = [
349
247
  },
350
248
  {
351
249
  "inputs": [],
352
- "name": "nativeContract",
250
+ "name": "owner",
353
251
  "outputs": [
354
- {
355
- "internalType": "bytes32",
356
- "name": "",
357
- "type": "bytes32"
358
- }
359
- ],
360
- "stateMutability": "view",
361
- "type": "function"
362
- },
363
- {
364
- "inputs": [
365
252
  {
366
253
  "internalType": "address",
367
- "name": "owner_",
368
- "type": "address"
369
- }
370
- ],
371
- "name": "nonces",
372
- "outputs": [
373
- {
374
- "internalType": "uint256",
375
254
  "name": "",
376
- "type": "uint256"
255
+ "type": "address"
377
256
  }
378
257
  ],
379
258
  "stateMutability": "view",
@@ -381,56 +260,20 @@ exports.TokenImplementation_jsonAbi = [
381
260
  },
382
261
  {
383
262
  "inputs": [],
384
- "name": "owner",
385
- "outputs": [
386
- {
387
- "internalType": "address",
388
- "name": "",
389
- "type": "address"
390
- }
391
- ],
392
- "stateMutability": "view",
263
+ "name": "renounceOwnership",
264
+ "outputs": [],
265
+ "stateMutability": "nonpayable",
393
266
  "type": "function"
394
267
  },
395
268
  {
396
269
  "inputs": [
397
270
  {
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"
271
+ "internalType": "string",
272
+ "name": "_logoURI",
273
+ "type": "string"
431
274
  }
432
275
  ],
433
- "name": "permit",
276
+ "name": "setLogoURI",
434
277
  "outputs": [],
435
278
  "stateMutability": "nonpayable",
436
279
  "type": "function"
@@ -465,12 +308,12 @@ exports.TokenImplementation_jsonAbi = [
465
308
  "inputs": [
466
309
  {
467
310
  "internalType": "address",
468
- "name": "recipient_",
311
+ "name": "to",
469
312
  "type": "address"
470
313
  },
471
314
  {
472
315
  "internalType": "uint256",
473
- "name": "amount_",
316
+ "name": "value",
474
317
  "type": "uint256"
475
318
  }
476
319
  ],
@@ -489,17 +332,17 @@ exports.TokenImplementation_jsonAbi = [
489
332
  "inputs": [
490
333
  {
491
334
  "internalType": "address",
492
- "name": "sender_",
335
+ "name": "from",
493
336
  "type": "address"
494
337
  },
495
338
  {
496
339
  "internalType": "address",
497
- "name": "recipient_",
340
+ "name": "to",
498
341
  "type": "address"
499
342
  },
500
343
  {
501
344
  "internalType": "uint256",
502
- "name": "amount_",
345
+ "name": "value",
503
346
  "type": "uint256"
504
347
  }
505
348
  ],
@@ -517,29 +360,19 @@ exports.TokenImplementation_jsonAbi = [
517
360
  {
518
361
  "inputs": [
519
362
  {
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"
363
+ "internalType": "address",
364
+ "name": "newOwner",
365
+ "type": "address"
533
366
  }
534
367
  ],
535
- "name": "updateDetails",
368
+ "name": "transferOwnership",
536
369
  "outputs": [],
537
370
  "stateMutability": "nonpayable",
538
371
  "type": "function"
539
372
  }
540
373
  ];
541
374
  /**
542
- * TokenImplementation_json Contract Class
375
+ * MyToken_json Contract Class
543
376
  *
544
377
  * Provides a class-based API similar to TypeChain for interacting with the contract.
545
378
  *
@@ -547,12 +380,12 @@ exports.TokenImplementation_jsonAbi = [
547
380
  * ```typescript
548
381
  * import { createPublicClient, createWalletClient, http } from 'viem';
549
382
  * import { mainnet } from 'viem/chains';
550
- * import { TokenImplementation_json } from 'TokenImplementation_json';
383
+ * import { MyToken_json } from 'MyToken_json';
551
384
  *
552
385
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
553
386
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
554
387
  *
555
- * const contract = new TokenImplementation_json('0x...', { publicClient, walletClient });
388
+ * const contract = new MyToken_json('0x...', { publicClient, walletClient });
556
389
  *
557
390
  * // Read functions
558
391
  * const result = await contract.balanceOf('0x...');
@@ -570,13 +403,13 @@ exports.TokenImplementation_jsonAbi = [
570
403
  * });
571
404
  * ```
572
405
  */
573
- class TokenImplementation_json {
406
+ class MyToken_json {
574
407
  constructor(address, clients) {
575
408
  this.contractAddress = address;
576
409
  this.publicClient = clients.publicClient;
577
410
  this.contract = (0, viem_1.getContract)({
578
411
  address,
579
- abi: exports.TokenImplementation_jsonAbi,
412
+ abi: exports.MyToken_jsonAbi,
580
413
  client: {
581
414
  public: clients.publicClient,
582
415
  wallet: clients.walletClient,
@@ -595,33 +428,26 @@ class TokenImplementation_json {
595
428
  getContract() {
596
429
  return this.contract;
597
430
  }
598
- /**
599
- * DOMAIN_SEPARATOR
600
- * view
601
- */
602
- async DOMAIN_SEPARATOR() {
603
- return this.contract.read.DOMAIN_SEPARATOR();
604
- }
605
431
  /**
606
432
  * allowance
607
433
  * view
608
434
  */
609
- async allowance(owner_, spender_) {
610
- return this.contract.read.allowance([owner_, spender_]);
435
+ async allowance(arg0, arg1) {
436
+ return this.contract.read.allowance([arg0, arg1]);
611
437
  }
612
438
  /**
613
439
  * balanceOf
614
440
  * view
615
441
  */
616
- async balanceOf(account_) {
617
- return this.contract.read.balanceOf([account_]);
442
+ async balanceOf(arg0) {
443
+ return this.contract.read.balanceOf([arg0]);
618
444
  }
619
445
  /**
620
- * chainId
446
+ * cap
621
447
  * view
622
448
  */
623
- async chainId() {
624
- return this.contract.read.chainId();
449
+ async cap() {
450
+ return this.contract.read.cap();
625
451
  }
626
452
  /**
627
453
  * decimals
@@ -631,11 +457,11 @@ class TokenImplementation_json {
631
457
  return this.contract.read.decimals();
632
458
  }
633
459
  /**
634
- * eip712Domain
460
+ * logoURI
635
461
  * view
636
462
  */
637
- async eip712Domain() {
638
- return this.contract.read.eip712Domain();
463
+ async logoURI() {
464
+ return this.contract.read.logoURI();
639
465
  }
640
466
  /**
641
467
  * name
@@ -644,20 +470,6 @@ class TokenImplementation_json {
644
470
  async name() {
645
471
  return this.contract.read.name();
646
472
  }
647
- /**
648
- * nativeContract
649
- * view
650
- */
651
- async nativeContract() {
652
- return this.contract.read.nativeContract();
653
- }
654
- /**
655
- * nonces
656
- * view
657
- */
658
- async nonces(owner_) {
659
- return this.contract.read.nonces([owner_]);
660
- }
661
473
  /**
662
474
  * owner
663
475
  * view
@@ -684,110 +496,77 @@ class TokenImplementation_json {
684
496
  * nonpayable
685
497
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
686
498
  */
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) {
499
+ async approve(spender, value, options) {
699
500
  if (!this.contract.write) {
700
501
  throw new Error('Wallet client is required for write operations');
701
502
  }
702
- return this.contract.write.burn([account_, amount_], options);
503
+ return this.contract.write.approve([spender, value], options);
703
504
  }
704
505
  /**
705
- * decreaseAllowance
706
- * nonpayable
707
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
708
- */
709
- async decreaseAllowance(spender_, subtractedValue_, options) {
710
- if (!this.contract.write) {
711
- throw new Error('Wallet client is required for write operations');
712
- }
713
- return this.contract.write.decreaseAllowance([spender_, subtractedValue_], options);
714
- }
715
- /**
716
- * increaseAllowance
717
- * nonpayable
718
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
719
- */
720
- async increaseAllowance(spender_, addedValue_, options) {
721
- if (!this.contract.write) {
722
- throw new Error('Wallet client is required for write operations');
723
- }
724
- return this.contract.write.increaseAllowance([spender_, addedValue_], options);
725
- }
726
- /**
727
- * initialize
506
+ * mint
728
507
  * nonpayable
729
508
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
730
509
  */
731
- async initialize(name_, symbol_, decimals_, sequence_, owner_, chainId_, nativeContract_, options) {
510
+ async mint(to, amount, options) {
732
511
  if (!this.contract.write) {
733
512
  throw new Error('Wallet client is required for write operations');
734
513
  }
735
- return this.contract.write.initialize([name_, symbol_, decimals_, sequence_, owner_, chainId_, nativeContract_], options);
514
+ return this.contract.write.mint([to, amount], options);
736
515
  }
737
516
  /**
738
- * mint
517
+ * renounceOwnership
739
518
  * nonpayable
740
519
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
741
520
  */
742
- async mint(account_, amount_, options) {
521
+ async renounceOwnership(options) {
743
522
  if (!this.contract.write) {
744
523
  throw new Error('Wallet client is required for write operations');
745
524
  }
746
- return this.contract.write.mint([account_, amount_], options);
525
+ return this.contract.write.renounceOwnership(options);
747
526
  }
748
527
  /**
749
- * permit
528
+ * setLogoURI
750
529
  * nonpayable
751
530
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
752
531
  */
753
- async permit(owner_, spender_, value_, deadline_, v_, r_, s_, options) {
532
+ async setLogoURI(_logoURI, options) {
754
533
  if (!this.contract.write) {
755
534
  throw new Error('Wallet client is required for write operations');
756
535
  }
757
- return this.contract.write.permit([owner_, spender_, value_, deadline_, v_, r_, s_], options);
536
+ return this.contract.write.setLogoURI([_logoURI], options);
758
537
  }
759
538
  /**
760
539
  * transfer
761
540
  * nonpayable
762
541
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
763
542
  */
764
- async transfer(recipient_, amount_, options) {
543
+ async transfer(to, value, options) {
765
544
  if (!this.contract.write) {
766
545
  throw new Error('Wallet client is required for write operations');
767
546
  }
768
- return this.contract.write.transfer([recipient_, amount_], options);
547
+ return this.contract.write.transfer([to, value], options);
769
548
  }
770
549
  /**
771
550
  * transferFrom
772
551
  * nonpayable
773
552
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
774
553
  */
775
- async transferFrom(sender_, recipient_, amount_, options) {
554
+ async transferFrom(from, to, value, options) {
776
555
  if (!this.contract.write) {
777
556
  throw new Error('Wallet client is required for write operations');
778
557
  }
779
- return this.contract.write.transferFrom([sender_, recipient_, amount_], options);
558
+ return this.contract.write.transferFrom([from, to, value], options);
780
559
  }
781
560
  /**
782
- * updateDetails
561
+ * transferOwnership
783
562
  * nonpayable
784
563
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
785
564
  */
786
- async updateDetails(name_, symbol_, sequence_, options) {
565
+ async transferOwnership(newOwner, options) {
787
566
  if (!this.contract.write) {
788
567
  throw new Error('Wallet client is required for write operations');
789
568
  }
790
- return this.contract.write.updateDetails([name_, symbol_, sequence_], options);
569
+ return this.contract.write.transferOwnership([newOwner], options);
791
570
  }
792
571
  /**
793
572
  * Simulate contract write operations (dry-run without sending transaction)
@@ -808,80 +587,56 @@ class TokenImplementation_json {
808
587
  * Returns gas estimate and result without sending transaction
809
588
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
810
589
  */
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);
590
+ async approve(spender, value, options) {
591
+ return contract.simulate.approve([spender, value], options);
821
592
  },
822
593
  /**
823
- * Simulate decreaseAllowance
824
- * Returns gas estimate and result without sending transaction
825
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
826
- */
827
- async decreaseAllowance(spender_, subtractedValue_, options) {
828
- return contract.simulate.decreaseAllowance([spender_, subtractedValue_], options);
829
- },
830
- /**
831
- * Simulate increaseAllowance
832
- * Returns gas estimate and result without sending transaction
833
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
834
- */
835
- async increaseAllowance(spender_, addedValue_, options) {
836
- return contract.simulate.increaseAllowance([spender_, addedValue_], options);
837
- },
838
- /**
839
- * Simulate initialize
594
+ * Simulate mint
840
595
  * Returns gas estimate and result without sending transaction
841
596
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
842
597
  */
843
- async initialize(name_, symbol_, decimals_, sequence_, owner_, chainId_, nativeContract_, options) {
844
- return contract.simulate.initialize([name_, symbol_, decimals_, sequence_, owner_, chainId_, nativeContract_], options);
598
+ async mint(to, amount, options) {
599
+ return contract.simulate.mint([to, amount], options);
845
600
  },
846
601
  /**
847
- * Simulate mint
602
+ * Simulate renounceOwnership
848
603
  * Returns gas estimate and result without sending transaction
849
604
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
850
605
  */
851
- async mint(account_, amount_, options) {
852
- return contract.simulate.mint([account_, amount_], options);
606
+ async renounceOwnership(options) {
607
+ return contract.simulate.renounceOwnership(options);
853
608
  },
854
609
  /**
855
- * Simulate permit
610
+ * Simulate setLogoURI
856
611
  * Returns gas estimate and result without sending transaction
857
612
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
858
613
  */
859
- async permit(owner_, spender_, value_, deadline_, v_, r_, s_, options) {
860
- return contract.simulate.permit([owner_, spender_, value_, deadline_, v_, r_, s_], options);
614
+ async setLogoURI(_logoURI, options) {
615
+ return contract.simulate.setLogoURI([_logoURI], options);
861
616
  },
862
617
  /**
863
618
  * Simulate transfer
864
619
  * Returns gas estimate and result without sending transaction
865
620
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
866
621
  */
867
- async transfer(recipient_, amount_, options) {
868
- return contract.simulate.transfer([recipient_, amount_], options);
622
+ async transfer(to, value, options) {
623
+ return contract.simulate.transfer([to, value], options);
869
624
  },
870
625
  /**
871
626
  * Simulate transferFrom
872
627
  * Returns gas estimate and result without sending transaction
873
628
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
874
629
  */
875
- async transferFrom(sender_, recipient_, amount_, options) {
876
- return contract.simulate.transferFrom([sender_, recipient_, amount_], options);
630
+ async transferFrom(from, to, value, options) {
631
+ return contract.simulate.transferFrom([from, to, value], options);
877
632
  },
878
633
  /**
879
- * Simulate updateDetails
634
+ * Simulate transferOwnership
880
635
  * Returns gas estimate and result without sending transaction
881
636
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
882
637
  */
883
- async updateDetails(name_, symbol_, sequence_, options) {
884
- return contract.simulate.updateDetails([name_, symbol_, sequence_], options);
638
+ async transferOwnership(newOwner, options) {
639
+ return contract.simulate.transferOwnership([newOwner], options);
885
640
  }
886
641
  };
887
642
  }
@@ -908,7 +663,7 @@ class TokenImplementation_json {
908
663
  Approval: (callback, filter) => {
909
664
  return this.publicClient.watchContractEvent({
910
665
  address: this.contractAddress,
911
- abi: exports.TokenImplementation_jsonAbi,
666
+ abi: exports.MyToken_jsonAbi,
912
667
  eventName: 'Approval',
913
668
  args: filter,
914
669
  onLogs: (logs) => {
@@ -918,6 +673,25 @@ class TokenImplementation_json {
918
673
  },
919
674
  });
920
675
  },
676
+ /**
677
+ * Watch OwnershipTransferred events
678
+ * @param callback Function to call when event is emitted
679
+ * @param filter Optional filter for indexed parameters
680
+ * @returns Unwatch function to stop listening
681
+ */
682
+ OwnershipTransferred: (callback, filter) => {
683
+ return this.publicClient.watchContractEvent({
684
+ address: this.contractAddress,
685
+ abi: exports.MyToken_jsonAbi,
686
+ eventName: 'OwnershipTransferred',
687
+ args: filter,
688
+ onLogs: (logs) => {
689
+ logs.forEach((log) => {
690
+ callback(log.args);
691
+ });
692
+ },
693
+ });
694
+ },
921
695
  /**
922
696
  * Watch Transfer events
923
697
  * @param callback Function to call when event is emitted
@@ -927,7 +701,7 @@ class TokenImplementation_json {
927
701
  Transfer: (callback, filter) => {
928
702
  return this.publicClient.watchContractEvent({
929
703
  address: this.contractAddress,
930
- abi: exports.TokenImplementation_jsonAbi,
704
+ abi: exports.MyToken_jsonAbi,
931
705
  eventName: 'Transfer',
932
706
  args: filter,
933
707
  onLogs: (logs) => {
@@ -940,4 +714,4 @@ class TokenImplementation_json {
940
714
  };
941
715
  }
942
716
  }
943
- exports.TokenImplementation_json = TokenImplementation_json;
717
+ exports.MyToken_json = MyToken_json;