@hinkal/common 0.2.14 → 0.2.16

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 (1159) hide show
  1. package/API/API.cjs +1 -1
  2. package/API/API.d.ts +73 -34
  3. package/API/API.mjs +112 -59
  4. package/API/accessCodeCalls.cjs +1 -0
  5. package/API/accessCodeCalls.d.ts +23 -0
  6. package/API/accessCodeCalls.mjs +23 -0
  7. package/API/admin-calls.cjs +1 -0
  8. package/API/admin-calls.d.ts +2 -0
  9. package/API/admin-calls.mjs +8 -0
  10. package/API/ai-calls.cjs +1 -1
  11. package/API/ai-calls.d.ts +8 -0
  12. package/API/ai-calls.mjs +16 -8
  13. package/API/brotherhoodCalls.cjs +1 -0
  14. package/API/brotherhoodCalls.d.ts +82 -0
  15. package/API/brotherhoodCalls.mjs +59 -0
  16. package/API/callLifiAPI.cjs +1 -0
  17. package/API/callLifiAPI.d.ts +33 -0
  18. package/API/callLifiAPI.mjs +11 -0
  19. package/API/callMonitor.cjs +1 -1
  20. package/API/callMonitor.mjs +5 -2
  21. package/API/callOdosAPI.cjs +1 -1
  22. package/API/callOdosAPI.mjs +12 -13
  23. package/API/callOkxAPI.cjs +1 -0
  24. package/API/callOkxAPI.d.ts +10 -0
  25. package/API/callOkxAPI.mjs +13 -0
  26. package/API/callOneInchAPI.cjs +1 -1
  27. package/API/callOneInchAPI.mjs +9 -8
  28. package/API/callRelayer.cjs +1 -1
  29. package/API/callRelayer.d.ts +17 -0
  30. package/API/callRelayer.mjs +15 -6
  31. package/API/checkRisk.cjs +1 -1
  32. package/API/checkRisk.mjs +5 -4
  33. package/API/duneAPI.cjs +1 -1
  34. package/API/duneAPI.mjs +7 -5
  35. package/API/enclaveCalls.cjs +1 -0
  36. package/API/enclaveCalls.d.ts +9 -0
  37. package/API/enclaveCalls.mjs +11 -0
  38. package/API/fetchCommitmentsCache.cjs +1 -1
  39. package/API/fetchCommitmentsCache.d.ts +12 -4
  40. package/API/fetchCommitmentsCache.mjs +21 -7
  41. package/API/generate-trading-points.cjs +1 -0
  42. package/API/generate-trading-points.d.ts +27 -0
  43. package/API/generate-trading-points.mjs +45 -0
  44. package/API/get-token-data.cjs +1 -0
  45. package/API/get-token-data.d.ts +6 -0
  46. package/API/get-token-data.mjs +8 -0
  47. package/API/getBridgeProtocols.cjs +1 -0
  48. package/API/getBridgeProtocols.d.ts +7 -0
  49. package/API/getBridgeProtocols.mjs +8 -0
  50. package/API/getGasEstimates.cjs +1 -1
  51. package/API/getGasEstimates.d.ts +2 -2
  52. package/API/getGasEstimates.mjs +10 -10
  53. package/API/getLifiStatus.cjs +1 -0
  54. package/API/getLifiStatus.d.ts +24 -0
  55. package/API/getLifiStatus.mjs +15 -0
  56. package/API/getRelayerURL.cjs +1 -1
  57. package/API/getRelayerURL.mjs +4 -4
  58. package/API/getServerURL.cjs +1 -1
  59. package/API/getServerURL.d.ts +3 -1
  60. package/API/getServerURL.mjs +60 -27
  61. package/API/getTokenPrice.cjs +1 -1
  62. package/API/getTokenPrice.d.ts +0 -11
  63. package/API/getTokenPrice.mjs +8 -16
  64. package/API/getWebsiteURL.cjs +1 -0
  65. package/API/getWebsiteURL.d.ts +3 -0
  66. package/API/getWebsiteURL.mjs +56 -0
  67. package/API/index.d.ts +9 -3
  68. package/API/is-tx-stateless.cjs +1 -1
  69. package/API/is-tx-stateless.d.ts +4 -2
  70. package/API/is-tx-stateless.mjs +18 -7
  71. package/API/kycCalls.cjs +1 -1
  72. package/API/kycCalls.d.ts +4 -7
  73. package/API/kycCalls.mjs +34 -32
  74. package/API/leaderboardCalls.cjs +1 -0
  75. package/API/leaderboardCalls.d.ts +14 -0
  76. package/API/leaderboardCalls.mjs +16 -0
  77. package/API/proxyAccountsCalls.cjs +1 -0
  78. package/API/proxyAccountsCalls.d.ts +4 -0
  79. package/API/proxyAccountsCalls.mjs +26 -0
  80. package/API/referralsCalls.cjs +1 -0
  81. package/API/referralsCalls.d.ts +22 -0
  82. package/API/referralsCalls.mjs +22 -0
  83. package/API/relayCalls.cjs +1 -1
  84. package/API/relayCalls.d.ts +1 -1
  85. package/API/relayCalls.mjs +8 -5
  86. package/API/resolve-sns.cjs +1 -0
  87. package/API/resolve-sns.d.ts +1 -0
  88. package/API/resolve-sns.mjs +12 -0
  89. package/API/restoreSnapshots.cjs +1 -1
  90. package/API/restoreSnapshots.mjs +4 -3
  91. package/API/rewardsUserCalls.cjs +1 -0
  92. package/API/rewardsUserCalls.d.ts +51 -0
  93. package/API/rewardsUserCalls.mjs +44 -0
  94. package/API/scheduled-transactions-calls.cjs +1 -0
  95. package/API/scheduled-transactions-calls.d.ts +6 -0
  96. package/API/scheduled-transactions-calls.mjs +9 -0
  97. package/API/seedless-calls.cjs +1 -0
  98. package/API/seedless-calls.d.ts +53 -0
  99. package/API/seedless-calls.mjs +12 -0
  100. package/API/send-telegram-callback.cjs +1 -0
  101. package/API/send-telegram-callback.d.ts +7 -0
  102. package/API/send-telegram-callback.mjs +11 -0
  103. package/API/simulate-batch-tx.cjs +1 -0
  104. package/API/simulate-batch-tx.d.ts +3 -0
  105. package/API/simulate-batch-tx.mjs +13 -0
  106. package/API/solana-calls.cjs +1 -0
  107. package/API/solana-calls.d.ts +34 -0
  108. package/API/solana-calls.mjs +19 -0
  109. package/API/tenderly.api.cjs +1 -1
  110. package/API/tenderly.api.d.ts +9 -7
  111. package/API/tenderly.api.mjs +39 -29
  112. package/API/token-calls.cjs +1 -1
  113. package/API/token-calls.d.ts +1 -1
  114. package/API/token-calls.mjs +12 -7
  115. package/API/unspent-utxos-calls.cjs +1 -0
  116. package/API/unspent-utxos-calls.d.ts +26 -0
  117. package/API/unspent-utxos-calls.mjs +27 -0
  118. package/API/weeklyAnalyticCalls.cjs +1 -0
  119. package/API/weeklyAnalyticCalls.d.ts +22 -0
  120. package/API/weeklyAnalyticCalls.mjs +16 -0
  121. package/README.md +61 -0
  122. package/constants/activity.constants.cjs +1 -0
  123. package/constants/activity.constants.d.ts +2 -0
  124. package/constants/activity.constants.mjs +14 -0
  125. package/constants/addresses.constants.cjs +1 -1
  126. package/constants/addresses.constants.d.ts +9 -0
  127. package/constants/addresses.constants.mjs +71 -41
  128. package/constants/backend.constants.cjs +1 -1
  129. package/constants/backend.constants.d.ts +3 -1
  130. package/constants/backend.constants.mjs +6 -7
  131. package/constants/bridging.constants.cjs +1 -0
  132. package/constants/bridging.constants.d.ts +5 -0
  133. package/constants/bridging.constants.mjs +8 -0
  134. package/constants/chains.constants.cjs +1 -1
  135. package/constants/chains.constants.d.ts +10 -3
  136. package/constants/chains.constants.mjs +93 -75
  137. package/constants/coingecko.constants.cjs +1 -1
  138. package/constants/coingecko.constants.d.ts +4 -1
  139. package/constants/coingecko.constants.mjs +25 -15
  140. package/constants/contracts.constants.cjs +1 -1
  141. package/constants/contracts.constants.mjs +74 -252
  142. package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
  143. package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +3271 -4613
  144. package/constants/deploy-data/deploy-data-arcTestnet.json.cjs +1 -0
  145. package/constants/deploy-data/deploy-data-arcTestnet.json.mjs +7381 -0
  146. package/constants/deploy-data/deploy-data-avalanche.json.cjs +1 -1
  147. package/constants/deploy-data/deploy-data-avalanche.json.mjs +2447 -4757
  148. package/constants/deploy-data/deploy-data-base.json.cjs +1 -1
  149. package/constants/deploy-data/deploy-data-base.json.mjs +3712 -6054
  150. package/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -1
  151. package/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +2375 -4151
  152. package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
  153. package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +3434 -8548
  154. package/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
  155. package/constants/deploy-data/deploy-data-localhost.json.mjs +1209 -10210
  156. package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
  157. package/constants/deploy-data/deploy-data-optimism.json.mjs +1726 -8806
  158. package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
  159. package/constants/deploy-data/deploy-data-polygon.json.mjs +3263 -4619
  160. package/constants/deploy-data/deploy-data-solana.json.cjs +1 -0
  161. package/constants/deploy-data/deploy-data-solana.json.mjs +6111 -0
  162. package/constants/deploy-data/index.d.ts +3 -3
  163. package/constants/events.constants.cjs +1 -0
  164. package/constants/events.constants.d.ts +1 -0
  165. package/constants/events.constants.mjs +12 -0
  166. package/constants/fees.constants.cjs +1 -1
  167. package/constants/fees.constants.d.ts +1 -12
  168. package/constants/fees.constants.mjs +4 -35
  169. package/constants/function-signatures.constants.cjs +1 -0
  170. package/constants/function-signatures.constants.d.ts +5 -0
  171. package/constants/function-signatures.constants.mjs +8 -0
  172. package/constants/index.d.ts +11 -6
  173. package/constants/kyc.constants.cjs +1 -1
  174. package/constants/kyc.constants.mjs +23 -35
  175. package/constants/lifi.constants.cjs +1 -0
  176. package/constants/lifi.constants.d.ts +1 -0
  177. package/constants/lifi.constants.mjs +4 -0
  178. package/constants/link.constant.cjs +1 -0
  179. package/constants/link.constant.d.ts +1 -0
  180. package/constants/link.constant.mjs +4 -0
  181. package/constants/mediaUrls.constants.cjs +1 -1
  182. package/constants/mediaUrls.constants.d.ts +10 -0
  183. package/constants/mediaUrls.constants.mjs +14 -4
  184. package/constants/oauthUrls.constants.cjs +1 -0
  185. package/constants/oauthUrls.constants.d.ts +7 -0
  186. package/constants/oauthUrls.constants.mjs +10 -0
  187. package/constants/okx.constants.cjs +1 -0
  188. package/constants/okx.constants.d.ts +2 -0
  189. package/constants/okx.constants.mjs +5 -0
  190. package/constants/permit2.constants.cjs +1 -1
  191. package/constants/permit2.constants.d.ts +6 -0
  192. package/constants/permit2.constants.mjs +14 -2
  193. package/constants/presale.constants.cjs +1 -0
  194. package/constants/presale.constants.d.ts +78 -0
  195. package/{externalABIs/LidoWstEthAbi.json.mjs → constants/presale.constants.mjs} +242 -218
  196. package/constants/protocol.constants.cjs +1 -1
  197. package/constants/protocol.constants.d.ts +34 -11
  198. package/constants/protocol.constants.mjs +44 -34
  199. package/constants/reorg-depths.constants.cjs +1 -1
  200. package/constants/reorg-depths.constants.mjs +14 -11
  201. package/constants/rewards.constants.cjs +1 -1
  202. package/constants/rewards.constants.d.ts +3 -4
  203. package/constants/rewards.constants.mjs +14 -21
  204. package/constants/save-depths.cjs +1 -0
  205. package/constants/save-depths.d.ts +3 -0
  206. package/constants/save-depths.mjs +19 -0
  207. package/constants/server.constants.cjs +1 -1
  208. package/constants/server.constants.d.ts +121 -77
  209. package/constants/server.constants.mjs +196 -129
  210. package/constants/tasks.constants.cjs +1 -0
  211. package/constants/tasks.constants.d.ts +9 -0
  212. package/constants/tasks.constants.mjs +230 -0
  213. package/constants/token-data/ERC20Registry.cjs +1 -1
  214. package/constants/token-data/ERC20Registry.mjs +50 -33
  215. package/constants/token-data/arbMainnetRegistry.json.cjs +1 -1
  216. package/constants/token-data/arbMainnetRegistry.json.mjs +1323 -427
  217. package/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -1
  218. package/constants/token-data/arbMainnetRegistryFixed.json.mjs +1362 -376
  219. package/constants/token-data/arcTestnetRegistry.json.cjs +1 -0
  220. package/constants/token-data/arcTestnetRegistry.json.mjs +439 -0
  221. package/constants/token-data/avalancheRegistry.json.cjs +1 -1
  222. package/constants/token-data/avalancheRegistry.json.mjs +399 -260
  223. package/constants/token-data/avalancheRegistryFixed.json.cjs +1 -1
  224. package/constants/token-data/avalancheRegistryFixed.json.mjs +399 -260
  225. package/constants/token-data/baseRegistry.json.cjs +1 -1
  226. package/constants/token-data/baseRegistry.json.mjs +854 -209
  227. package/constants/token-data/baseRegistryFixed.json.cjs +1 -1
  228. package/constants/token-data/baseRegistryFixed.json.mjs +866 -194
  229. package/constants/token-data/bnbMainnetRegistry.json.cjs +1 -1
  230. package/constants/token-data/bnbMainnetRegistry.json.mjs +444 -516
  231. package/constants/token-data/bnbMainnetRegistryFixed.json.cjs +1 -1
  232. package/constants/token-data/bnbMainnetRegistryFixed.json.mjs +444 -516
  233. package/constants/token-data/ethMainnetRegistry.json.cjs +1 -1
  234. package/constants/token-data/ethMainnetRegistry.json.mjs +3038 -1456
  235. package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -1
  236. package/constants/token-data/ethMainnetRegistryFixed.json.mjs +3233 -1193
  237. package/constants/token-data/index.cjs +1 -1
  238. package/constants/token-data/index.d.ts +474 -104
  239. package/constants/token-data/index.mjs +34 -28
  240. package/constants/token-data/localhostRegistry.json.cjs +1 -1
  241. package/constants/token-data/localhostRegistry.json.mjs +3 -3
  242. package/constants/token-data/optimismRegistry.json.cjs +1 -1
  243. package/constants/token-data/optimismRegistry.json.mjs +129 -1402
  244. package/constants/token-data/optimismRegistryFixed.json.cjs +1 -1
  245. package/constants/token-data/optimismRegistryFixed.json.mjs +129 -1322
  246. package/constants/token-data/polygonRegistry.json.cjs +1 -1
  247. package/constants/token-data/polygonRegistry.json.mjs +1617 -634
  248. package/constants/token-data/polygonRegistryFixed.json.cjs +1 -1
  249. package/constants/token-data/polygonRegistryFixed.json.mjs +1649 -594
  250. package/constants/token-data/solanaLocalnetRegistry.json.cjs +1 -0
  251. package/constants/token-data/solanaLocalnetRegistry.json.mjs +24 -0
  252. package/constants/token-data/solanaMainnetRegistry.json.cjs +1 -0
  253. package/constants/token-data/solanaMainnetRegistry.json.mjs +560 -0
  254. package/constants/token-data/tokenPricing.consts.d.ts +0 -3
  255. package/constants/vite.constants.cjs +1 -1
  256. package/constants/vite.constants.d.ts +8 -11
  257. package/constants/vite.constants.mjs +12 -36
  258. package/constants/wallet.constants.cjs +1 -0
  259. package/constants/wallet.constants.d.ts +7 -0
  260. package/constants/wallet.constants.mjs +10 -0
  261. package/crypto/preProcessing.cjs +1 -1
  262. package/crypto/preProcessing.mjs +3 -3
  263. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.cjs +1 -0
  264. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.d.ts +18 -0
  265. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.mjs +175 -0
  266. package/data-structures/ApprovalDBs/index.d.ts +1 -0
  267. package/data-structures/Hinkal/Hinkal.cjs +1 -1
  268. package/data-structures/Hinkal/Hinkal.d.ts +40 -46
  269. package/data-structures/Hinkal/Hinkal.mjs +345 -191
  270. package/data-structures/Hinkal/IHinkal.d.ts +39 -45
  271. package/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -0
  272. package/data-structures/Hinkal/handleAutoDepositBack.d.ts +5 -0
  273. package/data-structures/Hinkal/handleAutoDepositBack.mjs +108 -0
  274. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.cjs +1 -1
  275. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.d.ts +5 -1
  276. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.mjs +31 -50
  277. package/data-structures/Hinkal/hinkalActionReceive.cjs +1 -1
  278. package/data-structures/Hinkal/hinkalActionReceive.d.ts +4 -1
  279. package/data-structures/Hinkal/hinkalActionReceive.mjs +33 -31
  280. package/data-structures/Hinkal/hinkalApprove.cjs +1 -1
  281. package/data-structures/Hinkal/hinkalApprove.d.ts +2 -1
  282. package/data-structures/Hinkal/hinkalApprove.mjs +73 -78
  283. package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.cjs +1 -0
  284. package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.d.ts +3 -0
  285. package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.mjs +28 -0
  286. package/data-structures/Hinkal/hinkalCheckTokenRegistry.cjs +1 -1
  287. package/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +46 -7
  288. package/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
  289. package/data-structures/Hinkal/hinkalDeposit.mjs +76 -62
  290. package/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -0
  291. package/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +4 -0
  292. package/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +188 -0
  293. package/data-structures/Hinkal/hinkalGetRecipientInfo.cjs +1 -1
  294. package/data-structures/Hinkal/hinkalGetRecipientInfo.d.ts +1 -1
  295. package/data-structures/Hinkal/hinkalGetRecipientInfo.mjs +4 -4
  296. package/data-structures/Hinkal/hinkalGetZkMeProvider.d.ts +27 -2
  297. package/data-structures/Hinkal/hinkalInsideTransact.cjs +1 -1
  298. package/data-structures/Hinkal/hinkalInsideTransact.d.ts +3 -1
  299. package/data-structures/Hinkal/hinkalInsideTransact.mjs +84 -74
  300. package/data-structures/Hinkal/hinkalMultiSend.cjs +1 -1
  301. package/data-structures/Hinkal/hinkalMultiSend.mjs +6 -6
  302. package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
  303. package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +4 -1
  304. package/data-structures/Hinkal/hinkalPrivateWallet.mjs +127 -73
  305. package/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -1
  306. package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +7 -7
  307. package/data-structures/Hinkal/hinkalProxySwap.cjs +1 -1
  308. package/data-structures/Hinkal/hinkalProxySwap.d.ts +4 -1
  309. package/data-structures/Hinkal/hinkalProxySwap.mjs +48 -24
  310. package/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -0
  311. package/data-structures/Hinkal/hinkalProxyToPrivate.d.ts +6 -0
  312. package/data-structures/Hinkal/hinkalProxyToPrivate.mjs +45 -0
  313. package/data-structures/Hinkal/hinkalSignSubAccount.cjs +1 -1
  314. package/data-structures/Hinkal/hinkalSignSubAccount.d.ts +3 -2
  315. package/data-structures/Hinkal/hinkalSignSubAccount.mjs +19 -17
  316. package/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -0
  317. package/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +4 -0
  318. package/data-structures/Hinkal/hinkalSolanaDeposit.mjs +133 -0
  319. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -0
  320. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +3 -0
  321. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +236 -0
  322. package/data-structures/Hinkal/hinkalSolanaProxySend.cjs +1 -0
  323. package/data-structures/Hinkal/hinkalSolanaProxySend.d.ts +6 -0
  324. package/data-structures/Hinkal/hinkalSolanaProxySend.mjs +55 -0
  325. package/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -0
  326. package/data-structures/Hinkal/hinkalSolanaProxyShield.d.ts +6 -0
  327. package/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +99 -0
  328. package/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -0
  329. package/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +5 -0
  330. package/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +96 -0
  331. package/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -0
  332. package/data-structures/Hinkal/hinkalSolanaSwap.d.ts +4 -0
  333. package/data-structures/Hinkal/hinkalSolanaSwap.mjs +119 -0
  334. package/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -0
  335. package/data-structures/Hinkal/hinkalSolanaTransfer.d.ts +3 -0
  336. package/data-structures/Hinkal/hinkalSolanaTransfer.mjs +89 -0
  337. package/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -0
  338. package/data-structures/Hinkal/hinkalSolanaWithdraw.d.ts +3 -0
  339. package/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +105 -0
  340. package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
  341. package/data-structures/Hinkal/hinkalSwap.d.ts +3 -1
  342. package/data-structures/Hinkal/hinkalSwap.mjs +103 -58
  343. package/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
  344. package/data-structures/Hinkal/hinkalTransfer.d.ts +4 -1
  345. package/data-structures/Hinkal/hinkalTransfer.mjs +127 -2
  346. package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
  347. package/data-structures/Hinkal/hinkalWithdraw.d.ts +2 -2
  348. package/data-structures/Hinkal/hinkalWithdraw.mjs +95 -60
  349. package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -0
  350. package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.d.ts +4 -0
  351. package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +147 -0
  352. package/data-structures/Hinkal/index.d.ts +5 -4
  353. package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
  354. package/data-structures/Hinkal/resetMerkleTrees.mjs +59 -27
  355. package/data-structures/IndexedDB/activity-db.cjs +1 -1
  356. package/data-structures/IndexedDB/activity-db.d.ts +2 -3
  357. package/data-structures/IndexedDB/activity-db.mjs +146 -83
  358. package/data-structures/IndexedDB/balances-db.cjs +1 -1
  359. package/data-structures/IndexedDB/balances-db.d.ts +1 -1
  360. package/data-structures/IndexedDB/balances-db.mjs +59 -41
  361. package/data-structures/IndexedDB/contact-db.cjs +1 -1
  362. package/data-structures/IndexedDB/contact-db.mjs +83 -29
  363. package/data-structures/IndexedDB/index.d.ts +1 -0
  364. package/data-structures/IndexedDB/signatures-db.cjs +1 -0
  365. package/data-structures/IndexedDB/signatures-db.d.ts +10 -0
  366. package/data-structures/IndexedDB/signatures-db.mjs +63 -0
  367. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -1
  368. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +2 -2
  369. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +32 -31
  370. package/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +1 -0
  371. package/data-structures/TokenDBs/AlchemyPublicTokensDB.d.ts +19 -0
  372. package/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +204 -0
  373. package/data-structures/TokenDBs/ArcPublicTokensDB.cjs +1 -0
  374. package/data-structures/TokenDBs/ArcPublicTokensDB.d.ts +11 -0
  375. package/data-structures/TokenDBs/ArcPublicTokensDB.mjs +112 -0
  376. package/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -0
  377. package/data-structures/TokenDBs/EventsPublicTokensDB.d.ts +17 -0
  378. package/data-structures/TokenDBs/EventsPublicTokensDB.mjs +173 -0
  379. package/data-structures/TokenDBs/IPublicTokensDB.d.ts +6 -0
  380. package/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -1
  381. package/data-structures/TokenDBs/PrivateTokensDB.mjs +48 -36
  382. package/data-structures/TokenDBs/PublicTokensDB.cjs +1 -1
  383. package/data-structures/TokenDBs/PublicTokensDB.d.ts +4 -8
  384. package/data-structures/TokenDBs/PublicTokensDB.mjs +21 -70
  385. package/data-structures/TokenDBs/index.d.ts +2 -0
  386. package/data-structures/TokenDBs/token-visibility-db.cjs +1 -0
  387. package/data-structures/TokenDBs/token-visibility-db.d.ts +17 -0
  388. package/data-structures/TokenDBs/token-visibility-db.mjs +96 -0
  389. package/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
  390. package/data-structures/crypto-keys/decodeUTXO.d.ts +15 -3
  391. package/data-structures/crypto-keys/decodeUTXO.mjs +84 -26
  392. package/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -1
  393. package/data-structures/crypto-keys/encryptDecryptUtxo.mjs +36 -30
  394. package/data-structures/crypto-keys/keys.cjs +1 -1
  395. package/data-structures/crypto-keys/keys.d.ts +21 -0
  396. package/data-structures/crypto-keys/keys.mjs +118 -38
  397. package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.cjs +1 -0
  398. package/data-structures/event-service/{AbstractAccessTokenSnapshotService.d.ts → evm/AbstractAccessTokenSnapshotService.d.ts} +4 -5
  399. package/data-structures/event-service/{AbstractAccessTokenSnapshotService.mjs → evm/AbstractAccessTokenSnapshotService.mjs} +12 -23
  400. package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.cjs +1 -0
  401. package/data-structures/event-service/{AbstractApprovalsSnapshotService.d.ts → evm/AbstractApprovalsSnapshotService.d.ts} +4 -5
  402. package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.mjs +92 -0
  403. package/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.cjs +1 -0
  404. package/data-structures/event-service/{AbstractCommitmentsSnapshotService.d.ts → evm/AbstractCommitmentsSnapshotService.d.ts} +5 -6
  405. package/data-structures/event-service/{AbstractCommitmentsSnapshotService.mjs → evm/AbstractCommitmentsSnapshotService.mjs} +26 -34
  406. package/data-structures/event-service/evm/AbstractEventService.cjs +1 -0
  407. package/data-structures/event-service/evm/AbstractEventService.d.ts +12 -0
  408. package/data-structures/event-service/evm/AbstractEventService.mjs +37 -0
  409. package/data-structures/event-service/evm/AbstractNullifierSnapshotService.cjs +1 -0
  410. package/data-structures/event-service/{AbstractNullifierSnapshotService.d.ts → evm/AbstractNullifierSnapshotService.d.ts} +4 -4
  411. package/data-structures/event-service/evm/AbstractNullifierSnapshotService.mjs +48 -0
  412. package/data-structures/event-service/evm/AbstractSnapshotService.cjs +1 -0
  413. package/data-structures/event-service/{AbstractSnapshotService.d.ts → evm/AbstractSnapshotService.d.ts} +6 -7
  414. package/data-structures/event-service/evm/AbstractSnapshotService.mjs +33 -0
  415. package/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -0
  416. package/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +26 -0
  417. package/data-structures/event-service/evm/BlockchainEventEmitter.mjs +90 -0
  418. package/data-structures/event-service/index.d.ts +13 -6
  419. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.cjs +1 -0
  420. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.d.ts +34 -0
  421. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs +87 -0
  422. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs +1 -0
  423. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.d.ts +29 -0
  424. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +96 -0
  425. package/data-structures/event-service/solana/AbstractSolanaEventService.cjs +1 -0
  426. package/data-structures/event-service/solana/AbstractSolanaEventService.d.ts +22 -0
  427. package/data-structures/event-service/solana/AbstractSolanaEventService.mjs +33 -0
  428. package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.cjs +1 -0
  429. package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.d.ts +21 -0
  430. package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.mjs +49 -0
  431. package/data-structures/event-service/solana/AbstractSolanaSnapshotService.cjs +1 -0
  432. package/data-structures/event-service/solana/AbstractSolanaSnapshotService.d.ts +22 -0
  433. package/data-structures/event-service/solana/AbstractSolanaSnapshotService.mjs +33 -0
  434. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.cjs +1 -0
  435. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +41 -0
  436. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.mjs +154 -0
  437. package/data-structures/http/BasicHttpClient.cjs +1 -0
  438. package/data-structures/http/BasicHttpClient.d.ts +11 -0
  439. package/data-structures/http/BasicHttpClient.mjs +25 -0
  440. package/data-structures/http/HttpClient.cjs +1 -0
  441. package/data-structures/http/HttpClient.d.ts +10 -0
  442. package/data-structures/http/HttpClient.mjs +15 -0
  443. package/data-structures/http/index.d.ts +2 -0
  444. package/data-structures/index.d.ts +4 -1
  445. package/data-structures/merkle-tree/MerkleTree.cjs +1 -1
  446. package/data-structures/merkle-tree/MerkleTree.d.ts +1 -1
  447. package/data-structures/merkle-tree/MerkleTree.mjs +15 -14
  448. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs +1 -1
  449. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs +1 -1
  450. package/data-structures/presale/PresaleContractWrapper.cjs +1 -0
  451. package/data-structures/presale/PresaleContractWrapper.d.ts +23 -0
  452. package/data-structures/presale/PresaleContractWrapper.mjs +54 -0
  453. package/data-structures/presale/index.d.ts +1 -0
  454. package/data-structures/provider-adapter/IProviderAdapter.d.ts +4 -3
  455. package/data-structures/snapshot/SnapshotFetcherService.cjs +1 -0
  456. package/data-structures/snapshot/SnapshotFetcherService.d.ts +16 -0
  457. package/data-structures/snapshot/SnapshotFetcherService.mjs +42 -0
  458. package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.cjs +1 -0
  459. package/data-structures/snapshot/{ClientAccessTokenSnapshotService.d.ts → evm-snapshots/ClientAccessTokenSnapshotService.d.ts} +4 -3
  460. package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.mjs +41 -0
  461. package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.cjs +1 -0
  462. package/data-structures/snapshot/{ClientApprovalsSnapshotService.d.ts → evm-snapshots/ClientApprovalsSnapshotService.d.ts} +4 -4
  463. package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.mjs +43 -0
  464. package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.cjs +1 -0
  465. package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.d.ts +8 -0
  466. package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.mjs +35 -0
  467. package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.cjs +1 -0
  468. package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.d.ts +8 -0
  469. package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.mjs +34 -0
  470. package/data-structures/snapshot/index.d.ts +8 -0
  471. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.cjs +1 -0
  472. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.d.ts +8 -0
  473. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs +42 -0
  474. package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.cjs +1 -0
  475. package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.d.ts +8 -0
  476. package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs +34 -0
  477. package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.cjs +1 -0
  478. package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.d.ts +8 -0
  479. package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.mjs +34 -0
  480. package/data-structures/token-price-fetcher/TokenChecker.cjs +1 -1
  481. package/data-structures/token-price-fetcher/TokenChecker.d.ts +1 -13
  482. package/data-structures/token-price-fetcher/TokenChecker.mjs +13 -26
  483. package/data-structures/transactions-manager/history/history.types.cjs +1 -1
  484. package/data-structures/transactions-manager/history/history.types.d.ts +2 -81
  485. package/data-structures/transactions-manager/history/history.types.mjs +2 -42
  486. package/data-structures/transactions-manager/index.d.ts +0 -1
  487. package/data-structures/utxo/Utxo.cjs +1 -1
  488. package/data-structures/utxo/Utxo.d.ts +6 -1
  489. package/data-structures/utxo/Utxo.mjs +37 -24
  490. package/error-handling/customErrors/ErrorWithTx.cjs +1 -0
  491. package/error-handling/customErrors/ErrorWithTx.d.ts +5 -0
  492. package/error-handling/customErrors/ErrorWithTx.mjs +9 -0
  493. package/error-handling/customErrors/SimulationFailureError.cjs +1 -0
  494. package/error-handling/customErrors/SimulationFailureError.d.ts +10 -0
  495. package/error-handling/customErrors/SimulationFailureError.mjs +9 -0
  496. package/error-handling/customErrors/index.d.ts +2 -0
  497. package/error-handling/error-codes.constants.cjs +2 -2
  498. package/error-handling/error-codes.constants.d.ts +19 -20
  499. package/error-handling/error-codes.constants.mjs +178 -179
  500. package/error-handling/get-error.message.cjs +1 -1
  501. package/error-handling/get-error.message.d.ts +2 -0
  502. package/error-handling/get-error.message.mjs +81 -36
  503. package/error-handling/index.d.ts +1 -2
  504. package/error-handling/types.cjs +1 -1
  505. package/error-handling/types.d.ts +4 -1
  506. package/error-handling/types.mjs +2 -2
  507. package/externalABIs/ERC1155.json.cjs +1 -0
  508. package/externalABIs/ERC1155.json.mjs +320 -0
  509. package/externalABIs/ERC721.json.cjs +1 -0
  510. package/externalABIs/{BeefyZapOneInchAbi.json.mjs → ERC721.json.mjs} +162 -167
  511. package/externalABIs/NodeInterfaceABI.json.cjs +1 -0
  512. package/externalABIs/NodeInterfaceABI.json.mjs +280 -0
  513. package/externalABIs/index.cjs +1 -1
  514. package/externalABIs/index.d.ts +25 -79
  515. package/externalABIs/index.mjs +18 -20
  516. package/externalABIs/swapAbi.cjs +1 -0
  517. package/externalABIs/{BeefyZapAbi.json.mjs → swapAbi.mjs} +161 -81
  518. package/functions/connectors.types.d.ts +14 -0
  519. package/functions/index.d.ts +1 -1
  520. package/functions/pre-transaction/addressTableLookup.cjs +1 -0
  521. package/functions/pre-transaction/addressTableLookup.d.ts +4 -0
  522. package/functions/pre-transaction/addressTableLookup.mjs +44 -0
  523. package/functions/pre-transaction/constructAdminData.cjs +1 -0
  524. package/functions/pre-transaction/constructAdminData.d.ts +3 -0
  525. package/functions/pre-transaction/constructAdminData.mjs +33 -0
  526. package/functions/pre-transaction/convert-okx-instructions.cjs +1 -0
  527. package/functions/pre-transaction/convert-okx-instructions.d.ts +12 -0
  528. package/functions/pre-transaction/convert-okx-instructions.mjs +30 -0
  529. package/functions/pre-transaction/getExternalSwapAddress.cjs +1 -1
  530. package/functions/pre-transaction/getExternalSwapAddress.mjs +9 -6
  531. package/functions/pre-transaction/getFeeStructure.cjs +1 -1
  532. package/functions/pre-transaction/getFeeStructure.d.ts +2 -2
  533. package/functions/pre-transaction/getFeeStructure.mjs +8 -9
  534. package/functions/pre-transaction/getFlatFees.cjs +1 -1
  535. package/functions/pre-transaction/getFlatFees.d.ts +2 -2
  536. package/functions/pre-transaction/getFlatFees.mjs +43 -166
  537. package/functions/pre-transaction/getSolanaCalldataHash.cjs +1 -0
  538. package/functions/pre-transaction/getSolanaCalldataHash.d.ts +4 -0
  539. package/functions/pre-transaction/getSolanaCalldataHash.mjs +36 -0
  540. package/functions/pre-transaction/getVolatileTransferAmount.cjs +1 -0
  541. package/functions/pre-transaction/getVolatileTransferAmount.d.ts +9 -0
  542. package/functions/pre-transaction/getVolatileTransferAmount.mjs +53 -0
  543. package/functions/pre-transaction/index.d.ts +12 -1
  544. package/functions/pre-transaction/initTokenLimitIfNeeded.cjs +1 -0
  545. package/functions/pre-transaction/initTokenLimitIfNeeded.d.ts +3 -0
  546. package/functions/pre-transaction/initTokenLimitIfNeeded.mjs +20 -0
  547. package/functions/pre-transaction/interaction-to-action.cjs +1 -1
  548. package/functions/pre-transaction/interaction-to-action.d.ts +2 -2
  549. package/functions/pre-transaction/interaction-to-action.mjs +6 -53
  550. package/functions/pre-transaction/merge-with-fee-structure-emporium.cjs +1 -0
  551. package/functions/pre-transaction/merge-with-fee-structure-emporium.d.ts +3 -0
  552. package/functions/pre-transaction/merge-with-fee-structure-emporium.mjs +24 -0
  553. package/functions/pre-transaction/merge-with-fee-structure.cjs +1 -1
  554. package/functions/pre-transaction/merge-with-fee-structure.mjs +15 -17
  555. package/functions/pre-transaction/outputApprovalDataProcessing.cjs +1 -1
  556. package/functions/pre-transaction/outputApprovalDataProcessing.d.ts +1 -0
  557. package/functions/pre-transaction/outputApprovalDataProcessing.mjs +32 -35
  558. package/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
  559. package/functions/pre-transaction/outputUtxoProcessing.d.ts +1 -1
  560. package/functions/pre-transaction/outputUtxoProcessing.mjs +31 -18
  561. package/functions/pre-transaction/process-gas-estimates.cjs +1 -1
  562. package/functions/pre-transaction/process-gas-estimates.d.ts +2 -2
  563. package/functions/pre-transaction/process-gas-estimates.mjs +9 -9
  564. package/functions/pre-transaction/recipientUtxoProcessing.cjs +1 -0
  565. package/functions/pre-transaction/recipientUtxoProcessing.d.ts +3 -0
  566. package/functions/pre-transaction/recipientUtxoProcessing.mjs +36 -0
  567. package/functions/pre-transaction/sendInitNullifiersTransaction.cjs +1 -0
  568. package/functions/pre-transaction/sendInitNullifiersTransaction.d.ts +11 -0
  569. package/functions/pre-transaction/sendInitNullifiersTransaction.mjs +41 -0
  570. package/functions/pre-transaction/sendV0Transaction.cjs +1 -0
  571. package/functions/pre-transaction/sendV0Transaction.d.ts +22 -0
  572. package/functions/pre-transaction/sendV0Transaction.mjs +121 -0
  573. package/functions/pre-transaction/solana-public-signals.cjs +1 -0
  574. package/functions/pre-transaction/solana-public-signals.d.ts +19 -0
  575. package/functions/pre-transaction/solana-public-signals.mjs +60 -0
  576. package/functions/pre-transaction/solana.cjs +1 -0
  577. package/functions/pre-transaction/solana.d.ts +17 -0
  578. package/functions/pre-transaction/solana.mjs +96 -0
  579. package/functions/pre-transaction/solanaTransfer.utils.cjs +1 -0
  580. package/functions/pre-transaction/solanaTransfer.utils.d.ts +6 -0
  581. package/functions/pre-transaction/solanaTransfer.utils.mjs +38 -0
  582. package/functions/pre-transaction/store-instructions.cjs +1 -0
  583. package/functions/pre-transaction/store-instructions.d.ts +4 -0
  584. package/functions/pre-transaction/store-instructions.mjs +9 -0
  585. package/functions/pre-transaction/store-proof.cjs +1 -0
  586. package/functions/pre-transaction/store-proof.d.ts +7 -0
  587. package/functions/pre-transaction/store-proof.mjs +55 -0
  588. package/functions/private-wallet/emporium.helpers.cjs +1 -1
  589. package/functions/private-wallet/emporium.helpers.d.ts +20 -7
  590. package/functions/private-wallet/emporium.helpers.mjs +171 -95
  591. package/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
  592. package/functions/private-wallet/emporium.swap.helpers.d.ts +3 -1
  593. package/functions/private-wallet/emporium.swap.helpers.mjs +134 -69
  594. package/functions/private-wallet/index.d.ts +0 -1
  595. package/functions/snarkjs/common.snarkjs.cjs +1 -1
  596. package/functions/snarkjs/common.snarkjs.d.ts +5 -1
  597. package/functions/snarkjs/common.snarkjs.mjs +70 -69
  598. package/functions/snarkjs/constant.cjs +1 -1
  599. package/functions/snarkjs/constant.d.ts +64 -6
  600. package/functions/snarkjs/constant.mjs +93 -29
  601. package/functions/snarkjs/constructEmporiumProof.cjs +1 -1
  602. package/functions/snarkjs/constructEmporiumProof.d.ts +7 -6
  603. package/functions/snarkjs/constructEmporiumProof.mjs +146 -149
  604. package/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
  605. package/functions/snarkjs/constructGeneralZkProof.d.ts +4 -4
  606. package/functions/snarkjs/constructGeneralZkProof.mjs +115 -118
  607. package/functions/snarkjs/constructSolanaZkProof.cjs +1 -0
  608. package/functions/snarkjs/constructSolanaZkProof.d.ts +13 -0
  609. package/functions/snarkjs/constructSolanaZkProof.mjs +105 -0
  610. package/functions/snarkjs/fetchMerkleTreeSiblings.cjs +1 -0
  611. package/functions/snarkjs/fetchMerkleTreeSiblings.d.ts +11 -0
  612. package/functions/snarkjs/fetchMerkleTreeSiblings.mjs +22 -0
  613. package/functions/snarkjs/generateCircomData.cjs +1 -1
  614. package/functions/snarkjs/generateCircomData.d.ts +1 -1
  615. package/functions/snarkjs/generateCircomData.mjs +23 -23
  616. package/functions/snarkjs/generateZkProof.cjs +1 -1
  617. package/functions/snarkjs/generateZkProof.mjs +13 -4
  618. package/functions/snarkjs/generateZkProofEnclave.cjs +1 -1
  619. package/functions/snarkjs/generateZkProofEnclave.mjs +13 -12
  620. package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.cjs +1 -0
  621. package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.d.ts +13 -0
  622. package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +92 -0
  623. package/functions/snarkjs/getZKFiles.cjs +1 -1
  624. package/functions/snarkjs/getZKFiles.mjs +13 -13
  625. package/functions/snarkjs/index.d.ts +1 -0
  626. package/functions/utils/addresses.cjs +1 -1
  627. package/functions/utils/addresses.d.ts +2 -1
  628. package/functions/utils/addresses.mjs +21 -15
  629. package/functions/utils/amounts.utils.cjs +1 -1
  630. package/functions/utils/amounts.utils.d.ts +3 -0
  631. package/functions/utils/amounts.utils.mjs +54 -28
  632. package/functions/utils/bytes32.utils.cjs +1 -0
  633. package/functions/utils/bytes32.utils.d.ts +2 -0
  634. package/functions/utils/bytes32.utils.mjs +10 -0
  635. package/functions/utils/cacheDevice.utils.cjs +1 -1
  636. package/functions/utils/cacheDevice.utils.mjs +8 -5
  637. package/functions/utils/cacheFunctions.cjs +1 -1
  638. package/functions/utils/cacheFunctions.mjs +53 -52
  639. package/functions/utils/caseInsensitive.utils.cjs +1 -1
  640. package/functions/utils/caseInsensitive.utils.d.ts +1 -1
  641. package/functions/utils/caseInsensitive.utils.mjs +3 -3
  642. package/functions/utils/convertEmporiumOpToCallInfo.cjs +1 -1
  643. package/functions/utils/convertEmporiumOpToCallInfo.d.ts +1 -1
  644. package/functions/utils/convertEmporiumOpToCallInfo.mjs +6 -5
  645. package/functions/utils/convertIntegrationProviderToExternalActionId.cjs +1 -1
  646. package/functions/utils/convertIntegrationProviderToExternalActionId.mjs +5 -4
  647. package/functions/utils/create-provider.cjs +1 -1
  648. package/functions/utils/create-provider.d.ts +4 -0
  649. package/functions/utils/create-provider.mjs +9 -2
  650. package/functions/utils/encodeTokenWithId.cjs +1 -1
  651. package/functions/utils/encodeTokenWithId.d.ts +1 -1
  652. package/functions/utils/encodeTokenWithId.mjs +6 -2
  653. package/functions/utils/encryptInputForEnclave.cjs +1 -1
  654. package/functions/utils/encryptInputForEnclave.mjs +22 -21
  655. package/functions/utils/erc20tokenFunctions.cjs +1 -1
  656. package/functions/utils/erc20tokenFunctions.d.ts +7 -2
  657. package/functions/utils/erc20tokenFunctions.mjs +54 -21
  658. package/functions/utils/ethers-formatter.utils.cjs +1 -0
  659. package/functions/utils/ethers-formatter.utils.d.ts +5 -0
  660. package/functions/utils/ethers-formatter.utils.mjs +59 -0
  661. package/functions/utils/evmNetworkFunctions.cjs +1 -1
  662. package/functions/utils/evmNetworkFunctions.mjs +10 -7
  663. package/functions/utils/external-action.utils.cjs +1 -1
  664. package/functions/utils/external-action.utils.d.ts +0 -5
  665. package/functions/utils/external-action.utils.mjs +8 -56
  666. package/functions/utils/fees.utils.cjs +1 -1
  667. package/functions/utils/fees.utils.d.ts +3 -0
  668. package/functions/utils/fees.utils.mjs +29 -8
  669. package/functions/utils/get-hinkal-approvals.cjs +1 -0
  670. package/functions/utils/get-hinkal-approvals.d.ts +3 -0
  671. package/functions/utils/get-hinkal-approvals.mjs +38 -0
  672. package/functions/utils/get-signature-header.cjs +1 -0
  673. package/functions/utils/get-signature-header.d.ts +5 -0
  674. package/functions/utils/get-signature-header.mjs +8 -0
  675. package/functions/utils/getBlockExplorerUrl.cjs +1 -1
  676. package/functions/utils/getBlockExplorerUrl.mjs +3 -3
  677. package/functions/utils/getDataFromTransaction.cjs +1 -1
  678. package/functions/utils/getDataFromTransaction.d.ts +3 -4
  679. package/functions/utils/getDataFromTransaction.mjs +25 -44
  680. package/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -1
  681. package/functions/utils/getRecipientInfoFromUserKeys.d.ts +0 -1
  682. package/functions/utils/getRecipientInfoFromUserKeys.mjs +10 -13
  683. package/functions/utils/getUtxosFromReceipt.utils.cjs +1 -0
  684. package/functions/utils/getUtxosFromReceipt.utils.d.ts +4 -0
  685. package/functions/utils/getUtxosFromReceipt.utils.mjs +29 -0
  686. package/functions/utils/getUtxosFromReceiptSolana.cjs +1 -0
  687. package/functions/utils/getUtxosFromReceiptSolana.d.ts +5 -0
  688. package/functions/utils/getUtxosFromReceiptSolana.mjs +19 -0
  689. package/functions/utils/inLogicMetadata.cjs +1 -0
  690. package/functions/utils/inLogicMetadata.d.ts +2 -0
  691. package/functions/utils/inLogicMetadata.mjs +8 -0
  692. package/functions/utils/index.d.ts +16 -2
  693. package/functions/utils/involves-permit2-op.cjs +1 -1
  694. package/functions/utils/involves-permit2-op.d.ts +8 -1
  695. package/functions/utils/involves-permit2-op.mjs +7 -3
  696. package/functions/utils/ipfs.cjs +1 -0
  697. package/functions/utils/ipfs.d.ts +8 -0
  698. package/functions/utils/ipfs.mjs +25 -0
  699. package/functions/utils/is-valid-url.cjs +1 -0
  700. package/functions/utils/is-valid-url.d.ts +1 -0
  701. package/functions/utils/is-valid-url.mjs +4 -0
  702. package/functions/utils/lifi.utils.d.ts +1 -0
  703. package/functions/utils/merkleTree.utils.cjs +1 -1
  704. package/functions/utils/merkleTree.utils.mjs +7 -6
  705. package/functions/utils/mutexes.utils.cjs +1 -0
  706. package/functions/utils/mutexes.utils.d.ts +2 -0
  707. package/functions/utils/mutexes.utils.mjs +5 -0
  708. package/functions/utils/networks.utils.cjs +1 -0
  709. package/functions/utils/networks.utils.d.ts +1 -0
  710. package/functions/utils/networks.utils.mjs +21 -0
  711. package/functions/utils/nftTokenFunctions.cjs +1 -0
  712. package/functions/utils/nftTokenFunctions.d.ts +2 -0
  713. package/functions/utils/nftTokenFunctions.mjs +40 -0
  714. package/functions/utils/postToOffscreen.cjs +1 -0
  715. package/functions/utils/postToOffscreen.d.ts +2 -0
  716. package/functions/utils/postToOffscreen.mjs +6 -0
  717. package/functions/utils/prepareHinkal.cjs +1 -0
  718. package/functions/utils/prepareHinkal.d.ts +14 -2
  719. package/functions/utils/prepareHinkal.mjs +88 -0
  720. package/functions/utils/publicBalance.utils.cjs +1 -1
  721. package/functions/utils/publicBalance.utils.d.ts +5 -3
  722. package/functions/utils/publicBalance.utils.mjs +95 -15
  723. package/functions/utils/solanaMint.utils.cjs +1 -0
  724. package/functions/utils/solanaMint.utils.d.ts +10 -0
  725. package/functions/utils/solanaMint.utils.mjs +14 -0
  726. package/functions/utils/string.utils.cjs +1 -1
  727. package/functions/utils/string.utils.d.ts +3 -0
  728. package/functions/utils/string.utils.mjs +10 -4
  729. package/functions/utils/time.utils.cjs +1 -1
  730. package/functions/utils/time.utils.d.ts +11 -0
  731. package/functions/utils/time.utils.mjs +52 -4
  732. package/functions/utils/trimFieldValues.cjs +1 -0
  733. package/functions/utils/trimFieldValues.d.ts +4 -0
  734. package/functions/utils/trimFieldValues.mjs +17 -0
  735. package/functions/utils/userAgent.cjs +1 -1
  736. package/functions/utils/userAgent.d.ts +2 -1
  737. package/functions/utils/userAgent.mjs +23 -11
  738. package/functions/utils/walletBalances.utils.cjs +1 -0
  739. package/functions/utils/walletBalances.utils.d.ts +17 -0
  740. package/functions/utils/walletBalances.utils.mjs +42 -0
  741. package/functions/web3/EIP-712.cjs +1 -0
  742. package/functions/web3/EIP-712.d.ts +23 -0
  743. package/functions/web3/EIP-712.mjs +113 -0
  744. package/functions/web3/connectors.utils.cjs +1 -0
  745. package/functions/web3/connectors.utils.d.ts +6 -0
  746. package/functions/web3/connectors.utils.mjs +23 -0
  747. package/functions/web3/events/balanceChangedCustomHandler.cjs +1 -1
  748. package/functions/web3/events/balanceChangedCustomHandler.mjs +2 -3
  749. package/functions/web3/events/balanceChangedHandler.cjs +1 -1
  750. package/functions/web3/events/balanceChangedHandler.mjs +4 -5
  751. package/functions/web3/events/getApprovedBalance.cjs +1 -1
  752. package/functions/web3/events/getApprovedBalance.mjs +42 -68
  753. package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
  754. package/functions/web3/events/getInputUtxoAndBalance.d.ts +7 -6
  755. package/functions/web3/events/getInputUtxoAndBalance.mjs +154 -119
  756. package/functions/web3/events/getInputUtxosEnclave.cjs +1 -0
  757. package/functions/web3/events/getInputUtxosEnclave.d.ts +8 -0
  758. package/functions/web3/events/getInputUtxosEnclave.mjs +47 -0
  759. package/functions/web3/events/getShieldedBalance.cjs +2 -2
  760. package/functions/web3/events/getShieldedBalance.d.ts +2 -2
  761. package/functions/web3/events/getShieldedBalance.mjs +78 -68
  762. package/functions/web3/events/getTransactionLogEvents.cjs +1 -0
  763. package/functions/web3/events/getTransactionLogEvents.d.ts +13 -0
  764. package/functions/web3/events/getTransactionLogEvents.mjs +75 -0
  765. package/functions/web3/events/index.d.ts +1 -0
  766. package/functions/web3/fetchSolanaMerkleTreeRootHash.cjs +1 -0
  767. package/functions/web3/fetchSolanaMerkleTreeRootHash.d.ts +4 -0
  768. package/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +45 -0
  769. package/functions/web3/functionCalls/accessTokenCalls.cjs +1 -1
  770. package/functions/web3/functionCalls/accessTokenCalls.d.ts +3 -2
  771. package/functions/web3/functionCalls/accessTokenCalls.mjs +24 -21
  772. package/functions/web3/functionCalls/approveToken.cjs +1 -1
  773. package/functions/web3/functionCalls/approveToken.mjs +21 -19
  774. package/functions/web3/functionCalls/constructBatchCall.cjs +1 -0
  775. package/functions/web3/functionCalls/constructBatchCall.d.ts +5 -0
  776. package/functions/web3/functionCalls/constructBatchCall.mjs +21 -0
  777. package/functions/web3/functionCalls/estimateGasRelayer.cjs +1 -1
  778. package/functions/web3/functionCalls/estimateGasRelayer.d.ts +2 -1
  779. package/functions/web3/functionCalls/estimateGasRelayer.mjs +15 -14
  780. package/functions/web3/functionCalls/transactCallDirect.cjs +1 -1
  781. package/functions/web3/functionCalls/transactCallDirect.mjs +38 -24
  782. package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
  783. package/functions/web3/functionCalls/transactCallRelayer.d.ts +22 -2
  784. package/functions/web3/functionCalls/transactCallRelayer.mjs +86 -32
  785. package/functions/web3/getContractMetadata.cjs +1 -1
  786. package/functions/web3/getContractMetadata.mjs +24 -20
  787. package/functions/web3/getPublicAddressBalance.cjs +1 -0
  788. package/functions/web3/getPublicAddressBalance.d.ts +2 -0
  789. package/functions/web3/getPublicAddressBalance.mjs +9 -0
  790. package/functions/web3/getTokenHolder.cjs +1 -0
  791. package/functions/web3/getTokenHolder.d.ts +1 -0
  792. package/functions/web3/getTokenHolder.mjs +73 -0
  793. package/functions/web3/index.d.ts +7 -0
  794. package/functions/web3/lifiAPI.cjs +1 -0
  795. package/functions/web3/lifiAPI.d.ts +6 -0
  796. package/functions/web3/lifiAPI.mjs +30 -0
  797. package/functions/web3/odosAPI.cjs +1 -1
  798. package/functions/web3/odosAPI.d.ts +1 -1
  799. package/functions/web3/odosAPI.mjs +30 -21
  800. package/functions/web3/okxAPI.cjs +1 -0
  801. package/functions/web3/okxAPI.d.ts +8 -0
  802. package/functions/web3/okxAPI.mjs +43 -0
  803. package/functions/web3/oneInchAPI.cjs +1 -1
  804. package/functions/web3/oneInchAPI.d.ts +1 -1
  805. package/functions/web3/oneInchAPI.mjs +30 -20
  806. package/functions/web3/runContractFunction.cjs +1 -1
  807. package/functions/web3/runContractFunction.mjs +33 -26
  808. package/functions/web3/signAndSendSerializedTransaction.cjs +1 -0
  809. package/functions/web3/signAndSendSerializedTransaction.d.ts +2 -0
  810. package/functions/web3/signAndSendSerializedTransaction.mjs +11 -0
  811. package/functions/web3/solana-wagmi-adapter.cjs +1 -0
  812. package/functions/web3/solana-wagmi-adapter.d.ts +3 -0
  813. package/functions/web3/solana-wagmi-adapter.mjs +29 -0
  814. package/functions/web3/uniswapAPI.cjs +1 -1
  815. package/functions/web3/uniswapAPI.mjs +36 -27
  816. package/index.cjs +1 -1
  817. package/index.d.ts +1 -0
  818. package/index.mjs +978 -779
  819. package/mutexes/index.d.ts +1 -0
  820. package/mutexes/mutex.cjs +1 -0
  821. package/mutexes/mutex.d.ts +2 -0
  822. package/mutexes/mutex.mjs +5 -0
  823. package/package.json +10 -3
  824. package/providers/CustomEthersProvider.cjs +1 -0
  825. package/providers/CustomEthersProvider.d.ts +10 -0
  826. package/providers/CustomEthersProvider.mjs +29 -0
  827. package/providers/CustomSolanaConnection.cjs +1 -0
  828. package/providers/CustomSolanaConnection.d.ts +4 -0
  829. package/providers/CustomSolanaConnection.mjs +33 -0
  830. package/providers/EthersProviderAdapter.cjs +1 -1
  831. package/providers/EthersProviderAdapter.d.ts +1 -2
  832. package/providers/EthersProviderAdapter.mjs +19 -21
  833. package/providers/SolanaProviderAdapter.cjs +1 -0
  834. package/providers/SolanaProviderAdapter.d.ts +44 -0
  835. package/providers/SolanaProviderAdapter.mjs +125 -0
  836. package/providers/WagmiProviderAdapter.cjs +1 -1
  837. package/providers/WagmiProviderAdapter.d.ts +5 -2
  838. package/providers/WagmiProviderAdapter.mjs +110 -56
  839. package/providers/prepareEthersHinkal.cjs +1 -1
  840. package/providers/prepareEthersHinkal.mjs +27 -15
  841. package/providers/prepareWagmiHinkal.cjs +1 -1
  842. package/providers/prepareWagmiHinkal.mjs +27 -15
  843. package/types/API.types.d.ts +0 -19
  844. package/types/IMultiThreadedUtxoUtils.d.ts +2 -2
  845. package/types/RewardUserEnums.cjs +1 -0
  846. package/types/RewardUserEnums.d.ts +11 -0
  847. package/types/RewardUserEnums.mjs +5 -0
  848. package/types/TransactionSimulator.types.d.ts +17 -3
  849. package/types/WeeklyAnalytics.types.d.ts +37 -0
  850. package/types/activities.types.cjs +1 -1
  851. package/types/activities.types.d.ts +34 -7
  852. package/types/activities.types.mjs +22 -10
  853. package/types/admin.types.cjs +1 -1
  854. package/types/admin.types.d.ts +42 -20
  855. package/types/admin.types.mjs +2 -3
  856. package/types/all-points.types.d.ts +7 -0
  857. package/types/approvals.types.cjs +1 -0
  858. package/types/approvals.types.d.ts +41 -0
  859. package/types/approvals.types.mjs +4 -0
  860. package/types/bridging.types.d.ts +29 -0
  861. package/types/brotherhood-user.types.d.ts +11 -0
  862. package/types/cache.types.cjs +1 -1
  863. package/types/cache.types.d.ts +26 -4
  864. package/types/cache.types.mjs +2 -2
  865. package/types/circom-data.types.d.ts +12 -0
  866. package/types/coingecko.types.d.ts +207 -0
  867. package/types/commitments.types.d.ts +12 -0
  868. package/types/confirmation-request.types.cjs +1 -0
  869. package/types/confirmation-request.types.d.ts +10 -0
  870. package/types/confirmation-request.types.mjs +4 -0
  871. package/types/connector.types.d.ts +4 -0
  872. package/types/contacts.types.d.ts +1 -0
  873. package/types/eip5792.types.cjs +1 -0
  874. package/types/eip5792.types.d.ts +33 -0
  875. package/types/eip5792.types.mjs +5 -0
  876. package/types/ethereum-network.types.cjs +1 -1
  877. package/types/ethereum-network.types.d.ts +21 -95
  878. package/types/ethereum-network.types.mjs +2 -2
  879. package/types/external-action.types.cjs +1 -1
  880. package/types/external-action.types.d.ts +4 -16
  881. package/types/external-action.types.mjs +2 -2
  882. package/types/generatePoints.cjs +1 -0
  883. package/types/generatePoints.d.ts +14 -0
  884. package/types/generatePoints.mjs +5 -0
  885. package/types/hinkal.types.cjs +1 -1
  886. package/types/hinkal.types.d.ts +24 -96
  887. package/types/hinkal.types.mjs +26 -33
  888. package/types/http.types.d.ts +8 -0
  889. package/types/index.d.ts +25 -8
  890. package/types/kyc.types.cjs +1 -1
  891. package/types/kyc.types.d.ts +5 -3
  892. package/types/kyc.types.mjs +3 -3
  893. package/types/message.types.d.ts +5 -0
  894. package/types/new-rewards.type.cjs +1 -0
  895. package/types/new-rewards.type.d.ts +156 -0
  896. package/types/new-rewards.type.mjs +7 -0
  897. package/types/offscreen.types.cjs +1 -0
  898. package/types/offscreen.types.d.ts +9 -0
  899. package/types/offscreen.types.mjs +4 -0
  900. package/types/okx.types.d.ts +57 -0
  901. package/types/presaleReferral.types.d.ts +4 -0
  902. package/types/proxy.types.d.ts +10 -0
  903. package/types/referral.types.d.ts +12 -0
  904. package/types/rewards.types.cjs +1 -1
  905. package/types/rewards.types.d.ts +15 -210
  906. package/types/rewards.types.mjs +3 -25
  907. package/types/routing.types.cjs +1 -0
  908. package/types/routing.types.d.ts +7 -0
  909. package/types/routing.types.mjs +4 -0
  910. package/types/sandbox.types.cjs +1 -1
  911. package/types/sandbox.types.d.ts +86 -21
  912. package/types/sandbox.types.mjs +2 -2
  913. package/types/scheduled-transactions.types.cjs +1 -0
  914. package/types/scheduled-transactions.types.d.ts +22 -0
  915. package/types/scheduled-transactions.types.mjs +4 -0
  916. package/types/session.types.d.ts +11 -0
  917. package/types/signature.types.d.ts +10 -0
  918. package/types/slippage.types.cjs +1 -1
  919. package/types/slippage.types.d.ts +1 -13
  920. package/types/slippage.types.mjs +2 -13
  921. package/types/solana.types.d.ts +75 -0
  922. package/types/tenderly.api.types.d.ts +37 -21
  923. package/types/token-prices.types.cjs +1 -0
  924. package/types/token-prices.types.d.ts +7 -0
  925. package/types/token-prices.types.mjs +9 -0
  926. package/types/token.types.d.ts +32 -8
  927. package/types/transactions.types.cjs +1 -1
  928. package/types/transactions.types.d.ts +12 -20
  929. package/types/transactions.types.mjs +5 -5
  930. package/types/wc.types.d.ts +4 -15
  931. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.cjs +1 -1
  932. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.mjs +1 -1
  933. package/webworker/snarkjsWorker/snarkjsWorkerLogic.cjs +1 -1
  934. package/webworker/snarkjsWorker/snarkjsWorkerLogic.mjs +28 -21
  935. package/webworker/utxoWorker/utxoWorker.types.d.ts +2 -0
  936. package/webworker/utxoWorker/utxoWorkerLauncher.cjs +1 -1
  937. package/webworker/utxoWorker/utxoWorkerLauncher.mjs +1 -1
  938. package/webworker/utxoWorker/utxoWorkerLogic.cjs +1 -1
  939. package/webworker/utxoWorker/utxoWorkerLogic.mjs +33 -31
  940. package/webworker/viteWorkerURL.constant.cjs +3 -3
  941. package/webworker/viteWorkerURL.constant.mjs +3 -3
  942. package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
  943. package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
  944. package/API/HinkalPointsCalls.cjs +0 -1
  945. package/API/HinkalPointsCalls.d.ts +0 -20
  946. package/API/HinkalPointsCalls.mjs +0 -15
  947. package/API/callBeefyGraphAPI.cjs +0 -1
  948. package/API/callBeefyGraphAPI.d.ts +0 -2
  949. package/API/callBeefyGraphAPI.mjs +0 -14
  950. package/API/callCurveAPI.cjs +0 -1
  951. package/API/callCurveAPI.d.ts +0 -9
  952. package/API/callCurveAPI.mjs +0 -160
  953. package/API/dataServerCalls.cjs +0 -1
  954. package/API/dataServerCalls.d.ts +0 -6
  955. package/API/dataServerCalls.mjs +0 -13
  956. package/API/fetchNullifiers.cjs +0 -1
  957. package/API/fetchNullifiers.d.ts +0 -5
  958. package/API/fetchNullifiers.mjs +0 -7
  959. package/API/getAxelarGasEstimate.cjs +0 -1
  960. package/API/getAxelarGasEstimate.d.ts +0 -5
  961. package/API/getAxelarGasEstimate.mjs +0 -14
  962. package/API/getConnextReceiveFee.cjs +0 -1
  963. package/API/getConnextReceiveFee.d.ts +0 -2
  964. package/API/getConnextReceiveFee.mjs +0 -7
  965. package/API/referralProgramCalls.cjs +0 -1
  966. package/API/referralProgramCalls.d.ts +0 -36
  967. package/API/referralProgramCalls.mjs +0 -35
  968. package/API/rewardsPointsCalls.cjs +0 -1
  969. package/API/rewardsPointsCalls.d.ts +0 -10
  970. package/API/rewardsPointsCalls.mjs +0 -15
  971. package/API/userVerifyTransactions.cjs +0 -1
  972. package/API/userVerifyTransactions.d.ts +0 -19
  973. package/API/userVerifyTransactions.mjs +0 -21
  974. package/constants/axelar.constants.cjs +0 -1
  975. package/constants/axelar.constants.d.ts +0 -5
  976. package/constants/axelar.constants.mjs +0 -48
  977. package/constants/beefy.registry.cjs +0 -1
  978. package/constants/beefy.registry.d.ts +0 -8
  979. package/constants/beefy.registry.mjs +0 -24
  980. package/constants/crvCvx.registry.cjs +0 -1
  981. package/constants/crvCvx.registry.d.ts +0 -20
  982. package/constants/crvCvx.registry.mjs +0 -638
  983. package/constants/crvDynamic.registry.cjs +0 -1
  984. package/constants/crvDynamic.registry.d.ts +0 -1
  985. package/constants/crvDynamic.registry.mjs +0 -24
  986. package/constants/deploy-data/deploy-data-axelar1.json.cjs +0 -1
  987. package/constants/deploy-data/deploy-data-axelar1.json.mjs +0 -4329
  988. package/constants/deploy-data/deploy-data-axelar2.json.cjs +0 -1
  989. package/constants/deploy-data/deploy-data-axelar2.json.mjs +0 -4329
  990. package/constants/lido.constants.cjs +0 -1
  991. package/constants/lido.constants.d.ts +0 -10
  992. package/constants/lido.constants.mjs +0 -13
  993. package/constants/pendle.registry.cjs +0 -1
  994. package/constants/pendle.registry.d.ts +0 -21
  995. package/constants/pendle.registry.mjs +0 -253
  996. package/constants/token-data/tokenPricing.consts.cjs +0 -1
  997. package/constants/token-data/tokenPricing.consts.mjs +0 -6
  998. package/data-structures/Hinkal/hinkalActionBeefy.cjs +0 -1
  999. package/data-structures/Hinkal/hinkalActionBeefy.d.ts +0 -3
  1000. package/data-structures/Hinkal/hinkalActionBeefy.mjs +0 -80
  1001. package/data-structures/Hinkal/hinkalActionConvex.cjs +0 -1
  1002. package/data-structures/Hinkal/hinkalActionConvex.d.ts +0 -12
  1003. package/data-structures/Hinkal/hinkalActionConvex.mjs +0 -61
  1004. package/data-structures/Hinkal/hinkalActionCurve.cjs +0 -1
  1005. package/data-structures/Hinkal/hinkalActionCurve.d.ts +0 -12
  1006. package/data-structures/Hinkal/hinkalActionCurve.mjs +0 -93
  1007. package/data-structures/Hinkal/hinkalActionLidoEth.cjs +0 -1
  1008. package/data-structures/Hinkal/hinkalActionLidoEth.d.ts +0 -4
  1009. package/data-structures/Hinkal/hinkalActionLidoEth.mjs +0 -72
  1010. package/data-structures/Hinkal/hinkalActionPendle.cjs +0 -1
  1011. package/data-structures/Hinkal/hinkalActionPendle.d.ts +0 -3
  1012. package/data-structures/Hinkal/hinkalActionPendle.mjs +0 -119
  1013. package/data-structures/Hinkal/hinkalActionPendleLP.cjs +0 -1
  1014. package/data-structures/Hinkal/hinkalActionPendleLP.d.ts +0 -7
  1015. package/data-structures/Hinkal/hinkalActionPendleLP.mjs +0 -81
  1016. package/data-structures/Hinkal/hinkalActionStake.cjs +0 -1
  1017. package/data-structures/Hinkal/hinkalActionStake.mjs +0 -122
  1018. package/data-structures/Hinkal/hinkalActionVolatile.cjs +0 -1
  1019. package/data-structures/Hinkal/hinkalActionVolatile.d.ts +0 -3
  1020. package/data-structures/Hinkal/hinkalActionVolatile.mjs +0 -89
  1021. package/data-structures/Hinkal/hinkalDeploySubAccount.cjs +0 -1
  1022. package/data-structures/Hinkal/hinkalDeploySubAccount.d.ts +0 -3
  1023. package/data-structures/Hinkal/hinkalDeploySubAccount.mjs +0 -15
  1024. package/data-structures/event-service/AbstractAccessTokenSnapshotService.cjs +0 -1
  1025. package/data-structures/event-service/AbstractApprovalsSnapshotService.cjs +0 -1
  1026. package/data-structures/event-service/AbstractApprovalsSnapshotService.mjs +0 -104
  1027. package/data-structures/event-service/AbstractCommitmentsSnapshotService.cjs +0 -1
  1028. package/data-structures/event-service/AbstractEventService.cjs +0 -1
  1029. package/data-structures/event-service/AbstractEventService.d.ts +0 -31
  1030. package/data-structures/event-service/AbstractEventService.mjs +0 -95
  1031. package/data-structures/event-service/AbstractNullifierSnapshotService.cjs +0 -1
  1032. package/data-structures/event-service/AbstractNullifierSnapshotService.mjs +0 -59
  1033. package/data-structures/event-service/AbstractSnapshotService.cjs +0 -1
  1034. package/data-structures/event-service/AbstractSnapshotService.mjs +0 -35
  1035. package/data-structures/snapshot/ClientAccessTokenSnapshotService.cjs +0 -1
  1036. package/data-structures/snapshot/ClientAccessTokenSnapshotService.mjs +0 -32
  1037. package/data-structures/snapshot/ClientApprovalsSnapshotService.cjs +0 -1
  1038. package/data-structures/snapshot/ClientApprovalsSnapshotService.mjs +0 -23
  1039. package/data-structures/snapshot/ClientCommitmentsSnapshotService.cjs +0 -1
  1040. package/data-structures/snapshot/ClientCommitmentsSnapshotService.d.ts +0 -7
  1041. package/data-structures/snapshot/ClientCommitmentsSnapshotService.mjs +0 -31
  1042. package/data-structures/snapshot/ClientNullifierSnapshotService.cjs +0 -1
  1043. package/data-structures/snapshot/ClientNullifierSnapshotService.d.ts +0 -7
  1044. package/data-structures/snapshot/ClientNullifierSnapshotService.mjs +0 -28
  1045. package/data-structures/transactions-manager/TransactionsManager.cjs +0 -1
  1046. package/data-structures/transactions-manager/TransactionsManager.d.ts +0 -28
  1047. package/data-structures/transactions-manager/TransactionsManager.mjs +0 -180
  1048. package/data-structures/transactions-manager/history/getBeefyData.cjs +0 -1
  1049. package/data-structures/transactions-manager/history/getBeefyData.d.ts +0 -3
  1050. package/data-structures/transactions-manager/history/getBeefyData.mjs +0 -49
  1051. package/data-structures/transactions-manager/history/getConvexData.cjs +0 -1
  1052. package/data-structures/transactions-manager/history/getConvexData.d.ts +0 -6
  1053. package/data-structures/transactions-manager/history/getConvexData.mjs +0 -38
  1054. package/data-structures/transactions-manager/history/getCurveData.cjs +0 -1
  1055. package/data-structures/transactions-manager/history/getCurveData.d.ts +0 -6
  1056. package/data-structures/transactions-manager/history/getCurveData.mjs +0 -78
  1057. package/data-structures/transactions-manager/history/getDepositData.cjs +0 -1
  1058. package/data-structures/transactions-manager/history/getDepositData.d.ts +0 -2
  1059. package/data-structures/transactions-manager/history/getDepositData.mjs +0 -12
  1060. package/data-structures/transactions-manager/history/getLidoData.cjs +0 -1
  1061. package/data-structures/transactions-manager/history/getLidoData.d.ts +0 -10
  1062. package/data-structures/transactions-manager/history/getLidoData.mjs +0 -26
  1063. package/data-structures/transactions-manager/history/getPendleData.cjs +0 -1
  1064. package/data-structures/transactions-manager/history/getPendleData.d.ts +0 -3
  1065. package/data-structures/transactions-manager/history/getPendleData.mjs +0 -40
  1066. package/data-structures/transactions-manager/history/getSwapData.cjs +0 -1
  1067. package/data-structures/transactions-manager/history/getSwapData.d.ts +0 -3
  1068. package/data-structures/transactions-manager/history/getSwapData.mjs +0 -19
  1069. package/data-structures/transactions-manager/history/getTxDetails.cjs +0 -1
  1070. package/data-structures/transactions-manager/history/getTxDetails.d.ts +0 -3
  1071. package/data-structures/transactions-manager/history/getTxDetails.mjs +0 -57
  1072. package/data-structures/transactions-manager/history/getVolatileData.cjs +0 -1
  1073. package/data-structures/transactions-manager/history/getVolatileData.d.ts +0 -32
  1074. package/data-structures/transactions-manager/history/getVolatileData.mjs +0 -56
  1075. package/data-structures/transactions-manager/history/history.utils.cjs +0 -1
  1076. package/data-structures/transactions-manager/history/history.utils.d.ts +0 -8
  1077. package/data-structures/transactions-manager/history/history.utils.mjs +0 -8
  1078. package/data-structures/volatile-helper/VolatileHelper.cjs +0 -1
  1079. package/data-structures/volatile-helper/VolatileHelper.d.ts +0 -57
  1080. package/data-structures/volatile-helper/VolatileHelper.mjs +0 -161
  1081. package/data-structures/volatile-helper/index.d.ts +0 -1
  1082. package/externalABIs/BeefyRouterAbi.json.cjs +0 -1
  1083. package/externalABIs/BeefyRouterAbi.json.mjs +0 -1025
  1084. package/externalABIs/BeefyStrategyAbi.json.cjs +0 -1
  1085. package/externalABIs/BeefyStrategyAbi.json.mjs +0 -1426
  1086. package/externalABIs/BeefyVaultAbi.json.cjs +0 -1
  1087. package/externalABIs/BeefyVaultAbi.json.mjs +0 -573
  1088. package/externalABIs/BeefyZapAbi.json.cjs +0 -1
  1089. package/externalABIs/BeefyZapOneInchAbi.json.cjs +0 -1
  1090. package/externalABIs/ConvexBoosterAbi.json.cjs +0 -1
  1091. package/externalABIs/ConvexBoosterAbi.json.mjs +0 -677
  1092. package/externalABIs/ConvexBoosterAbiMainnet.json.cjs +0 -1
  1093. package/externalABIs/ConvexBoosterAbiMainnet.json.mjs +0 -1005
  1094. package/externalABIs/ConvexRewardPoolAbi.json.cjs +0 -1
  1095. package/externalABIs/ConvexRewardPoolAbi.json.mjs +0 -886
  1096. package/externalABIs/CurveReadingWrapperAbi.json.cjs +0 -1
  1097. package/externalABIs/CurveReadingWrapperAbi.json.mjs +0 -1425
  1098. package/externalABIs/CurveWrappedMainPool.json.cjs +0 -1
  1099. package/externalABIs/CurveWrappedMainPool.json.mjs +0 -1139
  1100. package/externalABIs/CurveZap.json.cjs +0 -1
  1101. package/externalABIs/CurveZap.json.mjs +0 -265
  1102. package/externalABIs/CvxCrvUtilities.json.cjs +0 -1
  1103. package/externalABIs/CvxCrvUtilities.json.mjs +0 -267
  1104. package/externalABIs/ERC20.d.ts +0 -1
  1105. package/externalABIs/LidoStEthAbi.json.cjs +0 -1
  1106. package/externalABIs/LidoStEthAbi.json.mjs +0 -1603
  1107. package/externalABIs/LidoStMaticAbi.json.cjs +0 -1
  1108. package/externalABIs/LidoStMaticAbi.json.mjs +0 -1764
  1109. package/externalABIs/LidoStakeManagerAbi.json.cjs +0 -1
  1110. package/externalABIs/LidoStakeManagerAbi.json.mjs +0 -2082
  1111. package/externalABIs/LidoWithdrawalQueueERC721Abi.json.cjs +0 -1
  1112. package/externalABIs/LidoWithdrawalQueueERC721Abi.json.mjs +0 -2030
  1113. package/externalABIs/LidoWstEthAbi.json.cjs +0 -1
  1114. package/externalABIs/PendleRouterAbi.json.cjs +0 -1
  1115. package/externalABIs/PendleRouterAbi.json.mjs +0 -176
  1116. package/externalABIs/PoLidoNftAbi.json.cjs +0 -1
  1117. package/externalABIs/PoLidoNftAbi.json.mjs +0 -701
  1118. package/externalABIs/crvFRAX.d.ts +0 -38
  1119. package/functions/pre-transaction/processAmountChanges.cjs +0 -1
  1120. package/functions/pre-transaction/processAmountChanges.d.ts +0 -12
  1121. package/functions/pre-transaction/processAmountChanges.mjs +0 -228
  1122. package/functions/private-wallet/smartContractWalletCalculator.cjs +0 -1
  1123. package/functions/private-wallet/smartContractWalletCalculator.d.ts +0 -5
  1124. package/functions/private-wallet/smartContractWalletCalculator.mjs +0 -25
  1125. package/functions/protocols/convex.protocols.cjs +0 -1
  1126. package/functions/protocols/convex.protocols.d.ts +0 -1
  1127. package/functions/protocols/convex.protocols.mjs +0 -28
  1128. package/functions/protocols/curve.protocols.cjs +0 -1
  1129. package/functions/protocols/curve.protocols.d.ts +0 -1
  1130. package/functions/protocols/curve.protocols.mjs +0 -22
  1131. package/functions/protocols/index.d.ts +0 -3
  1132. package/functions/protocols/pendle.helpers.cjs +0 -1
  1133. package/functions/protocols/pendle.helpers.d.ts +0 -8
  1134. package/functions/protocols/pendle.helpers.mjs +0 -112
  1135. package/functions/utils/axelar.utils.cjs +0 -1
  1136. package/functions/utils/axelar.utils.d.ts +0 -3
  1137. package/functions/utils/axelar.utils.mjs +0 -45
  1138. package/functions/utils/enum.utils.cjs +0 -1
  1139. package/functions/utils/enum.utils.mjs +0 -14
  1140. package/functions/utils/volatile-patcher.utils.cjs +0 -1
  1141. package/functions/utils/volatile-patcher.utils.d.ts +0 -1
  1142. package/functions/utils/volatile-patcher.utils.mjs +0 -18
  1143. package/types/axelar.types.d.ts +0 -14
  1144. package/types/beefy.types.cjs +0 -1
  1145. package/types/beefy.types.d.ts +0 -11
  1146. package/types/beefy.types.mjs +0 -21
  1147. package/types/connext.types.d.ts +0 -13
  1148. package/types/curve.types.cjs +0 -1
  1149. package/types/curve.types.d.ts +0 -133
  1150. package/types/curve.types.mjs +0 -24
  1151. package/types/earlyAccessCode.types.d.ts +0 -4
  1152. package/types/hinkalTvl.types.d.ts +0 -4
  1153. package/types/pendle.api.types.d.ts +0 -233
  1154. package/types/pendle.types.cjs +0 -1
  1155. package/types/pendle.types.d.ts +0 -222
  1156. package/types/pendle.types.mjs +0 -15
  1157. package/types/time.types.cjs +0 -1
  1158. package/types/time.types.d.ts +0 -31
  1159. package/types/time.types.mjs +0 -58
