@hinkal/common 0.2.2 → 0.2.4

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 (249) hide show
  1. package/API/API.cjs +1 -1
  2. package/API/API.d.ts +2 -2
  3. package/API/API.mjs +22 -22
  4. package/API/duneAPI.cjs +1 -1
  5. package/API/duneAPI.mjs +3 -2
  6. package/API/userVerifyTransactions.cjs +1 -1
  7. package/API/userVerifyTransactions.d.ts +6 -7
  8. package/API/userVerifyTransactions.mjs +13 -14
  9. package/README.md +32 -22
  10. package/constants/chains.constants.cjs +1 -1
  11. package/constants/chains.constants.mjs +2 -2
  12. package/constants/contracts.constants.cjs +1 -1
  13. package/constants/contracts.constants.mjs +138 -134
  14. package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
  15. package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +846 -11
  16. package/constants/deploy-data/deploy-data-avalanche.json.cjs +1 -1
  17. package/constants/deploy-data/deploy-data-avalanche.json.mjs +848 -13
  18. package/constants/deploy-data/deploy-data-base.json.cjs +1 -1
  19. package/constants/deploy-data/deploy-data-base.json.mjs +852 -17
  20. package/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -1
  21. package/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +855 -20
  22. package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
  23. package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +850 -15
  24. package/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
  25. package/constants/deploy-data/deploy-data-localhost.json.mjs +935 -100
  26. package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
  27. package/constants/deploy-data/deploy-data-optimism.json.mjs +844 -9
  28. package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
  29. package/constants/deploy-data/deploy-data-polygon.json.mjs +844 -9
  30. package/constants/kyc.constants.cjs +1 -1
  31. package/constants/kyc.constants.mjs +30 -18
  32. package/constants/server.constants.cjs +1 -1
  33. package/constants/server.constants.d.ts +3 -2
  34. package/constants/server.constants.mjs +7 -6
  35. package/constants/token-data/ERC20Registry.cjs +1 -1
  36. package/constants/token-data/ERC20Registry.mjs +48 -48
  37. package/constants/token-data/arbMainnetRegistry.json.cjs +1 -1
  38. package/constants/token-data/arbMainnetRegistry.json.mjs +4 -1
  39. package/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -1
  40. package/constants/token-data/arbMainnetRegistryFixed.json.mjs +4 -1
  41. package/constants/token-data/avalancheRegistry.json.cjs +1 -1
  42. package/constants/token-data/avalancheRegistry.json.mjs +4 -1
  43. package/constants/token-data/avalancheRegistryFixed.json.cjs +1 -1
  44. package/constants/token-data/avalancheRegistryFixed.json.mjs +4 -1
  45. package/constants/token-data/baseRegistry.json.cjs +1 -1
  46. package/constants/token-data/baseRegistry.json.mjs +4 -1
  47. package/constants/token-data/baseRegistryFixed.json.cjs +1 -1
  48. package/constants/token-data/baseRegistryFixed.json.mjs +4 -1
  49. package/constants/token-data/bnbMainnetRegistry.json.cjs +1 -1
  50. package/constants/token-data/bnbMainnetRegistry.json.mjs +12 -9
  51. package/constants/token-data/bnbMainnetRegistryFixed.json.cjs +1 -1
  52. package/constants/token-data/bnbMainnetRegistryFixed.json.mjs +12 -9
  53. package/constants/token-data/ethMainnetRegistry.json.cjs +1 -1
  54. package/constants/token-data/ethMainnetRegistry.json.mjs +15 -12
  55. package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -1
  56. package/constants/token-data/ethMainnetRegistryFixed.json.mjs +15 -12
  57. package/constants/token-data/index.cjs +1 -0
  58. package/constants/token-data/index.d.ts +972 -15
  59. package/constants/token-data/index.mjs +34 -0
  60. package/constants/token-data/localhostRegistry.json.cjs +1 -1
  61. package/constants/token-data/localhostRegistry.json.mjs +15 -12
  62. package/constants/token-data/optimismRegistry.json.cjs +1 -1
  63. package/constants/token-data/optimismRegistry.json.mjs +4 -1
  64. package/constants/token-data/optimismRegistryFixed.json.cjs +1 -1
  65. package/constants/token-data/optimismRegistryFixed.json.mjs +4 -1
  66. package/constants/token-data/polygonRegistry.json.cjs +1 -1
  67. package/constants/token-data/polygonRegistry.json.mjs +4 -1
  68. package/constants/token-data/polygonRegistryFixed.json.cjs +1 -1
  69. package/constants/token-data/polygonRegistryFixed.json.mjs +4 -1
  70. package/data-structures/Hinkal/Hinkal.cjs +1 -1
  71. package/data-structures/Hinkal/Hinkal.d.ts +2 -0
  72. package/data-structures/Hinkal/Hinkal.mjs +38 -32
  73. package/data-structures/Hinkal/IHinkal.d.ts +2 -0
  74. package/data-structures/Hinkal/hinkalActionBeefy.cjs +1 -1
  75. package/data-structures/Hinkal/hinkalActionBeefy.mjs +21 -20
  76. package/data-structures/Hinkal/hinkalActionConvex.cjs +1 -1
  77. package/data-structures/Hinkal/hinkalActionConvex.mjs +13 -12
  78. package/data-structures/Hinkal/hinkalActionCurve.cjs +1 -1
  79. package/data-structures/Hinkal/hinkalActionCurve.mjs +15 -14
  80. package/data-structures/Hinkal/hinkalActionLidoEth.cjs +1 -1
  81. package/data-structures/Hinkal/hinkalActionLidoEth.mjs +17 -16
  82. package/data-structures/Hinkal/hinkalActionPendle.cjs +1 -1
  83. package/data-structures/Hinkal/hinkalActionPendle.d.ts +1 -1
  84. package/data-structures/Hinkal/hinkalActionPendle.mjs +24 -23
  85. package/data-structures/Hinkal/hinkalActionPendleLP.cjs +1 -1
  86. package/data-structures/Hinkal/hinkalActionPendleLP.mjs +21 -20
  87. package/data-structures/Hinkal/hinkalActionStake.cjs +1 -1
  88. package/data-structures/Hinkal/hinkalActionStake.d.ts +1 -1
  89. package/data-structures/Hinkal/hinkalActionStake.mjs +6 -5
  90. package/data-structures/Hinkal/hinkalActionVolatile.cjs +1 -1
  91. package/data-structures/Hinkal/hinkalActionVolatile.d.ts +1 -1
  92. package/data-structures/Hinkal/hinkalActionVolatile.mjs +9 -8
  93. package/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
  94. package/data-structures/Hinkal/hinkalDeposit.d.ts +2 -2
  95. package/data-structures/Hinkal/hinkalDeposit.mjs +93 -54
  96. package/data-structures/Hinkal/hinkalGetZkMeProvider.cjs +1 -1
  97. package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +3 -2
  98. package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
  99. package/data-structures/Hinkal/hinkalPrivateWallet.mjs +5 -4
  100. package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
  101. package/data-structures/Hinkal/hinkalSwap.mjs +23 -22
  102. package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
  103. package/data-structures/Hinkal/hinkalWithdraw.d.ts +1 -1
  104. package/data-structures/Hinkal/hinkalWithdraw.mjs +13 -12
  105. package/data-structures/merkle-tree/MerkleTree.cjs +1 -1
  106. package/data-structures/merkle-tree/MerkleTree.d.ts +2 -0
  107. package/data-structures/merkle-tree/MerkleTree.mjs +38 -25
  108. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs +1 -0
  109. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.d.ts +3 -0
  110. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs +9 -0
  111. package/data-structures/merkle-tree/index.d.ts +1 -0
  112. package/data-structures/transactions-manager/TransactionsManager.cjs +1 -1
  113. package/data-structures/transactions-manager/TransactionsManager.d.ts +6 -5
  114. package/data-structures/transactions-manager/TransactionsManager.mjs +118 -111
  115. package/error-handling/error-codes.constants.cjs +1 -1
  116. package/error-handling/error-codes.constants.d.ts +4 -0
  117. package/error-handling/error-codes.constants.mjs +6 -2
  118. package/externalABIs/BabPassport.json.cjs +1 -1
  119. package/externalABIs/BabPassport.json.mjs +8 -3
  120. package/externalABIs/BeefyRouterAbi.json.cjs +1 -1
  121. package/externalABIs/BeefyRouterAbi.json.mjs +5 -2
  122. package/externalABIs/BeefyStrategyAbi.json.cjs +1 -1
  123. package/externalABIs/BeefyStrategyAbi.json.mjs +5 -2
  124. package/externalABIs/BeefyVaultAbi.json.cjs +1 -1
  125. package/externalABIs/BeefyVaultAbi.json.mjs +5 -2
  126. package/externalABIs/BeefyZapAbi.json.cjs +1 -1
  127. package/externalABIs/BeefyZapAbi.json.mjs +5 -2
  128. package/externalABIs/BeefyZapOneInchAbi.json.cjs +1 -1
  129. package/externalABIs/BeefyZapOneInchAbi.json.mjs +5 -2
  130. package/externalABIs/ConvexBoosterAbi.json.cjs +1 -1
  131. package/externalABIs/ConvexBoosterAbi.json.mjs +5 -2
  132. package/externalABIs/ConvexBoosterAbiMainnet.json.cjs +1 -1
  133. package/externalABIs/ConvexBoosterAbiMainnet.json.mjs +5 -2
  134. package/externalABIs/ConvexRewardPoolAbi.json.cjs +1 -1
  135. package/externalABIs/ConvexRewardPoolAbi.json.mjs +5 -2
  136. package/externalABIs/CurveReadingWrapperAbi.json.cjs +1 -1
  137. package/externalABIs/CurveReadingWrapperAbi.json.mjs +5 -2
  138. package/externalABIs/CurveWrappedMainPool.json.cjs +1 -1
  139. package/externalABIs/CurveWrappedMainPool.json.mjs +5 -2
  140. package/externalABIs/CurveZap.json.cjs +1 -1
  141. package/externalABIs/CurveZap.json.mjs +5 -2
  142. package/externalABIs/CvxCrvUtilities.json.cjs +1 -1
  143. package/externalABIs/CvxCrvUtilities.json.mjs +5 -2
  144. package/externalABIs/ERC20.json.cjs +1 -1
  145. package/externalABIs/ERC20.json.mjs +20 -3
  146. package/externalABIs/GalxePassport.json.cjs +1 -1
  147. package/externalABIs/GalxePassport.json.mjs +8 -3
  148. package/externalABIs/IQuoterV2.json.cjs +1 -1
  149. package/externalABIs/IQuoterV2.json.mjs +20 -3
  150. package/externalABIs/ISwapRouter.json.cjs +1 -1
  151. package/externalABIs/ISwapRouter.json.mjs +5 -2
  152. package/externalABIs/IUniswapV3Factory.json.cjs +1 -1
  153. package/externalABIs/IUniswapV3Factory.json.mjs +20 -3
  154. package/externalABIs/IUniswapV3Pool.json.cjs +1 -1
  155. package/externalABIs/IUniswapV3Pool.json.mjs +20 -3
  156. package/externalABIs/PendleRouterAbi.json.cjs +1 -1
  157. package/externalABIs/PendleRouterAbi.json.mjs +5 -2
  158. package/externalABIs/UniswapV2PoolAbi.json.cjs +1 -1
  159. package/externalABIs/UniswapV2PoolAbi.json.mjs +16 -3
  160. package/externalABIs/index.cjs +1 -0
  161. package/externalABIs/index.d.ts +307 -11
  162. package/externalABIs/index.mjs +23 -0
  163. package/externalABIs/transactionsProver.json.cjs +1 -1
  164. package/externalABIs/transactionsProver.json.mjs +20 -3
  165. package/functions/kyc/zkMeHelper.cjs +1 -1
  166. package/functions/kyc/zkMeHelper.d.ts +0 -1
  167. package/functions/kyc/zkMeHelper.mjs +8 -11
  168. package/functions/pre-transaction/process-gas-estimates.cjs +1 -1
  169. package/functions/pre-transaction/process-gas-estimates.mjs +3 -2
  170. package/functions/private-wallet/opProducer.cjs +1 -1
  171. package/functions/private-wallet/opProducer.mjs +9 -10
  172. package/functions/protocols/convex.protocols.cjs +1 -1
  173. package/functions/protocols/convex.protocols.mjs +3 -2
  174. package/functions/protocols/pendle.helpers.cjs +1 -1
  175. package/functions/protocols/pendle.helpers.mjs +14 -13
  176. package/functions/snarkjs/constant.cjs +1 -1
  177. package/functions/snarkjs/constant.d.ts +1 -0
  178. package/functions/snarkjs/constant.mjs +6 -5
  179. package/functions/snarkjs/constructEmporiumProof.cjs +1 -1
  180. package/functions/snarkjs/constructEmporiumProof.d.ts +1 -1
  181. package/functions/snarkjs/constructEmporiumProof.mjs +31 -31
  182. package/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
  183. package/functions/snarkjs/constructGeneralZkProof.d.ts +1 -1
  184. package/functions/snarkjs/constructGeneralZkProof.mjs +76 -75
  185. package/functions/snarkjs/generateZkProof.cjs +1 -1
  186. package/functions/snarkjs/generateZkProof.d.ts +1 -1
  187. package/functions/snarkjs/generateZkProof.mjs +4 -15
  188. package/functions/snarkjs/generateZkProofEnclave.cjs +1 -0
  189. package/functions/snarkjs/generateZkProofEnclave.d.ts +5 -0
  190. package/functions/snarkjs/generateZkProofEnclave.mjs +33 -0
  191. package/functions/snarkjs/generateZkProofSelf.cjs +1 -0
  192. package/functions/snarkjs/generateZkProofSelf.d.ts +5 -0
  193. package/functions/snarkjs/generateZkProofSelf.mjs +17 -0
  194. package/functions/utils/axelar.utils.cjs +1 -1
  195. package/functions/utils/axelar.utils.mjs +3 -2
  196. package/functions/utils/cacheDevice.utils.cjs +1 -1
  197. package/functions/utils/cacheDevice.utils.mjs +9 -8
  198. package/functions/utils/erc20tokenFunctions.cjs +1 -1
  199. package/functions/utils/erc20tokenFunctions.mjs +8 -7
  200. package/functions/utils/evmNetworkFunctions.cjs +1 -1
  201. package/functions/utils/evmNetworkFunctions.mjs +4 -3
  202. package/functions/utils/userAgent.cjs +1 -1
  203. package/functions/utils/userAgent.mjs +8 -8
  204. package/functions/web3/functionCalls/accessTokenCalls.cjs +1 -1
  205. package/functions/web3/functionCalls/accessTokenCalls.mjs +8 -8
  206. package/functions/web3/functionCalls/transactCallDirect.cjs +1 -1
  207. package/functions/web3/functionCalls/transactCallDirect.d.ts +1 -1
  208. package/functions/web3/functionCalls/transactCallDirect.mjs +43 -29
  209. package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
  210. package/functions/web3/functionCalls/transactCallRelayer.mjs +10 -8
  211. package/functions/web3/getContractMetadata.cjs +1 -0
  212. package/functions/web3/getContractMetadata.d.ts +5 -0
  213. package/functions/web3/getContractMetadata.mjs +30 -0
  214. package/functions/web3/odosAPI.cjs +1 -1
  215. package/functions/web3/odosAPI.d.ts +1 -2
  216. package/functions/web3/odosAPI.mjs +19 -18
  217. package/functions/web3/oneInchAPI.cjs +1 -1
  218. package/functions/web3/oneInchAPI.d.ts +1 -2
  219. package/functions/web3/oneInchAPI.mjs +17 -15
  220. package/functions/web3/uniswapAPI.cjs +1 -1
  221. package/functions/web3/uniswapAPI.d.ts +4 -4
  222. package/functions/web3/uniswapAPI.mjs +54 -43
  223. package/index.cjs +1 -1
  224. package/index.mjs +617 -638
  225. package/package.json +4 -3
  226. package/providers/EthersProviderAdapter.cjs +1 -1
  227. package/providers/EthersProviderAdapter.d.ts +1 -0
  228. package/providers/EthersProviderAdapter.mjs +26 -37
  229. package/providers/WagmiProviderAdapter.cjs +1 -1
  230. package/providers/WagmiProviderAdapter.d.ts +1 -1
  231. package/providers/WagmiProviderAdapter.mjs +52 -66
  232. package/providers/exportProviers.d.ts +1 -1
  233. package/providers/prepareEthersHinkal.cjs +1 -1
  234. package/providers/prepareEthersHinkal.mjs +4 -2
  235. package/providers/prepareWagmiHinkal.cjs +1 -1
  236. package/providers/prepareWagmiHinkal.mjs +4 -2
  237. package/types/ethereum-network.types.cjs +1 -1
  238. package/types/ethereum-network.types.d.ts +62 -59
  239. package/types/ethereum-network.types.mjs +1 -1
  240. package/types/hinkal.types.d.ts +4 -0
  241. package/types/kyc.types.cjs +1 -1
  242. package/types/kyc.types.d.ts +1 -1
  243. package/types/kyc.types.mjs +1 -1
  244. package/types/remote-proof.types.d.ts +15 -0
  245. package/types/rewards.types.d.ts +5 -0
  246. package/types/time.types.cjs +1 -1
  247. package/types/time.types.mjs +1 -1
  248. package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
  249. package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
