impermax-sdk 2.1.370 → 2.1.372

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.
Files changed (36) hide show
  1. package/lib/abis/contracts/IStakingRouter.json +156 -0
  2. package/lib/abis/contracts/IXIBEX.json +578 -0
  3. package/lib/config/contracts/routers.d.ts +1 -0
  4. package/lib/config/contracts/routers.js +25 -1
  5. package/lib/index.d.ts +4 -1
  6. package/lib/index.js +7 -1
  7. package/lib/offchain/initializer/tvl.js +1 -0
  8. package/lib/offchain/offchain.d.ts +0 -9
  9. package/lib/offchain/offchain.js +2 -71
  10. package/lib/offchain/offchainAPRHelper.d.ts +6 -10
  11. package/lib/offchain/offchainAPRHelper.js +42 -50
  12. package/lib/offchain/offchainMultichain.d.ts +7 -0
  13. package/lib/offchain/offchainMultichain.js +48 -1
  14. package/lib/onchain/account/index.d.ts +2 -1
  15. package/lib/onchain/account/index.js +3 -1
  16. package/lib/onchain/account/onchainAccount.d.ts +4 -0
  17. package/lib/onchain/account/onchainAccount.js +11 -0
  18. package/lib/onchain/account/onchainAccountStakingModule.d.ts +29 -0
  19. package/lib/onchain/account/onchainAccountStakingModule.js +65 -0
  20. package/lib/onchain/index.d.ts +2 -1
  21. package/lib/onchain/index.js +4 -1
  22. package/lib/onchain/interactions/index.d.ts +2 -1
  23. package/lib/onchain/interactions/index.js +3 -1
  24. package/lib/onchain/interactions/onchainInteractions.d.ts +4 -0
  25. package/lib/onchain/interactions/onchainInteractions.js +17 -0
  26. package/lib/onchain/interactions/onchainInteractionsStakingModule.d.ts +28 -0
  27. package/lib/onchain/interactions/onchainInteractionsStakingModule.js +68 -0
  28. package/lib/onchain/onchain.d.ts +3 -0
  29. package/lib/onchain/onchain.js +8 -0
  30. package/lib/onchain/onchainContractsHelper.d.ts +2 -0
  31. package/lib/onchain/onchainContractsHelper.js +5 -0
  32. package/lib/onchain/staking/index.d.ts +0 -0
  33. package/lib/onchain/staking/index.js +0 -0
  34. package/lib/onchain/staking/onchainStakingModule.d.ts +24 -0
  35. package/lib/onchain/staking/onchainStakingModule.js +83 -0
  36. package/package.json +1 -1
@@ -0,0 +1,156 @@
1
+ {
2
+ "contractName": "StakingRouter",
3
+ "abi": [
4
+ {
5
+ "inputs": [
6
+ {
7
+ "internalType": "address",
8
+ "name": "_ibex",
9
+ "type": "address"
10
+ },
11
+ {
12
+ "internalType": "address",
13
+ "name": "_xIbex",
14
+ "type": "address"
15
+ },
16
+ {
17
+ "internalType": "address",
18
+ "name": "_reservesDistributor",
19
+ "type": "address"
20
+ }
21
+ ],
22
+ "payable": false,
23
+ "stateMutability": "nonpayable",
24
+ "type": "constructor"
25
+ },
26
+ {
27
+ "constant": true,
28
+ "inputs": [],
29
+ "name": "ibex",
30
+ "outputs": [
31
+ {
32
+ "internalType": "address",
33
+ "name": "",
34
+ "type": "address"
35
+ }
36
+ ],
37
+ "payable": false,
38
+ "stateMutability": "view",
39
+ "type": "function"
40
+ },
41
+ {
42
+ "constant": true,
43
+ "inputs": [],
44
+ "name": "reservesDistributor",
45
+ "outputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "payable": false,
53
+ "stateMutability": "view",
54
+ "type": "function"
55
+ },
56
+ {
57
+ "constant": false,
58
+ "inputs": [
59
+ {
60
+ "internalType": "uint256",
61
+ "name": "amount",
62
+ "type": "uint256"
63
+ }
64
+ ],
65
+ "name": "stake",
66
+ "outputs": [
67
+ {
68
+ "internalType": "uint256",
69
+ "name": "tokens",
70
+ "type": "uint256"
71
+ }
72
+ ],
73
+ "payable": false,
74
+ "stateMutability": "nonpayable",
75
+ "type": "function"
76
+ },
77
+ {
78
+ "constant": false,
79
+ "inputs": [
80
+ {
81
+ "internalType": "uint256",
82
+ "name": "amount",
83
+ "type": "uint256"
84
+ }
85
+ ],
86
+ "name": "stakeNoClaim",
87
+ "outputs": [
88
+ {
89
+ "internalType": "uint256",
90
+ "name": "tokens",
91
+ "type": "uint256"
92
+ }
93
+ ],
94
+ "payable": false,
95
+ "stateMutability": "nonpayable",
96
+ "type": "function"
97
+ },
98
+ {
99
+ "constant": false,
100
+ "inputs": [
101
+ {
102
+ "internalType": "uint256",
103
+ "name": "tokens",
104
+ "type": "uint256"
105
+ }
106
+ ],
107
+ "name": "unstake",
108
+ "outputs": [
109
+ {
110
+ "internalType": "uint256",
111
+ "name": "amount",
112
+ "type": "uint256"
113
+ }
114
+ ],
115
+ "payable": false,
116
+ "stateMutability": "nonpayable",
117
+ "type": "function"
118
+ },
119
+ {
120
+ "constant": false,
121
+ "inputs": [
122
+ {
123
+ "internalType": "uint256",
124
+ "name": "tokens",
125
+ "type": "uint256"
126
+ }
127
+ ],
128
+ "name": "unstakeNoClaim",
129
+ "outputs": [
130
+ {
131
+ "internalType": "uint256",
132
+ "name": "amount",
133
+ "type": "uint256"
134
+ }
135
+ ],
136
+ "payable": false,
137
+ "stateMutability": "nonpayable",
138
+ "type": "function"
139
+ },
140
+ {
141
+ "constant": true,
142
+ "inputs": [],
143
+ "name": "xIbex",
144
+ "outputs": [
145
+ {
146
+ "internalType": "address",
147
+ "name": "",
148
+ "type": "address"
149
+ }
150
+ ],
151
+ "payable": false,
152
+ "stateMutability": "view",
153
+ "type": "function"
154
+ }
155
+ ]
156
+ }