@hinkal/common 0.2.12 → 0.2.14

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 (574) hide show
  1. package/API/API.cjs +1 -1
  2. package/API/API.d.ts +9 -3
  3. package/API/API.mjs +44 -34
  4. package/API/ai-calls.cjs +1 -0
  5. package/API/ai-calls.d.ts +9 -0
  6. package/API/ai-calls.mjs +13 -0
  7. package/API/callCurveAPI.cjs +1 -1
  8. package/API/callCurveAPI.mjs +28 -22
  9. package/API/callRelayer.d.ts +3 -2
  10. package/API/dataServerCalls.cjs +1 -1
  11. package/API/dataServerCalls.d.ts +4 -0
  12. package/API/dataServerCalls.mjs +11 -7
  13. package/API/duneAPI.cjs +1 -1
  14. package/API/duneAPI.mjs +6 -4
  15. package/API/fetchCommitmentsCache.cjs +1 -1
  16. package/API/fetchCommitmentsCache.d.ts +9 -1
  17. package/API/fetchCommitmentsCache.mjs +6 -5
  18. package/API/getGasEstimates.cjs +1 -1
  19. package/API/getGasEstimates.d.ts +2 -1
  20. package/API/getGasEstimates.mjs +10 -9
  21. package/API/getServerURL.d.ts +1 -1
  22. package/API/index.d.ts +2 -0
  23. package/API/is-tx-stateless.cjs +1 -0
  24. package/API/is-tx-stateless.d.ts +3 -0
  25. package/API/is-tx-stateless.mjs +9 -0
  26. package/API/kycCalls.cjs +1 -1
  27. package/API/kycCalls.d.ts +0 -4
  28. package/API/kycCalls.mjs +11 -15
  29. package/API/rewardsPointsCalls.d.ts +0 -3
  30. package/API/tenderly.api.cjs +1 -0
  31. package/API/tenderly.api.d.ts +12 -0
  32. package/API/tenderly.api.mjs +47 -0
  33. package/API/token-calls.cjs +1 -0
  34. package/API/token-calls.d.ts +2 -0
  35. package/API/token-calls.mjs +9 -0
  36. package/README.md +0 -61
  37. package/constants/addresses.constants.cjs +1 -0
  38. package/constants/addresses.constants.d.ts +16 -0
  39. package/constants/addresses.constants.mjs +50 -0
  40. package/constants/assets.constants.cjs +1 -1
  41. package/constants/assets.constants.mjs +13 -13
  42. package/constants/axelar.constants.cjs +1 -1
  43. package/constants/axelar.constants.mjs +5 -5
  44. package/constants/balance.constants.cjs +1 -0
  45. package/constants/balance.constants.d.ts +1 -0
  46. package/constants/balance.constants.mjs +4 -0
  47. package/constants/chains.constants.cjs +1 -1
  48. package/constants/chains.constants.d.ts +0 -2
  49. package/constants/chains.constants.mjs +26 -38
  50. package/constants/contracts.constants.cjs +1 -1
  51. package/constants/contracts.constants.mjs +108 -108
  52. package/constants/conversion.constants.cjs +1 -0
  53. package/constants/conversion.constants.d.ts +1 -0
  54. package/constants/conversion.constants.mjs +4 -0
  55. package/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
  56. package/constants/deploy-data/deploy-data-localhost.json.mjs +1652 -829
  57. package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
  58. package/constants/deploy-data/deploy-data-optimism.json.mjs +9707 -3957
  59. package/constants/fees.constants.cjs +1 -1
  60. package/constants/fees.constants.d.ts +5 -3
  61. package/constants/fees.constants.mjs +22 -19
  62. package/constants/index.d.ts +6 -0
  63. package/constants/mediaUrls.constants.cjs +1 -0
  64. package/constants/mediaUrls.constants.d.ts +23 -0
  65. package/constants/mediaUrls.constants.mjs +26 -0
  66. package/constants/permit2.constants.cjs +1 -0
  67. package/constants/permit2.constants.d.ts +2 -0
  68. package/constants/permit2.constants.mjs +5 -0
  69. package/constants/protocol.constants.cjs +1 -1
  70. package/constants/protocol.constants.d.ts +6 -0
  71. package/constants/protocol.constants.mjs +27 -15
  72. package/constants/rewards.constants.cjs +1 -1
  73. package/constants/rewards.constants.d.ts +0 -1
  74. package/constants/rewards.constants.mjs +14 -13
  75. package/constants/server.constants.cjs +1 -1
  76. package/constants/server.constants.d.ts +8 -3
  77. package/constants/server.constants.mjs +16 -11
  78. package/constants/token-data/ERC20Registry.cjs +1 -1
  79. package/constants/token-data/ERC20Registry.mjs +10 -9
  80. package/constants/token-data/arbMainnetRegistry.json.cjs +1 -1
  81. package/constants/token-data/arbMainnetRegistry.json.mjs +88 -88
  82. package/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -1
  83. package/constants/token-data/arbMainnetRegistryFixed.json.mjs +78 -78
  84. package/constants/token-data/avalancheRegistry.json.cjs +1 -1
  85. package/constants/token-data/avalancheRegistry.json.mjs +49 -49
  86. package/constants/token-data/avalancheRegistryFixed.json.cjs +1 -1
  87. package/constants/token-data/avalancheRegistryFixed.json.mjs +49 -49
  88. package/constants/token-data/baseRegistry.json.cjs +1 -1
  89. package/constants/token-data/baseRegistry.json.mjs +32 -32
  90. package/constants/token-data/baseRegistryFixed.json.cjs +1 -1
  91. package/constants/token-data/baseRegistryFixed.json.mjs +29 -29
  92. package/constants/token-data/bnbMainnetRegistry.json.cjs +1 -1
  93. package/constants/token-data/bnbMainnetRegistry.json.mjs +65 -65
  94. package/constants/token-data/bnbMainnetRegistryFixed.json.cjs +1 -1
  95. package/constants/token-data/bnbMainnetRegistryFixed.json.mjs +65 -65
  96. package/constants/token-data/ethMainnetRegistry.json.cjs +1 -1
  97. package/constants/token-data/ethMainnetRegistry.json.mjs +227 -227
  98. package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -1
  99. package/constants/token-data/ethMainnetRegistryFixed.json.mjs +191 -191
  100. package/constants/token-data/index.d.ts +91 -0
  101. package/constants/token-data/localhostRegistry.json.cjs +1 -1
  102. package/constants/token-data/localhostRegistry.json.mjs +294 -277
  103. package/constants/token-data/optimismRegistry.json.cjs +1 -1
  104. package/constants/token-data/optimismRegistry.json.mjs +702 -182
  105. package/constants/token-data/optimismRegistryFixed.json.cjs +1 -1
  106. package/constants/token-data/optimismRegistryFixed.json.mjs +678 -175
  107. package/constants/token-data/polygonRegistry.json.cjs +1 -1
  108. package/constants/token-data/polygonRegistry.json.mjs +109 -109
  109. package/constants/token-data/polygonRegistryFixed.json.cjs +1 -1
  110. package/constants/token-data/polygonRegistryFixed.json.mjs +101 -101
  111. package/constants/token.limits.constants.cjs +1 -0
  112. package/constants/token.limits.constants.d.ts +5 -0
  113. package/constants/token.limits.constants.mjs +30 -0
  114. package/constants/vite.constants.cjs +1 -1
  115. package/constants/vite.constants.d.ts +5 -0
  116. package/constants/vite.constants.mjs +26 -22
  117. package/data-structures/Hinkal/Hinkal.cjs +1 -1
  118. package/data-structures/Hinkal/Hinkal.d.ts +46 -21
  119. package/data-structures/Hinkal/Hinkal.mjs +260 -92
  120. package/data-structures/Hinkal/IHinkal.d.ts +35 -11
  121. package/data-structures/Hinkal/hinkalActionBeefy.cjs +1 -1
  122. package/data-structures/Hinkal/hinkalActionBeefy.mjs +5 -4
  123. package/data-structures/Hinkal/hinkalActionConvex.cjs +1 -1
  124. package/data-structures/Hinkal/hinkalActionConvex.mjs +4 -3
  125. package/data-structures/Hinkal/hinkalActionCurve.cjs +1 -1
  126. package/data-structures/Hinkal/hinkalActionCurve.mjs +5 -4
  127. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.cjs +1 -0
  128. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.d.ts +3 -0
  129. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.mjs +61 -0
  130. package/data-structures/Hinkal/hinkalActionLidoEth.cjs +1 -1
  131. package/data-structures/Hinkal/hinkalActionLidoEth.mjs +9 -8
  132. package/data-structures/Hinkal/hinkalActionPendle.cjs +1 -1
  133. package/data-structures/Hinkal/hinkalActionPendle.mjs +17 -16
  134. package/data-structures/Hinkal/hinkalActionPendleLP.cjs +1 -1
  135. package/data-structures/Hinkal/hinkalActionPendleLP.mjs +14 -12
  136. package/data-structures/Hinkal/hinkalActionReceive.cjs +1 -0
  137. package/data-structures/Hinkal/hinkalActionReceive.d.ts +4 -0
  138. package/data-structures/Hinkal/hinkalActionReceive.mjs +39 -0
  139. package/data-structures/Hinkal/hinkalActionStake.cjs +1 -1
  140. package/data-structures/Hinkal/hinkalActionStake.mjs +12 -9
  141. package/data-structures/Hinkal/hinkalActionVolatile.cjs +1 -1
  142. package/data-structures/Hinkal/hinkalActionVolatile.mjs +25 -21
  143. package/data-structures/Hinkal/hinkalApprove.cjs +1 -0
  144. package/data-structures/Hinkal/hinkalApprove.d.ts +2 -0
  145. package/data-structures/Hinkal/hinkalApprove.mjs +120 -0
  146. package/data-structures/Hinkal/hinkalCheckTokenRegistry.cjs +1 -0
  147. package/data-structures/Hinkal/hinkalCheckTokenRegistry.d.ts +3 -0
  148. package/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +12 -0
  149. package/data-structures/Hinkal/hinkalDeploySubAccount.cjs +1 -0
  150. package/data-structures/Hinkal/hinkalDeploySubAccount.d.ts +3 -0
  151. package/data-structures/Hinkal/hinkalDeploySubAccount.mjs +15 -0
  152. package/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
  153. package/data-structures/Hinkal/hinkalDeposit.d.ts +3 -2
  154. package/data-structures/Hinkal/hinkalDeposit.mjs +96 -71
  155. package/data-structures/Hinkal/hinkalGetRecipientInfo.cjs +1 -1
  156. package/data-structures/Hinkal/hinkalGetRecipientInfo.d.ts +1 -1
  157. package/data-structures/Hinkal/hinkalGetRecipientInfo.mjs +5 -11
  158. package/data-structures/Hinkal/hinkalGetZkMeProvider.cjs +1 -1
  159. package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +6 -18
  160. package/data-structures/Hinkal/hinkalInsideTransact.cjs +1 -0
  161. package/data-structures/Hinkal/hinkalInsideTransact.d.ts +2 -0
  162. package/data-structures/Hinkal/hinkalInsideTransact.mjs +111 -0
  163. package/data-structures/Hinkal/hinkalMultiSend.cjs +1 -0
  164. package/data-structures/Hinkal/hinkalMultiSend.d.ts +3 -0
  165. package/data-structures/Hinkal/hinkalMultiSend.mjs +13 -0
  166. package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
  167. package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +2 -1
  168. package/data-structures/Hinkal/hinkalPrivateWallet.mjs +83 -38
  169. package/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -0
  170. package/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +4 -0
  171. package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +46 -0
  172. package/data-structures/Hinkal/hinkalProxySwap.cjs +1 -0
  173. package/data-structures/Hinkal/hinkalProxySwap.d.ts +5 -0
  174. package/data-structures/Hinkal/hinkalProxySwap.mjs +36 -0
  175. package/data-structures/Hinkal/hinkalSignSubAccount.cjs +1 -0
  176. package/data-structures/Hinkal/hinkalSignSubAccount.d.ts +3 -0
  177. package/data-structures/Hinkal/hinkalSignSubAccount.mjs +20 -0
  178. package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
  179. package/data-structures/Hinkal/hinkalSwap.d.ts +2 -1
  180. package/data-structures/Hinkal/hinkalSwap.mjs +68 -60
  181. package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
  182. package/data-structures/Hinkal/hinkalWithdraw.d.ts +3 -1
  183. package/data-structures/Hinkal/hinkalWithdraw.mjs +76 -50
  184. package/data-structures/Hinkal/index.d.ts +1 -0
  185. package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
  186. package/data-structures/Hinkal/resetMerkleTrees.mjs +18 -11
  187. package/data-structures/IndexedDB/activity-db.cjs +1 -0
  188. package/data-structures/IndexedDB/activity-db.d.ts +16 -0
  189. package/data-structures/IndexedDB/activity-db.mjs +124 -0
  190. package/data-structures/IndexedDB/balances-db.cjs +1 -0
  191. package/data-structures/IndexedDB/balances-db.d.ts +13 -0
  192. package/data-structures/IndexedDB/balances-db.mjs +75 -0
  193. package/data-structures/IndexedDB/contact-db.cjs +1 -0
  194. package/data-structures/IndexedDB/contact-db.d.ts +11 -0
  195. package/data-structures/IndexedDB/contact-db.mjs +44 -0
  196. package/data-structures/IndexedDB/index.d.ts +5 -0
  197. package/data-structures/IndexedDB/prices-db.cjs +1 -0
  198. package/data-structures/IndexedDB/prices-db.d.ts +9 -0
  199. package/data-structures/IndexedDB/prices-db.mjs +62 -0
  200. package/data-structures/IndexedDB/private-balances-db.cjs +1 -0
  201. package/data-structures/IndexedDB/private-balances-db.d.ts +9 -0
  202. package/data-structures/IndexedDB/private-balances-db.mjs +28 -0
  203. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -1
  204. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +47 -44
  205. package/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -0
  206. package/data-structures/TokenDBs/PrivateTokensDB.d.ts +11 -0
  207. package/data-structures/TokenDBs/PrivateTokensDB.mjs +53 -0
  208. package/data-structures/TokenDBs/PublicTokensDB.cjs +1 -0
  209. package/data-structures/TokenDBs/PublicTokensDB.d.ts +13 -0
  210. package/data-structures/TokenDBs/PublicTokensDB.mjs +81 -0
  211. package/data-structures/TokenDBs/index.d.ts +2 -0
  212. package/data-structures/cacheDevices/AttachableMemoryCacheDevice.cjs +1 -0
  213. package/data-structures/cacheDevices/AttachableMemoryCacheDevice.d.ts +8 -0
  214. package/data-structures/cacheDevices/AttachableMemoryCacheDevice.mjs +28 -0
  215. package/data-structures/cacheDevices/BaseCacheDevice.cjs +1 -1
  216. package/data-structures/cacheDevices/BaseCacheDevice.d.ts +9 -6
  217. package/data-structures/cacheDevices/BaseCacheDevice.mjs +13 -4
  218. package/data-structures/cacheDevices/FileCacheDevice.cjs +1 -1
  219. package/data-structures/cacheDevices/FileCacheDevice.d.ts +1 -0
  220. package/data-structures/cacheDevices/FileCacheDevice.mjs +7 -3
  221. package/data-structures/cacheDevices/LocalStorageCacheDevice.cjs +1 -1
  222. package/data-structures/cacheDevices/LocalStorageCacheDevice.d.ts +2 -1
  223. package/data-structures/cacheDevices/LocalStorageCacheDevice.mjs +10 -5
  224. package/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
  225. package/data-structures/crypto-keys/decodeUTXO.mjs +13 -12
  226. package/data-structures/crypto-keys/keys.cjs +1 -1
  227. package/data-structures/crypto-keys/keys.d.ts +13 -3
  228. package/data-structures/crypto-keys/keys.mjs +45 -34
  229. package/data-structures/custom-token-registry/CustomTokenRegistry.cjs +1 -1
  230. package/data-structures/custom-token-registry/CustomTokenRegistry.d.ts +2 -3
  231. package/data-structures/custom-token-registry/CustomTokenRegistry.mjs +17 -21
  232. package/data-structures/event-service/AbstractAccessTokenSnapshotService.cjs +1 -1
  233. package/data-structures/event-service/AbstractAccessTokenSnapshotService.mjs +15 -29
  234. package/data-structures/event-service/AbstractApprovalsSnapshotService.cjs +1 -0
  235. package/data-structures/event-service/AbstractApprovalsSnapshotService.d.ts +30 -0
  236. package/data-structures/event-service/AbstractApprovalsSnapshotService.mjs +104 -0
  237. package/data-structures/event-service/AbstractCommitmentsSnapshotService.cjs +1 -1
  238. package/data-structures/event-service/AbstractCommitmentsSnapshotService.mjs +24 -37
  239. package/data-structures/event-service/AbstractEventService.cjs +1 -1
  240. package/data-structures/event-service/AbstractEventService.d.ts +1 -1
  241. package/data-structures/event-service/AbstractEventService.mjs +34 -46
  242. package/data-structures/event-service/index.d.ts +1 -0
  243. package/data-structures/index.d.ts +2 -0
  244. package/data-structures/merkle-tree/MerkleTree.cjs +1 -1
  245. package/data-structures/merkle-tree/MerkleTree.d.ts +4 -1
  246. package/data-structures/merkle-tree/MerkleTree.mjs +66 -65
  247. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs +1 -1
  248. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.d.ts +1 -1
  249. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs +10 -6
  250. package/data-structures/provider-adapter/IProviderAdapter.d.ts +2 -0
  251. package/data-structures/snapshot/ClientAccessTokenSnapshotService.cjs +1 -1
  252. package/data-structures/snapshot/ClientAccessTokenSnapshotService.mjs +6 -10
  253. package/data-structures/snapshot/ClientApprovalsSnapshotService.cjs +1 -0
  254. package/data-structures/snapshot/ClientApprovalsSnapshotService.d.ts +8 -0
  255. package/data-structures/snapshot/ClientApprovalsSnapshotService.mjs +23 -0
  256. package/data-structures/snapshot/ClientCommitmentsSnapshotService.cjs +1 -1
  257. package/data-structures/snapshot/ClientCommitmentsSnapshotService.mjs +6 -10
  258. package/data-structures/snapshot/ClientNullifierSnapshotService.cjs +1 -1
  259. package/data-structures/snapshot/ClientNullifierSnapshotService.mjs +6 -10
  260. package/data-structures/token-price-fetcher/TokenChecker.cjs +1 -1
  261. package/data-structures/token-price-fetcher/TokenChecker.d.ts +1 -0
  262. package/data-structures/token-price-fetcher/TokenChecker.mjs +4 -2
  263. package/data-structures/transactions-manager/TransactionsManager.cjs +1 -1
  264. package/data-structures/transactions-manager/TransactionsManager.d.ts +6 -5
  265. package/data-structures/transactions-manager/TransactionsManager.mjs +95 -100
  266. package/data-structures/transactions-manager/history/getBeefyData.cjs +1 -1
  267. package/data-structures/transactions-manager/history/getBeefyData.mjs +3 -2
  268. package/data-structures/transactions-manager/history/getConvexData.cjs +1 -1
  269. package/data-structures/transactions-manager/history/getConvexData.mjs +3 -2
  270. package/data-structures/transactions-manager/history/getCurveData.cjs +1 -1
  271. package/data-structures/transactions-manager/history/getCurveData.mjs +3 -2
  272. package/data-structures/transactions-manager/history/getLidoData.cjs +1 -1
  273. package/data-structures/transactions-manager/history/getLidoData.mjs +3 -2
  274. package/data-structures/transactions-manager/history/getPendleData.cjs +1 -1
  275. package/data-structures/transactions-manager/history/getPendleData.mjs +13 -12
  276. package/data-structures/transactions-manager/history/getTxDetails.cjs +1 -1
  277. package/data-structures/transactions-manager/history/getTxDetails.mjs +22 -20
  278. package/data-structures/transactions-manager/history/getVolatileData.cjs +1 -1
  279. package/data-structures/transactions-manager/history/getVolatileData.mjs +11 -10
  280. package/data-structures/transactions-manager/history/history.types.cjs +1 -1
  281. package/data-structures/transactions-manager/history/history.types.mjs +4 -2
  282. package/data-structures/utxo/Utxo.cjs +1 -1
  283. package/data-structures/utxo/Utxo.d.ts +3 -3
  284. package/data-structures/utxo/Utxo.mjs +8 -7
  285. package/error-handling/error-codes.constants.cjs +2 -2
  286. package/error-handling/error-codes.constants.d.ts +20 -3
  287. package/error-handling/error-codes.constants.mjs +139 -126
  288. package/error-handling/get-error.message.cjs +1 -1
  289. package/error-handling/get-error.message.mjs +29 -25
  290. package/error-handling/index.d.ts +1 -0
  291. package/error-handling/logger.cjs +1 -0
  292. package/error-handling/logger.d.ts +5 -0
  293. package/error-handling/logger.mjs +16 -0
  294. package/error-handling/types.cjs +1 -1
  295. package/error-handling/types.d.ts +3 -1
  296. package/error-handling/types.mjs +2 -2
  297. package/functions/pre-transaction/getExternalSwapAddress.cjs +1 -0
  298. package/functions/pre-transaction/getExternalSwapAddress.d.ts +3 -0
  299. package/functions/pre-transaction/getExternalSwapAddress.mjs +26 -0
  300. package/functions/pre-transaction/getFeeStructure.cjs +1 -0
  301. package/functions/pre-transaction/getFeeStructure.d.ts +4 -0
  302. package/functions/pre-transaction/getFeeStructure.mjs +30 -0
  303. package/functions/pre-transaction/getFlatFees.cjs +1 -1
  304. package/functions/pre-transaction/getFlatFees.d.ts +3 -7
  305. package/functions/pre-transaction/getFlatFees.mjs +52 -46
  306. package/functions/pre-transaction/getSignatureDataForTransact.cjs +1 -0
  307. package/functions/pre-transaction/getSignatureDataForTransact.d.ts +3 -0
  308. package/functions/pre-transaction/getSignatureDataForTransact.mjs +6 -0
  309. package/functions/pre-transaction/index.d.ts +1 -0
  310. package/functions/pre-transaction/interaction-to-action.cjs +1 -1
  311. package/functions/pre-transaction/interaction-to-action.mjs +3 -2
  312. package/functions/pre-transaction/merge-with-fee-structure.cjs +1 -0
  313. package/functions/pre-transaction/merge-with-fee-structure.d.ts +2 -0
  314. package/functions/pre-transaction/merge-with-fee-structure.mjs +25 -0
  315. package/functions/pre-transaction/outputApprovalDataProcessing.cjs +1 -0
  316. package/functions/pre-transaction/outputApprovalDataProcessing.d.ts +16 -0
  317. package/functions/pre-transaction/outputApprovalDataProcessing.mjs +42 -0
  318. package/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
  319. package/functions/pre-transaction/outputUtxoProcessing.d.ts +1 -1
  320. package/functions/pre-transaction/outputUtxoProcessing.mjs +19 -30
  321. package/functions/pre-transaction/process-gas-estimates.cjs +1 -1
  322. package/functions/pre-transaction/process-gas-estimates.d.ts +2 -2
  323. package/functions/pre-transaction/process-gas-estimates.mjs +17 -28
  324. package/functions/pre-transaction/processAmountChanges.cjs +1 -1
  325. package/functions/pre-transaction/processAmountChanges.mjs +34 -23
  326. package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.cjs +1 -0
  327. package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.d.ts +6 -0
  328. package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.mjs +7 -0
  329. package/functions/private-wallet/emporium.helpers.cjs +1 -1
  330. package/functions/private-wallet/emporium.helpers.d.ts +17 -4
  331. package/functions/private-wallet/emporium.helpers.mjs +119 -12
  332. package/functions/private-wallet/emporium.swap.helpers.cjs +1 -0
  333. package/functions/private-wallet/emporium.swap.helpers.d.ts +5 -0
  334. package/functions/private-wallet/emporium.swap.helpers.mjs +92 -0
  335. package/functions/private-wallet/index.d.ts +2 -0
  336. package/functions/private-wallet/opProducer.cjs +1 -1
  337. package/functions/private-wallet/opProducer.mjs +1 -1
  338. package/functions/private-wallet/smartContractWalletCalculator.cjs +1 -0
  339. package/functions/private-wallet/smartContractWalletCalculator.d.ts +5 -0
  340. package/functions/private-wallet/smartContractWalletCalculator.mjs +25 -0
  341. package/functions/protocols/convex.protocols.cjs +1 -1
  342. package/functions/protocols/convex.protocols.mjs +10 -8
  343. package/functions/protocols/pendle.helpers.cjs +1 -1
  344. package/functions/protocols/pendle.helpers.mjs +16 -12
  345. package/functions/snarkjs/common.snarkjs.cjs +1 -1
  346. package/functions/snarkjs/common.snarkjs.d.ts +8 -5
  347. package/functions/snarkjs/common.snarkjs.mjs +177 -87
  348. package/functions/snarkjs/constant.cjs +1 -1
  349. package/functions/snarkjs/constant.d.ts +223 -2
  350. package/functions/snarkjs/constant.mjs +313 -93
  351. package/functions/snarkjs/constructEmporiumProof.cjs +1 -1
  352. package/functions/snarkjs/constructEmporiumProof.d.ts +6 -3
  353. package/functions/snarkjs/constructEmporiumProof.mjs +148 -84
  354. package/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
  355. package/functions/snarkjs/constructGeneralZkProof.d.ts +5 -3
  356. package/functions/snarkjs/constructGeneralZkProof.mjs +141 -86
  357. package/functions/snarkjs/generateCircomData.cjs +1 -1
  358. package/functions/snarkjs/generateCircomData.d.ts +3 -2
  359. package/functions/snarkjs/generateCircomData.mjs +33 -35
  360. package/functions/snarkjs/generateZkProof.cjs +1 -1
  361. package/functions/snarkjs/generateZkProof.d.ts +2 -2
  362. package/functions/snarkjs/generateZkProof.mjs +4 -4
  363. package/functions/snarkjs/generateZkProofEnclave.cjs +1 -1
  364. package/functions/snarkjs/generateZkProofEnclave.d.ts +2 -1
  365. package/functions/snarkjs/generateZkProofEnclave.mjs +22 -29
  366. package/functions/snarkjs/generateZkProofSelf.cjs +1 -1
  367. package/functions/snarkjs/generateZkProofSelf.d.ts +2 -2
  368. package/functions/snarkjs/generateZkProofSelf.mjs +10 -10
  369. package/functions/snarkjs/getOriginalSender.cjs +1 -0
  370. package/functions/snarkjs/getOriginalSender.d.ts +1 -0
  371. package/functions/snarkjs/getOriginalSender.mjs +5 -0
  372. package/functions/snarkjs/getZKFiles.cjs +1 -1
  373. package/functions/snarkjs/getZKFiles.d.ts +3 -2
  374. package/functions/snarkjs/getZKFiles.mjs +14 -5
  375. package/functions/utils/addresses.cjs +1 -0
  376. package/functions/utils/addresses.d.ts +4 -0
  377. package/functions/utils/addresses.mjs +20 -0
  378. package/functions/utils/amounts.utils.cjs +1 -1
  379. package/functions/utils/amounts.utils.d.ts +4 -1
  380. package/functions/utils/amounts.utils.mjs +29 -27
  381. package/functions/utils/arraysMatch.cjs +1 -0
  382. package/functions/utils/arraysMatch.d.ts +1 -0
  383. package/functions/utils/arraysMatch.mjs +4 -0
  384. package/functions/utils/axelar.utils.cjs +1 -1
  385. package/functions/utils/axelar.utils.d.ts +1 -0
  386. package/functions/utils/axelar.utils.mjs +31 -9
  387. package/functions/utils/cacheDevice.utils.cjs +1 -1
  388. package/functions/utils/cacheDevice.utils.mjs +5 -3
  389. package/functions/utils/cacheFunctions.cjs +1 -1
  390. package/functions/utils/cacheFunctions.d.ts +10 -7
  391. package/functions/utils/cacheFunctions.mjs +62 -39
  392. package/functions/utils/convertEmporiumOpToCallInfo.cjs +1 -0
  393. package/functions/utils/convertEmporiumOpToCallInfo.d.ts +2 -0
  394. package/functions/utils/convertEmporiumOpToCallInfo.mjs +10 -0
  395. package/functions/utils/convertIntegrationProviderToExternalActionId.cjs +1 -1
  396. package/functions/utils/convertIntegrationProviderToExternalActionId.d.ts +2 -1
  397. package/functions/utils/convertIntegrationProviderToExternalActionId.mjs +7 -10
  398. package/functions/utils/encodeTokenWithId.cjs +1 -0
  399. package/functions/utils/encodeTokenWithId.d.ts +2 -0
  400. package/functions/utils/encodeTokenWithId.mjs +4 -0
  401. package/functions/utils/encryptInputForEnclave.cjs +1 -0
  402. package/functions/utils/encryptInputForEnclave.d.ts +8 -0
  403. package/functions/utils/encryptInputForEnclave.mjs +43 -0
  404. package/functions/utils/erc20tokenFunctions.cjs +1 -1
  405. package/functions/utils/erc20tokenFunctions.d.ts +8 -2
  406. package/functions/utils/erc20tokenFunctions.mjs +22 -14
  407. package/functions/utils/evmNetworkFunctions.cjs +1 -1
  408. package/functions/utils/evmNetworkFunctions.mjs +6 -4
  409. package/functions/utils/external-action.utils.d.ts +2 -2
  410. package/functions/utils/fees.utils.cjs +1 -0
  411. package/functions/utils/fees.utils.d.ts +2 -0
  412. package/functions/utils/fees.utils.mjs +14 -0
  413. package/functions/utils/getBlockExplorerUrl.cjs +1 -0
  414. package/functions/utils/getBlockExplorerUrl.d.ts +1 -0
  415. package/functions/utils/getBlockExplorerUrl.mjs +6 -0
  416. package/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -0
  417. package/functions/utils/getRecipientInfoFromUserKeys.d.ts +3 -0
  418. package/functions/utils/getRecipientInfoFromUserKeys.mjs +18 -0
  419. package/functions/utils/index.d.ts +12 -0
  420. package/functions/utils/involves-permit2-op.cjs +1 -0
  421. package/functions/utils/involves-permit2-op.d.ts +1 -0
  422. package/functions/utils/involves-permit2-op.mjs +5 -0
  423. package/functions/utils/merkleTree.utils.cjs +1 -0
  424. package/functions/utils/merkleTree.utils.d.ts +2 -0
  425. package/functions/utils/merkleTree.utils.mjs +19 -0
  426. package/functions/utils/prepareHinkal.d.ts +6 -0
  427. package/functions/utils/processUseApprovalUtxoData.cjs +1 -0
  428. package/functions/utils/processUseApprovalUtxoData.d.ts +3 -0
  429. package/functions/utils/processUseApprovalUtxoData.mjs +19 -0
  430. package/functions/utils/publicBalance.utils.cjs +1 -0
  431. package/functions/utils/publicBalance.utils.d.ts +5 -0
  432. package/functions/utils/publicBalance.utils.mjs +25 -0
  433. package/functions/utils/replaceAddressInCalldata.cjs +1 -0
  434. package/functions/utils/replaceAddressInCalldata.d.ts +1 -0
  435. package/functions/utils/replaceAddressInCalldata.mjs +7 -0
  436. package/functions/utils/rpc-int-encode.cjs +1 -0
  437. package/functions/utils/rpc-int-encode.d.ts +2 -0
  438. package/functions/utils/rpc-int-encode.mjs +8 -0
  439. package/functions/utils/serialize.utils.cjs +1 -1
  440. package/functions/utils/serialize.utils.d.ts +1 -0
  441. package/functions/utils/serialize.utils.mjs +3 -2
  442. package/functions/utils/string.utils.cjs +1 -1
  443. package/functions/utils/string.utils.d.ts +3 -0
  444. package/functions/utils/string.utils.mjs +31 -7
  445. package/functions/utils/time.utils.cjs +1 -1
  446. package/functions/utils/time.utils.d.ts +1 -0
  447. package/functions/utils/time.utils.mjs +4 -3
  448. package/functions/utils/token-check.utils.cjs +1 -0
  449. package/functions/utils/token-check.utils.d.ts +1 -0
  450. package/functions/utils/token-check.utils.mjs +10 -0
  451. package/functions/utils/upToDateState.cjs +1 -0
  452. package/functions/utils/upToDateState.d.ts +2 -0
  453. package/functions/utils/upToDateState.mjs +11 -0
  454. package/functions/web3/events/balanceChangedCustomHandler.cjs +1 -0
  455. package/functions/web3/events/balanceChangedCustomHandler.d.ts +2 -0
  456. package/functions/web3/events/balanceChangedCustomHandler.mjs +14 -0
  457. package/functions/web3/events/balanceChangedHandler.cjs +1 -1
  458. package/functions/web3/events/balanceChangedHandler.mjs +5 -4
  459. package/functions/web3/events/getApprovedBalance.cjs +1 -0
  460. package/functions/web3/events/getApprovedBalance.d.ts +7 -0
  461. package/functions/web3/events/getApprovedBalance.mjs +80 -0
  462. package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
  463. package/functions/web3/events/getInputUtxoAndBalance.d.ts +16 -3
  464. package/functions/web3/events/getInputUtxoAndBalance.mjs +128 -46
  465. package/functions/web3/events/getShieldedBalance.cjs +2 -2
  466. package/functions/web3/events/getShieldedBalance.d.ts +1 -1
  467. package/functions/web3/events/getShieldedBalance.mjs +79 -82
  468. package/functions/web3/events/index.d.ts +2 -0
  469. package/functions/web3/functionCalls/accessTokenCalls.cjs +1 -1
  470. package/functions/web3/functionCalls/accessTokenCalls.d.ts +2 -2
  471. package/functions/web3/functionCalls/accessTokenCalls.mjs +19 -17
  472. package/functions/web3/functionCalls/approveToken.cjs +1 -1
  473. package/functions/web3/functionCalls/approveToken.mjs +8 -7
  474. package/functions/web3/functionCalls/approveTokensToHinkal.cjs +1 -0
  475. package/functions/web3/functionCalls/approveTokensToHinkal.d.ts +4 -0
  476. package/functions/web3/functionCalls/approveTokensToHinkal.mjs +11 -0
  477. package/functions/web3/functionCalls/estimateGasRelayer.cjs +1 -1
  478. package/functions/web3/functionCalls/estimateGasRelayer.d.ts +2 -2
  479. package/functions/web3/functionCalls/estimateGasRelayer.mjs +14 -8
  480. package/functions/web3/functionCalls/inHinkalApprovalCalls.cjs +1 -0
  481. package/functions/web3/functionCalls/inHinkalApprovalCalls.d.ts +5 -0
  482. package/functions/web3/functionCalls/inHinkalApprovalCalls.mjs +32 -0
  483. package/functions/web3/functionCalls/relayFunctions.d.ts +1 -15
  484. package/functions/web3/functionCalls/transactCallDirect.cjs +1 -1
  485. package/functions/web3/functionCalls/transactCallDirect.d.ts +2 -2
  486. package/functions/web3/functionCalls/transactCallDirect.mjs +29 -42
  487. package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
  488. package/functions/web3/functionCalls/transactCallRelayer.d.ts +2 -2
  489. package/functions/web3/functionCalls/transactCallRelayer.mjs +26 -5
  490. package/functions/web3/odosAPI.cjs +1 -1
  491. package/functions/web3/odosAPI.mjs +6 -3
  492. package/functions/web3/oneInchAPI.cjs +1 -1
  493. package/functions/web3/oneInchAPI.mjs +6 -3
  494. package/functions/web3/runContractFunction.cjs +1 -1
  495. package/functions/web3/runContractFunction.mjs +3 -2
  496. package/functions/web3/uniswapAPI.cjs +1 -1
  497. package/functions/web3/uniswapAPI.mjs +6 -3
  498. package/index.cjs +1 -1
  499. package/index.mjs +756 -612
  500. package/package.json +6 -2
  501. package/providers/EthersProviderAdapter.cjs +1 -1
  502. package/providers/EthersProviderAdapter.d.ts +7 -3
  503. package/providers/EthersProviderAdapter.mjs +31 -11
  504. package/providers/WagmiProviderAdapter.cjs +1 -1
  505. package/providers/WagmiProviderAdapter.d.ts +3 -1
  506. package/providers/WagmiProviderAdapter.mjs +12 -4
  507. package/providers/prepareEthersHinkal.cjs +1 -1
  508. package/providers/prepareEthersHinkal.mjs +17 -11
  509. package/providers/prepareWagmiHinkal.cjs +1 -1
  510. package/providers/prepareWagmiHinkal.mjs +17 -11
  511. package/types/API.types.d.ts +21 -0
  512. package/types/ICacheDevice.d.ts +4 -3
  513. package/types/TransactionSimulator.types.d.ts +9 -0
  514. package/types/activities.types.cjs +1 -0
  515. package/types/activities.types.d.ts +45 -0
  516. package/types/activities.types.mjs +13 -0
  517. package/types/balances.types.cjs +1 -0
  518. package/types/balances.types.d.ts +17 -0
  519. package/types/balances.types.mjs +4 -0
  520. package/types/cache.types.cjs +1 -0
  521. package/types/cache.types.d.ts +27 -0
  522. package/types/cache.types.mjs +4 -0
  523. package/types/circom-data.types.d.ts +29 -9
  524. package/types/commitments.types.d.ts +6 -0
  525. package/types/contacts.types.d.ts +5 -0
  526. package/types/crypto.types.d.ts +1 -0
  527. package/types/earlyAccessCode.types.d.ts +4 -0
  528. package/types/ethereum-network.types.cjs +1 -1
  529. package/types/ethereum-network.types.d.ts +66 -62
  530. package/types/ethereum-network.types.mjs +1 -1
  531. package/types/external-action.types.cjs +1 -1
  532. package/types/external-action.types.d.ts +2 -1
  533. package/types/external-action.types.mjs +1 -1
  534. package/types/fee.types.d.ts +9 -0
  535. package/types/hinkal.types.cjs +1 -1
  536. package/types/hinkal.types.d.ts +43 -5
  537. package/types/hinkal.types.mjs +37 -13
  538. package/types/index.d.ts +9 -0
  539. package/types/rewards.types.cjs +1 -1
  540. package/types/rewards.types.d.ts +3 -4
  541. package/types/rewards.types.mjs +12 -12
  542. package/types/sandbox.types.cjs +1 -0
  543. package/types/sandbox.types.d.ts +157 -0
  544. package/types/sandbox.types.mjs +4 -0
  545. package/types/tenderly.api.types.d.ts +180 -0
  546. package/types/token-with-id.types.d.ts +4 -0
  547. package/types/token.types.d.ts +23 -0
  548. package/types/transactions.types.cjs +1 -1
  549. package/types/transactions.types.d.ts +31 -0
  550. package/types/transactions.types.mjs +8 -5
  551. package/types/wc.types.d.ts +89 -0
  552. package/types/with-id.types.d.ts +3 -0
  553. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.cjs +1 -1
  554. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.mjs +1 -1
  555. package/webworker/snarkjsWorker/snarkjsWorkerLogic.cjs +1 -1
  556. package/webworker/snarkjsWorker/snarkjsWorkerLogic.mjs +26 -31
  557. package/webworker/utxoWorker/utxoWorkerLauncher.cjs +1 -1
  558. package/webworker/utxoWorker/utxoWorkerLauncher.mjs +1 -1
  559. package/webworker/utxoWorker/utxoWorkerLogic.cjs +1 -1
  560. package/webworker/utxoWorker/utxoWorkerLogic.mjs +58 -50
  561. package/webworker/viteWorkerURL.constant.cjs +3 -3
  562. package/webworker/viteWorkerURL.constant.mjs +3 -3
  563. package/webworker/workerFactory.cjs +1 -1
  564. package/webworker/workerFactory.mjs +2 -2
  565. package/webworker/workerProxy.cjs +1 -1
  566. package/webworker/workerProxy.d.ts +11 -11
  567. package/webworker/workerProxy.mjs +24 -26
  568. package/webworker/zkProofWorker/zkProofWorker.types.d.ts +2 -0
  569. package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
  570. package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
  571. package/webworker/zkProofWorker/zkProofWorkerLogic.cjs +1 -1
  572. package/webworker/zkProofWorker/zkProofWorkerLogic.mjs +47 -61
  573. package/functions/utils/memoize.utils.cjs +0 -1
  574. package/functions/utils/memoize.utils.mjs +0 -14