@@ -1,49 +1,49 @@
1
1
  import { ethers as t, utils as c } from "ethers";
2
- import { abi as u } from "../externalABIs/BeefyVaultAbi.json.mjs";
3
- import { abi as b } from "../externalABIs/CurveReadingWrapperAbi.json.mjs";
4
- import { abi as p } from "../externalABIs/CurveWrappedMainPool.json.mjs";
5
- import { abi as m } from "../externalABIs/ERC20.json.mjs";
6
- import { abi as A } from "../externalABIs/IQuoterV2.json.mjs";
7
- import { abi as f } from "../externalABIs/IUniswapV3Factory.json.mjs";
2
+ import u from "../externalABIs/BeefyVaultAbi.json.mjs";
3
+ import p from "../externalABIs/CurveReadingWrapperAbi.json.mjs";
4
+ import A from "../externalABIs/CurveWrappedMainPool.json.mjs";
5
+ import b from "../externalABIs/ERC20.json.mjs";
6
+ import m from "../externalABIs/IQuoterV2.json.mjs";
7
+ import f from "../externalABIs/IUniswapV3Factory.json.mjs";
8
8
  import C from "../externalABIs/LidoStEthAbi.json.mjs";
9
9
  import k from "../externalABIs/LidoStMaticAbi.json.mjs";
