@gitmyabi/dot 1.0.1 → 1.0.3

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,133 +1,42 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Token_json = exports.Token_jsonAbi = void 0;
3
+ exports.ERC6160Ext20_json = exports.ERC6160Ext20_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * Token_json ABI
6
+ * ERC6160Ext20_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.Token_jsonAbi = [
10
+ exports.ERC6160Ext20_jsonAbi = [
11
11
  {
12
12
  "inputs": [
13
13
  {
14
- "internalType": "string",
15
- "name": "_name",
16
- "type": "string"
14
+ "internalType": "address",
15
+ "name": "admin",
16
+ "type": "address"
17
17
  },
18
18
  {
19
19
  "internalType": "string",
20
- "name": "_symbol",
20
+ "name": "name",
21
21
  "type": "string"
22
22
  },
23
23
  {
24
- "internalType": "uint8",
25
- "name": "_decimals",
26
- "type": "uint8"
24
+ "internalType": "string",
25
+ "name": "symbol",
26
+ "type": "string"
27
27
  }
28
28
  ],
29
29
  "stateMutability": "nonpayable",
30
30
  "type": "constructor"
31
31
  },
32
- {
33
- "inputs": [
34
- {
35
- "internalType": "address",
36
- "name": "spender",
37
- "type": "address"
38
- },
39
- {
40
- "internalType": "uint256",
41
- "name": "allowance",
42
- "type": "uint256"
43
- },
44
- {
45
- "internalType": "uint256",
46
- "name": "needed",
47
- "type": "uint256"
48
- }
49
- ],
50
- "name": "InsufficientAllowance",
51
- "type": "error"
52
- },
53
- {
54
- "inputs": [
55
- {
56
- "internalType": "address",
57
- "name": "sender",
58
- "type": "address"
59
- },
60
- {
61
- "internalType": "uint256",
62
- "name": "balance",
63
- "type": "uint256"
64
- },
65
- {
66
- "internalType": "uint256",
67
- "name": "needed",
68
- "type": "uint256"
69
- }
70
- ],
71
- "name": "InsufficientBalance",
72
- "type": "error"
73
- },
74
- {
75
- "inputs": [
76
- {
77
- "internalType": "address",
78
- "name": "",
79
- "type": "address"
80
- }
81
- ],
82
- "name": "InvalidApprover",
83
- "type": "error"
84
- },
85
- {
86
- "inputs": [
87
- {
88
- "internalType": "address",
89
- "name": "",
90
- "type": "address"
91
- }
92
- ],
93
- "name": "InvalidReceiver",
94
- "type": "error"
95
- },
96
- {
97
- "inputs": [
98
- {
99
- "internalType": "address",
100
- "name": "",
101
- "type": "address"
102
- }
103
- ],
104
- "name": "InvalidSender",
105
- "type": "error"
106
- },
107
- {
108
- "inputs": [],
109
- "name": "InvalidSignature",
110
- "type": "error"
111
- },
112
- {
113
- "inputs": [
114
- {
115
- "internalType": "address",
116
- "name": "",
117
- "type": "address"
118
- }
119
- ],
120
- "name": "InvalidSpender",
121
- "type": "error"
122
- },
123
32
  {
124
33
  "inputs": [],
125
- "name": "PermitExpired",
34
+ "name": "NotRoleAdmin",
126
35
  "type": "error"
127
36
  },
128
37
  {
129
38
  "inputs": [],
130
- "name": "Unauthorized",
39
+ "name": "PermissionDenied",
131
40
  "type": "error"
132
41
  },
133
42
  {
@@ -182,7 +91,20 @@ exports.Token_jsonAbi = [
182
91
  },
183
92
  {
184
93
  "inputs": [],
185
- "name": "DOMAIN_SEPARATOR",
94
+ "name": "BURNER_ROLE",
95
+ "outputs": [
96
+ {
97
+ "internalType": "bytes32",
98
+ "name": "",
99
+ "type": "bytes32"
100
+ }
101
+ ],
102
+ "stateMutability": "view",
103
+ "type": "function"
104
+ },
105
+ {
106
+ "inputs": [],
107
+ "name": "MINTER_ROLE",
186
108
  "outputs": [
187
109
  {
188
110
  "internalType": "bytes32",
@@ -197,7 +119,7 @@ exports.Token_jsonAbi = [
197
119
  "inputs": [
198
120
  {
199
121
  "internalType": "address",
200
- "name": "_owner",
122
+ "name": "owner",
201
123
  "type": "address"
202
124
  },
203
125
  {
@@ -264,12 +186,12 @@ exports.Token_jsonAbi = [
264
186
  "inputs": [
265
187
  {
266
188
  "internalType": "address",
267
- "name": "account",
189
+ "name": "_from",
268
190
  "type": "address"
269
191
  },
270
192
  {
271
193
  "internalType": "uint256",
272
- "name": "amount",
194
+ "name": "_amount",
273
195
  "type": "uint256"
274
196
  }
275
197
  ],
@@ -279,26 +201,26 @@ exports.Token_jsonAbi = [
279
201
  "type": "function"
280
202
  },
281
203
  {
282
- "inputs": [],
283
- "name": "decimals",
284
- "outputs": [
204
+ "inputs": [
285
205
  {
286
- "internalType": "uint8",
287
- "name": "",
288
- "type": "uint8"
206
+ "internalType": "address",
207
+ "name": "newAdmin",
208
+ "type": "address"
289
209
  }
290
210
  ],
291
- "stateMutability": "view",
211
+ "name": "changeAdmin",
212
+ "outputs": [],
213
+ "stateMutability": "nonpayable",
292
214
  "type": "function"
293
215
  },
294
216
  {
295
217
  "inputs": [],
296
- "name": "gateway",
218
+ "name": "decimals",
297
219
  "outputs": [
298
220
  {
299
- "internalType": "address",
221
+ "internalType": "uint8",
300
222
  "name": "",
301
- "type": "address"
223
+ "type": "uint8"
302
224
  }
303
225
  ],
304
226
  "stateMutability": "view",
@@ -308,47 +230,89 @@ exports.Token_jsonAbi = [
308
230
  "inputs": [
309
231
  {
310
232
  "internalType": "address",
311
- "name": "account",
233
+ "name": "spender",
312
234
  "type": "address"
313
235
  },
314
236
  {
315
237
  "internalType": "uint256",
316
- "name": "amount",
238
+ "name": "subtractedValue",
317
239
  "type": "uint256"
318
240
  }
319
241
  ],
320
- "name": "mint",
321
- "outputs": [],
242
+ "name": "decreaseAllowance",
243
+ "outputs": [
244
+ {
245
+ "internalType": "bool",
246
+ "name": "",
247
+ "type": "bool"
248
+ }
249
+ ],
322
250
  "stateMutability": "nonpayable",
323
251
  "type": "function"
324
252
  },
325
253
  {
326
254
  "inputs": [],
327
- "name": "name",
255
+ "name": "getBurnerRole",
328
256
  "outputs": [
329
257
  {
330
- "internalType": "string",
258
+ "internalType": "bytes32",
331
259
  "name": "",
332
- "type": "string"
260
+ "type": "bytes32"
333
261
  }
334
262
  ],
335
- "stateMutability": "view",
263
+ "stateMutability": "pure",
264
+ "type": "function"
265
+ },
266
+ {
267
+ "inputs": [],
268
+ "name": "getMinterRole",
269
+ "outputs": [
270
+ {
271
+ "internalType": "bytes32",
272
+ "name": "",
273
+ "type": "bytes32"
274
+ }
275
+ ],
276
+ "stateMutability": "pure",
336
277
  "type": "function"
337
278
  },
338
279
  {
339
280
  "inputs": [
281
+ {
282
+ "internalType": "bytes32",
283
+ "name": "_role",
284
+ "type": "bytes32"
285
+ },
340
286
  {
341
287
  "internalType": "address",
342
- "name": "account",
288
+ "name": "_account",
343
289
  "type": "address"
344
290
  }
345
291
  ],
346
- "name": "nonces",
292
+ "name": "grantRole",
293
+ "outputs": [],
294
+ "stateMutability": "nonpayable",
295
+ "type": "function"
296
+ },
297
+ {
298
+ "inputs": [
299
+ {
300
+ "internalType": "bytes32",
301
+ "name": "_role",
302
+ "type": "bytes32"
303
+ },
304
+ {
305
+ "internalType": "address",
306
+ "name": "_account",
307
+ "type": "address"
308
+ }
309
+ ],
310
+ "name": "hasRole",
347
311
  "outputs": [
348
312
  {
349
- "internalType": "uint256",
313
+ "internalType": "bool",
350
314
  "name": "",
351
- "type": "uint256"
315
+ "type": "bool"
352
316
  }
353
317
  ],
354
318
  "stateMutability": "view",
@@ -356,11 +320,6 @@ exports.Token_jsonAbi = [
356
320
  },
357
321
  {
358
322
  "inputs": [
359
- {
360
- "internalType": "address",
361
- "name": "issuer",
362
- "type": "address"
363
- },
364
323
  {
365
324
  "internalType": "address",
366
325
  "name": "spender",
@@ -368,35 +327,89 @@ exports.Token_jsonAbi = [
368
327
  },
369
328
  {
370
329
  "internalType": "uint256",
371
- "name": "value",
330
+ "name": "addedValue",
372
331
  "type": "uint256"
332
+ }
333
+ ],
334
+ "name": "increaseAllowance",
335
+ "outputs": [
336
+ {
337
+ "internalType": "bool",
338
+ "name": "",
339
+ "type": "bool"
340
+ }
341
+ ],
342
+ "stateMutability": "nonpayable",
343
+ "type": "function"
344
+ },
345
+ {
346
+ "inputs": [
347
+ {
348
+ "internalType": "address",
349
+ "name": "_to",
350
+ "type": "address"
373
351
  },
374
352
  {
375
353
  "internalType": "uint256",
376
- "name": "deadline",
354
+ "name": "_amount",
377
355
  "type": "uint256"
378
- },
356
+ }
357
+ ],
358
+ "name": "mint",
359
+ "outputs": [],
360
+ "stateMutability": "nonpayable",
361
+ "type": "function"
362
+ },
363
+ {
364
+ "inputs": [],
365
+ "name": "name",
366
+ "outputs": [
379
367
  {
380
- "internalType": "uint8",
381
- "name": "v",
382
- "type": "uint8"
383
- },
368
+ "internalType": "string",
369
+ "name": "",
370
+ "type": "string"
371
+ }
372
+ ],
373
+ "stateMutability": "view",
374
+ "type": "function"
375
+ },
376
+ {
377
+ "inputs": [
384
378
  {
385
379
  "internalType": "bytes32",
386
- "name": "r",
380
+ "name": "_role",
387
381
  "type": "bytes32"
388
382
  },
389
383
  {
390
- "internalType": "bytes32",
391
- "name": "s",
392
- "type": "bytes32"
384
+ "internalType": "address",
385
+ "name": "_account",
386
+ "type": "address"
393
387
  }
394
388
  ],
395
- "name": "permit",
389
+ "name": "revokeRole",
396
390
  "outputs": [],
397
391
  "stateMutability": "nonpayable",
398
392
  "type": "function"
399
393
  },
394
+ {
395
+ "inputs": [
396
+ {
397
+ "internalType": "bytes4",
398
+ "name": "_interfaceId",
399
+ "type": "bytes4"
400
+ }
401
+ ],
402
+ "name": "supportsInterface",
403
+ "outputs": [
404
+ {
405
+ "internalType": "bool",
406
+ "name": "",
407
+ "type": "bool"
408
+ }
409
+ ],
410
+ "stateMutability": "view",
411
+ "type": "function"
412
+ },
400
413
  {
401
414
  "inputs": [],
402
415
  "name": "symbol",
@@ -427,7 +440,7 @@ exports.Token_jsonAbi = [
427
440
  "inputs": [
428
441
  {
429
442
  "internalType": "address",
430
- "name": "recipient",
443
+ "name": "to",
431
444
  "type": "address"
432
445
  },
433
446
  {
@@ -451,12 +464,12 @@ exports.Token_jsonAbi = [
451
464
  "inputs": [
452
465
  {
453
466
  "internalType": "address",
454
- "name": "sender",
467
+ "name": "from",
455
468
  "type": "address"
456
469
  },
457
470
  {
458
471
  "internalType": "address",
459
- "name": "recipient",
472
+ "name": "to",
460
473
  "type": "address"
461
474
  },
462
475
  {
@@ -478,7 +491,7 @@ exports.Token_jsonAbi = [
478
491
  }
479
492
  ];
480
493
  /**
481
- * Token_json Contract Class
494
+ * ERC6160Ext20_json Contract Class
482
495
  *
483
496
  * Provides a class-based API similar to TypeChain for interacting with the contract.
484
497
  *
@@ -486,12 +499,12 @@ exports.Token_jsonAbi = [
486
499
  * ```typescript
487
500
  * import { createPublicClient, createWalletClient, http } from 'viem';
488
501
  * import { mainnet } from 'viem/chains';
489
- * import { Token_json } from 'Token_json';
502
+ * import { ERC6160Ext20_json } from 'ERC6160Ext20_json';
490
503
  *
491
504
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
492
505
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
493
506
  *
494
- * const contract = new Token_json('0x...', { publicClient, walletClient });
507
+ * const contract = new ERC6160Ext20_json('0x...', { publicClient, walletClient });
495
508
  *
496
509
  * // Read functions
497
510
  * const result = await contract.balanceOf('0x...');
@@ -509,13 +522,13 @@ exports.Token_jsonAbi = [
509
522
  * });
510
523
  * ```
511
524
  */
512
- class Token_json {
525
+ class ERC6160Ext20_json {
513
526
  constructor(address, clients) {
514
527
  this.contractAddress = address;
515
528
  this.publicClient = clients.publicClient;
516
529
  this.contract = (0, viem_1.getContract)({
517
530
  address,
518
- abi: exports.Token_jsonAbi,
531
+ abi: exports.ERC6160Ext20_jsonAbi,
519
532
  client: {
520
533
  public: clients.publicClient,
521
534
  wallet: clients.walletClient,
@@ -535,18 +548,25 @@ class Token_json {
535
548
  return this.contract;
536
549
  }
537
550
  /**
538
- * DOMAIN_SEPARATOR
551
+ * BURNER_ROLE
539
552
  * view
540
553
  */
541
- async DOMAIN_SEPARATOR() {
542
- return this.contract.read.DOMAIN_SEPARATOR();
554
+ async BURNER_ROLE() {
555
+ return this.contract.read.BURNER_ROLE();
556
+ }
557
+ /**
558
+ * MINTER_ROLE
559
+ * view
560
+ */
561
+ async MINTER_ROLE() {
562
+ return this.contract.read.MINTER_ROLE();
543
563
  }
544
564
  /**
545
565
  * allowance
546
566
  * view
547
567
  */
548
- async allowance(_owner, spender) {
549
- return this.contract.read.allowance([_owner, spender]);
568
+ async allowance(owner, spender) {
569
+ return this.contract.read.allowance([owner, spender]);
550
570
  }
551
571
  /**
552
572
  * balanceOf
@@ -563,11 +583,25 @@ class Token_json {
563
583
  return this.contract.read.decimals();
564
584
  }
565
585
  /**
566
- * gateway
586
+ * getBurnerRole
587
+ * pure
588
+ */
589
+ async getBurnerRole() {
590
+ return this.contract.read.getBurnerRole();
591
+ }
592
+ /**
593
+ * getMinterRole
594
+ * pure
595
+ */
596
+ async getMinterRole() {
597
+ return this.contract.read.getMinterRole();
598
+ }
599
+ /**
600
+ * hasRole
567
601
  * view
568
602
  */
569
- async gateway() {
570
- return this.contract.read.gateway();
603
+ async hasRole(_role, _account) {
604
+ return this.contract.read.hasRole([_role, _account]);
571
605
  }
572
606
  /**
573
607
  * name
@@ -577,11 +611,11 @@ class Token_json {
577
611
  return this.contract.read.name();
578
612
  }
579
613
  /**
580
- * nonces
614
+ * supportsInterface
581
615
  * view
582
616
  */
583
- async nonces(account) {
584
- return this.contract.read.nonces([account]);
617
+ async supportsInterface(_interfaceId) {
618
+ return this.contract.read.supportsInterface([_interfaceId]);
585
619
  }
586
620
  /**
587
621
  * symbol
@@ -613,55 +647,99 @@ class Token_json {
613
647
  * nonpayable
614
648
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
615
649
  */
616
- async burn(account, amount, options) {
650
+ async burn(_from, _amount, options) {
617
651
  if (!this.contract.write) {
618
652
  throw new Error('Wallet client is required for write operations');
619
653
  }
620
- return this.contract.write.burn([account, amount], options);
654
+ return this.contract.write.burn([_from, _amount], options);
655
+ }
656
+ /**
657
+ * changeAdmin
658
+ * nonpayable
659
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
660
+ */
661
+ async changeAdmin(newAdmin, options) {
662
+ if (!this.contract.write) {
663
+ throw new Error('Wallet client is required for write operations');
664
+ }
665
+ return this.contract.write.changeAdmin([newAdmin], options);
666
+ }
667
+ /**
668
+ * decreaseAllowance
669
+ * nonpayable
670
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
671
+ */
672
+ async decreaseAllowance(spender, subtractedValue, options) {
673
+ if (!this.contract.write) {
674
+ throw new Error('Wallet client is required for write operations');
675
+ }
676
+ return this.contract.write.decreaseAllowance([spender, subtractedValue], options);
677
+ }
678
+ /**
679
+ * grantRole
680
+ * nonpayable
681
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
682
+ */
683
+ async grantRole(_role, _account, options) {
684
+ if (!this.contract.write) {
685
+ throw new Error('Wallet client is required for write operations');
686
+ }
687
+ return this.contract.write.grantRole([_role, _account], options);
688
+ }
689
+ /**
690
+ * increaseAllowance
691
+ * nonpayable
692
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
693
+ */
694
+ async increaseAllowance(spender, addedValue, options) {
695
+ if (!this.contract.write) {
696
+ throw new Error('Wallet client is required for write operations');
697
+ }
698
+ return this.contract.write.increaseAllowance([spender, addedValue], options);
621
699
  }
622
700
  /**
623
701
  * mint
624
702
  * nonpayable
625
703
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
626
704
  */
627
- async mint(account, amount, options) {
705
+ async mint(_to, _amount, options) {
628
706
  if (!this.contract.write) {
629
707
  throw new Error('Wallet client is required for write operations');
630
708
  }
631
- return this.contract.write.mint([account, amount], options);
709
+ return this.contract.write.mint([_to, _amount], options);
632
710
  }
633
711
  /**
634
- * permit
712
+ * revokeRole
635
713
  * nonpayable
636
714
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
637
715
  */
638
- async permit(issuer, spender, value, deadline, v, r, s, options) {
716
+ async revokeRole(_role, _account, options) {
639
717
  if (!this.contract.write) {
640
718
  throw new Error('Wallet client is required for write operations');
641
719
  }
642
- return this.contract.write.permit([issuer, spender, value, deadline, v, r, s], options);
720
+ return this.contract.write.revokeRole([_role, _account], options);
643
721
  }
644
722
  /**
645
723
  * transfer
646
724
  * nonpayable
647
725
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
648
726
  */
649
- async transfer(recipient, amount, options) {
727
+ async transfer(to, amount, options) {
650
728
  if (!this.contract.write) {
651
729
  throw new Error('Wallet client is required for write operations');
652
730
  }
653
- return this.contract.write.transfer([recipient, amount], options);
731
+ return this.contract.write.transfer([to, amount], options);
654
732
  }
655
733
  /**
656
734
  * transferFrom
657
735
  * nonpayable
658
736
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
659
737
  */
660
- async transferFrom(sender, recipient, amount, options) {
738
+ async transferFrom(from, to, amount, options) {
661
739
  if (!this.contract.write) {
662
740
  throw new Error('Wallet client is required for write operations');
663
741
  }
664
- return this.contract.write.transferFrom([sender, recipient, amount], options);
742
+ return this.contract.write.transferFrom([from, to, amount], options);
665
743
  }
666
744
  /**
667
745
  * Simulate contract write operations (dry-run without sending transaction)
@@ -690,40 +768,72 @@ class Token_json {
690
768
  * Returns gas estimate and result without sending transaction
691
769
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
692
770
  */
693
- async burn(account, amount, options) {
694
- return contract.simulate.burn([account, amount], options);
771
+ async burn(_from, _amount, options) {
772
+ return contract.simulate.burn([_from, _amount], options);
773
+ },
774
+ /**
775
+ * Simulate changeAdmin
776
+ * Returns gas estimate and result without sending transaction
777
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
778
+ */
779
+ async changeAdmin(newAdmin, options) {
780
+ return contract.simulate.changeAdmin([newAdmin], options);
781
+ },
782
+ /**
783
+ * Simulate decreaseAllowance
784
+ * Returns gas estimate and result without sending transaction
785
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
786
+ */
787
+ async decreaseAllowance(spender, subtractedValue, options) {
788
+ return contract.simulate.decreaseAllowance([spender, subtractedValue], options);
789
+ },
790
+ /**
791
+ * Simulate grantRole
792
+ * Returns gas estimate and result without sending transaction
793
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
794
+ */
795
+ async grantRole(_role, _account, options) {
796
+ return contract.simulate.grantRole([_role, _account], options);
797
+ },
798
+ /**
799
+ * Simulate increaseAllowance
800
+ * Returns gas estimate and result without sending transaction
801
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
802
+ */
803
+ async increaseAllowance(spender, addedValue, options) {
804
+ return contract.simulate.increaseAllowance([spender, addedValue], options);
695
805
  },
696
806
  /**
697
807
  * Simulate mint
698
808
  * Returns gas estimate and result without sending transaction
699
809
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
700
810
  */
701
- async mint(account, amount, options) {
702
- return contract.simulate.mint([account, amount], options);
811
+ async mint(_to, _amount, options) {
812
+ return contract.simulate.mint([_to, _amount], options);
703
813
  },
704
814
  /**
705
- * Simulate permit
815
+ * Simulate revokeRole
706
816
  * Returns gas estimate and result without sending transaction
707
817
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
708
818
  */
709
- async permit(issuer, spender, value, deadline, v, r, s, options) {
710
- return contract.simulate.permit([issuer, spender, value, deadline, v, r, s], options);
819
+ async revokeRole(_role, _account, options) {
820
+ return contract.simulate.revokeRole([_role, _account], options);
711
821
  },
712
822
  /**
713
823
  * Simulate transfer
714
824
  * Returns gas estimate and result without sending transaction
715
825
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
716
826
  */
717
- async transfer(recipient, amount, options) {
718
- return contract.simulate.transfer([recipient, amount], options);
827
+ async transfer(to, amount, options) {
828
+ return contract.simulate.transfer([to, amount], options);
719
829
  },
720
830
  /**
721
831
  * Simulate transferFrom
722
832
  * Returns gas estimate and result without sending transaction
723
833
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
724
834
  */
725
- async transferFrom(sender, recipient, amount, options) {
726
- return contract.simulate.transferFrom([sender, recipient, amount], options);
835
+ async transferFrom(from, to, amount, options) {
836
+ return contract.simulate.transferFrom([from, to, amount], options);
727
837
  }
728
838
  };
729
839
  }
@@ -750,7 +860,7 @@ class Token_json {
750
860
  Approval: (callback, filter) => {
751
861
  return this.publicClient.watchContractEvent({
752
862
  address: this.contractAddress,
753
- abi: exports.Token_jsonAbi,
863
+ abi: exports.ERC6160Ext20_jsonAbi,
754
864
  eventName: 'Approval',
755
865
  args: filter,
756
866
  onLogs: (logs) => {
@@ -769,7 +879,7 @@ class Token_json {
769
879
  Transfer: (callback, filter) => {
770
880
  return this.publicClient.watchContractEvent({
771
881
  address: this.contractAddress,
772
- abi: exports.Token_jsonAbi,
882
+ abi: exports.ERC6160Ext20_jsonAbi,
773
883
  eventName: 'Transfer',
774
884
  args: filter,
775
885
  onLogs: (logs) => {
@@ -782,4 +892,4 @@ class Token_json {
782
892
  };
783
893
  }
784
894
  }
785
- exports.Token_json = Token_json;
895
+ exports.ERC6160Ext20_json = ERC6160Ext20_json;