@@ -0,0 +1,47 @@
1
+ import e from "axios";
2
+ const o = "7o1iPUgCIjLI0rSxj2yuz9-Z3052uUc4", r = "hinkal-org", c = "project", p = `https://api.tenderly.co/api/v1/account/${r}/project/${c}`, a = { "X-Access-Key": o }, i = async (s) => (await e.post(
3
+ `${p}/simulate`,
4
+ { ...s },
5
+ {
6
+ headers: a
7
+ }
8
+ )).data, n = "https://optimism.gateway.tenderly.co/2A3r4RCMoAZVmQOpNqRO29", d = async (s) => (await e.post(
9
+ n,
10
+ { jsonrpc: "2.0", id: 0, method: "tenderly_simulateTransaction", params: s.params },
11
+ {
12
+ headers: a
13
+ }
14
+ )).data, m = async (s) => (await e.post(
15
+ n,
16
+ { jsonrpc: "2.0", id: 0, method: "tenderly_simulateBundle", params: s.params },
17
+ { headers: a }
18
+ )).data, l = async (s, t) => (await e.post(
19
+ n,
20
+ {
21
+ jsonrpc: "2.0",
22
+ id: 0,
23
+ method: "tenderly_getStorageChanges",
24
+ params: [
25
+ {
26
+ address: s,
27
+ offset: t
28
+ }
29
+ ]
30
+ },
31
+ {
32
+ headers: a
33
+ }
34
+ )).data, h = {
35
+ rpcGetStorageChanges: l,
36
+ rpcSimulateTransaction: d,
37
+ rpcSimulateBundle: m,
38
+ simulateTx: i
39
+ };
40
+ export {
41
+ h as WALLET_API,
42
+ l as rpcGetStorageChanges,
43
+ m as rpcSimulateBundle,
44
+ d as rpcSimulateTransaction,
45
+ i as simulateTx,
46
+ n as tenderlyRpcLinkOptimism
47
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("axios"),o=require("../constants/server.constants.cjs"),n=require("./getServerURL.cjs"),s=async(e,t)=>(await r.post(`${n.getServerURL(e)}${o.API_CONFIG.ROUTES.getTokensInfo}`,{tokenAddresses:t})).data;exports.tokensInfoCall=s;
@@ -0,0 +1,2 @@
1
+ import { ERC20Token } from '../types';
2
+ export declare const tokensInfoCall: (chainId: number, tokenAddresses: string[]) => Promise<(ERC20Token | undefined)[]>;
@@ -0,0 +1,9 @@
1
+ import r from "axios";
2
+ import { API_CONFIG as e } from "../constants/server.constants.mjs";
3
+ import { getServerURL as a } from "./getServerURL.mjs";
4
+ const f = async (o, t) => (await r.post(`${a(o)}${e.ROUTES.getTokensInfo}`, {
5
+ tokenAddresses: t
6
+ })).data;
7
+ export {
8
+ f as tokensInfoCall
9
+ };
package/README.md CHANGED
@@ -74,67 +74,6 @@ function actionPrivateWallet(
74
74
 
75
75
  where onChainCreation indicates the amounts of tokens that are uncertain before the transaction is executed on-chain. The ops array contains encoded user operations.
76
76
 
77
- ##### User operations
78
-
79
- To generate user operations (`ops`) you will need the `emporiumOp` function.
80
- ```typescript
81
- import {emporiumOp} from "@hinkal/common";
82
- ```
83
-
84
- The function accepts the following arguments:
85
- 1. `endpoint` *(required)* - target address or contract instance (with address). The contract instance will be used to properly encode the call function, if any, in the custom operation.
86
- 2. `func` *(optional)* - the name of the function to be called on the target address.
87
- 3. `args` *(optional)* - arguments of the function to be called on the target address.
88
- 4. `invokeWallet` *(optional)* - bool flag that determines the type of transaction. There are two types: stateful and stateless interaction. The default is false (stateless).
89
- 5. `value` *(optional)* - the amount of native currency to transfer to the target address.
90
-
91
- The `emporiumOp` function will generate data for subsequent calls, supporting both stateful interaction (with state preservation) and stateless interaction (without state preservation). This is determined by the `invokeWallet` flag.
92
-
93
- To execute on a smart contract, the user operation will be received in the following format:
94
- ```solidity
95
- (address endpoint, bool invokeWallet, uint256 value, bytes data)
96
- ```
97
-
98
- This will make it possible to make that kind of call:
99
- ```solidity
100
- (bool success, bytes memory err) = endpoint.call{value: value}(data);
101
- ```
102
-
103
- ##### Stateless and stateful
104
-
105
- The best way to demonstrate how this works is with an example.
106
-
107
- **Stateless interaction**
108
-
109
- Let's say we need to exchange USDC for ETH using DEX.
110
-
111
- ```typescript
112
- const operations = [
113
- emporiumOp(usdcContractInstance, 'approve', [swapRouterAddress, amountIn]),
114
- emporiumOp(swapRouterContractInstance, 'exactInputSingle', [swapSingleParams]),
115
- emporiumOp(wethContractInstance, 'withdraw', [amountOut]),
116
- ];
117
- ```
118
-
119
- To perform a DEX swap, DEX does not need to know historical data about the calling party (e.g. when and what swaps have been performed from this account in the past). It only needs the current token balance for the exchange.
120
-
121
- In this case it will be **stateless interaction**, so there is no need to change the default value of the `invokeWallet` flag.
122
-
123
- **Stateful interaction**
124
-
125
- Another example is when the protocol with which an account interacts needs to know what actions this account has done before, for example, to gain rewards. In this case, some account state will be required.
126
-
127
- Let's imagine that you already have Curve LP tokens and need to make a stake.
128
-
129
- ```solidity
130
- const operations = [
131
- emporiumOp(lpTokenInstance, 'approve', [gaugeAddressInstance, amount]), // without flag, because is's stateless interaction
132
- emporiumOp(gaugeAddressInstance, 'deposit', [amount, invokeWalletAddress], true), // with flag, because it's stateful interaction
133
- ];
134
- ```
135
-
136
- As you can see, in this case `approve` is a stateless interaction, but `deposit` is a stateful interaction, because under the hood Curve will record this address and timestamp in order to calculate the checkpoint correctly in the future.
137
-
138
77
  ### Access Tokens
139
78
 
140
79
  Before interacting with Hinkal smart contracts, users need to mint an access token after passing compliance checks.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../types/circom-data.types.cjs");const n=require("../types/external-action.types.cjs");require("./vite.constants.cjs");require("../types/transactions.types.cjs");require("../types/curve.types.cjs");require("../types/activities.types.cjs");const a=require("./chains.constants.cjs"),e="0x270B7748CdF8243bFe68FaCE7230ef0fCE695389",E="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",d={[n.ExternalActionId.Uniswap]:{[a.chainIds.ethMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.polygon]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.optimism]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.arbMainnet]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.bnbMainnet]:"0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2",[a.chainIds.avalanche]:"0xbb00FF08d01D300023C629E8fFfFcb65A5a578cE",[a.chainIds.base]:"0x2626664c2603336E57B271c5C0b26F421741e481"},[n.ExternalActionId.Odos]:{[a.chainIds.ethMainnet]:"0xCf5540fFFCdC3d510B18bFcA6d2b9987b0772559",[a.chainIds.polygon]:"0x4E3288c9ca110bCC82bf38F09A7b425c095d92Bf",[a.chainIds.optimism]:"0xCa423977156BB05b13A2BA3b76Bc5419E2fE9680",[a.chainIds.arbMainnet]:"0xa669e7A0d4b3e4Fa48af2dE86BD4CD7126Be4e13",[a.chainIds.bnbMainnet]:"0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E",[a.chainIds.avalanche]:"0x88de50B233052e4Fb783d4F6db78Cc34fEa3e9FC",[a.chainIds.base]:"0x19cEeAd7105607Cd444F5ad10dd51356436095a1"},[n.ExternalActionId.OneInch]:{[a.chainIds.ethMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.polygon]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.optimism]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.arbMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.bnbMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.avalanche]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.base]:"0x1111111254EEB25477B68fb85Ed929f73A960582"}},c={[a.chainIds.ethMainnet]:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",[a.chainIds.polygon]:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",[a.chainIds.optimism]:"0x4200000000000000000000000000000000000006",[a.chainIds.arbMainnet]:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",[a.chainIds.bnbMainnet]:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",[a.chainIds.avalanche]:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",[a.chainIds.base]:"0x4200000000000000000000000000000000000006"};exports.HETH_ERC20_TOKEN_ADDRESS=e;exports.NATIVE_TOKEN_WRAPPER_ADDRESSES=c;exports.SWAP_ROUTER_ADDRESSES=d;exports.WETH_ERC20_TOKEN_ADDRESS=E;
@@ -0,0 +1,16 @@
1
+ export declare const HETH_ERC20_TOKEN_ADDRESS = "0x270B7748CdF8243bFe68FaCE7230ef0fCE695389";
2
+ export declare const WETH_ERC20_TOKEN_ADDRESS = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
3
+ export declare const SWAP_ROUTER_ADDRESSES: {
4
+ Uniswap: {
5
+ [x: number]: string;
6
+ };
7
+ Odos: {
8
+ [x: number]: string;
9
+ };
10
+ OneInch: {
11
+ [x: number]: string;
12
+ };
13
+ };
14
+ export declare const NATIVE_TOKEN_WRAPPER_ADDRESSES: {
15
+ [x: number]: string;
16
+ };
@@ -0,0 +1,50 @@
1
+ import "../types/circom-data.types.mjs";
2
+ import { ExternalActionId as E } from "../types/external-action.types.mjs";
3
+ import "./vite.constants.mjs";
4
+ import "../types/transactions.types.mjs";
5
+ import "../types/curve.types.mjs";
6
+ import "../types/activities.types.mjs";
7
+ import { chainIds as b } from "./chains.constants.mjs";
8
+ const t = "0x270B7748CdF8243bFe68FaCE7230ef0fCE695389", B = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", C = {
9
+ [E.Uniswap]: {
10
+ [b.ethMainnet]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
11
+ [b.polygon]: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
12
+ [b.optimism]: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
13
+ [b.arbMainnet]: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
14
+ [b.bnbMainnet]: "0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2",
15
+ [b.avalanche]: "0xbb00FF08d01D300023C629E8fFfFcb65A5a578cE",
16
+ [b.base]: "0x2626664c2603336E57B271c5C0b26F421741e481"
17
+ },
18
+ [E.Odos]: {
19
+ [b.ethMainnet]: "0xCf5540fFFCdC3d510B18bFcA6d2b9987b0772559",
20
+ [b.polygon]: "0x4E3288c9ca110bCC82bf38F09A7b425c095d92Bf",
21
+ [b.optimism]: "0xCa423977156BB05b13A2BA3b76Bc5419E2fE9680",
22
+ [b.arbMainnet]: "0xa669e7A0d4b3e4Fa48af2dE86BD4CD7126Be4e13",
23
+ [b.bnbMainnet]: "0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E",
24
+ [b.avalanche]: "0x88de50B233052e4Fb783d4F6db78Cc34fEa3e9FC",
25
+ [b.base]: "0x19cEeAd7105607Cd444F5ad10dd51356436095a1"
26
+ },
27
+ [E.OneInch]: {
28
+ [b.ethMainnet]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
29
+ [b.polygon]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
30
+ [b.optimism]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
31
+ [b.arbMainnet]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
32
+ [b.bnbMainnet]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
33
+ [b.avalanche]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
34
+ [b.base]: "0x1111111254EEB25477B68fb85Ed929f73A960582"
35
+ }
36
+ }, F = {
37
+ [b.ethMainnet]: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
38
+ [b.polygon]: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
39
+ [b.optimism]: "0x4200000000000000000000000000000000000006",
40
+ [b.arbMainnet]: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
41
+ [b.bnbMainnet]: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
42
+ [b.avalanche]: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
43
+ [b.base]: "0x4200000000000000000000000000000000000006"
44
+ };
45
+ export {
46
+ t as HETH_ERC20_TOKEN_ADDRESS,
47
+ F as NATIVE_TOKEN_WRAPPER_ADDRESSES,
48
+ C as SWAP_ROUTER_ADDRESSES,
49
+ B as WETH_ERC20_TOKEN_ADDRESS
50
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s="https://hinkal-s3-assets.s3.us-west-1.amazonaws.com/assets/",t={CHEVRON:`${s}Chevron.svg`,MOON:`${s}Moon.svg`,SUN:`${s}Sun.svg`,ARROW_LEFT:`${s}ArrowLeft.svg`,AUTHENTO_LIGHT:`${s}AuthentoLogoLight.png`,AUTHENTO_DARK:`${s}AuthentoLogoDark.png`,KING:`${s}King.svg`,CIRCLE_STRIKETHROUGH:`${s}CircleStrikethrough.svg`,RIGHT_SQUARE:`${s}RightSquare.svg`,COINBASE_DARK:`${s}CoinbaseDark.png`,COINBASE_LIGHT:`${s}CoinbaseLight.png`};exports.IMAGE_PATHS=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="https://d1nvbznp963lfd.cloudfront.net/assets/",o={CHEVRON:`${t}Chevron.svg`,MOON:`${t}Moon.svg`,SUN:`${t}Sun.svg`,ARROW_LEFT:`${t}ArrowLeft.svg`,AUTHENTO_LIGHT:`${t}AuthentoLogoLight.png`,AUTHENTO_DARK:`${t}AuthentoLogoDark.png`,KING:`${t}King.svg`,CIRCLE_STRIKETHROUGH:`${t}CircleStrikethrough.svg`,RIGHT_SQUARE:`${t}RightSquare.svg`,COINBASE_DARK:`${t}CoinbaseDark.png`,COINBASE_LIGHT:`${t}CoinbaseLight.png`};exports.IMAGE_PATHS=o;
@@ -1,16 +1,16 @@
1
- const s = "https://hinkal-s3-assets.s3.us-west-1.amazonaws.com/assets/", g = {
2
- CHEVRON: `${s}Chevron.svg`,
3
- MOON: `${s}Moon.svg`,
4
- SUN: `${s}Sun.svg`,
5
- ARROW_LEFT: `${s}ArrowLeft.svg`,
6
- AUTHENTO_LIGHT: `${s}AuthentoLogoLight.png`,
7
- AUTHENTO_DARK: `${s}AuthentoLogoDark.png`,
8
- KING: `${s}King.svg`,
9
- CIRCLE_STRIKETHROUGH: `${s}CircleStrikethrough.svg`,
10
- RIGHT_SQUARE: `${s}RightSquare.svg`,
11
- COINBASE_DARK: `${s}CoinbaseDark.png`,
12
- COINBASE_LIGHT: `${s}CoinbaseLight.png`
1
+ const g = "https://d1nvbznp963lfd.cloudfront.net/assets/", n = {
2
+ CHEVRON: `${g}Chevron.svg`,
3
+ MOON: `${g}Moon.svg`,
4
+ SUN: `${g}Sun.svg`,
5
+ ARROW_LEFT: `${g}ArrowLeft.svg`,
6
+ AUTHENTO_LIGHT: `${g}AuthentoLogoLight.png`,
7
+ AUTHENTO_DARK: `${g}AuthentoLogoDark.png`,
8
+ KING: `${g}King.svg`,
9
+ CIRCLE_STRIKETHROUGH: `${g}CircleStrikethrough.svg`,
10
+ RIGHT_SQUARE: `${g}RightSquare.svg`,
11
+ COINBASE_DARK: `${g}CoinbaseDark.png`,
12
+ COINBASE_LIGHT: `${g}CoinbaseLight.png`
13
13
  };
14
14
  export {
15
- g as IMAGE_PATHS
15
+ n as IMAGE_PATHS
16
16
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chains.constants.cjs"),s=require("./deploy-data/deploy-data-bnbMainnet.json.cjs"),a=require("./deploy-data/deploy-data-arbMainnet.json.cjs"),n=require("./deploy-data/deploy-data-ethMainnet.json.cjs"),c=require("./deploy-data/deploy-data-optimism.json.cjs"),r=require("./deploy-data/deploy-data-polygon.json.cjs"),d=require("./deploy-data/deploy-data-avalanche.json.cjs"),o=require("./deploy-data/deploy-data-base.json.cjs"),i=[{chainId:e.chainIds.ethMainnet,sourceChain:"Ethereum",sourceAddress:n.default.crossChainAccessTokenAddress},{chainId:e.chainIds.arbMainnet,sourceChain:"arbitrum",sourceAddress:a.default.crossChainAccessTokenAddress},{chainId:e.chainIds.polygon,sourceChain:"Polygon",sourceAddress:r.default.crossChainAccessTokenAddress},{chainId:e.chainIds.avalanche,sourceChain:"Avalanche",sourceAddress:d.default.crossChainAccessTokenAddress},{chainId:e.chainIds.bnbMainnet,sourceChain:"binance",sourceAddress:s.default.crossChainAccessTokenAddress},{chainId:e.chainIds.optimism,sourceChain:"optimism",sourceAddress:c.default.crossChainAccessTokenAddress},{chainId:e.chainIds.base,sourceChain:"base",sourceAddress:o.default.crossChainAccessTokenAddress}];exports.AxelarRegistry=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chains.constants.cjs"),s=require("./deploy-data/deploy-data-bnbMainnet.json.cjs"),a=require("./deploy-data/deploy-data-arbMainnet.json.cjs"),n=require("./deploy-data/deploy-data-ethMainnet.json.cjs"),c=require("./deploy-data/deploy-data-optimism.json.cjs"),r=require("./deploy-data/deploy-data-polygon.json.cjs"),d=require("./deploy-data/deploy-data-avalanche.json.cjs"),o=require("./deploy-data/deploy-data-base.json.cjs"),i=[{chainId:e.chainIds.ethMainnet,sourceChain:"Ethereum",sourceAddress:n.default.crossChainAccessTokenAddress},{chainId:e.chainIds.arbMainnet,sourceChain:"arbitrum",sourceAddress:a.default.crossChainAccessTokenAddress},{chainId:e.chainIds.polygon,sourceChain:"Polygon",sourceAddress:r.default.crossChainAccessTokenAddress},{chainId:e.chainIds.avalanche,sourceChain:"Avalanche",sourceAddress:d.default.crossChainAccessTokenAddress},{chainId:e.chainIds.bnbMainnet,sourceChain:"binance",sourceAddress:s.default.crossChainAccessTokenAddress},{chainId:e.chainIds.optimism,sourceChain:"optimism",sourceAddress:c.default.accessTokenAddress},{chainId:e.chainIds.base,sourceChain:"base",sourceAddress:o.default.crossChainAccessTokenAddress}];exports.AxelarRegistry=i;
@@ -1,7 +1,7 @@
1
1
  import { chainIds as s } from "./chains.constants.mjs";
2
2
  import e from "./deploy-data/deploy-data-bnbMainnet.json.mjs";
3
- import r from "./deploy-data/deploy-data-arbMainnet.json.mjs";
4
- import a from "./deploy-data/deploy-data-ethMainnet.json.mjs";
3
+ import a from "./deploy-data/deploy-data-arbMainnet.json.mjs";
4
+ import r from "./deploy-data/deploy-data-ethMainnet.json.mjs";
5
5
  import o from "./deploy-data/deploy-data-optimism.json.mjs";
6
6
  import n from "./deploy-data/deploy-data-polygon.json.mjs";
7
7
  import c from "./deploy-data/deploy-data-avalanche.json.mjs";
@@ -10,12 +10,12 @@ const b = [
10
10
  {
11
11
  chainId: s.ethMainnet,
12
12
  sourceChain: "Ethereum",
13
- sourceAddress: a.crossChainAccessTokenAddress
13
+ sourceAddress: r.crossChainAccessTokenAddress
14
14
  },
15
15
  {
16
16
  chainId: s.arbMainnet,
17
17
  sourceChain: "arbitrum",
18
- sourceAddress: r.crossChainAccessTokenAddress
18
+ sourceAddress: a.crossChainAccessTokenAddress
19
19
  },
20
20
  {
21
21
  chainId: s.polygon,
@@ -35,7 +35,7 @@ const b = [
35
35
  {
36
36
  chainId: s.optimism,
37
37
  sourceChain: "optimism",
38
- sourceAddress: o.crossChainAccessTokenAddress
38
+ sourceAddress: o.accessTokenAddress
39
39
  },
40
40
  {
41
41
  chainId: s.base,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=6;exports.MAX_DISPLAY_DECIMALS=e;
@@ -0,0 +1 @@
1
+ export declare const MAX_DISPLAY_DECIMALS = 6;
@@ -0,0 +1,4 @@
1
+ const A = 6;
2
+ export {
3
+ A as MAX_DISPLAY_DECIMALS
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./deploy-data/deploy-data-bnbMainnet.json.cjs"),l=require("./deploy-data/deploy-data-arbMainnet.json.cjs"),d=require("./deploy-data/deploy-data-ethMainnet.json.cjs"),h=require("./deploy-data/deploy-data-optimism.json.cjs"),u=require("./deploy-data/deploy-data-polygon.json.cjs"),m=require("./deploy-data/deploy-data-avalanche.json.cjs"),b=require("./deploy-data/deploy-data-base.json.cjs"),F=require("./deploy-data/deploy-data-localhost.json.cjs"),y=require("./deploy-data/deploy-data-axelar1.json.cjs"),g=require("./deploy-data/deploy-data-axelar2.json.cjs"),s=require("./vite.constants.cjs"),e={polygon:137,arbMainnet:42161,ethMainnet:1,avalanche:43114,bnbMainnet:56,optimism:10,base:8453,bnbTestnet:97,polygonMumbai:80001,mainnetSepolia:11155111,optimismSepolia:11155420,axelar1:2500,axelar2:2501,localhost:31337,hardhat:31337},n=e.ethMainnet,r=t=>!![e.axelar1,e.axelar2,e.localhost].includes(t),k=t=>t?r(t)?n:t:n,a={[e.ethMainnet]:{name:"Ethereum",chainId:e.ethMainnet,rpcUrl:"https://rpc.ankr.com/eth",fetchRpcUrl:"https://eth-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:d.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",accessTokenMintingFee:"0",priority:1,privateMempoolRpcUrl:"https://relay.flashbots.net"},[e.arbMainnet]:{name:"Arbitrum",chainId:e.arbMainnet,rpcUrl:"https://endpoints.omniatech.io/v1/arbitrum/one/public",fetchRpcUrl:"https://arb-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:l.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",accessTokenMintingFee:"0",priority:2},[e.optimism]:{name:"Optimism",chainId:e.optimism,rpcUrl:"https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",fetchRpcUrl:"https://opt-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:h.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",accessTokenMintingFee:"0",priority:3},[e.polygon]:{name:"Polygon",chainId:e.polygon,rpcUrl:"https://polygon-rpc.com",fetchRpcUrl:"https://polygon-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:u.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",accessTokenMintingFee:"0",priority:4},[e.avalanche]:{name:"Avalanche",chainId:e.avalanche,rpcUrl:"https://api.avax.network/ext/bc/C/rpc",fetchRpcUrl:"https://avax-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:m.default,quoterV2Address:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",uniswapV3FactoryAddress:"0x740b1c1de25031C31FF4fC9A62f554A55cdC1baD",accessTokenMintingFee:"0",priority:5},[e.bnbMainnet]:{name:"BNB Chain",chainId:e.bnbMainnet,rpcUrl:"https://bsc-dataseed.binance.org",fetchRpcUrl:"https://bnb-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:p.default,quoterV2Address:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",uniswapV3FactoryAddress:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",accessTokenMintingFee:"0",priority:6},[e.base]:{name:"Base",chainId:e.base,rpcUrl:"https://mainnet.base.org/",fetchRpcUrl:"https://base-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:b.default,quoterV2Address:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",uniswapV3FactoryAddress:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",accessTokenMintingFee:"0",priority:7},...s.isDevelopment?{}:{}},A={name:"Localhost",chainId:e.localhost,rpcUrl:"http://127.0.0.1:8545",fetchRpcUrl:"http://127.0.0.1:8545",supported:!0,contractData:F.default,quoterV2Address:a[n].quoterV2Address,uniswapV3FactoryAddress:a[n].uniswapV3FactoryAddress,accessTokenMintingFee:a[n].accessTokenMintingFee,priority:7},f={name:"axelar1",chainId:e.axelar1,rpcUrl:"http://localhost:8600/0",fetchRpcUrl:"http://localhost:8600/0",supported:!0,contractData:y.default,quoterV2Address:a[n].quoterV2Address,uniswapV3FactoryAddress:a[n].uniswapV3FactoryAddress,accessTokenMintingFee:a[n].accessTokenMintingFee,priority:8},D={name:"axelar2",chainId:e.axelar2,rpcUrl:"http://localhost:8600/1",fetchRpcUrl:"http://localhost:8600/1",supported:!0,contractData:g.default,quoterV2Address:a[n].quoterV2Address,uniswapV3FactoryAddress:a[n].uniswapV3FactoryAddress,accessTokenMintingFee:a[n].accessTokenMintingFee,priority:9};s.isDevelopment&&(a[e.localhost]=A,a[e.axelar1]=f,a[e.axelar2]=D);const U=[e.ethMainnet,e.arbMainnet,e.avalanche,e.bnbMainnet,e.polygon,e.optimism,e.base];var o=(t=>(t.Mainnet="Mainnet",t.Testnet="Testnet",t.Local="Local",t))(o||{});const M={Mainnet:[e.polygon,e.arbMainnet,e.ethMainnet,e.bnbMainnet,e.optimism,e.avalanche,e.base],Testnet:[e.bnbTestnet,e.polygonMumbai],Local:[e.localhost,e.axelar1,e.axelar2]},c=t=>[e.optimism,e.base].includes(t),i=t=>!1,x=t=>c(t)||i();exports.EthereumNetworkType=o;exports.chainIds=e;exports.chainIdsByType=M;exports.crossChainAccessTokenNetworks=U;exports.getNonLocalhostChainId=k;exports.isLocalNetwork=r;exports.isOptimismBedrockLike=i;exports.isOptimismEcotoneLike=c;exports.isOptimismLike=x;exports.localhostNetwork=n;exports.networkRegistry=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./deploy-data/deploy-data-bnbMainnet.json.cjs"),i=require("./deploy-data/deploy-data-arbMainnet.json.cjs"),p=require("./deploy-data/deploy-data-ethMainnet.json.cjs"),l=require("./deploy-data/deploy-data-optimism.json.cjs"),d=require("./deploy-data/deploy-data-polygon.json.cjs"),h=require("./deploy-data/deploy-data-avalanche.json.cjs"),u=require("./deploy-data/deploy-data-base.json.cjs"),m=require("./deploy-data/deploy-data-localhost.json.cjs"),b=require("./deploy-data/deploy-data-axelar1.json.cjs"),y=require("./deploy-data/deploy-data-axelar2.json.cjs"),n=require("./vite.constants.cjs"),t={polygon:137,arbMainnet:42161,ethMainnet:1,avalanche:43114,bnbMainnet:56,optimism:10,base:8453,bnbTestnet:97,polygonMumbai:80001,mainnetSepolia:11155111,optimismSepolia:11155420,axelar1:2500,axelar2:2501,localhost:31337,hardhat:31337},r=t.ethMainnet,o=e=>!![t.axelar1,t.axelar2,t.localhost].includes(e),F=e=>e?o(e)?r:e:r,a={[t.ethMainnet]:{name:"Ethereum",chainId:t.ethMainnet,rpcUrl:"https://rpc.ankr.com/eth",fetchRpcUrl:"https://eth-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:p.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:1,privateMempoolRpcUrl:"https://relay.flashbots.net"},[t.arbMainnet]:{name:"Arbitrum",chainId:t.arbMainnet,rpcUrl:"https://endpoints.omniatech.io/v1/arbitrum/one/public",fetchRpcUrl:"https://arb-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:i.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:2},[t.optimism]:{name:"Optimism",chainId:t.optimism,rpcUrl:"https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",fetchRpcUrl:"https://opt-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:l.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:3},[t.polygon]:{name:"Polygon",chainId:t.polygon,rpcUrl:"https://polygon-rpc.com",fetchRpcUrl:"https://polygon-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:d.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:4},[t.avalanche]:{name:"Avalanche",chainId:t.avalanche,rpcUrl:"https://api.avax.network/ext/bc/C/rpc",fetchRpcUrl:"https://avax-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:h.default,quoterV2Address:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",uniswapV3FactoryAddress:"0x740b1c1de25031C31FF4fC9A62f554A55cdC1baD",priority:5},[t.bnbMainnet]:{name:"BNB Chain",chainId:t.bnbMainnet,rpcUrl:"https://bsc-dataseed.binance.org",fetchRpcUrl:"https://bnb-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:c.default,quoterV2Address:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",uniswapV3FactoryAddress:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",priority:6},[t.base]:{name:"Base",chainId:t.base,rpcUrl:"https://mainnet.base.org/",fetchRpcUrl:"https://base-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:u.default,quoterV2Address:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",uniswapV3FactoryAddress:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",priority:7},...n.isDevelopment?{}:{}},A={name:"Localhost",chainId:t.localhost,rpcUrl:"http://127.0.0.1:8545",fetchRpcUrl:"http://127.0.0.1:8545",supported:!0,contractData:m.default,quoterV2Address:a[r].quoterV2Address,uniswapV3FactoryAddress:a[r].uniswapV3FactoryAddress,priority:7},f={name:"axelar1",chainId:t.axelar1,rpcUrl:"http://localhost:8600/0",fetchRpcUrl:"http://localhost:8600/0",supported:!0,contractData:b.default,quoterV2Address:a[r].quoterV2Address,uniswapV3FactoryAddress:a[r].uniswapV3FactoryAddress,priority:8},D={name:"axelar2",chainId:t.axelar2,rpcUrl:"http://localhost:8600/1",fetchRpcUrl:"http://localhost:8600/1",supported:!0,contractData:y.default,quoterV2Address:a[r].quoterV2Address,uniswapV3FactoryAddress:a[r].uniswapV3FactoryAddress,priority:9};n.isDevelopment&&(a[t.localhost]=A,a[t.axelar1]=f,a[t.axelar2]=D);const U=[t.ethMainnet,t.arbMainnet,t.avalanche,t.bnbMainnet,t.polygon,t.optimism,t.base];var s=(e=>(e.Mainnet="Mainnet",e.Testnet="Testnet",e.Local="Local",e))(s||{});const g={Mainnet:[t.polygon,t.arbMainnet,t.ethMainnet,t.bnbMainnet,t.optimism,t.avalanche,t.base],Testnet:[t.bnbTestnet,t.polygonMumbai],Local:[t.localhost,t.axelar1,t.axelar2]},x=e=>[t.optimism,t.base].includes(e);exports.EthereumNetworkType=s;exports.chainIds=t;exports.chainIdsByType=g;exports.crossChainAccessTokenNetworks=U;exports.getNonLocalhostChainId=F;exports.isLocalNetwork=o;exports.isOptimismLike=x;exports.localhostNetwork=r;exports.networkRegistry=a;
@@ -31,6 +31,4 @@ export declare const chainIdsByType: {
31
31
  Testnet: number[];
32
32
  Local: number[];
33
33
  };
34
- export declare const isOptimismEcotoneLike: (chainId: number) => boolean;
35
- export declare const isOptimismBedrockLike: (_chainId: number) => boolean;
36
34
  export declare const isOptimismLike: (chainId: number) => boolean;
@@ -1,4 +1,4 @@
1
- import o from "./deploy-data/deploy-data-bnbMainnet.json.mjs";
1
+ import n from "./deploy-data/deploy-data-bnbMainnet.json.mjs";
2
2
  import s from "./deploy-data/deploy-data-arbMainnet.json.mjs";
3
3
  import c from "./deploy-data/deploy-data-ethMainnet.json.mjs";
4
4
  import i from "./deploy-data/deploy-data-optimism.json.mjs";
@@ -8,7 +8,7 @@ import d from "./deploy-data/deploy-data-base.json.mjs";
8
8
  import m from "./deploy-data/deploy-data-localhost.json.mjs";
9
9
  import h from "./deploy-data/deploy-data-axelar1.json.mjs";
10
10
  import b from "./deploy-data/deploy-data-axelar2.json.mjs";
11
- import { isDevelopment as r } from "./vite.constants.mjs";
11
+ import { isDevelopment as o } from "./vite.constants.mjs";
12
12
  const t = {
13
13
  polygon: 137,
14
14
  arbMainnet: 42161,
@@ -25,7 +25,7 @@ const t = {
25
25
  axelar2: 2501,
26
26
  localhost: 31337,
27
27
  hardhat: 31337
28
- }, n = t.ethMainnet, F = (a) => !![t.axelar1, t.axelar2, t.localhost].includes(a), z = (a) => a ? F(a) ? n : a : n, e = {
28
+ }, r = t.ethMainnet, u = (a) => !![t.axelar1, t.axelar2, t.localhost].includes(a), B = (a) => a ? u(a) ? r : a : r, e = {
29
29
  [t.ethMainnet]: {
30
30
  name: "Ethereum",
31
31
  chainId: t.ethMainnet,
@@ -35,7 +35,6 @@ const t = {
35
35
  contractData: c,
36
36
  quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
37
37
  uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
38
- accessTokenMintingFee: "0",
39
38
  priority: 1,
40
39
  privateMempoolRpcUrl: "https://relay.flashbots.net"
41
40
  },
@@ -48,7 +47,6 @@ const t = {
48
47
  contractData: s,
49
48
  quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
50
49
  uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
51
- accessTokenMintingFee: "0",
52
50
  priority: 2
53
51
  },
54
52
  [t.optimism]: {
@@ -60,7 +58,6 @@ const t = {
60
58
  contractData: i,
61
59
  quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
62
60
  uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
63
- accessTokenMintingFee: "0",
64
61
  priority: 3
65
62
  },
66
63
  [t.polygon]: {
@@ -72,7 +69,6 @@ const t = {
72
69
  contractData: p,
73
70
  quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
74
71
  uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
75
- accessTokenMintingFee: "0",
76
72
  priority: 4
77
73
  },
78
74
  [t.avalanche]: {
@@ -84,7 +80,6 @@ const t = {
84
80
  contractData: l,
85
81
  quoterV2Address: "0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",
86
82
  uniswapV3FactoryAddress: "0x740b1c1de25031C31FF4fC9A62f554A55cdC1baD",
87
- accessTokenMintingFee: "0",
88
83
  priority: 5
89
84
  },
90
85
  [t.bnbMainnet]: {
@@ -94,10 +89,9 @@ const t = {
94
89
  // maxPageSize: 1000,
95
90
  fetchRpcUrl: "https://bnb-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",
96
91
  supported: !0,
97
- contractData: o,
92
+ contractData: n,
98
93
  quoterV2Address: "0x78D78E420Da98ad378D7799bE8f4AF69033EB077",
99
94
  uniswapV3FactoryAddress: "0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",
100
- accessTokenMintingFee: "0",
101
95
  priority: 6
102
96
  },
103
97
  [t.base]: {
@@ -110,46 +104,42 @@ const t = {
110
104
  contractData: d,
111
105
  quoterV2Address: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
112
106
  uniswapV3FactoryAddress: "0x33128a8fC17869897dcE68Ed026d694621f6FDfD",
113
- accessTokenMintingFee: "0",
114
107
  priority: 7
115
108
  },
116
- ...r ? {} : {}
117
- }, u = {
109
+ ...o ? {} : {}
110
+ }, F = {
118
111
  name: "Localhost",
119
112
  chainId: t.localhost,
120
113
  rpcUrl: "http://127.0.0.1:8545",
121
114
  fetchRpcUrl: "http://127.0.0.1:8545",
122
115
  supported: !0,
123
116
  contractData: m,
124
- quoterV2Address: e[n].quoterV2Address,
125
- uniswapV3FactoryAddress: e[n].uniswapV3FactoryAddress,
126
- accessTokenMintingFee: e[n].accessTokenMintingFee,
117
+ quoterV2Address: e[r].quoterV2Address,
118
+ uniswapV3FactoryAddress: e[r].uniswapV3FactoryAddress,
127
119
  priority: 7
128
- }, g = {
120
+ }, f = {
129
121
  name: "axelar1",
130
122
  chainId: t.axelar1,
131
123
  rpcUrl: "http://localhost:8600/0",
132
124
  fetchRpcUrl: "http://localhost:8600/0",
133
125
  supported: !0,
134
126
  contractData: h,
135
- quoterV2Address: e[n].quoterV2Address,
136
- uniswapV3FactoryAddress: e[n].uniswapV3FactoryAddress,
137
- accessTokenMintingFee: e[n].accessTokenMintingFee,
127
+ quoterV2Address: e[r].quoterV2Address,
128
+ uniswapV3FactoryAddress: e[r].uniswapV3FactoryAddress,
138
129
  priority: 8
139
- }, f = {
130
+ }, y = {
140
131
  name: "axelar2",
141
132
  chainId: t.axelar2,
142
133
  rpcUrl: "http://localhost:8600/1",
143
134
  fetchRpcUrl: "http://localhost:8600/1",
144
135
  supported: !0,
145
136
  contractData: b,
146
- quoterV2Address: e[n].quoterV2Address,
147
- uniswapV3FactoryAddress: e[n].uniswapV3FactoryAddress,
148
- accessTokenMintingFee: e[n].accessTokenMintingFee,
137
+ quoterV2Address: e[r].quoterV2Address,
138
+ uniswapV3FactoryAddress: e[r].uniswapV3FactoryAddress,
149
139
  priority: 9
150
140
  };
151
- r && (e[t.localhost] = u, e[t.axelar1] = g, e[t.axelar2] = f);
152
- const G = [
141
+ o && (e[t.localhost] = F, e[t.axelar1] = f, e[t.axelar2] = y);
142
+ const z = [
153
143
  t.ethMainnet,
154
144
  t.arbMainnet,
155
145
  t.avalanche,
@@ -158,8 +148,8 @@ const G = [
158
148
  t.optimism,
159
149
  t.base
160
150
  ];
161
- var y = /* @__PURE__ */ ((a) => (a.Mainnet = "Mainnet", a.Testnet = "Testnet", a.Local = "Local", a))(y || {});
162
- const q = {
151
+ var A = /* @__PURE__ */ ((a) => (a.Mainnet = "Mainnet", a.Testnet = "Testnet", a.Local = "Local", a))(A || {});
152
+ const G = {
163
153
  Mainnet: [
164
154
  t.polygon,
165
155
  t.arbMainnet,
@@ -171,17 +161,15 @@ const q = {
171
161
  ],
172
162
  Testnet: [t.bnbTestnet, t.polygonMumbai],
173
163
  Local: [t.localhost, t.axelar1, t.axelar2]
174
- }, A = (a) => [t.optimism, t.base].includes(a), D = (a) => !1, C = (a) => A(a) || D();
164
+ }, q = (a) => [t.optimism, t.base].includes(a);
175
165
  export {
176
- y as EthereumNetworkType,
166
+ A as EthereumNetworkType,
177
167
  t as chainIds,
178
- q as chainIdsByType,
179
- G as crossChainAccessTokenNetworks,
180
- z as getNonLocalhostChainId,
181
- F as isLocalNetwork,
182
- D as isOptimismBedrockLike,
183
- A as isOptimismEcotoneLike,
184
- C as isOptimismLike,
185
- n as localhostNetwork,
168
+ G as chainIdsByType,
169
+ z as crossChainAccessTokenNetworks,
170
+ B as getNonLocalhostChainId,
171
+ u as isLocalNetwork,
172
+ q as isOptimismLike,
173
+ r as localhostNetwork,
186
174
  e as networkRegistry
187
175
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("ethers"),y=require("../externalABIs/BeefyVaultAbi.json.cjs"),T=require("../externalABIs/CurveReadingWrapperAbi.json.cjs"),f=require("../externalABIs/CurveWrappedMainPool.json.cjs"),k=require("../externalABIs/ERC20.json.cjs"),v=require("../externalABIs/IQuoterV2.json.cjs"),I=require("../externalABIs/IUniswapV3Factory.json.cjs"),w=require("../externalABIs/LidoStEthAbi.json.cjs"),h=require("../externalABIs/LidoStMaticAbi.json.cjs"),x=require("../externalABIs/LidoWithdrawalQueueERC721Abi.json.cjs"),m=require("../externalABIs/PoLidoNftAbi.json.cjs"),B=require("../externalABIs/LidoWstEthAbi.json.cjs"),P=require("../externalABIs/LidoStakeManagerAbi.json.cjs"),S=require("../externalABIs/BeefyRouterAbi.json.cjs"),L=require("../externalABIs/BeefyStrategyAbi.json.cjs"),W=require("../externalABIs/BeefyZapAbi.json.cjs"),g=require("../externalABIs/BeefyZapOneInchAbi.json.cjs"),E=require("../externalABIs/ConvexBoosterAbi.json.cjs"),q=require("../externalABIs/ConvexBoosterAbiMainnet.json.cjs"),V=require("../externalABIs/ConvexRewardPoolAbi.json.cjs"),M=require("../externalABIs/CurveZap.json.cjs"),_=require("../externalABIs/CvxCrvUtilities.json.cjs"),R=require("../externalABIs/PendleRouterAbi.json.cjs"),H=require("../externalABIs/IUniswapV3Pool.json.cjs"),N=require("../externalABIs/UniswapV2PoolAbi.json.cjs"),s=require("./chains.constants.cjs"),t=require("../types/ethereum-network.types.cjs"),a=require("./lido.constants.cjs"),c={abi:I.default.abi},u={abi:H.default.abi},l={abi:N.default.abi},d={abi:v.default.abi},O=new n.ethers.utils.Interface(["function coins(int128 arg0) external view returns (address)"]),U=new n.ethers.utils.Interface(["function balances(int128 arg0) external view returns (uint256)"]),r=e=>new n.ethers.utils.Interface([`function calc_token_amount(uint256[${e||""}] _amounts, bool is_deposit) external view returns (uint256)`,"function coins(uint256 arg0) external view returns (address)","function calc_withdraw_one_coin(uint256 token_amount, uint256 i) external view returns (uint256)","function fee() external view returns (uint256)"]),o=e=>new n.ethers.utils.Interface([`function calc_token_amount(uint256[${e}] _amounts) external view returns (uint256)`,"function coins(uint256 arg0) external view returns (address)","function calc_withdraw_one_coin(uint256 token_amount, uint256 i) external view returns (uint256)","function fee() external view returns (uint256)"]),Q=new n.ethers.utils.Interface(["function claimable_tokens(address addr) external view returns (uint256)"]),Z=new n.ethers.utils.Interface(["function lockedSupply() external view returns (uint256)"]),F=new n.ethers.utils.Interface(["function checkpoint(uint256 lpBalance, uint256 prevTimeStamp, uint256 currentTimeStamp) external returns (uint256, uint256[] memory)","function claimable(uint256 lpBalance, uint256 prevTimeStamp) external returns (uint256, uint256[] memory)"]),G={[t.ContractType.HinkalContract]:e=>({abi:e.hinkalABI,address:e.hinkalAddress}),[t.ContractType.HinkalHelperContract]:e=>({abi:e.hinkalHelperABI,address:e.hinkalHelperAddress}),[t.ContractType.CrossChainAccessTokenContract]:e=>({abi:e.crossChainAccessTokenABI,address:e.crossChainAccessTokenAddress}),[t.ContractType.CrossChainAccessTokenManagerContract]:e=>({abi:e.crossChainAccessTokenManagerABI,address:e.crossChainAccessTokenManagerAddress}),[t.ContractType.MerkleTreeContract]:()=>({abi:new n.ethers.utils.Interface(["function getRootHash() public view returns (uint256)"])}),[t.ContractType.UniswapV3FactoryContract]:()=>({abi:c.abi}),[t.ContractType.UniswapV3PoolContract]:()=>({abi:u.abi}),[t.ContractType.UniswapV2PoolContract]:()=>({abi:l.abi}),[t.ContractType.UniswapV3QuoterContract]:()=>({abi:d.abi}),[t.ContractType.ERC20Contract]:()=>({abi:k.default.abi}),[t.ContractType.WATokenContract]:e=>({abi:e.waTokenABI}),[t.ContractType.ContractWithNonces]:()=>({abi:new n.ethers.utils.Interface(["function nonces(address owner) external view returns (uint)"])}),[t.ContractType.PermitterContract]:e=>({abi:e.permitterABI,address:e.permitterAddress}),[t.ContractType.CurveExternalAction]:e=>({address:e.curveExternalActionInstanceAddress,abi:e.curveExternalActionABI}),[t.ContractType.WrappedStakedCurveLp]:e=>({abi:e.wrappedStakedCurveLpABI}),[t.ContractType.WrappedStakedRewardsCurveLp]:()=>({abi:F}),[t.ContractType.CurveWrappedMainPool]:()=>({abi:f.default.abi}),[t.ContractType.CurveReadingWrapper]:()=>({abi:T.default.abi}),[t.ContractType.CurvePoolLPTokenAmountCalculator2]:()=>({abi:r(2)}),[t.ContractType.CurvePoolLPTokenAmountCalculator3]:()=>({abi:r(3)}),[t.ContractType.CurvePoolLPTokenAmountCalculator4]:()=>({abi:r(4)}),[t.ContractType.CurvePoolLPTokenAmountCalculatorDynamic]:()=>({abi:r()}),[t.ContractType.CurvePoolLPTokenAmountCalculator2OneArg]:()=>({abi:o(2)}),[t.ContractType.CurvePoolLPTokenAmountCalculator3OneArg]:()=>({abi:o(3)}),[t.ContractType.CurvePoolLPTokenAmountCalculator4OneArg]:()=>({abi:o(4)}),[t.ContractType.CurvePoolWithIntCoins]:()=>({abi:O}),[t.ContractType.CurvePoolWithIntBalances]:()=>({abi:U}),[t.ContractType.OneInchExternalActionContract]:e=>({address:e.oneInchExternalActionInstanceAddress}),[t.ContractType.CurveGauge]:()=>({abi:Q}),[t.ContractType.CurveZaps]:()=>({abi:M.default.abi}),[t.ContractType.ConvexExternalAction]:e=>({address:e.convexExternalActionInstanceAddress,abi:e.convexExternalActionABI}),[t.ContractType.WrappedStakedConvexLp]:e=>({abi:e.wrappedStakedConvexLpABI}),[t.ContractType.ConvexBooster]:()=>({abi:E.default.abi}),[t.ContractType.ConvexBoosterMainnet]:()=>({abi:q.default.abi}),[t.ContractType.ConvexRewardPool]:()=>({abi:V.default.abi}),[t.ContractType.ConvexCvxLocker]:()=>({abi:Z}),[t.ContractType.ConvexStakePool]:()=>({abi:new n.ethers.utils.Interface(["function totalSupply() external view returns (uint256)"])}),[t.ContractType.ConvexCvxCRVWrapper]:()=>({abi:new n.ethers.utils.Interface(["function totalSupply() external view returns (uint256)"])}),[t.ContractType.ConvexCxvCrvUtillities]:()=>({abi:_.default.abi}),[t.ContractType.BeefyVault]:()=>({abi:y.default.abi}),[t.ContractType.BeefyZap]:()=>({abi:W.default.abi}),[t.ContractType.BeefyRouter]:()=>({abi:S.default.abi}),[t.ContractType.BeefyZapOneInch]:()=>({abi:g.default.abi}),[t.ContractType.BeefyStrategy]:()=>({abi:L.default.abi}),[t.ContractType.BeefyExternalAction]:e=>({abi:e.BeefyExternalActionABI,address:e.beefyExternalActionInstanceAddress}),[t.ContractType.BeefyStakeExternalAction]:e=>({abi:e.BeefyStakeExternalActionABI,address:e.beefyStakeExternalActionInstanceAddress}),[t.ContractType.WrappedStakedBeefyLp]:e=>({abi:e.WrappedStakedBeefyLpABI}),[t.ContractType.LidoWstEther]:()=>({abi:B,address:a.lidoWstEthContractAddress}),[t.ContractType.LidoStEther]:()=>({abi:w,address:a.lidoStEthContractAddress}),[t.ContractType.LidoWithdrawalQueueERC721]:()=>({abi:x,address:a.lidoWithdrawalQueueERC721Address}),[t.ContractType.PendleGeneralExternalAction]:e=>({abi:e.pendleExternalActionABI,address:e.pendleExternalActionInstanceAddress}),[t.ContractType.WstYtToken]:e=>({abi:e.WstYtTokenABI}),[t.ContractType.WstPendleLPToken]:e=>({abi:e.WstPendleLPABI}),[t.ContractType.PendleRouter]:e=>({abi:R.default.abi,address:e.pendleExternalActionInstanceAddress}),[t.ContractType.PoLidoNFT]:()=>({abi:m,address:a.poLidoNftAddress}),[t.ContractType.LidoStMatic]:()=>({abi:h,address:a.lidoStMaticAddress}),[t.ContractType.LidoStakeManager]:()=>({abi:P,address:a.lidoStakeManagerAddress}),[t.ContractType.VolatileVault]:e=>({abi:e.VolatileVaultABI,address:e.volatileVaultInstanceAddress}),[t.ContractType.VolatileTokenAction]:e=>({abi:e.VolatileTokenActionABI,address:e.volatileTokenActionInstanceAddress}),[t.ContractType.HinkalWrapper]:e=>({abi:e.HinkalWrapperABI,address:e.hinkalWrapperAddress}),[t.ContractType.HinkalWrapper2]:e=>({abi:e.HinkalWrapper2ABI??e.HinkalWrapperABI,address:e.hinkalWrapper2Address??e.hinkalWrapperAddress}),[t.ContractType.HinkalStakeExternalAction]:e=>({abi:e.HinkalStakeExternalActionABI,address:e.hinkalStakeExternalActionAddress}),[t.ContractType.HToken]:e=>({abi:e.HTokenABI})},Y=e=>{const{contractData:p}=s.networkRegistry[s.getNonLocalhostChainId(e)],C=JSON.stringify(p.hinkalABI),i=new n.utils.Interface(C),b=i.getSighash("transact"),A=i.getSighash("transactWithExternalAction");return{hinkalInterface:i,transactMethodId:b,transactWithExternalActionMethodId:A,NewCommitment:"NewCommitment",NewCommitmentTopic:"0xc2e3bd2d00c3cf4d09298e5a0cfd317cf7a6e5bf15d467cfa805a91e1a4a221d"}};exports.contractMetadataMapping=G;exports.getHinkalParameters=Y;exports.uniswapV2PoolData=l;exports.uniswapV3FactoryData=c;exports.uniswapV3PoolData=u;exports.uniswapV3QuoterData=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("ethers"),y=require("../externalABIs/BeefyVaultAbi.json.cjs"),T=require("../externalABIs/CurveReadingWrapperAbi.json.cjs"),f=require("../externalABIs/CurveWrappedMainPool.json.cjs"),k=require("../externalABIs/ERC20.json.cjs"),v=require("../externalABIs/IQuoterV2.json.cjs"),I=require("../externalABIs/IUniswapV3Factory.json.cjs"),w=require("../externalABIs/LidoStEthAbi.json.cjs"),x=require("../externalABIs/LidoStMaticAbi.json.cjs"),h=require("../externalABIs/LidoWithdrawalQueueERC721Abi.json.cjs"),m=require("../externalABIs/PoLidoNftAbi.json.cjs"),B=require("../externalABIs/LidoWstEthAbi.json.cjs"),P=require("../externalABIs/LidoStakeManagerAbi.json.cjs"),W=require("../externalABIs/BeefyRouterAbi.json.cjs"),S=require("../externalABIs/BeefyStrategyAbi.json.cjs"),L=require("../externalABIs/BeefyZapAbi.json.cjs"),E=require("../externalABIs/BeefyZapOneInchAbi.json.cjs"),g=require("../externalABIs/ConvexBoosterAbi.json.cjs"),q=require("../externalABIs/ConvexBoosterAbiMainnet.json.cjs"),V=require("../externalABIs/ConvexRewardPoolAbi.json.cjs"),_=require("../externalABIs/CurveZap.json.cjs"),H=require("../externalABIs/CvxCrvUtilities.json.cjs"),M=require("../externalABIs/PendleRouterAbi.json.cjs"),R=require("../externalABIs/IUniswapV3Pool.json.cjs"),N=require("../externalABIs/UniswapV2PoolAbi.json.cjs"),s=require("./chains.constants.cjs"),t=require("../types/ethereum-network.types.cjs"),a=require("./lido.constants.cjs"),c={abi:I.default.abi},l={abi:R.default.abi},u={abi:N.default.abi},d={abi:v.default.abi},O=new n.ethers.utils.Interface(["function coins(int128 arg0) external view returns (address)"]),U=new n.ethers.utils.Interface(["function balances(int128 arg0) external view returns (uint256)"]),r=e=>new n.ethers.utils.Interface([`function calc_token_amount(uint256[${e||""}] _amounts, bool is_deposit) external view returns (uint256)`,"function coins(uint256 arg0) external view returns (address)","function calc_withdraw_one_coin(uint256 token_amount, uint256 i) external view returns (uint256)","function fee() external view returns (uint256)"]),o=e=>new n.ethers.utils.Interface([`function calc_token_amount(uint256[${e}] _amounts) external view returns (uint256)`,"function coins(uint256 arg0) external view returns (address)","function calc_withdraw_one_coin(uint256 token_amount, uint256 i) external view returns (uint256)","function fee() external view returns (uint256)"]),F=new n.ethers.utils.Interface(["function claimable_tokens(address addr) external view returns (uint256)"]),Q=new n.ethers.utils.Interface(["function lockedSupply() external view returns (uint256)"]),Z=new n.ethers.utils.Interface(["function checkpoint(uint256 lpBalance, uint256 prevTimeStamp, uint256 currentTimeStamp) external returns (uint256, uint256[] memory)","function claimable(uint256 lpBalance, uint256 prevTimeStamp) external returns (uint256, uint256[] memory)"]),G={[t.ContractType.HinkalContract]:e=>({abi:e.hinkalABI,address:e.hinkalAddress}),[t.ContractType.HinkalHelperContract]:e=>({abi:e.hinkalHelperABI,address:e.hinkalHelperAddress}),[t.ContractType.AccessTokenContract]:e=>({abi:e.accessTokenABI,address:e.accessTokenAddress}),[t.ContractType.MerkleTreeContract]:()=>({abi:new n.ethers.utils.Interface(["function getRootHash() public view returns (uint256)"])}),[t.ContractType.UniswapV3FactoryContract]:()=>({abi:c.abi}),[t.ContractType.UniswapV3PoolContract]:()=>({abi:l.abi}),[t.ContractType.UniswapV2PoolContract]:()=>({abi:u.abi}),[t.ContractType.UniswapV3QuoterContract]:()=>({abi:d.abi}),[t.ContractType.ERC20Contract]:()=>({abi:k.default.abi}),[t.ContractType.WATokenContract]:e=>({abi:e.waTokenABI}),[t.ContractType.ContractWithNonces]:()=>({abi:new n.ethers.utils.Interface(["function nonces(address owner) external view returns (uint)"])}),[t.ContractType.PermitterContract]:e=>({abi:e.permitterABI,address:e.permitterAddress}),[t.ContractType.CurveExternalAction]:e=>({address:e.curveExternalActionInstanceAddress,abi:e.curveExternalActionABI}),[t.ContractType.WrappedStakedCurveLp]:e=>({abi:e.wrappedStakedCurveLpABI}),[t.ContractType.WrappedStakedRewardsCurveLp]:()=>({abi:Z}),[t.ContractType.CurveWrappedMainPool]:()=>({abi:f.default.abi}),[t.ContractType.CurveReadingWrapper]:()=>({abi:T.default.abi}),[t.ContractType.CurvePoolLPTokenAmountCalculator2]:()=>({abi:r(2)}),[t.ContractType.CurvePoolLPTokenAmountCalculator3]:()=>({abi:r(3)}),[t.ContractType.CurvePoolLPTokenAmountCalculator4]:()=>({abi:r(4)}),[t.ContractType.CurvePoolLPTokenAmountCalculatorDynamic]:()=>({abi:r()}),[t.ContractType.CurvePoolLPTokenAmountCalculator2OneArg]:()=>({abi:o(2)}),[t.ContractType.CurvePoolLPTokenAmountCalculator3OneArg]:()=>({abi:o(3)}),[t.ContractType.CurvePoolLPTokenAmountCalculator4OneArg]:()=>({abi:o(4)}),[t.ContractType.CurvePoolWithIntCoins]:()=>({abi:O}),[t.ContractType.CurvePoolWithIntBalances]:()=>({abi:U}),[t.ContractType.OneInchExternalActionContract]:e=>({address:e.oneInchExternalActionInstanceAddress}),[t.ContractType.CurveGauge]:()=>({abi:F}),[t.ContractType.CurveZaps]:()=>({abi:_.default.abi}),[t.ContractType.ConvexExternalAction]:e=>({address:e.convexExternalActionInstanceAddress,abi:e.convexExternalActionABI}),[t.ContractType.WrappedStakedConvexLp]:e=>({abi:e.wrappedStakedConvexLpABI}),[t.ContractType.ConvexBooster]:()=>({abi:g.default.abi}),[t.ContractType.ConvexBoosterMainnet]:()=>({abi:q.default.abi}),[t.ContractType.ConvexRewardPool]:()=>({abi:V.default.abi}),[t.ContractType.ConvexCvxLocker]:()=>({abi:Q}),[t.ContractType.ConvexStakePool]:()=>({abi:new n.ethers.utils.Interface(["function totalSupply() external view returns (uint256)"])}),[t.ContractType.ConvexCvxCRVWrapper]:()=>({abi:new n.ethers.utils.Interface(["function totalSupply() external view returns (uint256)"])}),[t.ContractType.ConvexCxvCrvUtillities]:()=>({abi:H.default.abi}),[t.ContractType.BeefyVault]:()=>({abi:y.default.abi}),[t.ContractType.BeefyZap]:()=>({abi:L.default.abi}),[t.ContractType.BeefyRouter]:()=>({abi:W.default.abi}),[t.ContractType.BeefyZapOneInch]:()=>({abi:E.default.abi}),[t.ContractType.BeefyStrategy]:()=>({abi:S.default.abi}),[t.ContractType.BeefyExternalAction]:e=>({abi:e.BeefyExternalActionABI,address:e.beefyExternalActionInstanceAddress}),[t.ContractType.BeefyStakeExternalAction]:e=>({abi:e.BeefyStakeExternalActionABI,address:e.beefyStakeExternalActionInstanceAddress}),[t.ContractType.WrappedStakedBeefyLp]:e=>({abi:e.WrappedStakedBeefyLpABI}),[t.ContractType.LidoWstEther]:()=>({abi:B,address:a.lidoWstEthContractAddress}),[t.ContractType.LidoStEther]:()=>({abi:w,address:a.lidoStEthContractAddress}),[t.ContractType.LidoWithdrawalQueueERC721]:()=>({abi:h,address:a.lidoWithdrawalQueueERC721Address}),[t.ContractType.PendleGeneralExternalAction]:e=>({abi:e.pendleExternalActionABI,address:e.pendleExternalActionInstanceAddress}),[t.ContractType.WstYtToken]:e=>({abi:e.WstYtTokenABI}),[t.ContractType.WstPendleLPToken]:e=>({abi:e.WstPendleLPABI}),[t.ContractType.PendleRouter]:e=>({abi:M.default.abi,address:e.pendleExternalActionInstanceAddress}),[t.ContractType.PoLidoNFT]:()=>({abi:m,address:a.poLidoNftAddress}),[t.ContractType.LidoStMatic]:()=>({abi:x,address:a.lidoStMaticAddress}),[t.ContractType.LidoStakeManager]:()=>({abi:P,address:a.lidoStakeManagerAddress}),[t.ContractType.VolatileVault]:e=>({abi:e.VolatileVaultABI,address:e.volatileVaultInstanceAddress}),[t.ContractType.VolatileTokenAction]:e=>({abi:e.VolatileTokenActionABI,address:e.volatileTokenActionInstanceAddress}),[t.ContractType.HinkalWrapper]:e=>({abi:e.HinkalWrapperABI,address:e.hinkalWrapperAddress}),[t.ContractType.HinkalWrapper2]:e=>({abi:e.HinkalWrapper2ABI??e.HinkalWrapperABI,address:e.hinkalWrapper2Address??e.hinkalWrapperAddress}),[t.ContractType.HinkalStakeExternalAction]:e=>({abi:e.HinkalStakeExternalActionABI,address:e.hinkalStakeExternalActionAddress}),[t.ContractType.HToken]:e=>({abi:e.HTokenABI}),[t.ContractType.HinkalWalletFactory]:e=>({abi:e.hinkalWalletFactoryABI,address:e.hinkalWalletFactoryAddress})},Y=e=>{const{contractData:p}=s.networkRegistry[s.getNonLocalhostChainId(e)],C=JSON.stringify(p.hinkalABI),i=new n.utils.Interface(C),b=i.getSighash("transact"),A=i.getSighash("transactWithExternalAction");return{hinkalInterface:i,transactMethodId:b,transactWithExternalActionMethodId:A,NewCommitment:"NewCommitment",NewCommitmentTopic:"0xc2e3bd2d00c3cf4d09298e5a0cfd317cf7a6e5bf15d467cfa805a91e1a4a221d"}};exports.contractMetadataMapping=G;exports.getHinkalParameters=Y;exports.uniswapV2PoolData=u;exports.uniswapV3FactoryData=c;exports.uniswapV3PoolData=l;exports.uniswapV3QuoterData=d;