10
10
  import I from "../externalABIs/LidoWithdrawalQueueERC721Abi.json.mjs";
11
11
  import v from "../externalABIs/PoLidoNftAbi.json.mjs";
12
- import x from "../externalABIs/LidoWstEthAbi.json.mjs";
13
- import w from "../externalABIs/LidoStakeManagerAbi.json.mjs";
14
- import { abi as h } from "../externalABIs/BeefyRouterAbi.json.mjs";
15
- import { abi as B } from "../externalABIs/BeefyStrategyAbi.json.mjs";
16
- import { abi as P } from "../externalABIs/BeefyZapAbi.json.mjs";
17
- import { abi as S } from "../externalABIs/BeefyZapOneInchAbi.json.mjs";
18
- import { abi as W } from "../externalABIs/ConvexBoosterAbi.json.mjs";
19
- import { abi as E } from "../externalABIs/ConvexBoosterAbiMainnet.json.mjs";
20
- import { abi as L } from "../externalABIs/ConvexRewardPoolAbi.json.mjs";
21
- import { abi as T } from "../externalABIs/CurveZap.json.mjs";
22
- import { abi as g } from "../externalABIs/CvxCrvUtilities.json.mjs";
23
- import { abi as y } from "../externalABIs/PendleRouterAbi.json.mjs";
24
- import { abi as $ } from "../externalABIs/IUniswapV3Pool.json.mjs";
25
- import { abi as V } from "../externalABIs/UniswapV2PoolAbi.json.mjs";
26
- import { networkRegistry as H, getNonLocalhostChainId as _ } from "./chains.constants.mjs";
27
- import { ContractType as a } from "../types/ethereum-network.types.mjs";
28
- import { lidoWstEthContractAddress as M, lidoStEthContractAddress as R, lidoWithdrawalQueueERC721Address as N, poLidoNftAddress as O, lidoStMaticAddress as Q, lidoStakeManagerAddress as U } from "./lido.constants.mjs";
29
- const G = {
30
- abi: f
31
- }, F = {
32
- abi: $
33
- }, Z = {
34
- abi: V
12
+ import B from "../externalABIs/LidoWstEthAbi.json.mjs";
13
+ import x from "../externalABIs/LidoStakeManagerAbi.json.mjs";
14
+ import w from "../externalABIs/BeefyRouterAbi.json.mjs";
15
+ import h from "../externalABIs/BeefyStrategyAbi.json.mjs";
16
+ import P from "../externalABIs/BeefyZapAbi.json.mjs";
17
+ import W from "../externalABIs/BeefyZapOneInchAbi.json.mjs";
18
+ import S from "../externalABIs/ConvexBoosterAbi.json.mjs";
19
+ import E from "../externalABIs/ConvexBoosterAbiMainnet.json.mjs";
20
+ import T from "../externalABIs/ConvexRewardPoolAbi.json.mjs";
21
+ import y from "../externalABIs/CurveZap.json.mjs";
22
+ import L from "../externalABIs/CvxCrvUtilities.json.mjs";
23
+ import g from "../externalABIs/PendleRouterAbi.json.mjs";
24
+ import V from "../externalABIs/IUniswapV3Pool.json.mjs";
25
+ import R from "../externalABIs/UniswapV2PoolAbi.json.mjs";
26
+ import { networkRegistry as M, getNonLocalhostChainId as H } from "./chains.constants.mjs";
27
+ import { ContractType as n } from "../types/ethereum-network.types.mjs";
28
+ import { lidoWstEthContractAddress as _, lidoStEthContractAddress as N, lidoWithdrawalQueueERC721Address as O, poLidoNftAddress as Q, lidoStMaticAddress as U, lidoStakeManagerAddress as Z } from "./lido.constants.mjs";
29
+ const F = {
30
+ abi: f.abi
31
+ }, G = {
32
+ abi: V.abi
35
33
  }, Y = {
36
- abi: A
34
+ abi: R.abi
35
+ }, $ = {
36
+ abi: m.abi
37
37
  }, J = new t.utils.Interface([
38
38
  "function coins(int128 arg0) external view returns (address)"
39
39
  ]), j = new t.utils.Interface([
40
40
  "function balances(int128 arg0) external view returns (uint256)"
41
- ]), n = (e) => new t.utils.Interface([
41
+ ]), a = (e) => new t.utils.Interface([
42
42
  `function calc_token_amount(uint256[${e || ""}] _amounts, bool is_deposit) external view returns (uint256)`,
43
43
  "function coins(uint256 arg0) external view returns (address)",
44
44
  "function calc_withdraw_one_coin(uint256 token_amount, uint256 i) external view returns (uint256)",
45
45
  "function fee() external view returns (uint256)"
46
- ]), r = (e) => new t.utils.Interface([
46
+ ]), i = (e) => new t.utils.Interface([
47
47
  `function calc_token_amount(uint256[${e}] _amounts) external view returns (uint256)`,
48
48
  "function coins(uint256 arg0) external view returns (address)",
49
49
  "function calc_withdraw_one_coin(uint256 token_amount, uint256 i) external view returns (uint256)",
@@ -56,218 +56,222 @@ const G = {
56
56
  "function checkpoint(uint256 lpBalance, uint256 prevTimeStamp, uint256 currentTimeStamp) external returns (uint256, uint256[] memory)",
57
57
  "function claimable(uint256 lpBalance, uint256 prevTimeStamp) external returns (uint256, uint256[] memory)"
58
58
  ]), Ee = {
59
- [a.HinkalContract]: (e) => ({
59
+ [n.HinkalContract]: (e) => ({
60
60
  abi: e.hinkalABI,
61
61
  address: e.hinkalAddress
62
62
  }),
63
- [a.HinkalHelperContract]: (e) => ({
63
+ [n.HinkalHelperContract]: (e) => ({
64
64
  abi: e.hinkalHelperABI,
65
65
  address: e.hinkalHelperAddress
66
66
  }),
67
- [a.CrossChainAccessTokenContract]: (e) => ({
67
+ [n.CrossChainAccessTokenContract]: (e) => ({
68
68
  abi: e.crossChainAccessTokenABI,
69
69
  address: e.crossChainAccessTokenAddress
70
70
  }),
71
- [a.MerkleTreeContract]: () => ({
72
- abi: new t.utils.Interface(["function getRootHash() public view returns (uint256)"])
71
+ [n.CrossChainAccessTokenManagerContract]: (e) => ({
72
+ abi: e.crossChainAccessTokenManagerABI,
73
+ address: e.crossChainAccessTokenManagerAddress
73
74
  }),
74
- [a.UniswapV3FactoryContract]: () => ({
75
- abi: G.abi
75
+ [n.MerkleTreeContract]: () => ({
76
+ abi: new t.utils.Interface(["function getRootHash() public view returns (uint256)"])
76
77
  }),
77
- [a.UniswapV3PoolContract]: () => ({
78
+ [n.UniswapV3FactoryContract]: () => ({
78
79
  abi: F.abi
79
80
  }),
80
- [a.UniswapV2PoolContract]: () => ({
81
- abi: Z.abi
81
+ [n.UniswapV3PoolContract]: () => ({
82
+ abi: G.abi
82
83
  }),
83
- [a.UniswapV3QuoterContract]: () => ({
84
+ [n.UniswapV2PoolContract]: () => ({
84
85
  abi: Y.abi
85
86
  }),
86
- [a.ERC20Contract]: () => ({
87
- abi: m
87
+ [n.UniswapV3QuoterContract]: () => ({
88
+ abi: $.abi
88
89
  }),
89
- [a.WATokenContract]: (e) => ({
90
+ [n.ERC20Contract]: () => ({
91
+ abi: b.abi
92
+ }),
93
+ [n.WATokenContract]: (e) => ({
90
94
  abi: e.waTokenABI
91
95
  }),
92
- [a.ContractWithNonces]: () => ({
96
+ [n.ContractWithNonces]: () => ({
93
97
  abi: new t.utils.Interface(["function nonces(address owner) external view returns (uint)"])
94
98
  }),
95
- [a.PermitterContract]: (e) => ({
99
+ [n.PermitterContract]: (e) => ({
96
100
  abi: e.permitterABI,
97
101
  address: e.permitterAddress
98
102
  }),
99
- [a.CurveExternalAction]: (e) => ({
103
+ [n.CurveExternalAction]: (e) => ({
100
104
  address: e.curveExternalActionInstanceAddress,
101
105
  abi: e.curveExternalActionABI
102
106
  }),
103
- [a.WrappedStakedCurveLp]: (e) => ({
107
+ [n.WrappedStakedCurveLp]: (e) => ({
104
108
  abi: e.wrappedStakedCurveLpABI
105
109
  }),
106
- [a.WrappedStakedRewardsCurveLp]: () => ({
110
+ [n.WrappedStakedRewardsCurveLp]: () => ({
107
111
  abi: K
108
112
  }),
109
- [a.CurveWrappedMainPool]: () => ({
110
- abi: p
113
+ [n.CurveWrappedMainPool]: () => ({
114
+ abi: A.abi
111
115
  }),
112
- [a.CurveReadingWrapper]: () => ({
113
- abi: b
116
+ [n.CurveReadingWrapper]: () => ({
117
+ abi: p.abi
114
118
  }),
115
119
  // we use curveReadingWrapper has withdraw one coin as uint whereas curveWrappedMainPool has it as int
116
- [a.CurvePoolLPTokenAmountCalculator2]: () => ({
117
- abi: n(2)
120
+ [n.CurvePoolLPTokenAmountCalculator2]: () => ({
121
+ abi: a(2)
118
122
  }),
119
- [a.CurvePoolLPTokenAmountCalculator3]: () => ({
120
- abi: n(3)
123
+ [n.CurvePoolLPTokenAmountCalculator3]: () => ({
124
+ abi: a(3)
121
125
  }),
122
- [a.CurvePoolLPTokenAmountCalculator4]: () => ({
123
- abi: n(4)
126
+ [n.CurvePoolLPTokenAmountCalculator4]: () => ({
127
+ abi: a(4)
124
128
  }),
125
- [a.CurvePoolLPTokenAmountCalculatorDynamic]: () => ({
126
- abi: n()
129
+ [n.CurvePoolLPTokenAmountCalculatorDynamic]: () => ({
130
+ abi: a()
127
131
  }),
128
- [a.CurvePoolLPTokenAmountCalculator2OneArg]: () => ({
129
- abi: r(2)
132
+ [n.CurvePoolLPTokenAmountCalculator2OneArg]: () => ({
133
+ abi: i(2)
130
134
  }),
131
- [a.CurvePoolLPTokenAmountCalculator3OneArg]: () => ({
132
- abi: r(3)
135
+ [n.CurvePoolLPTokenAmountCalculator3OneArg]: () => ({
136
+ abi: i(3)
133
137
  }),
134
- [a.CurvePoolLPTokenAmountCalculator4OneArg]: () => ({
135
- abi: r(4)
138
+ [n.CurvePoolLPTokenAmountCalculator4OneArg]: () => ({
139
+ abi: i(4)
136
140
  }),
137
- [a.CurvePoolWithIntCoins]: () => ({ abi: J }),
138
- [a.CurvePoolWithIntBalances]: () => ({ abi: j }),
139
- [a.OneInchExternalActionContract]: (e) => ({
141
+ [n.CurvePoolWithIntCoins]: () => ({ abi: J }),
142
+ [n.CurvePoolWithIntBalances]: () => ({ abi: j }),
143
+ [n.OneInchExternalActionContract]: (e) => ({
140
144
  address: e.oneInchExternalActionInstanceAddress
141
145
  }),
142
- [a.CurveGauge]: () => ({
146
+ [n.CurveGauge]: () => ({
143
147
  abi: q
144
148
  }),
145
- [a.CurveZaps]: () => ({
146
- abi: T
149
+ [n.CurveZaps]: () => ({
150
+ abi: y.abi
147
151
  }),
148
- [a.ConvexExternalAction]: (e) => ({
152
+ [n.ConvexExternalAction]: (e) => ({
149
153
  address: e.convexExternalActionInstanceAddress,
150
154
  abi: e.convexExternalActionABI
151
155
  }),
152
- [a.WrappedStakedConvexLp]: (e) => ({ abi: e.wrappedStakedConvexLpABI }),
153
- [a.ConvexBooster]: () => ({
154
- abi: W
156
+ [n.WrappedStakedConvexLp]: (e) => ({ abi: e.wrappedStakedConvexLpABI }),
157
+ [n.ConvexBooster]: () => ({
158
+ abi: S.abi
155
159
  }),
156
- [a.ConvexBoosterMainnet]: () => ({
157
- abi: E
160
+ [n.ConvexBoosterMainnet]: () => ({
161
+ abi: E.abi
158
162
  }),
159
- [a.ConvexRewardPool]: () => ({
160
- abi: L
163
+ [n.ConvexRewardPool]: () => ({
164
+ abi: T.abi
161
165
  }),
162
- [a.ConvexCvxLocker]: () => ({
166
+ [n.ConvexCvxLocker]: () => ({
163
167
  abi: z
164
168
  }),
165
- [a.ConvexStakePool]: () => ({
169
+ [n.ConvexStakePool]: () => ({
166
170
  abi: new t.utils.Interface(["function totalSupply() external view returns (uint256)"])
167
171
  }),
168
- [a.ConvexCvxCRVWrapper]: () => ({
172
+ [n.ConvexCvxCRVWrapper]: () => ({
169
173
  abi: new t.utils.Interface(["function totalSupply() external view returns (uint256)"])
170
174
  }),
171
- [a.ConvexCxvCrvUtillities]: () => ({
172
- abi: g
175
+ [n.ConvexCxvCrvUtillities]: () => ({
176
+ abi: L.abi
173
177
  }),
174
- [a.BeefyVault]: () => ({
175
- abi: u
178
+ [n.BeefyVault]: () => ({
179
+ abi: u.abi
176
180
  }),
177
- [a.BeefyZap]: () => ({
178
- abi: P
181
+ [n.BeefyZap]: () => ({
182
+ abi: P.abi
179
183
  }),
180
- [a.BeefyRouter]: () => ({
181
- abi: h
184
+ [n.BeefyRouter]: () => ({
185
+ abi: w.abi
182
186
  }),
183
- [a.BeefyZapOneInch]: () => ({
184
- abi: S
187
+ [n.BeefyZapOneInch]: () => ({
188
+ abi: W.abi
185
189
  }),
186
- [a.BeefyStrategy]: () => ({
187
- abi: B
190
+ [n.BeefyStrategy]: () => ({
191
+ abi: h.abi
188
192
  }),
189
- [a.BeefyExternalAction]: (e) => ({
193
+ [n.BeefyExternalAction]: (e) => ({
190
194
  abi: e.BeefyExternalActionABI,
191
195
  address: e.beefyExternalActionInstanceAddress
192
196
  }),
193
- [a.BeefyStakeExternalAction]: (e) => ({
197
+ [n.BeefyStakeExternalAction]: (e) => ({
194
198
  abi: e.BeefyStakeExternalActionABI,
195
199
  address: e.beefyStakeExternalActionInstanceAddress
196
200
  }),
197
- [a.WrappedStakedBeefyLp]: (e) => ({
201
+ [n.WrappedStakedBeefyLp]: (e) => ({
198
202
  abi: e.WrappedStakedBeefyLpABI
199
203
  }),
200
- [a.LidoWstEther]: () => ({
201
- abi: x,
202
- address: M
204
+ [n.LidoWstEther]: () => ({
205
+ abi: B,
206
+ address: _
203
207
  }),
204
- [a.LidoStEther]: () => ({
208
+ [n.LidoStEther]: () => ({
205
209
  abi: C,
206
- address: R
210
+ address: N
207
211
  }),
208
- [a.LidoWithdrawalQueueERC721]: () => ({
212
+ [n.LidoWithdrawalQueueERC721]: () => ({
209
213
  abi: I,
210
- address: N
214
+ address: O
211
215
  }),
212
- [a.PendleGeneralExternalAction]: (e) => ({
216
+ [n.PendleGeneralExternalAction]: (e) => ({
213
217
  abi: e.pendleExternalActionABI,
214
218
  address: e.pendleExternalActionInstanceAddress
215
219
  }),
216
- [a.WstYtToken]: (e) => ({
220
+ [n.WstYtToken]: (e) => ({
217
221
  abi: e.WstYtTokenABI
218
222
  }),
219
- [a.WstPendleLPToken]: (e) => ({
223
+ [n.WstPendleLPToken]: (e) => ({
220
224
  abi: e.WstPendleLPABI
221
225
  }),
222
- [a.PendleRouter]: (e) => ({
223
- abi: y,
226
+ [n.PendleRouter]: (e) => ({
227
+ abi: g.abi,
224
228
  address: e.pendleExternalActionInstanceAddress
225
229
  }),
226
- [a.PoLidoNFT]: () => ({
230
+ [n.PoLidoNFT]: () => ({
227
231
  abi: v,
228
- address: O
229
- }),
230
- [a.LidoStMatic]: () => ({
231
- abi: k,
232
232
  address: Q
233
233
  }),
234
- [a.LidoStakeManager]: () => ({
235
- abi: w,
234
+ [n.LidoStMatic]: () => ({
235
+ abi: k,
236
236
  address: U
237
237
  }),
238
- [a.VolatileVault]: (e) => ({
238
+ [n.LidoStakeManager]: () => ({
239
+ abi: x,
240
+ address: Z
241
+ }),
242
+ [n.VolatileVault]: (e) => ({
239
243
  abi: e.VolatileVaultABI,
240
244
  address: e.volatileVaultInstanceAddress
241
245
  }),
242
- [a.VolatileTokenAction]: (e) => ({
246
+ [n.VolatileTokenAction]: (e) => ({
243
247
  abi: e.VolatileTokenActionABI,
244
248
  address: e.volatileTokenActionInstanceAddress
245
249
  }),
246
- [a.HinkalWrapper]: (e) => ({
250
+ [n.HinkalWrapper]: (e) => ({
247
251
  abi: e.HinkalWrapperABI,
248
252
  address: e.hinkalWrapperAddress
249
253
  }),
250
- [a.HinkalWrapper2]: (e) => ({
254
+ [n.HinkalWrapper2]: (e) => ({
251
255
  // return old one if new one isn't available
252
256
  abi: e.HinkalWrapper2ABI ?? e.HinkalWrapperABI,
253
257
  address: e.hinkalWrapper2Address ?? e.hinkalWrapperAddress
254
258
  }),
255
- [a.HinkalStakeExternalAction]: (e) => ({
259
+ [n.HinkalStakeExternalAction]: (e) => ({
256
260
  abi: e.HinkalStakeExternalActionABI,
257
261
  address: e.hinkalStakeExternalActionAddress
258
262
  }),
259
- [a.HToken]: (e) => ({
263
+ [n.HToken]: (e) => ({
260
264
  abi: e.HTokenABI
261
265
  })
262
- }, Le = (e) => {
263
- const { contractData: o } = H[_(e)], s = JSON.stringify(o.hinkalABI), i = new c.Interface(s), l = i.getSighash("transact"), d = i.getSighash("transactWithExternalAction");
264
- return { hinkalInterface: i, transactMethodId: l, transactWithExternalActionMethodId: d, NewCommitment: "NewCommitment", NewCommitmentTopic: "0xc2e3bd2d00c3cf4d09298e5a0cfd317cf7a6e5bf15d467cfa805a91e1a4a221d" };
266
+ }, Te = (e) => {
267
+ const { contractData: o } = M[H(e)], s = JSON.stringify(o.hinkalABI), r = new c.Interface(s), l = r.getSighash("transact"), d = r.getSighash("transactWithExternalAction");
268
+ return { hinkalInterface: r, transactMethodId: l, transactWithExternalActionMethodId: d, NewCommitment: "NewCommitment", NewCommitmentTopic: "0xc2e3bd2d00c3cf4d09298e5a0cfd317cf7a6e5bf15d467cfa805a91e1a4a221d" };
265
269
  };
266
270
  export {
267
271
  Ee as contractMetadataMapping,
268
- Le as getHinkalParameters,
269
- Z as uniswapV2PoolData,
270
- G as uniswapV3FactoryData,
271
- F as uniswapV3PoolData,
272
- Y as uniswapV3QuoterData
272
+ Te as getHinkalParameters,
273
+ Y as uniswapV2PoolData,
274
+ F as uniswapV3FactoryData,
275
+ G as uniswapV3PoolData,
276
+ $ as uniswapV3QuoterData
273
277
  };