@hinkal/common 0.2.30 → 0.2.32

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 (776) hide show
  1. package/API/API.cjs +1 -1
  2. package/API/API.d.ts +26 -11
  3. package/API/API.mjs +103 -88
  4. package/API/callMonitor.cjs +1 -1
  5. package/API/callMonitor.d.ts +8 -0
  6. package/API/callMonitor.mjs +2 -2
  7. package/API/callRelayer.d.ts +4 -1
  8. package/API/dashboardAccountCalls.cjs +1 -0
  9. package/API/dashboardAccountCalls.d.ts +24 -0
  10. package/API/dashboardAccountCalls.mjs +10 -0
  11. package/API/dashboardAccountMemberCalls.cjs +1 -0
  12. package/API/dashboardAccountMemberCalls.d.ts +34 -0
  13. package/API/dashboardAccountMemberCalls.mjs +16 -0
  14. package/API/dashboardBalanceCalls.cjs +1 -0
  15. package/API/dashboardBalanceCalls.d.ts +12 -0
  16. package/API/dashboardBalanceCalls.mjs +13 -0
  17. package/API/dashboardContactCalls.cjs +1 -0
  18. package/API/dashboardContactCalls.d.ts +9 -0
  19. package/API/dashboardContactCalls.mjs +13 -0
  20. package/API/dashboardPayoutCalls.cjs +1 -0
  21. package/API/dashboardPayoutCalls.d.ts +14 -0
  22. package/API/dashboardPayoutCalls.mjs +13 -0
  23. package/API/dashboardTransactionCalls.cjs +1 -0
  24. package/API/dashboardTransactionCalls.d.ts +3 -0
  25. package/API/dashboardTransactionCalls.mjs +10 -0
  26. package/API/enclaveRecipientInfoCalls.cjs +1 -0
  27. package/API/enclaveRecipientInfoCalls.d.ts +14 -0
  28. package/API/enclaveRecipientInfoCalls.mjs +7 -0
  29. package/API/enclaveSignatureCalls.cjs +1 -1
  30. package/API/enclaveSignatureCalls.d.ts +3 -8
  31. package/API/enclaveSignatureCalls.mjs +6 -8
  32. package/API/enclaveUtxoCalls.cjs +1 -1
  33. package/API/enclaveUtxoCalls.d.ts +8 -2
  34. package/API/enclaveUtxoCalls.mjs +5 -3
  35. package/API/fetchCommitmentsCache.cjs +1 -1
  36. package/API/fetchCommitmentsCache.d.ts +1 -19
  37. package/API/fetchCommitmentsCache.mjs +9 -22
  38. package/API/getAnyRecipientInfo.d.ts +1 -0
  39. package/API/getServerURL.cjs +1 -1
  40. package/API/getServerURL.d.ts +3 -0
  41. package/API/getServerURL.mjs +15 -32
  42. package/API/getWebsiteURL.cjs +1 -1
  43. package/API/getWebsiteURL.d.ts +3 -2
  44. package/API/getWebsiteURL.mjs +12 -5
  45. package/API/index.cjs +1 -1
  46. package/API/index.d.ts +2 -0
  47. package/API/index.mjs +2 -0
  48. package/API/kycCalls.cjs +1 -1
  49. package/API/kycCalls.d.ts +0 -5
  50. package/API/kycCalls.mjs +3 -10
  51. package/API/privateSendRecipientInfoCalls.cjs +1 -1
  52. package/API/privateSendRecipientInfoCalls.d.ts +0 -10
  53. package/API/privateSendRecipientInfoCalls.mjs +2 -2
  54. package/API/scheduled-transactions-calls.cjs +1 -1
  55. package/API/scheduled-transactions-calls.d.ts +8 -2
  56. package/API/scheduled-transactions-calls.mjs +5 -4
  57. package/API/tenderly.api.cjs +1 -1
  58. package/API/tenderly.api.d.ts +1 -1
  59. package/API/tenderly.api.mjs +1 -1
  60. package/constants/addresses.constants.cjs +1 -1
  61. package/constants/addresses.constants.d.ts +10 -7
  62. package/constants/addresses.constants.mjs +11 -8
  63. package/constants/assets.constants.cjs +1 -1
  64. package/constants/assets.constants.mjs +1 -1
  65. package/constants/auth.constants.cjs +1 -0
  66. package/constants/auth.constants.d.ts +2 -0
  67. package/constants/auth.constants.mjs +4 -0
  68. package/constants/backend.constants.cjs +1 -1
  69. package/constants/backend.constants.d.ts +0 -1
  70. package/constants/backend.constants.mjs +0 -1
  71. package/constants/bridging.constants.cjs +1 -1
  72. package/constants/bridging.constants.d.ts +2 -0
  73. package/constants/bridging.constants.mjs +7 -3
  74. package/constants/chains.constants.cjs +1 -1
  75. package/constants/chains.constants.d.ts +25 -8
  76. package/constants/chains.constants.mjs +168 -127
  77. package/constants/coingecko.constants.cjs +1 -1
  78. package/constants/coingecko.constants.d.ts +5 -3
  79. package/constants/coingecko.constants.mjs +8 -5
  80. package/constants/contracts.constants.cjs +1 -1
  81. package/constants/contracts.constants.mjs +0 -4
  82. package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
  83. package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +125 -850
  84. package/constants/deploy-data/deploy-data-arcTestnet.json.cjs +1 -1
  85. package/constants/deploy-data/deploy-data-arcTestnet.json.mjs +97 -1013
  86. package/constants/deploy-data/deploy-data-base.json.cjs +1 -1
  87. package/constants/deploy-data/deploy-data-base.json.mjs +132 -869
  88. package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
  89. package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +132 -871
  90. package/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
  91. package/constants/deploy-data/deploy-data-localhost.json.mjs +6 -808
  92. package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
  93. package/constants/deploy-data/deploy-data-optimism.json.mjs +132 -869
  94. package/constants/deploy-data/deploy-data-optimismTest.json.cjs +1 -0
  95. package/constants/deploy-data/deploy-data-optimismTest.json.mjs +3565 -0
  96. package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
  97. package/constants/deploy-data/deploy-data-polygon.json.mjs +132 -869
  98. package/constants/deploy-data/deploy-data-sepoliaTestnet.json.cjs +1 -0
  99. package/constants/deploy-data/deploy-data-sepoliaTestnet.json.mjs +3561 -0
  100. package/constants/deploy-data/deploy-data-solana.json.cjs +1 -1
  101. package/constants/deploy-data/deploy-data-solana.json.mjs +1 -1
  102. package/constants/deploy-data/deploy-data-tempo.json.cjs +1 -0
  103. package/constants/deploy-data/deploy-data-tempo.json.mjs +3563 -0
  104. package/constants/deploy-data/deploy-data-tronMainnet.json.cjs +1 -1
  105. package/constants/deploy-data/deploy-data-tronMainnet.json.mjs +133 -870
  106. package/constants/deploy-data/deploy-data-tronNile.json.cjs +1 -1
  107. package/constants/deploy-data/deploy-data-tronNile.json.mjs +133 -870
  108. package/constants/deploy-data/index.d.ts +4 -1
  109. package/constants/events.constants.cjs +1 -1
  110. package/constants/events.constants.mjs +4 -1
  111. package/constants/fees.constants.cjs +1 -1
  112. package/constants/fees.constants.d.ts +5 -1
  113. package/constants/fees.constants.mjs +9 -5
  114. package/constants/index.cjs +1 -1
  115. package/constants/index.d.ts +2 -1
  116. package/constants/index.mjs +6 -2
  117. package/constants/kyc.constants.cjs +1 -1
  118. package/constants/kyc.constants.d.ts +1 -1
  119. package/constants/kyc.constants.mjs +38 -37
  120. package/constants/lifi.constants.cjs +1 -1
  121. package/constants/lifi.constants.d.ts +2 -0
  122. package/constants/lifi.constants.mjs +7 -2
  123. package/constants/mediaUrls.constants.cjs +1 -1
  124. package/constants/mediaUrls.constants.d.ts +7 -1
  125. package/constants/mediaUrls.constants.mjs +9 -3
  126. package/constants/price-impact.constants.cjs +1 -0
  127. package/constants/price-impact.constants.d.ts +2 -0
  128. package/constants/price-impact.constants.mjs +4 -0
  129. package/constants/protocol.constants.cjs +1 -1
  130. package/constants/protocol.constants.d.ts +4 -1
  131. package/constants/protocol.constants.mjs +2 -2
  132. package/constants/reorg-depths.constants.cjs +1 -1
  133. package/constants/reorg-depths.constants.d.ts +3 -1
  134. package/constants/reorg-depths.constants.mjs +3 -1
  135. package/constants/save-depths.cjs +1 -1
  136. package/constants/save-depths.d.ts +3 -1
  137. package/constants/save-depths.mjs +3 -1
  138. package/constants/server.constants.cjs +1 -1
  139. package/constants/server.constants.d.ts +33 -8
  140. package/constants/server.constants.mjs +44 -24
  141. package/constants/token-data/ERC20Registry.cjs +1 -1
  142. package/constants/token-data/ERC20Registry.mjs +20 -9
  143. package/constants/token-data/arbMainnetRegistry.json.cjs +1 -1
  144. package/constants/token-data/arbMainnetRegistry.json.mjs +24 -24
  145. package/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -1
  146. package/constants/token-data/arbMainnetRegistryFixed.json.mjs +24 -24
  147. package/constants/token-data/arcTestnetRegistry.json.cjs +1 -1
  148. package/constants/token-data/arcTestnetRegistry.json.mjs +3 -3
  149. package/constants/token-data/baseRegistry.json.cjs +1 -1
  150. package/constants/token-data/baseRegistry.json.mjs +20 -12
  151. package/constants/token-data/baseRegistryFixed.json.cjs +1 -1
  152. package/constants/token-data/baseRegistryFixed.json.mjs +18 -10
  153. package/constants/token-data/ethMainnetRegistry.json.cjs +1 -1
  154. package/constants/token-data/ethMainnetRegistry.json.mjs +38 -38
  155. package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -1
  156. package/constants/token-data/ethMainnetRegistryFixed.json.mjs +38 -38
  157. package/constants/token-data/localhostRegistry.json.cjs +1 -1
  158. package/constants/token-data/localhostRegistry.json.mjs +211 -211
  159. package/constants/token-data/optimismRegistry.json.cjs +1 -1
  160. package/constants/token-data/optimismRegistry.json.mjs +36 -28
  161. package/constants/token-data/optimismRegistryFixed.json.cjs +1 -1
  162. package/constants/token-data/optimismRegistryFixed.json.mjs +36 -28
  163. package/constants/token-data/polygonRegistry.json.cjs +1 -1
  164. package/constants/token-data/polygonRegistry.json.mjs +34 -26
  165. package/constants/token-data/polygonRegistryFixed.json.cjs +1 -1
  166. package/constants/token-data/polygonRegistryFixed.json.mjs +34 -26
  167. package/constants/token-data/sepoliaTestnetRegistry.json.cjs +1 -0
  168. package/constants/token-data/sepoliaTestnetRegistry.json.mjs +21 -0
  169. package/constants/token-data/solanaMainnetRegistry.json.cjs +1 -1
  170. package/constants/token-data/solanaMainnetRegistry.json.mjs +1 -1
  171. package/constants/token-data/tempoRegistry.json.cjs +1 -0
  172. package/constants/token-data/tempoRegistry.json.mjs +37 -0
  173. package/constants/token-data/tronMainnetRegistry.json.cjs +1 -1
  174. package/constants/token-data/tronMainnetRegistry.json.mjs +26 -15
  175. package/constants/token-data/tronNileRegistry.json.cjs +1 -1
  176. package/constants/token-data/tronNileRegistry.json.mjs +2 -2
  177. package/constants/tokens.constants.cjs +1 -1
  178. package/constants/tokens.constants.d.ts +1 -0
  179. package/constants/tokens.constants.mjs +10 -3
  180. package/constants/vite.constants.cjs +1 -1
  181. package/constants/vite.constants.mjs +23 -5
  182. package/constants/wallet.constants.cjs +1 -1
  183. package/constants/wallet.constants.d.ts +1 -1
  184. package/constants/wallet.constants.mjs +2 -18
  185. package/crypto/babyJub.d.ts +1 -1
  186. package/crypto/ecdh-dual-path.cjs +1 -0
  187. package/crypto/ecdh-dual-path.d.ts +13 -0
  188. package/crypto/ecdh-dual-path.mjs +39 -0
  189. package/crypto/ecdh-sealed-keys.cjs +1 -0
  190. package/crypto/ecdh-sealed-keys.d.ts +22 -0
  191. package/crypto/ecdh-sealed-keys.mjs +33 -0
  192. package/crypto/ecdh.cjs +1 -0
  193. package/crypto/ecdh.d.ts +2 -0
  194. package/crypto/ecdh.mjs +9 -0
  195. package/crypto/eddsa.cjs +1 -0
  196. package/crypto/eddsa.d.ts +8 -0
  197. package/crypto/eddsa.mjs +12 -0
  198. package/crypto/index.cjs +1 -1
  199. package/crypto/index.d.ts +4 -0
  200. package/crypto/index.mjs +4 -0
  201. package/crypto/preProcessing.cjs +1 -1
  202. package/crypto/preProcessing.d.ts +1 -1
  203. package/crypto/preProcessing.mjs +10 -8
  204. package/data-structures/AccountActions/AccountActions.cjs +1 -1
  205. package/data-structures/AccountActions/AccountActions.mjs +3 -2
  206. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.cjs +1 -1
  207. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.mjs +2 -3
  208. package/data-structures/Hinkal/Hinkal.cjs +1 -1
  209. package/data-structures/Hinkal/Hinkal.d.ts +16 -21
  210. package/data-structures/Hinkal/Hinkal.mjs +144 -160
  211. package/data-structures/Hinkal/IHinkal.d.ts +13 -19
  212. package/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
  213. package/data-structures/Hinkal/handleAutoDepositBack.mjs +15 -15
  214. package/data-structures/Hinkal/hinkalClaimUtxo.cjs +1 -1
  215. package/data-structures/Hinkal/hinkalClaimUtxo.d.ts +1 -2
  216. package/data-structures/Hinkal/hinkalClaimUtxo.mjs +49 -47
  217. package/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
  218. package/data-structures/Hinkal/hinkalDeposit.d.ts +5 -3
  219. package/data-structures/Hinkal/hinkalDeposit.mjs +106 -50
  220. package/data-structures/Hinkal/hinkalDepositAndBridge.cjs +1 -1
  221. package/data-structures/Hinkal/hinkalDepositAndBridge.d.ts +1 -1
  222. package/data-structures/Hinkal/hinkalDepositAndBridge.mjs +94 -87
  223. package/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
  224. package/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +3 -2
  225. package/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +48 -48
  226. package/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -1
  227. package/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +41 -63
  228. package/data-structures/Hinkal/hinkalPalEvmDeposit.cjs +1 -0
  229. package/data-structures/Hinkal/hinkalPalEvmDeposit.d.ts +9 -0
  230. package/data-structures/Hinkal/hinkalPalEvmDeposit.mjs +19 -0
  231. package/data-structures/Hinkal/hinkalPalSolanaDepositPrepare.cjs +1 -0
  232. package/data-structures/Hinkal/hinkalPalSolanaDepositPrepare.d.ts +9 -0
  233. package/data-structures/Hinkal/hinkalPalSolanaDepositPrepare.mjs +18 -0
  234. package/data-structures/Hinkal/hinkalPalTronDepositPrepare.cjs +1 -0
  235. package/data-structures/Hinkal/hinkalPalTronDepositPrepare.d.ts +9 -0
  236. package/data-structures/Hinkal/hinkalPalTronDepositPrepare.mjs +17 -0
  237. package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
  238. package/data-structures/Hinkal/hinkalPrivateWallet.mjs +46 -50
  239. package/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -1
  240. package/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +4 -1
  241. package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +84 -128
  242. package/data-structures/Hinkal/hinkalProoflessDeposit.utils.cjs +1 -0
  243. package/data-structures/Hinkal/hinkalProoflessDeposit.utils.d.ts +7 -0
  244. package/data-structures/Hinkal/hinkalProoflessDeposit.utils.mjs +51 -0
  245. package/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.cjs +1 -0
  246. package/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.d.ts +6 -0
  247. package/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.mjs +128 -0
  248. package/data-structures/Hinkal/hinkalSolanaClaimUtxo.cjs +1 -1
  249. package/data-structures/Hinkal/hinkalSolanaClaimUtxo.d.ts +2 -2
  250. package/data-structures/Hinkal/hinkalSolanaClaimUtxo.mjs +68 -69
  251. package/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
  252. package/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +4 -3
  253. package/data-structures/Hinkal/hinkalSolanaDeposit.mjs +96 -57
  254. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
  255. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +20 -2
  256. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +114 -122
  257. package/data-structures/Hinkal/hinkalSolanaProoflessDeposit.cjs +1 -1
  258. package/data-structures/Hinkal/hinkalSolanaProoflessDeposit.d.ts +1 -1
  259. package/data-structures/Hinkal/hinkalSolanaProoflessDeposit.mjs +12 -17
  260. package/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -1
  261. package/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +38 -40
  262. package/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -1
  263. package/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +4 -3
  264. package/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +68 -52
  265. package/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -1
  266. package/data-structures/Hinkal/hinkalSolanaSwap.d.ts +2 -2
  267. package/data-structures/Hinkal/hinkalSolanaSwap.mjs +67 -72
  268. package/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -1
  269. package/data-structures/Hinkal/hinkalSolanaTransfer.d.ts +2 -1
  270. package/data-structures/Hinkal/hinkalSolanaTransfer.mjs +56 -61
  271. package/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -1
  272. package/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +38 -48
  273. package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
  274. package/data-structures/Hinkal/hinkalSwap.mjs +32 -42
  275. package/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
  276. package/data-structures/Hinkal/hinkalTransfer.mjs +41 -54
  277. package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
  278. package/data-structures/Hinkal/hinkalWithdraw.mjs +43 -56
  279. package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
  280. package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +87 -108
  281. package/data-structures/Hinkal/index.cjs +1 -1
  282. package/data-structures/Hinkal/index.d.ts +5 -0
  283. package/data-structures/Hinkal/index.mjs +5 -0
  284. package/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.cjs +1 -0
  285. package/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.d.ts +22 -0
  286. package/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.mjs +34 -0
  287. package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
  288. package/data-structures/Hinkal/resetMerkleTrees.mjs +33 -40
  289. package/data-structures/IndexedDB/activity-db.cjs +1 -1
  290. package/data-structures/IndexedDB/activity-db.mjs +25 -24
  291. package/data-structures/IndexedDB/contact-db.cjs +1 -1
  292. package/data-structures/IndexedDB/contact-db.d.ts +1 -0
  293. package/data-structures/IndexedDB/contact-db.mjs +30 -16
  294. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -1
  295. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +1 -1
  296. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +4 -4
  297. package/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +1 -1
  298. package/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +37 -34
  299. package/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -1
  300. package/data-structures/TokenDBs/EventsPublicTokensDB.d.ts +2 -0
  301. package/data-structures/TokenDBs/EventsPublicTokensDB.mjs +65 -50
  302. package/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -1
  303. package/data-structures/TokenDBs/PrivateTokensDB.mjs +2 -1
  304. package/data-structures/WalletManager/WalletManager.cjs +1 -0
  305. package/data-structures/WalletManager/WalletManager.d.ts +51 -0
  306. package/data-structures/WalletManager/WalletManager.mjs +99 -0
  307. package/data-structures/WalletManager/index.cjs +1 -0
  308. package/data-structures/WalletManager/index.d.ts +1 -0
  309. package/data-structures/WalletManager/index.mjs +1 -0
  310. package/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
  311. package/data-structures/crypto-keys/decodeUTXO.d.ts +5 -3
  312. package/data-structures/crypto-keys/decodeUTXO.mjs +49 -46
  313. package/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -1
  314. package/data-structures/crypto-keys/encryptDecryptUtxo.mjs +32 -40
  315. package/data-structures/crypto-keys/keys.cjs +1 -1
  316. package/data-structures/crypto-keys/keys.d.ts +51 -24
  317. package/data-structures/crypto-keys/keys.mjs +104 -43
  318. package/data-structures/custom-token-registry/CustomTokenRegistry.cjs +1 -1
  319. package/data-structures/custom-token-registry/CustomTokenRegistry.mjs +2 -2
  320. package/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -1
  321. package/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +2 -2
  322. package/data-structures/event-service/evm/BlockchainEventEmitter.mjs +4 -4
  323. package/data-structures/event-service/evm/PollingBlockchainEventEmitter.cjs +1 -1
  324. package/data-structures/event-service/evm/PollingBlockchainEventEmitter.mjs +1 -1
  325. package/data-structures/event-service/helpers/ClientEventHelper.cjs +1 -1
  326. package/data-structures/event-service/helpers/ClientEventHelper.mjs +3 -3
  327. package/data-structures/event-service/helpers/PollingEventHelper.cjs +1 -1
  328. package/data-structures/event-service/helpers/PollingEventHelper.d.ts +2 -0
  329. package/data-structures/event-service/helpers/PollingEventHelper.mjs +7 -3
  330. package/data-structures/event-service/index.cjs +1 -1
  331. package/data-structures/event-service/index.d.ts +0 -3
  332. package/data-structures/event-service/index.mjs +0 -3
  333. package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.cjs +1 -1
  334. package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.mjs +1 -1
  335. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.cjs +1 -1
  336. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +2 -2
  337. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.mjs +5 -5
  338. package/data-structures/index.cjs +1 -1
  339. package/data-structures/index.d.ts +1 -0
  340. package/data-structures/index.mjs +10 -10
  341. package/data-structures/merkle-tree/index.cjs +1 -1
  342. package/data-structures/merkle-tree/index.d.ts +0 -1
  343. package/data-structures/merkle-tree/index.mjs +0 -1
  344. package/data-structures/provider-adapter/IProviderAdapter.d.ts +6 -0
  345. package/data-structures/snapshot/SnapshotFetcherService.cjs +1 -1
  346. package/data-structures/snapshot/SnapshotFetcherService.d.ts +0 -2
  347. package/data-structures/snapshot/SnapshotFetcherService.mjs +0 -6
  348. package/data-structures/snapshot/index.cjs +1 -1
  349. package/data-structures/snapshot/index.d.ts +0 -3
  350. package/data-structures/snapshot/index.mjs +0 -3
  351. package/data-structures/utxo/Utxo.cjs +1 -1
  352. package/data-structures/utxo/Utxo.d.ts +16 -10
  353. package/data-structures/utxo/Utxo.mjs +40 -38
  354. package/error-handling/customErrors/HttpError.cjs +1 -0
  355. package/error-handling/customErrors/HttpError.d.ts +4 -0
  356. package/error-handling/customErrors/HttpError.mjs +8 -0
  357. package/error-handling/customErrors/index.cjs +1 -1
  358. package/error-handling/customErrors/index.d.ts +1 -0
  359. package/error-handling/customErrors/index.mjs +1 -0
  360. package/error-handling/error-codes.constants.cjs +1 -1
  361. package/error-handling/error-codes.constants.d.ts +11 -0
  362. package/error-handling/error-codes.constants.mjs +13 -2
  363. package/error-handling/index.cjs +1 -1
  364. package/error-handling/index.mjs +1 -0
  365. package/error-handling/retrySolanaError.cjs +1 -0
  366. package/error-handling/retrySolanaError.d.ts +1 -0
  367. package/error-handling/retrySolanaError.mjs +4 -0
  368. package/externalABIs/index.cjs +1 -1
  369. package/externalABIs/index.d.ts +1 -16
  370. package/externalABIs/index.mjs +4 -5
  371. package/functions/auto-deposit-back-helpers/get-gas-token-records.d.ts +1 -1
  372. package/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.d.ts +1 -1
  373. package/functions/index.cjs +1 -1
  374. package/functions/index.mjs +28 -19
  375. package/functions/kyc/checkTokenLimitsUSD.cjs +1 -1
  376. package/functions/kyc/checkTokenLimitsUSD.mjs +15 -15
  377. package/functions/kyc/index.cjs +1 -1
  378. package/functions/kyc/index.d.ts +0 -1
  379. package/functions/kyc/index.mjs +0 -1
  380. package/functions/pre-transaction/addressTableLookup.cjs +1 -1
  381. package/functions/pre-transaction/addressTableLookup.mjs +21 -18
  382. package/functions/pre-transaction/buildCommitmentValidationData.cjs +1 -0
  383. package/functions/pre-transaction/buildCommitmentValidationData.d.ts +4 -0
  384. package/functions/pre-transaction/buildCommitmentValidationData.mjs +58 -0
  385. package/functions/pre-transaction/calculateSolanaNullifierCount.cjs +1 -0
  386. package/functions/pre-transaction/calculateSolanaNullifierCount.d.ts +2 -0
  387. package/functions/pre-transaction/calculateSolanaNullifierCount.mjs +23 -0
  388. package/functions/pre-transaction/constructAdminData.cjs +1 -1
  389. package/functions/pre-transaction/constructAdminData.mjs +4 -4
  390. package/functions/pre-transaction/index.cjs +1 -1
  391. package/functions/pre-transaction/index.d.ts +2 -3
  392. package/functions/pre-transaction/index.mjs +3 -4
  393. package/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
  394. package/functions/pre-transaction/outputUtxoProcessing.d.ts +1 -1
  395. package/functions/pre-transaction/outputUtxoProcessing.mjs +22 -19
  396. package/functions/pre-transaction/recipientUtxoProcessing.cjs +1 -1
  397. package/functions/pre-transaction/recipientUtxoProcessing.mjs +11 -9
  398. package/functions/pre-transaction/sendInitNullifiersTransaction.cjs +1 -1
  399. package/functions/pre-transaction/sendInitNullifiersTransaction.mjs +9 -9
  400. package/functions/pre-transaction/sendV0Transaction.cjs +1 -1
  401. package/functions/pre-transaction/sendV0Transaction.mjs +45 -43
  402. package/functions/pre-transaction/solana-public-signals.cjs +1 -1
  403. package/functions/pre-transaction/solana-public-signals.d.ts +7 -6
  404. package/functions/pre-transaction/solana-public-signals.mjs +22 -19
  405. package/functions/pre-transaction/solana.cjs +1 -1
  406. package/functions/pre-transaction/solana.d.ts +0 -4
  407. package/functions/pre-transaction/solana.mjs +7 -27
  408. package/functions/pre-transaction/store-proof.cjs +1 -1
  409. package/functions/pre-transaction/store-proof.mjs +3 -3
  410. package/functions/private-wallet/emporium.helpers.cjs +1 -1
  411. package/functions/private-wallet/emporium.helpers.d.ts +14 -4
  412. package/functions/private-wallet/emporium.helpers.mjs +84 -74
  413. package/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
  414. package/functions/private-wallet/emporium.swap.helpers.mjs +6 -6
  415. package/functions/snarkjs/common.snarkjs.cjs +1 -1
  416. package/functions/snarkjs/common.snarkjs.d.ts +8 -13
  417. package/functions/snarkjs/common.snarkjs.mjs +65 -74
  418. package/functions/snarkjs/constant.cjs +1 -1
  419. package/functions/snarkjs/constant.d.ts +146 -426
  420. package/functions/snarkjs/constant.mjs +149 -430
  421. package/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
  422. package/functions/snarkjs/constructGeneralZkProof.d.ts +2 -3
  423. package/functions/snarkjs/constructGeneralZkProof.mjs +74 -57
  424. package/functions/snarkjs/constructSolanaZkProof.cjs +1 -1
  425. package/functions/snarkjs/constructSolanaZkProof.d.ts +1 -2
  426. package/functions/snarkjs/constructSolanaZkProof.mjs +65 -37
  427. package/functions/snarkjs/fetchMerkleTreeSiblings.cjs +1 -1
  428. package/functions/snarkjs/fetchMerkleTreeSiblings.d.ts +1 -1
  429. package/functions/snarkjs/fetchMerkleTreeSiblings.mjs +6 -10
  430. package/functions/snarkjs/fetchOnChainRootHashes.cjs +1 -1
  431. package/functions/snarkjs/fetchOnChainRootHashes.d.ts +0 -1
  432. package/functions/snarkjs/fetchOnChainRootHashes.mjs +22 -7
  433. package/functions/snarkjs/generateCircomData.cjs +1 -1
  434. package/functions/snarkjs/generateCircomData.d.ts +2 -2
  435. package/functions/snarkjs/generateCircomData.mjs +29 -31
  436. package/functions/snarkjs/generateZkProof.cjs +1 -1
  437. package/functions/snarkjs/generateZkProof.mjs +20 -10
  438. package/functions/snarkjs/generateZkProofEnclave.cjs +1 -1
  439. package/functions/snarkjs/generateZkProofEnclave.mjs +15 -18
  440. package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.cjs +1 -1
  441. package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.d.ts +2 -9
  442. package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +40 -94
  443. package/functions/snarkjs/getZKFiles.cjs +1 -1
  444. package/functions/snarkjs/getZKFiles.d.ts +1 -0
  445. package/functions/snarkjs/getZKFiles.mjs +2 -2
  446. package/functions/snarkjs/index.cjs +1 -1
  447. package/functions/snarkjs/index.d.ts +2 -1
  448. package/functions/snarkjs/index.mjs +2 -1
  449. package/functions/snarkjs/signedMessageHash.cjs +1 -0
  450. package/functions/snarkjs/signedMessageHash.d.ts +31 -0
  451. package/functions/snarkjs/signedMessageHash.mjs +49 -0
  452. package/functions/snarkjs/verifyCommitmentValidationData.cjs +1 -0
  453. package/functions/snarkjs/verifyCommitmentValidationData.d.ts +4 -0
  454. package/functions/snarkjs/verifyCommitmentValidationData.mjs +43 -0
  455. package/functions/utils/addresses.cjs +1 -1
  456. package/functions/utils/addresses.d.ts +2 -0
  457. package/functions/utils/addresses.mjs +12 -8
  458. package/functions/utils/aggregateTokenAmounts.cjs +1 -0
  459. package/functions/utils/aggregateTokenAmounts.d.ts +2 -0
  460. package/functions/utils/aggregateTokenAmounts.mjs +26 -0
  461. package/functions/utils/amounts.utils.cjs +1 -1
  462. package/functions/utils/amounts.utils.d.ts +0 -1
  463. package/functions/utils/amounts.utils.mjs +18 -18
  464. package/functions/utils/auth.utils.cjs +1 -0
  465. package/functions/utils/auth.utils.d.ts +5 -0
  466. package/functions/utils/auth.utils.mjs +7 -0
  467. package/functions/utils/bit.operations.cjs +1 -0
  468. package/functions/utils/bit.operations.d.ts +3 -0
  469. package/functions/utils/bit.operations.mjs +4 -0
  470. package/functions/utils/buildClaimableDepositPlan.cjs +1 -1
  471. package/functions/utils/buildClaimableDepositPlan.d.ts +3 -2
  472. package/functions/utils/buildClaimableDepositPlan.mjs +32 -24
  473. package/functions/utils/cacheFunctions.cjs +1 -1
  474. package/functions/utils/cacheFunctions.d.ts +0 -4
  475. package/functions/utils/cacheFunctions.mjs +33 -47
  476. package/functions/utils/create-provider.cjs +1 -1
  477. package/functions/utils/create-provider.d.ts +2 -3
  478. package/functions/utils/create-provider.mjs +9 -9
  479. package/functions/utils/customEnclaveFunctionsRegister.cjs +1 -0
  480. package/functions/utils/customEnclaveFunctionsRegister.d.ts +18 -0
  481. package/functions/utils/customEnclaveFunctionsRegister.mjs +8 -0
  482. package/functions/utils/deposit-claimable.utils.cjs +1 -0
  483. package/functions/utils/deposit-claimable.utils.d.ts +6 -0
  484. package/functions/utils/deposit-claimable.utils.mjs +106 -0
  485. package/functions/utils/dispatchBalanceRefreshes.cjs +1 -0
  486. package/functions/utils/dispatchBalanceRefreshes.d.ts +4 -0
  487. package/functions/utils/dispatchBalanceRefreshes.mjs +44 -0
  488. package/functions/utils/enclave-recipient-info-storage.cjs +1 -0
  489. package/functions/utils/enclave-recipient-info-storage.d.ts +2 -0
  490. package/functions/utils/enclave-recipient-info-storage.mjs +17 -0
  491. package/functions/utils/enclave-signature-storage.cjs +1 -1
  492. package/functions/utils/enclave-signature-storage.d.ts +1 -2
  493. package/functions/utils/enclave-signature-storage.mjs +6 -9
  494. package/functions/utils/enclave-utxo-storage.cjs +1 -1
  495. package/functions/utils/enclave-utxo-storage.d.ts +3 -2
  496. package/functions/utils/enclave-utxo-storage.mjs +18 -21
  497. package/functions/utils/encodeTokenWithId.cjs +1 -1
  498. package/functions/utils/encodeTokenWithId.mjs +1 -1
  499. package/functions/utils/encryptInputForEnclave.cjs +1 -1
  500. package/functions/utils/encryptInputForEnclave.mjs +17 -23
  501. package/functions/utils/enum.utils.cjs +1 -0
  502. package/functions/utils/enum.utils.mjs +12 -0
  503. package/functions/utils/erc20tokenFunctions.cjs +1 -1
  504. package/functions/utils/erc20tokenFunctions.d.ts +2 -0
  505. package/functions/utils/erc20tokenFunctions.mjs +26 -16
  506. package/functions/utils/evmNetworkFunctions.d.ts +1 -2
  507. package/functions/utils/fees.utils.cjs +1 -1
  508. package/functions/utils/fees.utils.d.ts +2 -1
  509. package/functions/utils/fees.utils.mjs +30 -16
  510. package/functions/utils/formatter.cjs +1 -0
  511. package/functions/utils/formatter.d.ts +1 -0
  512. package/functions/utils/formatter.mjs +15 -0
  513. package/functions/utils/getBlockExplorerUrl.cjs +1 -1
  514. package/functions/utils/getBlockExplorerUrl.mjs +1 -1
  515. package/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -1
  516. package/functions/utils/getRecipientInfoFromUserKeys.d.ts +2 -0
  517. package/functions/utils/getRecipientInfoFromUserKeys.mjs +14 -9
  518. package/functions/utils/getUtxosFromReceipt.utils.cjs +1 -1
  519. package/functions/utils/getUtxosFromReceipt.utils.d.ts +1 -0
  520. package/functions/utils/getUtxosFromReceipt.utils.mjs +43 -27
  521. package/functions/utils/getUtxosFromReceiptSolana.cjs +1 -1
  522. package/functions/utils/getUtxosFromReceiptSolana.d.ts +1 -0
  523. package/functions/utils/getUtxosFromReceiptSolana.mjs +36 -21
  524. package/functions/utils/getWalletGroupKey.utils.cjs +1 -1
  525. package/functions/utils/getWalletGroupKey.utils.mjs +4 -1
  526. package/functions/utils/index.cjs +1 -1
  527. package/functions/utils/index.d.ts +14 -1
  528. package/functions/utils/index.mjs +21 -9
  529. package/functions/utils/lifi.utils.cjs +1 -0
  530. package/functions/utils/lifi.utils.d.ts +3 -0
  531. package/functions/utils/lifi.utils.mjs +30 -0
  532. package/functions/utils/mnemonics.cjs +1 -0
  533. package/functions/utils/mnemonics.d.ts +1 -0
  534. package/functions/utils/mnemonics.mjs +8 -0
  535. package/functions/utils/pay-routing.utils.cjs +1 -0
  536. package/functions/utils/pay-routing.utils.d.ts +4 -0
  537. package/functions/utils/pay-routing.utils.mjs +17 -0
  538. package/functions/utils/prepareHinkal.cjs +1 -1
  539. package/functions/utils/prepareHinkal.mjs +29 -29
  540. package/functions/utils/publicBalance.utils.cjs +1 -1
  541. package/functions/utils/publicBalance.utils.mjs +5 -5
  542. package/functions/utils/serialize-utxos.utils.cjs +1 -1
  543. package/functions/utils/serialize-utxos.utils.mjs +6 -2
  544. package/functions/utils/solana-memo.cjs +1 -0
  545. package/functions/utils/solana-memo.d.ts +3 -0
  546. package/functions/utils/solana-memo.mjs +15 -0
  547. package/functions/utils/solanaSendPreflight.utils.cjs +1 -0
  548. package/functions/utils/solanaSendPreflight.utils.d.ts +6 -0
  549. package/functions/utils/solanaSendPreflight.utils.mjs +21 -0
  550. package/functions/utils/string.utils.cjs +1 -1
  551. package/functions/utils/string.utils.mjs +1 -1
  552. package/functions/utils/time.utils.cjs +1 -1
  553. package/functions/utils/time.utils.d.ts +6 -0
  554. package/functions/utils/time.utils.mjs +23 -16
  555. package/functions/utils/token-check.utils.cjs +1 -1
  556. package/functions/utils/token-check.utils.d.ts +1 -0
  557. package/functions/utils/token-check.utils.mjs +9 -8
  558. package/functions/utils/transfer-claimable.utils.cjs +1 -0
  559. package/functions/utils/transfer-claimable.utils.d.ts +9 -0
  560. package/functions/utils/transfer-claimable.utils.mjs +93 -0
  561. package/functions/utils/tron.utils.cjs +1 -1
  562. package/functions/utils/tron.utils.d.ts +11 -1
  563. package/functions/utils/tron.utils.mjs +85 -40
  564. package/functions/utils/tx-confirmation.utils.cjs +1 -1
  565. package/functions/utils/tx-confirmation.utils.d.ts +1 -1
  566. package/functions/utils/tx-confirmation.utils.mjs +5 -5
  567. package/functions/utils/userAgent.cjs +1 -1
  568. package/functions/utils/userAgent.d.ts +1 -0
  569. package/functions/utils/userAgent.mjs +4 -1
  570. package/functions/web3/connectors.utils.cjs +1 -1
  571. package/functions/web3/connectors.utils.d.ts +1 -0
  572. package/functions/web3/connectors.utils.mjs +5 -2
  573. package/functions/web3/events/balanceChangedHandler.cjs +1 -1
  574. package/functions/web3/events/balanceChangedHandler.d.ts +2 -1
  575. package/functions/web3/events/balanceChangedHandler.mjs +3 -3
  576. package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
  577. package/functions/web3/events/getInputUtxoAndBalance.d.ts +1 -1
  578. package/functions/web3/events/getInputUtxoAndBalance.mjs +21 -20
  579. package/functions/web3/events/getInputUtxosEnclave.cjs +1 -1
  580. package/functions/web3/events/getInputUtxosEnclave.d.ts +2 -1
  581. package/functions/web3/events/getInputUtxosEnclave.mjs +25 -18
  582. package/functions/web3/events/getShieldedBalance.cjs +1 -1
  583. package/functions/web3/events/getShieldedBalance.mjs +15 -17
  584. package/functions/web3/events/getTransactionLogEvents.cjs +1 -1
  585. package/functions/web3/events/getTransactionLogEvents.d.ts +8 -5
  586. package/functions/web3/events/getTransactionLogEvents.mjs +1 -1
  587. package/functions/web3/events/index.cjs +1 -1
  588. package/functions/web3/events/index.d.ts +0 -2
  589. package/functions/web3/events/index.mjs +0 -2
  590. package/functions/web3/functionCalls/constructBatchCall.cjs +1 -1
  591. package/functions/web3/functionCalls/constructBatchCall.d.ts +1 -0
  592. package/functions/web3/functionCalls/constructBatchCall.mjs +10 -2
  593. package/functions/web3/functionCalls/transactCallDirectTron.cjs +1 -1
  594. package/functions/web3/functionCalls/transactCallDirectTron.d.ts +4 -1
  595. package/functions/web3/functionCalls/transactCallDirectTron.mjs +89 -55
  596. package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
  597. package/functions/web3/functionCalls/transactCallRelayer.d.ts +5 -4
  598. package/functions/web3/functionCalls/transactCallRelayer.mjs +17 -13
  599. package/functions/web3/getContractMetadata.cjs +1 -1
  600. package/functions/web3/getContractMetadata.mjs +1 -1
  601. package/functions/web3/getTokenHolder.cjs +1 -1
  602. package/functions/web3/getTokenHolder.mjs +1 -1
  603. package/functions/web3/index.cjs +1 -1
  604. package/functions/web3/index.d.ts +0 -1
  605. package/functions/web3/index.mjs +0 -3
  606. package/functions/web3/lifiAPI.cjs +1 -1
  607. package/functions/web3/lifiAPI.mjs +28 -19
  608. package/functions/web3/oneInchAPI.cjs +1 -1
  609. package/functions/web3/oneInchAPI.mjs +1 -1
  610. package/index.cjs +1 -1
  611. package/index.mjs +331 -309
  612. package/package.json +5 -2
  613. package/providers/EthersProviderAdapter.cjs +1 -1
  614. package/providers/EthersProviderAdapter.mjs +1 -1
  615. package/providers/SolanaProviderAdapter.cjs +1 -1
  616. package/providers/SolanaProviderAdapter.d.ts +10 -1
  617. package/providers/SolanaProviderAdapter.mjs +38 -2
  618. package/providers/TronProviderAdapter.cjs +1 -1
  619. package/providers/TronProviderAdapter.mjs +2 -2
  620. package/providers/WagmiProviderAdapter.cjs +1 -1
  621. package/providers/WagmiProviderAdapter.d.ts +3 -1
  622. package/providers/WagmiProviderAdapter.mjs +62 -52
  623. package/providers/prepareSolanaHinkal.cjs +1 -1
  624. package/providers/prepareSolanaHinkal.mjs +3 -3
  625. package/types/admin.types.cjs +1 -1
  626. package/types/admin.types.d.ts +1 -8
  627. package/types/admin.types.mjs +1 -1
  628. package/types/cache.types.cjs +1 -1
  629. package/types/cache.types.d.ts +2 -1
  630. package/types/cache.types.mjs +1 -1
  631. package/types/chains.types.cjs +1 -0
  632. package/types/chains.types.d.ts +11 -0
  633. package/types/chains.types.mjs +8 -0
  634. package/types/circom-data.types.d.ts +13 -0
  635. package/types/commitments.types.d.ts +0 -6
  636. package/types/contacts.types.d.ts +1 -0
  637. package/types/dashboard-account.cjs +1 -0
  638. package/types/dashboard-account.d.ts +101 -0
  639. package/types/dashboard-account.mjs +8 -0
  640. package/types/dashboard-payout.types.cjs +1 -0
  641. package/types/dashboard-payout.types.d.ts +29 -0
  642. package/types/dashboard-payout.types.mjs +8 -0
  643. package/types/dashboard-transaction.types.d.ts +22 -0
  644. package/types/ethereum-network.types.cjs +1 -1
  645. package/types/ethereum-network.types.d.ts +15 -18
  646. package/types/ethereum-network.types.mjs +1 -1
  647. package/types/events.types.cjs +1 -1
  648. package/types/events.types.d.ts +2 -3
  649. package/types/events.types.mjs +1 -1
  650. package/types/external-action.types.cjs +1 -1
  651. package/types/external-action.types.d.ts +2 -1
  652. package/types/external-action.types.mjs +1 -1
  653. package/types/hinkal.types.cjs +1 -1
  654. package/types/hinkal.types.d.ts +6 -17
  655. package/types/hinkal.types.mjs +16 -18
  656. package/types/index.cjs +1 -1
  657. package/types/index.d.ts +6 -0
  658. package/types/index.mjs +3 -0
  659. package/types/pay-activities.types.d.ts +3 -0
  660. package/types/pay-routing.types.d.ts +9 -0
  661. package/types/scheduled-transactions.types.d.ts +7 -0
  662. package/types/solana.types.d.ts +5 -6
  663. package/types/token-prices.types.d.ts +4 -0
  664. package/types/transaction.types.d.ts +1 -3
  665. package/webworker/WorkerWrapper.cjs +1 -0
  666. package/webworker/WorkerWrapper.d.ts +9 -0
  667. package/webworker/WorkerWrapper.mjs +22 -0
  668. package/webworker/logError-fCJ4HXQz.js +22 -0
  669. package/webworker/package.json +112 -0
  670. package/webworker/performTaskWithWorker.cjs +1 -1
  671. package/webworker/performTaskWithWorker.mjs +4 -4
  672. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs +1 -1
  673. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.mjs +1 -1
  674. package/webworker/snarkjsWorker/snarkjsWorkerLogic.d.ts +0 -3
  675. package/webworker/snarkjsWorker/snarkjsWorkerNode.d.ts +0 -0
  676. package/webworker/snarkjsWorkerNode.cjs +3 -0
  677. package/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -1
  678. package/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +1 -1
  679. package/webworker/utxoWorker/utxoWorkerLogic.d.ts +0 -3
  680. package/webworker/utxoWorker/utxoWorkerNode.d.ts +0 -0
  681. package/webworker/utxoWorkerNode.cjs +1 -0
  682. package/webworker/viteWorkerURL.constant.cjs +4 -4
  683. package/webworker/viteWorkerURL.constant.mjs +4 -4
  684. package/webworker/worker.registry.cjs +1 -1
  685. package/webworker/worker.registry.mjs +6 -3
  686. package/webworker/workerFactory.cjs +1 -1
  687. package/webworker/workerFactory.d.ts +4 -1
  688. package/webworker/workerFactory.mjs +31 -17
  689. package/webworker/workerProxy-BNBqYien.js +130 -0
  690. package/webworker/workerProxy.d.ts +1 -1
  691. package/webworker/workerThreadsPatch.d.ts +1 -0
  692. package/webworker/zkProofWorker/zkProofWorker.types.cjs +1 -1
  693. package/webworker/zkProofWorker/zkProofWorker.types.d.ts +3 -13
  694. package/webworker/zkProofWorker/zkProofWorker.types.mjs +1 -1
  695. package/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -1
  696. package/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +1 -1
  697. package/webworker/zkProofWorker/zkProofWorkerLogic.d.ts +1 -5
  698. package/webworker/zkProofWorker/zkProofWorkerNode.d.ts +0 -0
  699. package/webworker/zkProofWorkerNode.cjs +1 -0
  700. package/API/solana-calls.cjs +0 -1
  701. package/API/solana-calls.d.ts +0 -38
  702. package/API/solana-calls.mjs +0 -8
  703. package/constants/non-circular-tokens.constants.cjs +0 -1
  704. package/constants/non-circular-tokens.constants.d.ts +0 -1
  705. package/constants/non-circular-tokens.constants.mjs +0 -4
  706. package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.cjs +0 -1
  707. package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.d.ts +0 -3
  708. package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.mjs +0 -15
  709. package/data-structures/Hinkal/hinkalCheckTokenRegistry.cjs +0 -1
  710. package/data-structures/Hinkal/hinkalCheckTokenRegistry.d.ts +0 -4
  711. package/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +0 -18
  712. package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.cjs +0 -1
  713. package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.d.ts +0 -35
  714. package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.mjs +0 -75
  715. package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.cjs +0 -1
  716. package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.d.ts +0 -30
  717. package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.mjs +0 -81
  718. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.cjs +0 -1
  719. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.d.ts +0 -35
  720. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs +0 -76
  721. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs +0 -1
  722. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.d.ts +0 -2
  723. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs +0 -13
  724. package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.cjs +0 -1
  725. package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.d.ts +0 -8
  726. package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.mjs +0 -29
  727. package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.cjs +0 -1
  728. package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.d.ts +0 -8
  729. package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.mjs +0 -30
  730. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.cjs +0 -1
  731. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.d.ts +0 -8
  732. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs +0 -26
  733. package/externalABIs/transactionsProver.json.cjs +0 -1
  734. package/externalABIs/transactionsProver.json.mjs +0 -43
  735. package/functions/pre-transaction/getKycAndSignatureData.cjs +0 -1
  736. package/functions/pre-transaction/getKycAndSignatureData.d.ts +0 -5
  737. package/functions/pre-transaction/getKycAndSignatureData.mjs +0 -12
  738. package/functions/pre-transaction/getSignatureDataForTransact.cjs +0 -1
  739. package/functions/pre-transaction/getSignatureDataForTransact.d.ts +0 -3
  740. package/functions/pre-transaction/getSignatureDataForTransact.mjs +0 -6
  741. package/functions/pre-transaction/initTokenLimitIfNeeded.cjs +0 -1
  742. package/functions/pre-transaction/initTokenLimitIfNeeded.d.ts +0 -3
  743. package/functions/pre-transaction/initTokenLimitIfNeeded.mjs +0 -17
  744. package/functions/pre-transaction/outputApprovalDataProcessing.cjs +0 -1
  745. package/functions/pre-transaction/outputApprovalDataProcessing.d.ts +0 -10
  746. package/functions/pre-transaction/outputApprovalDataProcessing.mjs +0 -22
  747. package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.cjs +0 -1
  748. package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.d.ts +0 -6
  749. package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.mjs +0 -11
  750. package/functions/snarkjs/constructEmporiumProof.cjs +0 -1
  751. package/functions/snarkjs/constructEmporiumProof.d.ts +0 -13
  752. package/functions/snarkjs/constructEmporiumProof.mjs +0 -74
  753. package/functions/utils/processUseApprovalUtxoData.cjs +0 -1
  754. package/functions/utils/processUseApprovalUtxoData.d.ts +0 -3
  755. package/functions/utils/processUseApprovalUtxoData.mjs +0 -13
  756. package/functions/web3/events/balanceChangedCustomHandler.cjs +0 -1
  757. package/functions/web3/events/balanceChangedCustomHandler.d.ts +0 -2
  758. package/functions/web3/events/balanceChangedCustomHandler.mjs +0 -9
  759. package/functions/web3/events/getApprovedBalance.cjs +0 -1
  760. package/functions/web3/events/getApprovedBalance.d.ts +0 -6
  761. package/functions/web3/events/getApprovedBalance.mjs +0 -37
  762. package/functions/web3/functionCalls/accessTokenCalls.cjs +0 -1
  763. package/functions/web3/functionCalls/accessTokenCalls.d.ts +0 -2
  764. package/functions/web3/functionCalls/accessTokenCalls.mjs +0 -19
  765. package/functions/web3/tron-wagmi-adapter.cjs +0 -1
  766. package/functions/web3/tron-wagmi-adapter.d.ts +0 -8
  767. package/functions/web3/tron-wagmi-adapter.mjs +0 -27
  768. package/providers/CustomEthersProvider.d.ts +0 -10
  769. package/webworker/snarkjsWorker/snarkjsWorkerLogic.cjs +0 -1
  770. package/webworker/snarkjsWorker/snarkjsWorkerLogic.mjs +0 -30
  771. package/webworker/utxoWorker/utxoWorkerLogic.cjs +0 -1
  772. package/webworker/utxoWorker/utxoWorkerLogic.mjs +0 -69
  773. package/webworker/workerProxy.cjs +0 -1
  774. package/webworker/workerProxy.mjs +0 -33
  775. package/webworker/zkProofWorker/zkProofWorkerLogic.cjs +0 -1
  776. package/webworker/zkProofWorker/zkProofWorkerLogic.mjs +0 -45
