@hinkal/common 0.0.111 → 0.0.113

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 (261) hide show
  1. package/index-DXElTGy9.mjs +254449 -0
  2. package/index.js +455 -642
  3. package/package.json +1 -1
  4. package/{webworker/snarkjsWorker/snarkjsWorkerLogic.js → snarkjsWorkerLogic-CVna_BW9.mjs} +1 -1
  5. package/utxoWorkerLogic-B1Hh-bq4.mjs +64 -0
  6. package/{webworker/workerProxy.js → workerProxy-BDj498Ht.mjs} +1 -1
  7. package/zkProofWorkerLogic-D9rxuuiK.mjs +60 -0
  8. package/API/API.js +0 -58
  9. package/API/HinkalPointsCalls.js +0 -38
  10. package/API/callBeefyGraphAPI.js +0 -37
  11. package/API/callCurveAPI.js +0 -156
  12. package/API/callMonitor.js +0 -30
  13. package/API/callOdosAPI.js +0 -44
  14. package/API/callOneInchAPI.js +0 -37
  15. package/API/callRelayer.js +0 -32
  16. package/API/checkRisk.js +0 -30
  17. package/API/dataServerCalls.js +0 -32
  18. package/API/fetchCommitmentsCache.js +0 -31
  19. package/API/fetchNullifiers.js +0 -30
  20. package/API/getAxelarGasEstimate.js +0 -37
  21. package/API/getCoingeckoPrice.js +0 -27
  22. package/API/getConnextReceiveFee.js +0 -30
  23. package/API/getGasEstimates.js +0 -38
  24. package/API/getRelayerURL.js +0 -32
  25. package/API/getServerURL.js +0 -67
  26. package/API/getTokenPrice.js +0 -41
  27. package/API/kycCalls.js +0 -32
  28. package/API/passwordCalls.js +0 -36
  29. package/API/referralProgramCalls.js +0 -58
  30. package/API/relayCalls.js +0 -30
  31. package/API/restoreSnapshots.js +0 -32
  32. package/API/rewardsPointsCalls.js +0 -40
  33. package/API/userVerifyTransactions.js +0 -45
  34. package/constants/assets.constants.js +0 -16
  35. package/constants/axelar.constants.js +0 -55
  36. package/constants/backend.constants.js +0 -18
  37. package/constants/beefy.registry.js +0 -24
  38. package/constants/chains.constants.js +0 -204
  39. package/constants/coingecko.constants.js +0 -53
  40. package/constants/contracts.constants.js +0 -276
  41. package/constants/crvCvx.registry.js +0 -636
  42. package/constants/crvDynamic.registry.js +0 -24
  43. package/constants/deploy-data/deploy-data-arbMainnet.json.js +0 -7415
  44. package/constants/deploy-data/deploy-data-avalanche.json.js +0 -7411
  45. package/constants/deploy-data/deploy-data-axelar1.json.js +0 -4329
  46. package/constants/deploy-data/deploy-data-axelar2.json.js +0 -4329
  47. package/constants/deploy-data/deploy-data-base.json.js +0 -8425
  48. package/constants/deploy-data/deploy-data-blast.json.js +0 -9600
  49. package/constants/deploy-data/deploy-data-bnbMainnet.json.js +0 -6877
  50. package/constants/deploy-data/deploy-data-ethMainnet.json.js +0 -11427
  51. package/constants/deploy-data/deploy-data-localhost.json.js +0 -13283
  52. package/constants/deploy-data/deploy-data-optimism.json.js +0 -7417
  53. package/constants/deploy-data/deploy-data-polygon.json.js +0 -7439
  54. package/constants/fees.constants.js +0 -57
  55. package/constants/kyc.constants.js +0 -118
  56. package/constants/lido.constants.js +0 -13
  57. package/constants/pendle.registry.js +0 -253
  58. package/constants/protocol.constants.js +0 -26
  59. package/constants/reorg-depths.constants.js +0 -15
  60. package/constants/rewards.constants.js +0 -27
  61. package/constants/server.constants.js +0 -157
  62. package/constants/token-data/ERC20Registry.js +0 -85
  63. package/constants/token-data/arbMainnetRegistry.json.js +0 -946
  64. package/constants/token-data/arbMainnetRegistryFixed.json.js +0 -856
  65. package/constants/token-data/avalancheRegistry.json.js +0 -591
  66. package/constants/token-data/avalancheRegistryFixed.json.js +0 -591
  67. package/constants/token-data/baseRegistry.json.js +0 -490
  68. package/constants/token-data/baseRegistryFixed.json.js +0 -463
  69. package/constants/token-data/blastRegistry.json.js +0 -137
  70. package/constants/token-data/blastRegistryFixed.json.js +0 -137
  71. package/constants/token-data/bnbMainnetRegistry.json.js +0 -973
  72. package/constants/token-data/bnbMainnetRegistryFixed.json.js +0 -973
  73. package/constants/token-data/coingeckoRegistry.json.js +0 -115623
  74. package/constants/token-data/ethMainnetRegistry.json.js +0 -2700
  75. package/constants/token-data/ethMainnetRegistryFixed.json.js +0 -2251
  76. package/constants/token-data/index.js +0 -6
  77. package/constants/token-data/localhostRegistry.json.js +0 -2768
  78. package/constants/token-data/optimismRegistry.json.js +0 -1455
  79. package/constants/token-data/optimismRegistryFixed.json.js +0 -1392
  80. package/constants/token-data/polygonRegistry.json.js +0 -1327
  81. package/constants/token-data/polygonRegistryFixed.json.js +0 -1255
  82. package/constants/token-data/popularTokens.constants.js +0 -14
  83. package/constants/token-data/tokenPricing.consts.js +0 -8
  84. package/constants/vite.constants.js +0 -29
  85. package/crypto/babyJub.js +0 -15
  86. package/crypto/poseidon.js +0 -26
  87. package/crypto/preProcessing.js +0 -9
  88. package/data-structures/Hinkal/Hinkal.js +0 -299
  89. package/data-structures/Hinkal/hinkalActionBeefy.js +0 -101
  90. package/data-structures/Hinkal/hinkalActionConvex.js +0 -83
  91. package/data-structures/Hinkal/hinkalActionCurve.js +0 -112
  92. package/data-structures/Hinkal/hinkalActionLidoEth.js +0 -91
  93. package/data-structures/Hinkal/hinkalActionPendle.js +0 -140
  94. package/data-structures/Hinkal/hinkalActionPendleLP.js +0 -96
  95. package/data-structures/Hinkal/hinkalActionStake.js +0 -138
  96. package/data-structures/Hinkal/hinkalActionVolatile.js +0 -112
  97. package/data-structures/Hinkal/hinkalDeposit.js +0 -95
  98. package/data-structures/Hinkal/hinkalGetZkMeProvider.js +0 -47
  99. package/data-structures/Hinkal/hinkalPrivateWallet.js +0 -66
  100. package/data-structures/Hinkal/hinkalSwap.js +0 -98
  101. package/data-structures/Hinkal/hinkalTransfer.js +0 -5
  102. package/data-structures/Hinkal/hinkalWithdraw.js +0 -91
  103. package/data-structures/Hinkal/resetMerkleTrees.js +0 -49
  104. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.js +0 -83
  105. package/data-structures/ValueCache/ValueCache.js +0 -25
  106. package/data-structures/crypto-keys/decodeUTXO.js +0 -40
  107. package/data-structures/crypto-keys/encryptDecryptUtxo.js +0 -41
  108. package/data-structures/crypto-keys/keyUtils.js +0 -10
  109. package/data-structures/crypto-keys/keys.js +0 -90
  110. package/data-structures/custom-token-registry/CustomTokenRegistry.js +0 -33
  111. package/data-structures/event-service/AbstractAccessTokenSnapshotService.js +0 -131
  112. package/data-structures/event-service/AbstractCommitmentsSnapshotService.js +0 -132
  113. package/data-structures/event-service/AbstractEventService.js +0 -118
  114. package/data-structures/event-service/AbstractNullifierSnapshotService.js +0 -59
  115. package/data-structures/event-service/AbstractSnapshotService.js +0 -35
  116. package/data-structures/merkle-tree/MerkleTree.js +0 -177
  117. package/data-structures/merkle-tree/MerkleTreeIncompleteError.js +0 -8
  118. package/data-structures/snapshot/ClientAccessTokenSnapshotService.js +0 -48
  119. package/data-structures/snapshot/ClientCommitmentsSnapshotService.js +0 -47
  120. package/data-structures/snapshot/ClientNullifierSnapshotService.js +0 -44
  121. package/data-structures/token-price-fetcher/TokenChecker.js +0 -29
  122. package/data-structures/token-price-fetcher/TokenPriceFetcher.js +0 -218
  123. package/data-structures/transactions-manager/TransactionsManager.js +0 -194
  124. package/data-structures/transactions-manager/history/getBeefyData.js +0 -68
  125. package/data-structures/transactions-manager/history/getConvexData.js +0 -57
  126. package/data-structures/transactions-manager/history/getCurveData.js +0 -97
  127. package/data-structures/transactions-manager/history/getDepositData.js +0 -36
  128. package/data-structures/transactions-manager/history/getLidoData.js +0 -44
  129. package/data-structures/transactions-manager/history/getPendleData.js +0 -59
  130. package/data-structures/transactions-manager/history/getSwapData.js +0 -43
  131. package/data-structures/transactions-manager/history/getTxDetails.js +0 -74
  132. package/data-structures/transactions-manager/history/getVolatileData.js +0 -75
  133. package/data-structures/transactions-manager/history/history.types.js +0 -62
  134. package/data-structures/transactions-manager/history/history.utils.js +0 -8
  135. package/data-structures/utxo/Utxo.js +0 -134
  136. package/data-structures/volatile-helper/VolatileHelper.js +0 -181
  137. package/error-handling/customErrors/ErrorWithAmount.js +0 -9
  138. package/error-handling/customErrors/FeeOverTransactionValueError.js +0 -9
  139. package/error-handling/customErrors/customErrors.helpers.js +0 -21
  140. package/error-handling/error-codes.constants.js +0 -184
  141. package/error-handling/get-error.message.js +0 -53
  142. package/error-handling/handleErrorRestore.js +0 -35
  143. package/error-handling/logError.js +0 -7
  144. package/error-handling/types.js +0 -4
  145. package/externalABIs/BUSD.js +0 -519
  146. package/externalABIs/BabPassport.json.js +0 -24
  147. package/externalABIs/BeefyRouterAbi.json.js +0 -1022
  148. package/externalABIs/BeefyStrategyAbi.json.js +0 -1423
  149. package/externalABIs/BeefyVaultAbi.json.js +0 -570
  150. package/externalABIs/BeefyZapAbi.json.js +0 -208
  151. package/externalABIs/BeefyZapOneInchAbi.json.js +0 -340
  152. package/externalABIs/ConvexBoosterAbi.json.js +0 -674
  153. package/externalABIs/ConvexBoosterAbiMainnet.json.js +0 -1002
  154. package/externalABIs/ConvexRewardPoolAbi.json.js +0 -883
  155. package/externalABIs/CurveReadingWrapperAbi.json.js +0 -1422
  156. package/externalABIs/CurveWrappedMainPool.json.js +0 -1136
  157. package/externalABIs/CurveZap.json.js +0 -262
  158. package/externalABIs/CvxCrvUtilities.json.js +0 -264
  159. package/externalABIs/DAI.js +0 -334
  160. package/externalABIs/ERC20.json.js +0 -291
  161. package/externalABIs/GalxePassport.json.js +0 -41
  162. package/externalABIs/IQuoterV2.json.js +0 -205
  163. package/externalABIs/ISwapRouter.json.js +0 -568
  164. package/externalABIs/IUniswapV3Factory.json.js +0 -201
  165. package/externalABIs/IUniswapV3Pool.json.js +0 -999
  166. package/externalABIs/LidoStEthAbi.json.js +0 -1603
  167. package/externalABIs/LidoStMaticAbi.json.js +0 -1764
  168. package/externalABIs/LidoStakeManagerAbi.json.js +0 -2082
  169. package/externalABIs/LidoWithdrawalQueueERC721Abi.json.js +0 -2030
  170. package/externalABIs/LidoWstEthAbi.json.js +0 -480
  171. package/externalABIs/OptimismGasPriceOracle.json.js +0 -206
  172. package/externalABIs/PendleRouterAbi.json.js +0 -173
  173. package/externalABIs/PoLidoNftAbi.json.js +0 -701
  174. package/externalABIs/SanctionsList.js +0 -89
  175. package/externalABIs/USDC.js +0 -721
  176. package/externalABIs/USDR.js +0 -346
  177. package/externalABIs/USDR3CRV.js +0 -542
  178. package/externalABIs/USDT.js +0 -393
  179. package/externalABIs/UniswapV2PoolAbi.json.js +0 -80
  180. package/externalABIs/WETH.js +0 -156
  181. package/externalABIs/amToken.js +0 -350
  182. package/externalABIs/transactionsProver.json.js +0 -39
  183. package/functions/kyc/authentoHelper.js +0 -42
  184. package/functions/kyc/passportHelper.js +0 -39
  185. package/functions/kyc/zkMeHelper.js +0 -56
  186. package/functions/pre-transaction/getFlatFees.js +0 -203
  187. package/functions/pre-transaction/interaction-to-action.js +0 -57
  188. package/functions/pre-transaction/outputUtxoProcessing.js +0 -45
  189. package/functions/pre-transaction/process-gas-estimates.js +0 -57
  190. package/functions/pre-transaction/processAmountChanges.js +0 -229
  191. package/functions/private-wallet/emporium.helpers.js +0 -19
  192. package/functions/private-wallet/opProducer.js +0 -24
  193. package/functions/protocols/convex.protocols.js +0 -41
  194. package/functions/protocols/curve.protocols.js +0 -45
  195. package/functions/protocols/pendle.helpers.js +0 -108
  196. package/functions/snarkjs/common.snarkjs.js +0 -96
  197. package/functions/snarkjs/constant.js +0 -211
  198. package/functions/snarkjs/constructEmporiumProof.js +0 -105
  199. package/functions/snarkjs/constructGeneralZkProof.js +0 -129
  200. package/functions/snarkjs/generateCircomData.js +0 -60
  201. package/functions/snarkjs/generateZkProof.js +0 -18
  202. package/functions/snarkjs/getZKFiles.js +0 -30
  203. package/functions/staking/index.js +0 -40
  204. package/functions/utils/amounts.utils.js +0 -70
  205. package/functions/utils/axelar.utils.js +0 -38
  206. package/functions/utils/cacheFunctions.js +0 -67
  207. package/functions/utils/caseInsensitive.utils.js +0 -6
  208. package/functions/utils/convertIntegrationProviderToExternalActionId.js +0 -16
  209. package/functions/utils/create-provider.js +0 -5
  210. package/functions/utils/enum.utils.js +0 -14
  211. package/functions/utils/erc20tokenFunctions.js +0 -20
  212. package/functions/utils/evmNetworkFunctions.js +0 -29
  213. package/functions/utils/external-action.utils.js +0 -61
  214. package/functions/utils/getDataFromTransaction.js +0 -105
  215. package/functions/utils/memoize.utils.js +0 -14
  216. package/functions/utils/nickname.utils.js +0 -7
  217. package/functions/utils/process.utils.js +0 -4
  218. package/functions/utils/reloadPage.js +0 -4
  219. package/functions/utils/requireEnv.js +0 -7
  220. package/functions/utils/resolve-sync.utils.js +0 -22
  221. package/functions/utils/serialize.utils.js +0 -4
  222. package/functions/utils/string.utils.js +0 -14
  223. package/functions/utils/time.utils.js +0 -8
  224. package/functions/utils/userAgent.js +0 -15
  225. package/functions/utils/volatile-patcher.utils.js +0 -40
  226. package/functions/web3/etherFunctions.js +0 -41
  227. package/functions/web3/events/balanceChangedHandler.js +0 -10
  228. package/functions/web3/events/getInputUtxoAndBalance.js +0 -72
  229. package/functions/web3/events/getShieldedBalance.js +0 -107
  230. package/functions/web3/events/web3RetrieveEvents.js +0 -9
  231. package/functions/web3/functionCalls/accessTokenCalls.js +0 -48
  232. package/functions/web3/functionCalls/approveToken.js +0 -153
  233. package/functions/web3/functionCalls/estimateGasRelayer.js +0 -18
  234. package/functions/web3/functionCalls/transactCallDirect.js +0 -60
  235. package/functions/web3/functionCalls/transactCallRelayer.js +0 -42
  236. package/functions/web3/odosAPI.js +0 -65
  237. package/functions/web3/oneInchAPI.js +0 -61
  238. package/functions/web3/runContractFunction.js +0 -95
  239. package/functions/web3/uniswapAPI.js +0 -97
  240. package/types/beefy.types.js +0 -21
  241. package/types/circom-data.types.js +0 -22
  242. package/types/curve.types.js +0 -25
  243. package/types/ethereum-network.types.js +0 -4
  244. package/types/external-action.types.js +0 -4
  245. package/types/hinkal.stake.types.js +0 -4
  246. package/types/hinkal.types.js +0 -15
  247. package/types/kyc.types.js +0 -13
  248. package/types/pendle.types.js +0 -15
  249. package/types/rewards.types.js +0 -27
  250. package/types/slippage.types.js +0 -15
  251. package/types/time.types.js +0 -58
  252. package/types/token.types.js +0 -4
  253. package/types/transactions.types.js +0 -36
  254. package/webworker/performTaskWithWorker.js +0 -62
  255. package/webworker/snarkjsWorker/snarkjsWorker.types.js +0 -4
  256. package/webworker/utxoWorker/utxoWorker.types.js +0 -4
  257. package/webworker/utxoWorker/utxoWorkerLogic.js +0 -70
  258. package/webworker/worker.registry.js +0 -4
  259. package/webworker/workerFactory.js +0 -42
  260. package/webworker/zkProofWorker/zkProofWorker.types.js +0 -4
  261. package/webworker/zkProofWorker/zkProofWorkerLogic.js +0 -66
