@hinkal/common 0.2.4 → 0.2.13

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