@@ -10,7 +10,5 @@ export declare class SnapshotFetcherService {
10
10
  private ensureSnapshots;
11
11
  getAll(forceRefresh?: boolean): Promise<ISnapshotsResponse>;
12
12
  getCommitments(forceRefresh?: boolean): Promise<import('../../API/fetchCommitmentsCache').ICommitmentsTreeSnapshot>;
13
- getAccessTokens(forceRefresh?: boolean): Promise<import('../../API/fetchCommitmentsCache').IAccessTokenTreeSnapshot>;
14
13
  getNullifiers(forceRefresh?: boolean): Promise<import('../../API/fetchCommitmentsCache').INullifiersSnapshot>;
15
- getApprovals(forceRefresh?: boolean): Promise<import('../../API/fetchCommitmentsCache').IApprovalsSnapshot | undefined>;
16
14
  }
@@ -26,15 +26,9 @@ var n = 300 * 1e3, r = class {
26
26
  async getCommitments(e = !1) {
27
27
  return (await this.ensureSnapshots(e)).commitments;
28
28
  }
29
- async getAccessTokens(e = !1) {
30
- return (await this.ensureSnapshots(e)).accessTokens;
31
- }
32
29
  async getNullifiers(e = !1) {
33
30
  return (await this.ensureSnapshots(e)).nullifiers;
34
31
  }
35
- async getApprovals(e = !1) {
36
- return (await this.ensureSnapshots(e)).approvals;
37
- }
38
32
  };
