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