@@ -1,29 +1,16 @@
1
- import { lowerCaseIncludes as r } from "../../functions/utils/caseInsensitive.utils.mjs";
2
- import { wstEthSymbol as a, stMaticSymbol as o } from "../../constants/lido.constants.mjs";
3
- import { zeroAddress as l } from "../../constants/protocol.constants.mjs";
4
- class h {
5
- static isCurveLPToken = (s, e) => r(e, s.erc20TokenAddress);
6
- static isCurveStakeToken = (s) => s.name.includes("Gauge") && s.symbol.includes("-gauge");
7
- static isConvexToken = (s) => s.name.includes("Convex") && s.symbol.includes("cvx");
8
- static isBeefyLpToken = (s) => s.name.startsWith("moo") && s.symbol.startsWith("moo");
9
- static isBeefyStakeToken = (s) => s.name.includes("-Boost") && s.symbol.includes("-Boost");
10
- static isLidoToken = (s) => s.symbol === a || s.symbol === o;
11
- static isCurveOrConvex = (s, e) => this.isCurveLPToken(s, e) || this.isCurveStakeToken(s) || this.isConvexToken(s);
12
- static isBeefyToken = (s) => this.isBeefyLpToken(s) || this.isBeefyStakeToken(s);
13
- static isStakeToken = (s) => this.isCurveStakeToken(s) || this.isConvexToken(s) || this.isBeefyStakeToken(s);
14
- static isPendleYtToken = (s) => s.name.startsWith("Pendle-YT-") && s.symbol.startsWith("Pendle-YT-");
15
- static isPendleLPToken = (s) => s.name.startsWith("Pendle-LP-") && s.symbol.startsWith("Pendle-LP-");
16
- static isPendleSyToken = (s) => s.name.startsWith("SY ") && s.symbol.includes("SY-");
17
- static isPendleNativeToken = (s) => {
18
- const e = s.name.startsWith("YT ") && s.symbol.includes("YT-"), i = this.isPendleSyToken(s), t = s.name.startsWith("PT ") && s.symbol.includes("PT-"), n = s.name.startsWith("LP ") && s.symbol.includes("LP-");
19
- return e || i || t || n;
20
- };
21
- static isPendleToken = (s) => this.isPendleYtToken(s) || this.isPendleLPToken(s) || this.isPendleNativeToken(s);
22
- static isAaveToken = (s) => s.aaveToken;
23
- static isKinzaToken = (s) => s.name.startsWith("Kinza");
24
- static isProtocolToken = (s, e) => this.isCurveLPToken(s, e) || this.isCurveStakeToken(s) || this.isConvexToken(s) || this.isBeefyLpToken(s) || this.isBeefyStakeToken(s) || this.isLidoToken(s) || this.isPendleToken(s) || this.isAaveToken(s);
25
- static isPotentiallyVolatile = (s) => s.erc20TokenAddress === l ? !1 : s.isVolatile || s.balanceStorageOffset === void 0 || s.allowanceStorageOffset === void 0;
1
+ import { zeroAddress as S } from "../../constants/protocol.constants.mjs";
2
+ import { isSolanaLike as k } from "../../constants/chains.constants.mjs";
3
+ class g {
4
+ static isBeefyStakeToken = (t) => t.name.includes("-Boost") && t.symbol.includes("-Boost");
5
+ static isStakeToken = (t) => this.isBeefyStakeToken(t);
6
+ static isAaveToken = (t) => t.aaveToken;
7
+ static isKinzaToken = (t) => t.name.startsWith("Kinza");
8
+ static isPotentiallyVolatile = (t) => t.erc20TokenAddress === S ? !1 : t.isVolatile || !k(t.chainId) && (t.balanceStorageOffset === void 0 || t.allowanceStorageOffset === void 0);
9
+ static isPotentiallySpamToken(t) {
10
+ const { name: e, symbol: o } = t, s = `${e} ${o}`, i = /(?:https?:\/\/|www\.)/i, n = /\.(?:com|io|app|org|net|co|xyz|link|site|top|in|ru|cn|me|biz|info|online|club|tech|to|cloud)(?=[^\w]|$)/i, c = /\b(?:t\.me|discord\.(?:gg|com)|twitter\.com|x\.com|telegram\.(?:me|org))\b/i, a = /@[^\s]+\.[^\s]+/i, r = /\p{Extended_Pictographic}/u, l = /[\u{1F1E6}-\u{1F1FF}]{2}/u, m = /[#*0-9]\uFE0F?\u20E3/u, E = i.test(s), u = n.test(s), d = c.test(s), T = a.test(s), f = r.test(s) || l.test(s) || m.test(s);
11
+ return E || u || d || T || f;
12
+ }
26
13
  }
27
14
  export {
28
- h as TokenChecker
15
+ g as TokenChecker
29
16
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../functions/utils/external-action.utils.cjs");require("../../../types/circom-data.types.cjs");const t=require("../../../types/external-action.types.cjs");require("../../../constants/vite.constants.cjs");require("../../../types/transactions.types.cjs");require("../../../types/curve.types.cjs");require("../../../types/activities.types.cjs");var r=(e=>(e[e.DEPOSIT=0]="DEPOSIT",e[e.WITHDRAW=1]="WITHDRAW",e[e.SWAP=2]="SWAP",e[e.BEEFY=3]="BEEFY",e[e.CURVE=4]="CURVE",e[e.CONVEX=5]="CONVEX",e[e.LIDO=6]="LIDO",e[e.PENDLE=7]="PENDLE",e[e.VOLATILE=8]="VOLATILE",e[e.UNKNOWN=9]="UNKNOWN",e))(r||{});const l=e=>{const n=e.externalActionId.toBigInt();switch(c.getExternalActionIdFromNumber(n)){case t.ExternalActionId.Transact:return e.amountChanges[0].toBigInt()>=0n?0:1;case t.ExternalActionId.Uniswap:case t.ExternalActionId.Odos:case t.ExternalActionId.OneInch:return 2;case t.ExternalActionId.Beefy:case t.ExternalActionId.BeefyStake:return 3;case t.ExternalActionId.Curve:case t.ExternalActionId.CurveDynamic:case t.ExternalActionId.CurveCRV:case t.ExternalActionId.CurveCRVRewards:return 4;case t.ExternalActionId.Convex:return 5;case t.ExternalActionId.LidoETH:case t.ExternalActionId.LidoMATIC:case t.ExternalActionId.LidoETHNFT:case t.ExternalActionId.LidoMATICNFT:return 6;case t.ExternalActionId.Pendle:return 7;case t.ExternalActionId.Volatile:return e.amountChanges.length===1?e.amountChanges[0].toBigInt()<0n?1:0:e.amountChanges.length===2?2:9;default:return 9}};exports.TransactionType=r;exports.externalActionToTransactionType=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var N=(W=>(W[W.DEPOSIT=0]="DEPOSIT",W[W.WITHDRAW=1]="WITHDRAW",W[W.SWAP=2]="SWAP",W[W.UNKNOWN=3]="UNKNOWN",W))(N||{});exports.TransactionType=N;
@@ -1,25 +1,10 @@
1
- import { BeefyAction, ConvexAction, CurveAction, HookDataType, LidoAction, PendleAction, TokenBalance } from '../../../types';
2
- import { BigNumber } from 'ethers';
3
- export type PastTransaction = {
4
- erc20TokenAddresses: string[];
5
- amountChanges: BigNumber[];
6
- externalActionId: BigNumber;
7
- externalActionMetadata: string;
8
- hookData: HookDataType;
9
- };
1
+ import { TokenBalance } from '../../../types';
10
2
  export declare enum TransactionType {
11
3
  DEPOSIT = 0,
12
4
  WITHDRAW = 1,
13
5
  SWAP = 2,
14
- BEEFY = 3,
15
- CURVE = 4,
16
- CONVEX = 5,
17
- LIDO = 6,
18
- PENDLE = 7,
19
- VOLATILE = 8,
20
- UNKNOWN = 9
6
+ UNKNOWN = 3
21
7
  }
22
- export declare const externalActionToTransactionType: (input: PastTransaction) => TransactionType.DEPOSIT | TransactionType.WITHDRAW | TransactionType.SWAP | TransactionType.BEEFY | TransactionType.CURVE | TransactionType.CONVEX | TransactionType.LIDO | TransactionType.PENDLE | TransactionType.UNKNOWN;
23
8
  export interface TransactionDetails {
24
9
  type: TransactionType;
25
10
  }
@@ -29,67 +14,3 @@ export type HistoryTokenBalance = TokenBalance | {
29
14
  };
30
15
  balance: bigint;
31
16
  };
32
- export interface DepositResult extends TransactionDetails {
33
- tokenWithBalance: HistoryTokenBalance;
34
- type: TransactionType.DEPOSIT;
35
- }
36
- export interface WithdrawResult extends TransactionDetails {
37
- tokenWithBalance: HistoryTokenBalance;
38
- type: TransactionType.WITHDRAW;
39
- }
40
- export interface SwapResult extends TransactionDetails {
41
- tokenIn: HistoryTokenBalance;
42
- tokenOut: HistoryTokenBalance;
43
- type: TransactionType.SWAP;
44
- protocol: bigint;
45
- }
46
- export interface BeefyResult extends TransactionDetails {
47
- erc20Token: HistoryTokenBalance;
48
- mooToken: HistoryTokenBalance;
49
- type: TransactionType.BEEFY;
50
- beefyAction: BeefyAction;
51
- }
52
- export interface CurveDepositWithdrawResult extends TransactionDetails {
53
- inTokens: HistoryTokenBalance[];
54
- poolToken: HistoryTokenBalance;
55
- type: TransactionType.CURVE;
56
- curveAction: CurveAction;
57
- }
58
- export interface CurveStakeUnstake extends TransactionDetails {
59
- poolToken: HistoryTokenBalance;
60
- type: TransactionType.CURVE;
61
- curveAction: CurveAction;
62
- }
63
- export interface ConvexStakeUnstake extends TransactionDetails {
64
- poolToken: HistoryTokenBalance;
65
- type: TransactionType.CONVEX;
66
- convexAction: ConvexAction;
67
- }
68
- export interface LidoResult extends TransactionDetails {
69
- lidoToken: HistoryTokenBalance;
70
- type: TransactionType.LIDO;
71
- lidoAction: LidoAction;
72
- }
73
- export interface PendleResult extends TransactionDetails {
74
- pendleTokens: HistoryTokenBalance[];
75
- nonPendleTokens: HistoryTokenBalance[];
76
- syToken?: HistoryTokenBalance;
77
- type: TransactionType.PENDLE;
78
- pendleAction: PendleAction | undefined;
79
- }
80
- export interface VolatileResult extends TransactionDetails {
81
- token: HistoryTokenBalance;
82
- type: TransactionType.VOLATILE;
83
- }
84
- export interface UnknownTransaction extends TransactionDetails {
85
- type: TransactionType.UNKNOWN;
86
- }
87
- export type TransactionField = {
88
- blockNumber: number;
89
- timeStamp: number;
90
- gas: number;
91
- gasPrice: number;
92
- hash: string;
93
- status: 'SUCCESS' | 'FAILURE';
94
- details: TransactionDetails;
95
- };
@@ -1,44 +1,4 @@
1
- import { getExternalActionIdFromNumber as u } from "../../../functions/utils/external-action.utils.mjs";
2
- import "../../../types/circom-data.types.mjs";
3
- import { ExternalActionId as r } from "../../../types/external-action.types.mjs";
4
- import "../../../constants/vite.constants.mjs";
5
- import "../../../types/transactions.types.mjs";
6
- import "../../../types/curve.types.mjs";
7
- import "../../../types/activities.types.mjs";
8
- var E = /* @__PURE__ */ ((e) => (e[e.DEPOSIT = 0] = "DEPOSIT", e[e.WITHDRAW = 1] = "WITHDRAW", e[e.SWAP = 2] = "SWAP", e[e.BEEFY = 3] = "BEEFY", e[e.CURVE = 4] = "CURVE", e[e.CONVEX = 5] = "CONVEX", e[e.LIDO = 6] = "LIDO", e[e.PENDLE = 7] = "PENDLE", e[e.VOLATILE = 8] = "VOLATILE", e[e.UNKNOWN = 9] = "UNKNOWN", e))(E || {});
9
- const l = (e) => {
10
- const t = e.externalActionId.toBigInt();
11
- switch (u(t)) {
12
- case r.Transact:
13
- return e.amountChanges[0].toBigInt() >= 0n ? 0 : 1;
14
- case r.Uniswap:
15
- case r.Odos:
16
- case r.OneInch:
17
- return 2;
18
- case r.Beefy:
19
- case r.BeefyStake:
20
- return 3;
21
- case r.Curve:
22
- case r.CurveDynamic:
23
- case r.CurveCRV:
24
- case r.CurveCRVRewards:
25
- return 4;
26
- case r.Convex:
27
- return 5;
28
- case r.LidoETH:
29
- case r.LidoMATIC:
30
- case r.LidoETHNFT:
31
- case r.LidoMATICNFT:
32
- return 6;
33
- case r.Pendle:
34
- return 7;
35
- case r.Volatile:
36
- return e.amountChanges.length === 1 ? e.amountChanges[0].toBigInt() < 0n ? 1 : 0 : e.amountChanges.length === 2 ? 2 : 9;
37
- default:
38
- return 9;
39
- }
40
- };
1
+ var N = /* @__PURE__ */ ((W) => (W[W.DEPOSIT = 0] = "DEPOSIT", W[W.WITHDRAW = 1] = "WITHDRAW", W[W.SWAP = 2] = "SWAP", W[W.UNKNOWN = 3] = "UNKNOWN", W))(N || {});
41
2
  export {
42
- E as TransactionType,
43
- l as externalActionToTransactionType
3
+ N as TransactionType
44
4
  };
@@ -1,2 +1 @@
1
- export * from './TransactionsManager';
2
1
  export * from './history/history.types';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("ethers"),a=require("../../constants/protocol.constants.cjs"),d=require("../../crypto/poseidon.cjs"),S=require("../../functions/web3/etherFunctions.cjs"),h=require("../crypto-keys/keys.cjs"),g=require("../../functions/utils/time.utils.cjs");class o{amount;erc20TokenAddress;timeStamp;tokenId;shieldedPrivateKey;randomization;stealthAddress;encryptionKey;commitment;nullifier;isStake;isStakeOrUnstakeInput;isUnstakeOutput;constructor({amount:t,erc20TokenAddress:e,timeStamp:s,tokenId:i,shieldedPrivateKey:n,randomization:r,stealthAddress:m,encryptionKey:u,commitment:l=void 0,nullifier:c=void 0,isStake:p=!1,isStakeOrUnstakeInput:k=!1,isUnstakeOutput:y=!1}){this.amount=t,this.erc20TokenAddress=e,this.timeStamp=s??g.getCurrentTimeInSeconds().toString(),this.tokenId=i??0,this.shieldedPrivateKey=n,this.randomization=r??o.findCorrectRandomization(S.randomBigInt(31),n),this.stealthAddress=m,this.encryptionKey=u,this.commitment=l,this.nullifier=c,this.isStake=p,this.isStakeOrUnstakeInput=k,this.isUnstakeOutput=y}static createFrom(t,e){return new o({...t.getConstructableParams(),nullifier:void 0,commitment:void 0,...e})}getConstructableParams(){return{amount:this.amount,erc20TokenAddress:this.erc20TokenAddress,timeStamp:this.timeStamp,shieldedPrivateKey:this.shieldedPrivateKey,randomization:this.randomization,stealthAddress:this.stealthAddress,encryptionKey:this.encryptionKey,tokenId:this.tokenId,commitment:this.commitment,nullifier:this.nullifier,isStake:this.isStake,isStakeOrUnstakeInput:this.isStakeOrUnstakeInput,isUnstakeOutput:this.isUnstakeOutput}}getCommitment(){if(!this.commitment){const t=[this.amount,this.erc20TokenAddress,BigInt(this.getStealthAddress()),this.timeStamp];this.tokenId>0&&t.push(this.tokenId.toString()),(this.isStake||this.isUnstakeOutput)&&t.push(0n,1n),this.commitment=d.poseidonHash(...t)}return this.commitment}getNullifier(){if(!this.nullifier){if(!this.shieldedPrivateKey)throw new Error("No Nullifiers if private key is not provided");const t=d.poseidonHash(this.shieldedPrivateKey,this.getCommitment()),e=BigInt(d.poseidonHash(this.commitment,t)),s=BigInt(this.isStakeOrUnstakeInput);this.nullifier=f.ethers.BigNumber.from(e+s).toHexString()}return this.nullifier}getStealthAddress(){if(!this.stealthAddress){if(!this.shieldedPrivateKey)throw Error("No stealth address in UTXO if private key is not provided");const t=h.UserKeys.getStealthAddress(this.randomization,this.shieldedPrivateKey);this.stealthAddress=t}return this.stealthAddress}getEncryptionKey(){if(!this.shieldedPrivateKey){if(!this.encryptionKey)throw Error("No encryption key provided in UTXO");return this.encryptionKey}return h.UserKeys.getEncryptionKeyPair(this.shieldedPrivateKey).publicKey}static findCorrectRandomization(t,e){if(!e)throw Error("No Private Shielded Key Provided");const s=BigInt(e)%a.CIRCOM_P;let i,n,r=0n;do i=t*10n**r%a.CIRCOM_P,n=i*s%a.CIRCOM_P,r+=1n;while(n>=2n**253n||i>=2n**253n);return i}}exports.Utxo=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("ethers"),d=require("../../constants/protocol.constants.cjs"),a=require("../../crypto/poseidon.cjs"),A=require("../../functions/web3/etherFunctions.cjs"),h=require("../crypto-keys/keys.cjs"),I=require("../../functions/utils/time.utils.cjs"),v=require("../../constants/chains.constants.cjs");class o{amount;erc20TokenAddress;mintAddress;timeStamp;tokenId;shieldedPrivateKey;randomization;stealthAddress;encryptionKey;commitment;nullifier;isStake;isStakeOrUnstakeInput;isUnstakeOutput;isBlocked;constructor({amount:t,erc20TokenAddress:e,mintAddress:s,timeStamp:i,tokenId:r,shieldedPrivateKey:n,randomization:m,stealthAddress:l,encryptionKey:u,commitment:c=void 0,nullifier:k=void 0,isStake:p=!1,isStakeOrUnstakeInput:y=!1,isUnstakeOutput:f=!1,isBlocked:S=!1}){this.amount=t,this.erc20TokenAddress=e,this.mintAddress=s,this.timeStamp=i??I.getCurrentTimeInSeconds().toString(),this.tokenId=r??0,this.shieldedPrivateKey=n,this.randomization=m??o.findCorrectRandomization(A.randomBigInt(31),n),this.stealthAddress=l,this.encryptionKey=u,this.commitment=c,this.nullifier=k,this.isStake=p,this.isStakeOrUnstakeInput=y,this.isUnstakeOutput=f,this.isBlocked=S}static createFrom(t,e){return new o({...t.getConstructableParams(),nullifier:void 0,commitment:void 0,...e})}getConstructableParams(){return{amount:this.amount,erc20TokenAddress:this.erc20TokenAddress,mintAddress:this.mintAddress,timeStamp:this.timeStamp,shieldedPrivateKey:this.shieldedPrivateKey,randomization:this.randomization,stealthAddress:this.stealthAddress,encryptionKey:this.encryptionKey,tokenId:this.tokenId,commitment:this.commitment,nullifier:this.nullifier,isStake:this.isStake,isStakeOrUnstakeInput:this.isStakeOrUnstakeInput,isUnstakeOutput:this.isUnstakeOutput,isBlocked:this.isBlocked}}getCommitment(){if(!this.commitment){const t=[this.amount,this.erc20TokenAddress,BigInt(this.getStealthAddress()),this.timeStamp];this.tokenId>0&&t.push(this.tokenId.toString()),(this.isStake||this.isUnstakeOutput)&&t.push(0n,1n),this.commitment=a.poseidonHash(...t)}return this.commitment}getNullifier(){if(!this.nullifier){if(!this.shieldedPrivateKey)throw new Error("No Nullifiers if private key is not provided");const t=a.poseidonHash(this.shieldedPrivateKey,this.getCommitment()),e=BigInt(a.poseidonHash(this.commitment,t)),s=BigInt(this.isStakeOrUnstakeInput);this.nullifier=g.ethers.BigNumber.from(e+s).toHexString()}return this.nullifier}getStealthAddress(){if(!this.stealthAddress){if(!this.shieldedPrivateKey)throw Error("No stealth address in UTXO if private key is not provided");const t=h.UserKeys.getStealthAddress(this.randomization,this.shieldedPrivateKey);this.stealthAddress=t}return this.stealthAddress}getEncryptionKey(){if(!this.shieldedPrivateKey){if(!this.encryptionKey)throw Error("No encryption key provided in UTXO");return this.encryptionKey}return h.UserKeys.getEncryptionKeyPair(this.shieldedPrivateKey).publicKey}static findCorrectRandomization(t,e){if(!e)throw Error("No Private Shielded Key Provided");const s=BigInt(e)%d.CIRCOM_P;let i,r,n=0n;do i=t*10n**n%d.CIRCOM_P,r=i*s%d.CIRCOM_P,n+=1n;while(r>=2n**253n||i>=2n**253n);return i}getTokenAddress(t){const e=v.isSolanaLike(t)?this.mintAddress:this.erc20TokenAddress;if(!e)throw new Error("No token address provided");return e}}exports.Utxo=o;
@@ -1,6 +1,7 @@
1
1
  export type IUtxoConstructor<T = bigint> = {
2
2
  amount: T;
3
3
  erc20TokenAddress: string;
4
+ mintAddress?: string;
4
5
  timeStamp?: string;
5
6
  shieldedPrivateKey?: string;
6
7
  randomization?: T;
@@ -10,6 +11,7 @@ export type IUtxoConstructor<T = bigint> = {
10
11
  isStake?: boolean;
11
12
  isStakeOrUnstakeInput?: boolean;
12
13
  isUnstakeOutput?: boolean;
14
+ isBlocked?: boolean;
13
15
  commitment?: string;
14
16
  nullifier?: string;
15
17
  };
@@ -19,6 +21,7 @@ export type IUtxoConstructor<T = bigint> = {
19
21
  export declare class Utxo {
20
22
  amount: bigint;
21
23
  erc20TokenAddress: string;
24
+ mintAddress?: string;
22
25
  timeStamp: string;
23
26
  tokenId: number;
24
27
  shieldedPrivateKey?: string;
@@ -30,6 +33,7 @@ export declare class Utxo {
30
33
  isStake: boolean;
31
34
  isStakeOrUnstakeInput: boolean;
32
35
  isUnstakeOutput: boolean;
36
+ isBlocked: boolean;
33
37
  /**
34
38
  * creates new UTXO instance
35
39
  * @param amount UTXO amount
@@ -43,7 +47,7 @@ export declare class Utxo {
43
47
  * @param commitment [optional] commitment value if already computed
44
48
  * @param nullifier [optional] nullifier value if already computed
45
49
  */
46
- constructor({ amount, erc20TokenAddress, timeStamp, tokenId, shieldedPrivateKey, randomization, stealthAddress, encryptionKey, commitment, nullifier, isStake, isStakeOrUnstakeInput, isUnstakeOutput, }: IUtxoConstructor);
50
+ constructor({ amount, erc20TokenAddress, mintAddress, timeStamp, tokenId, shieldedPrivateKey, randomization, stealthAddress, encryptionKey, commitment, nullifier, isStake, isStakeOrUnstakeInput, isUnstakeOutput, isBlocked, }: IUtxoConstructor);
47
51
  static createFrom(utxoToCreateFrom: Utxo, patch: Partial<IUtxoConstructor>): Utxo;
48
52
  getConstructableParams(): IUtxoConstructor;
49
53
  /**
@@ -60,4 +64,5 @@ export declare class Utxo {
60
64
  getStealthAddress(): string;
61
65
  getEncryptionKey(): string;
62
66
  static findCorrectRandomization(initialRandomization: bigint, privateKey?: string): bigint;
67
+ getTokenAddress(chainId: number): string;
63
68
  }
@@ -1,12 +1,14 @@
1
- import { ethers as y } from "ethers";
1
+ import { ethers as S } from "ethers";
2
2
  import { CIRCOM_P as o } from "../../constants/protocol.constants.mjs";
3
- import { poseidonHash as a } from "../../crypto/poseidon.mjs";
4
- import { randomBigInt as S } from "../../functions/web3/etherFunctions.mjs";
3
+ import { poseidonHash as d } from "../../crypto/poseidon.mjs";
4
+ import { randomBigInt as g } from "../../functions/web3/etherFunctions.mjs";
5
5
  import { UserKeys as h } from "../crypto-keys/keys.mjs";
6
- import { getCurrentTimeInSeconds as g } from "../../functions/utils/time.utils.mjs";
7
- class d {
6
+ import { getCurrentTimeInSeconds as v } from "../../functions/utils/time.utils.mjs";
7
+ import { isSolanaLike as I } from "../../constants/chains.constants.mjs";
8
+ class a {
8
9
  amount;
9
10
  erc20TokenAddress;
11
+ mintAddress;
10
12
  timeStamp;
11
13
  tokenId;
12
14
  shieldedPrivateKey;
@@ -22,6 +24,7 @@ class d {
22
24
  isStake;
23
25
  isStakeOrUnstakeInput;
24
26
  isUnstakeOutput;
27
+ isBlocked;
25
28
  /**
26
29
  * creates new UTXO instance
27
30
  * @param amount UTXO amount
@@ -38,22 +41,24 @@ class d {
38
41
  constructor({
39
42
  amount: t,
40
43
  erc20TokenAddress: e,
41
- timeStamp: s,
42
- tokenId: i,
44
+ mintAddress: s,
45
+ timeStamp: i,
46
+ tokenId: n,
43
47
  shieldedPrivateKey: r,
44
- randomization: n,
45
- stealthAddress: m,
46
- encryptionKey: l,
47
- commitment: u = void 0,
48
- nullifier: c = void 0,
48
+ randomization: m,
49
+ stealthAddress: l,
50
+ encryptionKey: u,
51
+ commitment: c = void 0,
52
+ nullifier: k = void 0,
49
53
  isStake: p = !1,
50
- isStakeOrUnstakeInput: k = !1,
51
- isUnstakeOutput: f = !1
54
+ isStakeOrUnstakeInput: f = !1,
55
+ isUnstakeOutput: y = !1,
56
+ isBlocked: A = !1
52
57
  }) {
53
- this.amount = t, this.erc20TokenAddress = e, this.timeStamp = s ?? g().toString(), this.tokenId = i ?? 0, this.shieldedPrivateKey = r, this.randomization = n ?? d.findCorrectRandomization(S(31), r), this.stealthAddress = m, this.encryptionKey = l, this.commitment = u, this.nullifier = c, this.isStake = p, this.isStakeOrUnstakeInput = k, this.isUnstakeOutput = f;
58
+ this.amount = t, this.erc20TokenAddress = e, this.mintAddress = s, this.timeStamp = i ?? v().toString(), this.tokenId = n ?? 0, this.shieldedPrivateKey = r, this.randomization = m ?? a.findCorrectRandomization(g(31), r), this.stealthAddress = l, this.encryptionKey = u, this.commitment = c, this.nullifier = k, this.isStake = p, this.isStakeOrUnstakeInput = f, this.isUnstakeOutput = y, this.isBlocked = A;
54
59
  }
55
60
  static createFrom(t, e) {
56
- return new d({
61
+ return new a({
57
62
  ...t.getConstructableParams(),
58
63
  nullifier: void 0,
59
64
  commitment: void 0,
@@ -64,6 +69,7 @@ class d {
64
69
  return {
65
70
  amount: this.amount,
66
71
  erc20TokenAddress: this.erc20TokenAddress,
72
+ mintAddress: this.mintAddress,
67
73
  timeStamp: this.timeStamp,
68
74
  shieldedPrivateKey: this.shieldedPrivateKey,
69
75
  randomization: this.randomization,
@@ -74,7 +80,8 @@ class d {
74
80
  nullifier: this.nullifier,
75
81
  isStake: this.isStake,
76
82
  isStakeOrUnstakeInput: this.isStakeOrUnstakeInput,
77
- isUnstakeOutput: this.isUnstakeOutput
83
+ isUnstakeOutput: this.isUnstakeOutput,
84
+ isBlocked: this.isBlocked
78
85
  };
79
86
  }
80
87
  /**
@@ -83,7 +90,7 @@ class d {
83
90
  getCommitment() {
84
91
  if (!this.commitment) {
85
92
  const t = [this.amount, this.erc20TokenAddress, BigInt(this.getStealthAddress()), this.timeStamp];
86
- this.tokenId > 0 && t.push(this.tokenId.toString()), (this.isStake || this.isUnstakeOutput) && t.push(0n, 1n), this.commitment = a(...t);
93
+ this.tokenId > 0 && t.push(this.tokenId.toString()), (this.isStake || this.isUnstakeOutput) && t.push(0n, 1n), this.commitment = d(...t);
87
94
  }
88
95
  return this.commitment;
89
96
  }
@@ -94,8 +101,8 @@ class d {
94
101
  if (!this.nullifier) {
95
102
  if (!this.shieldedPrivateKey)
96
103
  throw new Error("No Nullifiers if private key is not provided");
97
- const t = a(this.shieldedPrivateKey, this.getCommitment()), e = BigInt(a(this.commitment, t)), s = BigInt(this.isStakeOrUnstakeInput);
98
- this.nullifier = y.BigNumber.from(e + s).toHexString();
104
+ const t = d(this.shieldedPrivateKey, this.getCommitment()), e = BigInt(d(this.commitment, t)), s = BigInt(this.isStakeOrUnstakeInput);
105
+ this.nullifier = S.BigNumber.from(e + s).toHexString();
99
106
  }
100
107
  return this.nullifier;
101
108
  }
@@ -123,13 +130,19 @@ class d {
123
130
  if (!e)
124
131
  throw Error("No Private Shielded Key Provided");
125
132
  const s = BigInt(e) % o;
126
- let i, r, n = 0n;
133
+ let i, n, r = 0n;
127
134
  do
128
- i = t * 10n ** n % o, r = i * s % o, n += 1n;
129
- while (r >= 2n ** 253n || i >= 2n ** 253n);
135
+ i = t * 10n ** r % o, n = i * s % o, r += 1n;
136
+ while (n >= 2n ** 253n || i >= 2n ** 253n);
130
137
  return i;
131
138
  }
139
+ getTokenAddress(t) {
140
+ const e = I(t) ? this.mintAddress : this.erc20TokenAddress;
141
+ if (!e)
142
+ throw new Error("No token address provided");
143
+ return e;
144
+ }
132
145
  }
133
146
  export {
134
- d as Utxo
147
+ a as Utxo
135
148
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class e extends Error{tx;constructor(r,t){super(r),this.tx=t}}exports.ErrorWithRelayerTransaction=e;
@@ -0,0 +1,5 @@
1
+ import { RelayerTransaction } from '../../types/relayer.types';
2
+ export declare class ErrorWithRelayerTransaction extends Error {
3
+ tx: RelayerTransaction | undefined;
4
+ constructor(message: string, tx: RelayerTransaction | undefined);
5
+ }
@@ -0,0 +1,9 @@
1
+ class e extends Error {
2
+ tx;
3
+ constructor(r, t) {
4
+ super(r), this.tx = t;
5
+ }
6
+ }
7
+ export {
8
+ e as ErrorWithRelayerTransaction
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class e extends Error{errorStructure;constructor(r){super(r.error),this.errorStructure=r,this.name=this.constructor.name}}exports.SimulationFailureError=e;
@@ -0,0 +1,10 @@
1
+ export declare class SimulationFailureError extends Error {
2
+ errorStructure: {
3
+ error: string;
4
+ errorReason: string;
5
+ };
6
+ constructor(data: {
7
+ error: string;
8
+ errorReason: string;
9
+ });
10
+ }
@@ -0,0 +1,9 @@
1
+ class e extends Error {
2
+ errorStructure;
3
+ constructor(r) {
4
+ super(r.error), this.errorStructure = r, this.name = this.constructor.name;
5
+ }
6
+ }
7
+ export {
8
+ e as SimulationFailureError
9
+ };
@@ -1,3 +1,5 @@
1
1
  export * from './ErrorWithAmount';
2
2
  export * from './FeeOverTransactionValueError';
3
3
  export * from './customErrors.helpers';
4
+ export * from './SimulationFailureError';
5
+ export * from './ErrorWithTx';
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={CANNOT_CERTIFY_FOR_PAST_WEEK:"Certification for the past week is not available.",ACTIVE_CODE_INVALID:"The code you entered does not exist. Please try again.",REFERRE_CANT_USE_OWN:"You cannot use own referre code.",USER_HAS_ACTIVE_CODE:"User already has an active code.",SAME_REFERRAL_CODE:"You cannot add the same referral code.",ALREADY_EXISTING_REFERRAL_CODE:"You cannot add already existing referral code.",CYCLICAL_REFERRALS_FORBIDDEN:"Cyclical referrals are forbidden.",WRONG_RECEIVING_TOKEN:"Currently you cannot receive rewards in the token you provided. Please select a different token or contact the Hinkal Team.",INVALID_RECEIVING_ADDRESS:"The receiving wallet address you submitted is not a valid address. Please check and submit again.",USER_IS_UNRANKED:"Please certify transactions to see rank.",MULTI_VERIFICATION_FAILED:"Transaction Verification on multiple network failed. Please, try again."},r={WC_NO_MATCHING_KEY:`creating the transaction failed
2
- version`},s={WC_INVALID_URI:"Invalid WalletConnect URI. Please, try again.",WC_PAIRINNG_ERROR:"Pairing failed. Check your code and retry."},a={INSUFFICIENT_FUNDS:"Insufficient funds.",INSUFFICIENT_FUNDS_WITHDRAW:"Not enough funds to withdraw.",INSUFFICIENT_FUNDS_TRANSFER:"Not enough funds to transfer.",INSUFFICIENT_FUNDS_TO_TRANSACT:"Not enough funds to transact.",INSUFFICIENT_FUNDS_GAS:"Insufficient funds for gas * price."},n={...t,...r,...a,SOME_ERROR:"Some error has occurred. Please try again in a few minutes. If the issue persists, please report it in Discord.",TOO_HIGH_AMOUNT:"ApproxParamsInvalid",NOT_ENOUGH_TOKENS:"Transfer amount exceeds balance.",TRANSACTION_NOT_CONFIRMED:"The transaction was not confirmed by the network. Please, try again.",RPC_PROVIDER_LIMIT_ERROR:"Non-200 status code: '429'",RELAYER_NOT_AVAILABLE:"All relayers are busy, please try in a few seconds.",TRANSACTION_TIMEOUT:"Your transaction got stale. Please, try in a few seconds.",CONNECT_ERROR:"Connection error",CONNECT_ERROR2:"DOMException: Failed.",USER_REJECTED_TX:"Transaction rejected.",USER_REJECTED_SIGN:"User rejected signing.",USER_REJECTED_TRANSACTION:"user rejected transaction.",USER_REJECTED_SIGN2:"User rejected the request.",SIGNING_FAILED:"The signing failed. Please, try again.",SIGNATURE_UNSUPPORTED_CHAINS:"Details: Unsupported chains.",SIGNATURE_UNSUPPORTED_CHAINS2:"User disapproved requested chains.",SIGNATURE_REQUEST_EXPIRED:"Request expired. Please try again.",SIGNATURE_UNSUPPORTED_PERSONAL_SIGN:"The method personal_sign does not exist.",USER_DISAPPROVED_REQUESTED_METHODS:"User disapproved requested methods.",INVALID_AUTHORIZATION:"The requested account and/or method has not been authorized by the user.",INVALID_NULLIFIER:"Nullifier cannot be reused.",SANCTIONED_ADDRESS:"Address is sanctioned.",INVALID_AMOUNT:"Please, select correct amount.",RECIPIENT_FORMAT_INCORRECT:"Recipient Information format is incorrect.",INVALID_TOKEN:"Invalid token provided.",STATE_TO_UPDATE:"Error in template Verifier_219 line: 121",HAS_TOKEN:"User already has an access token.",INVALID_RECEIVER:"Receiver address doesn't match.",INVALID_RELAYER:"Relayer address doesn't match.",INVALID_RELAYER_FEE:"Relayer fee amount doesn't match.",TIMESTAMP_STALE:"Timestamp provided does not align with current time.",INVALID_ZKP:"Proof must be valid.",NO_TRANSACTIONS_TO_CERTIFY:"This week, you do not have transactions to certify.",UNSUPPORTED_NETWORK:"Unsupported network: please choose Polygon, BNB Chain.",SIG_BY_OWNER:"Signature must be signed by the owner of the contract.",AMOUNT_EMPTY:"Please, specify amount.",UNVERIFIED_USER:"Please, pass KYC verification.",RELAYER_ISSUE:"Relayer has some issues. Try again later.",RELAYER_GAS_ESTIMATE:"Relayer was not able to estimate the gas costs of tx. Please, try later.",RECEIVER_EMPTY:"Please, enter recipient address.",NOT_ETHEREUM_ADDRESS:"Please, input shielded address instead of ethereum address.",NOT_SHIELDED_ADDRESS:"Please, input valid shielded address.",VALID_ETHEREUM_ADDRESS:"Please, input valid ethereum address.",METAMASK_NOT_INSTALLED:"Please, install Metamask Wallet.",VIABLE_TX:"The transaction is not viable. Please increase the swap amount to swap with Relayer.",TRANSACTION_REPLACED:"transaction was replaced.",TRANSACTION_REPLACED2:"replacement fee too low.",TRANSACTION_CANCELED:"Transaction was cancelled. Please try again.",NONCE_HIGH:"Nonce too high.",WALLET_CONNECT_MATCHING_KEYS:"No matching key. keychain.",UNKNOWN_PROVIDER:"Unknown provider.",SAFE_ERC:"SafeERC20: low-level call failed.",SAFE_ERC_APPROVE:"SafeERC20: approve from non-zero to non-zero allowance.",SWAP_RELAYER_MIN:"Relayer minimum fee is not satisfied.",LOW_LEVEL_CALL:"low-level delegate call failed.",INTEGRAL_CURVE_ZERO:"previous integral cannot be zero.",ODOS_FETCH:"Odos API Fetch Error.",PENDLE_SWAP_FAILED_BELOW_THRESHOLD:"Error: Cannot swap.",PENDLE_SWAP_TOKENS_UNSUPPORTED:"No route found to swap.",PENDLE_SWAP_TOKENS_UNSUPPORTED2:"tokenInAddr is not a valid SY token in.",PENDLE_MINIMUM_AMOUNT_NOT_REACHED:"MinimumStakeAmountNotReached.",SLIPPAGE_LIMIT:"Slippage Limit Exceeded.",SLIPPAGE_LIMIT_1:"Slippage screwed you.",QUOTE_EXPIRED:"Quote has expired.",REVERT_NO_STRING:"Transaction reverted without a reason string.",UNISWAP_NOT_ENOUGH_LIQUIDITY:"Not Enough Liquidity.",CONNECTION_FAILED:"Failed to connect.",FAILED_TO_SWITCH_NETWORKS:"Failed to switch network, Please switch networks using your wallet's settings.",INVALID_FROM:"Invalid from token.",INVALID_TO:"Invalid to token.",Invalid_Password:"Invalid password.",INTERNAL_ERROR:"Internal error: please, try again.",INVALID_MERKLE_ROOT:"Invalid merkle tree root.",ACCESS_TOKEN_INVALID_HASH:"Access Token not minted.",MERLE_TREE_SNARK:"Error in template ForceEqualIfEnabled.",ERROR_MESSAGE_CHAIN_ADDRESS_CHANGED:"Chain/address changed: balance updated canceled.",DECIMALS_LIMIT:"Number of decimals exceed maximum.",MERKLE_TREE_INCOMPLETE:"Merkle tree is incomplete.",FAIL_ESTIMATE_GAS:"Failed to estimate gas: check the transaction parameters.",ODOS_SWAP_FAILED:"Odos swap call failed.",ONEINCH_SWAP_FAILED:"One inch swap failed.",GAS_ESTIMATION_ERROR:"Failed Gas Estimates Response.",GAS_ESTIMATE_INCORRECT_PARAMETERS:"Incorrect Parameters for Gas Estimate.",CONNECTIVITY_ERROR:"Request failed with status code 500.",TRANSACTION_FAILED:"Transaction Failed: Revert.",NO_UNISWAP_PRICE:"Cannot get Uniswap Price.",NO_ODOS_PRICE:"Cannot get Odos Price.",NO_ONEINCH_PRICE:"Cannot get OneInch Price.",FEES_OVER_TRANSACTION_VALUE:"Fees are over transaction value. Please, increase the amount.",GAS_STATION_NOT_AVAILABLE:"Gas Station Not Available.",INBALANCE_IN_TOKEN:"Inbalance in token detected.",BALANCE_EQUATION_FAILED:"Balance Diff Should be equal to sum of onchain and offchain created commitments.",TOKEN_ADD_ERROR:"Error occoured while adding token. Please make sure you are adding a valid ERC-20 token.",CANNOT_ESTIMATE_GAS:"transaction may require manual gas limit.",NETWORK_ERROR:"Network Error.",MAX_FEE_GAS_ERROR:"max fee per gas less than block base fee.",CORS_ERROR:"has been blocked by CORS policy.",CANNOT_ESTIMATE_GAS2:"transaction may fail or may require manual gas limit.",NO_RESPONSE_PRIVATE:"No resonse from private relay.",TRY_AGAIN_AFTER_TRANSACTION:"Please, try again.",ALREADY_SUBSCRIBED:"User Already Subscribed.",PREFERRED_TOKEN_OR_ADDRESS_MISSING:"Please, specify both the preferred token and public wallet address.",SNAPSHOT_FILE_NOT_FOUND:"We are updating our servers. Please try again in some time.",API_KEY_DOES_NOT_MATCH:"Please provide a valid API Key for the wallet. If you do not have one, please contact the Hinkal team to get one.",SAME_ADDRESS_FORBIDDEN:"You cannot recieve staked tokens on the same ethereum address.",NOT_VALID_ETHEREUM_ADDRESS:"Please enter a valid Ethereum address.",MUST_STAKE_AT_LEAST_ONE_ETH:"Amount too low, Please stake at least 1 ETH.",OUT_OF_MEMORY:"Out of memory: Cannot allocate Wasm memory.",OUT_OF_MEMORY2:"could not allocate memory.",OUT_OF_MEMORY3:"out of memory.",UNKNOWN:"Unknown error.",SANDBOX_WRONG_REQUEST:"The requested Transaction type is not supported."},e="Not enough memory. Please, close some tabs/applications to free up memory and try again.",o={USER_REJECTED_TRANSACTION:"Transaction rejected by user.",SOME_ERROR:"Some error has occurred. Please try again in a few minutes. If the issue persists, please report it in Discord",TOO_HIGH_AMOUNT:"The amount you provided is too high, please adjust the amount",WC_NO_MATCHING_KEY:"Wallet Connect error. Please, try again",RPC_PROVIDER_LIMIT_ERROR:"Rate Limit: please, use different rpc provider in your wallet.",INSUFFICIENT_FUNDS_GAS:"Your balance is too low to cover the transaction fees. Please add funds to proceed.",INVALID_NULLIFIER:"There seems to be a temporary caching issue. Please press ‘Refresh your balance’ under your shielded address.",STATE_TO_UPDATE:"A technical issue has occurred. Please contact the Hinkal support team for assistance.",INVALID_ZKP:"The Zero Knowledge Proof provided is invalid. Please check and try again.",NONCE_HIGH:"To resolve this issue, please reset your wallet in the Settings.",UNKNOWN_PROVIDER:"The provider is not recognized. Please check your settings.",TRANSACTION_REPLACED:"Your transaction was replaced by another. Please submit your transaction again.",TRANSACTION_REPLACED2:"This transaction was replaced. Please try submitting again.",TRANSACTION_TIMEOUT:"Your transaction got stale. Please, try in a few seconds",SAFE_ERC:"The selected ERC20 Token could not be transferred. Please contact the Hinkal support team.",SAFE_ERC_APPROVE:"The selected ERC20 Token could not be approved. Please contact the Hinkal support team.",INTEGRAL_CURVE_ZERO:"There's an issue with the pool's staking function. Please contact the Hinkal support team for assistance.",LOW_LEVEL_CALL:"A technical issue occurred. Please contact the Hinkal team for assistance.",ODOS_FETCH:"Current Odos price is unavailable. Please try again.",ODOS_SWAP_FAILED:"Your Odos Swap transaction didn’t go through. Please try again.",ONEINCH_SWAP_FAILED:"Your 1inch Swap transaction didn’t go through. Please try again.",PENDLE_SWAP_FAILED_BELOW_THRESHOLD:"The amount is below the minimum required. Try a higher amount.",PENDLE_SWAP_FAILED:"Your Pendle Swap transaction didn’t go through. Please try again.",PENDLE_SWAP_TOKENS_UNSUPPORTED:"You can't use Pendle to swap between those tokens. Try a different pair.",PENDLE_SWAP_TOKENS_UNSUPPORTED2:"You can't use Pendle to swap between those tokens. Try a different pair.",PENDLE_MINIMUM_AMOUNT_NOT_REACHED:"The amount is below the minimum required. Try a higher amount.",CONNECT_ERROR2:"Oops, there are connectivity issues. Please check your internet connection and try again.",WALLET_CONNECT_MATCHING_KEYS:"An internal WalletConnect error occurred. Please try reconnecting.",SIGNATURE_UNSUPPORTED_CHAINS:"The transaction couldn’t be signed: this network is not supported.",SIGNATURE_UNSUPPORTED_CHAINS2:"The transaction couldn’t be signed: this network is not supported.",SIGNATURE_UNSUPPORTED_PERSONAL_SIGN:"Your active wallet doesn't support personal signatures. Please use a different wallet.",REVERT_NO_STRING:"Your transaction didn’t go through due to technical issues. Please contact Hinkal support.",INVALID_MERKLE_ROOT:"There's an issue with the merkle tree root. Please contact Hinkal support.",MERLE_TREE_SNARK:"An error occurred in the circuit processing. Contact Hinkal support for assistance.",MAX_FEE_GAS_ERROR:"Your transaction was rejected due to high network congestion.",MERKLE_TREE_INCOMPLETE:"A technical issue has occurred. Please contact the Hinkal team for assistance.",CORS_ERROR:"Unable to reach the remote client. Please contact Hinkal support.",NETWORK_ERROR:"Connection error. Please, check back later.",CONNECTIVITY_ERROR:"A connectivity issue occurred. Please check your network connection.",INBALANCE_IN_TOKEN:"Your transaction didn’t go through due to price slippage. Try increasing your slippage tolerance.",BALANCE_EQUATION_FAILED:"There's an issue with the balance calculation. Please adjust your transaction parameters.",SLIPPAGE_LIMIT_1:"Your transaction didn’t go through due to price slippage. Adjust slippage settings and retry.",CANNOT_ESTIMATE_GAS:"Unable to estimate the gas required. Please set the gas limit manually.",CANNOT_ESTIMATE_GAS2:"Your transaction didn’t go through. Please try setting gas limit manually.",GAS_STATION_NOT_AVAILABLE:"The Gas Station service is currently unavailable. Please contact the Hinkal team.",TIMESTAMP_STALE:"This transaction is outdated. Please initiate a new transaction.",ALREADY_SUBSCRIBED:"This email is already subscribed to the Hinkal newsletter.",OUT_OF_MEMORY:e,OUT_OF_MEMORY2:e,OUT_OF_MEMORY3:e,INVALID_RECOVERY_PHRASE:"Invalid recovery phrase.",PHRASES_DONT_MATCH:"Phrases do not match. You can always go back and check!",PASSWORDS_DONT_MATCH:"Passwords do not match.",PASSWORD_TOO_SMALL:"Password must be at least 8 characters."};exports.UserFriendlyErrorCodes=o;exports.insufficientResourcesErrorCodes=a;exports.transactionErrorCodes=n;exports.walletConnectErrorCodes=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={CANNOT_CERTIFY_FOR_PAST_WEEK:"Certification for the past week is not available",CYCLICAL_REFERRALS_FORBIDDEN:"Cyclical referrals are forbidden",USER_IS_UNRANKED:"Please certify transactions to see rank"},r={WC_NO_MATCHING_KEY:`creating the transaction failed
2
+ version`},o={WC_INVALID_URI:"Invalid WalletConnect URI. Please, try again",WC_PAIRINNG_ERROR:"Pairing failed. Check your code and retry"},a={INSUFFICIENT_FUNDS:"Insufficient funds",INSUFFICIENT_FUNDS_WITHDRAW:"Not enough funds to withdraw",INSUFFICIENT_FUNDS_TRANSFER:"Not enough funds to transfer",INSUFFICIENT_FUNDS_TO_TRANSACT:"Not enough funds to transact",INSUFFICIENT_FUNDS_GAS:"Insufficient funds for gas * price"},t={GAS_PRICE_EXCEEDS_AUTOSHIELD_LIMIT:"Gas prices too high to autoshield"},n={...s,...r,...a,...t,SOME_ERROR:"Some error has occurred. Please try again in a few minutes. If the issue persists, please report it in Discord",TOO_HIGH_AMOUNT:"ApproxParamsInvalid",NOT_ENOUGH_TOKENS:"Transfer amount exceeds balance",TRANSACTION_NOT_CONFIRMED:"The transaction was not confirmed by the network. Please, try again",RPC_PROVIDER_LIMIT_ERROR:"Non-200 status code: '429'",RELAYER_NOT_AVAILABLE:"All relayers are busy, please try in a few seconds",TRANSACTION_TIMEOUT:"Your transaction got stale. Please, try in a few seconds",CONNECT_ERROR:"Connection error",CONNECT_ERROR2:"DOMException: Failed",USER_REJECTED_TX:"Transaction rejected",USER_REJECTED_SIGN:"User rejected signing",USER_REJECTED_TRANSACTION:"user rejected transaction",USER_REJECTED_SIGN2:"User rejected the request",SIGNING_FAILED:"The signing failed. Please, try again",SIGNATURE_UNSUPPORTED_CHAINS:"Details: Unsupported chains",SIGNATURE_UNSUPPORTED_CHAINS2:"User disapproved requested chains",SIGNATURE_REQUEST_EXPIRED:"Request expired. Please try again",SIGNATURE_UNSUPPORTED_PERSONAL_SIGN:"The method personal_sign does not exist",USER_DISAPPROVED_REQUESTED_METHODS:"User disapproved requested methods",INVALID_AUTHORIZATION:"The requested account and/or method has not been authorized by the user",INVALID_NULLIFIER:"Nullifier cannot be reused",SANCTIONED_ADDRESS:"Address is sanctioned",INVALID_AMOUNT:"Please, select correct amount",RECIPIENT_FORMAT_INCORRECT:"Recipient Information format is incorrect",INVALID_TOKEN:"Invalid token provided",STATE_TO_UPDATE:"Error in template Verifier_219 line: 121",HAS_TOKEN:"User already has an access token",INVALID_RECEIVER:"Receiver address doesn't match",INVALID_RELAYER:"Relayer address doesn't match",INVALID_RELAYER_FEE:"Relayer fee amount doesn't match",TIMESTAMP_STALE:"Timestamp provided does not align with current time",INVALID_ZKP:"Proof must be valid",NO_TRANSACTIONS_TO_CERTIFY:"This week, you do not have transactions to certify",RECIPIENT_AMOUNT_INVALID:"Recipient amount is invalid",UNSUPPORTED_NETWORK:"Unsupported network: please choose Polygon, BNB Chain",SIG_BY_OWNER:"Signature must be signed by the owner of the contract",AMOUNT_EMPTY:"Please, specify amount",UNVERIFIED_USER:"Please, pass KYC verification",RELAYER_ISSUE:"Relayer has some issues. Try again later",RELAYER_GAS_ESTIMATE:"Relayer was not able to estimate the gas costs of tx. Please, try later",RECEIVER_EMPTY:"Please, enter recipient address",VALID_ETHEREUM_ADDRESS:"Please, input valid ethereum address",METAMASK_NOT_INSTALLED:"Please, install Metamask Wallet",VIABLE_TX:"The transaction is not viable. Please increase the swap amount to swap with Relayer",TRANSACTION_REPLACED:"transaction was replaced",TRANSACTION_REPLACED2:"replacement fee too low",TRANSACTION_CANCELED:"Transaction was cancelled. Please try again",NONCE_HIGH:"Nonce too high",WALLET_CONNECT_MATCHING_KEYS:"No matching key. keychain",UNKNOWN_PROVIDER:"Unknown provider",SAFE_ERC:"SafeERC20: low-level call failed",SAFE_ERC_APPROVE:"SafeERC20: approve from non-zero to non-zero allowance",SWAP_RELAYER_MIN:"Relayer minimum fee is not satisfied",LOW_LEVEL_CALL:"low-level delegate call failed",INTEGRAL_CURVE_ZERO:"previous integral cannot be zero",ODOS_FETCH:"Odos API Fetch Error",YOU_CANCELED_REQUEST:"You canceled the request",SLIPPAGE_LIMIT:"Slippage Limit Exceeded",SLIPPAGE_LIMIT_1:"Slippage screwed you",QUOTE_EXPIRED:"Quote has expired",REVERT_NO_STRING:"Transaction reverted without a reason string",UNISWAP_NOT_ENOUGH_LIQUIDITY:"Not Enough Liquidity",CONNECTION_FAILED:"Failed to connect",FAILED_TO_SWITCH_NETWORKS:"Failed to switch network, Please switch networks using your wallet's settings",INVALID_FROM:"Invalid from token",INVALID_TO:"Invalid to token",Invalid_Password:"Invalid password",INTERNAL_ERROR:"Internal error: please, try again",INVALID_MERKLE_ROOT:"Invalid merkle tree root",ACCESS_TOKEN_INVALID_HASH:"Access Token not minted",MERLE_TREE_SNARK:"Error in template ForceEqualIfEnabled",ERROR_MESSAGE_CHAIN_ADDRESS_CHANGED:"Chain/address changed: balance updated canceled",DECIMALS_LIMIT:"Number of decimals exceed maximum",MERKLE_TREE_INCOMPLETE:"Merkle tree is incomplete",FAIL_ESTIMATE_GAS:"Failed to estimate gas: check the transaction parameters",ODOS_SWAP_FAILED:"Odos swap call failed",ONEINCH_SWAP_FAILED:"One inch swap failed",GAS_ESTIMATION_ERROR:"Failed Gas Estimates Response",GAS_ESTIMATE_INCORRECT_PARAMETERS:"Incorrect Parameters for Gas Estimate",CONNECTIVITY_ERROR:"Request failed with status code 500",TRANSACTION_FAILED:"Transaction Failed: Revert",NO_UNISWAP_PRICE:"Cannot get Uniswap Price",NO_ODOS_PRICE:"Cannot get Odos Price",NO_ONEINCH_PRICE:"Cannot get OneInch Price",NO_LIFI_PRICE:"Cannot get LiFi Price",FEES_OVER_TRANSACTION_VALUE:"Fees are over transaction value. Please, increase the amount",GAS_STATION_NOT_AVAILABLE:"Gas Station Not Available",INBALANCE_IN_TOKEN:"Inbalance in token detected",BALANCE_EQUATION_FAILED:"Balance Diff Should be equal to sum of onchain and offchain created commitments",TOKEN_ADD_ERROR:"Error occoured while adding token. Please make sure you are adding a valid ERC-20 token",CANNOT_ESTIMATE_GAS:"transaction may require manual gas limit",NETWORK_ERROR:"Network Error",MAX_FEE_GAS_ERROR:"max fee per gas less than block base fee",CORS_ERROR:"has been blocked by CORS policy",CANNOT_ESTIMATE_GAS2:"transaction may fail or may require manual gas limit",NO_RESPONSE_PRIVATE:"No resonse from private relay",TRY_AGAIN_AFTER_TRANSACTION:"Please, try again",ALREADY_SUBSCRIBED:"User Already Subscribed",PREFERRED_TOKEN_OR_ADDRESS_MISSING:"Please, specify both the preferred token and public wallet address",SNAPSHOT_FILE_NOT_FOUND:"We are updating our servers. Please try again in some time",SAME_ADDRESS_FORBIDDEN:"You cannot recieve staked tokens on the same ethereum address",NOT_VALID_ETHEREUM_ADDRESS:"Please enter a valid Ethereum address",MUST_STAKE_AT_LEAST_ONE_ETH:"Amount too low, Please stake at least 1 ETH",OUT_OF_MEMORY:"Out of memory: Cannot allocate Wasm memory",OUT_OF_MEMORY2:"could not allocate memory",OUT_OF_MEMORY3:"out of memory",UNKNOWN:"Unknown error",SANDBOX_WRONG_REQUEST:"The requested Transaction type is not supported",INSUFFICIENT_LAMPORTS:"insufficient lamports"},e="Not enough memory. Please, close some tabs/applications to free up memory and try again",i={USER_REJECTED_TRANSACTION:"You cancelled the transaction",SOME_ERROR:"Some error has occurred. Please try again in a few minutes. If the issue persists, please report it in Discord",TOO_HIGH_AMOUNT:"The amount you provided is too high, please adjust the amount",WC_NO_MATCHING_KEY:"Wallet Connect error. Please, try again",RPC_PROVIDER_LIMIT_ERROR:"Rate Limit: please, use different rpc provider in your wallet",INSUFFICIENT_FUNDS_GAS:"Your balance is too low to cover the transaction fees. Please add funds to proceed",INVALID_NULLIFIER:"There seems to be an issue with syncing your balance. Please press the refresh icon next to your shielded balance",STATE_TO_UPDATE:"A technical issue has occurred. Please create a ticket on Hinkal discord server",INVALID_ZKP:"The Zero Knowledge Proof provided is invalid. Please check and try again",NONCE_HIGH:"To resolve this issue, please reset your wallet in the Settings",UNKNOWN_PROVIDER:"The provider is not recognized. Please check your settings",TRANSACTION_REPLACED:"Your transaction was replaced by another. Please submit your transaction again",TRANSACTION_REPLACED2:"This transaction was replaced. Please try submitting again",TRANSACTION_TIMEOUT:"Your transaction got stale. Please, try in a few seconds",SAFE_ERC:"The selected ERC20 Token could not be transferred. Please contact the Hinkal support team",SIMULATION_FAILED:"Transaction failed during simulation:",SAFE_ERC_APPROVE:"The selected ERC20 Token could not be approved. Please contact the Hinkal support team",INTEGRAL_CURVE_ZERO:"There's an issue with the pool's staking function. Please contact the Hinkal support team for assistance",LOW_LEVEL_CALL:"A technical issue occurred. Please contact the Hinkal team for assistance",YOU_CANCELED_REQUEST:"You canceled the request",USER_REJECTED_SIGN2:"You canceled the request",ODOS_FETCH:"Current Odos price is unavailable. Please try again",ODOS_SWAP_FAILED:"Your Odos Swap transaction didn’t go through. Please try again",ONEINCH_SWAP_FAILED:"Your 1inch Swap transaction didn’t go through. Please try again",CONNECT_ERROR2:"Oops, there are connectivity issues. Please check your internet connection and try again",WALLET_CONNECT_MATCHING_KEYS:"An internal WalletConnect error occurred. Please try reconnecting",SIGNATURE_UNSUPPORTED_CHAINS:"The transaction couldn’t be signed: this network is not supported",SIGNATURE_UNSUPPORTED_CHAINS2:"The transaction couldn’t be signed: this network is not supported",SIGNATURE_UNSUPPORTED_PERSONAL_SIGN:"Your active wallet doesn't support personal signatures. Please use a different wallet",REVERT_NO_STRING:"Your transaction didn’t go through due to technical issues. Please submit a ticket on Hinkal discord server",INVALID_MERKLE_ROOT:"There's an issue with the merkle tree root. Please submit a ticket on Hinkal discord server",MERLE_TREE_SNARK:"An error occurred in the circuit processing. Please submit a ticket on Hinkal discord server",MAX_FEE_GAS_ERROR:"Your transaction was rejected due to high network congestion",MERKLE_TREE_INCOMPLETE:"A technical issue has occurred. Please submit a ticket on Hinkal discord server",CORS_ERROR:"Unable to reach the remote client. Please submit a ticket on Hinkal discord server",NETWORK_ERROR:"Connection error. Please, check back later",CONNECTIVITY_ERROR:"A connectivity issue occurred. Please check your network connection",INBALANCE_IN_TOKEN:"Your transaction didn’t go through due to price slippage. Try increasing your slippage tolerance",BALANCE_EQUATION_FAILED:"There's an issue with the balance calculation. Please adjust your transaction parameters",SLIPPAGE_LIMIT_1:"Your transaction didn’t go through due to price slippage. Adjust slippage settings and retry",CANNOT_ESTIMATE_GAS:"Unable to estimate the gas required. Please set the gas limit manually",CANNOT_ESTIMATE_GAS2:"Your transaction didn’t go through. Please try setting gas limit manually",GAS_STATION_NOT_AVAILABLE:"The Gas Station service is currently unavailable. Please submit a ticket on Hinkal discord server",TIMESTAMP_STALE:"This transaction is outdated. Please initiate a new transaction",ALREADY_SUBSCRIBED:"This email is already subscribed to the Hinkal newsletter",OUT_OF_MEMORY:e,OUT_OF_MEMORY2:e,OUT_OF_MEMORY3:e,INVALID_RECOVERY_PHRASE:"Invalid recovery phrase",PHRASES_DONT_MATCH:"Phrases do not match. You can always go back and check!",PASSWORDS_DONT_MATCH:"Passwords do not match",PASSWORD_SAME_AS_OLD:"Password cannot be the same as the old one",PASSWORD_TOO_SMALL:"Password must be at least 8 characters",PASSWORD_NOT_CORRECT:"Incorrect current password",CODE_ALREADY_USED:"This code has already been used",ACCESS_CODE_REQUIRED:"Access code is required",ACCESS_CODE_IS_ALREADY_IN_USE:"Access code is already in use",ACCESS_CODE_IS_ALREADY_IN_USE1:"Access code already in use. Import or connect existing wallet",ERROR_DURING_PHRASE_CONFIRMATION:"Error during Phrase confirmation",INSUFFICIENT_LAMPORTS:"Your SOL balance is too low to complete this transaction"};exports.UserFriendlyErrorCodes=i;exports.gasErrorCodes=t;exports.insufficientResourcesErrorCodes=a;exports.transactionErrorCodes=n;exports.walletConnectErrorCodes=o;
@@ -9,6 +9,9 @@ export declare const insufficientResourcesErrorCodes: {
9
9
  INSUFFICIENT_FUNDS_TO_TRANSACT: string;
10
10
  INSUFFICIENT_FUNDS_GAS: string;
11
11
  };
12
+ export declare const gasErrorCodes: {
13
+ GAS_PRICE_EXCEEDS_AUTOSHIELD_LIMIT: string;
14
+ };
12
15
  export declare const transactionErrorCodes: {
13
16
  SOME_ERROR: string;
14
17
  TOO_HIGH_AMOUNT: string;
@@ -43,6 +46,7 @@ export declare const transactionErrorCodes: {
43
46
  TIMESTAMP_STALE: string;
44
47
  INVALID_ZKP: string;
45
48
  NO_TRANSACTIONS_TO_CERTIFY: string;
49
+ RECIPIENT_AMOUNT_INVALID: string;
46
50
  UNSUPPORTED_NETWORK: string;
47
51
  SIG_BY_OWNER: string;
48
52
  AMOUNT_EMPTY: string;
@@ -50,8 +54,6 @@ export declare const transactionErrorCodes: {
50
54
  RELAYER_ISSUE: string;
51
55
  RELAYER_GAS_ESTIMATE: string;
52
56
  RECEIVER_EMPTY: string;
53
- NOT_ETHEREUM_ADDRESS: string;
54
- NOT_SHIELDED_ADDRESS: string;
55
57
  VALID_ETHEREUM_ADDRESS: string;
56
58
  METAMASK_NOT_INSTALLED: string;
57
59
  VIABLE_TX: string;
@@ -67,10 +69,7 @@ export declare const transactionErrorCodes: {
67
69
  LOW_LEVEL_CALL: string;
68
70
  INTEGRAL_CURVE_ZERO: string;
69
71
  ODOS_FETCH: string;
70
- PENDLE_SWAP_FAILED_BELOW_THRESHOLD: string;
71
- PENDLE_SWAP_TOKENS_UNSUPPORTED: string;
72
- PENDLE_SWAP_TOKENS_UNSUPPORTED2: string;
73
- PENDLE_MINIMUM_AMOUNT_NOT_REACHED: string;
72
+ YOU_CANCELED_REQUEST: string;
74
73
  SLIPPAGE_LIMIT: string;
75
74
  SLIPPAGE_LIMIT_1: string;
76
75
  QUOTE_EXPIRED: string;
@@ -98,6 +97,7 @@ export declare const transactionErrorCodes: {
98
97
  NO_UNISWAP_PRICE: string;
99
98
  NO_ODOS_PRICE: string;
100
99
  NO_ONEINCH_PRICE: string;
100
+ NO_LIFI_PRICE: string;
101
101
  FEES_OVER_TRANSACTION_VALUE: string;
102
102
  GAS_STATION_NOT_AVAILABLE: string;
103
103
  INBALANCE_IN_TOKEN: string;
@@ -113,7 +113,6 @@ export declare const transactionErrorCodes: {
113
113
  ALREADY_SUBSCRIBED: string;
114
114
  PREFERRED_TOKEN_OR_ADDRESS_MISSING: string;
115
115
  SNAPSHOT_FILE_NOT_FOUND: string;
116
- API_KEY_DOES_NOT_MATCH: string;
117
116
  SAME_ADDRESS_FORBIDDEN: string;
118
117
  NOT_VALID_ETHEREUM_ADDRESS: string;
119
118
  MUST_STAKE_AT_LEAST_ONE_ETH: string;
@@ -122,6 +121,8 @@ export declare const transactionErrorCodes: {
122
121
  OUT_OF_MEMORY3: string;
123
122
  UNKNOWN: string;
124
123
  SANDBOX_WRONG_REQUEST: string;
124
+ INSUFFICIENT_LAMPORTS: string;
125
+ GAS_PRICE_EXCEEDS_AUTOSHIELD_LIMIT: string;
125
126
  INSUFFICIENT_FUNDS: string;
126
127
  INSUFFICIENT_FUNDS_WITHDRAW: string;
127
128
  INSUFFICIENT_FUNDS_TRANSFER: string;
@@ -129,16 +130,8 @@ export declare const transactionErrorCodes: {
129
130
  INSUFFICIENT_FUNDS_GAS: string;
130
131
  WC_NO_MATCHING_KEY: string;
131
132
  CANNOT_CERTIFY_FOR_PAST_WEEK: string;
132
- ACTIVE_CODE_INVALID: string;
133
- REFERRE_CANT_USE_OWN: string;
134
- USER_HAS_ACTIVE_CODE: string;
135
- SAME_REFERRAL_CODE: string;
136
- ALREADY_EXISTING_REFERRAL_CODE: string;
137
133
  CYCLICAL_REFERRALS_FORBIDDEN: string;
138
- WRONG_RECEIVING_TOKEN: string;
139
- INVALID_RECEIVING_ADDRESS: string;
140
134
  USER_IS_UNRANKED: string;
141
- MULTI_VERIFICATION_FAILED: string;
142
135
  };
143
136
  export declare const UserFriendlyErrorCodes: {
144
137
  USER_REJECTED_TRANSACTION: string;
@@ -156,17 +149,15 @@ export declare const UserFriendlyErrorCodes: {
156
149
  TRANSACTION_REPLACED2: string;
157
150
  TRANSACTION_TIMEOUT: string;
158
151
  SAFE_ERC: string;
152
+ SIMULATION_FAILED: string;
159
153
  SAFE_ERC_APPROVE: string;
160
154
  INTEGRAL_CURVE_ZERO: string;
161
155
  LOW_LEVEL_CALL: string;
156
+ YOU_CANCELED_REQUEST: string;
157
+ USER_REJECTED_SIGN2: string;
162
158
  ODOS_FETCH: string;
163
159
  ODOS_SWAP_FAILED: string;
164
160
  ONEINCH_SWAP_FAILED: string;
165
- PENDLE_SWAP_FAILED_BELOW_THRESHOLD: string;
166
- PENDLE_SWAP_FAILED: string;
167
- PENDLE_SWAP_TOKENS_UNSUPPORTED: string;
168
- PENDLE_SWAP_TOKENS_UNSUPPORTED2: string;
169
- PENDLE_MINIMUM_AMOUNT_NOT_REACHED: string;
170
161
  CONNECT_ERROR2: string;
171
162
  WALLET_CONNECT_MATCHING_KEYS: string;
172
163
  SIGNATURE_UNSUPPORTED_CHAINS: string;
@@ -194,5 +185,13 @@ export declare const UserFriendlyErrorCodes: {
194
185
  INVALID_RECOVERY_PHRASE: string;
195
186
  PHRASES_DONT_MATCH: string;
196
187
  PASSWORDS_DONT_MATCH: string;
188
+ PASSWORD_SAME_AS_OLD: string;
197
189
  PASSWORD_TOO_SMALL: string;
190
+ PASSWORD_NOT_CORRECT: string;
191
+ CODE_ALREADY_USED: string;
192
+ ACCESS_CODE_REQUIRED: string;
193
+ ACCESS_CODE_IS_ALREADY_IN_USE: string;
194
+ ACCESS_CODE_IS_ALREADY_IN_USE1: string;
195
+ ERROR_DURING_PHRASE_CONFIRMATION: string;
196
+ INSUFFICIENT_LAMPORTS: string;
198
197
  };