39
33
  //#endregion
40
34
  export { r as SnapshotFetcherService };
@@ -1 +1 @@
1
- require(`./SnapshotFetcherService.cjs`),require(`./solana-snapshots/ClientSolanaCommitmentsSnapshotService.cjs`),require(`./solana-snapshots/ClientSolanaNullifierSnapshotService.cjs`),require(`./solana-snapshots/ClientSolanaAccessTokenSnapshotService.cjs`),require(`./evm-snapshots/ClientAccessTokenSnapshotService.cjs`),require(`./evm-snapshots/ClientCommitmentsSnapshotService.cjs`),require(`./evm-snapshots/ClientNullifierSnapshotService.cjs`),require(`./evm-snapshots/ClientApprovalsSnapshotService.cjs`);
1
+ require(`./SnapshotFetcherService.cjs`),require(`./solana-snapshots/ClientSolanaCommitmentsSnapshotService.cjs`),require(`./solana-snapshots/ClientSolanaNullifierSnapshotService.cjs`),require(`./evm-snapshots/ClientCommitmentsSnapshotService.cjs`),require(`./evm-snapshots/ClientNullifierSnapshotService.cjs`);
@@ -1,8 +1,5 @@
1
1
  export * from './SnapshotFetcherService';
2
2
  export * from './solana-snapshots/ClientSolanaCommitmentsSnapshotService';
