@gitmyabi/usd 1.0.4 → 1.0.6

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,15 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StandardToken_json = exports.StandardToken_jsonAbi = void 0;
3
+ exports.MusdtMintable_json = exports.MusdtMintable_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * StandardToken_json ABI
6
+ * MusdtMintable_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.StandardToken_jsonAbi = [
10
+ exports.MusdtMintable_jsonAbi = [
11
11
  {
12
- "inputs": [],
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": "string",
25
+ "name": "logoURI_",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "internalType": "string",
30
+ "name": "tokenURI_",
31
+ "type": "string"
32
+ }
33
+ ],
13
34
  "stateMutability": "nonpayable",
14
35
  "type": "constructor"
15
36
  },
@@ -43,12 +64,94 @@ exports.StandardToken_jsonAbi = [
43
64
  "inputs": [
44
65
  {
45
66
  "indexed": false,
46
- "internalType": "uint8",
47
- "name": "version",
48
- "type": "uint8"
67
+ "internalType": "string",
68
+ "name": "previousURI",
69
+ "type": "string"
70
+ },
71
+ {
72
+ "indexed": false,
73
+ "internalType": "string",
74
+ "name": "newURI",
75
+ "type": "string"
49
76
  }
50
77
  ],
51
- "name": "Initialized",
78
+ "name": "LogoURIChanged",
79
+ "type": "event"
80
+ },
81
+ {
82
+ "anonymous": false,
83
+ "inputs": [
84
+ {
85
+ "indexed": false,
86
+ "internalType": "string",
87
+ "name": "previousName",
88
+ "type": "string"
89
+ },
90
+ {
91
+ "indexed": false,
92
+ "internalType": "string",
93
+ "name": "newName",
94
+ "type": "string"
95
+ }
96
+ ],
97
+ "name": "NameChanged",
98
+ "type": "event"
99
+ },
100
+ {
101
+ "anonymous": false,
102
+ "inputs": [
103
+ {
104
+ "indexed": true,
105
+ "internalType": "address",
106
+ "name": "previousOwner",
107
+ "type": "address"
108
+ },
109
+ {
110
+ "indexed": true,
111
+ "internalType": "address",
112
+ "name": "newOwner",
113
+ "type": "address"
114
+ }
115
+ ],
116
+ "name": "OwnershipTransferred",
117
+ "type": "event"
118
+ },
119
+ {
120
+ "anonymous": false,
121
+ "inputs": [
122
+ {
123
+ "indexed": false,
124
+ "internalType": "string",
125
+ "name": "previousSymbol",
126
+ "type": "string"
127
+ },
128
+ {
129
+ "indexed": false,
130
+ "internalType": "string",
131
+ "name": "newSymbol",
132
+ "type": "string"
133
+ }
134
+ ],
135
+ "name": "SymbolChanged",
136
+ "type": "event"
137
+ },
138
+ {
139
+ "anonymous": false,
140
+ "inputs": [
141
+ {
142
+ "indexed": false,
143
+ "internalType": "string",
144
+ "name": "previousURI",
145
+ "type": "string"
146
+ },
147
+ {
148
+ "indexed": false,
149
+ "internalType": "string",
150
+ "name": "newURI",
151
+ "type": "string"
152
+ }
153
+ ],
154
+ "name": "TokenURIChanged",
52
155
  "type": "event"
53
156
  },
