@hinkal/common 0.0.104 → 0.0.107

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 (272) hide show
  1. package/API/API.js +58 -0
  2. package/API/HinkalPointsCalls.js +38 -0
  3. package/API/callBeefyGraphAPI.js +37 -0
  4. package/API/callCurveAPI.js +156 -0
  5. package/API/callMonitor.js +30 -0
  6. package/API/callOdosAPI.js +44 -0
  7. package/API/callOneInchAPI.js +37 -0
  8. package/API/callRelayer.js +32 -0
  9. package/API/checkRisk.js +30 -0
  10. package/API/dataServerCalls.js +32 -0
  11. package/API/fetchCommitmentsCache.js +31 -0
  12. package/API/fetchNullifiers.js +30 -0
  13. package/API/getAxelarGasEstimate.js +37 -0
  14. package/API/getCoingeckoPrice.js +27 -0
  15. package/API/getConnextReceiveFee.js +30 -0
  16. package/API/getGasEstimates.js +38 -0
  17. package/API/getRelayerURL.js +32 -0
  18. package/API/getServerURL.js +67 -0
  19. package/API/getTokenPrice.js +41 -0
  20. package/API/kycCalls.js +32 -0
  21. package/API/passwordCalls.js +36 -0
  22. package/API/referralProgramCalls.js +58 -0
  23. package/API/relayCalls.js +30 -0
  24. package/API/restoreSnapshots.js +32 -0
  25. package/API/rewardsPointsCalls.js +40 -0
  26. package/API/userVerifyTransactions.js +45 -0
  27. package/README.md +116 -1
  28. package/assets/{snarkjsWorkerLogic-CatB8Hso.js → snarkjsWorkerLogic-Fv0M38Mc.js} +2 -2
  29. package/assets/{utxoWorkerLogic-DDqTe7hT.js → utxoWorkerLogic-CtFLQiAX.js} +2 -2
  30. package/assets/{zkProofWorkerLauncher-C-pvCm0b.js → zkProofWorkerLauncher-J3Ts5_Ba.js} +1 -1
  31. package/assets/{zkProofWorkerLogic-CLpRqNRx.js → zkProofWorkerLogic-CPNuu61R.js} +18 -19
  32. package/constants/assets.constants.js +16 -0
  33. package/constants/axelar.constants.js +55 -0
  34. package/constants/backend.constants.js +18 -0
  35. package/constants/beefy.registry.js +24 -0
  36. package/constants/chains.constants.js +204 -0
  37. package/constants/coingecko.constants.js +53 -0
  38. package/constants/contracts.constants.js +276 -0
  39. package/constants/crvCvx.registry.js +636 -0
  40. package/constants/crvDynamic.registry.js +24 -0
  41. package/constants/deploy-data/deploy-data-arbMainnet.json.js +7415 -0
  42. package/constants/deploy-data/deploy-data-avalanche.json.js +7411 -0
  43. package/constants/deploy-data/deploy-data-axelar1.json.js +4329 -0
  44. package/constants/deploy-data/deploy-data-axelar2.json.js +4329 -0
  45. package/constants/deploy-data/deploy-data-base.json.js +8425 -0
  46. package/constants/deploy-data/deploy-data-blast.json.js +9600 -0
  47. package/constants/deploy-data/deploy-data-bnbMainnet.json.js +6877 -0
  48. package/constants/deploy-data/deploy-data-ethMainnet.json.js +11427 -0
  49. package/constants/deploy-data/deploy-data-localhost.json.js +13283 -0
  50. package/constants/deploy-data/deploy-data-optimism.json.js +7417 -0
  51. package/constants/deploy-data/deploy-data-polygon.json.js +7439 -0
  52. package/constants/fees.constants.js +57 -0
  53. package/constants/kyc.constants.js +118 -0
  54. package/constants/lido.constants.js +13 -0
  55. package/constants/pendle.registry.js +253 -0
  56. package/constants/protocol.constants.js +26 -0
  57. package/constants/reorg-depths.constants.js +15 -0
  58. package/constants/rewards.constants.js +27 -0
  59. package/constants/server.constants.js +157 -0
  60. package/constants/token-data/ERC20Registry.js +85 -0
  61. package/constants/token-data/arbMainnetRegistry.json.js +946 -0
  62. package/constants/token-data/arbMainnetRegistryFixed.json.js +856 -0
  63. package/constants/token-data/avalancheRegistry.json.js +591 -0
  64. package/constants/token-data/avalancheRegistryFixed.json.js +591 -0
  65. package/constants/token-data/baseRegistry.json.js +490 -0
  66. package/constants/token-data/baseRegistryFixed.json.js +463 -0
  67. package/constants/token-data/blastRegistry.json.js +137 -0
  68. package/constants/token-data/blastRegistryFixed.json.js +137 -0
  69. package/constants/token-data/bnbMainnetRegistry.json.js +973 -0
  70. package/constants/token-data/bnbMainnetRegistryFixed.json.js +973 -0
  71. package/constants/token-data/coingeckoRegistry.json.js +115623 -0
  72. package/constants/token-data/ethMainnetRegistry.json.js +2700 -0
  73. package/constants/token-data/ethMainnetRegistryFixed.json.js +2251 -0
  74. package/constants/token-data/index.js +6 -0
  75. package/constants/token-data/localhostRegistry.json.js +2768 -0
  76. package/constants/token-data/optimismRegistry.json.js +1455 -0
  77. package/constants/token-data/optimismRegistryFixed.json.js +1392 -0
  78. package/constants/token-data/polygonRegistry.json.js +1327 -0
  79. package/constants/token-data/polygonRegistryFixed.json.js +1255 -0
  80. package/constants/token-data/popularTokens.constants.js +14 -0
  81. package/constants/token-data/tokenPricing.consts.js +8 -0
  82. package/constants/vite.constants.js +29 -0
  83. package/crypto/babyJub.js +15 -0
  84. package/crypto/poseidon.js +26 -0
  85. package/crypto/preProcessing.js +9 -0
  86. package/data-structures/Hinkal/Hinkal.js +299 -0
  87. package/data-structures/Hinkal/hinkalActionBeefy.js +101 -0
  88. package/data-structures/Hinkal/hinkalActionConvex.js +83 -0
  89. package/data-structures/Hinkal/hinkalActionCurve.js +112 -0
  90. package/data-structures/Hinkal/hinkalActionLidoEth.js +91 -0
  91. package/data-structures/Hinkal/hinkalActionPendle.js +140 -0
  92. package/data-structures/Hinkal/hinkalActionPendleLP.js +96 -0
  93. package/data-structures/Hinkal/hinkalActionStake.js +138 -0
  94. package/data-structures/Hinkal/hinkalActionVolatile.js +112 -0
  95. package/data-structures/Hinkal/hinkalDeposit.js +95 -0
  96. package/data-structures/Hinkal/hinkalGetZkMeProvider.js +47 -0
  97. package/data-structures/Hinkal/hinkalPrivateWallet.js +66 -0
  98. package/data-structures/Hinkal/hinkalSwap.js +98 -0
  99. package/data-structures/Hinkal/hinkalTransfer.js +5 -0
  100. package/data-structures/Hinkal/hinkalWithdraw.js +91 -0
  101. package/data-structures/Hinkal/resetMerkleTrees.js +49 -0
  102. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.js +83 -0
  103. package/data-structures/ValueCache/ValueCache.js +25 -0
  104. package/data-structures/crypto-keys/decodeUTXO.js +40 -0
  105. package/data-structures/crypto-keys/encryptDecryptUtxo.js +41 -0
  106. package/data-structures/crypto-keys/keyUtils.js +10 -0
  107. package/data-structures/crypto-keys/keys.js +90 -0
  108. package/data-structures/custom-token-registry/CustomTokenRegistry.js +33 -0
  109. package/data-structures/event-service/AbstractAccessTokenSnapshotService.js +131 -0
  110. package/data-structures/event-service/AbstractCommitmentsSnapshotService.js +132 -0
  111. package/data-structures/event-service/AbstractEventService.js +118 -0
  112. package/data-structures/event-service/AbstractNullifierSnapshotService.js +59 -0
  113. package/data-structures/event-service/AbstractSnapshotService.js +35 -0
  114. package/data-structures/merkle-tree/MerkleTree.js +177 -0
  115. package/data-structures/merkle-tree/MerkleTreeIncompleteError.js +8 -0
  116. package/data-structures/snapshot/ClientAccessTokenSnapshotService.js +48 -0
  117. package/data-structures/snapshot/ClientCommitmentsSnapshotService.js +47 -0
  118. package/data-structures/snapshot/ClientNullifierSnapshotService.js +44 -0
  119. package/data-structures/token-price-fetcher/TokenChecker.js +29 -0
  120. package/data-structures/token-price-fetcher/TokenPriceFetcher.js +218 -0
  121. package/data-structures/transactions-manager/TransactionsManager.js +194 -0
  122. package/data-structures/transactions-manager/history/getBeefyData.js +68 -0
  123. package/data-structures/transactions-manager/history/getConvexData.js +57 -0
  124. package/data-structures/transactions-manager/history/getCurveData.js +97 -0
  125. package/data-structures/transactions-manager/history/getDepositData.js +36 -0
  126. package/data-structures/transactions-manager/history/getLidoData.js +44 -0
  127. package/data-structures/transactions-manager/history/getPendleData.js +59 -0
  128. package/data-structures/transactions-manager/history/getSwapData.js +43 -0
  129. package/data-structures/transactions-manager/history/getTxDetails.js +74 -0
  130. package/data-structures/transactions-manager/history/getVolatileData.js +75 -0
  131. package/data-structures/transactions-manager/history/history.types.js +62 -0
  132. package/data-structures/transactions-manager/history/history.utils.js +8 -0
  133. package/data-structures/utxo/Utxo.js +134 -0
  134. package/data-structures/volatile-helper/VolatileHelper.js +181 -0
  135. package/error-handling/customErrors/ErrorWithAmount.js +9 -0
  136. package/error-handling/customErrors/FeeOverTransactionValueError.js +9 -0
  137. package/error-handling/customErrors/customErrors.helpers.js +21 -0
  138. package/error-handling/error-codes.constants.js +184 -0
  139. package/error-handling/get-error.message.js +53 -0
  140. package/error-handling/handleErrorRestore.js +35 -0
  141. package/error-handling/logError.js +7 -0
  142. package/error-handling/types.js +4 -0
  143. package/externalABIs/BUSD.js +519 -0
  144. package/externalABIs/BabPassport.json.js +24 -0
  145. package/externalABIs/BeefyRouterAbi.json.js +1022 -0
  146. package/externalABIs/BeefyStrategyAbi.json.js +1423 -0
  147. package/externalABIs/BeefyVaultAbi.json.js +570 -0
  148. package/externalABIs/BeefyZapAbi.json.js +208 -0
  149. package/externalABIs/BeefyZapOneInchAbi.json.js +340 -0
  150. package/externalABIs/ConvexBoosterAbi.json.js +674 -0
  151. package/externalABIs/ConvexBoosterAbiMainnet.json.js +1002 -0
  152. package/externalABIs/ConvexRewardPoolAbi.json.js +883 -0
  153. package/externalABIs/CurveReadingWrapperAbi.json.js +1422 -0
  154. package/externalABIs/CurveWrappedMainPool.json.js +1136 -0
  155. package/externalABIs/CurveZap.json.js +262 -0
  156. package/externalABIs/CvxCrvUtilities.json.js +264 -0
  157. package/externalABIs/DAI.js +334 -0
  158. package/externalABIs/ERC20.json.js +291 -0
  159. package/externalABIs/GalxePassport.json.js +41 -0
  160. package/externalABIs/IQuoterV2.json.js +205 -0
  161. package/externalABIs/ISwapRouter.json.js +568 -0
  162. package/externalABIs/IUniswapV3Factory.json.js +201 -0
  163. package/externalABIs/IUniswapV3Pool.json.js +999 -0
  164. package/externalABIs/LidoStEthAbi.json.js +1603 -0
  165. package/externalABIs/LidoStMaticAbi.json.js +1764 -0
  166. package/externalABIs/LidoStakeManagerAbi.json.js +2082 -0
  167. package/externalABIs/LidoWithdrawalQueueERC721Abi.json.js +2030 -0
  168. package/externalABIs/LidoWstEthAbi.json.js +480 -0
  169. package/externalABIs/OptimismGasPriceOracle.json.js +206 -0
  170. package/externalABIs/PendleRouterAbi.json.js +173 -0
  171. package/externalABIs/PoLidoNftAbi.json.js +701 -0
  172. package/externalABIs/SanctionsList.js +89 -0
  173. package/externalABIs/USDC.js +721 -0
  174. package/externalABIs/USDR.js +346 -0
  175. package/externalABIs/USDR3CRV.js +542 -0
  176. package/externalABIs/USDT.js +393 -0
  177. package/externalABIs/UniswapV2PoolAbi.json.js +80 -0
  178. package/externalABIs/WETH.js +156 -0
  179. package/externalABIs/amToken.js +350 -0
  180. package/externalABIs/transactionsProver.json.js +39 -0
  181. package/functions/kyc/authentoHelper.js +42 -0
  182. package/functions/kyc/passportHelper.js +39 -0
  183. package/functions/kyc/zkMeHelper.js +56 -0
  184. package/functions/pre-transaction/getFlatFees.js +203 -0
  185. package/functions/pre-transaction/interaction-to-action.js +57 -0
  186. package/functions/pre-transaction/outputUtxoProcessing.js +45 -0
  187. package/functions/pre-transaction/process-gas-estimates.js +57 -0
  188. package/functions/pre-transaction/processAmountChanges.js +229 -0
  189. package/functions/private-wallet/emporium.helpers.js +19 -0
  190. package/functions/private-wallet/opProducer.js +24 -0
  191. package/functions/protocols/convex.protocols.js +41 -0
  192. package/functions/protocols/curve.protocols.js +45 -0
  193. package/functions/protocols/pendle.helpers.js +108 -0
  194. package/functions/snarkjs/common.snarkjs.js +96 -0
  195. package/functions/snarkjs/constant.js +211 -0
  196. package/functions/snarkjs/constructEmporiumProof.js +105 -0
  197. package/functions/snarkjs/constructGeneralZkProof.js +129 -0
  198. package/functions/snarkjs/generateCircomData.js +60 -0
  199. package/functions/snarkjs/generateZkProof.js +18 -0
  200. package/functions/snarkjs/getZKFiles.js +30 -0
  201. package/functions/staking/index.js +40 -0
  202. package/functions/utils/amounts.utils.js +70 -0
  203. package/functions/utils/axelar.utils.js +38 -0
  204. package/functions/utils/cacheFunctions.js +67 -0
  205. package/functions/utils/caseInsensitive.utils.js +6 -0
  206. package/functions/utils/convertIntegrationProviderToExternalActionId.js +16 -0
  207. package/functions/utils/create-provider.js +5 -0
  208. package/functions/utils/enum.utils.js +14 -0
  209. package/functions/utils/erc20tokenFunctions.js +20 -0
  210. package/functions/utils/evmNetworkFunctions.js +29 -0
  211. package/functions/utils/external-action.utils.js +61 -0
  212. package/functions/utils/getDataFromTransaction.js +105 -0
  213. package/functions/utils/memoize.utils.js +14 -0
  214. package/functions/utils/nickname.utils.js +7 -0
  215. package/functions/utils/process.utils.js +4 -0
  216. package/functions/utils/reloadPage.js +4 -0
  217. package/functions/utils/requireEnv.js +7 -0
  218. package/functions/utils/resolve-sync.utils.js +22 -0
  219. package/functions/utils/serialize.utils.js +4 -0
  220. package/functions/utils/string.utils.js +14 -0
  221. package/functions/utils/time.utils.js +8 -0
  222. package/functions/utils/userAgent.js +15 -0
  223. package/functions/utils/volatile-patcher.utils.js +40 -0
  224. package/functions/web3/etherFunctions.js +41 -0
  225. package/functions/web3/events/balanceChangedHandler.js +10 -0
  226. package/functions/web3/events/getInputUtxoAndBalance.js +72 -0
  227. package/functions/web3/events/getShieldedBalance.js +107 -0
  228. package/functions/web3/events/web3RetrieveEvents.js +9 -0
  229. package/functions/web3/functionCalls/accessTokenCalls.js +48 -0
  230. package/functions/web3/functionCalls/approveToken.js +153 -0
  231. package/functions/web3/functionCalls/estimateGasRelayer.js +18 -0
  232. package/functions/web3/functionCalls/transactCallDirect.js +60 -0
  233. package/functions/web3/functionCalls/transactCallRelayer.js +42 -0
  234. package/functions/web3/odosAPI.js +65 -0
  235. package/functions/web3/oneInchAPI.js +61 -0
  236. package/functions/web3/runContractFunction.js +95 -0
  237. package/functions/web3/uniswapAPI.js +97 -0
  238. package/index.js +644 -0
  239. package/package.json +5 -4
  240. package/types/beefy.types.js +21 -0
  241. package/types/circom-data.types.js +22 -0
  242. package/types/curve.types.js +25 -0
  243. package/types/ethereum-network.types.js +4 -0
  244. package/types/external-action.types.js +4 -0
  245. package/types/hinkal.stake.types.js +4 -0
  246. package/types/hinkal.types.js +15 -0
  247. package/types/kyc.types.js +13 -0
  248. package/types/pendle.types.js +15 -0
  249. package/types/rewards.types.js +27 -0
  250. package/types/slippage.types.js +15 -0
  251. package/types/time.types.js +58 -0
  252. package/types/token.types.js +4 -0
  253. package/types/transactions.types.js +36 -0
  254. package/webworker/performTaskWithWorker.js +62 -0
  255. package/webworker/snarkjsWorker/snarkjsWorker.types.js +4 -0
  256. package/webworker/snarkjsWorker/snarkjsWorkerLogic.js +32 -0
  257. package/webworker/utxoWorker/utxoWorker.types.js +4 -0
  258. package/webworker/utxoWorker/utxoWorkerLogic.js +70 -0
  259. package/webworker/viteWorkerURL.constant.d.ts +3 -3
  260. package/webworker/worker.registry.js +4 -0
  261. package/webworker/workerFactory.d.ts +0 -1
  262. package/webworker/workerFactory.js +42 -0
  263. package/{workerProxy-BDj498Ht.mjs → webworker/workerProxy.js} +1 -1
  264. package/webworker/zkProofWorker/zkProofWorker.types.js +4 -0
  265. package/webworker/zkProofWorker/zkProofWorkerLogic.js +66 -0
  266. package/assets/viteWorkerURL.constant-DrIQXA2B.js +0 -11
  267. package/index-DbehuQxV.mjs +0 -398145
  268. package/index.mjs +0 -457
  269. package/snarkjsWorkerLogic-BpNWzeoy.mjs +0 -12086
  270. package/utxoWorkerLogic-D7NuHk_K.mjs +0 -64
  271. package/viteWorkerURL.constant-Bc7ufzqC.mjs +0 -9
  272. package/zkProofWorkerLogic-Bnalmuka.mjs +0 -60
@@ -0,0 +1,883 @@
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
+ };