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