3
3
  export * from './solana-snapshots/ClientSolanaNullifierSnapshotService';
4
- export * from './solana-snapshots/ClientSolanaAccessTokenSnapshotService';
5
- export * from './evm-snapshots/ClientAccessTokenSnapshotService';
6
4
  export * from './evm-snapshots/ClientCommitmentsSnapshotService';
7
5
  export * from './evm-snapshots/ClientNullifierSnapshotService';
8
- export * from './evm-snapshots/ClientApprovalsSnapshotService';
@@ -1,8 +1,5 @@
1
1
  import "./SnapshotFetcherService.mjs";
2
2
  import "./solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs";
3
3
  import "./solana-snapshots/ClientSolanaNullifierSnapshotService.mjs";
4
- import "./solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs";
5
- import "./evm-snapshots/ClientAccessTokenSnapshotService.mjs";
6
4
  import "./evm-snapshots/ClientCommitmentsSnapshotService.mjs";
7
5
  import "./evm-snapshots/ClientNullifierSnapshotService.mjs";
8
- import "./evm-snapshots/ClientApprovalsSnapshotService.mjs";
@@ -1 +1 @@
1
- const e=require(`../../constants/chains.constants.cjs`),t=require(`../../constants/protocol.constants.cjs`),n=require(`../../functions/web3/etherFunctions.cjs`),r=require(`../../crypto/poseidon.cjs`),i=require(`../crypto-keys/keys.cjs`),a=require(`../../functions/utils/time.utils.cjs`);var o=class o{amount;erc20TokenAddress;mintAddress;timeStamp;tokenId;shieldedPrivateKey;randomization;stealthAddress;encryptionKey;commitment;nullifier;isBlocked;constructor({amount:e,erc20TokenAddress:t,mintAddress:r,timeStamp:i,tokenId:s,shieldedPrivateKey:c,randomization:l,stealthAddress:u,encryptionKey:d,commitment:f=void 0,nullifier:p=void 0,isBlocked:m=!1}){this.amount=e,this.erc20TokenAddress=t,this.mintAddress=r,this.timeStamp=i??a.getCurrentTimeInSeconds().toString(),this.tokenId=s??0,this.shieldedPrivateKey=c,this.randomization=l??o.findCorrectRandomization(n.randomBigInt(31),c),this.stealthAddress=u,this.encryptionKey=d,this.commitment=f,this.nullifier=p,this.isBlocked=m}static createFrom(e,t){return new o({...e.getConstructableParams(),nullifier:void 0,commitment:void 0,...t})}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,isBlocked:this.isBlocked}}getBasicUtxoParams(){return{amount:this.amount,erc20TokenAddress:this.erc20TokenAddress,mintAddress:this.mintAddress,timeStamp:this.timeStamp,randomization:this.randomization,stealthAddress:this.stealthAddress,tokenId:this.tokenId,commitment:this.commitment,nullifier:this.nullifier,isBlocked:this.isBlocked}}getCommitment(){if(!this.commitment){let e=[this.amount,this.erc20TokenAddress,BigInt(this.getStealthAddress()),this.timeStamp];this.tokenId>0&&e.push(this.tokenId.toString()),this.commitment=r.poseidonHash(...e)}return this.commitment}getNullifier(){if(!this.nullifier){if(!this.shieldedPrivateKey)throw Error(`No Nullifiers if private key is not provided`);let e=r.poseidonHash(this.shieldedPrivateKey,this.getCommitment());this.nullifier=r.poseidonHash(this.commitment,e)}return this.nullifier}getStealthAddress(){if(!this.stealthAddress){if(!this.shieldedPrivateKey)throw Error(`No stealth address in UTXO if private key is not provided`);this.stealthAddress=i.UserKeys.getStealthAddress(this.randomization,this.shieldedPrivateKey)}return this.stealthAddress}getEncryptionKey(){if(!this.shieldedPrivateKey){if(!this.encryptionKey)throw Error(`No encryption key provided in UTXO`);return this.encryptionKey}return i.UserKeys.getEncryptionKeyPair(this.shieldedPrivateKey).publicKey}static findCorrectRandomization(e,n){if(!n)throw Error(`No Private Shielded Key Provided`);let r=BigInt(n)%t.CIRCOM_P,i,a,o=0n;do i=e*10n**o%t.CIRCOM_P,a=i*r%t.CIRCOM_P,o+=1n;while(a>=2n**253n||i>=2n**253n);return i}getTokenAddress(t){let n=e.isSolanaLike(t)?this.mintAddress:this.erc20TokenAddress;if(!n)throw Error(`No token address provided`);return n}};exports.Utxo=o;
1
+ const e=require(`../../constants/chains.constants.cjs`),t=require(`../../functions/web3/etherFunctions.cjs`),n=require(`../../crypto/poseidon.cjs`),r=require(`../crypto-keys/keys.cjs`),i=require(`../../functions/utils/time.utils.cjs`);var a=class a{amount;erc20TokenAddress;mintAddress;timeStamp;nullifyingKey;spendingPublicKey;randomization;H0;stealthAddress;encryptionKey;commitment;nullifier;isBlocked;isNewStyle;constructor({amount:e,erc20TokenAddress:n,mintAddress:a,timeStamp:o,nullifyingKey:s,spendingPublicKey:c,randomization:l,H0:u,stealthAddress:d,encryptionKey:f,commitment:p=void 0,nullifier:m=void 0,isBlocked:h=!1,isNewStyle:g=!1}){this.amount=e,this.erc20TokenAddress=n,this.mintAddress=a,this.timeStamp=o??i.getCurrentTimeInSeconds().toString(),this.nullifyingKey=s,this.spendingPublicKey=c,this.randomization=l??(s?r.UserKeys.findCorrectRandomization(t.randomBigInt(31),s):void 0),this.H0=u??(g&&this.randomization?r.UserKeys.findH0(this.randomization,s):void 0),this.stealthAddress=d,this.encryptionKey=f,this.commitment=p,this.nullifier=m,this.isBlocked=h,this.isNewStyle=g}static createFrom(e,t){return new a({...e.getConstructableParams(),nullifier:void 0,commitment:void 0,...t})}getConstructableParams(){return{amount:this.amount,erc20TokenAddress:this.erc20TokenAddress,mintAddress:this.mintAddress,timeStamp:this.timeStamp,nullifyingKey:this.nullifyingKey,spendingPublicKey:this.spendingPublicKey,randomization:this.randomization,H0:this.H0,stealthAddress:this.stealthAddress,encryptionKey:this.encryptionKey,commitment:this.commitment,nullifier:this.nullifier,isBlocked:this.isBlocked,isNewStyle:this.isNewStyle}}getBasicUtxoParams(){return{amount:this.amount,erc20TokenAddress:this.erc20TokenAddress,mintAddress:this.mintAddress,timeStamp:this.timeStamp,randomization:this.randomization,H0:this.H0,stealthAddress:this.stealthAddress,commitment:this.commitment,nullifier:this.nullifier,isBlocked:this.isBlocked,isNewStyle:this.isNewStyle}}getCommitment(){if(!this.commitment){let e=[this.amount,this.erc20TokenAddress,BigInt(this.getStealthAddress()),this.timeStamp];this.commitment=n.poseidonHash(...e)}return this.commitment}getNullifier(){if(!this.nullifier){if(!this.nullifyingKey)throw Error(`No Nullifiers if private key is not provided`);let e=this.getCommitment(),t=n.poseidonHash(this.nullifyingKey,e);this.nullifier=n.poseidonHash(e,t)}return this.nullifier}getStealthAddress(){if(!this.stealthAddress){if(!this.nullifyingKey)throw Error(`No stealth address in UTXO if private key is not provided`);if(this.isNewStyle){if(!this.H0)throw Error(`No H0 point provided`);this.stealthAddress=r.UserKeys.getStealthAddressNewStyle(this.H0,this.nullifyingKey,this.spendingPublicKey)}else{if(!this.randomization)throw Error(`No randomization provided`);this.stealthAddress=r.UserKeys.getStealthAddress(this.randomization,this.nullifyingKey)}}return this.stealthAddress}getTokenAddress(t){let n=e.isSolanaLike(t)?this.mintAddress:this.erc20TokenAddress;if(!n)throw Error(`No token address provided`);return n}getEncryptionKey(){if(!this.nullifyingKey){if(!this.encryptionKey)throw Error(`No encryption key provided in UTXO`);return this.encryptionKey}return r.UserKeys.getEncryptionKeyPair(this.nullifyingKey).publicKey}};exports.Utxo=a;
@@ -1,14 +1,17 @@
1
+ import { JubPoint } from '../../crypto/babyJub';
1
2
  export type IUtxoConstructor<T = bigint> = {
2
3
  amount: T;
3
4
  erc20TokenAddress: string;
4
5
  mintAddress?: string;
5
6
  timeStamp?: string;
6
- shieldedPrivateKey?: string;
7
+ nullifyingKey?: string;
8
+ spendingPublicKey?: T[];
7
9
  randomization?: T;
10
+ H0?: JubPoint<T>;
8
11
  stealthAddress?: string;
9
12
  encryptionKey?: string;
10
- tokenId?: number;
11
13
  isBlocked?: boolean;
14
+ isNewStyle?: boolean;
12
15
  commitment?: string;
13
16
  nullifier?: string;
14
17
  };
