@gitmyabi/dusd 0.0.0-stage → 1.0.0

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.
@@ -0,0 +1,884 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MachineShare_json = exports.MachineShare_jsonAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * MachineShare_json ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.MachineShare_jsonAbi = [
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "string",
15
+ "name": "_name",
16
+ "type": "string"
17
+ },
18
+ {
19
+ "internalType": "string",
20
+ "name": "_symbol",
21
+ "type": "string"
22
+ },
23
+ {
24
+ "internalType": "address",
25
+ "name": "_initialMinter",
26
+ "type": "address"
27
+ }
28
+ ],
29
+ "stateMutability": "nonpayable",
30
+ "type": "constructor"
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": "ERC20InsufficientAllowance",
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": "ERC20InsufficientBalance",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [
76
+ {
77
+ "internalType": "address",
78
+ "name": "approver",
79
+ "type": "address"
80
+ }
81
+ ],
82
+ "name": "ERC20InvalidApprover",
83
+ "type": "error"
84
+ },
85
+ {
86
+ "inputs": [
87
+ {
88
+ "internalType": "address",
89
+ "name": "receiver",
90
+ "type": "address"
91
+ }
92
+ ],
93
+ "name": "ERC20InvalidReceiver",
94
+ "type": "error"
95
+ },
96
+ {
97
+ "inputs": [
98
+ {
99
+ "internalType": "address",
100
+ "name": "sender",
101
+ "type": "address"
102
+ }
103
+ ],
104
+ "name": "ERC20InvalidSender",
105
+ "type": "error"
106
+ },
107
+ {
108
+ "inputs": [
109
+ {
110
+ "internalType": "address",
111
+ "name": "spender",
112
+ "type": "address"
113
+ }
114
+ ],
115
+ "name": "ERC20InvalidSpender",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "inputs": [
120
+ {
121
+ "internalType": "address",
122
+ "name": "owner",
123
+ "type": "address"
124
+ }
125
+ ],
126
+ "name": "OwnableInvalidOwner",
127
+ "type": "error"
128
+ },
129
+ {
130
+ "inputs": [
131
+ {
132
+ "internalType": "address",
133
+ "name": "account",
134
+ "type": "address"
135
+ }
136
+ ],
137
+ "name": "OwnableUnauthorizedAccount",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "anonymous": false,
142
+ "inputs": [
143
+ {
144
+ "indexed": true,
145
+ "internalType": "address",
146
+ "name": "owner",
147
+ "type": "address"
148
+ },
149
+ {
150
+ "indexed": true,
151
+ "internalType": "address",
152
+ "name": "spender",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "indexed": false,
157
+ "internalType": "uint256",
158
+ "name": "value",
159
+ "type": "uint256"
160
+ }
161
+ ],
162
+ "name": "Approval",
163
+ "type": "event"
164
+ },
165
+ {
166
+ "anonymous": false,
167
+ "inputs": [
168
+ {
169
+ "indexed": true,
170
+ "internalType": "address",
171
+ "name": "previousOwner",
172
+ "type": "address"
173
+ },
174
+ {
175
+ "indexed": true,
176
+ "internalType": "address",
177
+ "name": "newOwner",
178
+ "type": "address"
179
+ }
180
+ ],
181
+ "name": "OwnershipTransferStarted",
182
+ "type": "event"
183
+ },
184
+ {
185
+ "anonymous": false,
186
+ "inputs": [
187
+ {
188
+ "indexed": true,
189
+ "internalType": "address",
190
+ "name": "previousOwner",
191
+ "type": "address"
192
+ },
193
+ {
194
+ "indexed": true,
195
+ "internalType": "address",
196
+ "name": "newOwner",
197
+ "type": "address"
198
+ }
199
+ ],
200
+ "name": "OwnershipTransferred",
201
+ "type": "event"
202
+ },
203
+ {
204
+ "anonymous": false,
205
+ "inputs": [
206
+ {
207
+ "indexed": true,
208
+ "internalType": "address",
209
+ "name": "from",
210
+ "type": "address"
211
+ },
212
+ {
213
+ "indexed": true,
214
+ "internalType": "address",
215
+ "name": "to",
216
+ "type": "address"
217
+ },
218
+ {
219
+ "indexed": false,
220
+ "internalType": "uint256",
221
+ "name": "value",
222
+ "type": "uint256"
223
+ }
224
+ ],
225
+ "name": "Transfer",
226
+ "type": "event"
227
+ },
228
+ {
229
+ "inputs": [],
230
+ "name": "acceptOwnership",
231
+ "outputs": [],
232
+ "stateMutability": "nonpayable",
233
+ "type": "function"
234
+ },
235
+ {
236
+ "inputs": [
237
+ {
238
+ "internalType": "address",
239
+ "name": "owner",
240
+ "type": "address"
241
+ },
242
+ {
243
+ "internalType": "address",
244
+ "name": "spender",
245
+ "type": "address"
246
+ }
247
+ ],
248
+ "name": "allowance",
249
+ "outputs": [
250
+ {
251
+ "internalType": "uint256",
252
+ "name": "",
253
+ "type": "uint256"
254
+ }
255
+ ],
256
+ "stateMutability": "view",
257
+ "type": "function"
258
+ },
259
+ {
260
+ "inputs": [
261
+ {
262
+ "internalType": "address",
263
+ "name": "spender",
264
+ "type": "address"
265
+ },
266
+ {
267
+ "internalType": "uint256",
268
+ "name": "value",
269
+ "type": "uint256"
270
+ }
271
+ ],
272
+ "name": "approve",
273
+ "outputs": [
274
+ {
275
+ "internalType": "bool",
276
+ "name": "",
277
+ "type": "bool"
278
+ }
279
+ ],
280
+ "stateMutability": "nonpayable",
281
+ "type": "function"
282
+ },
283
+ {
284
+ "inputs": [
285
+ {
286
+ "internalType": "address",
287
+ "name": "account",
288
+ "type": "address"
289
+ }
290
+ ],
291
+ "name": "balanceOf",
292
+ "outputs": [
293
+ {
294
+ "internalType": "uint256",
295
+ "name": "",
296
+ "type": "uint256"
297
+ }
298
+ ],
299
+ "stateMutability": "view",
300
+ "type": "function"
301
+ },
302
+ {
303
+ "inputs": [
304
+ {
305
+ "internalType": "address",
306
+ "name": "from",
307
+ "type": "address"
308
+ },
309
+ {
310
+ "internalType": "uint256",
311
+ "name": "amount",
312
+ "type": "uint256"
313
+ }
314
+ ],
315
+ "name": "burn",
316
+ "outputs": [],
317
+ "stateMutability": "nonpayable",
318
+ "type": "function"
319
+ },
320
+ {
321
+ "inputs": [],
322
+ "name": "decimals",
323
+ "outputs": [
324
+ {
325
+ "internalType": "uint8",
326
+ "name": "",
327
+ "type": "uint8"
328
+ }
329
+ ],
330
+ "stateMutability": "pure",
331
+ "type": "function"
332
+ },
333
+ {
334
+ "inputs": [
335
+ {
336
+ "internalType": "address",
337
+ "name": "to",
338
+ "type": "address"
339
+ },
340
+ {
341
+ "internalType": "uint256",
342
+ "name": "amount",
343
+ "type": "uint256"
344
+ }
345
+ ],
346
+ "name": "mint",
347
+ "outputs": [],
348
+ "stateMutability": "nonpayable",
349
+ "type": "function"
350
+ },
351
+ {
352
+ "inputs": [],
353
+ "name": "minter",
354
+ "outputs": [
355
+ {
356
+ "internalType": "address",
357
+ "name": "",
358
+ "type": "address"
359
+ }
360
+ ],
361
+ "stateMutability": "view",
362
+ "type": "function"
363
+ },
364
+ {
365
+ "inputs": [],
366
+ "name": "name",
367
+ "outputs": [
368
+ {
369
+ "internalType": "string",
370
+ "name": "",
371
+ "type": "string"
372
+ }
373
+ ],
374
+ "stateMutability": "view",
375
+ "type": "function"
376
+ },
377
+ {
378
+ "inputs": [],
379
+ "name": "owner",
380
+ "outputs": [
381
+ {
382
+ "internalType": "address",
383
+ "name": "",
384
+ "type": "address"
385
+ }
386
+ ],
387
+ "stateMutability": "view",
388
+ "type": "function"
389
+ },
390
+ {
391
+ "inputs": [],
392
+ "name": "pendingOwner",
393
+ "outputs": [
394
+ {
395
+ "internalType": "address",
396
+ "name": "",
397
+ "type": "address"
398
+ }
399
+ ],
400
+ "stateMutability": "view",
401
+ "type": "function"
402
+ },
403
+ {
404
+ "inputs": [],
405
+ "name": "renounceOwnership",
406
+ "outputs": [],
407
+ "stateMutability": "nonpayable",
408
+ "type": "function"
409
+ },
410
+ {
411
+ "inputs": [],
412
+ "name": "symbol",
413
+ "outputs": [
414
+ {
415
+ "internalType": "string",
416
+ "name": "",
417
+ "type": "string"
418
+ }
419
+ ],
420
+ "stateMutability": "view",
421
+ "type": "function"
422
+ },
423
+ {
424
+ "inputs": [],
425
+ "name": "totalSupply",
426
+ "outputs": [
427
+ {
428
+ "internalType": "uint256",
429
+ "name": "",
430
+ "type": "uint256"
431
+ }
432
+ ],
433
+ "stateMutability": "view",
434
+ "type": "function"
435
+ },
436
+ {
437
+ "inputs": [
438
+ {
439
+ "internalType": "address",
440
+ "name": "to",
441
+ "type": "address"
442
+ },
443
+ {
444
+ "internalType": "uint256",
445
+ "name": "value",
446
+ "type": "uint256"
447
+ }
448
+ ],
449
+ "name": "transfer",
450
+ "outputs": [
451
+ {
452
+ "internalType": "bool",
453
+ "name": "",
454
+ "type": "bool"
455
+ }
456
+ ],
457
+ "stateMutability": "nonpayable",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [
462
+ {
463
+ "internalType": "address",
464
+ "name": "from",
465
+ "type": "address"
466
+ },
467
+ {
468
+ "internalType": "address",
469
+ "name": "to",
470
+ "type": "address"
471
+ },
472
+ {
473
+ "internalType": "uint256",
474
+ "name": "value",
475
+ "type": "uint256"
476
+ }
477
+ ],
478
+ "name": "transferFrom",
479
+ "outputs": [
480
+ {
481
+ "internalType": "bool",
482
+ "name": "",
483
+ "type": "bool"
484
+ }
485
+ ],
486
+ "stateMutability": "nonpayable",
487
+ "type": "function"
488
+ },
489
+ {
490
+ "inputs": [
491
+ {
492
+ "internalType": "address",
493
+ "name": "newOwner",
494
+ "type": "address"
495
+ }
496
+ ],
497
+ "name": "transferOwnership",
498
+ "outputs": [],
499
+ "stateMutability": "nonpayable",
500
+ "type": "function"
501
+ }
502
+ ];
503
+ /**
504
+ * MachineShare_json Contract Class
505
+ *
506
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
507
+ *
508
+ * @example
509
+ * ```typescript
510
+ * import { createPublicClient, createWalletClient, http } from 'viem';
511
+ * import { mainnet } from 'viem/chains';
512
+ * import { MachineShare_json } from 'MachineShare_json';
513
+ *
514
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
515
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
516
+ *
517
+ * const contract = new MachineShare_json('0x...', { publicClient, walletClient });
518
+ *
519
+ * // Read functions
520
+ * const result = await contract.balanceOf('0x...');
521
+ *
522
+ * // Write functions
523
+ * const hash = await contract.transfer('0x...', 1000n);
524
+ *
525
+ * // Simulate transactions (dry-run)
526
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
527
+ * console.log('Gas estimate:', simulation.request.gas);
528
+ *
529
+ * // Watch events
530
+ * const unwatch = contract.watch.Transfer((event) => {
531
+ * console.log('Transfer event:', event);
532
+ * });
533
+ * ```
534
+ */
535
+ class MachineShare_json {
536
+ constructor(address, clients) {
537
+ this.contractAddress = address;
538
+ this.publicClient = clients.publicClient;
539
+ this.contract = (0, viem_1.getContract)({
540
+ address,
541
+ abi: exports.MachineShare_jsonAbi,
542
+ client: {
543
+ public: clients.publicClient,
544
+ wallet: clients.walletClient,
545
+ },
546
+ });
547
+ }
548
+ /**
549
+ * Get the contract address
550
+ */
551
+ get address() {
552
+ return this.contractAddress;
553
+ }
554
+ /**
555
+ * Get the underlying viem contract instance
556
+ */
557
+ getContract() {
558
+ return this.contract;
559
+ }
560
+ /**
561
+ * allowance
562
+ * view
563
+ */
564
+ async allowance(owner, spender) {
565
+ return this.contract.read.allowance([owner, spender]);
566
+ }
567
+ /**
568
+ * balanceOf
569
+ * view
570
+ */
571
+ async balanceOf(account) {
572
+ return this.contract.read.balanceOf([account]);
573
+ }
574
+ /**
575
+ * decimals
576
+ * pure
577
+ */
578
+ async decimals() {
579
+ return this.contract.read.decimals();
580
+ }
581
+ /**
582
+ * minter
583
+ * view
584
+ */
585
+ async minter() {
586
+ return this.contract.read.minter();
587
+ }
588
+ /**
589
+ * name
590
+ * view
591
+ */
592
+ async name() {
593
+ return this.contract.read.name();
594
+ }
595
+ /**
596
+ * owner
597
+ * view
598
+ */
599
+ async owner() {
600
+ return this.contract.read.owner();
601
+ }
602
+ /**
603
+ * pendingOwner
604
+ * view
605
+ */
606
+ async pendingOwner() {
607
+ return this.contract.read.pendingOwner();
608
+ }
609
+ /**
610
+ * symbol
611
+ * view
612
+ */
613
+ async symbol() {
614
+ return this.contract.read.symbol();
615
+ }
616
+ /**
617
+ * totalSupply
618
+ * view
619
+ */
620
+ async totalSupply() {
621
+ return this.contract.read.totalSupply();
622
+ }
623
+ /**
624
+ * acceptOwnership
625
+ * nonpayable
626
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
627
+ */
628
+ async acceptOwnership(options) {
629
+ if (!this.contract.write) {
630
+ throw new Error('Wallet client is required for write operations');
631
+ }
632
+ return this.contract.write.acceptOwnership(options);
633
+ }
634
+ /**
635
+ * approve
636
+ * nonpayable
637
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
638
+ */
639
+ async approve(spender, value, options) {
640
+ if (!this.contract.write) {
641
+ throw new Error('Wallet client is required for write operations');
642
+ }
643
+ return this.contract.write.approve([spender, value], options);
644
+ }
645
+ /**
646
+ * burn
647
+ * nonpayable
648
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
649
+ */
650
+ async burn(from, amount, options) {
651
+ if (!this.contract.write) {
652
+ throw new Error('Wallet client is required for write operations');
653
+ }
654
+ return this.contract.write.burn([from, amount], options);
655
+ }
656
+ /**
657
+ * mint
658
+ * nonpayable
659
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
660
+ */
661
+ async mint(to, amount, options) {
662
+ if (!this.contract.write) {
663
+ throw new Error('Wallet client is required for write operations');
664
+ }
665
+ return this.contract.write.mint([to, amount], options);
666
+ }
667
+ /**
668
+ * renounceOwnership
669
+ * nonpayable
670
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
671
+ */
672
+ async renounceOwnership(options) {
673
+ if (!this.contract.write) {
674
+ throw new Error('Wallet client is required for write operations');
675
+ }
676
+ return this.contract.write.renounceOwnership(options);
677
+ }
678
+ /**
679
+ * transfer
680
+ * nonpayable
681
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
682
+ */
683
+ async transfer(to, value, options) {
684
+ if (!this.contract.write) {
685
+ throw new Error('Wallet client is required for write operations');
686
+ }
687
+ return this.contract.write.transfer([to, value], options);
688
+ }
689
+ /**
690
+ * transferFrom
691
+ * nonpayable
692
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
693
+ */
694
+ async transferFrom(from, to, value, options) {
695
+ if (!this.contract.write) {
696
+ throw new Error('Wallet client is required for write operations');
697
+ }
698
+ return this.contract.write.transferFrom([from, to, value], options);
699
+ }
700
+ /**
701
+ * transferOwnership
702
+ * nonpayable
703
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
704
+ */
705
+ async transferOwnership(newOwner, options) {
706
+ if (!this.contract.write) {
707
+ throw new Error('Wallet client is required for write operations');
708
+ }
709
+ return this.contract.write.transferOwnership([newOwner], options);
710
+ }
711
+ /**
712
+ * Simulate contract write operations (dry-run without sending transaction)
713
+ *
714
+ * @example
715
+ * const result = await contract.simulate.transfer('0x...', 1000n);
716
+ * console.log('Gas estimate:', result.request.gas);
717
+ * console.log('Would succeed:', result.result);
718
+ */
719
+ get simulate() {
720
+ const contract = this.contract;
721
+ if (!contract.simulate) {
722
+ throw new Error('Public client is required for simulation');
723
+ }
724
+ return {
725
+ /**
726
+ * Simulate acceptOwnership
727
+ * Returns gas estimate and result without sending transaction
728
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
729
+ */
730
+ async acceptOwnership(options) {
731
+ return contract.simulate.acceptOwnership(options);
732
+ },
733
+ /**
734
+ * Simulate approve
735
+ * Returns gas estimate and result without sending transaction
736
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
737
+ */
738
+ async approve(spender, value, options) {
739
+ return contract.simulate.approve([spender, value], options);
740
+ },
741
+ /**
742
+ * Simulate burn
743
+ * Returns gas estimate and result without sending transaction
744
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
745
+ */
746
+ async burn(from, amount, options) {
747
+ return contract.simulate.burn([from, amount], options);
748
+ },
749
+ /**
750
+ * Simulate mint
751
+ * Returns gas estimate and result without sending transaction
752
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
753
+ */
754
+ async mint(to, amount, options) {
755
+ return contract.simulate.mint([to, amount], options);
756
+ },
757
+ /**
758
+ * Simulate renounceOwnership
759
+ * Returns gas estimate and result without sending transaction
760
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
761
+ */
762
+ async renounceOwnership(options) {
763
+ return contract.simulate.renounceOwnership(options);
764
+ },
765
+ /**
766
+ * Simulate transfer
767
+ * Returns gas estimate and result without sending transaction
768
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
769
+ */
770
+ async transfer(to, value, options) {
771
+ return contract.simulate.transfer([to, value], options);
772
+ },
773
+ /**
774
+ * Simulate transferFrom
775
+ * Returns gas estimate and result without sending transaction
776
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
777
+ */
778
+ async transferFrom(from, to, value, options) {
779
+ return contract.simulate.transferFrom([from, to, value], options);
780
+ },
781
+ /**
782
+ * Simulate transferOwnership
783
+ * Returns gas estimate and result without sending transaction
784
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
785
+ */
786
+ async transferOwnership(newOwner, options) {
787
+ return contract.simulate.transferOwnership([newOwner], options);
788
+ }
789
+ };
790
+ }
791
+ /**
792
+ * Watch contract events
793
+ *
794
+ * @example
795
+ * // Watch all Transfer events
796
+ * const unwatch = contract.watch.Transfer((event) => {
797
+ * console.log('Transfer:', event);
798
+ * });
799
+ *
800
+ * // Stop watching
801
+ * unwatch();
802
+ */
803
+ get watch() {
804
+ return {
805
+ /**
806
+ * Watch Approval events
807
+ * @param callback Function to call when event is emitted
808
+ * @param filter Optional filter for indexed parameters
809
+ * @returns Unwatch function to stop listening
810
+ */
811
+ Approval: (callback, filter) => {
812
+ return this.publicClient.watchContractEvent({
813
+ address: this.contractAddress,
814
+ abi: exports.MachineShare_jsonAbi,
815
+ eventName: 'Approval',
816
+ args: filter,
817
+ onLogs: (logs) => {
818
+ logs.forEach((log) => {
819
+ callback(log.args);
820
+ });
821
+ },
822
+ });
823
+ },
824
+ /**
825
+ * Watch OwnershipTransferStarted events
826
+ * @param callback Function to call when event is emitted
827
+ * @param filter Optional filter for indexed parameters
828
+ * @returns Unwatch function to stop listening
829
+ */
830
+ OwnershipTransferStarted: (callback, filter) => {
831
+ return this.publicClient.watchContractEvent({
832
+ address: this.contractAddress,
833
+ abi: exports.MachineShare_jsonAbi,
834
+ eventName: 'OwnershipTransferStarted',
835
+ args: filter,
836
+ onLogs: (logs) => {
837
+ logs.forEach((log) => {
838
+ callback(log.args);
839
+ });
840
+ },
841
+ });
842
+ },
843
+ /**
844
+ * Watch OwnershipTransferred events
845
+ * @param callback Function to call when event is emitted
846
+ * @param filter Optional filter for indexed parameters
847
+ * @returns Unwatch function to stop listening
848
+ */
849
+ OwnershipTransferred: (callback, filter) => {
850
+ return this.publicClient.watchContractEvent({
851
+ address: this.contractAddress,
852
+ abi: exports.MachineShare_jsonAbi,
853
+ eventName: 'OwnershipTransferred',
854
+ args: filter,
855
+ onLogs: (logs) => {
856
+ logs.forEach((log) => {
857
+ callback(log.args);
858
+ });
859
+ },
860
+ });
861
+ },
862
+ /**
863
+ * Watch Transfer events
864
+ * @param callback Function to call when event is emitted
865
+ * @param filter Optional filter for indexed parameters
866
+ * @returns Unwatch function to stop listening
867
+ */
868
+ Transfer: (callback, filter) => {
869
+ return this.publicClient.watchContractEvent({
870
+ address: this.contractAddress,
871
+ abi: exports.MachineShare_jsonAbi,
872
+ eventName: 'Transfer',
873
+ args: filter,
874
+ onLogs: (logs) => {
875
+ logs.forEach((log) => {
876
+ callback(log.args);
877
+ });
878
+ },
879
+ });
880
+ }
881
+ };
882
+ }
883
+ }
884
+ exports.MachineShare_json = MachineShare_json;