@gitmyabi/stakingmanager 1.0.3 → 1.0.5

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.
@@ -97,45 +97,69 @@ exports.stakingManagerV4_jsonAbi = [
97
97
  "internalType": "uint256",
98
98
  "name": "amount",
99
99
  "type": "uint256"
100
+ },
101
+ {
102
+ "indexed": false,
103
+ "internalType": "uint256",
104
+ "name": "timestamp",
105
+ "type": "uint256"
100
106
  }
101
107
  ],
102
- "name": "Withdraw",
108
+ "name": "RestakePrincipal",
103
109
  "type": "event"
104
110
  },
105
111
  {
106
- "inputs": [],
107
- "name": "accShareOld",
108
- "outputs": [
112
+ "anonymous": false,
113
+ "inputs": [
109
114
  {
115
+ "indexed": true,
116
+ "internalType": "address",
117
+ "name": "user",
118
+ "type": "address"
119
+ },
120
+ {
121
+ "indexed": false,
110
122
  "internalType": "uint256",
111
- "name": "",
123
+ "name": "amount",
124
+ "type": "uint256"
125
+ },
126
+ {
127
+ "indexed": false,
128
+ "internalType": "uint256",
129
+ "name": "timestamp",
112
130
  "type": "uint256"
113
131
  }
114
132
  ],
115
- "stateMutability": "view",
116
- "type": "function"
133
+ "name": "RestakeRewards",
134
+ "type": "event"
117
135
  },
118
136
  {
137
+ "anonymous": false,
119
138
  "inputs": [
120
139
  {
121
- "internalType": "address[]",
122
- "name": "_usersToBlacklist",
123
- "type": "address[]"
140
+ "indexed": true,
141
+ "internalType": "address",
142
+ "name": "user",
143
+ "type": "address"
144
+ },
145
+ {
146
+ "indexed": false,
147
+ "internalType": "uint256",
148
+ "name": "amount",
149
+ "type": "uint256"
124
150
  }
125
151
  ],
126
- "name": "blacklistUsers",
127
- "outputs": [],
128
- "stateMutability": "nonpayable",
129
- "type": "function"
152
+ "name": "Withdraw",
153
+ "type": "event"
130
154
  },
131
155
  {
132
156
  "inputs": [],
133
- "name": "claimStart",
157
+ "name": "DEV_WALLET",
134
158
  "outputs": [
135
159
  {
136
- "internalType": "uint256",
160
+ "internalType": "address",
137
161
  "name": "",
138
- "type": "uint256"
162
+ "type": "address"
139
163
  }
140
164
  ],
141
165
  "stateMutability": "view",
@@ -144,32 +168,27 @@ exports.stakingManagerV4_jsonAbi = [
144
168
  {
145
169
  "inputs": [
146
170
  {
147
- "internalType": "uint256",
148
- "name": "_amount",
149
- "type": "uint256"
171
+ "internalType": "address[]",
172
+ "name": "_usersToBlacklist",
173
+ "type": "address[]"
150
174
  }
151
175
  ],
152
- "name": "deposit",
176
+ "name": "blacklistUsers",
153
177
  "outputs": [],
154
178
  "stateMutability": "nonpayable",
155
179
  "type": "function"
156
180
  },
157
181
  {
158
- "inputs": [
159
- {
160
- "internalType": "address",
161
- "name": "_user",
162
- "type": "address"
163
- },
182
+ "inputs": [],
183
+ "name": "claimStart",
184
+ "outputs": [
164
185
  {
165
186
  "internalType": "uint256",
166
- "name": "_amount",
187
+ "name": "",
167
188
  "type": "uint256"
168
189
  }
169
190
  ],
170
- "name": "depositByPresale",
171
- "outputs": [],
172
- "stateMutability": "nonpayable",
191
+ "stateMutability": "view",
173
192
  "type": "function"
174
193
  },
175
194
  {
@@ -256,6 +275,19 @@ exports.stakingManagerV4_jsonAbi = [
256
275
  "stateMutability": "view",
257
276
  "type": "function"
258
277
  },
278
+ {
279
+ "inputs": [],
280
+ "name": "newStaking",
281
+ "outputs": [
282
+ {
283
+ "internalType": "contract INewStaking",
284
+ "name": "",
285
+ "type": "address"
286
+ }
287
+ ],
288
+ "stateMutability": "view",
289
+ "type": "function"
290
+ },
259
291
  {
260
292
  "inputs": [],
261
293
  "name": "owner",
@@ -273,43 +305,36 @@ exports.stakingManagerV4_jsonAbi = [
273
305
  "inputs": [
274
306
  {
275
307
  "internalType": "address",
276
- "name": "_user",
308
+ "name": "",
277
309
  "type": "address"
278
310
  }
279
311
  ],
280
312
  "name": "poolStakers",
281
313
  "outputs": [
282
314
  {
283
- "components": [
284
- {
285
- "internalType": "uint256",
286
- "name": "amount",
287
- "type": "uint256"
288
- },
289
- {
290
- "internalType": "uint256",
291
- "name": "stakedTime",
292
- "type": "uint256"
293
- },
294
- {
295
- "internalType": "uint256",
296
- "name": "lastUpdatedBlock",
297
- "type": "uint256"
298
- },
299
- {
300
- "internalType": "uint256",
301
- "name": "Harvestedrewards",
302
- "type": "uint256"
303
- },
304
- {
305
- "internalType": "uint256",
306
- "name": "rewardDebt",
307
- "type": "uint256"
308
- }
309
- ],
310
- "internalType": "struct stakingManagerV4.PoolStaker",
311
- "name": "",
312
- "type": "tuple"
315
+ "internalType": "uint256",
316
+ "name": "amount",
317
+ "type": "uint256"
318
+ },
319
+ {
320
+ "internalType": "uint256",
321
+ "name": "stakedTime",
322
+ "type": "uint256"
323
+ },
324
+ {
325
+ "internalType": "uint256",
326
+ "name": "lastUpdatedBlock",
327
+ "type": "uint256"
328
+ },
329
+ {
330
+ "internalType": "uint256",
331
+ "name": "Harvestedrewards",
332
+ "type": "uint256"
333
+ },
334
+ {
335
+ "internalType": "uint256",
336
+ "name": "rewardDebt",
337
+ "type": "uint256"
313
338
  }
314
339
  ],
315
340
  "stateMutability": "view",
@@ -348,6 +373,13 @@ exports.stakingManagerV4_jsonAbi = [
348
373
  "stateMutability": "nonpayable",
349
374
  "type": "function"
350
375
  },
376
+ {
377
+ "inputs": [],
378
+ "name": "restakeNew",
379
+ "outputs": [],
380
+ "stateMutability": "nonpayable",
381
+ "type": "function"
382
+ },
351
383
  {
352
384
  "inputs": [],
353
385
  "name": "rewardTokensPerBlock",
@@ -361,19 +393,6 @@ exports.stakingManagerV4_jsonAbi = [
361
393
  "stateMutability": "view",
362
394
  "type": "function"
363
395
  },
364
- {
365
- "inputs": [
366
- {
367
- "internalType": "uint256",
368
- "name": "_claimStart",
369
- "type": "uint256"
370
- }
371
- ],
372
- "name": "setClaimStart",
373
- "outputs": [],
374
- "stateMutability": "nonpayable",
375
- "type": "function"
376
- },
377
396
  {
378
397
  "inputs": [
379
398
  {
@@ -387,41 +406,15 @@ exports.stakingManagerV4_jsonAbi = [
387
406
  "stateMutability": "nonpayable",
388
407
  "type": "function"
389
408
  },
390
- {
391
- "inputs": [
392
- {
393
- "internalType": "bool",
394
- "name": "_harvestlock",
395
- "type": "bool"
396
- }
397
- ],
398
- "name": "setHarvestLock",
399
- "outputs": [],
400
- "stateMutability": "nonpayable",
401
- "type": "function"
402
- },
403
- {
404
- "inputs": [
405
- {
406
- "internalType": "uint256",
407
- "name": "_time",
408
- "type": "uint256"
409
- }
410
- ],
411
- "name": "setLockedTime",
412
- "outputs": [],
413
- "stateMutability": "nonpayable",
414
- "type": "function"
415
- },
416
409
  {
417
410
  "inputs": [
418
411
  {
419
412
  "internalType": "address",
420
- "name": "_presale",
413
+ "name": "_stakingContract",
421
414
  "type": "address"
422
415
  }
423
416
  ],
424
- "name": "setPresale",
417
+ "name": "setNewStaking",
425
418
  "outputs": [],
426
419
  "stateMutability": "nonpayable",
427
420
  "type": "function"
@@ -439,32 +432,6 @@ exports.stakingManagerV4_jsonAbi = [
439
432
  "stateMutability": "nonpayable",
440
433
  "type": "function"
441
434
  },
442
- {
443
- "inputs": [
444
- {
445
- "internalType": "bool",
446
- "name": "_vestLock",
447
- "type": "bool"
448
- }
449
- ],
450
- "name": "setVestLock",
451
- "outputs": [],
452
- "stateMutability": "nonpayable",
453
- "type": "function"
454
- },
455
- {
456
- "inputs": [
457
- {
458
- "internalType": "uint256",
459
- "name": "_vestingEndTime",
460
- "type": "uint256"
461
- }
462
- ],
463
- "name": "setVestingDetails",
464
- "outputs": [],
465
- "stateMutability": "nonpayable",
466
- "type": "function"
467
- },
468
435
  {
469
436
  "inputs": [],
470
437
  "name": "stakeToken",
@@ -479,21 +446,21 @@ exports.stakingManagerV4_jsonAbi = [
479
446
  "type": "function"
480
447
  },
481
448
  {
482
- "inputs": [],
483
- "name": "tokensStaked",
484
- "outputs": [
449
+ "inputs": [
485
450
  {
486
451
  "internalType": "uint256",
487
- "name": "",
452
+ "name": "amount",
488
453
  "type": "uint256"
489
454
  }
490
455
  ],
491
- "stateMutability": "view",
456
+ "name": "tokenTransfer",
457
+ "outputs": [],
458
+ "stateMutability": "nonpayable",
492
459
  "type": "function"
493
460
  },
494
461
  {
495
462
  "inputs": [],
496
- "name": "tokensStakedByPresale",
463
+ "name": "tokensStaked",
497
464
  "outputs": [
498
465
  {
499
466
  "internalType": "uint256",
@@ -506,7 +473,7 @@ exports.stakingManagerV4_jsonAbi = [
506
473
  },
507
474
  {
508
475
  "inputs": [],
509
- "name": "tokensStakedPrev",
476
+ "name": "tokensStakedByPresale",
510
477
  "outputs": [
511
478
  {
512
479
  "internalType": "uint256",
@@ -549,69 +516,6 @@ exports.stakingManagerV4_jsonAbi = [
549
516
  "stateMutability": "view",
550
517
  "type": "function"
551
518
  },
552
- {
553
- "inputs": [
554
- {
555
- "internalType": "address",
556
- "name": "",
557
- "type": "address"
558
- }
559
- ],
560
- "name": "userVestingDetails",
561
- "outputs": [
562
- {
563
- "internalType": "uint256",
564
- "name": "totalVestedAmount",
565
- "type": "uint256"
566
- },
567
- {
568
- "internalType": "uint256",
569
- "name": "totalAmountGivenOut",
570
- "type": "uint256"
571
- }
572
- ],
573
- "stateMutability": "view",
574
- "type": "function"
575
- },
576
- {
577
- "inputs": [],
578
- "name": "vestLock",
579
- "outputs": [
580
- {
581
- "internalType": "bool",
582
- "name": "",
583
- "type": "bool"
584
- }
585
- ],
586
- "stateMutability": "view",
587
- "type": "function"
588
- },
589
- {
590
- "inputs": [],
591
- "name": "vestingEndTime",
592
- "outputs": [
593
- {
594
- "internalType": "uint256",
595
- "name": "",
596
- "type": "uint256"
597
- }
598
- ],
599
- "stateMutability": "view",
600
- "type": "function"
601
- },
602
- {
603
- "inputs": [],
604
- "name": "vestingStartBlock",
605
- "outputs": [
606
- {
607
- "internalType": "uint256",
608
- "name": "",
609
- "type": "uint256"
610
- }
611
- ],
612
- "stateMutability": "view",
613
- "type": "function"
614
- },
615
519
  {
616
520
  "inputs": [],
617
521
  "name": "withdraw",
@@ -678,11 +582,11 @@ class stakingManagerV4_json {
678
582
  return this.contract;
679
583
  }
680
584
  /**
681
- * accShareOld
585
+ * DEV_WALLET
682
586
  * view
683
587
  */
684
- async accShareOld() {
685
- return this.contract.read.accShareOld();
588
+ async DEV_WALLET() {
589
+ return this.contract.read.DEV_WALLET();
686
590
  }
687
591
  /**
688
592
  * claimStart
@@ -726,6 +630,13 @@ class stakingManagerV4_json {
726
630
  async lockedTime() {
727
631
  return this.contract.read.lockedTime();
728
632
  }
633
+ /**
634
+ * newStaking
635
+ * view
636
+ */
637
+ async newStaking() {
638
+ return this.contract.read.newStaking();
639
+ }
729
640
  /**
730
641
  * owner
731
642
  * view
@@ -737,8 +648,8 @@ class stakingManagerV4_json {
737
648
  * poolStakers
738
649
  * view
739
650
  */
740
- async poolStakers(_user) {
741
- return this.contract.read.poolStakers([_user]);
651
+ async poolStakers(arg0) {
652
+ return this.contract.read.poolStakers([arg0]);
742
653
  }
743
654
  /**
744
655
  * presaleContract
@@ -775,13 +686,6 @@ class stakingManagerV4_json {
775
686
  async tokensStakedByPresale() {
776
687
  return this.contract.read.tokensStakedByPresale();
777
688
  }
778
- /**
779
- * tokensStakedPrev
780
- * view
781
- */
782
- async tokensStakedPrev() {
783
- return this.contract.read.tokensStakedPrev();
784
- }
785
689
  /**
786
690
  * userLockedRewards
787
691
  * view
@@ -789,34 +693,6 @@ class stakingManagerV4_json {
789
693
  async userLockedRewards(arg0) {
790
694
  return this.contract.read.userLockedRewards([arg0]);
791
695
  }
792
- /**
793
- * userVestingDetails
794
- * view
795
- */
796
- async userVestingDetails(arg0) {
797
- return this.contract.read.userVestingDetails([arg0]);
798
- }
799
- /**
800
- * vestLock
801
- * view
802
- */
803
- async vestLock() {
804
- return this.contract.read.vestLock();
805
- }
806
- /**
807
- * vestingEndTime
808
- * view
809
- */
810
- async vestingEndTime() {
811
- return this.contract.read.vestingEndTime();
812
- }
813
- /**
814
- * vestingStartBlock
815
- * view
816
- */
817
- async vestingStartBlock() {
818
- return this.contract.read.vestingStartBlock();
819
- }
820
696
  /**
821
697
  * blacklistUsers
822
698
  * nonpayable
@@ -828,28 +704,6 @@ class stakingManagerV4_json {
828
704
  }
829
705
  return this.contract.write.blacklistUsers([_usersToBlacklist], options);
830
706
  }
831
- /**
832
- * deposit
833
- * nonpayable
834
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
835
- */
836
- async deposit(_amount, options) {
837
- if (!this.contract.write) {
838
- throw new Error('Wallet client is required for write operations');
839
- }
840
- return this.contract.write.deposit([_amount], options);
841
- }
842
- /**
843
- * depositByPresale
844
- * nonpayable
845
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
846
- */
847
- async depositByPresale(_user, _amount, options) {
848
- if (!this.contract.write) {
849
- throw new Error('Wallet client is required for write operations');
850
- }
851
- return this.contract.write.depositByPresale([_user, _amount], options);
852
- }
853
707
  /**
854
708
  * harvestRewards
855
709
  * nonpayable
@@ -884,15 +738,15 @@ class stakingManagerV4_json {
884
738
  return this.contract.write.renounceOwnership(options);
885
739
  }
886
740
  /**
887
- * setClaimStart
741
+ * restakeNew
888
742
  * nonpayable
889
743
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
890
744
  */
891
- async setClaimStart(_claimStart, options) {
745
+ async restakeNew(options) {
892
746
  if (!this.contract.write) {
893
747
  throw new Error('Wallet client is required for write operations');
894
748
  }
895
- return this.contract.write.setClaimStart([_claimStart], options);
749
+ return this.contract.write.restakeNew(options);
896
750
  }
897
751
  /**
898
752
  * setEndBlock
@@ -906,37 +760,15 @@ class stakingManagerV4_json {
906
760
  return this.contract.write.setEndBlock([_endBlock], options);
907
761
  }
908
762
  /**
909
- * setHarvestLock
763
+ * setNewStaking
910
764
  * nonpayable
911
765
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
912
766
  */
913
- async setHarvestLock(_harvestlock, options) {
767
+ async setNewStaking(_stakingContract, options) {
914
768
  if (!this.contract.write) {
915
769
  throw new Error('Wallet client is required for write operations');
916
770
  }
917
- return this.contract.write.setHarvestLock([_harvestlock], options);
918
- }
919
- /**
920
- * setLockedTime
921
- * nonpayable
922
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
923
- */
924
- async setLockedTime(_time, options) {
925
- if (!this.contract.write) {
926
- throw new Error('Wallet client is required for write operations');
927
- }
928
- return this.contract.write.setLockedTime([_time], options);
929
- }
930
- /**
931
- * setPresale
932
- * nonpayable
933
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
934
- */
935
- async setPresale(_presale, options) {
936
- if (!this.contract.write) {
937
- throw new Error('Wallet client is required for write operations');
938
- }
939
- return this.contract.write.setPresale([_presale], options);
771
+ return this.contract.write.setNewStaking([_stakingContract], options);
940
772
  }
941
773
  /**
942
774
  * setStakeToken
@@ -950,26 +782,15 @@ class stakingManagerV4_json {
950
782
  return this.contract.write.setStakeToken([_stakeToken], options);
951
783
  }
952
784
  /**
953
- * setVestLock
785
+ * tokenTransfer
954
786
  * nonpayable
955
787
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
956
788
  */
957
- async setVestLock(_vestLock, options) {
789
+ async tokenTransfer(amount, options) {
958
790
  if (!this.contract.write) {
959
791
  throw new Error('Wallet client is required for write operations');
960
792
  }
961
- return this.contract.write.setVestLock([_vestLock], options);
962
- }
963
- /**
964
- * setVestingDetails
965
- * nonpayable
966
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
967
- */
968
- async setVestingDetails(_vestingEndTime, options) {
969
- if (!this.contract.write) {
970
- throw new Error('Wallet client is required for write operations');
971
- }
972
- return this.contract.write.setVestingDetails([_vestingEndTime], options);
793
+ return this.contract.write.tokenTransfer([amount], options);
973
794
  }
974
795
  /**
975
796
  * transferOwnership
@@ -1015,22 +836,6 @@ class stakingManagerV4_json {
1015
836
  async blacklistUsers(_usersToBlacklist, options) {
1016
837
  return contract.simulate.blacklistUsers([_usersToBlacklist], options);
1017
838
  },
1018
- /**
1019
- * Simulate deposit
1020
- * Returns gas estimate and result without sending transaction
1021
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1022
- */
1023
- async deposit(_amount, options) {
1024
- return contract.simulate.deposit([_amount], options);
1025
- },
1026
- /**
1027
- * Simulate depositByPresale
1028
- * Returns gas estimate and result without sending transaction
1029
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1030
- */
1031
- async depositByPresale(_user, _amount, options) {
1032
- return contract.simulate.depositByPresale([_user, _amount], options);
1033
- },
1034
839
  /**
1035
840
  * Simulate harvestRewards
1036
841
  * Returns gas estimate and result without sending transaction
@@ -1056,12 +861,12 @@ class stakingManagerV4_json {
1056
861
  return contract.simulate.renounceOwnership(options);
1057
862
  },
1058
863
  /**
1059
- * Simulate setClaimStart
864
+ * Simulate restakeNew
1060
865
  * Returns gas estimate and result without sending transaction
1061
866
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1062
867
  */
1063
- async setClaimStart(_claimStart, options) {
1064
- return contract.simulate.setClaimStart([_claimStart], options);
868
+ async restakeNew(options) {
869
+ return contract.simulate.restakeNew(options);
1065
870
  },
1066
871
  /**
1067
872
  * Simulate setEndBlock
@@ -1072,28 +877,12 @@ class stakingManagerV4_json {
1072
877
  return contract.simulate.setEndBlock([_endBlock], options);
1073
878
  },
1074
879
  /**
1075
- * Simulate setHarvestLock
880
+ * Simulate setNewStaking
1076
881
  * Returns gas estimate and result without sending transaction
1077
882
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1078
883
  */
1079
- async setHarvestLock(_harvestlock, options) {
1080
- return contract.simulate.setHarvestLock([_harvestlock], options);
1081
- },
1082
- /**
1083
- * Simulate setLockedTime
1084
- * Returns gas estimate and result without sending transaction
1085
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1086
- */
1087
- async setLockedTime(_time, options) {
1088
- return contract.simulate.setLockedTime([_time], options);
1089
- },
1090
- /**
1091
- * Simulate setPresale
1092
- * Returns gas estimate and result without sending transaction
1093
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1094
- */
1095
- async setPresale(_presale, options) {
1096
- return contract.simulate.setPresale([_presale], options);
884
+ async setNewStaking(_stakingContract, options) {
885
+ return contract.simulate.setNewStaking([_stakingContract], options);
1097
886
  },
1098
887
  /**
1099
888
  * Simulate setStakeToken
@@ -1104,20 +893,12 @@ class stakingManagerV4_json {
1104
893
  return contract.simulate.setStakeToken([_stakeToken], options);
1105
894
  },
1106
895
  /**
1107
- * Simulate setVestLock
1108
- * Returns gas estimate and result without sending transaction
1109
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1110
- */
1111
- async setVestLock(_vestLock, options) {
1112
- return contract.simulate.setVestLock([_vestLock], options);
1113
- },
1114
- /**
1115
- * Simulate setVestingDetails
896
+ * Simulate tokenTransfer
1116
897
  * Returns gas estimate and result without sending transaction
1117
898
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1118
899
  */
1119
- async setVestingDetails(_vestingEndTime, options) {
1120
- return contract.simulate.setVestingDetails([_vestingEndTime], options);
900
+ async tokenTransfer(amount, options) {
901
+ return contract.simulate.tokenTransfer([amount], options);
1121
902
  },
1122
903
  /**
1123
904
  * Simulate transferOwnership
@@ -1226,6 +1007,44 @@ class stakingManagerV4_json {
1226
1007
  },
1227
1008
  });
1228
1009
  },
1010
+ /**
1011
+ * Watch RestakePrincipal events
1012
+ * @param callback Function to call when event is emitted
1013
+ * @param filter Optional filter for indexed parameters
1014
+ * @returns Unwatch function to stop listening
1015
+ */
1016
+ RestakePrincipal: (callback, filter) => {
1017
+ return this.publicClient.watchContractEvent({
1018
+ address: this.contractAddress,
1019
+ abi: exports.stakingManagerV4_jsonAbi,
1020
+ eventName: 'RestakePrincipal',
1021
+ args: filter,
1022
+ onLogs: (logs) => {
1023
+ logs.forEach((log) => {
1024
+ callback(log.args);
1025
+ });
1026
+ },
1027
+ });
1028
+ },
1029
+ /**
1030
+ * Watch RestakeRewards events
1031
+ * @param callback Function to call when event is emitted
1032
+ * @param filter Optional filter for indexed parameters
1033
+ * @returns Unwatch function to stop listening
1034
+ */
1035
+ RestakeRewards: (callback, filter) => {
1036
+ return this.publicClient.watchContractEvent({
1037
+ address: this.contractAddress,
1038
+ abi: exports.stakingManagerV4_jsonAbi,
1039
+ eventName: 'RestakeRewards',
1040
+ args: filter,
1041
+ onLogs: (logs) => {
1042
+ logs.forEach((log) => {
1043
+ callback(log.args);
1044
+ });
1045
+ },
1046
+ });
1047
+ },
1229
1048
  /**
1230
1049
  * Watch Withdraw events
1231
1050
  * @param callback Function to call when event is emitted