@hinkal/common 0.0.110 → 0.0.112

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,883 +0,0 @@
1
- const e = [
2
- {
3
- inputs: [],
4
- stateMutability: "nonpayable",
5
- type: "constructor"
6
- },
7
- {
8
- anonymous: !1,
9
- inputs: [
10
- {
11
- indexed: !0,
12
- internalType: "address",
13
- name: "owner",
14
- type: "address"
15
- },
16
- {
17
- indexed: !0,
18
- internalType: "address",
19
- name: "spender",
20
- type: "address"
21
- },
22
- {
23
- indexed: !1,
24
- internalType: "uint256",
25
- name: "value",
26
- type: "uint256"
27
- }
28
- ],
29
- name: "Approval",
30
- type: "event"
31
- },
32
- {
33
- anonymous: !1,
34
- inputs: [
35
- {
36
- indexed: !0,
37
- internalType: "address",
38
- name: "_user",
39
- type: "address"
40
- },
41
- {
42
- indexed: !1,
43
- internalType: "uint256",
44
- name: "_amount",
45
- type: "uint256"
46
- }
47
- ],
48
- name: "EmergencyWithdrawn",
49
- type: "event"
50
- },
51
- {
52
- anonymous: !1,
53
- inputs: [
54
- {
55
- indexed: !0,
56
- internalType: "address",
57
- name: "_rewardToken",
58
- type: "address"
59
- }
60
- ],
61
- name: "RewardAdded",
62
- type: "event"
63
- },
64
- {
65
- anonymous: !1,
66
- inputs: [
67
- {
68
- indexed: !1,
69
- internalType: "address",
70
- name: "_rewardToken",
71
- type: "address"
72
- }
73
- ],
74
- name: "RewardInvalidated",
75
- type: "event"
76
- },
77
- {
78
- anonymous: !1,
79
- inputs: [
80
- {
81
- indexed: !0,
82
- internalType: "address",
83
- name: "_user",
84
- type: "address"
85
- },
86
- {
87
- indexed: !0,
88
- internalType: "address",
89
- name: "_rewardToken",
90
- type: "address"
91
- },
92
- {
93
- indexed: !0,
94
- internalType: "address",
95
- name: "_receiver",
96
- type: "address"
97
- },
98
- {
99
- indexed: !1,
100
- internalType: "uint256",
101
- name: "_rewardAmount",
102
- type: "uint256"
103
- }
104
- ],
105
- name: "RewardPaid",
106
- type: "event"
107
- },
108
- {
109
- anonymous: !1,
110
- inputs: [
111
- {
112
- indexed: !0,
113
- internalType: "address",
114
- name: "_account",
115
- type: "address"
116
- },
117
- {
118
- indexed: !1,
119
- internalType: "address",
120
- name: "_forward",
121
- type: "address"
122
- }
123
- ],
124
- name: "RewardRedirected",
125
- type: "event"
126
- },
127
- {
128
- anonymous: !1,
129
- inputs: [
130
- {
131
- indexed: !0,
132
- internalType: "address",
133
- name: "_user",
134
- type: "address"
135
- },
136
- {
137
- indexed: !1,
138
- internalType: "uint256",
139
- name: "_amount",
140
- type: "uint256"
141
- }
142
- ],
143
- name: "Staked",
144
- type: "event"
145
- },
146
- {
147
- anonymous: !1,
148
- inputs: [
149
- {
150
- indexed: !0,
151
- internalType: "address",
152
- name: "from",
153
- type: "address"
154
- },
155
- {
156
- indexed: !0,
157
- internalType: "address",
158
- name: "to",
159
- type: "address"
160
- },
161
- {
162
- indexed: !1,
163
- internalType: "uint256",
164
- name: "value",
165
- type: "uint256"
166
- }
167
- ],
168
- name: "Transfer",
169
- type: "event"
170
- },
171
- {
172
- anonymous: !1,
173
- inputs: [
174
- {
175
- indexed: !0,
176
- internalType: "address",
177
- name: "_user",
178
- type: "address"
179
- },
180
- {
181
- indexed: !1,
182
- internalType: "uint256",
183
- name: "_amount",
184
- type: "uint256"
185
- }
186
- ],
187
- name: "Withdrawn",
188
- type: "event"
189
- },
190
- {
191
- inputs: [
192
- {
193
- internalType: "address",
194
- name: "_token",
195
- type: "address"
196
- }
197
- ],
198
- name: "addExtraReward",
199
- outputs: [],
200
- stateMutability: "nonpayable",
201
- type: "function"
202
- },
203
- {
204
- inputs: [
205
- {
206
- internalType: "address",
207
- name: "owner",
208
- type: "address"
209
- },
210
- {
211
- internalType: "address",
212
- name: "spender",
213
- type: "address"
214
- }
215
- ],
216
- name: "allowance",
217
- outputs: [
218
- {
219
- internalType: "uint256",
220
- name: "",
221
- type: "uint256"
222
- }
223
- ],
224
- stateMutability: "view",
225
- type: "function"
226
- },
227
- {
228
- inputs: [
229
- {
230
- internalType: "address",
231
- name: "spender",
232
- type: "address"
233
- },
234
- {
235
- internalType: "uint256",
236
- name: "amount",
237
- type: "uint256"
238
- }
239
- ],
240
- name: "approve",
241
- outputs: [
242
- {
243
- internalType: "bool",
244
- name: "",
245
- type: "bool"
246
- }
247
- ],
248
- stateMutability: "nonpayable",
249
- type: "function"
250
- },
251
- {
252
- inputs: [
253
- {
254
- internalType: "address",
255
- name: "account",
256
- type: "address"
257
- }
258
- ],
259
- name: "balanceOf",
260
- outputs: [
261
- {
262
- internalType: "uint256",
263
- name: "",
264
- type: "uint256"
265
- }
266
- ],
267
- stateMutability: "view",
268
- type: "function"
269
- },
270
- {
271
- inputs: [
272
- {
273
- internalType: "address",
274
- name: "",
275
- type: "address"
276
- },
277
- {
278
- internalType: "address",
279
- name: "",
280
- type: "address"
281
- }
282
- ],
283
- name: "claimable_reward",
284
- outputs: [
285
- {
286
- internalType: "uint256",
287
- name: "",
288
- type: "uint256"
289
- }
290
- ],
291
- stateMutability: "view",
292
- type: "function"
293
- },
294
- {
295
- inputs: [],
296
- name: "convexBooster",
297
- outputs: [
298
- {
299
- internalType: "address",
300
- name: "",
301
- type: "address"
302
- }
303
- ],
304
- stateMutability: "view",
305
- type: "function"
306
- },
307
- {
308
- inputs: [],
309
- name: "convexPoolId",
310
- outputs: [
311
- {
312
- internalType: "uint256",
313
- name: "",
314
- type: "uint256"
315
- }
316
- ],
317
- stateMutability: "view",
318
- type: "function"
319
- },
320
- {
321
- inputs: [],
322
- name: "convexStaker",
323
- outputs: [
324
- {
325
- internalType: "address",
326
- name: "",
327
- type: "address"
328
- }
329
- ],
330
- stateMutability: "view",
331
- type: "function"
332
- },
333
- {
334
- inputs: [],
335
- name: "crv",
336
- outputs: [
337
- {
338
- internalType: "address",
339
- name: "",
340
- type: "address"
341
- }
342
- ],
343
- stateMutability: "view",
344
- type: "function"
345
- },
346
- {
347
- inputs: [],
348
- name: "curveGauge",
349
- outputs: [
350
- {
351
- internalType: "address",
352
- name: "",
353
- type: "address"
354
- }
355
- ],
356
- stateMutability: "view",
357
- type: "function"
358
- },
359
- {
360
- inputs: [],
361
- name: "decimals",
362
- outputs: [
363
- {
364
- internalType: "uint8",
365
- name: "",
366
- type: "uint8"
367
- }
368
- ],
369
- stateMutability: "pure",
370
- type: "function"
371
- },
372
- {
373
- inputs: [
374
- {
375
- internalType: "address",
376
- name: "spender",
377
- type: "address"
378
- },
379
- {
380
- internalType: "uint256",
381
- name: "subtractedValue",
382
- type: "uint256"
383
- }
384
- ],
385
- name: "decreaseAllowance",
386
- outputs: [
387
- {
388
- internalType: "bool",
389
- name: "",
390
- type: "bool"
391
- }
392
- ],
393
- stateMutability: "nonpayable",
394
- type: "function"
395
- },
396
- {
397
- inputs: [
398
- {
399
- internalType: "address",
400
- name: "_account",
401
- type: "address"
402
- }
403
- ],
404
- name: "earned",
405
- outputs: [
406
- {
407
- components: [
408
- {
409
- internalType: "address",
410
- name: "token",
411
- type: "address"
412
- },
413
- {
414
- internalType: "uint256",
415
- name: "amount",
416
- type: "uint256"
417
- }
418
- ],
419
- internalType: "struct ConvexRewardPool.EarnedData[]",
420
- name: "claimable",
421
- type: "tuple[]"
422
- }
423
- ],
424
- stateMutability: "nonpayable",
425
- type: "function"
426
- },
427
- {
428
- inputs: [
429
- {
430
- internalType: "uint256",
431
- name: "_amount",
432
- type: "uint256"
433
- }
434
- ],
435
- name: "emergencyWithdraw",
436
- outputs: [
437
- {
438
- internalType: "bool",
439
- name: "",
440
- type: "bool"
441
- }
442
- ],
443
- stateMutability: "nonpayable",
444
- type: "function"
445
- },
446
- {
447
- inputs: [
448
- {
449
- internalType: "address",
450
- name: "_account",
451
- type: "address"
452
- },
453
- {
454
- internalType: "address",
455
- name: "_forwardTo",
456
- type: "address"
457
- }
458
- ],
459
- name: "getReward",
460
- outputs: [],
461
- stateMutability: "nonpayable",
462
- type: "function"
463
- },
464
- {
465
- inputs: [
466
- {
467
- internalType: "address",
468
- name: "_account",
469
- type: "address"
470
- }
471
- ],
472
- name: "getReward",
473
- outputs: [],
474
- stateMutability: "nonpayable",
475
- type: "function"
476
- },
477
- {
478
- inputs: [
479
- {
480
- internalType: "address",
481
- name: "spender",
482
- type: "address"
483
- },
484
- {
485
- internalType: "uint256",
486
- name: "addedValue",
487
- type: "uint256"
488
- }
489
- ],
490
- name: "increaseAllowance",
491
- outputs: [
492
- {
493
- internalType: "bool",
494
- name: "",
495
- type: "bool"
496
- }
497
- ],
498
- stateMutability: "nonpayable",
499
- type: "function"
500
- },
501
- {
502
- inputs: [
503
- {
504
- internalType: "address",
505
- name: "_crv",
506
- type: "address"
507
- },
508
- {
509
- internalType: "address",
510
- name: "_curveGauge",
511
- type: "address"
512
- },
513
- {
514
- internalType: "address",
515
- name: "_convexStaker",
516
- type: "address"
517
- },
518
- {
519
- internalType: "address",
520
- name: "_convexBooster",
521
- type: "address"
522
- },
523
- {
524
- internalType: "address",
525
- name: "_lptoken",
526
- type: "address"
527
- },
528
- {
529
- internalType: "uint256",
530
- name: "_poolId",
531
- type: "uint256"
532
- }
533
- ],
534
- name: "initialize",
535
- outputs: [],
536
- stateMutability: "nonpayable",
537
- type: "function"
538
- },
539
- {
540
- inputs: [
541
- {
542
- internalType: "address",
543
- name: "_token",
544
- type: "address"
545
- }
546
- ],
547
- name: "invalidateReward",
548
- outputs: [],
549
- stateMutability: "nonpayable",
550
- type: "function"
551
- },
552
- {
553
- inputs: [],
554
- name: "maxRewards",
555
- outputs: [
556
- {
557
- internalType: "uint256",
558
- name: "",
559
- type: "uint256"
560
- }
561
- ],
562
- stateMutability: "view",
563
- type: "function"
564
- },
565
- {
566
- inputs: [],
567
- name: "name",
568
- outputs: [
569
- {
570
- internalType: "string",
571
- name: "",
572
- type: "string"
573
- }
574
- ],
575
- stateMutability: "view",
576
- type: "function"
577
- },
578
- {
579
- inputs: [],
580
- name: "rewardHook",
581
- outputs: [
582
- {
583
- internalType: "address",
584
- name: "",
585
- type: "address"
586
- }
587
- ],
588
- stateMutability: "view",
589
- type: "function"
590
- },
591
- {
592
- inputs: [],
593
- name: "rewardLength",
594
- outputs: [
595
- {
596
- internalType: "uint256",
597
- name: "",
598
- type: "uint256"
599
- }
600
- ],
601
- stateMutability: "view",
602
- type: "function"
603
- },
604
- {
605
- inputs: [
606
- {
607
- internalType: "address",
608
- name: "",
609
- type: "address"
610
- }
611
- ],
612
- name: "rewardMap",
613
- outputs: [
614
- {
615
- internalType: "uint256",
616
- name: "",
617
- type: "uint256"
618
- }
619
- ],
620
- stateMutability: "view",
621
- type: "function"
622
- },
623
- {
624
- inputs: [
625
- {
626
- internalType: "address",
627
- name: "",
628
- type: "address"
629
- }
630
- ],
631
- name: "rewardRedirect",
632
- outputs: [
633
- {
634
- internalType: "address",
635
- name: "",
636
- type: "address"
637
- }
638
- ],
639
- stateMutability: "view",
640
- type: "function"
641
- },
642
- {
643
- inputs: [
644
- {
645
- internalType: "address",
646
- name: "",
647
- type: "address"
648
- },
649
- {
650
- internalType: "address",
651
- name: "",
652
- type: "address"
653
- }
654
- ],
655
- name: "reward_integral_for",
656
- outputs: [
657
- {
658
- internalType: "uint256",
659
- name: "",
660
- type: "uint256"
661
- }
662
- ],
663
- stateMutability: "view",
664
- type: "function"
665
- },
666
- {
667
- inputs: [
668
- {
669
- internalType: "uint256",
670
- name: "",
671
- type: "uint256"
672
- }
673
- ],
674
- name: "rewards",
675
- outputs: [
676
- {
677
- internalType: "address",
678
- name: "reward_token",
679
- type: "address"
680
- },
681
- {
682
- internalType: "uint256",
683
- name: "reward_integral",
684
- type: "uint256"
685
- },
686
- {
687
- internalType: "uint256",
688
- name: "reward_remaining",
689
- type: "uint256"
690
- }
691
- ],
692
- stateMutability: "view",
693
- type: "function"
694
- },
695
- {
696
- inputs: [
697
- {
698
- internalType: "address",
699
- name: "_hook",
700
- type: "address"
701
- }
702
- ],
703
- name: "setRewardHook",
704
- outputs: [],
705
- stateMutability: "nonpayable",
706
- type: "function"
707
- },
708
- {
709
- inputs: [
710
- {
711
- internalType: "address",
712
- name: "_to",
713
- type: "address"
714
- }
715
- ],
716
- name: "setRewardRedirect",
717
- outputs: [],
718
- stateMutability: "nonpayable",
719
- type: "function"
720
- },
721
- {
722
- inputs: [
723
- {
724
- internalType: "address",
725
- name: "_for",
726
- type: "address"
727
- },
728
- {
729
- internalType: "uint256",
730
- name: "_amount",
731
- type: "uint256"
732
- }
733
- ],
734
- name: "stakeFor",
735
- outputs: [
736
- {
737
- internalType: "bool",
738
- name: "",
739
- type: "bool"
740
- }
741
- ],
742
- stateMutability: "nonpayable",
743
- type: "function"
744
- },
745
- {
746
- inputs: [],
747
- name: "symbol",
748
- outputs: [
749
- {
750
- internalType: "string",
751
- name: "",
752
- type: "string"
753
- }
754
- ],
755
- stateMutability: "view",
756
- type: "function"
757
- },
758
- {
759
- inputs: [],
760
- name: "totalSupply",
761
- outputs: [
762
- {
763
- internalType: "uint256",
764
- name: "",
765
- type: "uint256"
766
- }
767
- ],
768
- stateMutability: "view",
769
- type: "function"
770
- },
771
- {
772
- inputs: [
773
- {
774
- internalType: "address",
775
- name: "recipient",
776
- type: "address"
777
- },
778
- {
779
- internalType: "uint256",
780
- name: "amount",
781
- type: "uint256"
782
- }
783
- ],
784
- name: "transfer",
785
- outputs: [
786
- {
787
- internalType: "bool",
788
- name: "",
789
- type: "bool"
790
- }
791
- ],
792
- stateMutability: "nonpayable",
793
- type: "function"
794
- },
795
- {
796
- inputs: [
797
- {
798
- internalType: "address",
799
- name: "sender",
800
- type: "address"
801
- },
802
- {
803
- internalType: "address",
804
- name: "recipient",
805
- type: "address"
806
- },
807
- {
808
- internalType: "uint256",
809
- name: "amount",
810
- type: "uint256"
811
- }
812
- ],
813
- name: "transferFrom",
814
- outputs: [
815
- {
816
- internalType: "bool",
817
- name: "",
818
- type: "bool"
819
- }
820
- ],
821
- stateMutability: "nonpayable",
822
- type: "function"
823
- },
824
- {
825
- inputs: [
826
- {
827
- internalType: "address",
828
- name: "_account",
829
- type: "address"
830
- }
831
- ],
832
- name: "user_checkpoint",
833
- outputs: [
834
- {
835
- internalType: "bool",
836
- name: "",
837
- type: "bool"
838
- }
839
- ],
840
- stateMutability: "nonpayable",
841
- type: "function"
842
- },
843
- {
844
- inputs: [
845
- {
846
- internalType: "uint256",
847
- name: "_amount",
848
- type: "uint256"
849
- },
850
- {
851
- internalType: "bool",
852
- name: "_claim",
853
- type: "bool"
854
- }
855
- ],
856
- name: "withdraw",
857
- outputs: [
858
- {
859
- internalType: "bool",
860
- name: "",
861
- type: "bool"
862
- }
863
- ],
864
- stateMutability: "nonpayable",
865
- type: "function"
866
- },
867
- {
868
- inputs: [
869
- {
870
- internalType: "bool",
871
- name: "claim",
872
- type: "bool"
873
- }
874
- ],
875
- name: "withdrawAll",
876
- outputs: [],
877
- stateMutability: "nonpayable",
878
- type: "function"
879
- }
880
- ];
881
- export {
882
- e as abi
883
- };