@gitmyabi/usd 1.0.6 → 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,38 +1,103 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MusdtMintable_json = exports.MusdtMintable_jsonAbi = void 0;
3
+ exports.UltimateTokenOwnable_json = exports.UltimateTokenOwnable_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * MusdtMintable_json ABI
6
+ * UltimateTokenOwnable_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.MusdtMintable_jsonAbi = [
10
+ exports.UltimateTokenOwnable_jsonAbi = [
11
+ {
12
+ "inputs": [],
13
+ "name": "AllowanceOverflow",
14
+ "type": "error"
15
+ },
16
+ {
17
+ "inputs": [],
18
+ "name": "AllowanceUnderflow",
19
+ "type": "error"
20
+ },
21
+ {
22
+ "inputs": [],
23
+ "name": "AlreadyInitialized",
24
+ "type": "error"
25
+ },
11
26
  {
12
27
  "inputs": [
13
28
  {
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"
29
+ "internalType": "uint256",
30
+ "name": "increasedSupply",
31
+ "type": "uint256"
27
32
  },
28
33
  {
29
- "internalType": "string",
30
- "name": "tokenURI_",
31
- "type": "string"
34
+ "internalType": "uint256",
35
+ "name": "maxSupply",
36
+ "type": "uint256"
32
37
  }
33
38
  ],
34
- "stateMutability": "nonpayable",
35
- "type": "constructor"
39
+ "name": "ERC20ExceededCap",
40
+ "type": "error"
41
+ },
42
+ {
43
+ "inputs": [],
44
+ "name": "ERC20TransferPaused",
45
+ "type": "error"
46
+ },
47
+ {
48
+ "inputs": [],
49
+ "name": "InsufficientAllowance",
50
+ "type": "error"
51
+ },
52
+ {
53
+ "inputs": [],
54
+ "name": "InsufficientBalance",
55
+ "type": "error"
56
+ },
57
+ {
58
+ "inputs": [],
59
+ "name": "InvalidInitialization",
60
+ "type": "error"
61
+ },
62
+ {
63
+ "inputs": [],
64
+ "name": "InvalidPermit",
65
+ "type": "error"
66
+ },
67
+ {
68
+ "inputs": [],
69
+ "name": "NewOwnerIsZeroAddress",
70
+ "type": "error"
71
+ },
72
+ {
73
+ "inputs": [],
74
+ "name": "NoHandoverRequest",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [],
79
+ "name": "NotInitializing",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "Permit2AllowanceIsFixedAtInfinity",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [],
89
+ "name": "PermitExpired",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [],
94
+ "name": "TotalSupplyOverflow",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [],
99
+ "name": "Unauthorized",
100
+ "type": "error"
36
101
  },
37
102
  {
38
103
  "anonymous": false,
@@ -52,7 +117,7 @@ exports.MusdtMintable_jsonAbi = [
52
117
  {
53
118
  "indexed": false,
54
119
  "internalType": "uint256",
55
- "name": "value",
120
+ "name": "amount",
56
121
  "type": "uint256"
57
122
  }
58
123
  ],
@@ -64,37 +129,12 @@ exports.MusdtMintable_jsonAbi = [
64
129
  "inputs": [
65
130
  {
66
131
  "indexed": false,
67
- "internalType": "string",
68
- "name": "previousURI",
69
- "type": "string"
70
- },
71
- {
72
- "indexed": false,
73
- "internalType": "string",
74
- "name": "newURI",
75
- "type": "string"
132
+ "internalType": "uint64",
133
+ "name": "version",
134
+ "type": "uint64"
76
135
  }
77
136
  ],
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",
137
+ "name": "Initialized",
98
138
  "type": "event"
99
139
  },
100
140
  {
@@ -103,55 +143,43 @@ exports.MusdtMintable_jsonAbi = [
103
143
  {
104
144
  "indexed": true,
105
145
  "internalType": "address",
106
- "name": "previousOwner",
107
- "type": "address"
108
- },
109
- {
110
- "indexed": true,
111
- "internalType": "address",
112
- "name": "newOwner",
146
+ "name": "pendingOwner",
113
147
  "type": "address"
114
148
  }
115
149
  ],
116
- "name": "OwnershipTransferred",
150
+ "name": "OwnershipHandoverCanceled",
117
151
  "type": "event"
118
152
  },
119
153
  {
120
154
  "anonymous": false,
121
155
  "inputs": [
122
156
  {
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"
157
+ "indexed": true,
158
+ "internalType": "address",
159
+ "name": "pendingOwner",
160
+ "type": "address"
133
161
  }
134
162
  ],
135
- "name": "SymbolChanged",
163
+ "name": "OwnershipHandoverRequested",
136
164
  "type": "event"
137
165
  },
138
166
  {
139
167
  "anonymous": false,
140
168
  "inputs": [
141
169
  {
142
- "indexed": false,
143
- "internalType": "string",
144
- "name": "previousURI",
145
- "type": "string"
170
+ "indexed": true,
171
+ "internalType": "address",
172
+ "name": "oldOwner",
173
+ "type": "address"
146
174
  },
147
175
  {
148
- "indexed": false,
149
- "internalType": "string",
150
- "name": "newURI",
151
- "type": "string"
176
+ "indexed": true,
177
+ "internalType": "address",
178
+ "name": "newOwner",
179
+ "type": "address"
152
180
  }
153
181
  ],
154
- "name": "TokenURIChanged",
182
+ "name": "OwnershipTransferred",
155
183
  "type": "event"
156
184
  },
157
185
  {
@@ -172,18 +200,31 @@ exports.MusdtMintable_jsonAbi = [
172
200
  {
173
201
  "indexed": false,
174
202
  "internalType": "uint256",
175
- "name": "value",
203
+ "name": "amount",
176
204
  "type": "uint256"
177
205
  }
178
206
  ],
179
207
  "name": "Transfer",
180
208
  "type": "event"
181
209
  },
210
+ {
211
+ "inputs": [],
212
+ "name": "DOMAIN_SEPARATOR",
213
+ "outputs": [
214
+ {
215
+ "internalType": "bytes32",
216
+ "name": "result",
217
+ "type": "bytes32"
218
+ }
219
+ ],
220
+ "stateMutability": "view",
221
+ "type": "function"
222
+ },
182
223
  {
183
224
  "inputs": [
184
225
  {
185
226
  "internalType": "address",
186
- "name": "owner_",
227
+ "name": "owner",
187
228
  "type": "address"
188
229
  },
189
230
  {
@@ -196,7 +237,7 @@ exports.MusdtMintable_jsonAbi = [
196
237
  "outputs": [
197
238
  {
198
239
  "internalType": "uint256",
199
- "name": "",
240
+ "name": "result",
200
241
  "type": "uint256"
201
242
  }
202
243
  ],
@@ -212,7 +253,7 @@ exports.MusdtMintable_jsonAbi = [
212
253
  },
213
254
  {
214
255
  "internalType": "uint256",
215
- "name": "value",
256
+ "name": "amount",
216
257
  "type": "uint256"
217
258
  }
218
259
  ],
@@ -231,7 +272,7 @@ exports.MusdtMintable_jsonAbi = [
231
272
  "inputs": [
232
273
  {
233
274
  "internalType": "address",
234
- "name": "who",
275
+ "name": "owner",
235
276
  "type": "address"
236
277
  }
237
278
  ],
@@ -239,7 +280,7 @@ exports.MusdtMintable_jsonAbi = [
239
280
  "outputs": [
240
281
  {
241
282
  "internalType": "uint256",
242
- "name": "",
283
+ "name": "result",
243
284
  "type": "uint256"
244
285
  }
245
286
  ],
@@ -247,74 +288,130 @@ exports.MusdtMintable_jsonAbi = [
247
288
  "type": "function"
248
289
  },
249
290
  {
250
- "inputs": [],
251
- "name": "decimals",
252
- "outputs": [
291
+ "inputs": [
253
292
  {
254
- "internalType": "uint8",
255
- "name": "",
256
- "type": "uint8"
293
+ "internalType": "uint256",
294
+ "name": "value",
295
+ "type": "uint256"
257
296
  }
258
297
  ],
259
- "stateMutability": "view",
298
+ "name": "burn",
299
+ "outputs": [],
300
+ "stateMutability": "nonpayable",
301
+ "type": "function"
302
+ },
303
+ {
304
+ "inputs": [],
305
+ "name": "cancelOwnershipHandover",
306
+ "outputs": [],
307
+ "stateMutability": "payable",
260
308
  "type": "function"
261
309
  },
262
310
  {
263
311
  "inputs": [
264
312
  {
265
313
  "internalType": "address",
266
- "name": "spender",
314
+ "name": "pendingOwner",
267
315
  "type": "address"
268
- },
269
- {
270
- "internalType": "uint256",
271
- "name": "subtractedValue",
272
- "type": "uint256"
273
316
  }
274
317
  ],
275
- "name": "decreaseApproval",
318
+ "name": "completeOwnershipHandover",
319
+ "outputs": [],
320
+ "stateMutability": "payable",
321
+ "type": "function"
322
+ },
323
+ {
324
+ "inputs": [],
325
+ "name": "decimals",
276
326
  "outputs": [
277
327
  {
278
- "internalType": "bool",
328
+ "internalType": "uint8",
279
329
  "name": "",
280
- "type": "bool"
330
+ "type": "uint8"
281
331
  }
282
332
  ],
333
+ "stateMutability": "view",
334
+ "type": "function"
335
+ },
336
+ {
337
+ "inputs": [],
338
+ "name": "disableInitializer",
339
+ "outputs": [],
283
340
  "stateMutability": "nonpayable",
284
341
  "type": "function"
285
342
  },
286
343
  {
287
344
  "inputs": [
288
345
  {
289
- "internalType": "address",
290
- "name": "spender",
291
- "type": "address"
346
+ "components": [
347
+ {
348
+ "internalType": "address",
349
+ "name": "owner",
350
+ "type": "address"
351
+ }
352
+ ],
353
+ "internalType": "struct AuthInfo",
354
+ "name": "authInfo",
355
+ "type": "tuple"
292
356
  },
293
357
  {
294
- "internalType": "uint256",
295
- "name": "addedValue",
296
- "type": "uint256"
297
- }
298
- ],
299
- "name": "increaseApproval",
300
- "outputs": [
358
+ "components": [
359
+ {
360
+ "internalType": "string",
361
+ "name": "name",
362
+ "type": "string"
363
+ },
364
+ {
365
+ "internalType": "string",
366
+ "name": "symbol",
367
+ "type": "string"
368
+ },
369
+ {
370
+ "internalType": "uint8",
371
+ "name": "decimals",
372
+ "type": "uint8"
373
+ }
374
+ ],
375
+ "internalType": "struct TokenInfo",
376
+ "name": "tokenInfo",
377
+ "type": "tuple"
378
+ },
301
379
  {
302
- "internalType": "bool",
303
- "name": "",
304
- "type": "bool"
380
+ "components": [
381
+ {
382
+ "internalType": "address",
383
+ "name": "mintTarget",
384
+ "type": "address"
385
+ },
386
+ {
387
+ "internalType": "uint256",
388
+ "name": "initialSupply",
389
+ "type": "uint256"
390
+ },
391
+ {
392
+ "internalType": "uint256",
393
+ "name": "maxSupply",
394
+ "type": "uint256"
395
+ }
396
+ ],
397
+ "internalType": "struct SupplyInfo",
398
+ "name": "supplyInfo",
399
+ "type": "tuple"
305
400
  }
306
401
  ],
402
+ "name": "initialize",
403
+ "outputs": [],
307
404
  "stateMutability": "nonpayable",
308
405
  "type": "function"
309
406
  },
310
407
  {
311
408
  "inputs": [],
312
- "name": "logoURI",
409
+ "name": "maxSupply",
313
410
  "outputs": [
314
411
  {
315
- "internalType": "string",
412
+ "internalType": "uint256",
316
413
  "name": "",
317
- "type": "string"
414
+ "type": "uint256"
318
415
  }
319
416
  ],
320
417
  "stateMutability": "view",
@@ -329,18 +426,12 @@ exports.MusdtMintable_jsonAbi = [
329
426
  },
330
427
  {
331
428
  "internalType": "uint256",
332
- "name": "value",
429
+ "name": "amount",
333
430
  "type": "uint256"
334
431
  }
335
432
  ],
336
433
  "name": "mint",
337
- "outputs": [
338
- {
339
- "internalType": "bool",
340
- "name": "",
341
- "type": "bool"
342
- }
343
- ],
434
+ "outputs": [],
344
435
  "stateMutability": "nonpayable",
345
436
  "type": "function"
346
437
  },
@@ -357,13 +448,32 @@ exports.MusdtMintable_jsonAbi = [
357
448
  "stateMutability": "view",
358
449
  "type": "function"
359
450
  },
451
+ {
452
+ "inputs": [
453
+ {
454
+ "internalType": "address",
455
+ "name": "owner",
456
+ "type": "address"
457
+ }
458
+ ],
459
+ "name": "nonces",
460
+ "outputs": [
461
+ {
462
+ "internalType": "uint256",
463
+ "name": "result",
464
+ "type": "uint256"
465
+ }
466
+ ],
467
+ "stateMutability": "view",
468
+ "type": "function"
469
+ },
360
470
  {
361
471
  "inputs": [],
362
472
  "name": "owner",
363
473
  "outputs": [
364
474
  {
365
475
  "internalType": "address",
366
- "name": "",
476
+ "name": "result",
367
477
  "type": "address"
368
478
  }
369
479
  ],
@@ -373,71 +483,108 @@ exports.MusdtMintable_jsonAbi = [
373
483
  {
374
484
  "inputs": [
375
485
  {
376
- "internalType": "string",
377
- "name": "newURI",
378
- "type": "string"
486
+ "internalType": "address",
487
+ "name": "pendingOwner",
488
+ "type": "address"
379
489
  }
380
490
  ],
381
- "name": "setLogoURI",
382
- "outputs": [],
383
- "stateMutability": "nonpayable",
491
+ "name": "ownershipHandoverExpiresAt",
492
+ "outputs": [
493
+ {
494
+ "internalType": "uint256",
495
+ "name": "result",
496
+ "type": "uint256"
497
+ }
498
+ ],
499
+ "stateMutability": "view",
384
500
  "type": "function"
385
501
  },
386
502
  {
387
- "inputs": [
503
+ "inputs": [],
504
+ "name": "paused",
505
+ "outputs": [
388
506
  {
389
- "internalType": "string",
390
- "name": "newName",
391
- "type": "string"
507
+ "internalType": "bool",
508
+ "name": "",
509
+ "type": "bool"
392
510
  }
393
511
  ],
394
- "name": "setName",
395
- "outputs": [],
396
- "stateMutability": "nonpayable",
512
+ "stateMutability": "view",
397
513
  "type": "function"
398
514
  },
399
515
  {
400
516
  "inputs": [
401
517
  {
402
- "internalType": "string",
403
- "name": "newSymbol",
404
- "type": "string"
518
+ "internalType": "address",
519
+ "name": "owner",
520
+ "type": "address"
521
+ },
522
+ {
523
+ "internalType": "address",
524
+ "name": "spender",
525
+ "type": "address"
526
+ },
527
+ {
528
+ "internalType": "uint256",
529
+ "name": "value",
530
+ "type": "uint256"
531
+ },
532
+ {
533
+ "internalType": "uint256",
534
+ "name": "deadline",
535
+ "type": "uint256"
536
+ },
537
+ {
538
+ "internalType": "uint8",
539
+ "name": "v",
540
+ "type": "uint8"
541
+ },
542
+ {
543
+ "internalType": "bytes32",
544
+ "name": "r",
545
+ "type": "bytes32"
546
+ },
547
+ {
548
+ "internalType": "bytes32",
549
+ "name": "s",
550
+ "type": "bytes32"
405
551
  }
406
552
  ],
407
- "name": "setSymbol",
553
+ "name": "permit",
408
554
  "outputs": [],
409
555
  "stateMutability": "nonpayable",
410
556
  "type": "function"
411
557
  },
412
558
  {
413
- "inputs": [
414
- {
415
- "internalType": "string",
416
- "name": "newURI",
417
- "type": "string"
418
- }
419
- ],
420
- "name": "setTokenURI",
559
+ "inputs": [],
560
+ "name": "renounceOwnership",
421
561
  "outputs": [],
422
- "stateMutability": "nonpayable",
562
+ "stateMutability": "payable",
423
563
  "type": "function"
424
564
  },
425
565
  {
426
566
  "inputs": [],
427
- "name": "symbol",
428
- "outputs": [
567
+ "name": "requestOwnershipHandover",
568
+ "outputs": [],
569
+ "stateMutability": "payable",
570
+ "type": "function"
571
+ },
572
+ {
573
+ "inputs": [
429
574
  {
430
- "internalType": "string",
431
- "name": "",
432
- "type": "string"
575
+ "internalType": "bool",
576
+ "name": "_paused",
577
+ "type": "bool"
433
578
  }
434
579
  ],
435
- "stateMutability": "view",
580
+ "name": "setTransferPaused",
581
+ "outputs": [],
582
+ "stateMutability": "nonpayable",
436
583
  "type": "function"
437
584
  },
438
585
  {
439
586
  "inputs": [],
440
- "name": "tokenURI",
587
+ "name": "symbol",
441
588
  "outputs": [
442
589
  {
443
590
  "internalType": "string",
@@ -454,7 +601,7 @@ exports.MusdtMintable_jsonAbi = [
454
601
  "outputs": [
455
602
  {
456
603
  "internalType": "uint256",
457
- "name": "",
604
+ "name": "result",
458
605
  "type": "uint256"
459
606
  }
460
607
  ],
@@ -470,7 +617,7 @@ exports.MusdtMintable_jsonAbi = [
470
617
  },
471
618
  {
472
619
  "internalType": "uint256",
473
- "name": "value",
620
+ "name": "amount",
474
621
  "type": "uint256"
475
622
  }
476
623
  ],
@@ -499,7 +646,7 @@ exports.MusdtMintable_jsonAbi = [
499
646
  },
500
647
  {
501
648
  "internalType": "uint256",
502
- "name": "value",
649
+ "name": "amount",
503
650
  "type": "uint256"
504
651
  }
505
652
  ],
@@ -524,12 +671,12 @@ exports.MusdtMintable_jsonAbi = [
524
671
  ],
525
672
  "name": "transferOwnership",
526
673
  "outputs": [],
527
- "stateMutability": "nonpayable",
674
+ "stateMutability": "payable",
528
675
  "type": "function"
529
676
  }
530
677
  ];
531
678
  /**
532
- * MusdtMintable_json Contract Class
679
+ * UltimateTokenOwnable_json Contract Class
533
680
  *
534
681
  * Provides a class-based API similar to TypeChain for interacting with the contract.
535
682
  *
@@ -537,12 +684,12 @@ exports.MusdtMintable_jsonAbi = [
537
684
  * ```typescript
538
685
  * import { createPublicClient, createWalletClient, http } from 'viem';
539
686
  * import { mainnet } from 'viem/chains';
540
- * import { MusdtMintable_json } from 'MusdtMintable_json';
687
+ * import { UltimateTokenOwnable_json } from 'UltimateTokenOwnable_json';
541
688
  *
542
689
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
543
690
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
544
691
  *
545
- * const contract = new MusdtMintable_json('0x...', { publicClient, walletClient });
692
+ * const contract = new UltimateTokenOwnable_json('0x...', { publicClient, walletClient });
546
693
  *
547
694
  * // Read functions
548
695
  * const result = await contract.balanceOf('0x...');
@@ -560,13 +707,13 @@ exports.MusdtMintable_jsonAbi = [
560
707
  * });
561
708
  * ```
562
709
  */
563
- class MusdtMintable_json {
710
+ class UltimateTokenOwnable_json {
564
711
  constructor(address, clients) {
565
712
  this.contractAddress = address;
566
713
  this.publicClient = clients.publicClient;
567
714
  this.contract = (0, viem_1.getContract)({
568
715
  address,
569
- abi: exports.MusdtMintable_jsonAbi,
716
+ abi: exports.UltimateTokenOwnable_jsonAbi,
570
717
  client: {
571
718
  public: clients.publicClient,
572
719
  wallet: clients.walletClient,
@@ -585,19 +732,26 @@ class MusdtMintable_json {
585
732
  getContract() {
586
733
  return this.contract;
587
734
  }
735
+ /**
736
+ * DOMAIN_SEPARATOR
737
+ * view
738
+ */
739
+ async DOMAIN_SEPARATOR() {
740
+ return this.contract.read.DOMAIN_SEPARATOR();
741
+ }
588
742
  /**
589
743
  * allowance
590
744
  * view
591
745
  */
592
- async allowance(owner_, spender) {
593
- return this.contract.read.allowance([owner_, spender]);
746
+ async allowance(owner, spender) {
747
+ return this.contract.read.allowance([owner, spender]);
594
748
  }
595
749
  /**
596
750
  * balanceOf
597
751
  * view
598
752
  */
599
- async balanceOf(who) {
600
- return this.contract.read.balanceOf([who]);
753
+ async balanceOf(owner) {
754
+ return this.contract.read.balanceOf([owner]);
601
755
  }
602
756
  /**
603
757
  * decimals
@@ -607,11 +761,11 @@ class MusdtMintable_json {
607
761
  return this.contract.read.decimals();
608
762
  }
609
763
  /**
610
- * logoURI
764
+ * maxSupply
611
765
  * view
612
766
  */
613
- async logoURI() {
614
- return this.contract.read.logoURI();
767
+ async maxSupply() {
768
+ return this.contract.read.maxSupply();
615
769
  }
616
770
  /**
617
771
  * name
@@ -620,6 +774,13 @@ class MusdtMintable_json {
620
774
  async name() {
621
775
  return this.contract.read.name();
622
776
  }
777
+ /**
778
+ * nonces
779
+ * view
780
+ */
781
+ async nonces(owner) {
782
+ return this.contract.read.nonces([owner]);
783
+ }
623
784
  /**
624
785
  * owner
625
786
  * view
@@ -628,18 +789,25 @@ class MusdtMintable_json {
628
789
  return this.contract.read.owner();
629
790
  }
630
791
  /**
631
- * symbol
792
+ * ownershipHandoverExpiresAt
632
793
  * view
633
794
  */
634
- async symbol() {
635
- return this.contract.read.symbol();
795
+ async ownershipHandoverExpiresAt(pendingOwner) {
796
+ return this.contract.read.ownershipHandoverExpiresAt([pendingOwner]);
797
+ }
798
+ /**
799
+ * paused
800
+ * view
801
+ */
802
+ async paused() {
803
+ return this.contract.read.paused();
636
804
  }
637
805
  /**
638
- * tokenURI
806
+ * symbol
639
807
  * view
640
808
  */
641
- async tokenURI() {
642
- return this.contract.read.tokenURI();
809
+ async symbol() {
810
+ return this.contract.read.symbol();
643
811
  }
644
812
  /**
645
813
  * totalSupply
@@ -653,114 +821,147 @@ class MusdtMintable_json {
653
821
  * nonpayable
654
822
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
655
823
  */
656
- async approve(spender, value, options) {
824
+ async approve(spender, amount, options) {
657
825
  if (!this.contract.write) {
658
826
  throw new Error('Wallet client is required for write operations');
659
827
  }
660
- return this.contract.write.approve([spender, value], options);
828
+ return this.contract.write.approve([spender, amount], options);
661
829
  }
662
830
  /**
663
- * decreaseApproval
831
+ * burn
664
832
  * nonpayable
665
833
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
666
834
  */
667
- async decreaseApproval(spender, subtractedValue, options) {
835
+ async burn(value, options) {
668
836
  if (!this.contract.write) {
669
837
  throw new Error('Wallet client is required for write operations');
670
838
  }
671
- return this.contract.write.decreaseApproval([spender, subtractedValue], options);
839
+ return this.contract.write.burn([value], options);
672
840
  }
673
841
  /**
674
- * increaseApproval
675
- * nonpayable
842
+ * cancelOwnershipHandover
843
+ * payable
676
844
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
677
845
  */
678
- async increaseApproval(spender, addedValue, options) {
846
+ async cancelOwnershipHandover(options) {
679
847
  if (!this.contract.write) {
680
848
  throw new Error('Wallet client is required for write operations');
681
849
  }
682
- return this.contract.write.increaseApproval([spender, addedValue], options);
850
+ return this.contract.write.cancelOwnershipHandover(options);
683
851
  }
684
852
  /**
685
- * mint
853
+ * completeOwnershipHandover
854
+ * payable
855
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
856
+ */
857
+ async completeOwnershipHandover(pendingOwner, options) {
858
+ if (!this.contract.write) {
859
+ throw new Error('Wallet client is required for write operations');
860
+ }
861
+ return this.contract.write.completeOwnershipHandover([pendingOwner], options);
862
+ }
863
+ /**
864
+ * disableInitializer
686
865
  * nonpayable
687
866
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
688
867
  */
689
- async mint(to, value, options) {
868
+ async disableInitializer(options) {
690
869
  if (!this.contract.write) {
691
870
  throw new Error('Wallet client is required for write operations');
692
871
  }
693
- return this.contract.write.mint([to, value], options);
872
+ return this.contract.write.disableInitializer(options);
694
873
  }
695
874
  /**
696
- * setLogoURI
875
+ * initialize
697
876
  * nonpayable
698
877
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
699
878
  */
700
- async setLogoURI(newURI, options) {
879
+ async initialize(authInfo, tokenInfo, supplyInfo, options) {
701
880
  if (!this.contract.write) {
702
881
  throw new Error('Wallet client is required for write operations');
703
882
  }
704
- return this.contract.write.setLogoURI([newURI], options);
883
+ return this.contract.write.initialize([authInfo, tokenInfo, supplyInfo], options);
705
884
  }
706
885
  /**
707
- * setName
886
+ * mint
708
887
  * nonpayable
709
888
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
710
889
  */
711
- async setName(newName, options) {
890
+ async mint(to, amount, options) {
712
891
  if (!this.contract.write) {
713
892
  throw new Error('Wallet client is required for write operations');
714
893
  }
715
- return this.contract.write.setName([newName], options);
894
+ return this.contract.write.mint([to, amount], options);
716
895
  }
717
896
  /**
718
- * setSymbol
897
+ * permit
719
898
  * nonpayable
720
899
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
721
900
  */
722
- async setSymbol(newSymbol, options) {
901
+ async permit(owner, spender, value, deadline, v, r, s, options) {
902
+ if (!this.contract.write) {
903
+ throw new Error('Wallet client is required for write operations');
904
+ }
905
+ return this.contract.write.permit([owner, spender, value, deadline, v, r, s], options);
906
+ }
907
+ /**
908
+ * renounceOwnership
909
+ * payable
910
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
911
+ */
912
+ async renounceOwnership(options) {
913
+ if (!this.contract.write) {
914
+ throw new Error('Wallet client is required for write operations');
915
+ }
916
+ return this.contract.write.renounceOwnership(options);
917
+ }
918
+ /**
919
+ * requestOwnershipHandover
920
+ * payable
921
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
922
+ */
923
+ async requestOwnershipHandover(options) {
723
924
  if (!this.contract.write) {
724
925
  throw new Error('Wallet client is required for write operations');
725
926
  }
726
- return this.contract.write.setSymbol([newSymbol], options);
927
+ return this.contract.write.requestOwnershipHandover(options);
727
928
  }
728
929
  /**
729
- * setTokenURI
930
+ * setTransferPaused
730
931
  * nonpayable
731
932
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
732
933
  */
733
- async setTokenURI(newURI, options) {
934
+ async setTransferPaused(_paused, options) {
734
935
  if (!this.contract.write) {
735
936
  throw new Error('Wallet client is required for write operations');
736
937
  }
737
- return this.contract.write.setTokenURI([newURI], options);
938
+ return this.contract.write.setTransferPaused([_paused], options);
738
939
  }
739
940
  /**
740
941
  * transfer
741
942
  * nonpayable
742
943
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
743
944
  */
744
- async transfer(to, value, options) {
945
+ async transfer(to, amount, options) {
745
946
  if (!this.contract.write) {
746
947
  throw new Error('Wallet client is required for write operations');
747
948
  }
748
- return this.contract.write.transfer([to, value], options);
949
+ return this.contract.write.transfer([to, amount], options);
749
950
  }
750
951
  /**
751
952
  * transferFrom
752
953
  * nonpayable
753
954
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
754
955
  */
755
- async transferFrom(from, to, value, options) {
956
+ async transferFrom(from, to, amount, options) {
756
957
  if (!this.contract.write) {
757
958
  throw new Error('Wallet client is required for write operations');
758
959
  }
759
- return this.contract.write.transferFrom([from, to, value], options);
960
+ return this.contract.write.transferFrom([from, to, amount], options);
760
961
  }
761
962
  /**
762
963
  * transferOwnership
763
- * nonpayable
964
+ * payable
764
965
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
765
966
  */
766
967
  async transferOwnership(newOwner, options) {
@@ -788,80 +989,104 @@ class MusdtMintable_json {
788
989
  * Returns gas estimate and result without sending transaction
789
990
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
790
991
  */
791
- async approve(spender, value, options) {
792
- return contract.simulate.approve([spender, value], options);
992
+ async approve(spender, amount, options) {
993
+ return contract.simulate.approve([spender, amount], options);
994
+ },
995
+ /**
996
+ * Simulate burn
997
+ * Returns gas estimate and result without sending transaction
998
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
999
+ */
1000
+ async burn(value, options) {
1001
+ return contract.simulate.burn([value], options);
1002
+ },
1003
+ /**
1004
+ * Simulate cancelOwnershipHandover
1005
+ * Returns gas estimate and result without sending transaction
1006
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1007
+ */
1008
+ async cancelOwnershipHandover(options) {
1009
+ return contract.simulate.cancelOwnershipHandover(options);
793
1010
  },
794
1011
  /**
795
- * Simulate decreaseApproval
1012
+ * Simulate completeOwnershipHandover
796
1013
  * Returns gas estimate and result without sending transaction
797
1014
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
798
1015
  */
799
- async decreaseApproval(spender, subtractedValue, options) {
800
- return contract.simulate.decreaseApproval([spender, subtractedValue], options);
1016
+ async completeOwnershipHandover(pendingOwner, options) {
1017
+ return contract.simulate.completeOwnershipHandover([pendingOwner], options);
801
1018
  },
802
1019
  /**
803
- * Simulate increaseApproval
1020
+ * Simulate disableInitializer
804
1021
  * Returns gas estimate and result without sending transaction
805
1022
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
806
1023
  */
807
- async increaseApproval(spender, addedValue, options) {
808
- return contract.simulate.increaseApproval([spender, addedValue], options);
1024
+ async disableInitializer(options) {
1025
+ return contract.simulate.disableInitializer(options);
1026
+ },
1027
+ /**
1028
+ * Simulate initialize
1029
+ * Returns gas estimate and result without sending transaction
1030
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1031
+ */
1032
+ async initialize(authInfo, tokenInfo, supplyInfo, options) {
1033
+ return contract.simulate.initialize([authInfo, tokenInfo, supplyInfo], options);
809
1034
  },
810
1035
  /**
811
1036
  * Simulate mint
812
1037
  * Returns gas estimate and result without sending transaction
813
1038
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
814
1039
  */
815
- async mint(to, value, options) {
816
- return contract.simulate.mint([to, value], options);
1040
+ async mint(to, amount, options) {
1041
+ return contract.simulate.mint([to, amount], options);
817
1042
  },
818
1043
  /**
819
- * Simulate setLogoURI
1044
+ * Simulate permit
820
1045
  * Returns gas estimate and result without sending transaction
821
1046
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
822
1047
  */
823
- async setLogoURI(newURI, options) {
824
- return contract.simulate.setLogoURI([newURI], options);
1048
+ async permit(owner, spender, value, deadline, v, r, s, options) {
1049
+ return contract.simulate.permit([owner, spender, value, deadline, v, r, s], options);
825
1050
  },
826
1051
  /**
827
- * Simulate setName
1052
+ * Simulate renounceOwnership
828
1053
  * Returns gas estimate and result without sending transaction
829
1054
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
830
1055
  */
831
- async setName(newName, options) {
832
- return contract.simulate.setName([newName], options);
1056
+ async renounceOwnership(options) {
1057
+ return contract.simulate.renounceOwnership(options);
833
1058
  },
834
1059
  /**
835
- * Simulate setSymbol
1060
+ * Simulate requestOwnershipHandover
836
1061
  * Returns gas estimate and result without sending transaction
837
1062
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
838
1063
  */
839
- async setSymbol(newSymbol, options) {
840
- return contract.simulate.setSymbol([newSymbol], options);
1064
+ async requestOwnershipHandover(options) {
1065
+ return contract.simulate.requestOwnershipHandover(options);
841
1066
  },
842
1067
  /**
843
- * Simulate setTokenURI
1068
+ * Simulate setTransferPaused
844
1069
  * Returns gas estimate and result without sending transaction
845
1070
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
846
1071
  */
847
- async setTokenURI(newURI, options) {
848
- return contract.simulate.setTokenURI([newURI], options);
1072
+ async setTransferPaused(_paused, options) {
1073
+ return contract.simulate.setTransferPaused([_paused], options);
849
1074
  },
850
1075
  /**
851
1076
  * Simulate transfer
852
1077
  * Returns gas estimate and result without sending transaction
853
1078
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
854
1079
  */
855
- async transfer(to, value, options) {
856
- return contract.simulate.transfer([to, value], options);
1080
+ async transfer(to, amount, options) {
1081
+ return contract.simulate.transfer([to, amount], options);
857
1082
  },
858
1083
  /**
859
1084
  * Simulate transferFrom
860
1085
  * Returns gas estimate and result without sending transaction
861
1086
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
862
1087
  */
863
- async transferFrom(from, to, value, options) {
864
- return contract.simulate.transferFrom([from, to, value], options);
1088
+ async transferFrom(from, to, amount, options) {
1089
+ return contract.simulate.transferFrom([from, to, amount], options);
865
1090
  },
866
1091
  /**
867
1092
  * Simulate transferOwnership
@@ -896,7 +1121,7 @@ class MusdtMintable_json {
896
1121
  Approval: (callback, filter) => {
897
1122
  return this.publicClient.watchContractEvent({
898
1123
  address: this.contractAddress,
899
- abi: exports.MusdtMintable_jsonAbi,
1124
+ abi: exports.UltimateTokenOwnable_jsonAbi,
900
1125
  eventName: 'Approval',
901
1126
  args: filter,
902
1127
  onLogs: (logs) => {
@@ -907,16 +1132,16 @@ class MusdtMintable_json {
907
1132
  });
908
1133
  },
909
1134
  /**
910
- * Watch LogoURIChanged events
1135
+ * Watch Initialized events
911
1136
  * @param callback Function to call when event is emitted
912
1137
  * @param filter Optional filter for indexed parameters
913
1138
  * @returns Unwatch function to stop listening
914
1139
  */
915
- LogoURIChanged: (callback) => {
1140
+ Initialized: (callback) => {
916
1141
  return this.publicClient.watchContractEvent({
917
1142
  address: this.contractAddress,
918
- abi: exports.MusdtMintable_jsonAbi,
919
- eventName: 'LogoURIChanged',
1143
+ abi: exports.UltimateTokenOwnable_jsonAbi,
1144
+ eventName: 'Initialized',
920
1145
  onLogs: (logs) => {
921
1146
  logs.forEach((log) => {
922
1147
  callback(log.args);
@@ -925,34 +1150,16 @@ class MusdtMintable_json {
925
1150
  });
926
1151
  },
927
1152
  /**
928
- * Watch NameChanged events
1153
+ * Watch OwnershipHandoverCanceled events
929
1154
  * @param callback Function to call when event is emitted
930
1155
  * @param filter Optional filter for indexed parameters
931
1156
  * @returns Unwatch function to stop listening
932
1157
  */
933
- NameChanged: (callback) => {
1158
+ OwnershipHandoverCanceled: (callback, filter) => {
934
1159
  return this.publicClient.watchContractEvent({
935
1160
  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',
1161
+ abi: exports.UltimateTokenOwnable_jsonAbi,
1162
+ eventName: 'OwnershipHandoverCanceled',
956
1163
  args: filter,
957
1164
  onLogs: (logs) => {
958
1165
  logs.forEach((log) => {
@@ -962,16 +1169,17 @@ class MusdtMintable_json {
962
1169
  });
963
1170
  },
964
1171
  /**
965
- * Watch SymbolChanged events
1172
+ * Watch OwnershipHandoverRequested events
966
1173
  * @param callback Function to call when event is emitted
967
1174
  * @param filter Optional filter for indexed parameters
968
1175
  * @returns Unwatch function to stop listening
969
1176
  */
970
- SymbolChanged: (callback) => {
1177
+ OwnershipHandoverRequested: (callback, filter) => {
971
1178
  return this.publicClient.watchContractEvent({
972
1179
  address: this.contractAddress,
973
- abi: exports.MusdtMintable_jsonAbi,
974
- eventName: 'SymbolChanged',
1180
+ abi: exports.UltimateTokenOwnable_jsonAbi,
1181
+ eventName: 'OwnershipHandoverRequested',
1182
+ args: filter,
975
1183
  onLogs: (logs) => {
976
1184
  logs.forEach((log) => {
977
1185
  callback(log.args);
@@ -980,16 +1188,17 @@ class MusdtMintable_json {
980
1188
  });
981
1189
  },
982
1190
  /**
983
- * Watch TokenURIChanged events
1191
+ * Watch OwnershipTransferred events
984
1192
  * @param callback Function to call when event is emitted
985
1193
  * @param filter Optional filter for indexed parameters
986
1194
  * @returns Unwatch function to stop listening
987
1195
  */
988
- TokenURIChanged: (callback) => {
1196
+ OwnershipTransferred: (callback, filter) => {
989
1197
  return this.publicClient.watchContractEvent({
990
1198
  address: this.contractAddress,
991
- abi: exports.MusdtMintable_jsonAbi,
992
- eventName: 'TokenURIChanged',
1199
+ abi: exports.UltimateTokenOwnable_jsonAbi,
1200
+ eventName: 'OwnershipTransferred',
1201
+ args: filter,
993
1202
  onLogs: (logs) => {
994
1203
  logs.forEach((log) => {
995
1204
  callback(log.args);
@@ -1006,7 +1215,7 @@ class MusdtMintable_json {
1006
1215
  Transfer: (callback, filter) => {
1007
1216
  return this.publicClient.watchContractEvent({
1008
1217
  address: this.contractAddress,
1009
- abi: exports.MusdtMintable_jsonAbi,
1218
+ abi: exports.UltimateTokenOwnable_jsonAbi,
1010
1219
  eventName: 'Transfer',
1011
1220
  args: filter,
1012
1221
  onLogs: (logs) => {
@@ -1019,4 +1228,4 @@ class MusdtMintable_json {
1019
1228
  };
1020
1229
  }
1021
1230
  }
1022
- exports.MusdtMintable_json = MusdtMintable_json;
1231
+ exports.UltimateTokenOwnable_json = UltimateTokenOwnable_json;