@nexusmutual/sdk 0.4.8 → 0.4.9
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/dist/data/abis/Assessment.json +102 -0
- package/dist/data/abis/Cover.json +18 -0
- package/dist/data/abis/StakingPool.json +17 -173
- package/dist/data/abis/StakingProducts.json +75 -1
- package/dist/data/abis/StakingViewer.json +30 -0
- package/dist/data/abis/TokenController.json +77 -18
- package/dist/data/addresses.json +1 -1
- package/dist/data/product-types.json +7 -0
- package/dist/data/products.json +1 -1
- package/dist/index.d.mts +510 -309
- package/dist/index.d.ts +510 -309
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
|
@@ -20,6 +20,11 @@
|
|
|
20
20
|
"internalType": "address",
|
|
21
21
|
"name": "tokenAddress",
|
|
22
22
|
"type": "address"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"internalType": "address",
|
|
26
|
+
"name": "stakingNFTAddress",
|
|
27
|
+
"type": "address"
|
|
23
28
|
}
|
|
24
29
|
],
|
|
25
30
|
"stateMutability": "nonpayable",
|
|
@@ -736,6 +741,19 @@
|
|
|
736
741
|
"stateMutability": "nonpayable",
|
|
737
742
|
"type": "function"
|
|
738
743
|
},
|
|
744
|
+
{
|
|
745
|
+
"inputs": [],
|
|
746
|
+
"name": "stakingNFT",
|
|
747
|
+
"outputs": [
|
|
748
|
+
{
|
|
749
|
+
"internalType": "contract IStakingNFT",
|
|
750
|
+
"name": "",
|
|
751
|
+
"type": "address"
|
|
752
|
+
}
|
|
753
|
+
],
|
|
754
|
+
"stateMutability": "view",
|
|
755
|
+
"type": "function"
|
|
756
|
+
},
|
|
739
757
|
{
|
|
740
758
|
"inputs": [],
|
|
741
759
|
"name": "stakingPoolFactory",
|
|
@@ -972,27 +990,68 @@
|
|
|
972
990
|
{
|
|
973
991
|
"inputs": [
|
|
974
992
|
{
|
|
975
|
-
"
|
|
976
|
-
|
|
977
|
-
|
|
993
|
+
"components": [
|
|
994
|
+
{
|
|
995
|
+
"internalType": "bool",
|
|
996
|
+
"name": "stake",
|
|
997
|
+
"type": "bool"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"internalType": "bool",
|
|
1001
|
+
"name": "rewards",
|
|
1002
|
+
"type": "bool"
|
|
1003
|
+
}
|
|
1004
|
+
],
|
|
1005
|
+
"internalType": "struct ITokenController.WithdrawAssessment",
|
|
1006
|
+
"name": "withdrawAssessment",
|
|
1007
|
+
"type": "tuple"
|
|
978
1008
|
},
|
|
979
1009
|
{
|
|
980
|
-
"
|
|
981
|
-
|
|
982
|
-
|
|
1010
|
+
"components": [
|
|
1011
|
+
{
|
|
1012
|
+
"internalType": "uint256",
|
|
1013
|
+
"name": "tokenId",
|
|
1014
|
+
"type": "uint256"
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"internalType": "uint256[]",
|
|
1018
|
+
"name": "trancheIds",
|
|
1019
|
+
"type": "uint256[]"
|
|
1020
|
+
}
|
|
1021
|
+
],
|
|
1022
|
+
"internalType": "struct ITokenController.StakingPoolDeposit[]",
|
|
1023
|
+
"name": "stakingPoolDeposits",
|
|
1024
|
+
"type": "tuple[]"
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"components": [
|
|
1028
|
+
{
|
|
1029
|
+
"internalType": "uint256",
|
|
1030
|
+
"name": "poolId",
|
|
1031
|
+
"type": "uint256"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"internalType": "uint256[]",
|
|
1035
|
+
"name": "trancheIds",
|
|
1036
|
+
"type": "uint256[]"
|
|
1037
|
+
}
|
|
1038
|
+
],
|
|
1039
|
+
"internalType": "struct ITokenController.StakingPoolManagerReward[]",
|
|
1040
|
+
"name": "stakingPoolManagerRewards",
|
|
1041
|
+
"type": "tuple[]"
|
|
983
1042
|
},
|
|
984
1043
|
{
|
|
985
1044
|
"internalType": "uint256",
|
|
986
|
-
"name": "
|
|
1045
|
+
"name": "assessmentRewardsBatchSize",
|
|
987
1046
|
"type": "uint256"
|
|
988
1047
|
},
|
|
989
1048
|
{
|
|
990
1049
|
"internalType": "uint256",
|
|
991
|
-
"name": "
|
|
1050
|
+
"name": "govRewardsBatchSize",
|
|
992
1051
|
"type": "uint256"
|
|
993
1052
|
}
|
|
994
1053
|
],
|
|
995
|
-
"name": "
|
|
1054
|
+
"name": "withdrawNXM",
|
|
996
1055
|
"outputs": [],
|
|
997
1056
|
"stateMutability": "nonpayable",
|
|
998
1057
|
"type": "function"
|
|
@@ -1001,26 +1060,26 @@
|
|
|
1001
1060
|
"inputs": [
|
|
1002
1061
|
{
|
|
1003
1062
|
"internalType": "address",
|
|
1004
|
-
"name": "
|
|
1063
|
+
"name": "to",
|
|
1005
1064
|
"type": "address"
|
|
1006
1065
|
},
|
|
1007
1066
|
{
|
|
1008
|
-
"internalType": "
|
|
1009
|
-
"name": "
|
|
1010
|
-
"type": "
|
|
1067
|
+
"internalType": "uint256",
|
|
1068
|
+
"name": "stakeToWithdraw",
|
|
1069
|
+
"type": "uint256"
|
|
1011
1070
|
},
|
|
1012
1071
|
{
|
|
1013
|
-
"internalType": "
|
|
1014
|
-
"name": "
|
|
1015
|
-
"type": "
|
|
1072
|
+
"internalType": "uint256",
|
|
1073
|
+
"name": "rewardsToWithdraw",
|
|
1074
|
+
"type": "uint256"
|
|
1016
1075
|
},
|
|
1017
1076
|
{
|
|
1018
1077
|
"internalType": "uint256",
|
|
1019
|
-
"name": "
|
|
1078
|
+
"name": "poolId",
|
|
1020
1079
|
"type": "uint256"
|
|
1021
1080
|
}
|
|
1022
1081
|
],
|
|
1023
|
-
"name": "
|
|
1082
|
+
"name": "withdrawNXMStakeAndRewards",
|
|
1024
1083
|
"outputs": [],
|
|
1025
1084
|
"stateMutability": "nonpayable",
|
|
1026
1085
|
"type": "function"
|
package/dist/data/addresses.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"StakingNFT": "0xcafea508a477D94c502c253A58239fb8F948e97f",
|
|
33
33
|
"StakingPoolFactory": "0xcafeafb97BF8831D95C0FC659b8eB3946B101CB3",
|
|
34
34
|
"StakingProducts": "0xcafea573fBd815B5f59e8049E71E554bde3477E4",
|
|
35
|
-
"StakingViewer": "
|
|
35
|
+
"StakingViewer": "0xcafea5E8a7a54dd14Bb225b66C7a016dfd7F236b",
|
|
36
36
|
"SwapOperator": "0xcafea3cA5366964A102388EAd5f3eBb0769C46Cb",
|
|
37
37
|
"TokenController": "0x5407381b6c251cFd498ccD4A1d877739CB7960B8",
|
|
38
38
|
"USDC": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
@@ -110,5 +110,12 @@
|
|
|
110
110
|
"name": "Sherlock Bug Bounty",
|
|
111
111
|
"gracePeriod": 3024000,
|
|
112
112
|
"claimMethod": 0
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"id": 16,
|
|
116
|
+
"coverWordingURL": "https://api.nexusmutual.io/ipfs/QmQLh2wNDD2b2RGg9rNFbyrQwxqTthrTNaTsHenZnRg6u6",
|
|
117
|
+
"name": "DeFi Pass",
|
|
118
|
+
"gracePeriod": 3024000,
|
|
119
|
+
"claimMethod": 0
|
|
113
120
|
}
|
|
114
121
|
]
|