@gitmyabi/dusd 1.0.0 → 1.0.1

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,28 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MachineShare_json = exports.MachineShare_jsonAbi = void 0;
3
+ exports.DigitalUSD = exports.DigitalUSDAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * MachineShare_json ABI
6
+ * DigitalUSD ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.MachineShare_jsonAbi = [
10
+ exports.DigitalUSDAbi = [
11
11
  {
12
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
13
  {
24
14
  "internalType": "address",
25
- "name": "_initialMinter",
15
+ "name": "initialOwner",
26
16
  "type": "address"
27
17
  }
28
18
  ],
@@ -30,112 +20,58 @@ exports.MachineShare_jsonAbi = [
30
20
  "type": "constructor"
31
21
  },
32
22
  {
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": "ERC20InsufficientAllowance",
23
+ "inputs": [],
24
+ "name": "AccountIsFrozen",
51
25
  "type": "error"
52
26
  },
53
27
  {
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": "ERC20InsufficientBalance",
28
+ "inputs": [],
29
+ "name": "CapExceeded",
72
30
  "type": "error"
73
31
  },
74
32
  {
75
- "inputs": [
76
- {
77
- "internalType": "address",
78
- "name": "approver",
79
- "type": "address"
80
- }
81
- ],
82
- "name": "ERC20InvalidApprover",
33
+ "inputs": [],
34
+ "name": "ContractPaused",
83
35
  "type": "error"
84
36
  },
85
37
  {
86
- "inputs": [
87
- {
88
- "internalType": "address",
89
- "name": "receiver",
90
- "type": "address"
91
- }
92
- ],
93
- "name": "ERC20InvalidReceiver",
38
+ "inputs": [],
39
+ "name": "InsufficientAllowance",
94
40
  "type": "error"
95
41
  },
96
42
  {
97
- "inputs": [
98
- {
99
- "internalType": "address",
100
- "name": "sender",
101
- "type": "address"
102
- }
103
- ],
104
- "name": "ERC20InvalidSender",
43
+ "inputs": [],
44
+ "name": "InsufficientBalance",
105
45
  "type": "error"
106
46
  },
107
47
  {
108
- "inputs": [
109
- {
110
- "internalType": "address",
111
- "name": "spender",
112
- "type": "address"
113
- }
114
- ],
115
- "name": "ERC20InvalidSpender",
48
+ "inputs": [],
49
+ "name": "Unauthorized",
116
50
  "type": "error"
117
51
  },
118
52
  {
119
- "inputs": [
120
- {
121
- "internalType": "address",
122
- "name": "owner",
123
- "type": "address"
124
- }
125
- ],
126
- "name": "OwnableInvalidOwner",
53
+ "inputs": [],
54
+ "name": "ZeroAddress",
127
55
  "type": "error"
128
56
  },
129
57
  {
58
+ "anonymous": false,
130
59
  "inputs": [
131
60
  {
61
+ "indexed": true,
132
62
  "internalType": "address",
133
63
  "name": "account",
134
64
  "type": "address"
65
+ },
66
+ {
67
+ "indexed": false,
68
+ "internalType": "bool",
69
+ "name": "frozen",
70
+ "type": "bool"
135
71
  }
136
72
  ],
137
- "name": "OwnableUnauthorizedAccount",
138
- "type": "error"
73
+ "name": "AccountFrozen",
74
+ "type": "event"
139
75
  },
140
76
  {
141
77
  "anonymous": false,
@@ -162,6 +98,25 @@ exports.MachineShare_jsonAbi = [
162
98
  "name": "Approval",
163
99
  "type": "event"
164
100
  },
101
+ {
102
+ "anonymous": false,
103
+ "inputs": [
104
+ {
105
+ "indexed": true,
106
+ "internalType": "address",
107
+ "name": "account",
108
+ "type": "address"
109
+ },
110
+ {
111
+ "indexed": false,
112
+ "internalType": "bool",
113
+ "name": "authorized",
114
+ "type": "bool"
115
+ }
116
+ ],
117
+ "name": "MinterUpdated",
118
+ "type": "event"
119
+ },
165
120
  {
166
121
  "anonymous": false,
167
122
  "inputs": [
@@ -174,7 +129,7 @@ exports.MachineShare_jsonAbi = [
174
129
  {
175
130
  "indexed": true,
176
131
  "internalType": "address",
177
- "name": "newOwner",
132
+ "name": "pendingOwner",
178
133
  "type": "address"
179
134
  }
180
135
  ],
@@ -200,6 +155,19 @@ exports.MachineShare_jsonAbi = [
200
155
  "name": "OwnershipTransferred",
201
156
  "type": "event"
202
157
  },
158
+ {
159
+ "anonymous": false,
160
+ "inputs": [
161
+ {
162
+ "indexed": true,
163
+ "internalType": "address",
164
+ "name": "account",
165
+ "type": "address"
166
+ }
167
+ ],
168
+ "name": "Paused",
169
+ "type": "event"
170
+ },
203
171
  {
204
172
  "anonymous": false,
205
173
  "inputs": [
@@ -225,6 +193,32 @@ exports.MachineShare_jsonAbi = [
225
193
  "name": "Transfer",
226
194
  "type": "event"
227
195
  },
196
+ {
197
+ "anonymous": false,
198
+ "inputs": [
199
+ {
200
+ "indexed": true,
201
+ "internalType": "address",
202
+ "name": "account",
203
+ "type": "address"
204
+ }
205
+ ],
206
+ "name": "Unpaused",
207
+ "type": "event"
208
+ },
209
+ {
210
+ "inputs": [],
211
+ "name": "MAX_SUPPLY",
212
+ "outputs": [
213
+ {
214
+ "internalType": "uint256",
215
+ "name": "",
216
+ "type": "uint256"
217
+ }
218
+ ],
219
+ "stateMutability": "view",
220
+ "type": "function"
221
+ },
228
222
  {
229
223
  "inputs": [],
230
224
  "name": "acceptOwnership",
@@ -236,12 +230,12 @@ exports.MachineShare_jsonAbi = [
236
230
  "inputs": [
237
231
  {
238
232
  "internalType": "address",
239
- "name": "owner",
233
+ "name": "",
240
234
  "type": "address"
241
235
  },
242
236
  {
243
237
  "internalType": "address",
244
- "name": "spender",
238
+ "name": "",
245
239
  "type": "address"
246
240
  }
247
241
  ],
@@ -284,7 +278,7 @@ exports.MachineShare_jsonAbi = [
284
278
  "inputs": [
285
279
  {
286
280
  "internalType": "address",
287
- "name": "account",
281
+ "name": "",
288
282
  "type": "address"
289
283
  }
290
284
  ],
@@ -299,6 +293,25 @@ exports.MachineShare_jsonAbi = [
299
293
  "stateMutability": "view",
300
294
  "type": "function"
301
295
  },
296
+ {
297
+ "inputs": [
298
+ {
299
+ "internalType": "uint256",
300
+ "name": "value",
301
+ "type": "uint256"
302
+ }
303
+ ],
304
+ "name": "burn",
305
+ "outputs": [
306
+ {
307
+ "internalType": "bool",
308
+ "name": "",
309
+ "type": "bool"
310
+ }
311
+ ],
312
+ "stateMutability": "nonpayable",
313
+ "type": "function"
314
+ },
302
315
  {
303
316
  "inputs": [
304
317
  {
@@ -308,12 +321,18 @@ exports.MachineShare_jsonAbi = [
308
321
  },
309
322
  {
310
323
  "internalType": "uint256",
311
- "name": "amount",
324
+ "name": "value",
312
325
  "type": "uint256"
313
326
  }
314
327
  ],
315
- "name": "burn",
316
- "outputs": [],
328
+ "name": "burnFrom",
329
+ "outputs": [
330
+ {
331
+ "internalType": "bool",
332
+ "name": "",
333
+ "type": "bool"
334
+ }
335
+ ],
317
336
  "stateMutability": "nonpayable",
318
337
  "type": "function"
319
338
  },
@@ -327,7 +346,26 @@ exports.MachineShare_jsonAbi = [
327
346
  "type": "uint8"
328
347
  }
329
348
  ],
330
- "stateMutability": "pure",
349
+ "stateMutability": "view",
350
+ "type": "function"
351
+ },
352
+ {
353
+ "inputs": [
354
+ {
355
+ "internalType": "address",
356
+ "name": "",
357
+ "type": "address"
358
+ }
359
+ ],
360
+ "name": "frozen",
361
+ "outputs": [
362
+ {
363
+ "internalType": "bool",
364
+ "name": "",
365
+ "type": "bool"
366
+ }
367
+ ],
368
+ "stateMutability": "view",
331
369
  "type": "function"
332
370
  },
333
371
  {
@@ -339,25 +377,37 @@ exports.MachineShare_jsonAbi = [
339
377
  },
340
378
  {
341
379
  "internalType": "uint256",
342
- "name": "amount",
380
+ "name": "value",
343
381
  "type": "uint256"
344
382
  }
345
383
  ],
346
384
  "name": "mint",
347
- "outputs": [],
385
+ "outputs": [
386
+ {
387
+ "internalType": "bool",
388
+ "name": "",
389
+ "type": "bool"
390
+ }
391
+ ],
348
392
  "stateMutability": "nonpayable",
349
393
  "type": "function"
350
394
  },
351
395
  {
352
- "inputs": [],
353
- "name": "minter",
354
- "outputs": [
396
+ "inputs": [
355
397
  {
356
398
  "internalType": "address",
357
399
  "name": "",
358
400
  "type": "address"
359
401
  }
360
402
  ],
403
+ "name": "minters",
404
+ "outputs": [
405
+ {
406
+ "internalType": "bool",
407
+ "name": "",
408
+ "type": "bool"
409
+ }
410
+ ],
361
411
  "stateMutability": "view",
362
412
  "type": "function"
363
413
  },
@@ -387,6 +437,26 @@ exports.MachineShare_jsonAbi = [
387
437
  "stateMutability": "view",
388
438
  "type": "function"
389
439
  },
440
+ {
441
+ "inputs": [],
442
+ "name": "pause",
443
+ "outputs": [],
444
+ "stateMutability": "nonpayable",
445
+ "type": "function"
446
+ },
447
+ {
448
+ "inputs": [],
449
+ "name": "paused",
450
+ "outputs": [
451
+ {
452
+ "internalType": "bool",
453
+ "name": "",
454
+ "type": "bool"
455
+ }
456
+ ],
457
+ "stateMutability": "view",
458
+ "type": "function"
459
+ },
390
460
  {
391
461
  "inputs": [],
392
462
  "name": "pendingOwner",
@@ -401,8 +471,37 @@ exports.MachineShare_jsonAbi = [
401
471
  "type": "function"
402
472
  },
403
473
  {
404
- "inputs": [],
405
- "name": "renounceOwnership",
474
+ "inputs": [
475
+ {
476
+ "internalType": "address",
477
+ "name": "account",
478
+ "type": "address"
479
+ },
480
+ {
481
+ "internalType": "bool",
482
+ "name": "state",
483
+ "type": "bool"
484
+ }
485
+ ],
486
+ "name": "setFrozen",
487
+ "outputs": [],
488
+ "stateMutability": "nonpayable",
489
+ "type": "function"
490
+ },
491
+ {
492
+ "inputs": [
493
+ {
494
+ "internalType": "address",
495
+ "name": "account",
496
+ "type": "address"
497
+ },
498
+ {
499
+ "internalType": "bool",
500
+ "name": "authorized",
501
+ "type": "bool"
502
+ }
503
+ ],
504
+ "name": "setMinter",
406
505
  "outputs": [],
407
506
  "stateMutability": "nonpayable",
408
507
  "type": "function"
@@ -490,7 +589,7 @@ exports.MachineShare_jsonAbi = [
490
589
  "inputs": [
491
590
  {
492
591
  "internalType": "address",
493
- "name": "newOwner",
592
+ "name": "nextOwner",
494
593
  "type": "address"
495
594
  }
496
595
  ],
@@ -498,10 +597,17 @@ exports.MachineShare_jsonAbi = [
498
597
  "outputs": [],
499
598
  "stateMutability": "nonpayable",
500
599
  "type": "function"
600
+ },
601
+ {
602
+ "inputs": [],
603
+ "name": "unpause",
604
+ "outputs": [],
605
+ "stateMutability": "nonpayable",
606
+ "type": "function"
501
607
  }
502
608
  ];
503
609
  /**
504
- * MachineShare_json Contract Class
610
+ * DigitalUSD Contract Class
505
611
  *
506
612
  * Provides a class-based API similar to TypeChain for interacting with the contract.
507
613
  *
@@ -509,12 +615,12 @@ exports.MachineShare_jsonAbi = [
509
615
  * ```typescript
510
616
  * import { createPublicClient, createWalletClient, http } from 'viem';
511
617
  * import { mainnet } from 'viem/chains';
512
- * import { MachineShare_json } from 'MachineShare_json';
618
+ * import { DigitalUSD } from 'DigitalUSD';
513
619
  *
514
620
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
515
621
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
516
622
  *
517
- * const contract = new MachineShare_json('0x...', { publicClient, walletClient });
623
+ * const contract = new DigitalUSD('0x...', { publicClient, walletClient });
518
624
  *
519
625
  * // Read functions
520
626
  * const result = await contract.balanceOf('0x...');
@@ -532,13 +638,13 @@ exports.MachineShare_jsonAbi = [
532
638
  * });
533
639
  * ```
534
640
  */
535
- class MachineShare_json {
641
+ class DigitalUSD {
536
642
  constructor(address, clients) {
537
643
  this.contractAddress = address;
538
644
  this.publicClient = clients.publicClient;
539
645
  this.contract = (0, viem_1.getContract)({
540
646
  address,
541
- abi: exports.MachineShare_jsonAbi,
647
+ abi: exports.DigitalUSDAbi,
542
648
  client: {
543
649
  public: clients.publicClient,
544
650
  wallet: clients.walletClient,
@@ -552,38 +658,52 @@ class MachineShare_json {
552
658
  return this.contractAddress;
553
659
  }
554
660
  /**
555
- * Get the underlying viem contract instance
661
+ * Get the underlying viem contract instance.
556
662
  */
557
663
  getContract() {
558
664
  return this.contract;
559
665
  }
666
+ /**
667
+ * MAX_SUPPLY
668
+ * view
669
+ */
670
+ async MAX_SUPPLY() {
671
+ return this.contract.read.MAX_SUPPLY();
672
+ }
560
673
  /**
561
674
  * allowance
562
675
  * view
563
676
  */
564
- async allowance(owner, spender) {
565
- return this.contract.read.allowance([owner, spender]);
677
+ async allowance(arg0, arg1) {
678
+ return this.contract.read.allowance([arg0, arg1]);
566
679
  }
567
680
  /**
568
681
  * balanceOf
569
682
  * view
570
683
  */
571
- async balanceOf(account) {
572
- return this.contract.read.balanceOf([account]);
684
+ async balanceOf(arg0) {
685
+ return this.contract.read.balanceOf([arg0]);
573
686
  }
574
687
  /**
575
688
  * decimals
576
- * pure
689
+ * view
577
690
  */
578
691
  async decimals() {
579
692
  return this.contract.read.decimals();
580
693
  }
581
694
  /**
582
- * minter
695
+ * frozen
696
+ * view
697
+ */
698
+ async frozen(arg0) {
699
+ return this.contract.read.frozen([arg0]);
700
+ }
701
+ /**
702
+ * minters
583
703
  * view
584
704
  */
585
- async minter() {
586
- return this.contract.read.minter();
705
+ async minters(arg0) {
706
+ return this.contract.read.minters([arg0]);
587
707
  }
588
708
  /**
589
709
  * name
@@ -599,6 +719,13 @@ class MachineShare_json {
599
719
  async owner() {
600
720
  return this.contract.read.owner();
601
721
  }
722
+ /**
723
+ * paused
724
+ * view
725
+ */
726
+ async paused() {
727
+ return this.contract.read.paused();
728
+ }
602
729
  /**
603
730
  * pendingOwner
604
731
  * view
@@ -647,33 +774,66 @@ class MachineShare_json {
647
774
  * nonpayable
648
775
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
649
776
  */
650
- async burn(from, amount, options) {
777
+ async burn(value, options) {
778
+ if (!this.contract.write) {
779
+ throw new Error('Wallet client is required for write operations');
780
+ }
781
+ return this.contract.write.burn([value], options);
782
+ }
783
+ /**
784
+ * burnFrom
785
+ * nonpayable
786
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
787
+ */
788
+ async burnFrom(from, value, options) {
651
789
  if (!this.contract.write) {
652
790
  throw new Error('Wallet client is required for write operations');
653
791
  }
654
- return this.contract.write.burn([from, amount], options);
792
+ return this.contract.write.burnFrom([from, value], options);
655
793
  }
656
794
  /**
657
795
  * mint
658
796
  * nonpayable
659
797
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
660
798
  */
661
- async mint(to, amount, options) {
799
+ async mint(to, value, options) {
662
800
  if (!this.contract.write) {
663
801
  throw new Error('Wallet client is required for write operations');
664
802
  }
665
- return this.contract.write.mint([to, amount], options);
803
+ return this.contract.write.mint([to, value], options);
666
804
  }
667
805
  /**
668
- * renounceOwnership
806
+ * pause
669
807
  * nonpayable
670
808
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
671
809
  */
672
- async renounceOwnership(options) {
810
+ async pause(options) {
673
811
  if (!this.contract.write) {
674
812
  throw new Error('Wallet client is required for write operations');
675
813
  }
676
- return this.contract.write.renounceOwnership(options);
814
+ return this.contract.write.pause(options);
815
+ }
816
+ /**
817
+ * setFrozen
818
+ * nonpayable
819
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
820
+ */
821
+ async setFrozen(account, state, options) {
822
+ if (!this.contract.write) {
823
+ throw new Error('Wallet client is required for write operations');
824
+ }
825
+ return this.contract.write.setFrozen([account, state], options);
826
+ }
827
+ /**
828
+ * setMinter
829
+ * nonpayable
830
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
831
+ */
832
+ async setMinter(account, authorized, options) {
833
+ if (!this.contract.write) {
834
+ throw new Error('Wallet client is required for write operations');
835
+ }
836
+ return this.contract.write.setMinter([account, authorized], options);
677
837
  }
678
838
  /**
679
839
  * transfer
@@ -702,11 +862,22 @@ class MachineShare_json {
702
862
  * nonpayable
703
863
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
704
864
  */
705
- async transferOwnership(newOwner, options) {
865
+ async transferOwnership(nextOwner, options) {
706
866
  if (!this.contract.write) {
707
867
  throw new Error('Wallet client is required for write operations');
708
868
  }
709
- return this.contract.write.transferOwnership([newOwner], options);
869
+ return this.contract.write.transferOwnership([nextOwner], options);
870
+ }
871
+ /**
872
+ * unpause
873
+ * nonpayable
874
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
875
+ */
876
+ async unpause(options) {
877
+ if (!this.contract.write) {
878
+ throw new Error('Wallet client is required for write operations');
879
+ }
880
+ return this.contract.write.unpause(options);
710
881
  }
711
882
  /**
712
883
  * Simulate contract write operations (dry-run without sending transaction)
@@ -743,24 +914,48 @@ class MachineShare_json {
743
914
  * Returns gas estimate and result without sending transaction
744
915
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
745
916
  */
746
- async burn(from, amount, options) {
747
- return contract.simulate.burn([from, amount], options);
917
+ async burn(value, options) {
918
+ return contract.simulate.burn([value], options);
919
+ },
920
+ /**
921
+ * Simulate burnFrom
922
+ * Returns gas estimate and result without sending transaction
923
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
924
+ */
925
+ async burnFrom(from, value, options) {
926
+ return contract.simulate.burnFrom([from, value], options);
748
927
  },
749
928
  /**
750
929
  * Simulate mint
751
930
  * Returns gas estimate and result without sending transaction
752
931
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
753
932
  */
754
- async mint(to, amount, options) {
755
- return contract.simulate.mint([to, amount], options);
933
+ async mint(to, value, options) {
934
+ return contract.simulate.mint([to, value], options);
756
935
  },
757
936
  /**
758
- * Simulate renounceOwnership
937
+ * Simulate pause
759
938
  * Returns gas estimate and result without sending transaction
760
939
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
761
940
  */
762
- async renounceOwnership(options) {
763
- return contract.simulate.renounceOwnership(options);
941
+ async pause(options) {
942
+ return contract.simulate.pause(options);
943
+ },
944
+ /**
945
+ * Simulate setFrozen
946
+ * Returns gas estimate and result without sending transaction
947
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
948
+ */
949
+ async setFrozen(account, state, options) {
950
+ return contract.simulate.setFrozen([account, state], options);
951
+ },
952
+ /**
953
+ * Simulate setMinter
954
+ * Returns gas estimate and result without sending transaction
955
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
956
+ */
957
+ async setMinter(account, authorized, options) {
958
+ return contract.simulate.setMinter([account, authorized], options);
764
959
  },
765
960
  /**
766
961
  * Simulate transfer
@@ -783,8 +978,16 @@ class MachineShare_json {
783
978
  * Returns gas estimate and result without sending transaction
784
979
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
785
980
  */
786
- async transferOwnership(newOwner, options) {
787
- return contract.simulate.transferOwnership([newOwner], options);
981
+ async transferOwnership(nextOwner, options) {
982
+ return contract.simulate.transferOwnership([nextOwner], options);
983
+ },
984
+ /**
985
+ * Simulate unpause
986
+ * Returns gas estimate and result without sending transaction
987
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
988
+ */
989
+ async unpause(options) {
990
+ return contract.simulate.unpause(options);
788
991
  }
789
992
  };
790
993
  }
@@ -802,6 +1005,25 @@ class MachineShare_json {
802
1005
  */
803
1006
  get watch() {
804
1007
  return {
1008
+ /**
1009
+ * Watch AccountFrozen events
1010
+ * @param callback Function to call when event is emitted
1011
+ * @param filter Optional filter for indexed parameters
1012
+ * @returns Unwatch function to stop listening
1013
+ */
1014
+ AccountFrozen: (callback, filter) => {
1015
+ return this.publicClient.watchContractEvent({
1016
+ address: this.contractAddress,
1017
+ abi: exports.DigitalUSDAbi,
1018
+ eventName: 'AccountFrozen',
1019
+ args: filter,
1020
+ onLogs: (logs) => {
1021
+ logs.forEach((log) => {
1022
+ callback(log.args);
1023
+ });
1024
+ },
1025
+ });
1026
+ },
805
1027
  /**
806
1028
  * Watch Approval events
807
1029
  * @param callback Function to call when event is emitted
@@ -811,7 +1033,7 @@ class MachineShare_json {
811
1033
  Approval: (callback, filter) => {
812
1034
  return this.publicClient.watchContractEvent({
813
1035
  address: this.contractAddress,
814
- abi: exports.MachineShare_jsonAbi,
1036
+ abi: exports.DigitalUSDAbi,
815
1037
  eventName: 'Approval',
816
1038
  args: filter,
817
1039
  onLogs: (logs) => {
@@ -821,6 +1043,25 @@ class MachineShare_json {
821
1043
  },
822
1044
  });
823
1045
  },
1046
+ /**
1047
+ * Watch MinterUpdated events
1048
+ * @param callback Function to call when event is emitted
1049
+ * @param filter Optional filter for indexed parameters
1050
+ * @returns Unwatch function to stop listening
1051
+ */
1052
+ MinterUpdated: (callback, filter) => {
1053
+ return this.publicClient.watchContractEvent({
1054
+ address: this.contractAddress,
1055
+ abi: exports.DigitalUSDAbi,
1056
+ eventName: 'MinterUpdated',
1057
+ args: filter,
1058
+ onLogs: (logs) => {
1059
+ logs.forEach((log) => {
1060
+ callback(log.args);
1061
+ });
1062
+ },
1063
+ });
1064
+ },
824
1065
  /**
825
1066
  * Watch OwnershipTransferStarted events
826
1067
  * @param callback Function to call when event is emitted
@@ -830,7 +1071,7 @@ class MachineShare_json {
830
1071
  OwnershipTransferStarted: (callback, filter) => {
831
1072
  return this.publicClient.watchContractEvent({
832
1073
  address: this.contractAddress,
833
- abi: exports.MachineShare_jsonAbi,
1074
+ abi: exports.DigitalUSDAbi,
834
1075
  eventName: 'OwnershipTransferStarted',
835
1076
  args: filter,
836
1077
  onLogs: (logs) => {
@@ -849,7 +1090,7 @@ class MachineShare_json {
849
1090
  OwnershipTransferred: (callback, filter) => {
850
1091
  return this.publicClient.watchContractEvent({
851
1092
  address: this.contractAddress,
852
- abi: exports.MachineShare_jsonAbi,
1093
+ abi: exports.DigitalUSDAbi,
853
1094
  eventName: 'OwnershipTransferred',
854
1095
  args: filter,
855
1096
  onLogs: (logs) => {
@@ -859,6 +1100,25 @@ class MachineShare_json {
859
1100
  },
860
1101
  });
861
1102
  },
1103
+ /**
1104
+ * Watch Paused events
1105
+ * @param callback Function to call when event is emitted
1106
+ * @param filter Optional filter for indexed parameters
1107
+ * @returns Unwatch function to stop listening
1108
+ */
1109
+ Paused: (callback, filter) => {
1110
+ return this.publicClient.watchContractEvent({
1111
+ address: this.contractAddress,
1112
+ abi: exports.DigitalUSDAbi,
1113
+ eventName: 'Paused',
1114
+ args: filter,
1115
+ onLogs: (logs) => {
1116
+ logs.forEach((log) => {
1117
+ callback(log.args);
1118
+ });
1119
+ },
1120
+ });
1121
+ },
862
1122
  /**
863
1123
  * Watch Transfer events
864
1124
  * @param callback Function to call when event is emitted
@@ -868,7 +1128,7 @@ class MachineShare_json {
868
1128
  Transfer: (callback, filter) => {
869
1129
  return this.publicClient.watchContractEvent({
870
1130
  address: this.contractAddress,
871
- abi: exports.MachineShare_jsonAbi,
1131
+ abi: exports.DigitalUSDAbi,
872
1132
  eventName: 'Transfer',
873
1133
  args: filter,
874
1134
  onLogs: (logs) => {
@@ -877,8 +1137,27 @@ class MachineShare_json {
877
1137
  });
878
1138
  },
879
1139
  });
1140
+ },
1141
+ /**
1142
+ * Watch Unpaused events
1143
+ * @param callback Function to call when event is emitted
1144
+ * @param filter Optional filter for indexed parameters
1145
+ * @returns Unwatch function to stop listening
1146
+ */
1147
+ Unpaused: (callback, filter) => {
1148
+ return this.publicClient.watchContractEvent({
1149
+ address: this.contractAddress,
1150
+ abi: exports.DigitalUSDAbi,
1151
+ eventName: 'Unpaused',
1152
+ args: filter,
1153
+ onLogs: (logs) => {
1154
+ logs.forEach((log) => {
1155
+ callback(log.args);
1156
+ });
1157
+ },
1158
+ });
880
1159
  }
881
1160
  };
882
1161
  }
883
1162
  }
884
- exports.MachineShare_json = MachineShare_json;
1163
+ exports.DigitalUSD = DigitalUSD;