@@ -1,2082 +0,0 @@
1
- const t = [
2
- {
3
- inputs: [],
4
- payable: !1,
5
- stateMutability: "nonpayable",
6
- type: "constructor"
7
- },
8
- {
9
- anonymous: !1,
10
- inputs: [
11
- {
12
- indexed: !0,
13
- internalType: "address",
14
- name: "previousOwner",
15
- type: "address"
16
- },
17
- {
18
- indexed: !0,
19
- internalType: "address",
20
- name: "newOwner",
21
- type: "address"
22
- }
23
- ],
24
- name: "OwnershipTransferred",
25
- type: "event"
26
- },
27
- {
28
- anonymous: !1,
29
- inputs: [
30
- {
31
- indexed: !0,
32
- internalType: "address",
33
- name: "previousRootChain",
34
- type: "address"
35
- },
36
- {
37
- indexed: !0,
38
- internalType: "address",
39
- name: "newRootChain",
40
- type: "address"
41
- }
42
- ],
43
- name: "RootChainChanged",
44
- type: "event"
45
- },
46
- {
47
- constant: !0,
48
- inputs: [],
49
- name: "CHECKPOINT_REWARD",
50
- outputs: [
51
- {
52
- internalType: "uint256",
53
- name: "",
54
- type: "uint256"
55
- }
56
- ],
57
- payable: !1,
58
- stateMutability: "view",
59
- type: "function"
60
- },
61
- {
62
- constant: !0,
63
- inputs: [],
64
- name: "NFTContract",
65
- outputs: [
66
- {
67
- internalType: "contract StakingNFT",
68
- name: "",
69
- type: "address"
70
- }
71
- ],
72
- payable: !1,
73
- stateMutability: "view",
74
- type: "function"
75
- },
76
- {
77
- constant: !0,
78
- inputs: [],
79
- name: "NFTCounter",
80
- outputs: [
81
- {
82
- internalType: "uint256",
83
- name: "",
84
- type: "uint256"
85
- }
86
- ],
87
- payable: !1,
88
- stateMutability: "view",
89
- type: "function"
90
- },
91
- {
92
- constant: !0,
93
- inputs: [],
94
- name: "WITHDRAWAL_DELAY",
95
- outputs: [
96
- {
97
- internalType: "uint256",
98
- name: "",
99
- type: "uint256"
100
- }
101
- ],
102
- payable: !1,
103
- stateMutability: "view",
104
- type: "function"
105
- },
106
- {
107
- constant: !0,
108
- inputs: [],
109
- name: "accountStateRoot",
110
- outputs: [
111
- {
112
- internalType: "bytes32",
113
- name: "",
114
- type: "bytes32"
115
- }
116
- ],
117
- payable: !1,
118
- stateMutability: "view",
119
- type: "function"
120
- },
121
- {
122
- constant: !0,
123
- inputs: [],
124
- name: "auctionPeriod",
125
- outputs: [
126
- {
127
- internalType: "uint256",
128
- name: "",
129
- type: "uint256"
130
- }
131
- ],
132
- payable: !1,
133
- stateMutability: "view",
134
- type: "function"
135
- },
136
- {
137
- constant: !1,
138
- inputs: [
139
- {
140
- internalType: "address",
141
- name: "newRootChain",
142
- type: "address"
143
- }
144
- ],
145
- name: "changeRootChain",
146
- outputs: [],
147
- payable: !1,
148
- stateMutability: "nonpayable",
149
- type: "function"
150
- },
151
- {
152
- constant: !0,
153
- inputs: [],
154
- name: "checkPointBlockInterval",
155
- outputs: [
156
- {
157
- internalType: "uint256",
158
- name: "",
159
- type: "uint256"
160
- }
161
- ],
162
- payable: !1,
163
- stateMutability: "view",
164
- type: "function"
165
- },
166
- {
167
- constant: !1,
168
- inputs: [
169
- {
170
- internalType: "uint256",
171
- name: "blockInterval",
172
- type: "uint256"
173
- },
174
- {
175
- internalType: "bytes32",
176
- name: "voteHash",
177
- type: "bytes32"
178
- },
179
- {
180
- internalType: "bytes32",
181
- name: "stateRoot",
182
- type: "bytes32"
183
- },
184
- {
185
- internalType: "address",
186
- name: "proposer",
187
- type: "address"
188
- },
189
- {
190
- internalType: "uint256[3][]",
191
- name: "sigs",
192
- type: "uint256[3][]"
193
- }
194
- ],
195
- name: "checkSignatures",
196
- outputs: [
197
- {
198
- internalType: "uint256",
199
- name: "",
200
- type: "uint256"
201
- }
202
- ],
203
- payable: !1,
204
- stateMutability: "nonpayable",
205
- type: "function"
206
- },
207
- {
208
- constant: !0,
209
- inputs: [],
210
- name: "checkpointRewardDelta",
211
- outputs: [
212
- {
213
- internalType: "uint256",
214
- name: "",
215
- type: "uint256"
216
- }
217
- ],
218
- payable: !1,
219
- stateMutability: "view",
220
- type: "function"
221
- },
222
- {
223
- constant: !1,
224
- inputs: [
225
- {
226
- internalType: "uint256",
227
- name: "accumFeeAmount",
228
- type: "uint256"
229
- },
230
- {
231
- internalType: "uint256",
232
- name: "index",
233
- type: "uint256"
234
- },
235
- {
236
- internalType: "bytes",
237
- name: "proof",
238
- type: "bytes"
239
- }
240
- ],
241
- name: "claimFee",
242
- outputs: [],
243
- payable: !1,
244
- stateMutability: "nonpayable",
245
- type: "function"
246
- },
247
- {
248
- constant: !1,
249
- inputs: [
250
- {
251
- internalType: "uint256",
252
- name: "validatorId",
253
- type: "uint256"
254
- },
255
- {
256
- internalType: "uint256",
257
- name: "heimdallFee",
258
- type: "uint256"
259
- }
260
- ],
261
- name: "confirmAuctionBid",
262
- outputs: [],
263
- payable: !1,
264
- stateMutability: "nonpayable",
265
- type: "function"
266
- },
267
- {
268
- constant: !0,
269
- inputs: [],
270
- name: "currentEpoch",
271
- outputs: [
272
- {
273
- internalType: "uint256",
274
- name: "",
275
- type: "uint256"
276
- }
277
- ],
278
- payable: !1,
279
- stateMutability: "view",
280
- type: "function"
281
- },
282
- {
283
- constant: !0,
284
- inputs: [],
285
- name: "currentValidatorSetSize",
286
- outputs: [
287
- {
288
- internalType: "uint256",
289
- name: "",
290
- type: "uint256"
291
- }
292
- ],
293
- payable: !1,
294
- stateMutability: "view",
295
- type: "function"
296
- },
297
- {
298
- constant: !0,
299
- inputs: [],
300
- name: "currentValidatorSetTotalStake",
301
- outputs: [
302
- {
303
- internalType: "uint256",
304
- name: "",
305
- type: "uint256"
306
- }
307
- ],
308
- payable: !1,
309
- stateMutability: "view",
310
- type: "function"
311
- },
312
- {
313
- constant: !1,
314
- inputs: [
315
- {
316
- internalType: "uint256",
317
- name: "validatorId",
318
- type: "uint256"
319
- },
320
- {
321
- internalType: "uint256",
322
- name: "amount",
323
- type: "uint256"
324
- }
325
- ],
326
- name: "decreaseValidatorDelegatedAmount",
327
- outputs: [],
328
- payable: !1,
329
- stateMutability: "nonpayable",
330
- type: "function"
331
- },
332
- {
333
- constant: !0,
334
- inputs: [
335
- {
336
- internalType: "uint256",
337
- name: "validatorId",
338
- type: "uint256"
339
- }
340
- ],
341
- name: "delegatedAmount",
342
- outputs: [
343
- {
344
- internalType: "uint256",
345
- name: "",
346
- type: "uint256"
347
- }
348
- ],
349
- payable: !1,
350
- stateMutability: "view",
351
- type: "function"
352
- },
353
- {
354
- constant: !1,
355
- inputs: [
356
- {
357
- internalType: "uint256",
358
- name: "validatorId",
359
- type: "uint256"
360
- },
361
- {
362
- internalType: "uint256",
363
- name: "amount",
364
- type: "uint256"
365
- },
366
- {
367
- internalType: "address",
368
- name: "delegator",
369
- type: "address"
370
- }
371
- ],
372
- name: "delegationDeposit",
373
- outputs: [
374
- {
375
- internalType: "bool",
376
- name: "",
377
- type: "bool"
378
- }
379
- ],
380
- payable: !1,
381
- stateMutability: "nonpayable",
382
- type: "function"
383
- },
384
- {
385
- constant: !0,
386
- inputs: [],
387
- name: "delegationEnabled",
388
- outputs: [
389
- {
390
- internalType: "bool",
391
- name: "",
392
- type: "bool"
393
- }
394
- ],
395
- payable: !1,
396
- stateMutability: "view",
397
- type: "function"
398
- },
399
- {
400
- constant: !0,
401
- inputs: [
402
- {
403
- internalType: "uint256",
404
- name: "validatorId",
405
- type: "uint256"
406
- }
407
- ],
408
- name: "delegatorsReward",
409
- outputs: [
410
- {
411
- internalType: "uint256",
412
- name: "",
413
- type: "uint256"
414
- }
415
- ],
416
- payable: !1,
417
- stateMutability: "view",
418
- type: "function"
419
- },
420
- {
421
- constant: !1,
422
- inputs: [
423
- {
424
- internalType: "address",
425
- name: "auctionUser",
426
- type: "address"
427
- },
428
- {
429
- internalType: "uint256",
430
- name: "heimdallFee",
431
- type: "uint256"
432
- },
433
- {
434
- internalType: "uint256",
435
- name: "validatorId",
436
- type: "uint256"
437
- },
438
- {
439
- internalType: "uint256",
440
- name: "auctionAmount",
441
- type: "uint256"
442
- },
443
- {
444
- internalType: "bool",
445
- name: "acceptDelegation",
446
- type: "bool"
447
- },
448
- {
449
- internalType: "bytes",
450
- name: "signerPubkey",
451
- type: "bytes"
452
- }
453
- ],
454
- name: "dethroneAndStake",
455
- outputs: [],
456
- payable: !1,
457
- stateMutability: "nonpayable",
458
- type: "function"
459
- },
460
- {
461
- constant: !1,
462
- inputs: [
463
- {
464
- internalType: "address",
465
- name: "destination",
466
- type: "address"
467
- },
468
- {
469
- internalType: "uint256",
470
- name: "amount",
471
- type: "uint256"
472
- }
473
- ],
474
- name: "drain",
475
- outputs: [],
476
- payable: !1,
477
- stateMutability: "nonpayable",
478
- type: "function"
479
- },
480
- {
481
- constant: !1,
482
- inputs: [
483
- {
484
- internalType: "uint256",
485
- name: "validatorId",
486
- type: "uint256"
487
- },
488
- {
489
- internalType: "address",
490
- name: "tokenAddr",
491
- type: "address"
492
- },
493
- {
494
- internalType: "address payable",
495
- name: "destination",
496
- type: "address"
497
- },
498
- {
499
- internalType: "uint256",
500
- name: "amount",
501
- type: "uint256"
502
- }
503
- ],
504
- name: "drainValidatorShares",
505
- outputs: [],
506
- payable: !1,
507
- stateMutability: "nonpayable",
508
- type: "function"
509
- },
510
- {
511
- constant: !0,
512
- inputs: [],
513
- name: "dynasty",
514
- outputs: [
515
- {
516
- internalType: "uint256",
517
- name: "",
518
- type: "uint256"
519
- }
520
- ],
521
- payable: !1,
522
- stateMutability: "view",
523
- type: "function"
524
- },
525
- {
526
- constant: !0,
527
- inputs: [],
528
- name: "epoch",
529
- outputs: [
530
- {
531
- internalType: "uint256",
532
- name: "",
533
- type: "uint256"
534
- }
535
- ],
536
- payable: !1,
537
- stateMutability: "view",
538
- type: "function"
539
- },
540
- {
541
- constant: !0,
542
- inputs: [],
543
- name: "eventsHub",
544
- outputs: [
545
- {
546
- internalType: "address",
547
- name: "",
548
- type: "address"
549
- }
550
- ],
551
- payable: !1,
552
- stateMutability: "view",
553
- type: "function"
554
- },
555
- {
556
- constant: !0,
557
- inputs: [],
558
- name: "extensionCode",
559
- outputs: [
560
- {
561
- internalType: "address",
562
- name: "",
563
- type: "address"
564
- }
565
- ],
566
- payable: !1,
567
- stateMutability: "view",
568
- type: "function"
569
- },
570
- {
571
- constant: !1,
572
- inputs: [
573
- {
574
- internalType: "uint256",
575
- name: "validatorId",
576
- type: "uint256"
577
- }
578
- ],
579
- name: "forceUnstake",
580
- outputs: [],
581
- payable: !1,
582
- stateMutability: "nonpayable",
583
- type: "function"
584
- },
585
- {
586
- constant: !0,
587
- inputs: [],
588
- name: "getRegistry",
589
- outputs: [
590
- {
591
- internalType: "address",
592
- name: "",
593
- type: "address"
594
- }
595
- ],
596
- payable: !1,
597
- stateMutability: "view",
598
- type: "function"
599
- },
600
- {
601
- constant: !0,
602
- inputs: [
603
- {
604
- internalType: "uint256",
605
- name: "validatorId",
606
- type: "uint256"
607
- }
608
- ],
609
- name: "getValidatorContract",
610
- outputs: [
611
- {
612
- internalType: "address",
613
- name: "",
614
- type: "address"
615
- }
616
- ],
617
- payable: !1,
618
- stateMutability: "view",
619
- type: "function"
620
- },
621
- {
622
- constant: !0,
623
- inputs: [
624
- {
625
- internalType: "address",
626
- name: "user",
627
- type: "address"
628
- }
629
- ],
630
- name: "getValidatorId",
631
- outputs: [
632
- {
633
- internalType: "uint256",
634
- name: "",
635
- type: "uint256"
636
- }
637
- ],
638
- payable: !1,
639
- stateMutability: "view",
640
- type: "function"
641
- },
642
- {
643
- constant: !0,
644
- inputs: [],
645
- name: "governance",
646
- outputs: [
647
- {
648
- internalType: "contract IGovernance",
649
- name: "",
650
- type: "address"
651
- }
652
- ],
653
- payable: !1,
654
- stateMutability: "view",
655
- type: "function"
656
- },
657
- {
658
- constant: !1,
659
- inputs: [
660
- {
661
- internalType: "address",
662
- name: "_registry",
663
- type: "address"
664
- },
665
- {
666
- internalType: "address",
667
- name: "_rootchain",
668
- type: "address"
669
- },
670
- {
671
- internalType: "address",
672
- name: "_token",
673
- type: "address"
674
- },
675
- {
676
- internalType: "address",
677
- name: "_NFTContract",
678
- type: "address"
679
- },
680
- {
681
- internalType: "address",
682
- name: "_stakingLogger",
683
- type: "address"
684
- },
685
- {
686
- internalType: "address",
687
- name: "_validatorShareFactory",
688
- type: "address"
689
- },
690
- {
691
- internalType: "address",
692
- name: "_governance",
693
- type: "address"
694
- },
695
- {
696
- internalType: "address",
697
- name: "_owner",
698
- type: "address"
699
- },
700
- {
701
- internalType: "address",
702
- name: "_extensionCode",
703
- type: "address"
704
- }
705
- ],
706
- name: "initialize",
707
- outputs: [],
708
- payable: !1,
709
- stateMutability: "nonpayable",
710
- type: "function"
711
- },
712
- {
713
- constant: !1,
714
- inputs: [
715
- {
716
- internalType: "address[]",
717
- name: "_signers",
718
- type: "address[]"
719
- }
720
- ],
721
- name: "insertSigners",
722
- outputs: [],
723
- payable: !1,
724
- stateMutability: "nonpayable",
725
- type: "function"
726
- },
727
- {
728
- constant: !0,
729
- inputs: [],
730
- name: "isOwner",
731
- outputs: [
732
- {
733
- internalType: "bool",
734
- name: "",
735
- type: "bool"
736
- }
737
- ],
738
- payable: !1,
739
- stateMutability: "view",
740
- type: "function"
741
- },
742
- {
743
- constant: !0,
744
- inputs: [
745
- {
746
- internalType: "uint256",
747
- name: "validatorId",
748
- type: "uint256"
749
- }
750
- ],
751
- name: "isValidator",
752
- outputs: [
753
- {
754
- internalType: "bool",
755
- name: "",
756
- type: "bool"
757
- }
758
- ],
759
- payable: !1,
760
- stateMutability: "view",
761
- type: "function"
762
- },
763
- {
764
- constant: !0,
765
- inputs: [
766
- {
767
- internalType: "uint256",
768
- name: "",
769
- type: "uint256"
770
- }
771
- ],
772
- name: "latestSignerUpdateEpoch",
773
- outputs: [
774
- {
775
- internalType: "uint256",
776
- name: "",
777
- type: "uint256"
778
- }
779
- ],
780
- payable: !1,
781
- stateMutability: "view",
782
- type: "function"
783
- },
784
- {
785
- constant: !1,
786
- inputs: [],
787
- name: "lock",
788
- outputs: [],
789
- payable: !1,
790
- stateMutability: "nonpayable",
791
- type: "function"
792
- },
793
- {
794
- constant: !0,
795
- inputs: [],
796
- name: "locked",
797
- outputs: [
798
- {
799
- internalType: "bool",
800
- name: "",
801
- type: "bool"
802
- }
803
- ],
804
- payable: !1,
805
- stateMutability: "view",
806
- type: "function"
807
- },
808
- {
809
- constant: !0,
810
- inputs: [],
811
- name: "logger",
812
- outputs: [
813
- {
814
- internalType: "contract StakingInfo",
815
- name: "",
816
- type: "address"
817
- }
818
- ],
819
- payable: !1,
820
- stateMutability: "view",
821
- type: "function"
822
- },
823
- {
824
- constant: !0,
825
- inputs: [],
826
- name: "maxRewardedCheckpoints",
827
- outputs: [
828
- {
829
- internalType: "uint256",
830
- name: "",
831
- type: "uint256"
832
- }
833
- ],
834
- payable: !1,
835
- stateMutability: "view",
836
- type: "function"
837
- },
838
- {
839
- constant: !1,
840
- inputs: [
841
- {
842
- internalType: "uint256",
843
- name: "fromValidatorId",
844
- type: "uint256"
845
- },
846
- {
847
- internalType: "uint256",
848
- name: "toValidatorId",
849
- type: "uint256"
850
- },
851
- {
852
- internalType: "uint256",
853
- name: "amount",
854
- type: "uint256"
855
- }
856
- ],
857
- name: "migrateDelegation",
858
- outputs: [],
859
- payable: !1,
860
- stateMutability: "nonpayable",
861
- type: "function"
862
- },
863
- {
864
- constant: !1,
865
- inputs: [
866
- {
867
- internalType: "uint256",
868
- name: "validatorIdFrom",
869
- type: "uint256"
870
- },
871
- {
872
- internalType: "uint256",
873
- name: "validatorIdTo",
874
- type: "uint256"
875
- }
876
- ],
877
- name: "migrateValidatorsData",
878
- outputs: [],
879
- payable: !1,
880
- stateMutability: "nonpayable",
881
- type: "function"
882
- },
883
- {
884
- constant: !0,
885
- inputs: [],
886
- name: "minDeposit",
887
- outputs: [
888
- {
889
- internalType: "uint256",
890
- name: "",
891
- type: "uint256"
892
- }
893
- ],
894
- payable: !1,
895
- stateMutability: "view",
896
- type: "function"
897
- },
898
- {
899
- constant: !0,
900
- inputs: [],
901
- name: "minHeimdallFee",
902
- outputs: [
903
- {
904
- internalType: "uint256",
905
- name: "",
906
- type: "uint256"
907
- }
908
- ],
909
- payable: !1,
910
- stateMutability: "view",
911
- type: "function"
912
- },
913
- {
914
- constant: !0,
915
- inputs: [],
916
- name: "owner",
917
- outputs: [
918
- {
919
- internalType: "address",
920
- name: "",
921
- type: "address"
922
- }
923
- ],
924
- payable: !1,
925
- stateMutability: "view",
926
- type: "function"
927
- },
928
- {
929
- constant: !0,
930
- inputs: [
931
- {
932
- internalType: "uint256",
933
- name: "tokenId",
934
- type: "uint256"
935
- }
936
- ],
937
- name: "ownerOf",
938
- outputs: [
939
- {
940
- internalType: "address",
941
- name: "",
942
- type: "address"
943
- }
944
- ],
945
- payable: !1,
946
- stateMutability: "view",
947
- type: "function"
948
- },
949
- {
950
- constant: !0,
951
- inputs: [],
952
- name: "prevBlockInterval",
953
- outputs: [
954
- {
955
- internalType: "uint256",
956
- name: "",
957
- type: "uint256"
958
- }
959
- ],
960
- payable: !1,
961
- stateMutability: "view",
962
- type: "function"
963
- },
964
- {
965
- constant: !0,
966
- inputs: [],
967
- name: "proposerBonus",
968
- outputs: [
969
- {
970
- internalType: "uint256",
971
- name: "",
972
- type: "uint256"
973
- }
974
- ],
975
- payable: !1,
976
- stateMutability: "view",
977
- type: "function"
978
- },
979
- {
980
- constant: !0,
981
- inputs: [],
982
- name: "registry",
983
- outputs: [
984
- {
985
- internalType: "address",
986
- name: "",
987
- type: "address"
988
- }
989
- ],
990
- payable: !1,
991
- stateMutability: "view",
992
- type: "function"
993
- },
994
- {
995
- constant: !1,
996
- inputs: [
997
- {
998
- internalType: "address",
999
- name: "_NFTContract",
1000
- type: "address"
1001
- },
1002
- {
1003
- internalType: "address",
1004
- name: "_stakingLogger",
1005
- type: "address"
1006
- },
1007
- {
1008
- internalType: "address",
1009
- name: "_validatorShareFactory",
1010
- type: "address"
1011
- },
1012
- {
1013
- internalType: "address",
1014
- name: "_extensionCode",
1015
- type: "address"
1016
- }
1017
- ],
1018
- name: "reinitialize",
1019
- outputs: [],
1020
- payable: !1,
1021
- stateMutability: "nonpayable",
1022
- type: "function"
1023
- },
1024
- {
1025
- constant: !1,
1026
- inputs: [],
1027
- name: "renounceOwnership",
1028
- outputs: [],
1029
- payable: !1,
1030
- stateMutability: "nonpayable",
1031
- type: "function"
1032
- },
1033
- {
1034
- constant: !0,
1035
- inputs: [],
1036
- name: "replacementCoolDown",
1037
- outputs: [
1038
- {
1039
- internalType: "uint256",
1040
- name: "",
1041
- type: "uint256"
1042
- }
1043
- ],
1044
- payable: !1,
1045
- stateMutability: "view",
1046
- type: "function"
1047
- },
1048
- {
1049
- constant: !1,
1050
- inputs: [
1051
- {
1052
- internalType: "uint256",
1053
- name: "validatorId",
1054
- type: "uint256"
1055
- },
1056
- {
1057
- internalType: "uint256",
1058
- name: "amount",
1059
- type: "uint256"
1060
- },
1061
- {
1062
- internalType: "bool",
1063
- name: "stakeRewards",
1064
- type: "bool"
1065
- }
1066
- ],
1067
- name: "restake",
1068
- outputs: [],
1069
- payable: !1,
1070
- stateMutability: "nonpayable",
1071
- type: "function"
1072
- },
1073
- {
1074
- constant: !0,
1075
- inputs: [],
1076
- name: "rewardDecreasePerCheckpoint",
1077
- outputs: [
1078
- {
1079
- internalType: "uint256",
1080
- name: "",
1081
- type: "uint256"
1082
- }
1083
- ],
1084
- payable: !1,
1085
- stateMutability: "view",
1086
- type: "function"
1087
- },
1088
- {
1089
- constant: !0,
1090
- inputs: [],
1091
- name: "rewardPerStake",
1092
- outputs: [
1093
- {
1094
- internalType: "uint256",
1095
- name: "",
1096
- type: "uint256"
1097
- }
1098
- ],
1099
- payable: !1,
1100
- stateMutability: "view",
1101
- type: "function"
1102
- },
1103
- {
1104
- constant: !0,
1105
- inputs: [],
1106
- name: "rootChain",
1107
- outputs: [
1108
- {
1109
- internalType: "address",
1110
- name: "",
1111
- type: "address"
1112
- }
1113
- ],
1114
- payable: !1,
1115
- stateMutability: "view",
1116
- type: "function"
1117
- },
1118
- {
1119
- constant: !1,
1120
- inputs: [
1121
- {
1122
- internalType: "uint256",
1123
- name: "_currentEpoch",
1124
- type: "uint256"
1125
- }
1126
- ],
1127
- name: "setCurrentEpoch",
1128
- outputs: [],
1129
- payable: !1,
1130
- stateMutability: "nonpayable",
1131
- type: "function"
1132
- },
1133
- {
1134
- constant: !1,
1135
- inputs: [
1136
- {
1137
- internalType: "bool",
1138
- name: "enabled",
1139
- type: "bool"
1140
- }
1141
- ],
1142
- name: "setDelegationEnabled",
1143
- outputs: [],
1144
- payable: !1,
1145
- stateMutability: "nonpayable",
1146
- type: "function"
1147
- },
1148
- {
1149
- constant: !1,
1150
- inputs: [
1151
- {
1152
- internalType: "address",
1153
- name: "_token",
1154
- type: "address"
1155
- }
1156
- ],
1157
- name: "setStakingToken",
1158
- outputs: [],
1159
- payable: !1,
1160
- stateMutability: "nonpayable",
1161
- type: "function"
1162
- },
1163
- {
1164
- constant: !0,
1165
- inputs: [
1166
- {
1167
- internalType: "address",
1168
- name: "",
1169
- type: "address"
1170
- }
1171
- ],
1172
- name: "signerToValidator",
1173
- outputs: [
1174
- {
1175
- internalType: "uint256",
1176
- name: "",
1177
- type: "uint256"
1178
- }
1179
- ],
1180
- payable: !1,
1181
- stateMutability: "view",
1182
- type: "function"
1183
- },
1184
- {
1185
- constant: !0,
1186
- inputs: [],
1187
- name: "signerUpdateLimit",
1188
- outputs: [
1189
- {
1190
- internalType: "uint256",
1191
- name: "",
1192
- type: "uint256"
1193
- }
1194
- ],
1195
- payable: !1,
1196
- stateMutability: "view",
1197
- type: "function"
1198
- },
1199
- {
1200
- constant: !0,
1201
- inputs: [
1202
- {
1203
- internalType: "uint256",
1204
- name: "",
1205
- type: "uint256"
1206
- }
1207
- ],
1208
- name: "signers",
1209
- outputs: [
1210
- {
1211
- internalType: "address",
1212
- name: "",
1213
- type: "address"
1214
- }
1215
- ],
1216
- payable: !1,
1217
- stateMutability: "view",
1218
- type: "function"
1219
- },
1220
- {
1221
- constant: !1,
1222
- inputs: [
1223
- {
1224
- internalType: "bytes",
1225
- name: "_slashingInfoList",
1226
- type: "bytes"
1227
- }
1228
- ],
1229
- name: "slash",
1230
- outputs: [
1231
- {
1232
- internalType: "uint256",
1233
- name: "",
1234
- type: "uint256"
1235
- }
1236
- ],
1237
- payable: !1,
1238
- stateMutability: "nonpayable",
1239
- type: "function"
1240
- },
1241
- {
1242
- constant: !1,
1243
- inputs: [
1244
- {
1245
- internalType: "address",
1246
- name: "user",
1247
- type: "address"
1248
- },
1249
- {
1250
- internalType: "uint256",
1251
- name: "amount",
1252
- type: "uint256"
1253
- },
1254
- {
1255
- internalType: "uint256",
1256
- name: "heimdallFee",
1257
- type: "uint256"
1258
- },
1259
- {
1260
- internalType: "bool",
1261
- name: "acceptDelegation",
1262
- type: "bool"
1263
- },
1264
- {
1265
- internalType: "bytes",
1266
- name: "signerPubkey",
1267
- type: "bytes"
1268
- }
1269
- ],
1270
- name: "stakeFor",
1271
- outputs: [],
1272
- payable: !1,
1273
- stateMutability: "nonpayable",
1274
- type: "function"
1275
- },
1276
- {
1277
- constant: !1,
1278
- inputs: [
1279
- {
1280
- internalType: "uint256",
1281
- name: "validatorId",
1282
- type: "uint256"
1283
- },
1284
- {
1285
- internalType: "uint256",
1286
- name: "amount",
1287
- type: "uint256"
1288
- },
1289
- {
1290
- internalType: "bool",
1291
- name: "_acceptDelegation",
1292
- type: "bool"
1293
- },
1294
- {
1295
- internalType: "bytes",
1296
- name: "_signerPubkey",
1297
- type: "bytes"
1298
- }
1299
- ],
1300
- name: "startAuction",
1301
- outputs: [],
1302
- payable: !1,
1303
- stateMutability: "nonpayable",
1304
- type: "function"
1305
- },
1306
- {
1307
- constant: !1,
1308
- inputs: [
1309
- {
1310
- internalType: "uint256",
1311
- name: "forNCheckpoints",
1312
- type: "uint256"
1313
- }
1314
- ],
1315
- name: "stopAuctions",
1316
- outputs: [],
1317
- payable: !1,
1318
- stateMutability: "nonpayable",
1319
- type: "function"
1320
- },
1321
- {
1322
- constant: !0,
1323
- inputs: [],
1324
- name: "token",
1325
- outputs: [
1326
- {
1327
- internalType: "contract IERC20",
1328
- name: "",
1329
- type: "address"
1330
- }
1331
- ],
1332
- payable: !1,
1333
- stateMutability: "view",
1334
- type: "function"
1335
- },
1336
- {
1337
- constant: !1,
1338
- inputs: [
1339
- {
1340
- internalType: "address",
1341
- name: "user",
1342
- type: "address"
1343
- },
1344
- {
1345
- internalType: "uint256",
1346
- name: "heimdallFee",
1347
- type: "uint256"
1348
- }
1349
- ],
1350
- name: "topUpForFee",
1351
- outputs: [],
1352
- payable: !1,
1353
- stateMutability: "nonpayable",
1354
- type: "function"
1355
- },
1356
- {
1357
- constant: !0,
1358
- inputs: [],
1359
- name: "totalHeimdallFee",
1360
- outputs: [
1361
- {
1362
- internalType: "uint256",
1363
- name: "",
1364
- type: "uint256"
1365
- }
1366
- ],
1367
- payable: !1,
1368
- stateMutability: "view",
1369
- type: "function"
1370
- },
1371
- {
1372
- constant: !0,
1373
- inputs: [],
1374
- name: "totalRewards",
1375
- outputs: [
1376
- {
1377
- internalType: "uint256",
1378
- name: "",
1379
- type: "uint256"
1380
- }
1381
- ],
1382
- payable: !1,
1383
- stateMutability: "view",
1384
- type: "function"
1385
- },
1386
- {
1387
- constant: !0,
1388
- inputs: [],
1389
- name: "totalRewardsLiquidated",
1390
- outputs: [
1391
- {
1392
- internalType: "uint256",
1393
- name: "",
1394
- type: "uint256"
1395
- }
1396
- ],
1397
- payable: !1,
1398
- stateMutability: "view",
1399
- type: "function"
1400
- },
1401
- {
1402
- constant: !0,
1403
- inputs: [],
1404
- name: "totalStaked",
1405
- outputs: [
1406
- {
1407
- internalType: "uint256",
1408
- name: "",
1409
- type: "uint256"
1410
- }
1411
- ],
1412
- payable: !1,
1413
- stateMutability: "view",
1414
- type: "function"
1415
- },
1416
- {
1417
- constant: !0,
1418
- inputs: [
1419
- {
1420
- internalType: "address",
1421
- name: "user",
1422
- type: "address"
1423
- }
1424
- ],
1425
- name: "totalStakedFor",
1426
- outputs: [
1427
- {
1428
- internalType: "uint256",
1429
- name: "",
1430
- type: "uint256"
1431
- }
1432
- ],
1433
- payable: !1,
1434
- stateMutability: "view",
1435
- type: "function"
1436
- },
1437
- {
1438
- constant: !1,
1439
- inputs: [
1440
- {
1441
- internalType: "uint256",
1442
- name: "validatorId",
1443
- type: "uint256"
1444
- },
1445
- {
1446
- internalType: "uint256",
1447
- name: "amount",
1448
- type: "uint256"
1449
- },
1450
- {
1451
- internalType: "address",
1452
- name: "delegator",
1453
- type: "address"
1454
- }
1455
- ],
1456
- name: "transferFunds",
1457
- outputs: [
1458
- {
1459
- internalType: "bool",
1460
- name: "",
1461
- type: "bool"
1462
- }
1463
- ],
1464
- payable: !1,
1465
- stateMutability: "nonpayable",
1466
- type: "function"
1467
- },
1468
- {
1469
- constant: !1,
1470
- inputs: [
1471
- {
1472
- internalType: "address",
1473
- name: "newOwner",
1474
- type: "address"
1475
- }
1476
- ],
1477
- name: "transferOwnership",
1478
- outputs: [],
1479
- payable: !1,
1480
- stateMutability: "nonpayable",
1481
- type: "function"
1482
- },
1483
- {
1484
- constant: !1,
1485
- inputs: [
1486
- {
1487
- internalType: "uint256",
1488
- name: "validatorId",
1489
- type: "uint256"
1490
- }
1491
- ],
1492
- name: "unjail",
1493
- outputs: [],
1494
- payable: !1,
1495
- stateMutability: "nonpayable",
1496
- type: "function"
1497
- },
1498
- {
1499
- constant: !1,
1500
- inputs: [],
1501
- name: "unlock",
1502
- outputs: [],
1503
- payable: !1,
1504
- stateMutability: "nonpayable",
1505
- type: "function"
1506
- },
1507
- {
1508
- constant: !1,
1509
- inputs: [
1510
- {
1511
- internalType: "uint256",
1512
- name: "validatorId",
1513
- type: "uint256"
1514
- }
1515
- ],
1516
- name: "unstake",
1517
- outputs: [],
1518
- payable: !1,
1519
- stateMutability: "nonpayable",
1520
- type: "function"
1521
- },
1522
- {
1523
- constant: !1,
1524
- inputs: [
1525
- {
1526
- internalType: "uint256",
1527
- name: "validatorId",
1528
- type: "uint256"
1529
- }
1530
- ],
1531
- name: "unstakeClaim",
1532
- outputs: [],
1533
- payable: !1,
1534
- stateMutability: "nonpayable",
1535
- type: "function"
1536
- },
1537
- {
1538
- constant: !1,
1539
- inputs: [
1540
- {
1541
- internalType: "uint256",
1542
- name: "_blocks",
1543
- type: "uint256"
1544
- }
1545
- ],
1546
- name: "updateCheckPointBlockInterval",
1547
- outputs: [],
1548
- payable: !1,
1549
- stateMutability: "nonpayable",
1550
- type: "function"
1551
- },
1552
- {
1553
- constant: !1,
1554
- inputs: [
1555
- {
1556
- internalType: "uint256",
1557
- name: "newReward",
1558
- type: "uint256"
1559
- }
1560
- ],
1561
- name: "updateCheckpointReward",
1562
- outputs: [],
1563
- payable: !1,
1564
- stateMutability: "nonpayable",
1565
- type: "function"
1566
- },
1567
- {
1568
- constant: !1,
1569
- inputs: [
1570
- {
1571
- internalType: "uint256",
1572
- name: "_rewardDecreasePerCheckpoint",
1573
- type: "uint256"
1574
- },
1575
- {
1576
- internalType: "uint256",
1577
- name: "_maxRewardedCheckpoints",
1578
- type: "uint256"
1579
- },
1580
- {
1581
- internalType: "uint256",
1582
- name: "_checkpointRewardDelta",
1583
- type: "uint256"
1584
- }
1585
- ],
1586
- name: "updateCheckpointRewardParams",
1587
- outputs: [],
1588
- payable: !1,
1589
- stateMutability: "nonpayable",
1590
- type: "function"
1591
- },
1592
- {
1593
- constant: !1,
1594
- inputs: [
1595
- {
1596
- internalType: "uint256",
1597
- name: "validatorId",
1598
- type: "uint256"
1599
- },
1600
- {
1601
- internalType: "uint256",
1602
- name: "newCommissionRate",
1603
- type: "uint256"
1604
- }
1605
- ],
1606
- name: "updateCommissionRate",
1607
- outputs: [],
1608
- payable: !1,
1609
- stateMutability: "nonpayable",
1610
- type: "function"
1611
- },
1612
- {
1613
- constant: !1,
1614
- inputs: [
1615
- {
1616
- internalType: "uint256",
1617
- name: "newDynasty",
1618
- type: "uint256"
1619
- }
1620
- ],
1621
- name: "updateDynastyValue",
1622
- outputs: [],
1623
- payable: !1,
1624
- stateMutability: "nonpayable",
1625
- type: "function"
1626
- },
1627
- {
1628
- constant: !1,
1629
- inputs: [
1630
- {
1631
- internalType: "uint256",
1632
- name: "_minDeposit",
1633
- type: "uint256"
1634
- },
1635
- {
1636
- internalType: "uint256",
1637
- name: "_minHeimdallFee",
1638
- type: "uint256"
1639
- }
1640
- ],
1641
- name: "updateMinAmounts",
1642
- outputs: [],
1643
- payable: !1,
1644
- stateMutability: "nonpayable",
1645
- type: "function"
1646
- },
1647
- {
1648
- constant: !1,
1649
- inputs: [
1650
- {
1651
- internalType: "uint256",
1652
- name: "newProposerBonus",
1653
- type: "uint256"
1654
- }
1655
- ],
1656
- name: "updateProposerBonus",
1657
- outputs: [],
1658
- payable: !1,
1659
- stateMutability: "nonpayable",
1660
- type: "function"
1661
- },
1662
- {
1663
- constant: !1,
1664
- inputs: [
1665
- {
1666
- internalType: "uint256",
1667
- name: "validatorId",
1668
- type: "uint256"
1669
- },
1670
- {
1671
- internalType: "bytes",
1672
- name: "signerPubkey",
1673
- type: "bytes"
1674
- }
1675
- ],
1676
- name: "updateSigner",
1677
- outputs: [],
1678
- payable: !1,
1679
- stateMutability: "nonpayable",
1680
- type: "function"
1681
- },
1682
- {
1683
- constant: !1,
1684
- inputs: [
1685
- {
1686
- internalType: "uint256",
1687
- name: "_limit",
1688
- type: "uint256"
1689
- }
1690
- ],
1691
- name: "updateSignerUpdateLimit",
1692
- outputs: [],
1693
- payable: !1,
1694
- stateMutability: "nonpayable",
1695
- type: "function"
1696
- },
1697
- {
1698
- constant: !1,
1699
- inputs: [
1700
- {
1701
- internalType: "uint256",
1702
- name: "validatorId",
1703
- type: "uint256"
1704
- },
1705
- {
1706
- internalType: "address",
1707
- name: "newContractAddress",
1708
- type: "address"
1709
- }
1710
- ],
1711
- name: "updateValidatorContractAddress",
1712
- outputs: [],
1713
- payable: !1,
1714
- stateMutability: "nonpayable",
1715
- type: "function"
1716
- },
1717
- {
1718
- constant: !1,
1719
- inputs: [
1720
- {
1721
- internalType: "bool",
1722
- name: "delegation",
1723
- type: "bool"
1724
- }
1725
- ],
1726
- name: "updateValidatorDelegation",
1727
- outputs: [],
1728
- payable: !1,
1729
- stateMutability: "nonpayable",
1730
- type: "function"
1731
- },
1732
- {
1733
- constant: !1,
1734
- inputs: [
1735
- {
1736
- internalType: "uint256",
1737
- name: "validatorId",
1738
- type: "uint256"
1739
- },
1740
- {
1741
- internalType: "int256",
1742
- name: "amount",
1743
- type: "int256"
1744
- }
1745
- ],
1746
- name: "updateValidatorState",
1747
- outputs: [],
1748
- payable: !1,
1749
- stateMutability: "nonpayable",
1750
- type: "function"
1751
- },
1752
- {
1753
- constant: !1,
1754
- inputs: [
1755
- {
1756
- internalType: "uint256",
1757
- name: "newThreshold",
1758
- type: "uint256"
1759
- }
1760
- ],
1761
- name: "updateValidatorThreshold",
1762
- outputs: [],
1763
- payable: !1,
1764
- stateMutability: "nonpayable",
1765
- type: "function"
1766
- },
1767
- {
1768
- constant: !0,
1769
- inputs: [
1770
- {
1771
- internalType: "address",
1772
- name: "",
1773
- type: "address"
1774
- }
1775
- ],
1776
- name: "userFeeExit",
1777
- outputs: [
1778
- {
1779
- internalType: "uint256",
1780
- name: "",
1781
- type: "uint256"
1782
- }
1783
- ],
1784
- payable: !1,
1785
- stateMutability: "view",
1786
- type: "function"
1787
- },
1788
- {
1789
- constant: !0,
1790
- inputs: [
1791
- {
1792
- internalType: "uint256",
1793
- name: "",
1794
- type: "uint256"
1795
- }
1796
- ],
1797
- name: "validatorAuction",
1798
- outputs: [
1799
- {
1800
- internalType: "uint256",
1801
- name: "amount",
1802
- type: "uint256"
1803
- },
1804
- {
1805
- internalType: "uint256",
1806
- name: "startEpoch",
1807
- type: "uint256"
1808
- },
1809
- {
1810
- internalType: "address",
1811
- name: "user",
1812
- type: "address"
1813
- },
1814
- {
1815
- internalType: "bool",
1816
- name: "acceptDelegation",
1817
- type: "bool"
1818
- },
1819
- {
1820
- internalType: "bytes",
1821
- name: "signerPubkey",
1822
- type: "bytes"
1823
- }
1824
- ],
1825
- payable: !1,
1826
- stateMutability: "view",
1827
- type: "function"
1828
- },
1829
- {
1830
- constant: !0,
1831
- inputs: [
1832
- {
1833
- internalType: "uint256",
1834
- name: "validatorId",
1835
- type: "uint256"
1836
- }
1837
- ],
1838
- name: "validatorReward",
1839
- outputs: [
1840
- {
1841
- internalType: "uint256",
1842
- name: "",
1843
- type: "uint256"
1844
- }
1845
- ],
1846
- payable: !1,
1847
- stateMutability: "view",
1848
- type: "function"
1849
- },
1850
- {
1851
- constant: !0,
1852
- inputs: [],
1853
- name: "validatorShareFactory",
1854
- outputs: [
1855
- {
1856
- internalType: "contract ValidatorShareFactory",
1857
- name: "",
1858
- type: "address"
1859
- }
1860
- ],
1861
- payable: !1,
1862
- stateMutability: "view",
1863
- type: "function"
1864
- },
1865
- {
1866
- constant: !0,
1867
- inputs: [
1868
- {
1869
- internalType: "uint256",
1870
- name: "validatorId",
1871
- type: "uint256"
1872
- }
1873
- ],
1874
- name: "validatorStake",
1875
- outputs: [
1876
- {
1877
- internalType: "uint256",
1878
- name: "",
1879
- type: "uint256"
1880
- }
1881
- ],
1882
- payable: !1,
1883
- stateMutability: "view",
1884
- type: "function"
1885
- },
1886
- {
1887
- constant: !0,
1888
- inputs: [],
1889
- name: "validatorState",
1890
- outputs: [
1891
- {
1892
- internalType: "uint256",
1893
- name: "amount",
1894
- type: "uint256"
1895
- },
1896
- {
1897
- internalType: "uint256",
1898
- name: "stakerCount",
1899
- type: "uint256"
1900
- }
1901
- ],
1902
- payable: !1,
1903
- stateMutability: "view",
1904
- type: "function"
1905
- },
1906
- {
1907
- constant: !0,
1908
- inputs: [
1909
- {
1910
- internalType: "uint256",
1911
- name: "",
1912
- type: "uint256"
1913
- }
1914
- ],
1915
- name: "validatorStateChanges",
1916
- outputs: [
1917
- {
1918
- internalType: "int256",
1919
- name: "amount",
1920
- type: "int256"
1921
- },
1922
- {
1923
- internalType: "int256",
1924
- name: "stakerCount",
1925
- type: "int256"
1926
- }
1927
- ],
1928
- payable: !1,
1929
- stateMutability: "view",
1930
- type: "function"
1931
- },
1932
- {
1933
- constant: !0,
1934
- inputs: [],
1935
- name: "validatorThreshold",
1936
- outputs: [
1937
- {
1938
- internalType: "uint256",
1939
- name: "",
1940
- type: "uint256"
1941
- }
1942
- ],
1943
- payable: !1,
1944
- stateMutability: "view",
1945
- type: "function"
1946
- },
1947
- {
1948
- constant: !0,
1949
- inputs: [
1950
- {
1951
- internalType: "uint256",
1952
- name: "",
1953
- type: "uint256"
1954
- }
1955
- ],
1956
- name: "validators",
1957
- outputs: [
1958
- {
1959
- internalType: "uint256",
1960
- name: "amount",
1961
- type: "uint256"
1962
- },
1963
- {
1964
- internalType: "uint256",
1965
- name: "reward",
1966
- type: "uint256"
1967
- },
1968
- {
1969
- internalType: "uint256",
1970
- name: "activationEpoch",
1971
- type: "uint256"
1972
- },
1973
- {
1974
- internalType: "uint256",
1975
- name: "deactivationEpoch",
1976
- type: "uint256"
1977
- },
1978
- {
1979
- internalType: "uint256",
1980
- name: "jailTime",
1981
- type: "uint256"
1982
- },
1983
- {
1984
- internalType: "address",
1985
- name: "signer",
1986
- type: "address"
1987
- },
1988
- {
1989
- internalType: "address",
1990
- name: "contractAddress",
1991
- type: "address"
1992
- },
1993
- {
1994
- internalType: "enum StakeManagerStorage.Status",
1995
- name: "status",
1996
- type: "uint8"
1997
- },
1998
- {
1999
- internalType: "uint256",
2000
- name: "commissionRate",
2001
- type: "uint256"
2002
- },
2003
- {
2004
- internalType: "uint256",
2005
- name: "lastCommissionUpdate",
2006
- type: "uint256"
2007
- },
2008
- {
2009
- internalType: "uint256",
2010
- name: "delegatorsReward",
2011
- type: "uint256"
2012
- },
2013
- {
2014
- internalType: "uint256",
2015
- name: "delegatedAmount",
2016
- type: "uint256"
2017
- },
2018
- {
2019
- internalType: "uint256",
2020
- name: "initialRewardPerStake",
2021
- type: "uint256"
2022
- }
2023
- ],
2024
- payable: !1,
2025
- stateMutability: "view",
2026
- type: "function"
2027
- },
2028
- {
2029
- constant: !1,
2030
- inputs: [
2031
- {
2032
- internalType: "uint256",
2033
- name: "validatorId",
2034
- type: "uint256"
2035
- }
2036
- ],
2037
- name: "withdrawDelegatorsReward",
2038
- outputs: [
2039
- {
2040
- internalType: "uint256",
2041
- name: "",
2042
- type: "uint256"
2043
- }
2044
- ],
2045
- payable: !1,
2046
- stateMutability: "nonpayable",
2047
- type: "function"
2048
- },
2049
- {
2050
- constant: !1,
2051
- inputs: [
2052
- {
2053
- internalType: "uint256",
2054
- name: "validatorId",
2055
- type: "uint256"
2056
- }
2057
- ],
2058
- name: "withdrawRewards",
2059
- outputs: [],
2060
- payable: !1,
2061
- stateMutability: "nonpayable",
2062
- type: "function"
2063
- },
2064
- {
2065
- constant: !0,
2066
- inputs: [],
2067
- name: "withdrawalDelay",
2068
- outputs: [
2069
- {
2070
- internalType: "uint256",
2071
- name: "",
2072
- type: "uint256"
2073
- }
2074
- ],
2075
- payable: !1,
2076
- stateMutability: "view",
2077
- type: "function"
2078
- }
2079
- ];
2080
- export {
2081
- t as default
2082
- };