54
157
  {
@@ -80,7 +183,7 @@ exports.StandardToken_jsonAbi = [
80
183
  "inputs": [
81
184
  {
82
185
  "internalType": "address",
83
- "name": "owner",
186
+ "name": "owner_",
84
187
  "type": "address"
85
188
  },
86
189
  {
@@ -109,7 +212,7 @@ exports.StandardToken_jsonAbi = [
109
212
  },
110
213
  {
111
214
  "internalType": "uint256",
112
- "name": "amount",
215
+ "name": "value",
113
216
  "type": "uint256"
114
217
  }
115
218
  ],
@@ -128,7 +231,7 @@ exports.StandardToken_jsonAbi = [
128
231
  "inputs": [
129
232
  {
130
233
  "internalType": "address",
131
- "name": "account",
234
+ "name": "who",
132
235
  "type": "address"
133
236
  }
134
237
  ],
@@ -144,47 +247,40 @@ exports.StandardToken_jsonAbi = [
144
247
  "type": "function"
145
248
  },
146
249
  {
147
- "inputs": [
250
+ "inputs": [],
251
+ "name": "decimals",
252
+ "outputs": [
148
253
  {
149
- "internalType": "uint256",
150
- "name": "amount",
151
- "type": "uint256"
254
+ "internalType": "uint8",
255
+ "name": "",
256
+ "type": "uint8"
152
257
  }
153
258
  ],
154
- "name": "burn",
155
- "outputs": [],
156
- "stateMutability": "nonpayable",
259
+ "stateMutability": "view",
157
260
  "type": "function"
158
261
  },
159
262
  {
160
263
  "inputs": [
161
264
  {
162
265
  "internalType": "address",
163
- "name": "account",
266
+ "name": "spender",
164
267
  "type": "address"
165
268
  },
166
269
  {
167
270
  "internalType": "uint256",
168
- "name": "amount",
271
+ "name": "subtractedValue",
169
272
  "type": "uint256"
170
273
  }
171
274
  ],
172
- "name": "burnFrom",
173
- "outputs": [],
174
- "stateMutability": "nonpayable",
175
- "type": "function"
176
- },
177
- {
178
- "inputs": [],
179
- "name": "decimals",
275
+ "name": "decreaseApproval",
180
276
  "outputs": [
181
277
  {
182
- "internalType": "uint8",
278
+ "internalType": "bool",
183
279
  "name": "",
184
- "type": "uint8"
280
+ "type": "bool"
185
281
  }
186
282
  ],
187
- "stateMutability": "view",
283
+ "stateMutability": "nonpayable",
188
284
  "type": "function"
189
285
  },
190
286
  {
@@ -196,11 +292,11 @@ exports.StandardToken_jsonAbi = [
196
292
  },
197
293
  {
198
294
  "internalType": "uint256",
199
- "name": "subtractedValue",
295
+ "name": "addedValue",
200
296
  "type": "uint256"
201
297
  }
202
298
  ],
203
- "name": "decreaseAllowance",
299
+ "name": "increaseApproval",
204
300
  "outputs": [
205
301
  {
206
302
  "internalType": "bool",
@@ -211,20 +307,33 @@ exports.StandardToken_jsonAbi = [
211
307
  "stateMutability": "nonpayable",
212
308
  "type": "function"
213
309
  },
310
+ {
311
+ "inputs": [],
312
+ "name": "logoURI",
313
+ "outputs": [
314
+ {
315
+ "internalType": "string",
316
+ "name": "",
317
+ "type": "string"
318
+ }
319
+ ],
320
+ "stateMutability": "view",
321
+ "type": "function"
322
+ },
214
323
  {
215
324
  "inputs": [
216
325
  {
217
326
  "internalType": "address",
218
- "name": "spender",
327
+ "name": "to",
219
328
  "type": "address"
220
329
  },
221
330
  {
222
331
  "internalType": "uint256",
223
- "name": "addedValue",
332
+ "name": "value",
224
333
  "type": "uint256"
225
334
  }
226
335
  ],
227
- "name": "increaseAllowance",
336
+ "name": "mint",
228
337
  "outputs": [
229
338
  {
230
339
  "internalType": "bool",
@@ -236,54 +345,86 @@ exports.StandardToken_jsonAbi = [
236
345
  "type": "function"
237
346
  },
238
347
  {
239
- "inputs": [
348
+ "inputs": [],
349
+ "name": "name",
350
+ "outputs": [
351
+ {
352
+ "internalType": "string",
353
+ "name": "",
354
+ "type": "string"
355
+ }
356
+ ],
357
+ "stateMutability": "view",
358
+ "type": "function"
359
+ },
360
+ {
361
+ "inputs": [],
362
+ "name": "owner",
363
+ "outputs": [
240
364
  {
241
365
  "internalType": "address",
242
- "name": "_owner",
366
+ "name": "",
243
367
  "type": "address"
244
- },
368
+ }
369
+ ],
370
+ "stateMutability": "view",
371
+ "type": "function"
372
+ },
373
+ {
374
+ "inputs": [
245
375
  {
246
376
  "internalType": "string",
247
- "name": "_name",
377
+ "name": "newURI",
248
378
  "type": "string"
249
- },
379
+ }
380
+ ],
381
+ "name": "setLogoURI",
382
+ "outputs": [],
383
+ "stateMutability": "nonpayable",
384
+ "type": "function"
385
+ },
386
+ {
387
+ "inputs": [
250
388
  {
251
389
  "internalType": "string",
252
- "name": "_symbol",
390
+ "name": "newName",
253
391
  "type": "string"
254
- },
255
- {
256
- "internalType": "uint8",
257
- "name": "_decimals",
258
- "type": "uint8"
259
- },
392
+ }
393
+ ],
394
+ "name": "setName",
395
+ "outputs": [],
396
+ "stateMutability": "nonpayable",
397
+ "type": "function"
398
+ },
399
+ {
400
+ "inputs": [
260
401
  {
261
- "internalType": "uint256",
262
- "name": "_initialSupply",
263
- "type": "uint256"
402
+ "internalType": "string",
403
+ "name": "newSymbol",
404
+ "type": "string"
264
405
  }
265
406
  ],
266
- "name": "initialize",
407
+ "name": "setSymbol",
267
408
  "outputs": [],
268
409
  "stateMutability": "nonpayable",
269
410
  "type": "function"
270
411
  },
271
412
  {
272
- "inputs": [],
273
- "name": "maxSupply",
274
- "outputs": [
413
+ "inputs": [
275
414
  {
276
- "internalType": "uint256",
277
- "name": "",
278
- "type": "uint256"
415
+ "internalType": "string",
416
+ "name": "newURI",
417
+ "type": "string"
279
418
  }
280
419
  ],
281
- "stateMutability": "view",
420
+ "name": "setTokenURI",
421
+ "outputs": [],
422
+ "stateMutability": "nonpayable",
282
423
  "type": "function"
283
424
  },
284
425
  {
285
426
  "inputs": [],
286
- "name": "name",
427
+ "name": "symbol",
287
428
  "outputs": [
288
429
  {
289
430
  "internalType": "string",
@@ -296,7 +437,7 @@ exports.StandardToken_jsonAbi = [
296
437
  },
297
438
  {
298
439
  "inputs": [],
299
- "name": "symbol",
440
+ "name": "tokenURI",
300
441
  "outputs": [
301
442
  {
302
443
  "internalType": "string",
@@ -329,7 +470,7 @@ exports.StandardToken_jsonAbi = [
329
470
  },
330
471
  {
331
472
  "internalType": "uint256",
332
- "name": "amount",
473
+ "name": "value",
333
474
  "type": "uint256"
334
475
  }
335
476
  ],
@@ -358,7 +499,7 @@ exports.StandardToken_jsonAbi = [
358
499
  },
359
500
  {
360
501
  "internalType": "uint256",
361
- "name": "amount",
502
+ "name": "value",
362
503
  "type": "uint256"
363
504
  }
364
505
  ],
@@ -372,10 +513,23 @@ exports.StandardToken_jsonAbi = [
372
513
  ],
373
514
  "stateMutability": "nonpayable",
374
515
  "type": "function"
516
+ },
517
+ {
518
+ "inputs": [
519
+ {
520
+ "internalType": "address",
521
+ "name": "newOwner",
522
+ "type": "address"
523
+ }
524
+ ],
525
+ "name": "transferOwnership",
526
+ "outputs": [],
527
+ "stateMutability": "nonpayable",
528
+ "type": "function"
375
529
  }
376
530
  ];
377
531
  /**
378
- * StandardToken_json Contract Class
532
+ * MusdtMintable_json Contract Class
379
533
  *
380
534
  * Provides a class-based API similar to TypeChain for interacting with the contract.
381
535
  *
@@ -383,12 +537,12 @@ exports.StandardToken_jsonAbi = [
383
537
  * ```typescript
384
538
  * import { createPublicClient, createWalletClient, http } from 'viem';
385
539
  * import { mainnet } from 'viem/chains';
386
- * import { StandardToken_json } from 'StandardToken_json';
540
+ * import { MusdtMintable_json } from 'MusdtMintable_json';
387
541
  *
388
542
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
389
543
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
390
544
  *
391
- * const contract = new StandardToken_json('0x...', { publicClient, walletClient });
545
+ * const contract = new MusdtMintable_json('0x...', { publicClient, walletClient });
392
546
  *
393
547
  * // Read functions
394
548
  * const result = await contract.balanceOf('0x...');
@@ -406,13 +560,13 @@ exports.StandardToken_jsonAbi = [
406
560
  * });
407
561
  * ```
408
562
  */
409
- class StandardToken_json {
563
+ class MusdtMintable_json {
410
564
  constructor(address, clients) {
411
565
  this.contractAddress = address;
412
566
  this.publicClient = clients.publicClient;
413
567
  this.contract = (0, viem_1.getContract)({
414
568
  address,
415
- abi: exports.StandardToken_jsonAbi,
569
+ abi: exports.MusdtMintable_jsonAbi,
416
570
  client: {
417
571
  public: clients.publicClient,
418
572
  wallet: clients.walletClient,
@@ -435,15 +589,15 @@ class StandardToken_json {
435
589
  * allowance
436
590
  * view
437
591
  */
438
- async allowance(owner, spender) {
439
- return this.contract.read.allowance([owner, spender]);
592
+ async allowance(owner_, spender) {
593
+ return this.contract.read.allowance([owner_, spender]);
440
594
  }
441
595
  /**
442
596
  * balanceOf
443
597
  * view
444
598
  */
445
- async balanceOf(account) {
446
- return this.contract.read.balanceOf([account]);
599
+ async balanceOf(who) {
600
+ return this.contract.read.balanceOf([who]);
447
601
  }
448
602
  /**
449
603
  * decimals
@@ -453,11 +607,11 @@ class StandardToken_json {
453
607
  return this.contract.read.decimals();
454
608
  }
455
609
  /**
456
- * maxSupply
610
+ * logoURI
457
611
  * view
458
612
  */
459
- async maxSupply() {
460
- return this.contract.read.maxSupply();
613
+ async logoURI() {
614
+ return this.contract.read.logoURI();
461
615
  }
462
616
  /**
463
617
  * name
@@ -466,6 +620,13 @@ class StandardToken_json {
466
620
  async name() {
467
621
  return this.contract.read.name();
468
622
  }
623
+ /**
624
+ * owner
625
+ * view
626
+ */
627
+ async owner() {
628
+ return this.contract.read.owner();
629
+ }
469
630
  /**
470
631
  * symbol
471
632
  * view
@@ -473,6 +634,13 @@ class StandardToken_json {
473
634
  async symbol() {
474
635
  return this.contract.read.symbol();
475
636
  }
637
+ /**
638
+ * tokenURI
639
+ * view
640
+ */
641
+ async tokenURI() {
642
+ return this.contract.read.tokenURI();
643
+ }
476
644
  /**
477
645
  * totalSupply
478
646
  * view
@@ -485,88 +653,121 @@ class StandardToken_json {
485
653
  * nonpayable
486
654
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
487
655
  */
488
- async approve(spender, amount, options) {
656
+ async approve(spender, value, options) {
657
+ if (!this.contract.write) {
658
+ throw new Error('Wallet client is required for write operations');
659
+ }
660
+ return this.contract.write.approve([spender, value], options);
661
+ }
662
+ /**
663
+ * decreaseApproval
664
+ * nonpayable
665
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
666
+ */
667
+ async decreaseApproval(spender, subtractedValue, options) {
668
+ if (!this.contract.write) {
669
+ throw new Error('Wallet client is required for write operations');
670
+ }
671
+ return this.contract.write.decreaseApproval([spender, subtractedValue], options);
672
+ }
673
+ /**
674
+ * increaseApproval
675
+ * nonpayable
676
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
677
+ */
678
+ async increaseApproval(spender, addedValue, options) {
489
679
  if (!this.contract.write) {
490
680
  throw new Error('Wallet client is required for write operations');
491
681
  }
492
- return this.contract.write.approve([spender, amount], options);
682
+ return this.contract.write.increaseApproval([spender, addedValue], options);
493
683
  }
494
684
  /**
495
- * burn
685
+ * mint
496
686
  * nonpayable
497
687
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
498
688
  */
499
- async burn(amount, options) {
689
+ async mint(to, value, options) {
500
690
  if (!this.contract.write) {
501
691
  throw new Error('Wallet client is required for write operations');
502
692
  }
503
- return this.contract.write.burn([amount], options);
693
+ return this.contract.write.mint([to, value], options);
504
694
  }
505
695
  /**
506
- * burnFrom
696
+ * setLogoURI
507
697
  * nonpayable
508
698
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
509
699
  */
510
- async burnFrom(account, amount, options) {
700
+ async setLogoURI(newURI, options) {
511
701
  if (!this.contract.write) {
512
702
  throw new Error('Wallet client is required for write operations');
513
703
  }
514
- return this.contract.write.burnFrom([account, amount], options);
704
+ return this.contract.write.setLogoURI([newURI], options);
515
705
  }
516
706
  /**
517
- * decreaseAllowance
707
+ * setName
518
708
  * nonpayable
519
709
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
520
710
  */
521
- async decreaseAllowance(spender, subtractedValue, options) {
711
+ async setName(newName, options) {
522
712
  if (!this.contract.write) {
523
713
  throw new Error('Wallet client is required for write operations');
524
714
  }
525
- return this.contract.write.decreaseAllowance([spender, subtractedValue], options);
715
+ return this.contract.write.setName([newName], options);
526
716
  }
527
717
  /**
528
- * increaseAllowance
718
+ * setSymbol
529
719
  * nonpayable
530
720
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
531
721
  */
532
- async increaseAllowance(spender, addedValue, options) {
722
+ async setSymbol(newSymbol, options) {
533
723
  if (!this.contract.write) {
534
724
  throw new Error('Wallet client is required for write operations');
535
725
  }
536
- return this.contract.write.increaseAllowance([spender, addedValue], options);
726
+ return this.contract.write.setSymbol([newSymbol], options);
537
727
  }
538
728
  /**
539
- * initialize
729
+ * setTokenURI
540
730
  * nonpayable
541
731
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
542
732
  */
543
- async initialize(_owner, _name, _symbol, _decimals, _initialSupply, options) {
733
+ async setTokenURI(newURI, options) {
544
734
  if (!this.contract.write) {
545
735
  throw new Error('Wallet client is required for write operations');
546
736
  }
547
- return this.contract.write.initialize([_owner, _name, _symbol, _decimals, _initialSupply], options);
737
+ return this.contract.write.setTokenURI([newURI], options);
548
738
  }
549
739
  /**
550
740
  * transfer
551
741
  * nonpayable
552
742
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
553
743
  */
554
- async transfer(to, amount, options) {
744
+ async transfer(to, value, options) {
555
745
  if (!this.contract.write) {
556
746
  throw new Error('Wallet client is required for write operations');
557
747
  }
558
- return this.contract.write.transfer([to, amount], options);
748
+ return this.contract.write.transfer([to, value], options);
559
749
  }
560
750
  /**
561
751
  * transferFrom
562
752
  * nonpayable
563
753
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
564
754
  */
565
- async transferFrom(from, to, amount, options) {
755
+ async transferFrom(from, to, value, options) {
566
756
  if (!this.contract.write) {
567
757
  throw new Error('Wallet client is required for write operations');
568
758
  }
569
- return this.contract.write.transferFrom([from, to, amount], options);
759
+ return this.contract.write.transferFrom([from, to, value], options);
760
+ }
761
+ /**
762
+ * transferOwnership
763
+ * nonpayable
764
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
765
+ */
766
+ async transferOwnership(newOwner, options) {
767
+ if (!this.contract.write) {
768
+ throw new Error('Wallet client is required for write operations');
769
+ }
770
+ return this.contract.write.transferOwnership([newOwner], options);
570
771
  }
571
772
  /**
572
773
  * Simulate contract write operations (dry-run without sending transaction)
@@ -587,64 +788,88 @@ class StandardToken_json {
587
788
  * Returns gas estimate and result without sending transaction
588
789
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
589
790
  */
590
- async approve(spender, amount, options) {
591
- return contract.simulate.approve([spender, amount], options);
791
+ async approve(spender, value, options) {
792
+ return contract.simulate.approve([spender, value], options);
793
+ },
794
+ /**
795
+ * Simulate decreaseApproval
796
+ * Returns gas estimate and result without sending transaction
797
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
798
+ */
799
+ async decreaseApproval(spender, subtractedValue, options) {
800
+ return contract.simulate.decreaseApproval([spender, subtractedValue], options);
801
+ },
802
+ /**
803
+ * Simulate increaseApproval
804
+ * Returns gas estimate and result without sending transaction
805
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
806
+ */
807
+ async increaseApproval(spender, addedValue, options) {
808
+ return contract.simulate.increaseApproval([spender, addedValue], options);
592
809
  },
593
810
  /**
594
- * Simulate burn
811
+ * Simulate mint
595
812
  * Returns gas estimate and result without sending transaction
596
813
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
597
814
  */
598
- async burn(amount, options) {
599
- return contract.simulate.burn([amount], options);
815
+ async mint(to, value, options) {
816
+ return contract.simulate.mint([to, value], options);
600
817
  },
601
818
  /**
602
- * Simulate burnFrom
819
+ * Simulate setLogoURI
603
820
  * Returns gas estimate and result without sending transaction
604
821
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
605
822
  */
606
- async burnFrom(account, amount, options) {
607
- return contract.simulate.burnFrom([account, amount], options);
823
+ async setLogoURI(newURI, options) {
824
+ return contract.simulate.setLogoURI([newURI], options);
608
825
  },
609
826
  /**
610
- * Simulate decreaseAllowance
827
+ * Simulate setName
611
828
  * Returns gas estimate and result without sending transaction
612
829
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
613
830
  */
614
- async decreaseAllowance(spender, subtractedValue, options) {
615
- return contract.simulate.decreaseAllowance([spender, subtractedValue], options);
831
+ async setName(newName, options) {
832
+ return contract.simulate.setName([newName], options);
616
833
  },
617
834
  /**
618
- * Simulate increaseAllowance
835
+ * Simulate setSymbol
619
836
  * Returns gas estimate and result without sending transaction
620
837
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
621
838
  */
622
- async increaseAllowance(spender, addedValue, options) {
623
- return contract.simulate.increaseAllowance([spender, addedValue], options);
839
+ async setSymbol(newSymbol, options) {
840
+ return contract.simulate.setSymbol([newSymbol], options);
624
841
  },
625
842
  /**
626
- * Simulate initialize
843
+ * Simulate setTokenURI
627
844
  * Returns gas estimate and result without sending transaction
628
845
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
629
846
  */
630
- async initialize(_owner, _name, _symbol, _decimals, _initialSupply, options) {
631
- return contract.simulate.initialize([_owner, _name, _symbol, _decimals, _initialSupply], options);
847
+ async setTokenURI(newURI, options) {
848
+ return contract.simulate.setTokenURI([newURI], options);
632
849
  },
633
850
  /**
634
851
  * Simulate transfer
635
852
  * Returns gas estimate and result without sending transaction
636
853
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
637
854
  */
638
- async transfer(to, amount, options) {
639
- return contract.simulate.transfer([to, amount], options);
855
+ async transfer(to, value, options) {
856
+ return contract.simulate.transfer([to, value], options);
640
857
  },
641
858
  /**
642
859
  * Simulate transferFrom
643
860
  * Returns gas estimate and result without sending transaction
644
861
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
645
862
  */
646
- async transferFrom(from, to, amount, options) {
647
- return contract.simulate.transferFrom([from, to, amount], options);
863
+ async transferFrom(from, to, value, options) {
864
+ return contract.simulate.transferFrom([from, to, value], options);
865
+ },
866
+ /**
867
+ * Simulate transferOwnership
868
+ * Returns gas estimate and result without sending transaction
869
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
870
+ */
871
+ async transferOwnership(newOwner, options) {
872
+ return contract.simulate.transferOwnership([newOwner], options);
648
873
  }
649
874
  };
650
875
  }
@@ -671,7 +896,7 @@ class StandardToken_json {
671
896
  Approval: (callback, filter) => {
672
897
  return this.publicClient.watchContractEvent({
673
898
  address: this.contractAddress,
674
- abi: exports.StandardToken_jsonAbi,
899
+ abi: exports.MusdtMintable_jsonAbi,
675
900
  eventName: 'Approval',
676
901
  args: filter,
677
902
  onLogs: (logs) => {
@@ -682,16 +907,89 @@ class StandardToken_json {
682
907
  });
683
908
  },
684
909
  /**
685
- * Watch Initialized events
910
+ * Watch LogoURIChanged events
911
+ * @param callback Function to call when event is emitted
912
+ * @param filter Optional filter for indexed parameters
913
+ * @returns Unwatch function to stop listening
914
+ */
915
+ LogoURIChanged: (callback) => {
916
+ return this.publicClient.watchContractEvent({
917
+ address: this.contractAddress,
918
+ abi: exports.MusdtMintable_jsonAbi,
919
+ eventName: 'LogoURIChanged',
920
+ onLogs: (logs) => {
921
+ logs.forEach((log) => {
922
+ callback(log.args);
923
+ });
924
+ },
925
+ });
926
+ },
927
+ /**
928
+ * Watch NameChanged events
929
+ * @param callback Function to call when event is emitted
930
+ * @param filter Optional filter for indexed parameters
931
+ * @returns Unwatch function to stop listening
932
+ */
933
+ NameChanged: (callback) => {
934
+ return this.publicClient.watchContractEvent({
935
+ address: this.contractAddress,
936
+ abi: exports.MusdtMintable_jsonAbi,
937
+ eventName: 'NameChanged',
938
+ onLogs: (logs) => {
939
+ logs.forEach((log) => {
940
+ callback(log.args);
941
+ });
942
+ },
943
+ });
944
+ },
945
+ /**
946
+ * Watch OwnershipTransferred events
947
+ * @param callback Function to call when event is emitted
948
+ * @param filter Optional filter for indexed parameters
949
+ * @returns Unwatch function to stop listening
950
+ */
951
+ OwnershipTransferred: (callback, filter) => {
952
+ return this.publicClient.watchContractEvent({
953
+ address: this.contractAddress,
954
+ abi: exports.MusdtMintable_jsonAbi,
955
+ eventName: 'OwnershipTransferred',
956
+ args: filter,
957
+ onLogs: (logs) => {
958
+ logs.forEach((log) => {
959
+ callback(log.args);
960
+ });
961
+ },
962
+ });
963
+ },
964
+ /**
965
+ * Watch SymbolChanged events
966
+ * @param callback Function to call when event is emitted
967
+ * @param filter Optional filter for indexed parameters
968
+ * @returns Unwatch function to stop listening
969
+ */
970
+ SymbolChanged: (callback) => {
971
+ return this.publicClient.watchContractEvent({
972
+ address: this.contractAddress,
973
+ abi: exports.MusdtMintable_jsonAbi,
974
+ eventName: 'SymbolChanged',
975
+ onLogs: (logs) => {
976
+ logs.forEach((log) => {
977
+ callback(log.args);
978
+ });
979
+ },
980
+ });
981
+ },
982
+ /**
983
+ * Watch TokenURIChanged events
686
984
  * @param callback Function to call when event is emitted
687
985
  * @param filter Optional filter for indexed parameters
688
986
  * @returns Unwatch function to stop listening
689
987
  */
690
- Initialized: (callback) => {
988
+ TokenURIChanged: (callback) => {
691
989
  return this.publicClient.watchContractEvent({
692
990
  address: this.contractAddress,
693
- abi: exports.StandardToken_jsonAbi,
694
- eventName: 'Initialized',
991
+ abi: exports.MusdtMintable_jsonAbi,
992
+ eventName: 'TokenURIChanged',
695
993
  onLogs: (logs) => {
696
994
  logs.forEach((log) => {
697
995
  callback(log.args);
@@ -708,7 +1006,7 @@ class StandardToken_json {
708
1006
  Transfer: (callback, filter) => {
709
1007
  return this.publicClient.watchContractEvent({
710
1008
  address: this.contractAddress,
711
- abi: exports.StandardToken_jsonAbi,
1009
+ abi: exports.MusdtMintable_jsonAbi,
712
1010
  eventName: 'Transfer',
713
1011
  args: filter,
714
1012
  onLogs: (logs) => {
@@ -721,4 +1019,4 @@ class StandardToken_json {
721
1019
  };
722
1020
  }
723
1021
  }
724
- exports.StandardToken_json = StandardToken_json;
1022
+ exports.MusdtMintable_json = MusdtMintable_json;