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