@@ -20,28 +23,32 @@ export declare class Utxo {
20
23
  erc20TokenAddress: string;
21
24
  mintAddress?: string;
22
25
  timeStamp: string;
23
- tokenId: number;
24
- shieldedPrivateKey?: string;
25
- randomization: bigint;
26
+ nullifyingKey?: string;
27
+ spendingPublicKey?: bigint[];
28
+ randomization?: bigint;
29
+ H0?: JubPoint;
26
30
  stealthAddress?: string;
27
31
  encryptionKey?: string;
28
32
  commitment?: string;
29
33
  nullifier?: string;
30
34
  isBlocked: boolean;
35
+ isNewStyle?: boolean;
31
36
  /**
32
37
  * creates new UTXO instance
33
38
  * @param amount UTXO amount
34
39
  * @param erc20TokenAddress contract address of ERC-20/ERC-721 token
35
40
  * @param timeStamp timestamp
36
- * @param tokenId tokenId
41
+ * @param nullifyingKeykey for nullification
42
+ * @param spendingPublicKey spending public key
37
43
  * @param randomization randomization parameter
44
+ * @param H0 BJJ point
38
45
  * @param stealthAddress stealth address as a parameter(e.g. in case of transfers we will not know private key and randomization of payee
39
46
  * @param encryptionKey encryption public key
40
- * @param shieldedPrivateKey private key for nullification
41
47
  * @param commitment [optional] commitment value if already computed
42
48
  * @param nullifier [optional] nullifier value if already computed
49
+ * @param isBlocked [optional] whether the UTXO is blocked
43
50
  */
44
- constructor({ amount, erc20TokenAddress, mintAddress, timeStamp, tokenId, shieldedPrivateKey, randomization, stealthAddress, encryptionKey, commitment, nullifier, isBlocked, }: IUtxoConstructor);
51
+ constructor({ amount, erc20TokenAddress, mintAddress, timeStamp, nullifyingKey, spendingPublicKey, randomization, H0, stealthAddress, encryptionKey, commitment, nullifier, isBlocked, isNewStyle, }: IUtxoConstructor);
45
52
  static createFrom(utxoToCreateFrom: Utxo, patch: Partial<IUtxoConstructor>): Utxo;
46
53
  getConstructableParams(): IUtxoConstructor;
47
54
  getBasicUtxoParams(): IUtxoConstructor;
@@ -57,7 +64,6 @@ export declare class Utxo {
57
64
  * @returns stealth address from randomization and private shieldedPrivateKey
58
65
  */
59
66
  getStealthAddress(): string;
60
- getEncryptionKey(): string;
61
- static findCorrectRandomization(initialRandomization: bigint, privateKey?: string): bigint;
62
67
  getTokenAddress(chainId: number): string;
68
+ getEncryptionKey(): string;
63
69
  }
@@ -1,28 +1,29 @@
1
1
  import { isSolanaLike as e } from "../../constants/chains.constants.mjs";
2
- import { CIRCOM_P as t } from "../../constants/protocol.constants.mjs";
3
- import { randomBigInt as n } from "../../functions/web3/etherFunctions.mjs";
4
- import { poseidonHash as r } from "../../crypto/poseidon.mjs";
5
- import { UserKeys as i } from "../crypto-keys/keys.mjs";
6
- import { getCurrentTimeInSeconds as a } from "../../functions/utils/time.utils.mjs";
2
+ import { randomBigInt as t } from "../../functions/web3/etherFunctions.mjs";
3
+ import { poseidonHash as n } from "../../crypto/poseidon.mjs";
4
+ import { UserKeys as r } from "../crypto-keys/keys.mjs";
5
+ import { getCurrentTimeInSeconds as i } from "../../functions/utils/time.utils.mjs";
7
6
  //#region libs/shared/common/src/data-structures/utxo/Utxo.ts
8
- var o = class o {
7
+ var a = class a {
9
8
  amount;
10
9
  erc20TokenAddress;
11
10
  mintAddress;
12
11
  timeStamp;
13
- tokenId;
14
- shieldedPrivateKey;
12
+ nullifyingKey;
13
+ spendingPublicKey;
15
14
  randomization;
15
+ H0;
16
16
  stealthAddress;
17
17
  encryptionKey;
18
18
  commitment;
19
19
  nullifier;
20
20
  isBlocked;
21
- constructor({ amount: e, erc20TokenAddress: t, mintAddress: r, timeStamp: i, tokenId: s, shieldedPrivateKey: c, randomization: l, stealthAddress: u, encryptionKey: d, commitment: f = void 0, nullifier: p = void 0, isBlocked: m = !1 }) {
22
- this.amount = e, this.erc20TokenAddress = t, this.mintAddress = r, this.timeStamp = i ?? a().toString(), this.tokenId = s ?? 0, this.shieldedPrivateKey = c, this.randomization = l ?? o.findCorrectRandomization(n(31), c), this.stealthAddress = u, this.encryptionKey = d, this.commitment = f, this.nullifier = p, this.isBlocked = m;
21
+ isNewStyle;
22
+ constructor({ amount: e, erc20TokenAddress: n, mintAddress: a, timeStamp: o, nullifyingKey: s, spendingPublicKey: c, randomization: l, H0: u, stealthAddress: d, encryptionKey: f, commitment: p = void 0, nullifier: m = void 0, isBlocked: h = !1, isNewStyle: g = !1 }) {
23
+ this.amount = e, this.erc20TokenAddress = n, this.mintAddress = a, this.timeStamp = o ?? i().toString(), this.nullifyingKey = s, this.spendingPublicKey = c, this.randomization = l ?? (s ? r.findCorrectRandomization(t(31), s) : void 0), this.H0 = u ?? (g && this.randomization ? r.findH0(this.randomization, s) : void 0), this.stealthAddress = d, this.encryptionKey = f, this.commitment = p, this.nullifier = m, this.isBlocked = h, this.isNewStyle = g;
23
24
  }
24
25
  static createFrom(e, t) {
25
- return new o({
26
+ return new a({
26
27
  ...e.getConstructableParams(),
27
28
  nullifier: void 0,
28
29
  commitment: void 0,
@@ -35,14 +36,16 @@ var o = class o {
35
36
  erc20TokenAddress: this.erc20TokenAddress,
36
37
  mintAddress: this.mintAddress,
37
38
  timeStamp: this.timeStamp,
38
- shieldedPrivateKey: this.shieldedPrivateKey,
39
+ nullifyingKey: this.nullifyingKey,
40
+ spendingPublicKey: this.spendingPublicKey,
39
41
  randomization: this.randomization,
42
+ H0: this.H0,
40
43
  stealthAddress: this.stealthAddress,
41
44
  encryptionKey: this.encryptionKey,
42
- tokenId: this.tokenId,
43
45
  commitment: this.commitment,
44
46
  nullifier: this.nullifier,
45
- isBlocked: this.isBlocked
47
+ isBlocked: this.isBlocked,
48
+ isNewStyle: this.isNewStyle
46
49
  };
47
50
  }
48
51
  getBasicUtxoParams() {
@@ -52,11 +55,12 @@ var o = class o {
52
55
  mintAddress: this.mintAddress,
53
56
  timeStamp: this.timeStamp,
54
57
  randomization: this.randomization,
58
+ H0: this.H0,
55
59
  stealthAddress: this.stealthAddress,
56
- tokenId: this.tokenId,
57
60
  commitment: this.commitment,
58
61
  nullifier: this.nullifier,
59
- isBlocked: this.isBlocked
62
+ isBlocked: this.isBlocked,
63
+ isNewStyle: this.isNewStyle
60
64
  };
61
65
  }
62
66
  getCommitment() {
@@ -67,45 +71,43 @@ var o = class o {
67
71
  BigInt(this.getStealthAddress()),
68
72
  this.timeStamp
69
73
  ];
70
- this.tokenId > 0 && e.push(this.tokenId.toString()), this.commitment = r(...e);
74
+ this.commitment = n(...e);
71
75
  }
72
76
  return this.commitment;
73
77
  }
74
78
  getNullifier() {
75
79
  if (!this.nullifier) {
76
- if (!this.shieldedPrivateKey) throw Error("No Nullifiers if private key is not provided");
77
- let e = r(this.shieldedPrivateKey, this.getCommitment());
78
- this.nullifier = r(this.commitment, e);
80
+ if (!this.nullifyingKey) throw Error("No Nullifiers if private key is not provided");
81
+ let e = this.getCommitment(), t = n(this.nullifyingKey, e);
82
+ this.nullifier = n(e, t);
79
83
  }
80
84
  return this.nullifier;
81
85
  }
82
86
  getStealthAddress() {
83
87
  if (!this.stealthAddress) {
84
- if (!this.shieldedPrivateKey) throw Error("No stealth address in UTXO if private key is not provided");
85
- this.stealthAddress = i.getStealthAddress(this.randomization, this.shieldedPrivateKey);
88
+ if (!this.nullifyingKey) throw Error("No stealth address in UTXO if private key is not provided");
89
+ if (this.isNewStyle) {
90
+ if (!this.H0) throw Error("No H0 point provided");
91
+ this.stealthAddress = r.getStealthAddressNewStyle(this.H0, this.nullifyingKey, this.spendingPublicKey);
92
+ } else {
93
+ if (!this.randomization) throw Error("No randomization provided");
94
+ this.stealthAddress = r.getStealthAddress(this.randomization, this.nullifyingKey);
95
+ }
86
96
  }
87
97
  return this.stealthAddress;
88
98
  }
89
- getEncryptionKey() {
90
- if (!this.shieldedPrivateKey) {
91
- if (!this.encryptionKey) throw Error("No encryption key provided in UTXO");
92
- return this.encryptionKey;
93
- }
94
- return i.getEncryptionKeyPair(this.shieldedPrivateKey).publicKey;
95
- }
96
- static findCorrectRandomization(e, n) {
97
- if (!n) throw Error("No Private Shielded Key Provided");
98
- let r = BigInt(n) % t, i, a, o = 0n;
99
- do
100
- i = e * 10n ** o % t, a = i * r % t, o += 1n;
101
- while (a >= 2n ** 253n || i >= 2n ** 253n);
102
- return i;
103
- }
104
99
  getTokenAddress(t) {
105
100
  let n = e(t) ? this.mintAddress : this.erc20TokenAddress;
106
101
  if (!n) throw Error("No token address provided");
107
102
  return n;
108
103
  }
104
+ getEncryptionKey() {
105
+ if (!this.nullifyingKey) {
106
+ if (!this.encryptionKey) throw Error("No encryption key provided in UTXO");
107
+ return this.encryptionKey;
108
+ }
109
+ return r.getEncryptionKeyPair(this.nullifyingKey).publicKey;
110
+ }
109
111
  };
110
112
  //#endregion
111
- export { o as Utxo };
113
+ export { a as Utxo };
@@ -0,0 +1 @@
1
+ var e=class extends Error{constructor(e,t){super(t),this.status=e}};exports.HttpError=e;
@@ -0,0 +1,4 @@
1
+ export declare class HttpError extends Error {
2
+ readonly status: number;
3
+ constructor(status: number, message: string);
4
+ }
@@ -0,0 +1,8 @@
1
+ //#region libs/shared/common/src/error-handling/customErrors/HttpError.ts
2
+ var e = class extends Error {
3
+ constructor(e, t) {
4
+ super(t), this.status = e;
5
+ }
6
+ };
7
+ //#endregion
8
+ export { e as HttpError };
@@ -1 +1 @@
1
- require(`./ErrorWithAmount.cjs`),require(`./FeeOverTransactionValueError.cjs`),require(`./customErrors.helpers.cjs`),require(`./SimulationFailureError.cjs`),require(`./ErrorWithTx.cjs`),require(`./ErrorWithIndex.cjs`);
1
+ require(`./ErrorWithAmount.cjs`),require(`./FeeOverTransactionValueError.cjs`),require(`./customErrors.helpers.cjs`),require(`./SimulationFailureError.cjs`),require(`./ErrorWithTx.cjs`),require(`./ErrorWithIndex.cjs`),require(`./HttpError.cjs`);
@@ -4,3 +4,4 @@ export * from './customErrors.helpers';
4
4
  export * from './SimulationFailureError';
5
5
  export * from './ErrorWithTx';
6
6
  export * from './ErrorWithIndex';
7
+ export * from './HttpError';
@@ -4,3 +4,4 @@ import "./customErrors.helpers.mjs";
4
4
  import "./SimulationFailureError.mjs";
5
5
  import "./ErrorWithTx.mjs";
6
6
  import "./ErrorWithIndex.mjs";
7
+ import "./HttpError.mjs";
@@ -1,2 +1,2 @@
1
1
  var e={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`},t={WC_NO_MATCHING_KEY:`creating the transaction failed
2
- version`,CONNECTION_PROBLEM:`Failed to connect wallet. Please try again.`,REQUEST_PENDING:`request of type 'wallet_requestpermissions' already pending for origin`},n={WC_INVALID_URI:`Invalid WalletConnect URL. Please, try again`,WC_PAIRINNG_ERROR:`Pairing failed. Check your code and retry`},r={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`,INSUFFICIENT_TRON_BALANCE_FOR_FEE:`Insufficient TRX balance to cover transfer amount and transaction fee reserve`,INSUFFICIENT_SOL_BALANCE:`Insufficient SOL balance`},i={GAS_PRICE_EXCEEDS_AUTOSHIELD_LIMIT:`Skipped shielding due to gas fee exceeding your limit.`,AUTO_SHIELD_INSUFFICIENT_GAS:`Auto-Shield skipped due to insufficient gas.`},a={...e,...t,...r,...i,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`,USER_REJECTED_CONNECTION:`The user rejected connection.`,SIMULATION_FAILED:`Simulation failed:`,USER_DENIED_TRANSACTION_SIGNATURE:`User denied transaction signature.`,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 is not valid`,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:`The selected network is not supported. Please switch to another network to continue.`,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`,YOU_CANCELED_TRANSACTION_REQUEST:`You cancelled the transaction 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:`Please switch networks in your wallet 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`,TRANSACTION_WRONG_REQUEST:`The requested Transaction type is not supported`,INSUFFICIENT_LAMPORTS:`insufficient lamports`,TOKENS_DO_NOT_BELONG_SAME_CHAIN:`Tokens belong to different chains. All tokens must belong to the same chain`,OKX_MIN_RETURN_NOT_REACHED:`custom program error: 0x177a`,SOLANA_RECEIVED_LOWER_THAN_EXPECTED:`ReceivedAmountLowerThanExpected`,AUTO_SHIELD_SKIPPED:`We skipped auto-shield because the asset was an NFT or the remaining token was used as gas.`,LOW_OUTPUT_AMOUNT:`Gas fees exceed received amount. Please try adjusting amount or lowering slippage.`,EXECUTION_REVERTED:`execution reverted`,SOLANA_TRANSACTION_LOG_SIZE_LIMIT:`Transaction logs are too large. Please try again later`,COMPUTATIONAL_BUDGET_EXCEEDED:`ComputationalBudgetExceeded`,RELAY_FEE_OVER_WITHDRAW_AMOUNT:`Relay Fee is over withdraw amount`,TRON_CONFIRMATION_DECLINED:`Confirmation declined by user`,KYC_PRICE_FETCH_FAILED:`We’re having trouble verifying your wallet address. Please try again.`},o=`Not enough memory. Please, close some tabs/applications to free up memory and try again`,s=`Your transaction didn’t go through due to price slippage. Try increasing your slippage tolerance`,c={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`,INSUFFICIENT_TRON_BALANCE_FOR_FEE:`Your TRX balance is too low to cover amount and transaction fee`,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:`Your approved amount is lower than what you’re trying to send. Increase the approval or adjust the amount, then try again.`,SIMULATION_FAILED:`Transaction simulation failed. Please try again.`,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`,YOU_CANCELED_TRANSACTION_REQUEST:`You cancelled the transaction request.`,USER_REJECTED_SIGN2:`You canceled the request`,USER_DENIED_TRANSACTION_SIGNATURE:`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:s,OKX_MIN_RETURN_NOT_REACHED:s,SOLANA_RECEIVED_LOWER_THAN_EXPECTED:s,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:o,OUT_OF_MEMORY2:o,OUT_OF_MEMORY3:o,INVALID_RECOVERY_PHRASE:`Invalid recovery phrase`,PHRASES_DONT_MATCH:`Phrases do not match. You can go back and verify your recovery phrase.`,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`,EXECUTION_REVERTED:`Your transaction reverted.`,COMPUTATIONAL_BUDGET_EXCEEDED:`Your transaction exceeded the limited compute units. Please try again.`,RELAY_FEE_OVER_WITHDRAW_AMOUNT:`Your transaction didn’t go through because the relay fee exceeded the transaction amount`,TRON_CONFIRMATION_DECLINED:`You canceled the request`,INVALID_RELAYER_FEE:`The transaction fee changed while submitting. Please try again.`,REQUEST_PENDING:`A request is already pending in your wallet. Please confirm to connect.`,KYC_PRICE_FETCH_FAILED:`We’re having trouble verifying your wallet address. Please try again.`},l={UTXO_LIMITATIONS:`Your transaction exceeds the UTXO limit`,INSUFFICIENT_BALANCE_FOR_FEES:`Fees are high right now and would consume a large portion of your balance. Consider reducing the amount or retrying later.`,HIGH_FEE_WARNING:`Total fees exceed your available balance. Consider adding funds or retry later when fees decrease.`};exports.DIRECTLY_SHOW_MESSAGE_ERROR_CODES=l,exports.UserFriendlyErrorCodes=c,exports.gasErrorCodes=i,exports.insufficientResourcesErrorCodes=r,exports.transactionErrorCodes=a,exports.walletConnectErrorCodes=n;
2
+ version`,CONNECTION_PROBLEM:`Failed to connect wallet. Please try again.`,REQUEST_PENDING:`request of type 'wallet_requestpermissions' already pending for origin`},n={WC_INVALID_URI:`Invalid WalletConnect URL. Please, try again`,WC_PAIRINNG_ERROR:`Pairing failed. Check your code and retry`},r={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`,INSUFFICIENT_TRON_BALANCE_FOR_FEE:`Insufficient TRX balance to cover transfer amount and transaction fee reserve`,INSUFFICIENT_SOL_BALANCE:`Insufficient SOL balance`},i={GAS_PRICE_EXCEEDS_AUTOSHIELD_LIMIT:`Skipped shielding due to gas fee exceeding your limit.`,AUTO_SHIELD_INSUFFICIENT_GAS:`Auto-Shield skipped due to insufficient gas.`},a={...e,...t,...r,...i,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`,USER_REJECTED_CONNECTION:`The user rejected connection.`,SIMULATION_FAILED:`Simulation failed:`,USER_DENIED_TRANSACTION_SIGNATURE:`User denied transaction signature.`,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 is not valid`,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:`The selected network is not supported. Please switch to another network to continue.`,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`,YOU_CANCELED_TRANSACTION_REQUEST:`You cancelled the transaction 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:`Please switch networks in your wallet 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`,LEDGER_IS_LOCKED:`Ledger device: Locked device`,LEDGER_BLIDN_SIGNING_NOT_ALLOWED:`Ledger device: UNKNOWN_ERROR (0x6a8c)`,LEDGER_IS_NOT_AVAILABLE:`Ledger device: UNKNOWN_ERROR`,LEDGER_ACCESS_DENIED:`Access denied to use Ledger device.`,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`,TRANSACTION_WRONG_REQUEST:`The requested Transaction type is not supported`,INSUFFICIENT_LAMPORTS:`insufficient lamports`,TOKENS_DO_NOT_BELONG_SAME_CHAIN:`Tokens belong to different chains. All tokens must belong to the same chain`,OKX_MIN_RETURN_NOT_REACHED:`custom program error: 0x177a`,SOLANA_RECEIVED_LOWER_THAN_EXPECTED:`ReceivedAmountLowerThanExpected`,AUTO_SHIELD_SKIPPED:`We skipped auto-shield because the asset was an NFT or the remaining token was used as gas.`,LOW_OUTPUT_AMOUNT:`Gas fees exceed received amount. Please try adjusting amount or lowering slippage.`,EXECUTION_REVERTED:`execution reverted`,SOLANA_TRANSACTION_LOG_SIZE_LIMIT:`Transaction logs are too large. Please try again later`,COMPUTATIONAL_BUDGET_EXCEEDED:`ComputationalBudgetExceeded`,RELAY_FEE_OVER_WITHDRAW_AMOUNT:`Relay Fee is over withdraw amount`,TRON_CONFIRMATION_DECLINED:`Confirmation declined by user`,KYC_PRICE_FETCH_FAILED:`We’re having trouble verifying your wallet address. Please try again.`,BLACKLISTED_INPUT_COMMITMENT_ADDRESS:`One of the source addresses is restricted from private transactions`,ACCOUNT_RESOURCE_INSUFFICIENT_ERROR:`Account resource insufficient error`},o=`Not enough memory. Please, close some tabs/applications to free up memory and try again`,s=`Your transaction didn’t go through due to price slippage. Try increasing your slippage tolerance`,c={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`,INSUFFICIENT_TRON_BALANCE_FOR_FEE:`Your TRX balance is too low to cover amount and transaction fee`,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:`Your approved amount is lower than what you’re trying to send. Increase the approval or adjust the amount, then try again.`,SIMULATION_FAILED:`Transaction simulation failed. Please try again.`,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`,YOU_CANCELED_TRANSACTION_REQUEST:`You cancelled the transaction request.`,USER_REJECTED_SIGN2:`You canceled the request`,USER_DENIED_TRANSACTION_SIGNATURE:`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`,LEDGER_IS_LOCKED:`Your wallet is locked. Please unlock your wallet`,LEDGER_BLIDN_SIGNING_NOT_ALLOWED:`Your ledger is not allowed to sign transactions. Please allow blind signing`,LEDGER_IS_NOT_AVAILABLE:`Access denied to use Ledger device.`,LEDGER_ACCESS_DENIED:`Access denied to use Ledger device.`,INBALANCE_IN_TOKEN:s,OKX_MIN_RETURN_NOT_REACHED:s,SOLANA_RECEIVED_LOWER_THAN_EXPECTED:s,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:o,OUT_OF_MEMORY2:o,OUT_OF_MEMORY3:o,INVALID_RECOVERY_PHRASE:`Invalid recovery phrase`,PHRASES_DONT_MATCH:`Phrases do not match. You can go back and verify your recovery phrase.`,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`,EXECUTION_REVERTED:`Your transaction reverted.`,COMPUTATIONAL_BUDGET_EXCEEDED:`Your transaction exceeded the limited compute units. Please try again.`,RELAY_FEE_OVER_WITHDRAW_AMOUNT:`Your transaction didn’t go through because the relay fee exceeded the transaction amount`,TRON_CONFIRMATION_DECLINED:`You canceled the request`,INVALID_RELAYER_FEE:`The transaction fee changed while submitting. Please try again.`,REQUEST_PENDING:`A request is already pending in your wallet. Please confirm to connect.`,KYC_PRICE_FETCH_FAILED:`We’re having trouble verifying your wallet address. Please try again.`,BLACKLISTED_INPUT_COMMITMENT_ADDRESS:`The funds you’re trying to use have been flagged as sanctioned.`},l={UTXO_LIMITATIONS:`Your transaction exceeds the UTXO limit`,INSUFFICIENT_BALANCE_FOR_FEES:`Fees are high right now and would consume a large portion of your balance. Consider reducing the amount or retrying later.`,HIGH_FEE_WARNING:`Total fees exceed your available balance. Consider adding funds or retry later when fees decrease.`};exports.DIRECTLY_SHOW_MESSAGE_ERROR_CODES=l,exports.UserFriendlyErrorCodes=c,exports.gasErrorCodes=i,exports.insufficientResourcesErrorCodes=r,exports.transactionErrorCodes=a,exports.walletConnectErrorCodes=n;
@@ -95,6 +95,10 @@ export declare const transactionErrorCodes: {
95
95
  DECIMALS_LIMIT: string;
96
96
  MERKLE_TREE_INCOMPLETE: string;
97
97
  FAIL_ESTIMATE_GAS: string;
98
+ LEDGER_IS_LOCKED: string;
99
+ LEDGER_BLIDN_SIGNING_NOT_ALLOWED: string;
100
+ LEDGER_IS_NOT_AVAILABLE: string;
101
+ LEDGER_ACCESS_DENIED: string;
98
102
  ODOS_SWAP_FAILED: string;
99
103
  ONEINCH_SWAP_FAILED: string;
100
104
  GAS_ESTIMATION_ERROR: string;
@@ -140,6 +144,8 @@ export declare const transactionErrorCodes: {
140
144
  RELAY_FEE_OVER_WITHDRAW_AMOUNT: string;
141
145
  TRON_CONFIRMATION_DECLINED: string;
142
146
  KYC_PRICE_FETCH_FAILED: string;
147
+ BLACKLISTED_INPUT_COMMITMENT_ADDRESS: string;
148
+ ACCOUNT_RESOURCE_INSUFFICIENT_ERROR: string;
143
149
  GAS_PRICE_EXCEEDS_AUTOSHIELD_LIMIT: string;
144
150
  AUTO_SHIELD_INSUFFICIENT_GAS: string;
145
151
  INSUFFICIENT_FUNDS: string;
@@ -197,6 +203,10 @@ export declare const UserFriendlyErrorCodes: {
197
203
  CORS_ERROR: string;
198
204
  NETWORK_ERROR: string;
199
205
  CONNECTIVITY_ERROR: string;
206
+ LEDGER_IS_LOCKED: string;
207
+ LEDGER_BLIDN_SIGNING_NOT_ALLOWED: string;
208
+ LEDGER_IS_NOT_AVAILABLE: string;
209
+ LEDGER_ACCESS_DENIED: string;
200
210
  INBALANCE_IN_TOKEN: string;
201
211
  OKX_MIN_RETURN_NOT_REACHED: string;
202
212
  SOLANA_RECEIVED_LOWER_THAN_EXPECTED: string;
@@ -229,6 +239,7 @@ export declare const UserFriendlyErrorCodes: {
229
239
  INVALID_RELAYER_FEE: string;
230
240
  REQUEST_PENDING: string;
231
241
  KYC_PRICE_FETCH_FAILED: string;
242
+ BLACKLISTED_INPUT_COMMITMENT_ADDRESS: string;
232
243
  };
233
244
  export declare const DIRECTLY_SHOW_MESSAGE_ERROR_CODES: {
234
245
  UTXO_LIMITATIONS: string;
@@ -105,6 +105,10 @@ var e = {
105
105
  DECIMALS_LIMIT: "Number of decimals exceed maximum",
106
106
  MERKLE_TREE_INCOMPLETE: "Merkle tree is incomplete",
107
107
  FAIL_ESTIMATE_GAS: "Failed to estimate gas: check the transaction parameters",
108
+ LEDGER_IS_LOCKED: "Ledger device: Locked device",
109
+ LEDGER_BLIDN_SIGNING_NOT_ALLOWED: "Ledger device: UNKNOWN_ERROR (0x6a8c)",
110
+ LEDGER_IS_NOT_AVAILABLE: "Ledger device: UNKNOWN_ERROR",
111
+ LEDGER_ACCESS_DENIED: "Access denied to use Ledger device.",
108
112
  ODOS_SWAP_FAILED: "Odos swap call failed",
109
113
  ONEINCH_SWAP_FAILED: "One inch swap failed",
110
114
  GAS_ESTIMATION_ERROR: "Failed Gas Estimates Response",
@@ -149,7 +153,9 @@ var e = {
149
153
  COMPUTATIONAL_BUDGET_EXCEEDED: "ComputationalBudgetExceeded",
150
154
  RELAY_FEE_OVER_WITHDRAW_AMOUNT: "Relay Fee is over withdraw amount",
151
155
  TRON_CONFIRMATION_DECLINED: "Confirmation declined by user",
152
- KYC_PRICE_FETCH_FAILED: "We’re having trouble verifying your wallet address. Please try again."
156
+ KYC_PRICE_FETCH_FAILED: "We’re having trouble verifying your wallet address. Please try again.",
157
+ BLACKLISTED_INPUT_COMMITMENT_ADDRESS: "One of the source addresses is restricted from private transactions",
158
+ ACCOUNT_RESOURCE_INSUFFICIENT_ERROR: "Account resource insufficient error"
153
159
  }, o = "Not enough memory. Please, close some tabs/applications to free up memory and try again", s = "Your transaction didn’t go through due to price slippage. Try increasing your slippage tolerance", c = {
154
160
  USER_REJECTED_TRANSACTION: "You cancelled the transaction",
155
161
  SOME_ERROR: "Some error has occurred. Please try again in a few minutes. If the issue persists, please report it in Discord",
@@ -191,6 +197,10 @@ var e = {
191
197
  CORS_ERROR: "Unable to reach the remote client. Please submit a ticket on Hinkal discord server",
192
198
  NETWORK_ERROR: "Connection error. Please, check back later",
193
199
  CONNECTIVITY_ERROR: "A connectivity issue occurred. Please check your network connection",
200
+ LEDGER_IS_LOCKED: "Your wallet is locked. Please unlock your wallet",
201
+ LEDGER_BLIDN_SIGNING_NOT_ALLOWED: "Your ledger is not allowed to sign transactions. Please allow blind signing",
202
+ LEDGER_IS_NOT_AVAILABLE: "Access denied to use Ledger device.",
203
+ LEDGER_ACCESS_DENIED: "Access denied to use Ledger device.",
194
204
  INBALANCE_IN_TOKEN: s,
195
205
  OKX_MIN_RETURN_NOT_REACHED: s,
196
206
  SOLANA_RECEIVED_LOWER_THAN_EXPECTED: s,
@@ -222,7 +232,8 @@ var e = {
222
232
  TRON_CONFIRMATION_DECLINED: "You canceled the request",
223
233
  INVALID_RELAYER_FEE: "The transaction fee changed while submitting. Please try again.",
224
234
  REQUEST_PENDING: "A request is already pending in your wallet. Please confirm to connect.",
225
- KYC_PRICE_FETCH_FAILED: "We’re having trouble verifying your wallet address. Please try again."
235
+ KYC_PRICE_FETCH_FAILED: "We’re having trouble verifying your wallet address. Please try again.",
236
+ BLACKLISTED_INPUT_COMMITMENT_ADDRESS: "The funds you’re trying to use have been flagged as sanctioned."
226
237
  }, l = {
227
238
  UTXO_LIMITATIONS: "Your transaction exceeds the UTXO limit",
228
239
  INSUFFICIENT_BALANCE_FOR_FEES: "Fees are high right now and would consume a large portion of your balance. Consider reducing the amount or retrying later.",
@@ -1 +1 @@
1
- require(`./error-codes.constants.cjs`),require(`./customErrors/ErrorWithAmount.cjs`),require(`./customErrors/FeeOverTransactionValueError.cjs`),require(`./types.cjs`),require(`./customErrors/customErrors.helpers.cjs`),require(`./customErrors/SimulationFailureError.cjs`),require(`./customErrors/ErrorWithTx.cjs`),require(`./customErrors/ErrorWithIndex.cjs`),require(`./customErrors/index.cjs`),require(`./logError.cjs`),require(`./logger.cjs`),require(`./get-error.message.cjs`);
1
+ require(`./error-codes.constants.cjs`),require(`./customErrors/ErrorWithAmount.cjs`),require(`./customErrors/FeeOverTransactionValueError.cjs`),require(`./types.cjs`),require(`./customErrors/customErrors.helpers.cjs`),require(`./customErrors/SimulationFailureError.cjs`),require(`./customErrors/ErrorWithTx.cjs`),require(`./customErrors/ErrorWithIndex.cjs`),require(`./customErrors/HttpError.cjs`),require(`./customErrors/index.cjs`),require(`./logError.cjs`),require(`./logger.cjs`),require(`./get-error.message.cjs`);
@@ -6,6 +6,7 @@ import "./customErrors/customErrors.helpers.mjs";
6
6
  import "./customErrors/SimulationFailureError.mjs";
7
7
  import "./customErrors/ErrorWithTx.mjs";
8
8
  import "./customErrors/ErrorWithIndex.mjs";
9
+ import "./customErrors/HttpError.mjs";
9
10
  import "./customErrors/index.mjs";
10
11
  import "./logError.mjs";
11
12
  import "./logger.mjs";
@@ -0,0 +1 @@
1
+ var e=e=>e instanceof Error&&(e.message?.includes(`Blockhash not found`)||e.name===`TransactionExpiredBlockheightExceededError`||e.message?.includes(`block height exceeded`));exports.shouldRetryForSolanaError=e;
@@ -0,0 +1 @@
1
+ export declare const shouldRetryForSolanaError: (err: unknown) => boolean;
@@ -0,0 +1,4 @@
1
+ //#region libs/shared/common/src/error-handling/retrySolanaError.ts
2
+ var e = (e) => e instanceof Error && (e.message?.includes("Blockhash not found") || e.name === "TransactionExpiredBlockheightExceededError" || e.message?.includes("block height exceeded"));
3
+ //#endregion
4
+ export { e as shouldRetryForSolanaError };
@@ -1 +1 @@
1
- require(`./amToken.cjs`),require(`./BUSD.cjs`),require(`./DAI.cjs`);const e=require(`./ERC20.json.cjs`),t=require(`./ERC721.json.cjs`),n=require(`./ERC1155.json.cjs`),r=require(`./IQuoterV2.json.cjs`),i=require(`./IUniswapV3Factory.json.cjs`);require(`./SanctionsList.cjs`),require(`./USDC.cjs`),require(`./USDR.cjs`),require(`./USDR3CRV.cjs`),require(`./USDT.cjs`),require(`./WETH.cjs`);const a=require(`./ISwapRouter.json.cjs`),o=require(`./transactionsProver.json.cjs`),s=require(`./BabPassport.json.cjs`),c=require(`./GalxePassport.json.cjs`);require(`./OptimismGasPriceOracle.json.cjs`),require(`./NodeInterfaceABI.json.cjs`);var l=e.default.abi,u=t.default.abi,d=n.default.abi,f=r.default.abi,p=i.default.abi,m=a.default.abi,h=o.default.abi,g=s.default.abi,_=c.default.abi;exports.BabABI=g,exports.ERC1155ABI=d,exports.ERC20ABI=l,exports.ERC721ABI=u,exports.GalxeABI=_,exports.ISwapRouterABI=m,exports.factoryABI=p,exports.quoterV2ABI=f,exports.transactionProverABI=h;
1
+ require(`./amToken.cjs`),require(`./BUSD.cjs`),require(`./DAI.cjs`);const e=require(`./ERC20.json.cjs`),t=require(`./ERC721.json.cjs`),n=require(`./ERC1155.json.cjs`),r=require(`./IQuoterV2.json.cjs`),i=require(`./IUniswapV3Factory.json.cjs`);require(`./SanctionsList.cjs`),require(`./USDC.cjs`),require(`./USDR.cjs`),require(`./USDR3CRV.cjs`),require(`./USDT.cjs`),require(`./WETH.cjs`);const a=require(`./ISwapRouter.json.cjs`),o=require(`./BabPassport.json.cjs`),s=require(`./GalxePassport.json.cjs`);require(`./OptimismGasPriceOracle.json.cjs`),require(`./NodeInterfaceABI.json.cjs`);var c=e.default.abi,l=t.default.abi,u=n.default.abi,d=r.default.abi,f=i.default.abi,p=a.default.abi,m=o.default.abi,h=s.default.abi;exports.BabABI=m,exports.ERC1155ABI=u,exports.ERC20ABI=c,exports.ERC721ABI=l,exports.GalxeABI=h,exports.ISwapRouterABI=p,exports.factoryABI=f,exports.quoterV2ABI=d;
@@ -216,21 +216,6 @@ declare const ISwapRouterABI: ({
216
216
  name?: undefined;
217
217
  outputs?: undefined;
218
218
  })[];
219
- declare const transactionProverABI: {
220
- inputs: {
221
- internalType: string;
222
- name: string;
223
- type: string;
224
- }[];
225
- name: string;
226
- outputs: {
227
- internalType: string;
228
- name: string;
229
- type: string;
230
- }[];
231
- stateMutability: string;
232
- type: string;
233
- }[];
234
219
  declare const BabABI: {
235
220
  inputs: {
236
221
  internalType: string;
@@ -266,4 +251,4 @@ declare const GalxeABI: {
266
251
  stateMutability: string;
267
252
  type: string;
268
253
  }[];
269
- export { quoterV2ABI, factoryABI, AmTokenABI, ERC20ABI, ERC721ABI, USDCABI, daiABI, USDRABI, USDR3CRVABI, USDTABI, WETHABI, BUSDABI, sanctionsListABI, transactionProverABI, BabABI, GalxeABI, optimismGasPriceOracleAbi, NodeInterfaceABI, ISwapRouterABI, ERC1155ABI, };
254
+ export { quoterV2ABI, factoryABI, AmTokenABI, ERC20ABI, ERC721ABI, USDCABI, daiABI, USDRABI, USDR3CRVABI, USDTABI, WETHABI, BUSDABI, sanctionsListABI, BabABI, GalxeABI, optimismGasPriceOracleAbi, NodeInterfaceABI, ISwapRouterABI, ERC1155ABI, };
@@ -13,12 +13,11 @@ import "./USDR3CRV.mjs";
13
13
  import "./USDT.mjs";
14
14
  import "./WETH.mjs";
15
15
  import a from "./ISwapRouter.json.mjs";
16
- import o from "./transactionsProver.json.mjs";
17
- import s from "./BabPassport.json.mjs";
18
- import c from "./GalxePassport.json.mjs";
16
+ import o from "./BabPassport.json.mjs";
17
+ import s from "./GalxePassport.json.mjs";
19
18
  import "./OptimismGasPriceOracle.json.mjs";
20
19
  import "./NodeInterfaceABI.json.mjs";
21
20
  //#region libs/shared/common/src/externalABIs/index.ts
22
- var l = e.abi, u = t.abi, d = n.abi, f = r.abi, p = i.abi, m = a.abi, h = o.abi, g = s.abi, _ = c.abi;
21
+ var c = e.abi, l = t.abi, u = n.abi, d = r.abi, f = i.abi, p = a.abi, m = o.abi, h = s.abi;
23
22
  //#endregion
24
- export { g as BabABI, d as ERC1155ABI, l as ERC20ABI, u as ERC721ABI, _ as GalxeABI, m as ISwapRouterABI, p as factoryABI, f as quoterV2ABI, h as transactionProverABI };
23
+ export { m as BabABI, u as ERC1155ABI, c as ERC20ABI, l as ERC721ABI, h as GalxeABI, p as ISwapRouterABI, f as factoryABI, d as quoterV2ABI };
@@ -1,7 +1,7 @@
1
1
  import { ethers } from 'ethers';
2
2
  import { IHinkal } from '../../data-structures/Hinkal/IHinkal';
3
3
  import { ERC20Token } from '../../types';
4
- export declare const getGasTokenRecords: (options: ERC20Token[], chainId: number, hinkal: IHinkal, walletAddress: string, providerAdapter: ethers.BrowserProvider, pricesMap: Map<string, number>) => Promise<{
4
+ export declare const getGasTokenRecords: (options: ERC20Token[], chainId: number, hinkal: IHinkal, walletAddress: string, providerAdapter: ethers.JsonRpcProvider, pricesMap: Map<string, number>) => Promise<{
5
5
  erc20Token: ERC20Token;
6
6
  privateUsdBalance: number;
7
7
  publicUsdBalance: number;
@@ -1,3 +1,3 @@
1
1
  import { TokenBalance, TokenChanges } from '../../types';
2
2
  import { ethers } from 'ethers';
3
- export declare const getTokensToDepositBack: (emporiumTokenChanges: TokenChanges<bigint>[], feeToken: string | undefined, walletAddress: string, providerAdapter: ethers.BrowserProvider) => Promise<TokenBalance[]>;
3
+ export declare const getTokensToDepositBack: (emporiumTokenChanges: TokenChanges<bigint>[], feeToken: string | undefined, walletAddress: string, providerAdapter: ethers.JsonRpcProvider) => Promise<TokenBalance[]>;
@@ -1 +1 @@
1
- require(`./utils/serialize.utils.cjs`),require(`./utils/get-signature-header.cjs`),require(`./utils/caseInsensitive.utils.cjs`),require(`./utils/addresses.cjs`),require(`./kyc/openDefaultPassportWindow.cjs`),require(`./web3/etherFunctions.cjs`),require(`./utils/amounts.utils.cjs`),require(`./utils/erc20tokenFunctions.cjs`),require(`./utils/time.utils.cjs`),require(`./pre-transaction/solana.cjs`),require(`./web3/functionCalls/accessTokenCalls.cjs`),require(`./utils/upToDateState.cjs`),require(`./utils/getDataFromTransaction.cjs`),require(`./utils/getContractAddress.cjs`),require(`./utils/cacheFunctions.cjs`),require(`./utils/solanaMint.utils.cjs`),require(`./utils/tron.utils.cjs`),require(`./web3/events/getInputUtxoAndBalance.cjs`),require(`./utils/string.utils.cjs`),require(`./utils/token-check.utils.cjs`),require(`./utils/mutexes.utils.cjs`),require(`./web3/events/getShieldedBalance.cjs`),require(`./pre-transaction/outputUtxoProcessing.cjs`),require(`./utils/external-action.utils.cjs`),require(`./snarkjs/common.snarkjs.cjs`),require(`./snarkjs/generateZkProof.cjs`),require(`./utils/fees.utils.cjs`),require(`./utils/create-provider.cjs`),require(`./utils/requireEnv.cjs`),require(`./utils/resolve-sync.utils.cjs`),require(`./utils/convertIntegrationProviderToExternalActionId.cjs`),require(`./pre-transaction/interaction-to-action.cjs`),require(`./pre-transaction/process-gas-estimates.cjs`),require(`./pre-transaction/getFlatFees.cjs`),require(`./utils/processUseApprovalUtxoData.cjs`),require(`./pre-transaction/outputApprovalDataProcessing.cjs`),require(`./pre-transaction/getVolatileTransferAmount.cjs`),require(`./pre-transaction/constructAdminData.cjs`),require(`./pre-transaction/addressTableLookup.cjs`),require(`./pre-transaction/solana-public-signals.cjs`),require(`./pre-transaction/convert-okx-instructions.cjs`),require(`./web3/getSolanaPriorityFee.cjs`),require(`./utils/process.utils.cjs`),require(`./pre-transaction/sendV0Transaction.cjs`),require(`./pre-transaction/store-proof.cjs`),require(`./utils/bytes32.utils.cjs`),require(`./pre-transaction/sendInitNullifiersTransaction.cjs`),require(`./pre-transaction/initTokenLimitIfNeeded.cjs`),require(`./pre-transaction/recipientUtxoProcessing.cjs`),require(`./pre-transaction/store-instructions.cjs`),require(`./pre-transaction/ensureAmountChanges.cjs`),require(`./pre-transaction/getFeeStructure.cjs`),require(`./pre-transaction/getKycAndSignatureData.cjs`),require(`./pre-transaction/waitForDepositedUtxosInMerkleTree.cjs`),require(`./pre-transaction/index.cjs`),require(`./utils/evmNetworkFunctions.cjs`),require(`./utils/userAgent.cjs`),require(`./utils/reloadPage.cjs`),require(`./utils/nickname.utils.cjs`),require(`./utils/cacheDevice.utils.cjs`),require(`./utils/getBlockExplorerUrl.cjs`),require(`./utils/involves-permit2-op.cjs`),require(`./utils/convertEmporiumOpToCallInfo.cjs`),require(`./utils/getRecipientInfoFromUserKeys.cjs`),require(`./utils/publicBalance.utils.cjs`),require(`./utils/rpc-int-encode.cjs`),require(`./utils/arraysMatch.cjs`),require(`./utils/trimFieldValues.cjs`),require(`./utils/walletBalances.utils.cjs`),require(`./utils/nftTokenFunctions.cjs`),require(`./utils/inLogicMetadata.cjs`),require(`./utils/networks.utils.cjs`),require(`./utils/is-valid-url.cjs`),require(`./utils/postToOffscreen.cjs`),require(`./utils/prepareHinkal.cjs`),require(`./utils/getUtxosFromReceipt.utils.cjs`),require(`./utils/getUtxosFromReceiptSolana.cjs`),require(`./utils/proxyAvatar.utils.cjs`),require(`./utils/validateUsername.cjs`),require(`./utils/serialize-utxos.utils.cjs`),require(`./utils/enclave-utxo-storage.cjs`),require(`./utils/enclave-signature-storage.cjs`),require(`./utils/tx-confirmation.utils.cjs`),require(`./utils/buildClaimableDepositPlan.cjs`),require(`./utils/tronSimulation.utils.cjs`),require(`./utils/getSignerFromContract.cjs`),require(`./utils/getWalletGroupKey.utils.cjs`),require(`./utils/index.cjs`),require(`./snarkjs/fetchOnChainRootHashes.cjs`),require(`./snarkjs/constructGeneralZkProof.cjs`),require(`./private-wallet/emporium.helpers.cjs`),require(`./snarkjs/constructEmporiumProof.cjs`),require(`./snarkjs/constructSolanaZkProof.cjs`),require(`./snarkjs/index.cjs`),require(`./kyc/passportHelper.cjs`),require(`./web3/events/balanceChangedHandler.cjs`),require(`./web3/events/balanceChangedCustomHandler.cjs`),require(`./web3/events/getApprovedBalance.cjs`),require(`./web3/events/getTransactionLogEvents.cjs`),require(`./web3/uniswapAPI.cjs`),require(`./web3/odosAPI.cjs`),require(`./web3/oneInchAPI.cjs`),require(`./web3/lifiAPI.cjs`),require(`./web3/okxAPI.cjs`),require(`./web3/runContractFunction.cjs`),require(`./web3/getTokenHolder.cjs`),require(`./web3/EIP-712.cjs`),require(`./web3/signAndSendSerializedTransaction.cjs`),require(`./web3/connectors.utils.cjs`),require(`./web3/tron-wagmi-adapter.cjs`),require(`./web3/crypto.cjs`),require(`./web3/index.cjs`),require(`./kyc/checkTokenLimitsUSD.cjs`),require(`./kyc/index.cjs`),require(`./private-wallet/opProducer.cjs`),require(`./private-wallet/emporium.swap.helpers.cjs`),require(`./private-wallet/index.cjs`),require(`./auto-deposit-back-helpers/get-tokens-to-deposit-back.cjs`),require(`./auto-deposit-back-helpers/get-gas-token-records.cjs`),require(`./auto-deposit-back-helpers/select-gas-token.cjs`),require(`./auto-deposit-back-helpers/update-hinkal.cjs`),require(`./auto-deposit-back-helpers/index.cjs`);
1
+ require(`./utils/serialize.utils.cjs`),require(`./utils/get-signature-header.cjs`),require(`./utils/caseInsensitive.utils.cjs`),require(`./utils/addresses.cjs`),require(`./utils/auth.utils.cjs`),require(`./kyc/openDefaultPassportWindow.cjs`),require(`./web3/etherFunctions.cjs`),require(`./utils/amounts.utils.cjs`),require(`./utils/erc20tokenFunctions.cjs`),require(`./utils/bytes32.utils.cjs`),require(`./utils/time.utils.cjs`),require(`./utils/bit.operations.cjs`),require(`./utils/upToDateState.cjs`),require(`./utils/getDataFromTransaction.cjs`),require(`./utils/cacheFunctions.cjs`),require(`./utils/encryptInputForEnclave.cjs`),require(`./utils/solanaMint.utils.cjs`),require(`./utils/customEnclaveFunctionsRegister.cjs`),require(`./utils/tron.utils.cjs`),require(`./web3/events/getInputUtxoAndBalance.cjs`),require(`./utils/string.utils.cjs`),require(`./utils/token-check.utils.cjs`),require(`./utils/mutexes.utils.cjs`),require(`./web3/events/getShieldedBalance.cjs`),require(`./pre-transaction/outputUtxoProcessing.cjs`),require(`./utils/external-action.utils.cjs`),require(`./snarkjs/common.snarkjs.cjs`),require(`./pre-transaction/solana.cjs`),require(`./snarkjs/signedMessageHash.cjs`),require(`./snarkjs/generateZkProof.cjs`),require(`./utils/serialize-utxos.utils.cjs`),require(`./utils/create-provider.cjs`),require(`./utils/requireEnv.cjs`),require(`./utils/resolve-sync.utils.cjs`),require(`./utils/convertIntegrationProviderToExternalActionId.cjs`),require(`./pre-transaction/interaction-to-action.cjs`),require(`./pre-transaction/process-gas-estimates.cjs`),require(`./pre-transaction/getFlatFees.cjs`),require(`./pre-transaction/getVolatileTransferAmount.cjs`),require(`./pre-transaction/constructAdminData.cjs`),require(`./pre-transaction/calculateSolanaNullifierCount.cjs`),require(`./pre-transaction/addressTableLookup.cjs`),require(`./pre-transaction/solana-public-signals.cjs`),require(`./pre-transaction/convert-okx-instructions.cjs`),require(`./web3/getSolanaPriorityFee.cjs`),require(`./utils/process.utils.cjs`),require(`./pre-transaction/sendV0Transaction.cjs`),require(`./pre-transaction/store-proof.cjs`),require(`./pre-transaction/sendInitNullifiersTransaction.cjs`),require(`./pre-transaction/recipientUtxoProcessing.cjs`),require(`./pre-transaction/store-instructions.cjs`),require(`./pre-transaction/ensureAmountChanges.cjs`),require(`./pre-transaction/getFeeStructure.cjs`),require(`./pre-transaction/waitForDepositedUtxosInMerkleTree.cjs`),require(`./pre-transaction/buildCommitmentValidationData.cjs`),require(`./pre-transaction/index.cjs`),require(`./utils/evmNetworkFunctions.cjs`),require(`./utils/userAgent.cjs`),require(`./utils/reloadPage.cjs`),require(`./utils/nickname.utils.cjs`),require(`./utils/cacheDevice.utils.cjs`),require(`./utils/getBlockExplorerUrl.cjs`),require(`./utils/involves-permit2-op.cjs`),require(`./utils/convertEmporiumOpToCallInfo.cjs`),require(`./utils/getRecipientInfoFromUserKeys.cjs`),require(`./utils/publicBalance.utils.cjs`),require(`./utils/rpc-int-encode.cjs`),require(`./utils/arraysMatch.cjs`),require(`./utils/trimFieldValues.cjs`),require(`./utils/walletBalances.utils.cjs`),require(`./utils/nftTokenFunctions.cjs`),require(`./utils/inLogicMetadata.cjs`),require(`./utils/networks.utils.cjs`),require(`./utils/is-valid-url.cjs`),require(`./utils/postToOffscreen.cjs`),require(`./utils/solanaSendPreflight.utils.cjs`),require(`./utils/prepareHinkal.cjs`),require(`./utils/getContractAddress.cjs`),require(`./utils/getUtxosFromReceipt.utils.cjs`),require(`./utils/getUtxosFromReceiptSolana.cjs`),require(`./utils/fees.utils.cjs`),require(`./utils/proxyAvatar.utils.cjs`),require(`./utils/validateUsername.cjs`),require(`./utils/enclave-utxo-storage.cjs`),require(`./utils/enclave-signature-storage.cjs`),require(`./utils/tx-confirmation.utils.cjs`),require(`./utils/buildClaimableDepositPlan.cjs`),require(`./utils/pay-routing.utils.cjs`),require(`./utils/formatter.cjs`),require(`./utils/tronSimulation.utils.cjs`),require(`./utils/getSignerFromContract.cjs`),require(`./utils/deposit-claimable.utils.cjs`),require(`./utils/transfer-claimable.utils.cjs`),require(`./utils/getWalletGroupKey.utils.cjs`),require(`./web3/events/balanceChangedHandler.cjs`),require(`./utils/dispatchBalanceRefreshes.cjs`),require(`./utils/lifi.utils.cjs`),require(`./utils/enclave-recipient-info-storage.cjs`),require(`./utils/solana-memo.cjs`),require(`./utils/mnemonics.cjs`),require(`./utils/index.cjs`),require(`./snarkjs/fetchOnChainRootHashes.cjs`),require(`./private-wallet/emporium.helpers.cjs`),require(`./snarkjs/constructGeneralZkProof.cjs`),require(`./web3/events/getTransactionLogEvents.cjs`),require(`./web3/uniswapAPI.cjs`),require(`./web3/odosAPI.cjs`),require(`./web3/oneInchAPI.cjs`),require(`./web3/lifiAPI.cjs`),require(`./web3/okxAPI.cjs`),require(`./web3/runContractFunction.cjs`),require(`./web3/getTokenHolder.cjs`),require(`./web3/EIP-712.cjs`),require(`./web3/signAndSendSerializedTransaction.cjs`),require(`./web3/connectors.utils.cjs`),require(`./web3/crypto.cjs`),require(`./web3/index.cjs`),require(`./snarkjs/constructSolanaZkProof.cjs`),require(`./snarkjs/verifyCommitmentValidationData.cjs`),require(`./snarkjs/index.cjs`),require(`./kyc/passportHelper.cjs`),require(`./kyc/checkTokenLimitsUSD.cjs`),require(`./kyc/index.cjs`),require(`./private-wallet/opProducer.cjs`),require(`./private-wallet/emporium.swap.helpers.cjs`),require(`./private-wallet/index.cjs`),require(`./auto-deposit-back-helpers/get-tokens-to-deposit-back.cjs`),require(`./auto-deposit-back-helpers/get-gas-token-records.cjs`),require(`./auto-deposit-back-helpers/select-gas-token.cjs`),require(`./auto-deposit-back-helpers/update-hinkal.cjs`),require(`./auto-deposit-back-helpers/index.cjs`);