@gitmyabi/stakingmanager 1.0.2 → 1.0.3
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.
- package/README.md +3 -3
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/contracts/{stakingManagerV3_json.d.ts → stakingManagerV4_json.d.ts} +200 -103
- package/contracts/{stakingManagerV3_json.js → stakingManagerV4_json.js} +222 -104
- package/contracts/{stakingManagerV3_json.ts → stakingManagerV4_json.ts} +266 -131
- package/package.json +3 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.stakingManagerV4_json = exports.stakingManagerV4_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* stakingManagerV4_json ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.stakingManagerV4_jsonAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [],
|
|
13
13
|
"stateMutability": "nonpayable",
|
|
@@ -103,36 +103,16 @@ exports.stakingManagerV3_jsonAbi = [
|
|
|
103
103
|
"type": "event"
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
"inputs": [
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"name": "_rewardTokenAddress",
|
|
110
|
-
"type": "address"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"internalType": "address",
|
|
114
|
-
"name": "_presale",
|
|
115
|
-
"type": "address"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"internalType": "uint256",
|
|
119
|
-
"name": "_rewardTokensPerBlock",
|
|
120
|
-
"type": "uint256"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"internalType": "uint256",
|
|
124
|
-
"name": "_lockTime",
|
|
125
|
-
"type": "uint256"
|
|
126
|
-
},
|
|
106
|
+
"inputs": [],
|
|
107
|
+
"name": "accShareOld",
|
|
108
|
+
"outputs": [
|
|
127
109
|
{
|
|
128
110
|
"internalType": "uint256",
|
|
129
|
-
"name": "
|
|
111
|
+
"name": "",
|
|
130
112
|
"type": "uint256"
|
|
131
113
|
}
|
|
132
114
|
],
|
|
133
|
-
"
|
|
134
|
-
"outputs": [],
|
|
135
|
-
"stateMutability": "nonpayable",
|
|
115
|
+
"stateMutability": "view",
|
|
136
116
|
"type": "function"
|
|
137
117
|
},
|
|
138
118
|
{
|
|
@@ -293,36 +273,43 @@ exports.stakingManagerV3_jsonAbi = [
|
|
|
293
273
|
"inputs": [
|
|
294
274
|
{
|
|
295
275
|
"internalType": "address",
|
|
296
|
-
"name": "",
|
|
276
|
+
"name": "_user",
|
|
297
277
|
"type": "address"
|
|
298
278
|
}
|
|
299
279
|
],
|
|
300
280
|
"name": "poolStakers",
|
|
301
281
|
"outputs": [
|
|
302
282
|
{
|
|
303
|
-
"
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
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"
|
|
326
313
|
}
|
|
327
314
|
],
|
|
328
315
|
"stateMutability": "view",
|
|
@@ -452,6 +439,32 @@ exports.stakingManagerV3_jsonAbi = [
|
|
|
452
439
|
"stateMutability": "nonpayable",
|
|
453
440
|
"type": "function"
|
|
454
441
|
},
|
|
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
|
+
},
|
|
455
468
|
{
|
|
456
469
|
"inputs": [],
|
|
457
470
|
"name": "stakeToken",
|
|
@@ -491,6 +504,19 @@ exports.stakingManagerV3_jsonAbi = [
|
|
|
491
504
|
"stateMutability": "view",
|
|
492
505
|
"type": "function"
|
|
493
506
|
},
|
|
507
|
+
{
|
|
508
|
+
"inputs": [],
|
|
509
|
+
"name": "tokensStakedPrev",
|
|
510
|
+
"outputs": [
|
|
511
|
+
{
|
|
512
|
+
"internalType": "uint256",
|
|
513
|
+
"name": "",
|
|
514
|
+
"type": "uint256"
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"stateMutability": "view",
|
|
518
|
+
"type": "function"
|
|
519
|
+
},
|
|
494
520
|
{
|
|
495
521
|
"inputs": [
|
|
496
522
|
{
|
|
@@ -523,29 +549,79 @@ exports.stakingManagerV3_jsonAbi = [
|
|
|
523
549
|
"stateMutability": "view",
|
|
524
550
|
"type": "function"
|
|
525
551
|
},
|
|
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
|
+
},
|
|
526
576
|
{
|
|
527
577
|
"inputs": [],
|
|
528
|
-
"name": "
|
|
529
|
-
"outputs": [
|
|
530
|
-
|
|
578
|
+
"name": "vestLock",
|
|
579
|
+
"outputs": [
|
|
580
|
+
{
|
|
581
|
+
"internalType": "bool",
|
|
582
|
+
"name": "",
|
|
583
|
+
"type": "bool"
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
"stateMutability": "view",
|
|
531
587
|
"type": "function"
|
|
532
588
|
},
|
|
533
589
|
{
|
|
534
|
-
"inputs": [
|
|
590
|
+
"inputs": [],
|
|
591
|
+
"name": "vestingEndTime",
|
|
592
|
+
"outputs": [
|
|
535
593
|
{
|
|
536
594
|
"internalType": "uint256",
|
|
537
|
-
"name": "
|
|
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": "",
|
|
538
609
|
"type": "uint256"
|
|
539
610
|
}
|
|
540
611
|
],
|
|
541
|
-
"
|
|
612
|
+
"stateMutability": "view",
|
|
613
|
+
"type": "function"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"inputs": [],
|
|
617
|
+
"name": "withdraw",
|
|
542
618
|
"outputs": [],
|
|
543
619
|
"stateMutability": "nonpayable",
|
|
544
620
|
"type": "function"
|
|
545
621
|
}
|
|
546
622
|
];
|
|
547
623
|
/**
|
|
548
|
-
*
|
|
624
|
+
* stakingManagerV4_json Contract Class
|
|
549
625
|
*
|
|
550
626
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
551
627
|
*
|
|
@@ -553,12 +629,12 @@ exports.stakingManagerV3_jsonAbi = [
|
|
|
553
629
|
* ```typescript
|
|
554
630
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
555
631
|
* import { mainnet } from 'viem/chains';
|
|
556
|
-
* import {
|
|
632
|
+
* import { stakingManagerV4_json } from 'stakingManagerV4_json';
|
|
557
633
|
*
|
|
558
634
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
559
635
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
560
636
|
*
|
|
561
|
-
* const contract = new
|
|
637
|
+
* const contract = new stakingManagerV4_json('0x...', { publicClient, walletClient });
|
|
562
638
|
*
|
|
563
639
|
* // Read functions
|
|
564
640
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -576,13 +652,13 @@ exports.stakingManagerV3_jsonAbi = [
|
|
|
576
652
|
* });
|
|
577
653
|
* ```
|
|
578
654
|
*/
|
|
579
|
-
class
|
|
655
|
+
class stakingManagerV4_json {
|
|
580
656
|
constructor(address, clients) {
|
|
581
657
|
this.contractAddress = address;
|
|
582
658
|
this.publicClient = clients.publicClient;
|
|
583
659
|
this.contract = (0, viem_1.getContract)({
|
|
584
660
|
address,
|
|
585
|
-
abi: exports.
|
|
661
|
+
abi: exports.stakingManagerV4_jsonAbi,
|
|
586
662
|
client: {
|
|
587
663
|
public: clients.publicClient,
|
|
588
664
|
wallet: clients.walletClient,
|
|
@@ -601,6 +677,13 @@ class stakingManagerV3_json {
|
|
|
601
677
|
getContract() {
|
|
602
678
|
return this.contract;
|
|
603
679
|
}
|
|
680
|
+
/**
|
|
681
|
+
* accShareOld
|
|
682
|
+
* view
|
|
683
|
+
*/
|
|
684
|
+
async accShareOld() {
|
|
685
|
+
return this.contract.read.accShareOld();
|
|
686
|
+
}
|
|
604
687
|
/**
|
|
605
688
|
* claimStart
|
|
606
689
|
* view
|
|
@@ -654,8 +737,8 @@ class stakingManagerV3_json {
|
|
|
654
737
|
* poolStakers
|
|
655
738
|
* view
|
|
656
739
|
*/
|
|
657
|
-
async poolStakers(
|
|
658
|
-
return this.contract.read.poolStakers([
|
|
740
|
+
async poolStakers(_user) {
|
|
741
|
+
return this.contract.read.poolStakers([_user]);
|
|
659
742
|
}
|
|
660
743
|
/**
|
|
661
744
|
* presaleContract
|
|
@@ -692,6 +775,13 @@ class stakingManagerV3_json {
|
|
|
692
775
|
async tokensStakedByPresale() {
|
|
693
776
|
return this.contract.read.tokensStakedByPresale();
|
|
694
777
|
}
|
|
778
|
+
/**
|
|
779
|
+
* tokensStakedPrev
|
|
780
|
+
* view
|
|
781
|
+
*/
|
|
782
|
+
async tokensStakedPrev() {
|
|
783
|
+
return this.contract.read.tokensStakedPrev();
|
|
784
|
+
}
|
|
695
785
|
/**
|
|
696
786
|
* userLockedRewards
|
|
697
787
|
* view
|
|
@@ -700,15 +790,32 @@ class stakingManagerV3_json {
|
|
|
700
790
|
return this.contract.read.userLockedRewards([arg0]);
|
|
701
791
|
}
|
|
702
792
|
/**
|
|
703
|
-
*
|
|
704
|
-
*
|
|
705
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
793
|
+
* userVestingDetails
|
|
794
|
+
* view
|
|
706
795
|
*/
|
|
707
|
-
async
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
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();
|
|
712
819
|
}
|
|
713
820
|
/**
|
|
714
821
|
* blacklistUsers
|
|
@@ -843,37 +950,48 @@ class stakingManagerV3_json {
|
|
|
843
950
|
return this.contract.write.setStakeToken([_stakeToken], options);
|
|
844
951
|
}
|
|
845
952
|
/**
|
|
846
|
-
*
|
|
953
|
+
* setVestLock
|
|
847
954
|
* nonpayable
|
|
848
955
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
849
956
|
*/
|
|
850
|
-
async
|
|
957
|
+
async setVestLock(_vestLock, options) {
|
|
851
958
|
if (!this.contract.write) {
|
|
852
959
|
throw new Error('Wallet client is required for write operations');
|
|
853
960
|
}
|
|
854
|
-
return this.contract.write.
|
|
961
|
+
return this.contract.write.setVestLock([_vestLock], options);
|
|
855
962
|
}
|
|
856
963
|
/**
|
|
857
|
-
*
|
|
964
|
+
* setVestingDetails
|
|
858
965
|
* nonpayable
|
|
859
966
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
860
967
|
*/
|
|
861
|
-
async
|
|
968
|
+
async setVestingDetails(_vestingEndTime, options) {
|
|
862
969
|
if (!this.contract.write) {
|
|
863
970
|
throw new Error('Wallet client is required for write operations');
|
|
864
971
|
}
|
|
865
|
-
return this.contract.write.
|
|
972
|
+
return this.contract.write.setVestingDetails([_vestingEndTime], options);
|
|
866
973
|
}
|
|
867
974
|
/**
|
|
868
|
-
*
|
|
975
|
+
* transferOwnership
|
|
869
976
|
* nonpayable
|
|
870
977
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
871
978
|
*/
|
|
872
|
-
async
|
|
979
|
+
async transferOwnership(newOwner, options) {
|
|
873
980
|
if (!this.contract.write) {
|
|
874
981
|
throw new Error('Wallet client is required for write operations');
|
|
875
982
|
}
|
|
876
|
-
return this.contract.write.
|
|
983
|
+
return this.contract.write.transferOwnership([newOwner], options);
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* withdraw
|
|
987
|
+
* nonpayable
|
|
988
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
989
|
+
*/
|
|
990
|
+
async withdraw(options) {
|
|
991
|
+
if (!this.contract.write) {
|
|
992
|
+
throw new Error('Wallet client is required for write operations');
|
|
993
|
+
}
|
|
994
|
+
return this.contract.write.withdraw(options);
|
|
877
995
|
}
|
|
878
996
|
/**
|
|
879
997
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -889,14 +1007,6 @@ class stakingManagerV3_json {
|
|
|
889
1007
|
throw new Error('Public client is required for simulation');
|
|
890
1008
|
}
|
|
891
1009
|
return {
|
|
892
|
-
/**
|
|
893
|
-
* Simulate __stakingManager_init
|
|
894
|
-
* Returns gas estimate and result without sending transaction
|
|
895
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
896
|
-
*/
|
|
897
|
-
async __stakingManager_init(_rewardTokenAddress, _presale, _rewardTokensPerBlock, _lockTime, _endBlock, options) {
|
|
898
|
-
return contract.simulate.__stakingManager_init([_rewardTokenAddress, _presale, _rewardTokensPerBlock, _lockTime, _endBlock], options);
|
|
899
|
-
},
|
|
900
1010
|
/**
|
|
901
1011
|
* Simulate blacklistUsers
|
|
902
1012
|
* Returns gas estimate and result without sending transaction
|
|
@@ -993,6 +1103,22 @@ class stakingManagerV3_json {
|
|
|
993
1103
|
async setStakeToken(_stakeToken, options) {
|
|
994
1104
|
return contract.simulate.setStakeToken([_stakeToken], options);
|
|
995
1105
|
},
|
|
1106
|
+
/**
|
|
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
|
|
1116
|
+
* Returns gas estimate and result without sending transaction
|
|
1117
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1118
|
+
*/
|
|
1119
|
+
async setVestingDetails(_vestingEndTime, options) {
|
|
1120
|
+
return contract.simulate.setVestingDetails([_vestingEndTime], options);
|
|
1121
|
+
},
|
|
996
1122
|
/**
|
|
997
1123
|
* Simulate transferOwnership
|
|
998
1124
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1008,14 +1134,6 @@ class stakingManagerV3_json {
|
|
|
1008
1134
|
*/
|
|
1009
1135
|
async withdraw(options) {
|
|
1010
1136
|
return contract.simulate.withdraw(options);
|
|
1011
|
-
},
|
|
1012
|
-
/**
|
|
1013
|
-
* Simulate withdrawToken
|
|
1014
|
-
* Returns gas estimate and result without sending transaction
|
|
1015
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1016
|
-
*/
|
|
1017
|
-
async withdrawToken(_amount, options) {
|
|
1018
|
-
return contract.simulate.withdrawToken([_amount], options);
|
|
1019
1137
|
}
|
|
1020
1138
|
};
|
|
1021
1139
|
}
|
|
@@ -1042,7 +1160,7 @@ class stakingManagerV3_json {
|
|
|
1042
1160
|
Deposit: (callback, filter) => {
|
|
1043
1161
|
return this.publicClient.watchContractEvent({
|
|
1044
1162
|
address: this.contractAddress,
|
|
1045
|
-
abi: exports.
|
|
1163
|
+
abi: exports.stakingManagerV4_jsonAbi,
|
|
1046
1164
|
eventName: 'Deposit',
|
|
1047
1165
|
args: filter,
|
|
1048
1166
|
onLogs: (logs) => {
|
|
@@ -1061,7 +1179,7 @@ class stakingManagerV3_json {
|
|
|
1061
1179
|
HarvestRewards: (callback, filter) => {
|
|
1062
1180
|
return this.publicClient.watchContractEvent({
|
|
1063
1181
|
address: this.contractAddress,
|
|
1064
|
-
abi: exports.
|
|
1182
|
+
abi: exports.stakingManagerV4_jsonAbi,
|
|
1065
1183
|
eventName: 'HarvestRewards',
|
|
1066
1184
|
args: filter,
|
|
1067
1185
|
onLogs: (logs) => {
|
|
@@ -1080,7 +1198,7 @@ class stakingManagerV3_json {
|
|
|
1080
1198
|
Initialized: (callback) => {
|
|
1081
1199
|
return this.publicClient.watchContractEvent({
|
|
1082
1200
|
address: this.contractAddress,
|
|
1083
|
-
abi: exports.
|
|
1201
|
+
abi: exports.stakingManagerV4_jsonAbi,
|
|
1084
1202
|
eventName: 'Initialized',
|
|
1085
1203
|
onLogs: (logs) => {
|
|
1086
1204
|
logs.forEach((log) => {
|
|
@@ -1098,7 +1216,7 @@ class stakingManagerV3_json {
|
|
|
1098
1216
|
OwnershipTransferred: (callback, filter) => {
|
|
1099
1217
|
return this.publicClient.watchContractEvent({
|
|
1100
1218
|
address: this.contractAddress,
|
|
1101
|
-
abi: exports.
|
|
1219
|
+
abi: exports.stakingManagerV4_jsonAbi,
|
|
1102
1220
|
eventName: 'OwnershipTransferred',
|
|
1103
1221
|
args: filter,
|
|
1104
1222
|
onLogs: (logs) => {
|
|
@@ -1117,7 +1235,7 @@ class stakingManagerV3_json {
|
|
|
1117
1235
|
Withdraw: (callback, filter) => {
|
|
1118
1236
|
return this.publicClient.watchContractEvent({
|
|
1119
1237
|
address: this.contractAddress,
|
|
1120
|
-
abi: exports.
|
|
1238
|
+
abi: exports.stakingManagerV4_jsonAbi,
|
|
1121
1239
|
eventName: 'Withdraw',
|
|
1122
1240
|
args: filter,
|
|
1123
1241
|
onLogs: (logs) => {
|
|
@@ -1130,4 +1248,4 @@ class stakingManagerV3_json {
|
|
|
1130
1248
|
};
|
|
1131
1249
|
}
|
|
1132
1250
|
}
|
|
1133
|
-
exports.
|
|
1251
|
+
exports.stakingManagerV4_json = stakingManagerV4_json;
|