@hinkal/common 0.2.40 → 0.3.2

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 (2297) hide show
  1. package/README.md +179 -155
  2. package/common/src/API/API.cjs +1 -0
  3. package/common/src/API/API.d.ts +97 -0
  4. package/common/src/API/API.mjs +99 -0
  5. package/common/src/API/TokenCallsCachedHelper.cjs +1 -0
  6. package/common/src/API/TokenCallsCachedHelper.d.ts +15 -0
  7. package/common/src/API/TokenCallsCachedHelper.mjs +62 -0
  8. package/common/src/API/admin-calls.cjs +1 -0
  9. package/common/src/API/admin-calls.mjs +8 -0
  10. package/common/src/API/callLifiAPI.d.ts +36 -0
  11. package/common/src/API/callMonitor.cjs +1 -0
  12. package/common/src/API/callMonitor.mjs +8 -0
  13. package/common/src/API/callNearIntentsAPI.cjs +1 -0
  14. package/common/src/API/callNearIntentsAPI.mjs +8 -0
  15. package/common/src/API/callOneInchAPI.cjs +1 -0
  16. package/common/src/API/callOneInchAPI.d.ts +24 -0
  17. package/common/src/API/callOneInchAPI.mjs +16 -0
  18. package/common/src/API/checkRisk.cjs +1 -0
  19. package/common/src/API/checkRisk.mjs +3 -0
  20. package/common/src/API/dashboardAccountMemberCalls.cjs +1 -0
  21. package/common/src/API/dashboardAccountMemberCalls.d.ts +49 -0
  22. package/common/src/API/dashboardAccountMemberCalls.mjs +19 -0
  23. package/common/src/API/dashboardPayoutCalls.cjs +1 -0
  24. package/common/src/API/dashboardPayoutCalls.d.ts +15 -0
  25. package/common/src/API/dashboardPayoutCalls.mjs +16 -0
  26. package/common/src/API/enclaveRecipientInfoCalls.cjs +1 -0
  27. package/common/src/API/enclaveRecipientInfoCalls.mjs +2 -0
  28. package/common/src/API/enclaveSignatureCalls.cjs +1 -0
  29. package/common/src/API/enclaveSignatureCalls.mjs +13 -0
  30. package/common/src/API/enclaveUtxoCalls.cjs +1 -0
  31. package/common/src/API/enclaveUtxoCalls.d.ts +54 -0
  32. package/common/src/API/enclaveUtxoCalls.mjs +23 -0
  33. package/common/src/API/getCoingeckoPrice.cjs +1 -0
  34. package/common/src/API/getCoingeckoPrice.mjs +2 -0
  35. package/common/src/API/getServerURL.cjs +1 -0
  36. package/common/src/API/getServerURL.mjs +22 -0
  37. package/common/src/API/getWebsiteURL.cjs +1 -0
  38. package/common/src/API/getWebsiteURL.d.ts +4 -0
  39. package/common/src/API/getWebsiteURL.mjs +1 -0
  40. package/common/src/API/index.cjs +1 -0
  41. package/common/src/API/index.d.ts +24 -0
  42. package/common/src/API/index.mjs +24 -0
  43. package/common/src/API/payoutNotificationStateCalls.cjs +1 -0
  44. package/common/src/API/payoutNotificationStateCalls.d.ts +10 -0
  45. package/common/src/API/payoutNotificationStateCalls.mjs +10 -0
  46. package/common/src/API/proxyAccountsCalls.cjs +1 -0
  47. package/common/src/API/proxyAccountsCalls.d.ts +5 -0
  48. package/common/src/API/proxyAccountsCalls.mjs +24 -0
  49. package/common/src/API/resolve-sns.cjs +1 -0
  50. package/common/src/API/resolve-sns.mjs +1 -0
  51. package/common/src/API/rewardsUserCalls.cjs +1 -0
  52. package/common/src/API/rewardsUserCalls.d.ts +23 -0
  53. package/common/src/API/rewardsUserCalls.mjs +9 -0
  54. package/common/src/API/scheduled-transactions-calls.d.ts +21 -0
  55. package/common/src/API/temporaryWalletCalls.cjs +1 -0
  56. package/common/src/API/temporaryWalletCalls.d.ts +15 -0
  57. package/common/src/API/temporaryWalletCalls.mjs +19 -0
  58. package/common/src/API/tenderly.api.cjs +1 -0
  59. package/common/src/API/tenderly.api.mjs +4 -0
  60. package/common/src/API/token-calls.cjs +1 -0
  61. package/common/src/API/token-calls.d.ts +4 -0
  62. package/common/src/API/token-calls.mjs +5 -0
  63. package/common/src/API/weeklyAnalyticCalls.cjs +1 -0
  64. package/common/src/API/weeklyAnalyticCalls.d.ts +12 -0
  65. package/common/src/API/weeklyAnalyticCalls.mjs +8 -0
  66. package/common/src/constants/activity.constants.cjs +1 -0
  67. package/common/src/constants/activity.constants.mjs +4 -0
  68. package/common/src/constants/addresses.constants.cjs +1 -0
  69. package/common/src/constants/addresses.constants.mjs +71 -0
  70. package/common/src/constants/auth.constants.cjs +1 -0
  71. package/common/src/constants/auth.constants.mjs +4 -0
  72. package/common/src/constants/bridging.constants.cjs +1 -0
  73. package/common/src/constants/bridging.constants.d.ts +33 -0
  74. package/common/src/constants/bridging.constants.mjs +25 -0
  75. package/common/src/constants/chains.constants.cjs +1 -0
  76. package/common/src/constants/chains.constants.d.ts +74 -0
  77. package/common/src/constants/chains.constants.mjs +285 -0
  78. package/common/src/constants/coingecko.constants.cjs +1 -0
  79. package/common/src/constants/coingecko.constants.d.ts +44 -0
  80. package/common/src/constants/coingecko.constants.mjs +6 -0
  81. package/common/src/constants/contracts.constants.cjs +1 -0
  82. package/common/src/constants/contracts.constants.mjs +36 -0
  83. package/common/src/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -0
  84. package/common/src/constants/deploy-data/deploy-data-arbMainnet.json.mjs +12 -0
  85. package/common/src/constants/deploy-data/deploy-data-arcTestnet.json.cjs +1 -0
  86. package/common/src/constants/deploy-data/deploy-data-arcTestnet.json.mjs +10 -0
  87. package/common/src/constants/deploy-data/deploy-data-base.json.cjs +1 -0
  88. package/common/src/constants/deploy-data/deploy-data-base.json.mjs +12 -0
  89. package/common/src/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -0
  90. package/common/src/constants/deploy-data/deploy-data-ethMainnet.json.mjs +12 -0
  91. package/common/src/constants/deploy-data/deploy-data-localhost.json.cjs +1 -0
  92. package/common/src/constants/deploy-data/deploy-data-localhost.json.mjs +12 -0
  93. package/common/src/constants/deploy-data/deploy-data-optimism.json.cjs +1 -0
  94. package/common/src/constants/deploy-data/deploy-data-optimism.json.mjs +12 -0
  95. package/common/src/constants/deploy-data/deploy-data-optimismTest.json.cjs +1 -0
  96. package/common/src/constants/deploy-data/deploy-data-optimismTest.json.mjs +12 -0
  97. package/common/src/constants/deploy-data/deploy-data-polygon.json.cjs +1 -0
  98. package/common/src/constants/deploy-data/deploy-data-polygon.json.mjs +12 -0
  99. package/common/src/constants/deploy-data/deploy-data-sepoliaTestnet.json.cjs +1 -0
  100. package/common/src/constants/deploy-data/deploy-data-sepoliaTestnet.json.mjs +9 -0
  101. package/common/src/constants/deploy-data/deploy-data-solana.json.cjs +1 -0
  102. package/common/src/constants/deploy-data/deploy-data-solana.json.mjs +6 -0
  103. package/common/src/constants/deploy-data/deploy-data-tempo.json.cjs +1 -0
  104. package/common/src/constants/deploy-data/deploy-data-tempo.json.mjs +11 -0
  105. package/common/src/constants/deploy-data/deploy-data-tronMainnet.json.cjs +1 -0
  106. package/common/src/constants/deploy-data/deploy-data-tronMainnet.json.mjs +8 -0
  107. package/common/src/constants/deploy-data/deploy-data-tronNile.json.cjs +1 -0
  108. package/common/src/constants/deploy-data/deploy-data-tronNile.json.mjs +8 -0
  109. package/common/src/constants/deploy-data/index.cjs +1 -0
  110. package/common/src/constants/deploy-data/index.d.ts +14 -0
  111. package/common/src/constants/deploy-data/index.mjs +18 -0
  112. package/common/src/constants/deploy-data/mergeDeployData.cjs +1 -0
  113. package/common/src/constants/deploy-data/mergeDeployData.d.ts +4 -0
  114. package/common/src/constants/deploy-data/mergeDeployData.mjs +17 -0
  115. package/common/src/constants/deploy-data/shared-deploy-data-evm.json.cjs +1 -0
  116. package/common/src/constants/deploy-data/shared-deploy-data-evm.json.mjs +43 -0
  117. package/common/src/constants/deploy-data/shared-deploy-data-solana.json.cjs +1 -0
  118. package/common/src/constants/deploy-data/shared-deploy-data-solana.json.mjs +3 -0
  119. package/common/src/constants/deploy-data/shared-deploy-data-tron.json.cjs +1 -0
  120. package/common/src/constants/deploy-data/shared-deploy-data-tron.json.mjs +58 -0
  121. package/common/src/constants/enclaveAuth.constants.d.ts +5 -0
  122. package/common/src/constants/fees.constants.cjs +1 -0
  123. package/common/src/constants/fees.constants.mjs +14 -0
  124. package/common/src/constants/index.cjs +1 -0
  125. package/common/src/constants/index.d.ts +33 -0
  126. package/common/src/constants/index.mjs +20 -0
  127. package/common/src/constants/lifi.constants.cjs +1 -0
  128. package/common/src/constants/lifi.constants.mjs +9 -0
  129. package/common/src/constants/mediaUrls.constants.d.ts +43 -0
  130. package/common/src/constants/pay.constants.d.ts +2 -0
  131. package/common/src/constants/permit2.constants.cjs +1 -0
  132. package/common/src/constants/permit2.constants.mjs +10 -0
  133. package/common/src/constants/presale.constants.cjs +1 -0
  134. package/common/src/constants/presale.constants.mjs +3 -0
  135. package/common/src/constants/protocol.constants.cjs +2 -0
  136. package/common/src/constants/protocol.constants.d.ts +66 -0
  137. package/common/src/constants/protocol.constants.mjs +11 -0
  138. package/common/src/constants/rewards.constants.d.ts +2 -0
  139. package/common/src/constants/schedule.constants.cjs +1 -0
  140. package/common/src/constants/schedule.constants.mjs +3 -0
  141. package/common/src/constants/server.constants.cjs +1 -0
  142. package/common/src/constants/server.constants.d.ts +115 -0
  143. package/common/src/constants/server.constants.mjs +99 -0
  144. package/common/src/constants/tokens.constants.cjs +1 -0
  145. package/common/src/constants/tokens.constants.d.ts +5 -0
  146. package/common/src/constants/tokens.constants.mjs +6 -0
  147. package/common/src/constants/tx-confirmation.constants.cjs +1 -0
  148. package/common/src/constants/tx-confirmation.constants.mjs +4 -0
  149. package/common/src/constants/vite.constants.cjs +1 -0
  150. package/common/src/constants/vite.constants.d.ts +16 -0
  151. package/common/src/constants/vite.constants.mjs +8 -0
  152. package/common/src/crypto/babyJub.cjs +1 -0
  153. package/common/src/crypto/babyJub.mjs +13 -0
  154. package/common/src/crypto/ecdh-dual-path.cjs +1 -0
  155. package/common/src/crypto/ecdh-dual-path.mjs +6 -0
  156. package/common/src/crypto/ecdh-sealed-keys.cjs +1 -0
  157. package/common/src/crypto/ecdh.cjs +1 -0
  158. package/common/src/crypto/ecdh.mjs +2 -0
  159. package/common/src/crypto/eddsa.cjs +1 -0
  160. package/common/src/crypto/eddsa.mjs +13 -0
  161. package/common/src/crypto/index.cjs +1 -0
  162. package/common/src/crypto/index.mjs +7 -0
  163. package/common/src/crypto/poseidon.cjs +1 -0
  164. package/common/src/crypto/poseidon.mjs +23 -0
  165. package/common/src/crypto/preProcessing.cjs +1 -0
  166. package/common/src/crypto/preProcessing.mjs +17 -0
  167. package/common/src/data-structures/AccountActions/AccountActions.cjs +1 -0
  168. package/common/src/data-structures/Hinkal/Hinkal.cjs +1 -0
  169. package/common/src/data-structures/Hinkal/Hinkal.d.ts +122 -0
  170. package/common/src/data-structures/Hinkal/Hinkal.mjs +445 -0
  171. package/common/src/data-structures/Hinkal/IHinkal.d.ts +109 -0
  172. package/common/src/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -0
  173. package/common/src/data-structures/Hinkal/handleAutoDepositBack.mjs +93 -0
  174. package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.cjs +1 -0
  175. package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.d.ts +5 -0
  176. package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.mjs +107 -0
  177. package/common/src/data-structures/Hinkal/hinkalClaimUtxo.cjs +1 -0
  178. package/common/src/data-structures/Hinkal/hinkalClaimUtxo.mjs +51 -0
  179. package/common/src/data-structures/Hinkal/hinkalDeposit.cjs +1 -0
  180. package/common/src/data-structures/Hinkal/hinkalDeposit.mjs +118 -0
  181. package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.cjs +1 -0
  182. package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.d.ts +4 -0
  183. package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.mjs +118 -0
  184. package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -0
  185. package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +6 -0
  186. package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +75 -0
  187. package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -0
  188. package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.d.ts +8 -0
  189. package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +44 -0
  190. package/common/src/data-structures/Hinkal/hinkalNearDepositAndBridge.cjs +1 -0
  191. package/common/src/data-structures/Hinkal/hinkalNearDepositAndBridge.mjs +43 -0
  192. package/common/src/data-structures/Hinkal/hinkalPalEvmDeposit.d.ts +9 -0
  193. package/common/src/data-structures/Hinkal/hinkalPalTronDepositPrepare.d.ts +9 -0
  194. package/common/src/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -0
  195. package/common/src/data-structures/Hinkal/hinkalPrivateWallet.mjs +48 -0
  196. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -0
  197. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +8 -0
  198. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.mjs +136 -0
  199. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.cjs +1 -0
  200. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.d.ts +10 -0
  201. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.mjs +63 -0
  202. package/common/src/data-structures/Hinkal/hinkalProxySwap.cjs +1 -0
  203. package/common/src/data-structures/Hinkal/hinkalProxySwap.mjs +24 -0
  204. package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -0
  205. package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.mjs +28 -0
  206. package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.cjs +1 -0
  207. package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.mjs +86 -0
  208. package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -0
  209. package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.mjs +96 -0
  210. package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -0
  211. package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +164 -0
  212. package/common/src/data-structures/Hinkal/hinkalSolanaProxySend.cjs +1 -0
  213. package/common/src/data-structures/Hinkal/hinkalSolanaProxySend.mjs +36 -0
  214. package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -0
  215. package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +69 -0
  216. package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -0
  217. package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +79 -0
  218. package/common/src/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -0
  219. package/common/src/data-structures/Hinkal/hinkalSolanaSwap.mjs +92 -0
  220. package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -0
  221. package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.mjs +87 -0
  222. package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -0
  223. package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +68 -0
  224. package/common/src/data-structures/Hinkal/hinkalSwap.cjs +1 -0
  225. package/common/src/data-structures/Hinkal/hinkalSwap.mjs +42 -0
  226. package/common/src/data-structures/Hinkal/hinkalTransfer.cjs +1 -0
  227. package/common/src/data-structures/Hinkal/hinkalTransfer.mjs +49 -0
  228. package/common/src/data-structures/Hinkal/hinkalWithdraw.cjs +1 -0
  229. package/common/src/data-structures/Hinkal/hinkalWithdraw.mjs +50 -0
  230. package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -0
  231. package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +113 -0
  232. package/common/src/data-structures/Hinkal/index.d.ts +24 -0
  233. package/common/src/data-structures/Hinkal/resetMerkleTrees.cjs +1 -0
  234. package/common/src/data-structures/Hinkal/resetMerkleTrees.mjs +54 -0
  235. package/common/src/data-structures/IndexedDB/activity-db.cjs +1 -0
  236. package/common/src/data-structures/IndexedDB/activity-db.mjs +110 -0
  237. package/common/src/data-structures/IndexedDB/balances-db.cjs +1 -0
  238. package/common/src/data-structures/IndexedDB/balances-db.mjs +47 -0
  239. package/common/src/data-structures/IndexedDB/contact-db.cjs +1 -0
  240. package/common/src/data-structures/IndexedDB/contact-db.d.ts +11 -0
  241. package/common/src/data-structures/IndexedDB/contact-db.mjs +45 -0
  242. package/common/src/data-structures/IndexedDB/index.cjs +1 -0
  243. package/common/src/data-structures/IndexedDB/index.d.ts +8 -0
  244. package/common/src/data-structures/IndexedDB/index.mjs +8 -0
  245. package/common/src/data-structures/IndexedDB/key-val-store.cjs +1 -0
  246. package/common/src/data-structures/IndexedDB/key-val-store.d.ts +8 -0
  247. package/common/src/data-structures/IndexedDB/key-val-store.mjs +57 -0
  248. package/common/src/data-structures/IndexedDB/pay-activity-db.cjs +1 -0
  249. package/common/src/data-structures/IndexedDB/pay-activity-db.mjs +21 -0
  250. package/common/src/data-structures/IndexedDB/prices-db.cjs +1 -0
  251. package/common/src/data-structures/IndexedDB/prices-db.mjs +54 -0
  252. package/common/src/data-structures/IndexedDB/private-balances-db.cjs +1 -0
  253. package/common/src/data-structures/IndexedDB/private-balances-db.d.ts +10 -0
  254. package/common/src/data-structures/IndexedDB/private-balances-db.mjs +24 -0
  255. package/common/src/data-structures/IndexedDB/signatures-db.cjs +1 -0
  256. package/common/src/data-structures/IndexedDB/signatures-db.mjs +40 -0
  257. package/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -0
  258. package/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +73 -0
  259. package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +1 -0
  260. package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.d.ts +19 -0
  261. package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +172 -0
  262. package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.cjs +1 -0
  263. package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.mjs +94 -0
  264. package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -0
  265. package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.d.ts +18 -0
  266. package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.mjs +134 -0
  267. package/common/src/data-structures/TokenDBs/IPublicTokensDB.d.ts +6 -0
  268. package/common/src/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -0
  269. package/common/src/data-structures/TokenDBs/PrivateTokensDB.mjs +50 -0
  270. package/common/src/data-structures/TokenDBs/PublicTokensDB.cjs +1 -0
  271. package/common/src/data-structures/TokenDBs/PublicTokensDB.d.ts +9 -0
  272. package/common/src/data-structures/TokenDBs/PublicTokensDB.mjs +32 -0
  273. package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.cjs +1 -0
  274. package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.d.ts +9 -0
  275. package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.mjs +41 -0
  276. package/common/src/data-structures/TokenDBs/TronPublicTokensDB.cjs +1 -0
  277. package/common/src/data-structures/TokenDBs/TronPublicTokensDB.d.ts +9 -0
  278. package/common/src/data-structures/TokenDBs/TronPublicTokensDB.mjs +47 -0
  279. package/common/src/data-structures/TokenDBs/token-visibility-db.cjs +1 -0
  280. package/common/src/data-structures/WalletManager/WalletManager.d.ts +52 -0
  281. package/common/src/data-structures/cacheDevices/BaseCacheDevice.cjs +1 -0
  282. package/common/src/data-structures/cacheDevices/BaseCacheDevice.d.ts +12 -0
  283. package/common/src/data-structures/cacheDevices/BaseCacheDevice.mjs +24 -0
  284. package/common/src/data-structures/cacheDevices/FileCacheDevice.cjs +1 -0
  285. package/common/src/data-structures/cacheDevices/FileCacheDevice.d.ts +13 -0
  286. package/common/src/data-structures/cacheDevices/FileCacheDevice.mjs +49 -0
  287. package/common/src/data-structures/crypto-keys/decodeUTXO.cjs +1 -0
  288. package/common/src/data-structures/crypto-keys/decodeUTXO.d.ts +27 -0
  289. package/common/src/data-structures/crypto-keys/decodeUTXO.mjs +68 -0
  290. package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -0
  291. package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.d.ts +17 -0
  292. package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.mjs +43 -0
  293. package/common/src/data-structures/crypto-keys/index.cjs +1 -0
  294. package/common/src/data-structures/crypto-keys/index.mjs +4 -0
  295. package/common/src/data-structures/crypto-keys/keys.cjs +1 -0
  296. package/common/src/data-structures/crypto-keys/keys.d.ts +116 -0
  297. package/common/src/data-structures/crypto-keys/keys.mjs +146 -0
  298. package/common/src/data-structures/event-service/evm/AbstractNullifierSnapshotService.cjs +1 -0
  299. package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -0
  300. package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +36 -0
  301. package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.mjs +98 -0
  302. package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.cjs +1 -0
  303. package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.d.ts +11 -0
  304. package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.mjs +21 -0
  305. package/common/src/data-structures/event-service/evm/PollingBlockchainEventEmitter.cjs +1 -0
  306. package/common/src/data-structures/event-service/evm/PollingBlockchainEventEmitter.mjs +1 -0
  307. package/common/src/data-structures/event-service/helpers/ClientEventHelper.cjs +1 -0
  308. package/common/src/data-structures/event-service/helpers/ClientEventHelper.mjs +28 -0
  309. package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs +1 -0
  310. package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +98 -0
  311. package/common/src/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.cjs +1 -0
  312. package/common/src/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.d.ts +11 -0
  313. package/common/src/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.cjs +1 -0
  314. package/common/src/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.mjs +1 -0
  315. package/common/src/data-structures/event-service/solana/SolanaBlockchainEventEmitter.cjs +1 -0
  316. package/common/src/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +42 -0
  317. package/common/src/data-structures/http/BasicHttpClient.cjs +1 -0
  318. package/common/src/data-structures/index.d.ts +22 -0
  319. package/common/src/data-structures/private-balances/BalanceChangedHandler.cjs +1 -0
  320. package/common/src/data-structures/private-balances/BalanceChangedHandler.d.ts +9 -0
  321. package/common/src/data-structures/private-balances/BalanceChangedHandler.mjs +12 -0
  322. package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.cjs +1 -0
  323. package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.d.ts +21 -0
  324. package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.mjs +183 -0
  325. package/common/src/data-structures/private-balances/index.cjs +1 -0
  326. package/common/src/data-structures/private-balances/index.d.ts +3 -0
  327. package/common/src/data-structures/private-balances/index.mjs +3 -0
  328. package/common/src/data-structures/private-balances/privateBalancesReducer.cjs +1 -0
  329. package/common/src/data-structures/private-balances/privateBalancesReducer.d.ts +2 -0
  330. package/common/src/data-structures/private-balances/privateBalancesReducer.mjs +73 -0
  331. package/common/src/data-structures/provider-adapter/IProviderAdapter.d.ts +39 -0
  332. package/common/src/data-structures/token-price-fetcher/TokenChecker.cjs +1 -0
  333. package/common/src/data-structures/token-price-fetcher/TokenChecker.mjs +17 -0
  334. package/common/src/data-structures/utxo/Utxo.cjs +1 -0
  335. package/common/src/data-structures/utxo/Utxo.d.ts +66 -0
  336. package/common/src/data-structures/utxo/Utxo.mjs +106 -0
  337. package/common/src/error-handling/customErrors/customErrors.helpers.cjs +1 -0
  338. package/common/src/error-handling/customErrors/customErrors.helpers.mjs +14 -0
  339. package/common/src/error-handling/customErrors/index.cjs +1 -0
  340. package/common/src/error-handling/customErrors/index.mjs +4 -0
  341. package/common/src/error-handling/error-codes.constants.cjs +2 -0
  342. package/common/src/error-handling/error-codes.constants.d.ts +248 -0
  343. package/common/src/error-handling/error-codes.constants.mjs +238 -0
  344. package/common/src/error-handling/get-error.message.cjs +1 -0
  345. package/common/src/error-handling/get-error.message.mjs +75 -0
  346. package/common/src/error-handling/index.cjs +1 -0
  347. package/common/src/error-handling/index.d.ts +7 -0
  348. package/common/src/error-handling/index.mjs +11 -0
  349. package/common/src/externalABIs/index.cjs +1 -0
  350. package/common/src/externalABIs/index.mjs +11 -0
  351. package/common/src/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.cjs +1 -0
  352. package/common/src/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.mjs +21 -0
  353. package/common/src/functions/auto-deposit-back-helpers/select-gas-token.cjs +1 -0
  354. package/common/src/functions/auto-deposit-back-helpers/select-gas-token.mjs +34 -0
  355. package/common/src/functions/auto-deposit-back-helpers/update-hinkal.cjs +1 -0
  356. package/common/src/functions/auto-deposit-back-helpers/update-hinkal.d.ts +2 -0
  357. package/common/src/functions/auto-deposit-back-helpers/update-hinkal.mjs +22 -0
  358. package/common/src/functions/index.cjs +1 -0
  359. package/common/src/functions/index.d.ts +12 -0
  360. package/common/src/functions/index.mjs +86 -0
  361. package/common/src/functions/pre-transaction/addressTableLookup.cjs +1 -0
  362. package/common/src/functions/pre-transaction/addressTableLookup.mjs +2 -0
  363. package/common/src/functions/pre-transaction/buildCommitmentValidationData.cjs +1 -0
  364. package/common/src/functions/pre-transaction/buildCommitmentValidationData.mjs +64 -0
  365. package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.cjs +1 -0
  366. package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.mjs +5 -0
  367. package/common/src/functions/pre-transaction/convert-okx-instructions.cjs +1 -0
  368. package/common/src/functions/pre-transaction/ensureAmountChanges.cjs +1 -0
  369. package/common/src/functions/pre-transaction/getExternalSwapAddress.cjs +1 -0
  370. package/common/src/functions/pre-transaction/getExternalSwapAddress.mjs +27 -0
  371. package/common/src/functions/pre-transaction/getFeeStructure.cjs +1 -0
  372. package/common/src/functions/pre-transaction/getFeeStructure.mjs +20 -0
  373. package/common/src/functions/pre-transaction/getSolanaCalldataHash.cjs +1 -0
  374. package/common/src/functions/pre-transaction/getVolatileTransferAmount.cjs +1 -0
  375. package/common/src/functions/pre-transaction/getVolatileTransferAmount.mjs +32 -0
  376. package/common/src/functions/pre-transaction/index.cjs +1 -0
  377. package/common/src/functions/pre-transaction/index.d.ts +19 -0
  378. package/common/src/functions/pre-transaction/index.mjs +18 -0
  379. package/common/src/functions/pre-transaction/interaction-to-action.cjs +1 -0
  380. package/common/src/functions/pre-transaction/interaction-to-action.mjs +1 -0
  381. package/common/src/functions/pre-transaction/merge-with-fee-structure-emporium.cjs +1 -0
  382. package/common/src/functions/pre-transaction/merge-with-fee-structure-emporium.mjs +16 -0
  383. package/common/src/functions/pre-transaction/merge-with-fee-structure.cjs +1 -0
  384. package/common/src/functions/pre-transaction/merge-with-fee-structure.d.ts +2 -0
  385. package/common/src/functions/pre-transaction/merge-with-fee-structure.mjs +24 -0
  386. package/common/src/functions/pre-transaction/outputUtxoProcessing.cjs +1 -0
  387. package/common/src/functions/pre-transaction/outputUtxoProcessing.mjs +31 -0
  388. package/common/src/functions/pre-transaction/process-gas-estimates.cjs +1 -0
  389. package/common/src/functions/pre-transaction/process-gas-estimates.mjs +25 -0
  390. package/common/src/functions/pre-transaction/recipientUtxoProcessing.cjs +1 -0
  391. package/common/src/functions/pre-transaction/recipientUtxoProcessing.mjs +30 -0
  392. package/common/src/functions/pre-transaction/sendInitNullifiersTransaction.cjs +1 -0
  393. package/common/src/functions/pre-transaction/sendInitNullifiersTransaction.mjs +3 -0
  394. package/common/src/functions/pre-transaction/sendV0Transaction.cjs +2 -0
  395. package/common/src/functions/pre-transaction/sendV0Transaction.mjs +99 -0
  396. package/common/src/functions/pre-transaction/solana-public-signals.d.ts +22 -0
  397. package/common/src/functions/pre-transaction/solana.cjs +1 -0
  398. package/common/src/functions/pre-transaction/solana.mjs +34 -0
  399. package/common/src/functions/pre-transaction/solanaTransfer.utils.cjs +1 -0
  400. package/common/src/functions/pre-transaction/store-instructions.cjs +1 -0
  401. package/common/src/functions/pre-transaction/store-instructions.mjs +2 -0
  402. package/common/src/functions/pre-transaction/store-proof.cjs +1 -0
  403. package/common/src/functions/pre-transaction/store-proof.mjs +3 -0
  404. package/common/src/functions/private-wallet/emporium.helpers.cjs +1 -0
  405. package/common/src/functions/private-wallet/emporium.helpers.d.ts +46 -0
  406. package/common/src/functions/private-wallet/emporium.helpers.mjs +165 -0
  407. package/common/src/functions/private-wallet/emporium.swap.helpers.cjs +1 -0
  408. package/common/src/functions/private-wallet/emporium.swap.helpers.mjs +107 -0
  409. package/common/src/functions/private-wallet/opProducer.cjs +1 -0
  410. package/common/src/functions/private-wallet/opProducer.mjs +3 -0
  411. package/common/src/functions/snarkjs/common.snarkjs.cjs +1 -0
  412. package/common/src/functions/snarkjs/common.snarkjs.d.ts +31 -0
  413. package/common/src/functions/snarkjs/common.snarkjs.mjs +91 -0
  414. package/common/src/functions/snarkjs/constant.cjs +1 -0
  415. package/common/src/functions/snarkjs/constant.d.ts +156 -0
  416. package/common/src/functions/snarkjs/constant.mjs +158 -0
  417. package/common/src/functions/snarkjs/constructGeneralZkProof.cjs +1 -0
  418. package/common/src/functions/snarkjs/constructGeneralZkProof.d.ts +13 -0
  419. package/common/src/functions/snarkjs/constructGeneralZkProof.mjs +81 -0
  420. package/common/src/functions/snarkjs/constructSignatureFromMnemonicProofInput.cjs +1 -0
  421. package/common/src/functions/snarkjs/constructSignatureFromMnemonicProofInput.d.ts +7 -0
  422. package/common/src/functions/snarkjs/constructSignatureFromMnemonicProofInput.mjs +2 -0
  423. package/common/src/functions/snarkjs/constructSolanaZkProof.cjs +1 -0
  424. package/common/src/functions/snarkjs/constructSolanaZkProof.mjs +69 -0
  425. package/common/src/functions/snarkjs/fetchMerkleTreeSiblings.d.ts +9 -0
  426. package/common/src/functions/snarkjs/fetchOnChainRootHashes.cjs +1 -0
  427. package/common/src/functions/snarkjs/fetchOnChainRootHashes.d.ts +4 -0
  428. package/common/src/functions/snarkjs/fetchOnChainRootHashes.mjs +36 -0
  429. package/common/src/functions/snarkjs/generateCircomData.cjs +1 -0
  430. package/common/src/functions/snarkjs/generateCircomData.d.ts +5 -0
  431. package/common/src/functions/snarkjs/generateCircomData.mjs +37 -0
  432. package/common/src/functions/snarkjs/generateSignatureFromMnemonicProof.cjs +1 -0
  433. package/common/src/functions/snarkjs/generateSignatureFromMnemonicProof.d.ts +2 -0
  434. package/common/src/functions/snarkjs/generateSignatureFromMnemonicProof.mjs +3 -0
  435. package/common/src/functions/snarkjs/generateZkProofEnclave.cjs +1 -0
  436. package/common/src/functions/snarkjs/generateZkProofEnclave.mjs +27 -0
  437. package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.cjs +1 -0
  438. package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.d.ts +17 -0
  439. package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +100 -0
  440. package/common/src/functions/snarkjs/getZKFiles.cjs +1 -0
  441. package/common/src/functions/snarkjs/getZKFiles.mjs +13 -0
  442. package/common/src/functions/snarkjs/index.cjs +1 -0
  443. package/common/src/functions/snarkjs/index.d.ts +10 -0
  444. package/common/src/functions/snarkjs/index.mjs +10 -0
  445. package/common/src/functions/snarkjs/signedMessageHash.cjs +1 -0
  446. package/common/src/functions/snarkjs/signedMessageHash.d.ts +32 -0
  447. package/common/src/functions/snarkjs/signedMessageHash.mjs +51 -0
  448. package/common/src/functions/snarkjs/verifyCommitmentValidationData.cjs +1 -0
  449. package/common/src/functions/snarkjs/verifyCommitmentValidationData.mjs +6 -0
  450. package/common/src/functions/utils/abi.utils.cjs +1 -0
  451. package/common/src/functions/utils/abi.utils.d.ts +3 -0
  452. package/common/src/functions/utils/abi.utils.mjs +5 -0
  453. package/common/src/functions/utils/addresses.cjs +1 -0
  454. package/common/src/functions/utils/addresses.d.ts +10 -0
  455. package/common/src/functions/utils/addresses.mjs +29 -0
  456. package/common/src/functions/utils/amounts.utils.cjs +1 -0
  457. package/common/src/functions/utils/amounts.utils.mjs +29 -0
  458. package/common/src/functions/utils/bridge-claimable.utils.cjs +1 -0
  459. package/common/src/functions/utils/bridge-claimable.utils.d.ts +16 -0
  460. package/common/src/functions/utils/bridge-claimable.utils.mjs +3 -0
  461. package/common/src/functions/utils/bridge-flow.utils.cjs +1 -0
  462. package/common/src/functions/utils/bridge-flow.utils.d.ts +4 -0
  463. package/common/src/functions/utils/bridge-flow.utils.mjs +2 -0
  464. package/common/src/functions/utils/buildClaimableDepositPlan.cjs +1 -0
  465. package/common/src/functions/utils/buildClaimableDepositPlan.d.ts +17 -0
  466. package/common/src/functions/utils/buildClaimableDepositPlan.mjs +4 -0
  467. package/common/src/functions/utils/bytes32.utils.cjs +1 -0
  468. package/common/src/functions/utils/bytes32.utils.mjs +9 -0
  469. package/common/src/functions/utils/cacheDevice.utils.mjs +17 -0
  470. package/common/src/functions/utils/cacheFunctions.cjs +1 -0
  471. package/common/src/functions/utils/cacheFunctions.mjs +25 -0
  472. package/common/src/functions/utils/caseInsensitive.utils.cjs +1 -0
  473. package/common/src/functions/utils/caseInsensitive.utils.mjs +4 -0
  474. package/common/src/functions/utils/convertEmporiumOpToCallInfo.cjs +1 -0
  475. package/common/src/functions/utils/convertEmporiumOpToCallInfo.mjs +14 -0
  476. package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.cjs +1 -0
  477. package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.mjs +4 -0
  478. package/common/src/functions/utils/create-provider.cjs +1 -0
  479. package/common/src/functions/utils/create-provider.d.ts +4 -0
  480. package/common/src/functions/utils/create-provider.mjs +11 -0
  481. package/common/src/functions/utils/customEnclaveFunctionsRegister.cjs +1 -0
  482. package/common/src/functions/utils/customEnclaveFunctionsRegister.mjs +4 -0
  483. package/common/src/functions/utils/deposit-claimable.utils.cjs +1 -0
  484. package/common/src/functions/utils/deposit-claimable.utils.mjs +10 -0
  485. package/common/src/functions/utils/dispatchBalanceRefreshes.cjs +1 -0
  486. package/common/src/functions/utils/dispatchBalanceRefreshes.mjs +4 -0
  487. package/common/src/functions/utils/enclave-recipient-info-storage.cjs +1 -0
  488. package/common/src/functions/utils/enclave-recipient-info-storage.mjs +2 -0
  489. package/common/src/functions/utils/enclave-utxo-storage.cjs +1 -0
  490. package/common/src/functions/utils/enclave-utxo-storage.d.ts +10 -0
  491. package/common/src/functions/utils/enclave-utxo-storage.mjs +4 -0
  492. package/common/src/functions/utils/enclaveHandshakeService.cjs +1 -0
  493. package/common/src/functions/utils/enclaveHandshakeService.mjs +22 -0
  494. package/common/src/functions/utils/enclaveSessionSigning.cjs +1 -0
  495. package/common/src/functions/utils/enclaveSessionSigning.d.ts +16 -0
  496. package/common/src/functions/utils/enclaveSessionSigning.mjs +2 -0
  497. package/common/src/functions/utils/encodeTokenWithId.cjs +1 -0
  498. package/common/src/functions/utils/encodeTokenWithId.d.ts +1 -0
  499. package/common/src/functions/utils/encodeTokenWithId.mjs +5 -0
  500. package/common/src/functions/utils/encryptInputForEnclave.cjs +1 -0
  501. package/common/src/functions/utils/erc20tokenFunctions.cjs +1 -0
  502. package/common/src/functions/utils/erc20tokenFunctions.d.ts +20 -0
  503. package/common/src/functions/utils/erc20tokenFunctions.mjs +37 -0
  504. package/common/src/functions/utils/evmNetworkFunctions.cjs +1 -0
  505. package/common/src/functions/utils/evmNetworkFunctions.d.ts +4 -0
  506. package/common/src/functions/utils/evmNetworkFunctions.mjs +5 -0
  507. package/common/src/functions/utils/external-action.utils.cjs +1 -0
  508. package/common/src/functions/utils/external-action.utils.mjs +6 -0
  509. package/common/src/functions/utils/fees.utils.cjs +1 -0
  510. package/common/src/functions/utils/fees.utils.d.ts +7 -0
  511. package/common/src/functions/utils/fees.utils.mjs +44 -0
  512. package/common/src/functions/utils/formatter.cjs +1 -0
  513. package/common/src/functions/utils/formatter.d.ts +2 -0
  514. package/common/src/functions/utils/formatter.mjs +1 -0
  515. package/common/src/functions/utils/getBlockExplorerUrl.cjs +1 -0
  516. package/common/src/functions/utils/getBlockExplorerUrl.mjs +1 -0
  517. package/common/src/functions/utils/getDataFromTransaction.d.ts +34 -0
  518. package/common/src/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -0
  519. package/common/src/functions/utils/getRecipientInfoFromUserKeys.mjs +19 -0
  520. package/common/src/functions/utils/getSignerFromContract.cjs +1 -0
  521. package/common/src/functions/utils/getUtxosFromReceipt.utils.cjs +1 -0
  522. package/common/src/functions/utils/getUtxosFromReceipt.utils.mjs +53 -0
  523. package/common/src/functions/utils/getUtxosFromReceiptSolana.cjs +1 -0
  524. package/common/src/functions/utils/getUtxosFromReceiptSolana.mjs +24 -0
  525. package/common/src/functions/utils/inLogicMetadata.cjs +1 -0
  526. package/common/src/functions/utils/inLogicMetadata.mjs +1 -0
  527. package/common/src/functions/utils/index.cjs +1 -0
  528. package/common/src/functions/utils/index.d.ts +82 -0
  529. package/common/src/functions/utils/index.mjs +85 -0
  530. package/common/src/functions/utils/ipfs.cjs +1 -0
  531. package/common/src/functions/utils/ipfs.mjs +1 -0
  532. package/common/src/functions/utils/legacyKeys.cjs +1 -0
  533. package/common/src/functions/utils/legacyKeys.d.ts +10 -0
  534. package/common/src/functions/utils/legacyKeys.mjs +8 -0
  535. package/common/src/functions/utils/lifi.utils.cjs +1 -0
  536. package/common/src/functions/utils/lifi.utils.d.ts +5 -0
  537. package/common/src/functions/utils/lifi.utils.mjs +6 -0
  538. package/common/src/functions/utils/map.utils.cjs +1 -0
  539. package/common/src/functions/utils/map.utils.d.ts +1 -0
  540. package/common/src/functions/utils/map.utils.mjs +9 -0
  541. package/common/src/functions/utils/mnemonics.cjs +1 -0
  542. package/common/src/functions/utils/mnemonics.mjs +6 -0
  543. package/common/src/functions/utils/mutexes.utils.cjs +1 -0
  544. package/common/src/functions/utils/mutexes.utils.d.ts +2 -0
  545. package/common/src/functions/utils/mutexes.utils.mjs +6 -0
  546. package/common/src/functions/utils/nearIntents.utils.cjs +1 -0
  547. package/common/src/functions/utils/nearIntents.utils.d.ts +11 -0
  548. package/common/src/functions/utils/nearIntents.utils.mjs +17 -0
  549. package/common/src/functions/utils/networks.utils.cjs +1 -0
  550. package/common/src/functions/utils/networks.utils.d.ts +2 -0
  551. package/common/src/functions/utils/networks.utils.mjs +1 -0
  552. package/common/src/functions/utils/nftTokenFunctions.cjs +1 -0
  553. package/common/src/functions/utils/nftTokenFunctions.mjs +2 -0
  554. package/common/src/functions/utils/prepareHinkal.cjs +1 -0
  555. package/common/src/functions/utils/prepareHinkal.d.ts +9 -0
  556. package/common/src/functions/utils/prepareHinkal.mjs +8 -0
  557. package/common/src/functions/utils/process.utils.cjs +1 -0
  558. package/common/src/functions/utils/process.utils.d.ts +14 -0
  559. package/common/src/functions/utils/process.utils.mjs +24 -0
  560. package/common/src/functions/utils/proxyAvatar.utils.cjs +1 -0
  561. package/common/src/functions/utils/proxyAvatar.utils.mjs +3 -0
  562. package/common/src/functions/utils/publicBalance.utils.cjs +1 -0
  563. package/common/src/functions/utils/publicBalance.utils.mjs +36 -0
  564. package/common/src/functions/utils/resolve-domain-address.cjs +1 -0
  565. package/common/src/functions/utils/resolve-domain-address.d.ts +4 -0
  566. package/common/src/functions/utils/resolve-domain-address.mjs +3 -0
  567. package/common/src/functions/utils/resolve-sync.utils.cjs +1 -0
  568. package/common/src/functions/utils/resolve-sync.utils.mjs +20 -0
  569. package/common/src/functions/utils/rpc-int-encode.cjs +1 -0
  570. package/common/src/functions/utils/rpc-int-encode.mjs +1 -0
  571. package/common/src/functions/utils/serialize-utxos.utils.cjs +1 -0
  572. package/common/src/functions/utils/serialize-utxos.utils.mjs +22 -0
  573. package/common/src/functions/utils/serialize.utils.cjs +1 -0
  574. package/common/src/functions/utils/serialize.utils.mjs +7 -0
  575. package/common/src/functions/utils/solana-memo.cjs +1 -0
  576. package/common/src/functions/utils/solana-memo.mjs +3 -0
  577. package/common/src/functions/utils/solanaMint.utils.cjs +1 -0
  578. package/common/src/functions/utils/solanaSendPreflight.utils.cjs +1 -0
  579. package/common/src/functions/utils/solanaSendPreflight.utils.mjs +1 -0
  580. package/common/src/functions/utils/string.utils.cjs +1 -0
  581. package/common/src/functions/utils/string.utils.mjs +18 -0
  582. package/common/src/functions/utils/temp-wallet.utils.cjs +1 -0
  583. package/common/src/functions/utils/temp-wallet.utils.d.ts +7 -0
  584. package/common/src/functions/utils/temp-wallet.utils.mjs +22 -0
  585. package/common/src/functions/utils/time.utils.cjs +1 -0
  586. package/common/src/functions/utils/time.utils.mjs +8 -0
  587. package/common/src/functions/utils/token-check.utils.cjs +1 -0
  588. package/common/src/functions/utils/token-check.utils.d.ts +4 -0
  589. package/common/src/functions/utils/token-check.utils.mjs +12 -0
  590. package/common/src/functions/utils/transfer-claimable.utils.cjs +1 -0
  591. package/common/src/functions/utils/transfer-claimable.utils.mjs +10 -0
  592. package/common/src/functions/utils/tron.utils.cjs +1 -0
  593. package/common/src/functions/utils/tron.utils.d.ts +44 -0
  594. package/common/src/functions/utils/tron.utils.mjs +179 -0
  595. package/common/src/functions/utils/tx-confirmation.utils.cjs +1 -0
  596. package/common/src/functions/utils/tx-confirmation.utils.mjs +34 -0
  597. package/common/src/functions/utils/userAgent.cjs +1 -0
  598. package/common/src/functions/utils/userAgent.mjs +3 -0
  599. package/common/src/functions/utils/validateWalletAddress.cjs +1 -0
  600. package/common/src/functions/utils/validateWalletAddress.d.ts +1 -0
  601. package/common/src/functions/utils/validateWalletAddress.mjs +2 -0
  602. package/common/src/functions/utils/voidWallets.utils.cjs +1 -0
  603. package/common/src/functions/utils/voidWallets.utils.d.ts +4 -0
  604. package/common/src/functions/utils/voidWallets.utils.mjs +1 -0
  605. package/common/src/functions/utils/walletBalances.utils.cjs +1 -0
  606. package/common/src/functions/utils/walletBalances.utils.mjs +1 -0
  607. package/common/src/functions/web3/EIP-712.cjs +1 -0
  608. package/common/src/functions/web3/EIP-712.mjs +1 -0
  609. package/common/src/functions/web3/connectors.utils.cjs +1 -0
  610. package/common/src/functions/web3/connectors.utils.d.ts +9 -0
  611. package/common/src/functions/web3/connectors.utils.mjs +1 -0
  612. package/common/src/functions/web3/etherFunctions.cjs +1 -0
  613. package/common/src/functions/web3/etherFunctions.d.ts +21 -0
  614. package/common/src/functions/web3/etherFunctions.mjs +21 -0
  615. package/common/src/functions/web3/events/getInputUtxoAndBalance.cjs +1 -0
  616. package/common/src/functions/web3/events/getInputUtxoAndBalance.d.ts +36 -0
  617. package/common/src/functions/web3/events/getInputUtxoAndBalance.mjs +105 -0
  618. package/common/src/functions/web3/events/getInputUtxosEnclave.cjs +1 -0
  619. package/common/src/functions/web3/events/getInputUtxosEnclave.mjs +56 -0
  620. package/common/src/functions/web3/events/getShieldedBalance.cjs +1 -0
  621. package/common/src/functions/web3/events/getShieldedBalance.d.ts +18 -0
  622. package/common/src/functions/web3/events/getShieldedBalance.mjs +106 -0
  623. package/common/src/functions/web3/events/getTransactionLogEvents.cjs +1 -0
  624. package/common/src/functions/web3/events/getTransactionLogEvents.mjs +2 -0
  625. package/common/src/functions/web3/events/index.cjs +1 -0
  626. package/common/src/functions/web3/events/index.d.ts +3 -0
  627. package/common/src/functions/web3/events/index.mjs +3 -0
  628. package/common/src/functions/web3/functionCalls/approveToken.cjs +1 -0
  629. package/common/src/functions/web3/functionCalls/approveToken.d.ts +4 -0
  630. package/common/src/functions/web3/functionCalls/approveToken.mjs +27 -0
  631. package/common/src/functions/web3/functionCalls/constructBatchCall.cjs +1 -0
  632. package/common/src/functions/web3/functionCalls/constructBatchCall.d.ts +7 -0
  633. package/common/src/functions/web3/functionCalls/constructBatchCall.mjs +64 -0
  634. package/common/src/functions/web3/functionCalls/recoverTransactionFromError.cjs +1 -0
  635. package/common/src/functions/web3/functionCalls/recoverTransactionFromError.mjs +18 -0
  636. package/common/src/functions/web3/functionCalls/transactCallDirect.cjs +1 -0
  637. package/common/src/functions/web3/functionCalls/transactCallDirect.mjs +60 -0
  638. package/common/src/functions/web3/functionCalls/transactCallDirectTron.cjs +1 -0
  639. package/common/src/functions/web3/functionCalls/transactCallDirectTron.mjs +125 -0
  640. package/common/src/functions/web3/functionCalls/transactCallRelayer.cjs +1 -0
  641. package/common/src/functions/web3/functionCalls/transactCallRelayer.mjs +63 -0
  642. package/common/src/functions/web3/functionCalls/waitForErc20Approvals.cjs +1 -0
  643. package/common/src/functions/web3/functionCalls/waitForErc20Approvals.mjs +41 -0
  644. package/common/src/functions/web3/getContractMetadata.cjs +1 -0
  645. package/common/src/functions/web3/getContractMetadata.mjs +23 -0
  646. package/common/src/functions/web3/getPublicAddressBalance.cjs +1 -0
  647. package/common/src/functions/web3/getPublicAddressBalance.mjs +10 -0
  648. package/common/src/functions/web3/getTokenHolder.cjs +1 -0
  649. package/common/src/functions/web3/getTokenHolder.mjs +7 -0
  650. package/common/src/functions/web3/index.cjs +1 -0
  651. package/common/src/functions/web3/index.mjs +15 -0
  652. package/common/src/functions/web3/lifiAPI.cjs +1 -0
  653. package/common/src/functions/web3/lifiAPI.mjs +38 -0
  654. package/common/src/functions/web3/odosAPI.cjs +1 -0
  655. package/common/src/functions/web3/odosAPI.mjs +35 -0
  656. package/common/src/functions/web3/okxAPI.cjs +1 -0
  657. package/common/src/functions/web3/oneInchAPI.cjs +1 -0
  658. package/common/src/functions/web3/oneInchAPI.mjs +44 -0
  659. package/common/src/functions/web3/runContractFunction.cjs +1 -0
  660. package/common/src/functions/web3/runContractFunction.mjs +1 -0
  661. package/common/src/functions/web3/signAndSendSerializedTransaction.cjs +1 -0
  662. package/common/src/functions/web3/signAndSendSerializedTransaction.mjs +1 -0
  663. package/common/src/functions/web3/uniswapAPI.cjs +1 -0
  664. package/common/src/functions/web3/uniswapAPI.mjs +60 -0
  665. package/common/src/index.d.ts +9 -0
  666. package/common/src/mutexes/chainBalanceRwLock.cjs +1 -0
  667. package/common/src/mutexes/chainBalanceRwLock.d.ts +18 -0
  668. package/common/src/mutexes/chainBalanceRwLock.mjs +31 -0
  669. package/common/src/mutexes/index.d.ts +2 -0
  670. package/common/src/mutexes/mutex.cjs +1 -0
  671. package/common/src/mutexes/mutex.mjs +3 -0
  672. package/common/src/providers/EthersProviderAdapter.cjs +1 -0
  673. package/common/src/providers/EthersProviderAdapter.d.ts +35 -0
  674. package/common/src/providers/EthersProviderAdapter.mjs +98 -0
  675. package/common/src/providers/SolanaProviderAdapter.cjs +1 -0
  676. package/common/src/providers/SolanaProviderAdapter.d.ts +51 -0
  677. package/common/src/providers/SolanaProviderAdapter.mjs +144 -0
  678. package/common/src/providers/TronProviderAdapter.cjs +1 -0
  679. package/common/src/providers/TronProviderAdapter.d.ts +38 -0
  680. package/common/src/providers/TronProviderAdapter.mjs +94 -0
  681. package/common/src/providers/WagmiProviderAdapter.cjs +1 -0
  682. package/common/src/providers/WagmiProviderAdapter.d.ts +47 -0
  683. package/common/src/providers/WagmiProviderAdapter.mjs +194 -0
  684. package/common/src/types/API.types.d.ts +21 -0
  685. package/common/src/types/WeeklyAnalytics.types.d.ts +12 -0
  686. package/common/src/types/activities.types.cjs +1 -0
  687. package/common/src/types/activities.types.mjs +10 -0
  688. package/common/src/types/admin.types.cjs +1 -0
  689. package/common/src/types/admin.types.d.ts +43 -0
  690. package/common/src/types/admin.types.mjs +6 -0
  691. package/common/src/types/balances.types.cjs +1 -0
  692. package/common/src/types/balances.types.d.ts +39 -0
  693. package/common/src/types/balances.types.mjs +6 -0
  694. package/common/src/types/bridging-tx.types.d.ts +35 -0
  695. package/common/src/types/cache.types.cjs +1 -0
  696. package/common/src/types/cache.types.d.ts +60 -0
  697. package/common/src/types/cache.types.mjs +6 -0
  698. package/common/src/types/circom-data.types.cjs +1 -0
  699. package/common/src/types/circom-data.types.d.ts +106 -0
  700. package/common/src/types/circom-data.types.mjs +10 -0
  701. package/common/src/types/dashboard-account.d.ts +116 -0
  702. package/common/src/types/dashboard-payout.types.d.ts +30 -0
  703. package/common/src/types/eip5792.types.cjs +1 -0
  704. package/common/src/types/eip5792.types.mjs +6 -0
  705. package/common/src/types/enclaveApi.types.d.ts +78 -0
  706. package/common/src/types/ethereum-network.types.cjs +1 -0
  707. package/common/src/types/ethereum-network.types.d.ts +52 -0
  708. package/common/src/types/ethereum-network.types.mjs +6 -0
  709. package/common/src/types/external-action.types.cjs +1 -0
  710. package/common/src/types/external-action.types.d.ts +16 -0
  711. package/common/src/types/external-action.types.mjs +6 -0
  712. package/common/src/types/fee.types.d.ts +13 -0
  713. package/common/src/types/hinkal.types.cjs +1 -0
  714. package/common/src/types/hinkal.types.d.ts +85 -0
  715. package/common/src/types/hinkal.types.mjs +20 -0
  716. package/common/src/types/index.cjs +1 -0
  717. package/common/src/types/index.d.ts +58 -0
  718. package/common/src/types/index.mjs +17 -0
  719. package/common/src/types/new-rewards.type.d.ts +82 -0
  720. package/common/src/types/payout-notification.types.d.ts +11 -0
  721. package/common/src/types/proxy-progress.types.d.ts +5 -0
  722. package/common/src/types/scheduled-transactions.types.cjs +1 -0
  723. package/common/src/types/scheduled-transactions.types.d.ts +54 -0
  724. package/common/src/types/scheduled-transactions.types.mjs +6 -0
  725. package/common/src/types/snark.types.d.ts +38 -0
  726. package/common/src/types/token.types.cjs +1 -0
  727. package/common/src/types/token.types.d.ts +97 -0
  728. package/common/src/types/token.types.mjs +6 -0
  729. package/common/src/types/transaction.types.d.ts +159 -0
  730. package/common/src/types/transactions.types.cjs +1 -0
  731. package/common/src/types/transactions.types.d.ts +78 -0
  732. package/common/src/types/transactions.types.mjs +8 -0
  733. package/common/src/webworker/logError-uy41lNp1.js +2 -0
  734. package/common/src/webworker/package.json +119 -0
  735. package/common/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs +1 -0
  736. package/common/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.mjs +4 -0
  737. package/common/src/webworker/snarkjsWorkerNode.cjs +1 -0
  738. package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -0
  739. package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +4 -0
  740. package/common/src/webworker/utxoWorkerNode.cjs +1 -0
  741. package/common/src/webworker/viteWorkerURL.constant.cjs +28 -0
  742. package/common/src/webworker/viteWorkerURL.constant.d.ts +10 -0
  743. package/common/src/webworker/viteWorkerURL.constant.fallback.cjs +1 -0
  744. package/common/src/webworker/viteWorkerURL.constant.fallback.d.ts +4 -0
  745. package/common/src/webworker/viteWorkerURL.constant.fallback.mjs +3 -0
  746. package/common/src/webworker/viteWorkerURL.constant.mjs +27 -0
  747. package/common/src/webworker/workerFactory.cjs +1 -0
  748. package/common/src/webworker/workerFactory.d.ts +11 -0
  749. package/common/src/webworker/workerFactory.mjs +48 -0
  750. package/common/src/webworker/workerProxy-MheXtWa4.js +1 -0
  751. package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.d.ts +1 -0
  752. package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -0
  753. package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +4 -0
  754. package/common/src/webworker/zkProofWorker/zkProofWorkerNode.d.ts +1 -0
  755. package/common/src/webworker/zkProofWorkerNode.cjs +1 -0
  756. package/index.cjs +1 -1
  757. package/index.d.ts +1 -8
  758. package/index.mjs +5 -344
  759. package/internal/monitorConnectedAddress.cjs +1 -0
  760. package/internal/monitorConnectedAddress.d.ts +2 -0
  761. package/internal/monitorConnectedAddress.mjs +8 -0
  762. package/internal/swapApi.cjs +1 -0
  763. package/internal/swapApi.d.ts +3 -0
  764. package/internal/swapApi.mjs +32 -0
  765. package/internal/token.utils.cjs +1 -0
  766. package/internal/token.utils.d.ts +4 -0
  767. package/internal/token.utils.mjs +17 -0
  768. package/package.json +17 -10
  769. package/providers/EthersProviderAdapter.cjs +1 -1
  770. package/providers/EthersProviderAdapter.d.ts +3 -36
  771. package/providers/EthersProviderAdapter.mjs +4 -100
  772. package/providers/SolanaProviderAdapter.cjs +1 -1
  773. package/providers/SolanaProviderAdapter.d.ts +2 -52
  774. package/providers/SolanaProviderAdapter.mjs +4 -146
  775. package/providers/TronProviderAdapter.cjs +1 -1
  776. package/providers/TronProviderAdapter.d.ts +2 -39
  777. package/providers/TronProviderAdapter.mjs +4 -96
  778. package/providers/WagmiProviderAdapter.cjs +1 -1
  779. package/providers/WagmiProviderAdapter.d.ts +3 -48
  780. package/providers/WagmiProviderAdapter.mjs +4 -197
  781. package/providers/prepareEthersHinkal.cjs +1 -1
  782. package/providers/prepareEthersHinkal.d.ts +4 -2
  783. package/providers/prepareEthersHinkal.mjs +11 -11
  784. package/providers/prepareSolanaHinkal.cjs +1 -1
  785. package/providers/prepareSolanaHinkal.d.ts +5 -3
  786. package/providers/prepareSolanaHinkal.mjs +12 -12
  787. package/providers/prepareTronHinkal.cjs +1 -1
  788. package/providers/prepareTronHinkal.d.ts +4 -2
  789. package/providers/prepareTronHinkal.mjs +12 -12
  790. package/providers/prepareWagmiHinkal.cjs +1 -1
  791. package/providers/prepareWagmiHinkal.d.ts +5 -2
  792. package/providers/prepareWagmiHinkal.mjs +11 -11
  793. package/services/Hinkal.cjs +1 -0
  794. package/services/Hinkal.d.ts +61 -0
  795. package/services/Hinkal.mjs +176 -0
  796. package/services/index.cjs +1 -0
  797. package/services/index.d.ts +1 -0
  798. package/services/index.mjs +1 -0
  799. package/types/IHinkal.d.ts +59 -0
  800. package/types/IProviderAdapter.d.ts +1 -0
  801. package/types/balances.types.cjs +1 -1
  802. package/types/balances.types.d.ts +14 -16
  803. package/types/balances.types.mjs +2 -6
  804. package/types/external-action.types.cjs +1 -1
  805. package/types/external-action.types.d.ts +1 -17
  806. package/types/external-action.types.mjs +2 -6
  807. package/types/fee.types.d.ts +1 -13
  808. package/types/index.cjs +1 -1
  809. package/types/index.d.ts +5 -58
  810. package/types/index.mjs +3 -28
  811. package/types/privateTypes.d.ts +5 -0
  812. package/types/swap.types.d.ts +25 -0
  813. package/types/token.types.d.ts +2 -85
  814. package/API/API.cjs +0 -1
  815. package/API/API.d.ts +0 -122
  816. package/API/API.mjs +0 -124
  817. package/API/accessCodeCalls.cjs +0 -1
  818. package/API/accessCodeCalls.d.ts +0 -23
  819. package/API/accessCodeCalls.mjs +0 -13
  820. package/API/admin-calls.cjs +0 -1
  821. package/API/admin-calls.mjs +0 -8
  822. package/API/brotherhoodCalls.cjs +0 -1
  823. package/API/brotherhoodCalls.d.ts +0 -82
  824. package/API/brotherhoodCalls.mjs +0 -17
  825. package/API/callLifiAPI.d.ts +0 -33
  826. package/API/callMonitor.cjs +0 -1
  827. package/API/callMonitor.mjs +0 -8
  828. package/API/callNearIntentsAPI.cjs +0 -1
  829. package/API/callNearIntentsAPI.mjs +0 -8
  830. package/API/callOneInchAPI.cjs +0 -1
  831. package/API/callOneInchAPI.d.ts +0 -18
  832. package/API/callOneInchAPI.mjs +0 -13
  833. package/API/checkRisk.cjs +0 -1
  834. package/API/checkRisk.mjs +0 -8
  835. package/API/dashboardAccountMemberCalls.cjs +0 -1
  836. package/API/dashboardAccountMemberCalls.d.ts +0 -34
  837. package/API/dashboardAccountMemberCalls.mjs +0 -16
  838. package/API/dashboardPayoutCalls.cjs +0 -1
  839. package/API/dashboardPayoutCalls.d.ts +0 -14
  840. package/API/dashboardPayoutCalls.mjs +0 -13
  841. package/API/enclaveRecipientInfoCalls.cjs +0 -1
  842. package/API/enclaveRecipientInfoCalls.mjs +0 -7
  843. package/API/enclaveSignatureCalls.cjs +0 -1
  844. package/API/enclaveSignatureCalls.mjs +0 -13
  845. package/API/enclaveUtxoCalls.cjs +0 -1
  846. package/API/enclaveUtxoCalls.d.ts +0 -46
  847. package/API/enclaveUtxoCalls.mjs +0 -23
  848. package/API/generate-trading-points.cjs +0 -1
  849. package/API/generate-trading-points.d.ts +0 -27
  850. package/API/generate-trading-points.mjs +0 -23
  851. package/API/getCoingeckoPrice.cjs +0 -1
  852. package/API/getCoingeckoPrice.mjs +0 -17
  853. package/API/getServerURL.cjs +0 -1
  854. package/API/getServerURL.mjs +0 -21
  855. package/API/getWebsiteURL.cjs +0 -1
  856. package/API/getWebsiteURL.d.ts +0 -5
  857. package/API/getWebsiteURL.mjs +0 -45
  858. package/API/index.cjs +0 -1
  859. package/API/index.d.ts +0 -25
  860. package/API/index.mjs +0 -25
  861. package/API/leaderboardCalls.cjs +0 -1
  862. package/API/leaderboardCalls.d.ts +0 -14
  863. package/API/leaderboardCalls.mjs +0 -8
  864. package/API/proxyAccountsCalls.cjs +0 -1
  865. package/API/proxyAccountsCalls.d.ts +0 -6
  866. package/API/proxyAccountsCalls.mjs +0 -23
  867. package/API/referralsCalls.cjs +0 -1
  868. package/API/referralsCalls.d.ts +0 -22
  869. package/API/referralsCalls.mjs +0 -11
  870. package/API/resolve-sns.cjs +0 -1
  871. package/API/resolve-sns.mjs +0 -12
  872. package/API/rewardsUserCalls.cjs +0 -1
  873. package/API/rewardsUserCalls.d.ts +0 -60
  874. package/API/rewardsUserCalls.mjs +0 -16
  875. package/API/scheduled-transactions-calls.d.ts +0 -20
  876. package/API/send-telegram-callback.cjs +0 -1
  877. package/API/send-telegram-callback.d.ts +0 -7
  878. package/API/send-telegram-callback.mjs +0 -11
  879. package/API/temporaryWalletCalls.cjs +0 -1
  880. package/API/temporaryWalletCalls.d.ts +0 -13
  881. package/API/temporaryWalletCalls.mjs +0 -16
  882. package/API/tenderly.api.cjs +0 -1
  883. package/API/tenderly.api.mjs +0 -37
  884. package/API/token-calls.cjs +0 -1
  885. package/API/token-calls.d.ts +0 -2
  886. package/API/token-calls.mjs +0 -12
  887. package/API/weeklyAnalyticCalls.cjs +0 -1
  888. package/API/weeklyAnalyticCalls.d.ts +0 -22
  889. package/API/weeklyAnalyticCalls.mjs +0 -11
  890. package/constants/activity.constants.cjs +0 -1
  891. package/constants/activity.constants.mjs +0 -14
  892. package/constants/addresses.constants.cjs +0 -1
  893. package/constants/addresses.constants.mjs +0 -71
  894. package/constants/auth.constants.cjs +0 -1
  895. package/constants/auth.constants.mjs +0 -4
  896. package/constants/backend.constants.cjs +0 -1
  897. package/constants/backend.constants.mjs +0 -15
  898. package/constants/balance.constants.cjs +0 -1
  899. package/constants/balance.constants.mjs +0 -4
  900. package/constants/bridging.constants.cjs +0 -1
  901. package/constants/bridging.constants.d.ts +0 -25
  902. package/constants/bridging.constants.mjs +0 -32
  903. package/constants/chains.constants.cjs +0 -1
  904. package/constants/chains.constants.d.ts +0 -70
  905. package/constants/chains.constants.mjs +0 -333
  906. package/constants/coingecko.constants.cjs +0 -1
  907. package/constants/coingecko.constants.d.ts +0 -43
  908. package/constants/coingecko.constants.mjs +0 -51
  909. package/constants/contracts.constants.cjs +0 -1
  910. package/constants/contracts.constants.mjs +0 -59
  911. package/constants/conversion.constants.cjs +0 -1
  912. package/constants/conversion.constants.mjs +0 -4
  913. package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +0 -1
  914. package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +0 -3491
  915. package/constants/deploy-data/deploy-data-arcTestnet.json.cjs +0 -1
  916. package/constants/deploy-data/deploy-data-arcTestnet.json.mjs +0 -3562
  917. package/constants/deploy-data/deploy-data-base.json.cjs +0 -1
  918. package/constants/deploy-data/deploy-data-base.json.mjs +0 -3491
  919. package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +0 -1
  920. package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +0 -3491
  921. package/constants/deploy-data/deploy-data-localhost.json.cjs +0 -1
  922. package/constants/deploy-data/deploy-data-localhost.json.mjs +0 -2285
  923. package/constants/deploy-data/deploy-data-optimism.json.cjs +0 -1
  924. package/constants/deploy-data/deploy-data-optimism.json.mjs +0 -3491
  925. package/constants/deploy-data/deploy-data-optimismTest.json.cjs +0 -1
  926. package/constants/deploy-data/deploy-data-optimismTest.json.mjs +0 -3565
  927. package/constants/deploy-data/deploy-data-polygon.json.cjs +0 -1
  928. package/constants/deploy-data/deploy-data-polygon.json.mjs +0 -3491
  929. package/constants/deploy-data/deploy-data-sepoliaTestnet.json.cjs +0 -1
  930. package/constants/deploy-data/deploy-data-sepoliaTestnet.json.mjs +0 -3561
  931. package/constants/deploy-data/deploy-data-solana.json.cjs +0 -1
  932. package/constants/deploy-data/deploy-data-solana.json.mjs +0 -7
  933. package/constants/deploy-data/deploy-data-tempo.json.cjs +0 -1
  934. package/constants/deploy-data/deploy-data-tempo.json.mjs +0 -3563
  935. package/constants/deploy-data/deploy-data-tronMainnet.json.cjs +0 -1
  936. package/constants/deploy-data/deploy-data-tronMainnet.json.mjs +0 -3530
  937. package/constants/deploy-data/deploy-data-tronNile.json.cjs +0 -1
  938. package/constants/deploy-data/deploy-data-tronNile.json.mjs +0 -3530
  939. package/constants/deploy-data/index.d.ts +0 -14
  940. package/constants/fees.constants.cjs +0 -1
  941. package/constants/fees.constants.mjs +0 -14
  942. package/constants/function-signatures.constants.cjs +0 -1
  943. package/constants/function-signatures.constants.mjs +0 -4
  944. package/constants/images.constants.cjs +0 -1
  945. package/constants/images.constants.mjs +0 -4
  946. package/constants/index.cjs +0 -1
  947. package/constants/index.d.ts +0 -36
  948. package/constants/index.mjs +0 -50
  949. package/constants/lifi.constants.cjs +0 -1
  950. package/constants/lifi.constants.mjs +0 -9
  951. package/constants/link.constant.cjs +0 -1
  952. package/constants/link.constant.mjs +0 -4
  953. package/constants/mediaUrls.constants.cjs +0 -1
  954. package/constants/mediaUrls.constants.d.ts +0 -44
  955. package/constants/mediaUrls.constants.mjs +0 -47
  956. package/constants/mystery-boxes.constants.d.ts +0 -0
  957. package/constants/oauthUrls.constants.cjs +0 -1
  958. package/constants/oauthUrls.constants.mjs +0 -7
  959. package/constants/okx.constants.cjs +0 -1
  960. package/constants/okx.constants.mjs +0 -4
  961. package/constants/pay.constants.cjs +0 -1
  962. package/constants/pay.constants.d.ts +0 -1
  963. package/constants/pay.constants.mjs +0 -4
  964. package/constants/permit2.constants.cjs +0 -1
  965. package/constants/permit2.constants.mjs +0 -10
  966. package/constants/presale.constants.cjs +0 -1
  967. package/constants/presale.constants.mjs +0 -449
  968. package/constants/price-impact.constants.cjs +0 -1
  969. package/constants/price-impact.constants.d.ts +0 -2
  970. package/constants/price-impact.constants.mjs +0 -4
  971. package/constants/protocol.constants.cjs +0 -1
  972. package/constants/protocol.constants.d.ts +0 -64
  973. package/constants/protocol.constants.mjs +0 -24
  974. package/constants/rewards.constants.cjs +0 -1
  975. package/constants/rewards.constants.d.ts +0 -15
  976. package/constants/rewards.constants.mjs +0 -8
  977. package/constants/schedule.constants.cjs +0 -1
  978. package/constants/schedule.constants.mjs +0 -10
  979. package/constants/server.constants.cjs +0 -1
  980. package/constants/server.constants.d.ts +0 -136
  981. package/constants/server.constants.mjs +0 -128
  982. package/constants/tasks.constants.cjs +0 -1
  983. package/constants/tasks.constants.d.ts +0 -9
  984. package/constants/tasks.constants.mjs +0 -267
  985. package/constants/token-data/ERC20Registry.cjs +0 -1
  986. package/constants/token-data/ERC20Registry.d.ts +0 -3
  987. package/constants/token-data/ERC20Registry.mjs +0 -117
  988. package/constants/token-data/arbMainnetRegistry.json.cjs +0 -1
  989. package/constants/token-data/arbMainnetRegistry.json.mjs +0 -1841
  990. package/constants/token-data/arbMainnetRegistryFixed.json.cjs +0 -1
  991. package/constants/token-data/arbMainnetRegistryFixed.json.mjs +0 -1841
  992. package/constants/token-data/arcTestnetRegistry.json.cjs +0 -1
  993. package/constants/token-data/arcTestnetRegistry.json.mjs +0 -435
  994. package/constants/token-data/avalancheRegistry.json.cjs +0 -1
  995. package/constants/token-data/avalancheRegistry.json.mjs +0 -44
  996. package/constants/token-data/baseRegistry.json.cjs +0 -1
  997. package/constants/token-data/baseRegistry.json.mjs +0 -1142
  998. package/constants/token-data/baseRegistryFixed.json.cjs +0 -1
  999. package/constants/token-data/baseRegistryFixed.json.mjs +0 -1142
  1000. package/constants/token-data/bnbMainnetRegistry.json.cjs +0 -1
  1001. package/constants/token-data/bnbMainnetRegistry.json.mjs +0 -44
  1002. package/constants/token-data/cronosRegistry.json.cjs +0 -1
  1003. package/constants/token-data/cronosRegistry.json.mjs +0 -44
  1004. package/constants/token-data/ethMainnetRegistry.json.cjs +0 -1
  1005. package/constants/token-data/ethMainnetRegistry.json.mjs +0 -4274
  1006. package/constants/token-data/ethMainnetRegistryFixed.json.cjs +0 -1
  1007. package/constants/token-data/ethMainnetRegistryFixed.json.mjs +0 -4274
  1008. package/constants/token-data/hyperEvmRegistry.json.cjs +0 -1
  1009. package/constants/token-data/hyperEvmRegistry.json.mjs +0 -36
  1010. package/constants/token-data/index.cjs +0 -1
  1011. package/constants/token-data/index.d.ts +0 -1206
  1012. package/constants/token-data/index.mjs +0 -27
  1013. package/constants/token-data/inkRegistry.json.cjs +0 -1
  1014. package/constants/token-data/inkRegistry.json.mjs +0 -28
  1015. package/constants/token-data/localhostRegistry.json.cjs +0 -1
  1016. package/constants/token-data/localhostRegistry.json.mjs +0 -2758
  1017. package/constants/token-data/monadRegistry.json.cjs +0 -1
  1018. package/constants/token-data/monadRegistry.json.mjs +0 -36
  1019. package/constants/token-data/optimismRegistry.json.cjs +0 -1
  1020. package/constants/token-data/optimismRegistry.json.mjs +0 -709
  1021. package/constants/token-data/optimismRegistryFixed.json.cjs +0 -1
  1022. package/constants/token-data/optimismRegistryFixed.json.mjs +0 -709
  1023. package/constants/token-data/plasmaRegistry.json.cjs +0 -1
  1024. package/constants/token-data/plasmaRegistry.json.mjs +0 -28
  1025. package/constants/token-data/polygonRegistry.json.cjs +0 -1
  1026. package/constants/token-data/polygonRegistry.json.mjs +0 -2317
  1027. package/constants/token-data/polygonRegistryFixed.json.cjs +0 -1
  1028. package/constants/token-data/polygonRegistryFixed.json.mjs +0 -2317
  1029. package/constants/token-data/popularNonRebasingTokens.cjs +0 -1
  1030. package/constants/token-data/popularNonRebasingTokens.d.ts +0 -2
  1031. package/constants/token-data/popularNonRebasingTokens.mjs +0 -11
  1032. package/constants/token-data/sepoliaTestnetRegistry.json.cjs +0 -1
  1033. package/constants/token-data/sepoliaTestnetRegistry.json.mjs +0 -21
  1034. package/constants/token-data/solanaLocalnetRegistry.json.cjs +0 -1
  1035. package/constants/token-data/solanaLocalnetRegistry.json.mjs +0 -17
  1036. package/constants/token-data/solanaMainnetRegistry.json.cjs +0 -1
  1037. package/constants/token-data/solanaMainnetRegistry.json.mjs +0 -625
  1038. package/constants/token-data/tempoRegistry.json.cjs +0 -1
  1039. package/constants/token-data/tempoRegistry.json.mjs +0 -37
  1040. package/constants/token-data/tronMainnetRegistry.json.cjs +0 -1
  1041. package/constants/token-data/tronMainnetRegistry.json.mjs +0 -28
  1042. package/constants/token-data/tronNileRegistry.json.cjs +0 -1
  1043. package/constants/token-data/tronNileRegistry.json.mjs +0 -17
  1044. package/constants/token.limits.constants.cjs +0 -1
  1045. package/constants/token.limits.constants.d.ts +0 -5
  1046. package/constants/token.limits.constants.mjs +0 -31
  1047. package/constants/tokens.constants.cjs +0 -1
  1048. package/constants/tokens.constants.d.ts +0 -4
  1049. package/constants/tokens.constants.mjs +0 -38
  1050. package/constants/tx-confirmation.constants.cjs +0 -1
  1051. package/constants/tx-confirmation.constants.mjs +0 -4
  1052. package/constants/vite.constants.cjs +0 -1
  1053. package/constants/vite.constants.d.ts +0 -15
  1054. package/constants/vite.constants.mjs +0 -8
  1055. package/constants/wallet.constants.cjs +0 -1
  1056. package/constants/wallet.constants.mjs +0 -4
  1057. package/crypto/babyJub.cjs +0 -1
  1058. package/crypto/babyJub.mjs +0 -12
  1059. package/crypto/ecdh-dual-path.cjs +0 -1
  1060. package/crypto/ecdh-dual-path.mjs +0 -39
  1061. package/crypto/ecdh-sealed-keys.cjs +0 -1
  1062. package/crypto/ecdh.cjs +0 -1
  1063. package/crypto/ecdh.mjs +0 -9
  1064. package/crypto/eddsa.cjs +0 -1
  1065. package/crypto/eddsa.mjs +0 -12
  1066. package/crypto/index.cjs +0 -1
  1067. package/crypto/index.mjs +0 -7
  1068. package/crypto/poseidon.cjs +0 -1
  1069. package/crypto/poseidon.mjs +0 -22
  1070. package/crypto/preProcessing.cjs +0 -1
  1071. package/crypto/preProcessing.mjs +0 -17
  1072. package/data-structures/AccountActions/AccountActions.cjs +0 -1
  1073. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.cjs +0 -1
  1074. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.mjs +0 -199
  1075. package/data-structures/ApprovalDBs/index.cjs +0 -1
  1076. package/data-structures/ApprovalDBs/index.mjs +0 -1
  1077. package/data-structures/Hinkal/Hinkal.cjs +0 -1
  1078. package/data-structures/Hinkal/Hinkal.d.ts +0 -118
  1079. package/data-structures/Hinkal/Hinkal.mjs +0 -442
  1080. package/data-structures/Hinkal/IHinkal.d.ts +0 -106
  1081. package/data-structures/Hinkal/handleAutoDepositBack.cjs +0 -1
  1082. package/data-structures/Hinkal/handleAutoDepositBack.mjs +0 -93
  1083. package/data-structures/Hinkal/hinkalClaimUtxo.cjs +0 -1
  1084. package/data-structures/Hinkal/hinkalClaimUtxo.mjs +0 -54
  1085. package/data-structures/Hinkal/hinkalDeposit.cjs +0 -1
  1086. package/data-structures/Hinkal/hinkalDeposit.mjs +0 -121
  1087. package/data-structures/Hinkal/hinkalDepositAndBridge.cjs +0 -1
  1088. package/data-structures/Hinkal/hinkalDepositAndBridge.d.ts +0 -4
  1089. package/data-structures/Hinkal/hinkalDepositAndBridge.mjs +0 -120
  1090. package/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +0 -1
  1091. package/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +0 -6
  1092. package/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +0 -79
  1093. package/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +0 -1
  1094. package/data-structures/Hinkal/hinkalDepositOnChainUtxos.d.ts +0 -8
  1095. package/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +0 -54
  1096. package/data-structures/Hinkal/hinkalMultiSend.cjs +0 -1
  1097. package/data-structures/Hinkal/hinkalMultiSend.d.ts +0 -3
  1098. package/data-structures/Hinkal/hinkalMultiSend.mjs +0 -12
  1099. package/data-structures/Hinkal/hinkalNearDepositAndBridge.cjs +0 -1
  1100. package/data-structures/Hinkal/hinkalNearDepositAndBridge.mjs +0 -43
  1101. package/data-structures/Hinkal/hinkalPalEvmDeposit.cjs +0 -1
  1102. package/data-structures/Hinkal/hinkalPalEvmDeposit.d.ts +0 -9
  1103. package/data-structures/Hinkal/hinkalPalEvmDeposit.mjs +0 -19
  1104. package/data-structures/Hinkal/hinkalPalSolanaDepositPrepare.cjs +0 -1
  1105. package/data-structures/Hinkal/hinkalPalSolanaDepositPrepare.mjs +0 -18
  1106. package/data-structures/Hinkal/hinkalPalTronDepositPrepare.cjs +0 -1
  1107. package/data-structures/Hinkal/hinkalPalTronDepositPrepare.d.ts +0 -9
  1108. package/data-structures/Hinkal/hinkalPalTronDepositPrepare.mjs +0 -17
  1109. package/data-structures/Hinkal/hinkalPrivateWallet.cjs +0 -1
  1110. package/data-structures/Hinkal/hinkalPrivateWallet.mjs +0 -48
  1111. package/data-structures/Hinkal/hinkalProoflessDeposit.cjs +0 -1
  1112. package/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +0 -8
  1113. package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +0 -123
  1114. package/data-structures/Hinkal/hinkalProoflessDeposit.utils.cjs +0 -1
  1115. package/data-structures/Hinkal/hinkalProoflessDeposit.utils.d.ts +0 -7
  1116. package/data-structures/Hinkal/hinkalProoflessDeposit.utils.mjs +0 -51
  1117. package/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.cjs +0 -1
  1118. package/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.d.ts +0 -6
  1119. package/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.mjs +0 -128
  1120. package/data-structures/Hinkal/hinkalProxySwap.cjs +0 -1
  1121. package/data-structures/Hinkal/hinkalProxySwap.mjs +0 -24
  1122. package/data-structures/Hinkal/hinkalProxyToPrivate.cjs +0 -1
  1123. package/data-structures/Hinkal/hinkalProxyToPrivate.mjs +0 -28
  1124. package/data-structures/Hinkal/hinkalSolanaClaimUtxo.cjs +0 -1
  1125. package/data-structures/Hinkal/hinkalSolanaClaimUtxo.mjs +0 -91
  1126. package/data-structures/Hinkal/hinkalSolanaDeposit.cjs +0 -1
  1127. package/data-structures/Hinkal/hinkalSolanaDeposit.mjs +0 -102
  1128. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +0 -1
  1129. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +0 -163
  1130. package/data-structures/Hinkal/hinkalSolanaProxySend.cjs +0 -1
  1131. package/data-structures/Hinkal/hinkalSolanaProxySend.mjs +0 -39
  1132. package/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +0 -1
  1133. package/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +0 -72
  1134. package/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +0 -1
  1135. package/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +0 -83
  1136. package/data-structures/Hinkal/hinkalSolanaSwap.cjs +0 -1
  1137. package/data-structures/Hinkal/hinkalSolanaSwap.mjs +0 -92
  1138. package/data-structures/Hinkal/hinkalSolanaTransfer.cjs +0 -1
  1139. package/data-structures/Hinkal/hinkalSolanaTransfer.mjs +0 -87
  1140. package/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +0 -1
  1141. package/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +0 -68
  1142. package/data-structures/Hinkal/hinkalSwap.cjs +0 -1
  1143. package/data-structures/Hinkal/hinkalSwap.mjs +0 -42
  1144. package/data-structures/Hinkal/hinkalTransfer.cjs +0 -1
  1145. package/data-structures/Hinkal/hinkalTransfer.mjs +0 -49
  1146. package/data-structures/Hinkal/hinkalWithdraw.cjs +0 -1
  1147. package/data-structures/Hinkal/hinkalWithdraw.mjs +0 -54
  1148. package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +0 -1
  1149. package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +0 -121
  1150. package/data-structures/Hinkal/index.cjs +0 -1
  1151. package/data-structures/Hinkal/index.d.ts +0 -24
  1152. package/data-structures/Hinkal/index.mjs +0 -23
  1153. package/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.cjs +0 -1
  1154. package/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.d.ts +0 -22
  1155. package/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.mjs +0 -34
  1156. package/data-structures/Hinkal/resetMerkleTrees.cjs +0 -1
  1157. package/data-structures/Hinkal/resetMerkleTrees.mjs +0 -56
  1158. package/data-structures/IndexedDB/activity-db.cjs +0 -1
  1159. package/data-structures/IndexedDB/activity-db.mjs +0 -110
  1160. package/data-structures/IndexedDB/balances-db.cjs +0 -1
  1161. package/data-structures/IndexedDB/balances-db.mjs +0 -48
  1162. package/data-structures/IndexedDB/contact-db.cjs +0 -1
  1163. package/data-structures/IndexedDB/contact-db.d.ts +0 -12
  1164. package/data-structures/IndexedDB/contact-db.mjs +0 -60
  1165. package/data-structures/IndexedDB/index.cjs +0 -1
  1166. package/data-structures/IndexedDB/index.d.ts +0 -7
  1167. package/data-structures/IndexedDB/index.mjs +0 -7
  1168. package/data-structures/IndexedDB/pay-activity-db.cjs +0 -1
  1169. package/data-structures/IndexedDB/pay-activity-db.mjs +0 -22
  1170. package/data-structures/IndexedDB/prices-db.cjs +0 -1
  1171. package/data-structures/IndexedDB/prices-db.mjs +0 -54
  1172. package/data-structures/IndexedDB/private-balances-db.cjs +0 -1
  1173. package/data-structures/IndexedDB/private-balances-db.d.ts +0 -9
  1174. package/data-structures/IndexedDB/private-balances-db.mjs +0 -23
  1175. package/data-structures/IndexedDB/signatures-db.cjs +0 -1
  1176. package/data-structures/IndexedDB/signatures-db.mjs +0 -41
  1177. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +0 -1
  1178. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +0 -73
  1179. package/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +0 -1
  1180. package/data-structures/TokenDBs/AlchemyPublicTokensDB.d.ts +0 -19
  1181. package/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +0 -172
  1182. package/data-structures/TokenDBs/ArcPublicTokensDB.cjs +0 -1
  1183. package/data-structures/TokenDBs/ArcPublicTokensDB.mjs +0 -94
  1184. package/data-structures/TokenDBs/EventsPublicTokensDB.cjs +0 -1
  1185. package/data-structures/TokenDBs/EventsPublicTokensDB.d.ts +0 -18
  1186. package/data-structures/TokenDBs/EventsPublicTokensDB.mjs +0 -135
  1187. package/data-structures/TokenDBs/IPublicTokensDB.d.ts +0 -6
  1188. package/data-structures/TokenDBs/PrivateTokensDB.cjs +0 -1
  1189. package/data-structures/TokenDBs/PrivateTokensDB.mjs +0 -50
  1190. package/data-structures/TokenDBs/PublicTokensDB.cjs +0 -1
  1191. package/data-structures/TokenDBs/PublicTokensDB.d.ts +0 -9
  1192. package/data-structures/TokenDBs/PublicTokensDB.mjs +0 -31
  1193. package/data-structures/TokenDBs/TempoPublicTokensDB.cjs +0 -1
  1194. package/data-structures/TokenDBs/TempoPublicTokensDB.d.ts +0 -9
  1195. package/data-structures/TokenDBs/TempoPublicTokensDB.mjs +0 -42
  1196. package/data-structures/TokenDBs/TronPublicTokensDB.cjs +0 -1
  1197. package/data-structures/TokenDBs/TronPublicTokensDB.d.ts +0 -9
  1198. package/data-structures/TokenDBs/TronPublicTokensDB.mjs +0 -47
  1199. package/data-structures/TokenDBs/token-visibility-db.cjs +0 -1
  1200. package/data-structures/ValueCache/ValueCache.cjs +0 -1
  1201. package/data-structures/ValueCache/ValueCache.mjs +0 -24
  1202. package/data-structures/WalletManager/WalletManager.cjs +0 -1
  1203. package/data-structures/WalletManager/WalletManager.d.ts +0 -51
  1204. package/data-structures/WalletManager/WalletManager.mjs +0 -99
  1205. package/data-structures/WalletManager/index.cjs +0 -1
  1206. package/data-structures/WalletManager/index.mjs +0 -1
  1207. package/data-structures/cacheDevices/BaseCacheDevice.cjs +0 -1
  1208. package/data-structures/cacheDevices/BaseCacheDevice.d.ts +0 -11
  1209. package/data-structures/cacheDevices/BaseCacheDevice.mjs +0 -21
  1210. package/data-structures/cacheDevices/FileCacheDevice.cjs +0 -1
  1211. package/data-structures/cacheDevices/FileCacheDevice.d.ts +0 -10
  1212. package/data-structures/cacheDevices/FileCacheDevice.mjs +0 -40
  1213. package/data-structures/crypto-keys/decodeUTXO.cjs +0 -1
  1214. package/data-structures/crypto-keys/decodeUTXO.d.ts +0 -28
  1215. package/data-structures/crypto-keys/decodeUTXO.mjs +0 -82
  1216. package/data-structures/crypto-keys/encryptDecryptUtxo.cjs +0 -1
  1217. package/data-structures/crypto-keys/encryptDecryptUtxo.d.ts +0 -18
  1218. package/data-structures/crypto-keys/encryptDecryptUtxo.mjs +0 -40
  1219. package/data-structures/crypto-keys/index.cjs +0 -1
  1220. package/data-structures/crypto-keys/index.mjs +0 -4
  1221. package/data-structures/crypto-keys/keys.cjs +0 -1
  1222. package/data-structures/crypto-keys/keys.d.ts +0 -131
  1223. package/data-structures/crypto-keys/keys.mjs +0 -167
  1224. package/data-structures/custom-token-registry/CustomTokenRegistry.cjs +0 -1
  1225. package/data-structures/custom-token-registry/CustomTokenRegistry.mjs +0 -25
  1226. package/data-structures/event-service/evm/AbstractNullifierSnapshotService.cjs +0 -1
  1227. package/data-structures/event-service/evm/BlockchainEventEmitter.cjs +0 -1
  1228. package/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +0 -37
  1229. package/data-structures/event-service/evm/BlockchainEventEmitter.mjs +0 -104
  1230. package/data-structures/event-service/evm/ClientBlockchainEventEmitter.cjs +0 -1
  1231. package/data-structures/event-service/evm/ClientBlockchainEventEmitter.d.ts +0 -11
  1232. package/data-structures/event-service/evm/ClientBlockchainEventEmitter.mjs +0 -21
  1233. package/data-structures/event-service/evm/PollingBlockchainEventEmitter.cjs +0 -1
  1234. package/data-structures/event-service/evm/PollingBlockchainEventEmitter.mjs +0 -16
  1235. package/data-structures/event-service/helpers/ClientEventHelper.cjs +0 -1
  1236. package/data-structures/event-service/helpers/ClientEventHelper.mjs +0 -28
  1237. package/data-structures/event-service/helpers/PollingEventHelper.cjs +0 -1
  1238. package/data-structures/event-service/helpers/PollingEventHelper.mjs +0 -18
  1239. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs +0 -1
  1240. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +0 -98
  1241. package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.cjs +0 -1
  1242. package/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.d.ts +0 -11
  1243. package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.cjs +0 -1
  1244. package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.mjs +0 -16
  1245. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.cjs +0 -1
  1246. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +0 -42
  1247. package/data-structures/http/BasicHttpClient.cjs +0 -1
  1248. package/data-structures/index.cjs +0 -1
  1249. package/data-structures/index.d.ts +0 -21
  1250. package/data-structures/index.mjs +0 -90
  1251. package/data-structures/presale/PresaleContractWrapper.cjs +0 -1
  1252. package/data-structures/presale/PresaleContractWrapper.mjs +0 -57
  1253. package/data-structures/presale/index.cjs +0 -1
  1254. package/data-structures/presale/index.mjs +0 -1
  1255. package/data-structures/provider-adapter/IProviderAdapter.d.ts +0 -40
  1256. package/data-structures/token-price-fetcher/TokenChecker.cjs +0 -1
  1257. package/data-structures/token-price-fetcher/TokenChecker.mjs +0 -16
  1258. package/data-structures/token-price-fetcher/index.cjs +0 -1
  1259. package/data-structures/token-price-fetcher/index.mjs +0 -1
  1260. package/data-structures/transactions-manager/history/history.types.cjs +0 -1
  1261. package/data-structures/transactions-manager/history/history.types.mjs +0 -6
  1262. package/data-structures/utxo/Utxo.cjs +0 -1
  1263. package/data-structures/utxo/Utxo.d.ts +0 -69
  1264. package/data-structures/utxo/Utxo.mjs +0 -113
  1265. package/error-handling/customErrors/ErrorWithIndex.cjs +0 -1
  1266. package/error-handling/customErrors/ErrorWithIndex.mjs +0 -9
  1267. package/error-handling/customErrors/HttpError.cjs +0 -1
  1268. package/error-handling/customErrors/HttpError.mjs +0 -8
  1269. package/error-handling/customErrors/SimulationFailureError.cjs +0 -1
  1270. package/error-handling/customErrors/SimulationFailureError.mjs +0 -9
  1271. package/error-handling/customErrors/customErrors.helpers.cjs +0 -1
  1272. package/error-handling/customErrors/customErrors.helpers.mjs +0 -16
  1273. package/error-handling/customErrors/index.cjs +0 -1
  1274. package/error-handling/customErrors/index.mjs +0 -7
  1275. package/error-handling/error-codes.constants.cjs +0 -2
  1276. package/error-handling/error-codes.constants.d.ts +0 -247
  1277. package/error-handling/error-codes.constants.mjs +0 -242
  1278. package/error-handling/get-error.message.cjs +0 -1
  1279. package/error-handling/get-error.message.mjs +0 -75
  1280. package/error-handling/index.cjs +0 -1
  1281. package/error-handling/index.d.ts +0 -6
  1282. package/error-handling/index.mjs +0 -13
  1283. package/externalABIs/BUSD.cjs +0 -1
  1284. package/externalABIs/BUSD.mjs +0 -811
  1285. package/externalABIs/DAI.cjs +0 -1
  1286. package/externalABIs/DAI.mjs +0 -505
  1287. package/externalABIs/NodeInterfaceABI.json.cjs +0 -1
  1288. package/externalABIs/NodeInterfaceABI.json.mjs +0 -264
  1289. package/externalABIs/OptimismGasPriceOracle.json.cjs +0 -1
  1290. package/externalABIs/OptimismGasPriceOracle.json.mjs +0 -174
  1291. package/externalABIs/SanctionsList.cjs +0 -1
  1292. package/externalABIs/SanctionsList.mjs +0 -162
  1293. package/externalABIs/USDC.cjs +0 -1
  1294. package/externalABIs/USDC.mjs +0 -1082
  1295. package/externalABIs/USDR.cjs +0 -1
  1296. package/externalABIs/USDR.mjs +0 -695
  1297. package/externalABIs/USDR3CRV.cjs +0 -1
  1298. package/externalABIs/USDR3CRV.mjs +0 -1002
  1299. package/externalABIs/USDT.cjs +0 -1
  1300. package/externalABIs/USDT.mjs +0 -583
  1301. package/externalABIs/WETH.cjs +0 -1
  1302. package/externalABIs/WETH.mjs +0 -245
  1303. package/externalABIs/amToken.cjs +0 -1
  1304. package/externalABIs/amToken.mjs +0 -744
  1305. package/externalABIs/index.cjs +0 -1
  1306. package/externalABIs/index.mjs +0 -21
  1307. package/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.cjs +0 -1
  1308. package/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.mjs +0 -21
  1309. package/functions/auto-deposit-back-helpers/select-gas-token.cjs +0 -1
  1310. package/functions/auto-deposit-back-helpers/select-gas-token.mjs +0 -34
  1311. package/functions/auto-deposit-back-helpers/update-hinkal.cjs +0 -1
  1312. package/functions/auto-deposit-back-helpers/update-hinkal.d.ts +0 -3
  1313. package/functions/auto-deposit-back-helpers/update-hinkal.mjs +0 -22
  1314. package/functions/index.cjs +0 -1
  1315. package/functions/index.d.ts +0 -13
  1316. package/functions/index.mjs +0 -130
  1317. package/functions/pre-transaction/addressTableLookup.cjs +0 -1
  1318. package/functions/pre-transaction/addressTableLookup.mjs +0 -36
  1319. package/functions/pre-transaction/buildCommitmentValidationData.cjs +0 -1
  1320. package/functions/pre-transaction/buildCommitmentValidationData.mjs +0 -65
  1321. package/functions/pre-transaction/calculateSolanaNullifierCount.cjs +0 -1
  1322. package/functions/pre-transaction/calculateSolanaNullifierCount.mjs +0 -23
  1323. package/functions/pre-transaction/convert-okx-instructions.cjs +0 -1
  1324. package/functions/pre-transaction/ensureAmountChanges.cjs +0 -1
  1325. package/functions/pre-transaction/getExternalSwapAddress.cjs +0 -1
  1326. package/functions/pre-transaction/getExternalSwapAddress.mjs +0 -27
  1327. package/functions/pre-transaction/getFeeStructure.cjs +0 -1
  1328. package/functions/pre-transaction/getFeeStructure.mjs +0 -20
  1329. package/functions/pre-transaction/getFlatFees.cjs +0 -1
  1330. package/functions/pre-transaction/getFlatFees.d.ts +0 -11
  1331. package/functions/pre-transaction/getFlatFees.mjs +0 -52
  1332. package/functions/pre-transaction/getSolanaCalldataHash.cjs +0 -1
  1333. package/functions/pre-transaction/getVolatileTransferAmount.cjs +0 -1
  1334. package/functions/pre-transaction/getVolatileTransferAmount.mjs +0 -32
  1335. package/functions/pre-transaction/index.cjs +0 -1
  1336. package/functions/pre-transaction/index.d.ts +0 -20
  1337. package/functions/pre-transaction/index.mjs +0 -20
  1338. package/functions/pre-transaction/interaction-to-action.cjs +0 -1
  1339. package/functions/pre-transaction/interaction-to-action.mjs +0 -11
  1340. package/functions/pre-transaction/merge-with-fee-structure-emporium.cjs +0 -1
  1341. package/functions/pre-transaction/merge-with-fee-structure-emporium.mjs +0 -16
  1342. package/functions/pre-transaction/merge-with-fee-structure.cjs +0 -1
  1343. package/functions/pre-transaction/merge-with-fee-structure.d.ts +0 -2
  1344. package/functions/pre-transaction/merge-with-fee-structure.mjs +0 -20
  1345. package/functions/pre-transaction/outputUtxoProcessing.cjs +0 -1
  1346. package/functions/pre-transaction/outputUtxoProcessing.mjs +0 -33
  1347. package/functions/pre-transaction/process-gas-estimates.cjs +0 -1
  1348. package/functions/pre-transaction/process-gas-estimates.mjs +0 -25
  1349. package/functions/pre-transaction/recipientUtxoProcessing.cjs +0 -1
  1350. package/functions/pre-transaction/recipientUtxoProcessing.mjs +0 -32
  1351. package/functions/pre-transaction/sendInitNullifiersTransaction.cjs +0 -1
  1352. package/functions/pre-transaction/sendInitNullifiersTransaction.mjs +0 -44
  1353. package/functions/pre-transaction/sendV0Transaction.cjs +0 -2
  1354. package/functions/pre-transaction/sendV0Transaction.mjs +0 -133
  1355. package/functions/pre-transaction/solana-public-signals.cjs +0 -1
  1356. package/functions/pre-transaction/solana-public-signals.d.ts +0 -21
  1357. package/functions/pre-transaction/solana-public-signals.mjs +0 -59
  1358. package/functions/pre-transaction/solana.cjs +0 -1
  1359. package/functions/pre-transaction/solana.mjs +0 -72
  1360. package/functions/pre-transaction/solanaTransfer.utils.cjs +0 -1
  1361. package/functions/pre-transaction/store-instructions.cjs +0 -1
  1362. package/functions/pre-transaction/store-instructions.mjs +0 -13
  1363. package/functions/pre-transaction/store-proof.cjs +0 -1
  1364. package/functions/pre-transaction/store-proof.mjs +0 -30
  1365. package/functions/private-wallet/emporium.helpers.cjs +0 -1
  1366. package/functions/private-wallet/emporium.helpers.d.ts +0 -47
  1367. package/functions/private-wallet/emporium.helpers.mjs +0 -162
  1368. package/functions/private-wallet/emporium.swap.helpers.cjs +0 -1
  1369. package/functions/private-wallet/emporium.swap.helpers.mjs +0 -108
  1370. package/functions/private-wallet/opProducer.cjs +0 -1
  1371. package/functions/private-wallet/opProducer.mjs +0 -28
  1372. package/functions/snarkjs/common.snarkjs.cjs +0 -1
  1373. package/functions/snarkjs/common.snarkjs.d.ts +0 -23
  1374. package/functions/snarkjs/common.snarkjs.mjs +0 -133
  1375. package/functions/snarkjs/constant.cjs +0 -1
  1376. package/functions/snarkjs/constant.d.ts +0 -149
  1377. package/functions/snarkjs/constant.mjs +0 -152
  1378. package/functions/snarkjs/constructGeneralZkProof.cjs +0 -1
  1379. package/functions/snarkjs/constructGeneralZkProof.d.ts +0 -13
  1380. package/functions/snarkjs/constructGeneralZkProof.mjs +0 -82
  1381. package/functions/snarkjs/constructSolanaZkProof.cjs +0 -1
  1382. package/functions/snarkjs/constructSolanaZkProof.mjs +0 -73
  1383. package/functions/snarkjs/fetchMerkleTreeSiblings.d.ts +0 -11
  1384. package/functions/snarkjs/fetchOnChainRootHashes.cjs +0 -1
  1385. package/functions/snarkjs/fetchOnChainRootHashes.d.ts +0 -3
  1386. package/functions/snarkjs/fetchOnChainRootHashes.mjs +0 -27
  1387. package/functions/snarkjs/generateCircomData.cjs +0 -1
  1388. package/functions/snarkjs/generateCircomData.d.ts +0 -5
  1389. package/functions/snarkjs/generateCircomData.mjs +0 -33
  1390. package/functions/snarkjs/generateZkProofEnclave.cjs +0 -1
  1391. package/functions/snarkjs/generateZkProofEnclave.mjs +0 -27
  1392. package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.cjs +0 -1
  1393. package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.d.ts +0 -16
  1394. package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +0 -77
  1395. package/functions/snarkjs/getZKFiles.cjs +0 -1
  1396. package/functions/snarkjs/getZKFiles.mjs +0 -7
  1397. package/functions/snarkjs/index.cjs +0 -1
  1398. package/functions/snarkjs/index.d.ts +0 -8
  1399. package/functions/snarkjs/index.mjs +0 -8
  1400. package/functions/snarkjs/signedMessageHash.cjs +0 -1
  1401. package/functions/snarkjs/signedMessageHash.d.ts +0 -31
  1402. package/functions/snarkjs/signedMessageHash.mjs +0 -49
  1403. package/functions/snarkjs/verifyCommitmentValidationData.cjs +0 -1
  1404. package/functions/snarkjs/verifyCommitmentValidationData.mjs +0 -43
  1405. package/functions/utils/addresses.cjs +0 -1
  1406. package/functions/utils/addresses.d.ts +0 -11
  1407. package/functions/utils/addresses.mjs +0 -45
  1408. package/functions/utils/amounts.utils.cjs +0 -1
  1409. package/functions/utils/amounts.utils.mjs +0 -67
  1410. package/functions/utils/arraysMatch.cjs +0 -1
  1411. package/functions/utils/arraysMatch.mjs +0 -4
  1412. package/functions/utils/bit.operations.cjs +0 -1
  1413. package/functions/utils/bit.operations.d.ts +0 -3
  1414. package/functions/utils/bit.operations.mjs +0 -4
  1415. package/functions/utils/buildClaimableDepositPlan.cjs +0 -1
  1416. package/functions/utils/buildClaimableDepositPlan.d.ts +0 -16
  1417. package/functions/utils/buildClaimableDepositPlan.mjs +0 -39
  1418. package/functions/utils/bytes32.utils.cjs +0 -1
  1419. package/functions/utils/bytes32.utils.mjs +0 -9
  1420. package/functions/utils/cacheDevice.utils.mjs +0 -17
  1421. package/functions/utils/cacheFunctions.cjs +0 -1
  1422. package/functions/utils/cacheFunctions.mjs +0 -55
  1423. package/functions/utils/caseInsensitive.utils.cjs +0 -1
  1424. package/functions/utils/caseInsensitive.utils.mjs +0 -4
  1425. package/functions/utils/convertEmporiumOpToCallInfo.cjs +0 -1
  1426. package/functions/utils/convertEmporiumOpToCallInfo.mjs +0 -19
  1427. package/functions/utils/convertIntegrationProviderToExternalActionId.cjs +0 -1
  1428. package/functions/utils/convertIntegrationProviderToExternalActionId.mjs +0 -14
  1429. package/functions/utils/create-provider.cjs +0 -1
  1430. package/functions/utils/create-provider.d.ts +0 -5
  1431. package/functions/utils/create-provider.mjs +0 -11
  1432. package/functions/utils/customEnclaveFunctionsRegister.cjs +0 -1
  1433. package/functions/utils/customEnclaveFunctionsRegister.mjs +0 -8
  1434. package/functions/utils/deposit-claimable.utils.cjs +0 -1
  1435. package/functions/utils/deposit-claimable.utils.mjs +0 -106
  1436. package/functions/utils/dispatchBalanceRefreshes.cjs +0 -1
  1437. package/functions/utils/dispatchBalanceRefreshes.mjs +0 -44
  1438. package/functions/utils/enclave-recipient-info-storage.cjs +0 -1
  1439. package/functions/utils/enclave-recipient-info-storage.mjs +0 -17
  1440. package/functions/utils/enclave-utxo-storage.cjs +0 -1
  1441. package/functions/utils/enclave-utxo-storage.d.ts +0 -7
  1442. package/functions/utils/enclave-utxo-storage.mjs +0 -30
  1443. package/functions/utils/enclaveHandshakeService.cjs +0 -1
  1444. package/functions/utils/enclaveHandshakeService.mjs +0 -22
  1445. package/functions/utils/encodeTokenWithId.cjs +0 -1
  1446. package/functions/utils/encodeTokenWithId.d.ts +0 -2
  1447. package/functions/utils/encodeTokenWithId.mjs +0 -8
  1448. package/functions/utils/encryptInputForEnclave.cjs +0 -1
  1449. package/functions/utils/erc20tokenFunctions.cjs +0 -1
  1450. package/functions/utils/erc20tokenFunctions.d.ts +0 -16
  1451. package/functions/utils/erc20tokenFunctions.mjs +0 -53
  1452. package/functions/utils/evmNetworkFunctions.cjs +0 -1
  1453. package/functions/utils/evmNetworkFunctions.d.ts +0 -3
  1454. package/functions/utils/evmNetworkFunctions.mjs +0 -6
  1455. package/functions/utils/external-action.utils.cjs +0 -1
  1456. package/functions/utils/external-action.utils.mjs +0 -7
  1457. package/functions/utils/fees.utils.cjs +0 -1
  1458. package/functions/utils/fees.utils.d.ts +0 -6
  1459. package/functions/utils/fees.utils.mjs +0 -43
  1460. package/functions/utils/formatter.cjs +0 -1
  1461. package/functions/utils/formatter.d.ts +0 -1
  1462. package/functions/utils/formatter.mjs +0 -15
  1463. package/functions/utils/getBlockExplorerUrl.cjs +0 -1
  1464. package/functions/utils/getBlockExplorerUrl.mjs +0 -6
  1465. package/functions/utils/getDataFromTransaction.cjs +0 -1
  1466. package/functions/utils/getDataFromTransaction.d.ts +0 -33
  1467. package/functions/utils/getDataFromTransaction.mjs +0 -42
  1468. package/functions/utils/getRecipientInfoFromUserKeys.cjs +0 -1
  1469. package/functions/utils/getRecipientInfoFromUserKeys.mjs +0 -20
  1470. package/functions/utils/getSignerFromContract.cjs +0 -1
  1471. package/functions/utils/getUtxosFromReceipt.utils.cjs +0 -1
  1472. package/functions/utils/getUtxosFromReceipt.utils.mjs +0 -68
  1473. package/functions/utils/getUtxosFromReceiptSolana.cjs +0 -1
  1474. package/functions/utils/getUtxosFromReceiptSolana.mjs +0 -44
  1475. package/functions/utils/getWalletGroupKey.utils.cjs +0 -1
  1476. package/functions/utils/getWalletGroupKey.utils.mjs +0 -7
  1477. package/functions/utils/inLogicMetadata.cjs +0 -1
  1478. package/functions/utils/inLogicMetadata.mjs +0 -15
  1479. package/functions/utils/index.cjs +0 -1
  1480. package/functions/utils/index.d.ts +0 -73
  1481. package/functions/utils/index.mjs +0 -93
  1482. package/functions/utils/ipfs.cjs +0 -1
  1483. package/functions/utils/ipfs.mjs +0 -22
  1484. package/functions/utils/is-valid-url.cjs +0 -1
  1485. package/functions/utils/is-valid-url.mjs +0 -4
  1486. package/functions/utils/lifi.utils.cjs +0 -1
  1487. package/functions/utils/lifi.utils.d.ts +0 -4
  1488. package/functions/utils/lifi.utils.mjs +0 -30
  1489. package/functions/utils/mnemonics.cjs +0 -1
  1490. package/functions/utils/mnemonics.mjs +0 -8
  1491. package/functions/utils/mutexes.utils.cjs +0 -1
  1492. package/functions/utils/mutexes.utils.d.ts +0 -2
  1493. package/functions/utils/mutexes.utils.mjs +0 -5
  1494. package/functions/utils/nearIntents.utils.cjs +0 -1
  1495. package/functions/utils/nearIntents.utils.d.ts +0 -11
  1496. package/functions/utils/nearIntents.utils.mjs +0 -36
  1497. package/functions/utils/networks.utils.cjs +0 -1
  1498. package/functions/utils/networks.utils.d.ts +0 -1
  1499. package/functions/utils/networks.utils.mjs +0 -9
  1500. package/functions/utils/nftTokenFunctions.cjs +0 -1
  1501. package/functions/utils/nftTokenFunctions.mjs +0 -19
  1502. package/functions/utils/nickname.utils.cjs +0 -1
  1503. package/functions/utils/nickname.utils.mjs +0 -4
  1504. package/functions/utils/pay-routing.utils.cjs +0 -1
  1505. package/functions/utils/pay-routing.utils.mjs +0 -17
  1506. package/functions/utils/prepareHinkal.cjs +0 -1
  1507. package/functions/utils/prepareHinkal.d.ts +0 -11
  1508. package/functions/utils/prepareHinkal.mjs +0 -42
  1509. package/functions/utils/process.utils.cjs +0 -1
  1510. package/functions/utils/process.utils.d.ts +0 -13
  1511. package/functions/utils/process.utils.mjs +0 -23
  1512. package/functions/utils/proxyAvatar.utils.cjs +0 -1
  1513. package/functions/utils/proxyAvatar.utils.mjs +0 -4
  1514. package/functions/utils/publicBalance.utils.cjs +0 -1
  1515. package/functions/utils/publicBalance.utils.mjs +0 -102
  1516. package/functions/utils/requireEnv.cjs +0 -1
  1517. package/functions/utils/requireEnv.mjs +0 -7
  1518. package/functions/utils/resolve-sync.utils.cjs +0 -1
  1519. package/functions/utils/resolve-sync.utils.mjs +0 -28
  1520. package/functions/utils/rpc-int-encode.cjs +0 -1
  1521. package/functions/utils/rpc-int-encode.mjs +0 -5
  1522. package/functions/utils/serialize-utxos.utils.cjs +0 -1
  1523. package/functions/utils/serialize-utxos.utils.mjs +0 -16
  1524. package/functions/utils/serialize.utils.cjs +0 -1
  1525. package/functions/utils/serialize.utils.mjs +0 -7
  1526. package/functions/utils/solana-memo.cjs +0 -1
  1527. package/functions/utils/solana-memo.mjs +0 -15
  1528. package/functions/utils/solanaMint.utils.cjs +0 -1
  1529. package/functions/utils/solanaSendPreflight.utils.cjs +0 -1
  1530. package/functions/utils/solanaSendPreflight.utils.mjs +0 -21
  1531. package/functions/utils/string.utils.cjs +0 -1
  1532. package/functions/utils/string.utils.mjs +0 -41
  1533. package/functions/utils/time.utils.cjs +0 -1
  1534. package/functions/utils/time.utils.mjs +0 -58
  1535. package/functions/utils/token-check.utils.cjs +0 -1
  1536. package/functions/utils/token-check.utils.d.ts +0 -5
  1537. package/functions/utils/token-check.utils.mjs +0 -18
  1538. package/functions/utils/transfer-claimable.utils.cjs +0 -1
  1539. package/functions/utils/transfer-claimable.utils.mjs +0 -93
  1540. package/functions/utils/trimFieldValues.cjs +0 -1
  1541. package/functions/utils/trimFieldValues.mjs +0 -23
  1542. package/functions/utils/tron.utils.cjs +0 -1
  1543. package/functions/utils/tron.utils.d.ts +0 -44
  1544. package/functions/utils/tron.utils.mjs +0 -197
  1545. package/functions/utils/tx-confirmation.utils.cjs +0 -1
  1546. package/functions/utils/tx-confirmation.utils.mjs +0 -34
  1547. package/functions/utils/userAgent.cjs +0 -1
  1548. package/functions/utils/userAgent.mjs +0 -11
  1549. package/functions/utils/validateUsername.cjs +0 -1
  1550. package/functions/utils/validateUsername.mjs +0 -22
  1551. package/functions/utils/walletBalances.utils.cjs +0 -1
  1552. package/functions/utils/walletBalances.utils.mjs +0 -11
  1553. package/functions/web3/EIP-712.cjs +0 -1
  1554. package/functions/web3/EIP-712.mjs +0 -110
  1555. package/functions/web3/connectors.utils.cjs +0 -1
  1556. package/functions/web3/connectors.utils.d.ts +0 -8
  1557. package/functions/web3/connectors.utils.mjs +0 -26
  1558. package/functions/web3/crypto.cjs +0 -1
  1559. package/functions/web3/crypto.mjs +0 -10
  1560. package/functions/web3/etherFunctions.cjs +0 -1
  1561. package/functions/web3/etherFunctions.d.ts +0 -20
  1562. package/functions/web3/etherFunctions.mjs +0 -36
  1563. package/functions/web3/events/balanceChangedHandler.cjs +0 -1
  1564. package/functions/web3/events/balanceChangedHandler.d.ts +0 -2
  1565. package/functions/web3/events/balanceChangedHandler.mjs +0 -9
  1566. package/functions/web3/events/getInputUtxoAndBalance.cjs +0 -1
  1567. package/functions/web3/events/getInputUtxoAndBalance.d.ts +0 -38
  1568. package/functions/web3/events/getInputUtxoAndBalance.mjs +0 -112
  1569. package/functions/web3/events/getInputUtxosEnclave.cjs +0 -1
  1570. package/functions/web3/events/getInputUtxosEnclave.mjs +0 -59
  1571. package/functions/web3/events/getShieldedBalance.cjs +0 -1
  1572. package/functions/web3/events/getShieldedBalance.d.ts +0 -18
  1573. package/functions/web3/events/getShieldedBalance.mjs +0 -96
  1574. package/functions/web3/events/getTransactionLogEvents.cjs +0 -1
  1575. package/functions/web3/events/getTransactionLogEvents.mjs +0 -36
  1576. package/functions/web3/events/index.cjs +0 -1
  1577. package/functions/web3/events/index.d.ts +0 -4
  1578. package/functions/web3/events/index.mjs +0 -4
  1579. package/functions/web3/functionCalls/approveToken.cjs +0 -1
  1580. package/functions/web3/functionCalls/approveToken.d.ts +0 -4
  1581. package/functions/web3/functionCalls/approveToken.mjs +0 -113
  1582. package/functions/web3/functionCalls/constructBatchCall.cjs +0 -1
  1583. package/functions/web3/functionCalls/constructBatchCall.d.ts +0 -7
  1584. package/functions/web3/functionCalls/constructBatchCall.mjs +0 -59
  1585. package/functions/web3/functionCalls/recoverTransactionFromError.cjs +0 -1
  1586. package/functions/web3/functionCalls/recoverTransactionFromError.mjs +0 -18
  1587. package/functions/web3/functionCalls/transactCallDirect.cjs +0 -1
  1588. package/functions/web3/functionCalls/transactCallDirect.mjs +0 -60
  1589. package/functions/web3/functionCalls/transactCallDirectTron.cjs +0 -1
  1590. package/functions/web3/functionCalls/transactCallDirectTron.mjs +0 -115
  1591. package/functions/web3/functionCalls/transactCallRelayer.cjs +0 -1
  1592. package/functions/web3/functionCalls/transactCallRelayer.mjs +0 -63
  1593. package/functions/web3/functionCalls/waitForErc20Approvals.cjs +0 -1
  1594. package/functions/web3/functionCalls/waitForErc20Approvals.mjs +0 -41
  1595. package/functions/web3/getContractMetadata.cjs +0 -1
  1596. package/functions/web3/getContractMetadata.mjs +0 -23
  1597. package/functions/web3/getPublicAddressBalance.cjs +0 -1
  1598. package/functions/web3/getPublicAddressBalance.mjs +0 -10
  1599. package/functions/web3/getTokenHolder.cjs +0 -1
  1600. package/functions/web3/getTokenHolder.mjs +0 -35
  1601. package/functions/web3/index.cjs +0 -1
  1602. package/functions/web3/index.mjs +0 -18
  1603. package/functions/web3/lifiAPI.cjs +0 -1
  1604. package/functions/web3/lifiAPI.mjs +0 -38
  1605. package/functions/web3/odosAPI.cjs +0 -1
  1606. package/functions/web3/odosAPI.mjs +0 -35
  1607. package/functions/web3/okxAPI.cjs +0 -1
  1608. package/functions/web3/oneInchAPI.cjs +0 -1
  1609. package/functions/web3/oneInchAPI.mjs +0 -34
  1610. package/functions/web3/runContractFunction.cjs +0 -1
  1611. package/functions/web3/runContractFunction.mjs +0 -55
  1612. package/functions/web3/signAndSendSerializedTransaction.cjs +0 -1
  1613. package/functions/web3/signAndSendSerializedTransaction.mjs +0 -14
  1614. package/functions/web3/uniswapAPI.cjs +0 -1
  1615. package/functions/web3/uniswapAPI.mjs +0 -60
  1616. package/mutexes/index.cjs +0 -1
  1617. package/mutexes/index.d.ts +0 -1
  1618. package/mutexes/index.mjs +0 -1
  1619. package/mutexes/mutex.cjs +0 -1
  1620. package/mutexes/mutex.mjs +0 -5
  1621. package/providers/CustomSolanaConnection.cjs +0 -1
  1622. package/providers/CustomSolanaConnection.d.ts +0 -4
  1623. package/providers/CustomSolanaConnection.mjs +0 -31
  1624. package/types/API.types.d.ts +0 -25
  1625. package/types/RewardUserEnums.cjs +0 -1
  1626. package/types/RewardUserEnums.mjs +0 -8
  1627. package/types/WeeklyAnalytics.types.d.ts +0 -37
  1628. package/types/activities.types.cjs +0 -1
  1629. package/types/activities.types.mjs +0 -26
  1630. package/types/admin.types.cjs +0 -1
  1631. package/types/admin.types.d.ts +0 -42
  1632. package/types/admin.types.mjs +0 -6
  1633. package/types/approvals.types.cjs +0 -1
  1634. package/types/approvals.types.mjs +0 -6
  1635. package/types/bridging-tx.types.d.ts +0 -17
  1636. package/types/brotherhood-user.types.d.ts +0 -11
  1637. package/types/cache.types.cjs +0 -1
  1638. package/types/cache.types.d.ts +0 -60
  1639. package/types/cache.types.mjs +0 -6
  1640. package/types/circom-data.types.cjs +0 -1
  1641. package/types/circom-data.types.d.ts +0 -107
  1642. package/types/circom-data.types.mjs +0 -19
  1643. package/types/confirmation-request.types.cjs +0 -1
  1644. package/types/confirmation-request.types.mjs +0 -6
  1645. package/types/crypto.types.d.ts +0 -8
  1646. package/types/dashboard-account.cjs +0 -1
  1647. package/types/dashboard-account.d.ts +0 -101
  1648. package/types/dashboard-account.mjs +0 -8
  1649. package/types/dashboard-payout.types.cjs +0 -1
  1650. package/types/dashboard-payout.types.d.ts +0 -29
  1651. package/types/dashboard-payout.types.mjs +0 -8
  1652. package/types/eip5792.types.cjs +0 -1
  1653. package/types/eip5792.types.mjs +0 -8
  1654. package/types/ethereum-network.types.cjs +0 -1
  1655. package/types/ethereum-network.types.d.ts +0 -62
  1656. package/types/ethereum-network.types.mjs +0 -6
  1657. package/types/generatePoints.cjs +0 -1
  1658. package/types/generatePoints.d.ts +0 -14
  1659. package/types/generatePoints.mjs +0 -8
  1660. package/types/hinkal.types.cjs +0 -1
  1661. package/types/hinkal.types.d.ts +0 -95
  1662. package/types/hinkal.types.mjs +0 -30
  1663. package/types/new-rewards.type.cjs +0 -1
  1664. package/types/new-rewards.type.d.ts +0 -152
  1665. package/types/new-rewards.type.mjs +0 -12
  1666. package/types/onramp.types.cjs +0 -1
  1667. package/types/onramp.types.mjs +0 -6
  1668. package/types/pay-activities.types.cjs +0 -1
  1669. package/types/pay-activities.types.mjs +0 -10
  1670. package/types/referral.types.d.ts +0 -12
  1671. package/types/rewards.types.cjs +0 -1
  1672. package/types/rewards.types.d.ts +0 -34
  1673. package/types/rewards.types.mjs +0 -8
  1674. package/types/scheduled-transactions.types.cjs +0 -1
  1675. package/types/scheduled-transactions.types.d.ts +0 -53
  1676. package/types/scheduled-transactions.types.mjs +0 -8
  1677. package/types/slippage.types.cjs +0 -1
  1678. package/types/slippage.types.mjs +0 -6
  1679. package/types/snark.types.d.ts +0 -40
  1680. package/types/token-prices.types.cjs +0 -1
  1681. package/types/token-prices.types.mjs +0 -11
  1682. package/types/token-with-id.types.d.ts +0 -4
  1683. package/types/token.types.cjs +0 -1
  1684. package/types/token.types.mjs +0 -6
  1685. package/types/transaction.types.d.ts +0 -160
  1686. package/types/transactions.types.cjs +0 -1
  1687. package/types/transactions.types.d.ts +0 -79
  1688. package/types/transactions.types.mjs +0 -40
  1689. package/webworker/logError-D7s4G7mb.js +0 -22
  1690. package/webworker/package.json +0 -112
  1691. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs +0 -1
  1692. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.mjs +0 -4
  1693. package/webworker/snarkjsWorker/snarkjsWorkerNode.d.ts +0 -0
  1694. package/webworker/snarkjsWorkerNode.cjs +0 -3
  1695. package/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +0 -1
  1696. package/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +0 -4
  1697. package/webworker/utxoWorker/utxoWorkerNode.d.ts +0 -0
  1698. package/webworker/utxoWorkerNode.cjs +0 -1
  1699. package/webworker/viteWorkerURL.constant.cjs +0 -21
  1700. package/webworker/viteWorkerURL.constant.d.ts +0 -9
  1701. package/webworker/viteWorkerURL.constant.mjs +0 -21
  1702. package/webworker/workerFactory.cjs +0 -1
  1703. package/webworker/workerFactory.d.ts +0 -10
  1704. package/webworker/workerFactory.mjs +0 -42
  1705. package/webworker/workerProxy-C8hF6v0v.js +0 -128
  1706. package/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +0 -1
  1707. package/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +0 -4
  1708. package/webworker/zkProofWorker/zkProofWorkerNode.d.ts +0 -0
  1709. package/webworker/zkProofWorkerNode.cjs +0 -1
  1710. /package/{API → common/src/API}/admin-calls.d.ts +0 -0
  1711. /package/{API → common/src/API}/callLifiAPI.cjs +0 -0
  1712. /package/{API → common/src/API}/callLifiAPI.mjs +0 -0
  1713. /package/{API → common/src/API}/callMonitor.d.ts +0 -0
  1714. /package/{API → common/src/API}/callNearIntentsAPI.d.ts +0 -0
  1715. /package/{API → common/src/API}/callOdosAPI.cjs +0 -0
  1716. /package/{API → common/src/API}/callOdosAPI.d.ts +0 -0
  1717. /package/{API → common/src/API}/callOdosAPI.mjs +0 -0
  1718. /package/{API → common/src/API}/callOkxAPI.cjs +0 -0
  1719. /package/{API → common/src/API}/callOkxAPI.d.ts +0 -0
  1720. /package/{API → common/src/API}/callOkxAPI.mjs +0 -0
  1721. /package/{API → common/src/API}/callRelayer.cjs +0 -0
  1722. /package/{API → common/src/API}/callRelayer.d.ts +0 -0
  1723. /package/{API → common/src/API}/callRelayer.mjs +0 -0
  1724. /package/{API → common/src/API}/checkRisk.d.ts +0 -0
  1725. /package/{API → common/src/API}/dashboardAccountCalls.cjs +0 -0
  1726. /package/{API → common/src/API}/dashboardAccountCalls.d.ts +0 -0
  1727. /package/{API → common/src/API}/dashboardAccountCalls.mjs +0 -0
  1728. /package/{API → common/src/API}/dashboardBalanceCalls.cjs +0 -0
  1729. /package/{API → common/src/API}/dashboardBalanceCalls.d.ts +0 -0
  1730. /package/{API → common/src/API}/dashboardBalanceCalls.mjs +0 -0
  1731. /package/{API → common/src/API}/dashboardContactCalls.cjs +0 -0
  1732. /package/{API → common/src/API}/dashboardContactCalls.d.ts +0 -0
  1733. /package/{API → common/src/API}/dashboardContactCalls.mjs +0 -0
  1734. /package/{API → common/src/API}/dashboardTransactionCalls.cjs +0 -0
  1735. /package/{API → common/src/API}/dashboardTransactionCalls.d.ts +0 -0
  1736. /package/{API → common/src/API}/dashboardTransactionCalls.mjs +0 -0
  1737. /package/{API → common/src/API}/deposit-and-withdraw-status-calls.cjs +0 -0
  1738. /package/{API → common/src/API}/deposit-and-withdraw-status-calls.d.ts +0 -0
  1739. /package/{API → common/src/API}/deposit-and-withdraw-status-calls.mjs +0 -0
  1740. /package/{API → common/src/API}/enclaveRecipientInfoCalls.d.ts +0 -0
  1741. /package/{API → common/src/API}/enclaveSignatureCalls.d.ts +0 -0
  1742. /package/{API → common/src/API}/fetchCommitmentsCache.cjs +0 -0
  1743. /package/{API → common/src/API}/fetchCommitmentsCache.d.ts +0 -0
  1744. /package/{API → common/src/API}/fetchCommitmentsCache.mjs +0 -0
  1745. /package/{API → common/src/API}/get-token-data.cjs +0 -0
  1746. /package/{API → common/src/API}/get-token-data.d.ts +0 -0
  1747. /package/{API → common/src/API}/get-token-data.mjs +0 -0
  1748. /package/{API → common/src/API}/get-token-price-chart-data.cjs +0 -0
  1749. /package/{API → common/src/API}/get-token-price-chart-data.d.ts +0 -0
  1750. /package/{API → common/src/API}/get-token-price-chart-data.mjs +0 -0
  1751. /package/{API → common/src/API}/getAnyRecipientInfo.d.ts +0 -0
  1752. /package/{API → common/src/API}/getCoingeckoPrice.d.ts +0 -0
  1753. /package/{API → common/src/API}/getGasEstimates.cjs +0 -0
  1754. /package/{API → common/src/API}/getGasEstimates.d.ts +0 -0
  1755. /package/{API → common/src/API}/getGasEstimates.mjs +0 -0
  1756. /package/{API → common/src/API}/getServerURL.d.ts +0 -0
  1757. /package/{API → common/src/API}/getTokenPrice.cjs +0 -0
  1758. /package/{API → common/src/API}/getTokenPrice.d.ts +0 -0
  1759. /package/{API → common/src/API}/getTokenPrice.mjs +0 -0
  1760. /package/{API → common/src/API}/onrampCalls.cjs +0 -0
  1761. /package/{API → common/src/API}/onrampCalls.d.ts +0 -0
  1762. /package/{API → common/src/API}/onrampCalls.mjs +0 -0
  1763. /package/{API → common/src/API}/privacy-score-calls.cjs +0 -0
  1764. /package/{API → common/src/API}/privacy-score-calls.d.ts +0 -0
  1765. /package/{API → common/src/API}/privacy-score-calls.mjs +0 -0
  1766. /package/{API → common/src/API}/privateSendEmailNotificationsCalls.cjs +0 -0
  1767. /package/{API → common/src/API}/privateSendEmailNotificationsCalls.d.ts +0 -0
  1768. /package/{API → common/src/API}/privateSendEmailNotificationsCalls.mjs +0 -0
  1769. /package/{API → common/src/API}/privateSendNonceCalls.cjs +0 -0
  1770. /package/{API → common/src/API}/privateSendNonceCalls.d.ts +0 -0
  1771. /package/{API → common/src/API}/privateSendNonceCalls.mjs +0 -0
  1772. /package/{API → common/src/API}/privateSendRecipientInfoCalls.cjs +0 -0
  1773. /package/{API → common/src/API}/privateSendRecipientInfoCalls.d.ts +0 -0
  1774. /package/{API → common/src/API}/privateSendRecipientInfoCalls.mjs +0 -0
  1775. /package/{API → common/src/API}/relayCalls.cjs +0 -0
  1776. /package/{API → common/src/API}/relayCalls.d.ts +0 -0
  1777. /package/{API → common/src/API}/relayCalls.mjs +0 -0
  1778. /package/{API → common/src/API}/resolve-sns.d.ts +0 -0
  1779. /package/{API → common/src/API}/scheduled-transactions-calls.cjs +0 -0
  1780. /package/{API → common/src/API}/scheduled-transactions-calls.mjs +0 -0
  1781. /package/{API → common/src/API}/seedless-calls.cjs +0 -0
  1782. /package/{API → common/src/API}/seedless-calls.d.ts +0 -0
  1783. /package/{API → common/src/API}/seedless-calls.mjs +0 -0
  1784. /package/{API → common/src/API}/simulate-batch-tx.cjs +0 -0
  1785. /package/{API → common/src/API}/simulate-batch-tx.d.ts +0 -0
  1786. /package/{API → common/src/API}/simulate-batch-tx.mjs +0 -0
  1787. /package/{API → common/src/API}/simulate-transaction.cjs +0 -0
  1788. /package/{API → common/src/API}/simulate-transaction.d.ts +0 -0
  1789. /package/{API → common/src/API}/simulate-transaction.mjs +0 -0
  1790. /package/{API → common/src/API}/snapshot-event-calls.cjs +0 -0
  1791. /package/{API → common/src/API}/snapshot-event-calls.d.ts +0 -0
  1792. /package/{API → common/src/API}/snapshot-event-calls.mjs +0 -0
  1793. /package/{API → common/src/API}/tenderly.api.d.ts +0 -0
  1794. /package/{API → common/src/API}/tronSubsidyCalls.cjs +0 -0
  1795. /package/{API → common/src/API}/tronSubsidyCalls.d.ts +0 -0
  1796. /package/{API → common/src/API}/tronSubsidyCalls.mjs +0 -0
  1797. /package/{constants → common/src/constants}/activity.constants.d.ts +0 -0
  1798. /package/{constants → common/src/constants}/addresses.constants.d.ts +0 -0
  1799. /package/{constants → common/src/constants}/auth.constants.d.ts +0 -0
  1800. /package/{constants → common/src/constants}/backend.constants.d.ts +0 -0
  1801. /package/{constants → common/src/constants}/balance.constants.d.ts +0 -0
  1802. /package/{constants → common/src/constants}/contracts.constants.d.ts +0 -0
  1803. /package/{constants → common/src/constants}/conversion.constants.d.ts +0 -0
  1804. /package/{constants → common/src/constants}/events.constants.cjs +0 -0
  1805. /package/{constants → common/src/constants}/events.constants.d.ts +0 -0
  1806. /package/{constants → common/src/constants}/events.constants.mjs +0 -0
  1807. /package/{constants → common/src/constants}/fees.constants.d.ts +0 -0
  1808. /package/{constants → common/src/constants}/function-signatures.constants.d.ts +0 -0
  1809. /package/{constants → common/src/constants}/images.constants.d.ts +0 -0
  1810. /package/{constants → common/src/constants}/lifi.constants.d.ts +0 -0
  1811. /package/{constants → common/src/constants}/link.constant.d.ts +0 -0
  1812. /package/{constants → common/src/constants}/oauthUrls.constants.d.ts +0 -0
  1813. /package/{constants → common/src/constants}/okx.constants.d.ts +0 -0
  1814. /package/{constants → common/src/constants}/permit2.constants.d.ts +0 -0
  1815. /package/{constants → common/src/constants}/presale.constants.d.ts +0 -0
  1816. /package/{constants → common/src/constants}/reorg-depths.constants.cjs +0 -0
  1817. /package/{constants → common/src/constants}/reorg-depths.constants.d.ts +0 -0
  1818. /package/{constants → common/src/constants}/reorg-depths.constants.mjs +0 -0
  1819. /package/{constants → common/src/constants}/save-depths.cjs +0 -0
  1820. /package/{constants → common/src/constants}/save-depths.d.ts +0 -0
  1821. /package/{constants → common/src/constants}/save-depths.mjs +0 -0
  1822. /package/{constants → common/src/constants}/schedule.constants.d.ts +0 -0
  1823. /package/{constants → common/src/constants}/tx-confirmation.constants.d.ts +0 -0
  1824. /package/{constants → common/src/constants}/wallet.constants.d.ts +0 -0
  1825. /package/{crypto → common/src/crypto}/babyJub.d.ts +0 -0
  1826. /package/{crypto → common/src/crypto}/ecdh-dual-path.d.ts +0 -0
  1827. /package/{crypto → common/src/crypto}/ecdh-sealed-keys.d.ts +0 -0
  1828. /package/{crypto → common/src/crypto}/ecdh-sealed-keys.mjs +0 -0
  1829. /package/{crypto → common/src/crypto}/ecdh.d.ts +0 -0
  1830. /package/{crypto → common/src/crypto}/eddsa.d.ts +0 -0
  1831. /package/{crypto → common/src/crypto}/index.d.ts +0 -0
  1832. /package/{crypto → common/src/crypto}/poseidon.d.ts +0 -0
  1833. /package/{crypto → common/src/crypto}/preProcessing.d.ts +0 -0
  1834. /package/{data-structures → common/src/data-structures}/AccountActions/AccountActions.d.ts +0 -0
  1835. /package/{data-structures → common/src/data-structures}/AccountActions/AccountActions.mjs +0 -0
  1836. /package/{data-structures → common/src/data-structures}/AccountActions/index.cjs +0 -0
  1837. /package/{data-structures → common/src/data-structures}/AccountActions/index.d.ts +0 -0
  1838. /package/{data-structures → common/src/data-structures}/AccountActions/index.mjs +0 -0
  1839. /package/{data-structures → common/src/data-structures}/ApprovalDBs/EventsPublicApprovalsDB.d.ts +0 -0
  1840. /package/{data-structures → common/src/data-structures}/ApprovalDBs/index.d.ts +0 -0
  1841. /package/{data-structures → common/src/data-structures}/BlockchainEvent/BlockchainEvent.cjs +0 -0
  1842. /package/{data-structures → common/src/data-structures}/BlockchainEvent/BlockchainEvent.d.ts +0 -0
  1843. /package/{data-structures → common/src/data-structures}/BlockchainEvent/BlockchainEvent.mjs +0 -0
  1844. /package/{data-structures → common/src/data-structures}/Hinkal/handleAutoDepositBack.d.ts +0 -0
  1845. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalActionReceive.cjs +0 -0
  1846. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalActionReceive.d.ts +0 -0
  1847. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalActionReceive.mjs +0 -0
  1848. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalClaimUtxo.d.ts +0 -0
  1849. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalDeposit.d.ts +0 -0
  1850. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalGetRecipientInfo.cjs +0 -0
  1851. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalGetRecipientInfo.d.ts +0 -0
  1852. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalGetRecipientInfo.mjs +0 -0
  1853. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalNearDepositAndBridge.d.ts +0 -0
  1854. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalPalSolanaDepositPrepare.d.ts +0 -0
  1855. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalPrivateWallet.d.ts +0 -0
  1856. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalProxySwap.d.ts +0 -0
  1857. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalProxyToPrivate.d.ts +0 -0
  1858. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSignSubAccount.cjs +0 -0
  1859. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSignSubAccount.d.ts +0 -0
  1860. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSignSubAccount.mjs +0 -0
  1861. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSolanaClaimUtxo.d.ts +0 -0
  1862. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSolanaDeposit.d.ts +0 -0
  1863. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +0 -0
  1864. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSolanaProoflessDeposit.cjs +0 -0
  1865. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSolanaProoflessDeposit.d.ts +0 -0
  1866. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSolanaProoflessDeposit.mjs +0 -0
  1867. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSolanaProxySend.d.ts +0 -0
  1868. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSolanaProxyShield.d.ts +0 -0
  1869. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSolanaProxySwap.d.ts +0 -0
  1870. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSolanaSwap.d.ts +0 -0
  1871. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSolanaTransfer.d.ts +0 -0
  1872. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSolanaWithdraw.d.ts +0 -0
  1873. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalSwap.d.ts +0 -0
  1874. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalTransfer.d.ts +0 -0
  1875. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalWithdraw.d.ts +0 -0
  1876. /package/{data-structures → common/src/data-structures}/Hinkal/hinkalWithdrawStuckUtxos.d.ts +0 -0
  1877. /package/{data-structures → common/src/data-structures}/Hinkal/resetMerkleTrees.d.ts +0 -0
  1878. /package/{data-structures → common/src/data-structures}/IndexedDB/activity-db.d.ts +0 -0
  1879. /package/{data-structures → common/src/data-structures}/IndexedDB/balances-db.d.ts +0 -0
  1880. /package/{data-structures → common/src/data-structures}/IndexedDB/pay-activity-db.d.ts +0 -0
  1881. /package/{data-structures → common/src/data-structures}/IndexedDB/prices-db.d.ts +0 -0
  1882. /package/{data-structures → common/src/data-structures}/IndexedDB/signatures-db.d.ts +0 -0
  1883. /package/{data-structures → common/src/data-structures}/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +0 -0
  1884. /package/{data-structures → common/src/data-structures}/TokenDBs/ArcPublicTokensDB.d.ts +0 -0
  1885. /package/{data-structures → common/src/data-structures}/TokenDBs/PrivateTokensDB.d.ts +0 -0
  1886. /package/{data-structures → common/src/data-structures}/TokenDBs/index.cjs +0 -0
  1887. /package/{data-structures → common/src/data-structures}/TokenDBs/index.d.ts +0 -0
  1888. /package/{data-structures → common/src/data-structures}/TokenDBs/index.mjs +0 -0
  1889. /package/{data-structures → common/src/data-structures}/TokenDBs/token-visibility-db.d.ts +0 -0
  1890. /package/{data-structures → common/src/data-structures}/TokenDBs/token-visibility-db.mjs +0 -0
  1891. /package/{data-structures → common/src/data-structures}/ValueCache/ValueCache.d.ts +0 -0
  1892. /package/{data-structures → common/src/data-structures}/ValueCache/index.d.ts +0 -0
  1893. /package/{data-structures → common/src/data-structures}/WalletManager/index.d.ts +0 -0
  1894. /package/{data-structures → common/src/data-structures}/cacheDevices/AttachableMemoryCacheDevice.cjs +0 -0
  1895. /package/{data-structures → common/src/data-structures}/cacheDevices/AttachableMemoryCacheDevice.d.ts +0 -0
  1896. /package/{data-structures → common/src/data-structures}/cacheDevices/AttachableMemoryCacheDevice.mjs +0 -0
  1897. /package/{data-structures → common/src/data-structures}/cacheDevices/LocalStorageCacheDevice.cjs +0 -0
  1898. /package/{data-structures → common/src/data-structures}/cacheDevices/LocalStorageCacheDevice.d.ts +0 -0
  1899. /package/{data-structures → common/src/data-structures}/cacheDevices/LocalStorageCacheDevice.mjs +0 -0
  1900. /package/{data-structures → common/src/data-structures}/cacheDevices/index.cjs +0 -0
  1901. /package/{data-structures → common/src/data-structures}/cacheDevices/index.d.ts +0 -0
  1902. /package/{data-structures → common/src/data-structures}/cacheDevices/index.mjs +0 -0
  1903. /package/{data-structures → common/src/data-structures}/crypto-keys/index.d.ts +0 -0
  1904. /package/{data-structures → common/src/data-structures}/crypto-keys/keyUtils.cjs +0 -0
  1905. /package/{data-structures → common/src/data-structures}/crypto-keys/keyUtils.d.ts +0 -0
  1906. /package/{data-structures → common/src/data-structures}/crypto-keys/keyUtils.mjs +0 -0
  1907. /package/{data-structures → common/src/data-structures}/custom-token-registry/CustomTokenRegistry.d.ts +0 -0
  1908. /package/{data-structures → common/src/data-structures}/event-service/evm/AbstractCommitmentsSnapshotService.cjs +0 -0
  1909. /package/{data-structures → common/src/data-structures}/event-service/evm/AbstractCommitmentsSnapshotService.d.ts +0 -0
  1910. /package/{data-structures → common/src/data-structures}/event-service/evm/AbstractCommitmentsSnapshotService.mjs +0 -0
  1911. /package/{data-structures → common/src/data-structures}/event-service/evm/AbstractEventService.cjs +0 -0
  1912. /package/{data-structures → common/src/data-structures}/event-service/evm/AbstractEventService.d.ts +0 -0
  1913. /package/{data-structures → common/src/data-structures}/event-service/evm/AbstractEventService.mjs +0 -0
  1914. /package/{data-structures → common/src/data-structures}/event-service/evm/AbstractNullifierSnapshotService.d.ts +0 -0
  1915. /package/{data-structures → common/src/data-structures}/event-service/evm/AbstractNullifierSnapshotService.mjs +0 -0
  1916. /package/{data-structures → common/src/data-structures}/event-service/evm/AbstractSnapshotService.cjs +0 -0
  1917. /package/{data-structures → common/src/data-structures}/event-service/evm/AbstractSnapshotService.d.ts +0 -0
  1918. /package/{data-structures → common/src/data-structures}/event-service/evm/AbstractSnapshotService.mjs +0 -0
  1919. /package/{data-structures → common/src/data-structures}/event-service/evm/PollingBlockchainEventEmitter.d.ts +0 -0
  1920. /package/{data-structures → common/src/data-structures}/event-service/helpers/ClientEventHelper.d.ts +0 -0
  1921. /package/{data-structures → common/src/data-structures}/event-service/helpers/PollingEventHelper.d.ts +0 -0
  1922. /package/{data-structures → common/src/data-structures}/event-service/index.cjs +0 -0
  1923. /package/{data-structures → common/src/data-structures}/event-service/index.d.ts +0 -0
  1924. /package/{data-structures → common/src/data-structures}/event-service/index.mjs +0 -0
  1925. /package/{data-structures → common/src/data-structures}/event-service/solana/AbstractSolanaCommitmentsSnapshotService.d.ts +0 -0
  1926. /package/{data-structures → common/src/data-structures}/event-service/solana/AbstractSolanaEventService.cjs +0 -0
  1927. /package/{data-structures → common/src/data-structures}/event-service/solana/AbstractSolanaEventService.d.ts +0 -0
  1928. /package/{data-structures → common/src/data-structures}/event-service/solana/AbstractSolanaEventService.mjs +0 -0
  1929. /package/{data-structures → common/src/data-structures}/event-service/solana/AbstractSolanaNullifierSnapshotService.d.ts +0 -0
  1930. /package/{data-structures → common/src/data-structures}/event-service/solana/AbstractSolanaNullifierSnapshotService.mjs +0 -0
  1931. /package/{data-structures → common/src/data-structures}/event-service/solana/AbstractSolanaSnapshotService.cjs +0 -0
  1932. /package/{data-structures → common/src/data-structures}/event-service/solana/AbstractSolanaSnapshotService.d.ts +0 -0
  1933. /package/{data-structures → common/src/data-structures}/event-service/solana/AbstractSolanaSnapshotService.mjs +0 -0
  1934. /package/{data-structures → common/src/data-structures}/event-service/solana/ClientSolanaBlockchainEventEmitter.cjs +0 -0
  1935. /package/{data-structures → common/src/data-structures}/event-service/solana/ClientSolanaBlockchainEventEmitter.mjs +0 -0
  1936. /package/{data-structures → common/src/data-structures}/event-service/solana/PollingSolanaBlockchainEventEmitter.d.ts +0 -0
  1937. /package/{data-structures → common/src/data-structures}/event-service/solana/SolanaBlockchainEventEmitter.mjs +0 -0
  1938. /package/{data-structures → common/src/data-structures}/http/BasicHttpClient.d.ts +0 -0
  1939. /package/{data-structures → common/src/data-structures}/http/BasicHttpClient.mjs +0 -0
  1940. /package/{data-structures → common/src/data-structures}/http/HttpClient.cjs +0 -0
  1941. /package/{data-structures → common/src/data-structures}/http/HttpClient.d.ts +0 -0
  1942. /package/{data-structures → common/src/data-structures}/http/HttpClient.mjs +0 -0
  1943. /package/{data-structures → common/src/data-structures}/http/index.cjs +0 -0
  1944. /package/{data-structures → common/src/data-structures}/http/index.d.ts +0 -0
  1945. /package/{data-structures → common/src/data-structures}/http/index.mjs +0 -0
  1946. /package/{data-structures → common/src/data-structures}/merkle-tree/MerkleTree.cjs +0 -0
  1947. /package/{data-structures → common/src/data-structures}/merkle-tree/MerkleTree.d.ts +0 -0
  1948. /package/{data-structures → common/src/data-structures}/merkle-tree/MerkleTree.mjs +0 -0
  1949. /package/{data-structures → common/src/data-structures}/merkle-tree/MerkleTreeIncompleteError.cjs +0 -0
  1950. /package/{data-structures → common/src/data-structures}/merkle-tree/MerkleTreeIncompleteError.d.ts +0 -0
  1951. /package/{data-structures → common/src/data-structures}/merkle-tree/MerkleTreeIncompleteError.mjs +0 -0
  1952. /package/{data-structures → common/src/data-structures}/merkle-tree/index.cjs +0 -0
  1953. /package/{data-structures → common/src/data-structures}/merkle-tree/index.d.ts +0 -0
  1954. /package/{data-structures → common/src/data-structures}/merkle-tree/index.mjs +0 -0
  1955. /package/{data-structures → common/src/data-structures}/presale/PresaleContractWrapper.d.ts +0 -0
  1956. /package/{data-structures → common/src/data-structures}/presale/index.d.ts +0 -0
  1957. /package/{data-structures → common/src/data-structures}/snapshot/SnapshotFetcherService.cjs +0 -0
  1958. /package/{data-structures → common/src/data-structures}/snapshot/SnapshotFetcherService.d.ts +0 -0
  1959. /package/{data-structures → common/src/data-structures}/snapshot/SnapshotFetcherService.mjs +0 -0
  1960. /package/{data-structures → common/src/data-structures}/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.cjs +0 -0
  1961. /package/{data-structures → common/src/data-structures}/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.d.ts +0 -0
  1962. /package/{data-structures → common/src/data-structures}/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.mjs +0 -0
  1963. /package/{data-structures → common/src/data-structures}/snapshot/evm-snapshots/ClientNullifierSnapshotService.cjs +0 -0
  1964. /package/{data-structures → common/src/data-structures}/snapshot/evm-snapshots/ClientNullifierSnapshotService.d.ts +0 -0
  1965. /package/{data-structures → common/src/data-structures}/snapshot/evm-snapshots/ClientNullifierSnapshotService.mjs +0 -0
  1966. /package/{data-structures → common/src/data-structures}/snapshot/index.cjs +0 -0
  1967. /package/{data-structures → common/src/data-structures}/snapshot/index.d.ts +0 -0
  1968. /package/{data-structures → common/src/data-structures}/snapshot/index.mjs +0 -0
  1969. /package/{data-structures → common/src/data-structures}/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.cjs +0 -0
  1970. /package/{data-structures → common/src/data-structures}/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.d.ts +0 -0
  1971. /package/{data-structures → common/src/data-structures}/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs +0 -0
  1972. /package/{data-structures → common/src/data-structures}/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.cjs +0 -0
  1973. /package/{data-structures → common/src/data-structures}/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.d.ts +0 -0
  1974. /package/{data-structures → common/src/data-structures}/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.mjs +0 -0
  1975. /package/{data-structures → common/src/data-structures}/token-price-fetcher/TokenChecker.d.ts +0 -0
  1976. /package/{data-structures → common/src/data-structures}/token-price-fetcher/index.d.ts +0 -0
  1977. /package/{data-structures → common/src/data-structures}/transactions-manager/history/history.types.d.ts +0 -0
  1978. /package/{data-structures → common/src/data-structures}/transactions-manager/index.d.ts +0 -0
  1979. /package/{error-handling → common/src/error-handling}/customErrors/ErrorWithAmount.cjs +0 -0
  1980. /package/{error-handling → common/src/error-handling}/customErrors/ErrorWithAmount.d.ts +0 -0
  1981. /package/{error-handling → common/src/error-handling}/customErrors/ErrorWithAmount.mjs +0 -0
  1982. /package/{error-handling → common/src/error-handling}/customErrors/ErrorWithIndex.d.ts +0 -0
  1983. /package/{error-handling → common/src/error-handling}/customErrors/ErrorWithTx.cjs +0 -0
  1984. /package/{error-handling → common/src/error-handling}/customErrors/ErrorWithTx.d.ts +0 -0
  1985. /package/{error-handling → common/src/error-handling}/customErrors/ErrorWithTx.mjs +0 -0
  1986. /package/{error-handling → common/src/error-handling}/customErrors/FeeOverTransactionValueError.cjs +0 -0
  1987. /package/{error-handling → common/src/error-handling}/customErrors/FeeOverTransactionValueError.d.ts +0 -0
  1988. /package/{error-handling → common/src/error-handling}/customErrors/FeeOverTransactionValueError.mjs +0 -0
  1989. /package/{error-handling → common/src/error-handling}/customErrors/HttpError.d.ts +0 -0
  1990. /package/{error-handling → common/src/error-handling}/customErrors/SimulationFailureError.d.ts +0 -0
  1991. /package/{error-handling → common/src/error-handling}/customErrors/customErrors.helpers.d.ts +0 -0
  1992. /package/{error-handling → common/src/error-handling}/customErrors/index.d.ts +0 -0
  1993. /package/{error-handling → common/src/error-handling}/get-error.message.d.ts +0 -0
  1994. /package/{error-handling → common/src/error-handling}/isInsufficientFundsError.cjs +0 -0
  1995. /package/{error-handling → common/src/error-handling}/isInsufficientFundsError.d.ts +0 -0
  1996. /package/{error-handling → common/src/error-handling}/isInsufficientFundsError.mjs +0 -0
  1997. /package/{error-handling → common/src/error-handling}/logError.cjs +0 -0
  1998. /package/{error-handling → common/src/error-handling}/logError.d.ts +0 -0
  1999. /package/{error-handling → common/src/error-handling}/logError.mjs +0 -0
  2000. /package/{error-handling → common/src/error-handling}/logger.cjs +0 -0
  2001. /package/{error-handling → common/src/error-handling}/logger.d.ts +0 -0
  2002. /package/{error-handling → common/src/error-handling}/logger.mjs +0 -0
  2003. /package/{error-handling → common/src/error-handling}/retrySolanaError.cjs +0 -0
  2004. /package/{error-handling → common/src/error-handling}/retrySolanaError.d.ts +0 -0
  2005. /package/{error-handling → common/src/error-handling}/retrySolanaError.mjs +0 -0
  2006. /package/{error-handling → common/src/error-handling}/types.cjs +0 -0
  2007. /package/{error-handling → common/src/error-handling}/types.d.ts +0 -0
  2008. /package/{error-handling → common/src/error-handling}/types.mjs +0 -0
  2009. /package/{externalABIs → common/src/externalABIs}/BUSD.d.ts +0 -0
  2010. /package/{externalABIs → common/src/externalABIs}/DAI.d.ts +0 -0
  2011. /package/{externalABIs → common/src/externalABIs}/ERC1155.json.cjs +0 -0
  2012. /package/{externalABIs → common/src/externalABIs}/ERC1155.json.mjs +0 -0
  2013. /package/{externalABIs → common/src/externalABIs}/ERC20.json.cjs +0 -0
  2014. /package/{externalABIs → common/src/externalABIs}/ERC20.json.mjs +0 -0
  2015. /package/{externalABIs → common/src/externalABIs}/ERC721.json.cjs +0 -0
  2016. /package/{externalABIs → common/src/externalABIs}/ERC721.json.mjs +0 -0
  2017. /package/{externalABIs → common/src/externalABIs}/IQuoterV2.json.cjs +0 -0
  2018. /package/{externalABIs → common/src/externalABIs}/IQuoterV2.json.mjs +0 -0
  2019. /package/{externalABIs → common/src/externalABIs}/ISwapRouter.json.cjs +0 -0
  2020. /package/{externalABIs → common/src/externalABIs}/ISwapRouter.json.mjs +0 -0
  2021. /package/{externalABIs → common/src/externalABIs}/IUniswapV3Factory.json.cjs +0 -0
  2022. /package/{externalABIs → common/src/externalABIs}/IUniswapV3Factory.json.mjs +0 -0
  2023. /package/{externalABIs → common/src/externalABIs}/IUniswapV3Pool.json.cjs +0 -0
  2024. /package/{externalABIs → common/src/externalABIs}/IUniswapV3Pool.json.mjs +0 -0
  2025. /package/{externalABIs → common/src/externalABIs}/SanctionsList.d.ts +0 -0
  2026. /package/{externalABIs → common/src/externalABIs}/USDC.d.ts +0 -0
  2027. /package/{externalABIs → common/src/externalABIs}/USDR.d.ts +0 -0
  2028. /package/{externalABIs → common/src/externalABIs}/USDR3CRV.d.ts +0 -0
  2029. /package/{externalABIs → common/src/externalABIs}/USDT.d.ts +0 -0
  2030. /package/{externalABIs → common/src/externalABIs}/UniswapV2PoolAbi.json.cjs +0 -0
  2031. /package/{externalABIs → common/src/externalABIs}/UniswapV2PoolAbi.json.mjs +0 -0
  2032. /package/{externalABIs → common/src/externalABIs}/WETH.d.ts +0 -0
  2033. /package/{externalABIs → common/src/externalABIs}/amToken.d.ts +0 -0
  2034. /package/{externalABIs → common/src/externalABIs}/index.d.ts +0 -0
  2035. /package/{externalABIs → common/src/externalABIs}/swapAbi.cjs +0 -0
  2036. /package/{externalABIs → common/src/externalABIs}/swapAbi.d.ts +0 -0
  2037. /package/{externalABIs → common/src/externalABIs}/swapAbi.mjs +0 -0
  2038. /package/{functions → common/src/functions}/auto-deposit-back-helpers/get-gas-token-records.cjs +0 -0
  2039. /package/{functions → common/src/functions}/auto-deposit-back-helpers/get-gas-token-records.d.ts +0 -0
  2040. /package/{functions → common/src/functions}/auto-deposit-back-helpers/get-gas-token-records.mjs +0 -0
  2041. /package/{functions → common/src/functions}/auto-deposit-back-helpers/get-tokens-to-deposit-back.d.ts +0 -0
  2042. /package/{functions → common/src/functions}/auto-deposit-back-helpers/index.cjs +0 -0
  2043. /package/{functions → common/src/functions}/auto-deposit-back-helpers/index.d.ts +0 -0
  2044. /package/{functions → common/src/functions}/auto-deposit-back-helpers/index.mjs +0 -0
  2045. /package/{functions → common/src/functions}/auto-deposit-back-helpers/select-gas-token.d.ts +0 -0
  2046. /package/{functions → common/src/functions}/connectors.types.d.ts +0 -0
  2047. /package/{functions → common/src/functions}/pre-transaction/addressTableLookup.d.ts +0 -0
  2048. /package/{functions → common/src/functions}/pre-transaction/buildCommitmentValidationData.d.ts +0 -0
  2049. /package/{functions → common/src/functions}/pre-transaction/calculateSolanaNullifierCount.d.ts +0 -0
  2050. /package/{functions → common/src/functions}/pre-transaction/constructAdminData.cjs +0 -0
  2051. /package/{functions → common/src/functions}/pre-transaction/constructAdminData.d.ts +0 -0
  2052. /package/{functions → common/src/functions}/pre-transaction/constructAdminData.mjs +0 -0
  2053. /package/{functions → common/src/functions}/pre-transaction/convert-okx-instructions.d.ts +0 -0
  2054. /package/{functions → common/src/functions}/pre-transaction/convert-okx-instructions.mjs +0 -0
  2055. /package/{functions → common/src/functions}/pre-transaction/ensureAmountChanges.d.ts +0 -0
  2056. /package/{functions → common/src/functions}/pre-transaction/ensureAmountChanges.mjs +0 -0
  2057. /package/{functions → common/src/functions}/pre-transaction/getExternalSwapAddress.d.ts +0 -0
  2058. /package/{functions → common/src/functions}/pre-transaction/getFeeStructure.d.ts +0 -0
  2059. /package/{functions → common/src/functions}/pre-transaction/getSolanaCalldataHash.d.ts +0 -0
  2060. /package/{functions → common/src/functions}/pre-transaction/getSolanaCalldataHash.mjs +0 -0
  2061. /package/{functions → common/src/functions}/pre-transaction/getVolatileTransferAmount.d.ts +0 -0
  2062. /package/{functions → common/src/functions}/pre-transaction/interaction-to-action.d.ts +0 -0
  2063. /package/{functions → common/src/functions}/pre-transaction/merge-with-fee-structure-emporium.d.ts +0 -0
  2064. /package/{functions → common/src/functions}/pre-transaction/outputUtxoProcessing.d.ts +0 -0
  2065. /package/{functions → common/src/functions}/pre-transaction/process-gas-estimates.d.ts +0 -0
  2066. /package/{functions → common/src/functions}/pre-transaction/recipientUtxoProcessing.d.ts +0 -0
  2067. /package/{functions → common/src/functions}/pre-transaction/sendInitNullifiersTransaction.d.ts +0 -0
  2068. /package/{functions → common/src/functions}/pre-transaction/sendV0Transaction.d.ts +0 -0
  2069. /package/{functions → common/src/functions}/pre-transaction/solana.d.ts +0 -0
  2070. /package/{functions → common/src/functions}/pre-transaction/solanaTransfer.utils.d.ts +0 -0
  2071. /package/{functions → common/src/functions}/pre-transaction/solanaTransfer.utils.mjs +0 -0
  2072. /package/{functions → common/src/functions}/pre-transaction/store-instructions.d.ts +0 -0
  2073. /package/{functions → common/src/functions}/pre-transaction/store-proof.d.ts +0 -0
  2074. /package/{functions → common/src/functions}/pre-transaction/waitForDepositedUtxosInMerkleTree.cjs +0 -0
  2075. /package/{functions → common/src/functions}/pre-transaction/waitForDepositedUtxosInMerkleTree.d.ts +0 -0
  2076. /package/{functions → common/src/functions}/pre-transaction/waitForDepositedUtxosInMerkleTree.mjs +0 -0
  2077. /package/{functions → common/src/functions}/private-wallet/emporium.swap.helpers.d.ts +0 -0
  2078. /package/{functions → common/src/functions}/private-wallet/index.cjs +0 -0
  2079. /package/{functions → common/src/functions}/private-wallet/index.d.ts +0 -0
  2080. /package/{functions → common/src/functions}/private-wallet/index.mjs +0 -0
  2081. /package/{functions → common/src/functions}/private-wallet/opProducer.d.ts +0 -0
  2082. /package/{functions → common/src/functions}/snarkjs/constructSolanaZkProof.d.ts +0 -0
  2083. /package/{functions → common/src/functions}/snarkjs/fetchMerkleTreeSiblings.cjs +0 -0
  2084. /package/{functions → common/src/functions}/snarkjs/fetchMerkleTreeSiblings.mjs +0 -0
  2085. /package/{functions → common/src/functions}/snarkjs/generateMainAndCommitmentZkProof.cjs +0 -0
  2086. /package/{functions → common/src/functions}/snarkjs/generateMainAndCommitmentZkProof.d.ts +0 -0
  2087. /package/{functions → common/src/functions}/snarkjs/generateMainAndCommitmentZkProof.mjs +0 -0
  2088. /package/{functions → common/src/functions}/snarkjs/generateZkProof.cjs +0 -0
  2089. /package/{functions → common/src/functions}/snarkjs/generateZkProof.d.ts +0 -0
  2090. /package/{functions → common/src/functions}/snarkjs/generateZkProof.mjs +0 -0
  2091. /package/{functions → common/src/functions}/snarkjs/generateZkProofEnclave.d.ts +0 -0
  2092. /package/{functions → common/src/functions}/snarkjs/generateZkProofSelf.cjs +0 -0
  2093. /package/{functions → common/src/functions}/snarkjs/generateZkProofSelf.d.ts +0 -0
  2094. /package/{functions → common/src/functions}/snarkjs/generateZkProofSelf.mjs +0 -0
  2095. /package/{functions → common/src/functions}/snarkjs/getOriginalSender.cjs +0 -0
  2096. /package/{functions → common/src/functions}/snarkjs/getOriginalSender.d.ts +0 -0
  2097. /package/{functions → common/src/functions}/snarkjs/getOriginalSender.mjs +0 -0
  2098. /package/{functions → common/src/functions}/snarkjs/getZKFiles.d.ts +0 -0
  2099. /package/{functions → common/src/functions}/snarkjs/verifyCommitmentValidationData.d.ts +0 -0
  2100. /package/{functions → common/src/functions}/utils/aggregateTokenAmounts.cjs +0 -0
  2101. /package/{functions → common/src/functions}/utils/aggregateTokenAmounts.d.ts +0 -0
  2102. /package/{functions → common/src/functions}/utils/aggregateTokenAmounts.mjs +0 -0
  2103. /package/{functions → common/src/functions}/utils/amounts.utils.d.ts +0 -0
  2104. /package/{functions → common/src/functions}/utils/arraysMatch.d.ts +0 -0
  2105. /package/{functions → common/src/functions}/utils/auth.utils.cjs +0 -0
  2106. /package/{functions → common/src/functions}/utils/auth.utils.d.ts +0 -0
  2107. /package/{functions → common/src/functions}/utils/auth.utils.mjs +0 -0
  2108. /package/{functions → common/src/functions}/utils/bytes32.utils.d.ts +0 -0
  2109. /package/{functions → common/src/functions}/utils/cacheDevice.utils.cjs +0 -0
  2110. /package/{functions → common/src/functions}/utils/cacheDevice.utils.d.ts +0 -0
  2111. /package/{functions → common/src/functions}/utils/cacheFunctions.d.ts +0 -0
  2112. /package/{functions → common/src/functions}/utils/caseInsensitive.utils.d.ts +0 -0
  2113. /package/{functions → common/src/functions}/utils/convertEmporiumOpToCallInfo.d.ts +0 -0
  2114. /package/{functions → common/src/functions}/utils/convertIntegrationProviderToExternalActionId.d.ts +0 -0
  2115. /package/{functions → common/src/functions}/utils/customEnclaveFunctionsRegister.d.ts +0 -0
  2116. /package/{functions → common/src/functions}/utils/deposit-claimable.utils.d.ts +0 -0
  2117. /package/{functions → common/src/functions}/utils/dispatchBalanceRefreshes.d.ts +0 -0
  2118. /package/{functions → common/src/functions}/utils/enclave-recipient-info-storage.d.ts +0 -0
  2119. /package/{functions → common/src/functions}/utils/enclave-signature-storage.cjs +0 -0
  2120. /package/{functions → common/src/functions}/utils/enclave-signature-storage.d.ts +0 -0
  2121. /package/{functions → common/src/functions}/utils/enclave-signature-storage.mjs +0 -0
  2122. /package/{functions → common/src/functions}/utils/enclaveHandshakeService.d.ts +0 -0
  2123. /package/{functions → common/src/functions}/utils/encryptInputForEnclave.d.ts +0 -0
  2124. /package/{functions → common/src/functions}/utils/encryptInputForEnclave.mjs +0 -0
  2125. /package/{functions → common/src/functions}/utils/enum.utils.d.ts +0 -0
  2126. /package/{functions → common/src/functions}/utils/external-action.utils.d.ts +0 -0
  2127. /package/{functions → common/src/functions}/utils/get-signature-header.cjs +0 -0
  2128. /package/{functions → common/src/functions}/utils/get-signature-header.d.ts +0 -0
  2129. /package/{functions → common/src/functions}/utils/get-signature-header.mjs +0 -0
  2130. /package/{functions → common/src/functions}/utils/getBlockExplorerUrl.d.ts +0 -0
  2131. /package/{functions → common/src/functions}/utils/getContractAddress.cjs +0 -0
  2132. /package/{functions → common/src/functions}/utils/getContractAddress.d.ts +0 -0
  2133. /package/{functions → common/src/functions}/utils/getContractAddress.mjs +0 -0
  2134. /package/{functions → common/src/functions}/utils/getRecipientInfoFromUserKeys.d.ts +0 -0
  2135. /package/{functions → common/src/functions}/utils/getSignerFromContract.d.ts +0 -0
  2136. /package/{functions → common/src/functions}/utils/getSignerFromContract.mjs +0 -0
  2137. /package/{functions → common/src/functions}/utils/getUtxosFromReceipt.utils.d.ts +0 -0
  2138. /package/{functions → common/src/functions}/utils/getUtxosFromReceiptSolana.d.ts +0 -0
  2139. /package/{functions → common/src/functions}/utils/getWalletGroupKey.utils.d.ts +0 -0
  2140. /package/{functions → common/src/functions}/utils/inLogicMetadata.d.ts +0 -0
  2141. /package/{functions → common/src/functions}/utils/involves-permit2-op.cjs +0 -0
  2142. /package/{functions → common/src/functions}/utils/involves-permit2-op.d.ts +0 -0
  2143. /package/{functions → common/src/functions}/utils/involves-permit2-op.mjs +0 -0
  2144. /package/{functions → common/src/functions}/utils/ipfs.d.ts +0 -0
  2145. /package/{functions → common/src/functions}/utils/is-valid-url.d.ts +0 -0
  2146. /package/{functions → common/src/functions}/utils/memoize.utils.d.ts +0 -0
  2147. /package/{functions → common/src/functions}/utils/merkleTree.utils.cjs +0 -0
  2148. /package/{functions → common/src/functions}/utils/merkleTree.utils.d.ts +0 -0
  2149. /package/{functions → common/src/functions}/utils/merkleTree.utils.mjs +0 -0
  2150. /package/{functions → common/src/functions}/utils/mnemonics.d.ts +0 -0
  2151. /package/{functions → common/src/functions}/utils/nftTokenFunctions.d.ts +0 -0
  2152. /package/{functions → common/src/functions}/utils/nickname.utils.d.ts +0 -0
  2153. /package/{functions → common/src/functions}/utils/pay-routing.utils.d.ts +0 -0
  2154. /package/{functions → common/src/functions}/utils/postToOffscreen.cjs +0 -0
  2155. /package/{functions → common/src/functions}/utils/postToOffscreen.d.ts +0 -0
  2156. /package/{functions → common/src/functions}/utils/postToOffscreen.mjs +0 -0
  2157. /package/{functions → common/src/functions}/utils/proxyAvatar.utils.d.ts +0 -0
  2158. /package/{functions → common/src/functions}/utils/publicBalance.utils.d.ts +0 -0
  2159. /package/{functions → common/src/functions}/utils/reloadPage.cjs +0 -0
  2160. /package/{functions → common/src/functions}/utils/reloadPage.d.ts +0 -0
  2161. /package/{functions → common/src/functions}/utils/reloadPage.mjs +0 -0
  2162. /package/{functions → common/src/functions}/utils/requireEnv.d.ts +0 -0
  2163. /package/{functions → common/src/functions}/utils/resolve-sync.utils.d.ts +0 -0
  2164. /package/{functions → common/src/functions}/utils/rpc-int-encode.d.ts +0 -0
  2165. /package/{functions → common/src/functions}/utils/serialize-utxos.utils.d.ts +0 -0
  2166. /package/{functions → common/src/functions}/utils/serialize.utils.d.ts +0 -0
  2167. /package/{functions → common/src/functions}/utils/solana-memo.d.ts +0 -0
  2168. /package/{functions → common/src/functions}/utils/solanaMint.utils.d.ts +0 -0
  2169. /package/{functions → common/src/functions}/utils/solanaMint.utils.mjs +0 -0
  2170. /package/{functions → common/src/functions}/utils/solanaSendPreflight.utils.d.ts +0 -0
  2171. /package/{functions → common/src/functions}/utils/string.utils.d.ts +0 -0
  2172. /package/{functions → common/src/functions}/utils/time.utils.d.ts +0 -0
  2173. /package/{functions → common/src/functions}/utils/transfer-claimable.utils.d.ts +0 -0
  2174. /package/{functions → common/src/functions}/utils/trimFieldValues.d.ts +0 -0
  2175. /package/{functions → common/src/functions}/utils/tronSimulation.utils.cjs +0 -0
  2176. /package/{functions → common/src/functions}/utils/tronSimulation.utils.d.ts +0 -0
  2177. /package/{functions → common/src/functions}/utils/tronSimulation.utils.mjs +0 -0
  2178. /package/{functions → common/src/functions}/utils/tx-confirmation.utils.d.ts +0 -0
  2179. /package/{functions → common/src/functions}/utils/upToDateState.cjs +0 -0
  2180. /package/{functions → common/src/functions}/utils/upToDateState.d.ts +0 -0
  2181. /package/{functions → common/src/functions}/utils/upToDateState.mjs +0 -0
  2182. /package/{functions → common/src/functions}/utils/userAgent.d.ts +0 -0
  2183. /package/{functions → common/src/functions}/utils/validateUsername.d.ts +0 -0
  2184. /package/{functions → common/src/functions}/utils/walletBalances.utils.d.ts +0 -0
  2185. /package/{functions → common/src/functions}/web3/EIP-712.d.ts +0 -0
  2186. /package/{functions → common/src/functions}/web3/crypto.d.ts +0 -0
  2187. /package/{functions → common/src/functions}/web3/events/getInputUtxosEnclave.d.ts +0 -0
  2188. /package/{functions → common/src/functions}/web3/events/getTransactionLogEvents.d.ts +0 -0
  2189. /package/{functions → common/src/functions}/web3/fetchSolanaMerkleTreeRootHash.cjs +0 -0
  2190. /package/{functions → common/src/functions}/web3/fetchSolanaMerkleTreeRootHash.d.ts +0 -0
  2191. /package/{functions → common/src/functions}/web3/fetchSolanaMerkleTreeRootHash.mjs +0 -0
  2192. /package/{functions → common/src/functions}/web3/functionCalls/approveTokensToHinkal.cjs +0 -0
  2193. /package/{functions → common/src/functions}/web3/functionCalls/approveTokensToHinkal.d.ts +0 -0
  2194. /package/{functions → common/src/functions}/web3/functionCalls/approveTokensToHinkal.mjs +0 -0
  2195. /package/{functions → common/src/functions}/web3/functionCalls/estimateGasRelayer.d.ts +0 -0
  2196. /package/{functions → common/src/functions}/web3/functionCalls/getRootHash.d.ts +0 -0
  2197. /package/{functions → common/src/functions}/web3/functionCalls/recoverTransactionFromError.d.ts +0 -0
  2198. /package/{functions → common/src/functions}/web3/functionCalls/relayFunctions.d.ts +0 -0
  2199. /package/{functions → common/src/functions}/web3/functionCalls/transactCallDirect.d.ts +0 -0
  2200. /package/{functions → common/src/functions}/web3/functionCalls/transactCallDirectTron.d.ts +0 -0
  2201. /package/{functions → common/src/functions}/web3/functionCalls/transactCallRelayer.d.ts +0 -0
  2202. /package/{functions → common/src/functions}/web3/functionCalls/waitForErc20Approvals.d.ts +0 -0
  2203. /package/{functions → common/src/functions}/web3/getContractMetadata.d.ts +0 -0
  2204. /package/{functions → common/src/functions}/web3/getPublicAddressBalance.d.ts +0 -0
  2205. /package/{functions → common/src/functions}/web3/getSolanaPriorityFee.cjs +0 -0
  2206. /package/{functions → common/src/functions}/web3/getSolanaPriorityFee.d.ts +0 -0
  2207. /package/{functions → common/src/functions}/web3/getSolanaPriorityFee.mjs +0 -0
  2208. /package/{functions → common/src/functions}/web3/getTokenHolder.d.ts +0 -0
  2209. /package/{functions → common/src/functions}/web3/index.d.ts +0 -0
  2210. /package/{functions → common/src/functions}/web3/lifiAPI.d.ts +0 -0
  2211. /package/{functions → common/src/functions}/web3/odosAPI.d.ts +0 -0
  2212. /package/{functions → common/src/functions}/web3/okxAPI.d.ts +0 -0
  2213. /package/{functions → common/src/functions}/web3/okxAPI.mjs +0 -0
  2214. /package/{functions → common/src/functions}/web3/oneInchAPI.d.ts +0 -0
  2215. /package/{functions → common/src/functions}/web3/runContractFunction.d.ts +0 -0
  2216. /package/{functions → common/src/functions}/web3/signAndSendSerializedTransaction.d.ts +0 -0
  2217. /package/{functions → common/src/functions}/web3/uniswapAPI.d.ts +0 -0
  2218. /package/{mutexes → common/src/mutexes}/mutex.d.ts +0 -0
  2219. /package/{providers → common/src/providers}/exportProviers.d.ts +0 -0
  2220. /package/{types → common/src/types}/ICacheDevice.d.ts +0 -0
  2221. /package/{types → common/src/types}/IMultiThreadedUtxoUtils.d.ts +0 -0
  2222. /package/{types → common/src/types}/RewardUserEnums.d.ts +0 -0
  2223. /package/{types → common/src/types}/TransactionSimulator.types.d.ts +0 -0
  2224. /package/{types → common/src/types}/activities.types.d.ts +0 -0
  2225. /package/{types → common/src/types}/all-points.types.d.ts +0 -0
  2226. /package/{types → common/src/types}/approvals.types.d.ts +0 -0
  2227. /package/{types → common/src/types}/big-intable.types.d.ts +0 -0
  2228. /package/{types → common/src/types}/chains.types.cjs +0 -0
  2229. /package/{types → common/src/types}/chains.types.d.ts +0 -0
  2230. /package/{types → common/src/types}/chains.types.mjs +0 -0
  2231. /package/{types → common/src/types}/coingecko.types.d.ts +0 -0
  2232. /package/{types → common/src/types}/commitments.types.d.ts +0 -0
  2233. /package/{types → common/src/types}/confirmation-request.types.d.ts +0 -0
  2234. /package/{types → common/src/types}/connector.types.d.ts +0 -0
  2235. /package/{types → common/src/types}/contacts.types.d.ts +0 -0
  2236. /package/{types → common/src/types}/dashboard-transaction.types.d.ts +0 -0
  2237. /package/{types → common/src/types}/eip5792.types.d.ts +0 -0
  2238. /package/{types → common/src/types}/events.types.cjs +0 -0
  2239. /package/{types → common/src/types}/events.types.d.ts +0 -0
  2240. /package/{types → common/src/types}/events.types.mjs +0 -0
  2241. /package/{types → common/src/types}/fee.types.cjs +0 -0
  2242. /package/{types → common/src/types}/fee.types.mjs +0 -0
  2243. /package/{types → common/src/types}/http.types.d.ts +0 -0
  2244. /package/{types → common/src/types}/message.types.d.ts +0 -0
  2245. /package/{types → common/src/types}/near-intents.types.d.ts +0 -0
  2246. /package/{types → common/src/types}/offscreen.types.cjs +0 -0
  2247. /package/{types → common/src/types}/offscreen.types.d.ts +0 -0
  2248. /package/{types → common/src/types}/offscreen.types.mjs +0 -0
  2249. /package/{types → common/src/types}/okx.types.d.ts +0 -0
  2250. /package/{types → common/src/types}/onramp.types.d.ts +0 -0
  2251. /package/{types → common/src/types}/pay-activities.types.d.ts +0 -0
  2252. /package/{types → common/src/types}/pay-routing.types.d.ts +0 -0
  2253. /package/{types → common/src/types}/presaleReferral.types.d.ts +0 -0
  2254. /package/{types → common/src/types}/proxy.types.d.ts +0 -0
  2255. /package/{types → common/src/types}/remote-proof.types.d.ts +0 -0
  2256. /package/{types → common/src/types}/schedule.types.cjs +0 -0
  2257. /package/{types → common/src/types}/schedule.types.d.ts +0 -0
  2258. /package/{types → common/src/types}/schedule.types.mjs +0 -0
  2259. /package/{types → common/src/types}/session.types.d.ts +0 -0
  2260. /package/{types → common/src/types}/signature.types.d.ts +0 -0
  2261. /package/{types → common/src/types}/slippage.types.d.ts +0 -0
  2262. /package/{types → common/src/types}/solana.types.d.ts +0 -0
  2263. /package/{types → common/src/types}/tenderly.api.types.d.ts +0 -0
  2264. /package/{types → common/src/types}/token-prices.types.d.ts +0 -0
  2265. /package/{types → common/src/types}/transaction.types.cjs +0 -0
  2266. /package/{types → common/src/types}/transaction.types.mjs +0 -0
  2267. /package/{types → common/src/types}/tron.types.d.ts +0 -0
  2268. /package/{types → common/src/types}/wc.types.d.ts +0 -0
  2269. /package/{types → common/src/types}/with-id.types.d.ts +0 -0
  2270. /package/{webworker → common/src/webworker}/WorkerWrapper.cjs +0 -0
  2271. /package/{webworker → common/src/webworker}/WorkerWrapper.d.ts +0 -0
  2272. /package/{webworker → common/src/webworker}/WorkerWrapper.mjs +0 -0
  2273. /package/{webworker → common/src/webworker}/performTaskWithWorker.cjs +0 -0
  2274. /package/{webworker → common/src/webworker}/performTaskWithWorker.d.ts +0 -0
  2275. /package/{webworker → common/src/webworker}/performTaskWithWorker.mjs +0 -0
  2276. /package/{webworker → common/src/webworker}/snarkjsWorker/snarkjsWorker.types.cjs +0 -0
  2277. /package/{webworker → common/src/webworker}/snarkjsWorker/snarkjsWorker.types.d.ts +0 -0
  2278. /package/{webworker → common/src/webworker}/snarkjsWorker/snarkjsWorker.types.mjs +0 -0
  2279. /package/{webworker → common/src/webworker}/snarkjsWorker/snarkjsWorkerLauncher.d.ts +0 -0
  2280. /package/{webworker → common/src/webworker}/snarkjsWorker/snarkjsWorkerLogic.d.ts +0 -0
  2281. /package/{webworker/utxoWorker/utxoWorkerLauncher.d.ts → common/src/webworker/snarkjsWorker/snarkjsWorkerNode.d.ts} +0 -0
  2282. /package/{webworker → common/src/webworker}/utxoWorker/utxoWorker.types.cjs +0 -0
  2283. /package/{webworker → common/src/webworker}/utxoWorker/utxoWorker.types.d.ts +0 -0
  2284. /package/{webworker → common/src/webworker}/utxoWorker/utxoWorker.types.mjs +0 -0
  2285. /package/{webworker/workerThreadsPatch.d.ts → common/src/webworker/utxoWorker/utxoWorkerLauncher.d.ts} +0 -0
  2286. /package/{webworker → common/src/webworker}/utxoWorker/utxoWorkerLogic.d.ts +0 -0
  2287. /package/{webworker/zkProofWorker/zkProofWorkerLauncher.d.ts → common/src/webworker/utxoWorker/utxoWorkerNode.d.ts} +0 -0
  2288. /package/{webworker → common/src/webworker}/worker.registry.cjs +0 -0
  2289. /package/{webworker → common/src/webworker}/worker.registry.d.ts +0 -0
  2290. /package/{webworker → common/src/webworker}/worker.registry.mjs +0 -0
  2291. /package/{webworker → common/src/webworker}/worker.types.d.ts +0 -0
  2292. /package/{webworker → common/src/webworker}/workerErrorHandler.d.ts +0 -0
  2293. /package/{webworker → common/src/webworker}/workerProxy.d.ts +0 -0
  2294. /package/{webworker → common/src/webworker}/zkProofWorker/zkProofWorker.types.cjs +0 -0
  2295. /package/{webworker → common/src/webworker}/zkProofWorker/zkProofWorker.types.d.ts +0 -0
  2296. /package/{webworker → common/src/webworker}/zkProofWorker/zkProofWorker.types.mjs +0 -0
  2297. /package/{webworker → common/src/webworker}/zkProofWorker/zkProofWorkerLogic.d.ts +0 -0
@@ -0,0 +1 @@
1
+ const e=require(`./caseInsensitive.utils.cjs`),t=require(`../../error-handling/error-codes.constants.cjs`);require(`../../API/API.cjs`);var n=e=>{if(e.length===0)throw Error(`Token array cannot be empty`);let n=e.map(e=>e.chainId),r=n[0];if(!n.every(e=>e===r))throw Error(t.transactionErrorCodes.TOKENS_DO_NOT_BELONG_SAME_CHAIN);return r},r=(t,n)=>!t||!n?!1:e.caseInsensitiveEqual(t.erc20TokenAddress,n.erc20TokenAddress)&&t.chainId===n.chainId;exports.isSameERC20Token=r,exports.validateAndGetChainId=n;
@@ -0,0 +1,4 @@
1
+ import { ERC20Token } from '../../types/token.types';
2
+ export declare const checkTokensForShielding: (chainId: number, erc20Addresses: string[]) => Promise<string[]>;
3
+ export declare const validateAndGetChainId: (tokens: ERC20Token[]) => number;
4
+ export declare const isSameERC20Token: (a?: ERC20Token, b?: ERC20Token) => boolean;
@@ -0,0 +1,12 @@
1
+ import { caseInsensitiveEqual as e } from "./caseInsensitive.utils.mjs";
2
+ import { transactionErrorCodes as t } from "../../error-handling/error-codes.constants.mjs";
3
+ import "../../API/API.mjs";
4
+ //#region libs/shared/common/src/functions/utils/token-check.utils.ts
5
+ var n = (e) => {
6
+ if (e.length === 0) throw Error("Token array cannot be empty");
7
+ let n = e.map((e) => e.chainId), r = n[0];
8
+ if (!n.every((e) => e === r)) throw Error(t.TOKENS_DO_NOT_BELONG_SAME_CHAIN);
9
+ return r;
10
+ }, r = (t, n) => !t || !n ? !1 : e(t.erc20TokenAddress, n.erc20TokenAddress) && t.chainId === n.chainId;
11
+ //#endregion
12
+ export { r as isSameERC20Token, n as validateAndGetChainId };
@@ -0,0 +1 @@
1
+ require(`./solanaMint.utils.cjs`),require(`./token-check.utils.cjs`),require(`../../error-handling/index.cjs`),require(`../pre-transaction/index.cjs`),require(`../../constants/index.cjs`),require(`../../data-structures/crypto-keys/index.cjs`),require(`./getRecipientInfoFromUserKeys.cjs`),require(`./getUtxosFromReceipt.utils.cjs`),require(`./getUtxosFromReceiptSolana.cjs`),require(`./tx-confirmation.utils.cjs`);
@@ -0,0 +1,10 @@
1
+ import "./solanaMint.utils.mjs";
2
+ import "./token-check.utils.mjs";
3
+ import "../../error-handling/index.mjs";
4
+ import "../pre-transaction/index.mjs";
5
+ import "../../constants/index.mjs";
6
+ import "../../data-structures/crypto-keys/index.mjs";
7
+ import "./getRecipientInfoFromUserKeys.mjs";
8
+ import "./getUtxosFromReceipt.utils.mjs";
9
+ import "./getUtxosFromReceiptSolana.mjs";
10
+ import "./tx-confirmation.utils.mjs";
@@ -0,0 +1 @@
1
+ require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../constants/chains.constants.cjs`),t=require(`../../constants/protocol.constants.cjs`),n=require(`./caseInsensitive.utils.cjs`),r=require(`../../error-handling/error-codes.constants.cjs`),i=require(`../snarkjs/constant.cjs`),a=require(`../../data-structures/http/HttpClient.cjs`),o=require(`../../externalABIs/index.cjs`),s=require(`../../error-handling/logger.cjs`);let c=require(`ethers`),l=require(`tronweb`);var u=2000n,d=e=>{let t=e.trim(),n=t.startsWith(`0x`)?t.slice(2):t;if(!/^[0-9a-fA-F]{64}$/.test(n))throw Error(`Tron private key must be 32 bytes (64 hex characters), with or without 0x prefix`);return n},f=(t,n)=>{let r=e.networkRegistry[t].fetchRpcUrl,i=n?d(n):void 0,a=i?new l.TronWeb({fullHost:r,privateKey:i}):new l.TronWeb({fullHost:r});return n||a.setAddress(`T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb`),a},p=e=>e?.startsWith(`T`)?e:l.TronWeb.address.fromHex(e),m=e=>e.startsWith(`0x`)?p(e):e,h=e=>{if(e.startsWith(`0x`))return e;if(e.startsWith(`41`))return e.replace(`41`,`0x`);if(e.startsWith(`T`))return h(l.TronWeb.address.toHex(e));throw Error(`Failed to convert address to hex format`)},g=t=>{if(t===e.chainIds.tronNile)return`https://nile.trongrid.io`;if(t===e.chainIds.tronMainnet)return`https://api.trongrid.io`;throw Error(`Unsupported Tron chain for wallet RPC: ${t}`)},_=(e,t)=>e.map(e=>Array.isArray(e)?_(e,t):t(e)),v=(e,t,n)=>{let r=new c.ethers.Interface(e);if(!r.getFunction(t))throw Error(`${t} ABI is missing for Tron call data creation`);let i=_(n,e=>typeof e==`string`&&e.startsWith(`T`)?h(e):e);return r.encodeFunctionData(t,i)},y=(e,t,n)=>e?BigInt(Math.max((e[t]??0)-(e[n]??0),0)):0n,b=(e,t)=>{let n=e.find(e=>e.key===t);if(!n||typeof n.value!=`number`)throw Error(`Missing Tron chain parameter: ${t}`);return BigInt(n.value)},x=async e=>{let t=`${g(e)}/wallet/getchainparameters`,n=await a.httpClient.post(t,{});if(!n?.chainParameter?.length)throw Error(`Failed to fetch Tron chain parameters from wallet RPC`);return n.chainParameter},S=async(e,t)=>{let n=`${g(e)}/wallet/getaccountresource`,r=h(t),i=r.startsWith(`0x`)?`41${r.slice(2)}`:r;return await a.httpClient.post(n,{address:i,visible:!1})},C=async(e,n,r,i,a,o)=>{let s={input:a,callValue:Number(o),feeLimit:t.TRON_DEFAULT_FEE_LIMIT_SUN},[c,l]=await Promise.all([e.transactionBuilder.estimateEnergy(r,``,s,[],i),e.transactionBuilder.triggerConstantContract(r,``,s,[],i)]),d=await x(n),f=b(d,`getEnergyFee`),p=b(d,`getTransactionFee`),m=await S(n,i),h=BigInt(c?.energy_required??l?.energy_used??0),g=y(m,`EnergyLimit`,`EnergyUsed`),_=(h>g?h-g:0n)*f,v=BigInt(Math.ceil((l?.transaction?.raw_data_hex?.length??0)/2)),C=y(m,`freeNetLimit`,`freeNetUsed`)+y(m,`NetLimit`,`NetUsed`),w=_+(v>C?v-C:0n)*p,T=w+w*u/10000n;return T>BigInt(1e9)?BigInt(t.TRON_DEFAULT_FEE_LIMIT_SUN):T},w=e=>{let t=e[0].map(BigInt),n=e[1][0].map(BigInt),r=e[1][1].map(BigInt),i=e[2].map(BigInt),a=e[3].map(BigInt);return{a:t,b:[[n[1],n[0]],[r[1],r[0]]],c:i,publicSignals:a}},T=(e,t)=>{let n=c.ethers.AbiCoder.defaultAbiCoder().encode([`uint16`,`uint16`,`uint16`,`uint256`],[e.tokenNumber,e.nullifierAmount,e.outputAmount,t]);return BigInt(c.ethers.keccak256(n))},E=async(e,t,n,r,o,s)=>{let l=T(o,s),u=e.map(String),d=n.map(String),f=r.map(String),p={a:u,b:[t[0].map(String),t[1].map(String)],c:d,inputs:f,verifier_id:String(l)},m=await a.httpClient.post(`${i.ENCLAVE_URL}/sign-proof`,p),{v:h,r:g,s:_}=c.ethers.Signature.from(m.signature.trim());return{v:h,r:g,s:_}},D=e=>[e.rootHashHinkal,e.rootHashHinkalIndex,e.erc20TokenAddresses,e.amountChanges,e.onChainCreation,e.slippageValues,e.inputNullifiers,e.outCommitments,e.encryptedOutputs,[e.feeStructure.feeToken,e.feeStructure.flatFee,e.feeStructure.variableRate],e.timeStamp,[e.stealthAddressStructure.H0x,e.stealthAddressStructure.H0y,e.stealthAddressStructure.H1x,e.stealthAddressStructure.H1y,e.stealthAddressStructure.stealthAddress],e.calldataHash,e.emporiumMessage,e.publicSignalCount,e.relay,[e.externalActionData.externalAddress,e.externalActionData.externalActionId,e.externalActionData.externalActionMetadata],[e.hookData.preHookContract,e.hookData.postHookContract,e.hookData.preHookMetadata,e.hookData.postHookMetadata],e.originalSender,e.extraData],O=async(e,t,n,r,i=!0)=>{if(e){let{a:e,b:a,c:o,publicSignals:s}=w(t),c=await E(e,a,o,s,n,BigInt(r.externalActionData.externalActionId)),l={v:c.v,r:c.r,s:c.s};return i&&(t[1]=[[t[1][0][1],t[1][0][0]],[t[1][1][1],t[1][1][0]]]),l}},k=(e,r)=>{let i=0n,a=new Map;for(let o=0;o<e.length;o+=1)if(n.caseInsensitiveEqual(e[o].erc20TokenAddress,t.zeroAddress))i+=r[o];else{let t=p(e[o].erc20TokenAddress);a.set(t,(a.get(t)??0n)+r[o])}return{totalTrxValue:i,tokensNeedingApproval:a}},A=async(e,n,i,a,o,c)=>{let l=BigInt(await e.trx.getBalance(a)),u=BigInt(t.TRON_DEFAULT_FEE_LIMIT_SUN);try{u=await C(e,n,i,a,o,c)}catch(e){s.Logger.error(`Error estimating Tron deposit fee`,e)}if(l<c+u)throw Error(r.insufficientResourcesErrorCodes.INSUFFICIENT_TRON_BALANCE_FOR_FEE)},j=async(e,n,r,i)=>{let a=Array.from(i.entries());for(let i=0;i<a.length;i+=1){let[s,c]=a[i],l=await e.contract(o.ERC20ABI,s).allowance(n,r).call({from:n});if(BigInt(String(l))<c){let{transaction:i}=await e.transactionBuilder.triggerSmartContract(s,`approve(address,uint256)`,{feeLimit:t.TRON_DEFAULT_FEE_LIMIT_SUN},[{type:`address`,value:r},{type:`uint256`,value:c.toString()}],n),a=await e.trx.sign(i),o=await e.trx.sendRawTransaction(a);if(!o.result){let e=o.code??`UNKNOWN`,t=o.message?Buffer.from(o.message,`hex`).toString():`no message`;throw Error(`Tron token approval failed: ${e} - ${t}`)}}}};exports.addressToHexFormat=h,exports.approveTronTokens=j,exports.assertTronSufficientBalance=A,exports.circomDataToArray=D,exports.createTronCallData=v,exports.createTronWeb=f,exports.estimateTronFeeSunWithPadding=C,exports.evmHexToTronBase58Address=p,exports.fetchTronAccountResources=S,exports.fetchTronChainParameters=x,exports.generateProofSignatureRemotely=E,exports.getAvailableResource=y,exports.getChainParameterValue=b,exports.getTronWalletRpcUrl=g,exports.getVerifierId=T,exports.normalizeTronPrivateKey=d,exports.parseZkCalldata=w,exports.reorderZkCallData=O,exports.splitTronTokensByNative=k,exports.toTronBase58IfHex=m;
@@ -0,0 +1,44 @@
1
+ import { ethers } from 'ethers';
2
+ import { CircomDataType, DimDataType } from '../../types/circom-data.types';
3
+ import { NewZkCallDataType } from '../../types/snark.types';
4
+ import { TronAccountResources, TronChainParameter } from '../../types/tron.types';
5
+ import { TronWeb } from 'tronweb';
6
+ import { ERC20Token } from '../../types/token.types';
7
+ export declare const detectTronChainIdFromHost: (fullNodeHost: string) => number;
8
+ export declare const normalizeTronPrivateKey: (privateKey: string) => string;
9
+ export declare const createTronWeb: (chainId: number, privateKey?: string) => TronWeb;
10
+ export declare const evmHexToTronBase58Address: (addr: string) => string;
11
+ export declare const toTronBase58IfHex: (addr: string) => string;
12
+ export declare const addressToHexFormat: (addr: string) => string;
13
+ export declare const normalizeTronAddr: (addr: string) => string;
14
+ export declare const getTronWalletRpcUrl: (chainId: number) => "https://nile.trongrid.io" | "https://api.trongrid.io";
15
+ export declare const createTronCallData: (abi: ethers.InterfaceAbi, functionName: string, args: unknown[]) => string;
16
+ export declare const getAvailableResource: (resources: TronAccountResources | undefined, limitKey: string, usedKey: string) => bigint;
17
+ export declare const getChainParameterValue: (params: TronChainParameter[], key: string) => bigint;
18
+ export declare const fetchTronChainParameters: (chainId: number) => Promise<TronChainParameter[]>;
19
+ export declare const fetchTronAccountResources: (chainId: number, ownerAddress: string) => Promise<TronAccountResources>;
20
+ export declare const estimateTronFeeSunWithPadding: (tronWeb: TronWeb, chainId: number, contractAddress: string, ownerAddress: string, callData: string, callValueSun: bigint) => Promise<bigint>;
21
+ export declare const parseZkCalldata: (zkCallData: NewZkCallDataType) => {
22
+ a: bigint[];
23
+ b: bigint[][];
24
+ c: bigint[];
25
+ publicSignals: bigint[];
26
+ };
27
+ export declare const getVerifierId: (dimensionsArg: DimDataType, externalActionId: bigint) => bigint;
28
+ export declare const generateProofSignatureRemotely: (a: bigint[], b: bigint[][], c: bigint[], input: bigint[], dimensionsArg: DimDataType, externalActionId: bigint) => Promise<{
29
+ v: number;
30
+ r: string;
31
+ s: string;
32
+ }>;
33
+ export declare const circomDataToArray: (circomData: CircomDataType) => (string | number | bigint | string[][] | boolean[] | (string | bigint)[] | undefined)[];
34
+ export declare const reorderZkCallData: (isTron: boolean, zkCallData: NewZkCallDataType, dimData: DimDataType, circomData: CircomDataType, modifyZkCallData?: boolean) => Promise<{
35
+ v: number;
36
+ r: string;
37
+ s: string;
38
+ } | undefined>;
39
+ export declare const splitTronTokensByNative: (erc20Tokens: ERC20Token[], amountChanges: bigint[]) => {
40
+ totalTrxValue: bigint;
41
+ tokensNeedingApproval: Map<string, bigint>;
42
+ };
43
+ export declare const assertTronSufficientBalance: (tronWeb: TronWeb, chainId: number, contractBase58: string, ownerAddress: string, callData: string, totalTrxValue: bigint) => Promise<void>;
44
+ export declare const approveTronTokens: (tronWeb: TronWeb, ethereumAddress: string, spenderBase58: string, tokensNeedingApproval: Map<string, bigint>) => Promise<void>;
@@ -0,0 +1,179 @@
1
+ import { chainIds as e, networkRegistry as t } from "../../constants/chains.constants.mjs";
2
+ import { TRON_DEFAULT_FEE_LIMIT_SUN as n, zeroAddress as r } from "../../constants/protocol.constants.mjs";
3
+ import { caseInsensitiveEqual as i } from "./caseInsensitive.utils.mjs";
4
+ import { insufficientResourcesErrorCodes as a } from "../../error-handling/error-codes.constants.mjs";
5
+ import { ENCLAVE_URL as o } from "../snarkjs/constant.mjs";
6
+ import { httpClient as s } from "../../data-structures/http/HttpClient.mjs";
7
+ import { ERC20ABI as c } from "../../externalABIs/index.mjs";
8
+ import { Logger as l } from "../../error-handling/logger.mjs";
9
+ import { ethers as u } from "ethers";
10
+ import { TronWeb as d } from "tronweb";
11
+ //#region libs/shared/common/src/functions/utils/tron.utils.ts
12
+ var f = 2000n, p = (e) => {
13
+ let t = e.trim(), n = t.startsWith("0x") ? t.slice(2) : t;
14
+ if (!/^[0-9a-fA-F]{64}$/.test(n)) throw Error("Tron private key must be 32 bytes (64 hex characters), with or without 0x prefix");
15
+ return n;
16
+ }, m = (e, n) => {
17
+ let r = t[e].fetchRpcUrl, i = n ? p(n) : void 0, a = i ? new d({
18
+ fullHost: r,
19
+ privateKey: i
20
+ }) : new d({ fullHost: r });
21
+ return n || a.setAddress("T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb"), a;
22
+ }, h = (e) => e?.startsWith("T") ? e : d.address.fromHex(e), g = (e) => e.startsWith("0x") ? h(e) : e, _ = (e) => {
23
+ if (e.startsWith("0x")) return e;
24
+ if (e.startsWith("41")) return e.replace("41", "0x");
25
+ if (e.startsWith("T")) return _(d.address.toHex(e));
26
+ throw Error("Failed to convert address to hex format");
27
+ }, v = (t) => {
28
+ if (t === e.tronNile) return "https://nile.trongrid.io";
29
+ if (t === e.tronMainnet) return "https://api.trongrid.io";
30
+ throw Error(`Unsupported Tron chain for wallet RPC: ${t}`);
31
+ }, y = (e, t) => e.map((e) => Array.isArray(e) ? y(e, t) : t(e)), b = (e, t, n) => {
32
+ let r = new u.Interface(e);
33
+ if (!r.getFunction(t)) throw Error(`${t} ABI is missing for Tron call data creation`);
34
+ let i = y(n, (e) => typeof e == "string" && e.startsWith("T") ? _(e) : e);
35
+ return r.encodeFunctionData(t, i);
36
+ }, x = (e, t, n) => e ? BigInt(Math.max((e[t] ?? 0) - (e[n] ?? 0), 0)) : 0n, S = (e, t) => {
37
+ let n = e.find((e) => e.key === t);
38
+ if (!n || typeof n.value != "number") throw Error(`Missing Tron chain parameter: ${t}`);
39
+ return BigInt(n.value);
40
+ }, C = async (e) => {
41
+ let t = `${v(e)}/wallet/getchainparameters`, n = await s.post(t, {});
42
+ if (!n?.chainParameter?.length) throw Error("Failed to fetch Tron chain parameters from wallet RPC");
43
+ return n.chainParameter;
44
+ }, w = async (e, t) => {
45
+ let n = `${v(e)}/wallet/getaccountresource`, r = _(t), i = r.startsWith("0x") ? `41${r.slice(2)}` : r;
46
+ return await s.post(n, {
47
+ address: i,
48
+ visible: !1
49
+ });
50
+ }, T = async (e, t, r, i, a, o) => {
51
+ let s = {
52
+ input: a,
53
+ callValue: Number(o),
54
+ feeLimit: n
55
+ }, [c, l] = await Promise.all([e.transactionBuilder.estimateEnergy(r, "", s, [], i), e.transactionBuilder.triggerConstantContract(r, "", s, [], i)]), u = await C(t), d = S(u, "getEnergyFee"), p = S(u, "getTransactionFee"), m = await w(t, i), h = BigInt(c?.energy_required ?? l?.energy_used ?? 0), g = x(m, "EnergyLimit", "EnergyUsed"), _ = (h > g ? h - g : 0n) * d, v = BigInt(Math.ceil((l?.transaction?.raw_data_hex?.length ?? 0) / 2)), y = x(m, "freeNetLimit", "freeNetUsed") + x(m, "NetLimit", "NetUsed"), b = _ + (v > y ? v - y : 0n) * p, T = b + b * f / 10000n;
56
+ return T > BigInt(1e9) ? BigInt(n) : T;
57
+ }, E = (e) => {
58
+ let t = e[0].map(BigInt), n = e[1][0].map(BigInt), r = e[1][1].map(BigInt), i = e[2].map(BigInt), a = e[3].map(BigInt);
59
+ return {
60
+ a: t,
61
+ b: [[n[1], n[0]], [r[1], r[0]]],
62
+ c: i,
63
+ publicSignals: a
64
+ };
65
+ }, D = (e, t) => {
66
+ let n = u.AbiCoder.defaultAbiCoder().encode([
67
+ "uint16",
68
+ "uint16",
69
+ "uint16",
70
+ "uint256"
71
+ ], [
72
+ e.tokenNumber,
73
+ e.nullifierAmount,
74
+ e.outputAmount,
75
+ t
76
+ ]);
77
+ return BigInt(u.keccak256(n));
78
+ }, O = async (e, t, n, r, i, a) => {
79
+ let c = D(i, a), l = e.map(String), d = n.map(String), f = r.map(String), p = {
80
+ a: l,
81
+ b: [t[0].map(String), t[1].map(String)],
82
+ c: d,
83
+ inputs: f,
84
+ verifier_id: String(c)
85
+ }, m = await s.post(`${o}/sign-proof`, p), { v: h, r: g, s: _ } = u.Signature.from(m.signature.trim());
86
+ return {
87
+ v: h,
88
+ r: g,
89
+ s: _
90
+ };
91
+ }, k = (e) => [
92
+ e.rootHashHinkal,
93
+ e.rootHashHinkalIndex,
94
+ e.erc20TokenAddresses,
95
+ e.amountChanges,
96
+ e.onChainCreation,
97
+ e.slippageValues,
98
+ e.inputNullifiers,
99
+ e.outCommitments,
100
+ e.encryptedOutputs,
101
+ [
102
+ e.feeStructure.feeToken,
103
+ e.feeStructure.flatFee,
104
+ e.feeStructure.variableRate
105
+ ],
106
+ e.timeStamp,
107
+ [
108
+ e.stealthAddressStructure.H0x,
109
+ e.stealthAddressStructure.H0y,
110
+ e.stealthAddressStructure.H1x,
111
+ e.stealthAddressStructure.H1y,
112
+ e.stealthAddressStructure.stealthAddress
113
+ ],
114
+ e.calldataHash,
115
+ e.emporiumMessage,
116
+ e.publicSignalCount,
117
+ e.relay,
118
+ [
119
+ e.externalActionData.externalAddress,
120
+ e.externalActionData.externalActionId,
121
+ e.externalActionData.externalActionMetadata
122
+ ],
123
+ [
124
+ e.hookData.preHookContract,
125
+ e.hookData.postHookContract,
126
+ e.hookData.preHookMetadata,
127
+ e.hookData.postHookMetadata
128
+ ],
129
+ e.originalSender,
130
+ e.extraData
131
+ ], A = async (e, t, n, r, i = !0) => {
132
+ if (e) {
133
+ let { a: e, b: a, c: o, publicSignals: s } = E(t), c = await O(e, a, o, s, n, BigInt(r.externalActionData.externalActionId)), l = {
134
+ v: c.v,
135
+ r: c.r,
136
+ s: c.s
137
+ };
138
+ return i && (t[1] = [[t[1][0][1], t[1][0][0]], [t[1][1][1], t[1][1][0]]]), l;
139
+ }
140
+ }, j = (e, t) => {
141
+ let n = 0n, a = /* @__PURE__ */ new Map();
142
+ for (let o = 0; o < e.length; o += 1) if (i(e[o].erc20TokenAddress, r)) n += t[o];
143
+ else {
144
+ let n = h(e[o].erc20TokenAddress);
145
+ a.set(n, (a.get(n) ?? 0n) + t[o]);
146
+ }
147
+ return {
148
+ totalTrxValue: n,
149
+ tokensNeedingApproval: a
150
+ };
151
+ }, M = async (e, t, r, i, o, s) => {
152
+ let c = BigInt(await e.trx.getBalance(i)), u = BigInt(n);
153
+ try {
154
+ u = await T(e, t, r, i, o, s);
155
+ } catch (e) {
156
+ l.error("Error estimating Tron deposit fee", e);
157
+ }
158
+ if (c < s + u) throw Error(a.INSUFFICIENT_TRON_BALANCE_FOR_FEE);
159
+ }, N = async (e, t, r, i) => {
160
+ let a = Array.from(i.entries());
161
+ for (let i = 0; i < a.length; i += 1) {
162
+ let [o, s] = a[i], l = await e.contract(c, o).allowance(t, r).call({ from: t });
163
+ if (BigInt(String(l)) < s) {
164
+ let { transaction: i } = await e.transactionBuilder.triggerSmartContract(o, "approve(address,uint256)", { feeLimit: n }, [{
165
+ type: "address",
166
+ value: r
167
+ }, {
168
+ type: "uint256",
169
+ value: s.toString()
170
+ }], t), a = await e.trx.sign(i), c = await e.trx.sendRawTransaction(a);
171
+ if (!c.result) {
172
+ let e = c.code ?? "UNKNOWN", t = c.message ? Buffer.from(c.message, "hex").toString() : "no message";
173
+ throw Error(`Tron token approval failed: ${e} - ${t}`);
174
+ }
175
+ }
176
+ }
177
+ };
178
+ //#endregion
179
+ export { _ as addressToHexFormat, N as approveTronTokens, M as assertTronSufficientBalance, k as circomDataToArray, b as createTronCallData, m as createTronWeb, T as estimateTronFeeSunWithPadding, h as evmHexToTronBase58Address, w as fetchTronAccountResources, C as fetchTronChainParameters, O as generateProofSignatureRemotely, x as getAvailableResource, S as getChainParameterValue, v as getTronWalletRpcUrl, D as getVerifierId, p as normalizeTronPrivateKey, E as parseZkCalldata, A as reorderZkCallData, j as splitTronTokensByNative, g as toTronBase58IfHex };
@@ -0,0 +1 @@
1
+ const e=require(`../../constants/chains.constants.cjs`),t=require(`../../error-handling/error-codes.constants.cjs`),n=require(`../../error-handling/logger.cjs`),r=require(`./create-provider.cjs`),i=require(`../../constants/tx-confirmation.constants.cjs`);require(`../../constants/index.cjs`);var a=`confirmed`,o=async(e,n,a={})=>{let{evmConfirmations:o=1,evmTimeoutMs:s=i.TX_CONFIRMATION_TIMEOUT_EXTENDED}=a,c=n.startsWith(`0x`)?n:`0x${n}`,l=await r.createJsonRpcProvider(e).waitForTransaction(c,o,s);if(!l||l.status!==1)throw Error(t.transactionErrorCodes.TRANSACTION_NOT_CONFIRMED);return l},s=async(t,n,i={})=>{let{solanaCommitment:o=a}=i,{fetchRpcUrl:s}=e.networkRegistry[t];if(!s)throw Error(`RPC URL not found for the specified chain ID`);let c=await r.createCustomSolanaConnection(s,o).confirmTransaction(n,o);if(c.value.err)throw Error(`Transaction failed`);return c},c=async(t,r,i={})=>{try{if(e.isSolanaLike(t)){await s(t,r,i);return}await o(t,r.startsWith(`0x`)?r:`0x${r}`,i)}catch(e){throw n.Logger.error(`waitForTransactionConfirmation failed`,{chainId:t,txHash:r,error:e}),e}};exports.waitForEthereumTransactionConfirmation=o,exports.waitForSolanaTransactionConfirmation=s,exports.waitForTransactionConfirmation=c;
@@ -0,0 +1,34 @@
1
+ import { isSolanaLike as e, networkRegistry as t } from "../../constants/chains.constants.mjs";
2
+ import { transactionErrorCodes as n } from "../../error-handling/error-codes.constants.mjs";
3
+ import { Logger as r } from "../../error-handling/logger.mjs";
4
+ import { createCustomSolanaConnection as i, createJsonRpcProvider as a } from "./create-provider.mjs";
5
+ import { TX_CONFIRMATION_TIMEOUT_EXTENDED as o } from "../../constants/tx-confirmation.constants.mjs";
6
+ import "../../constants/index.mjs";
7
+ //#region libs/shared/common/src/functions/utils/tx-confirmation.utils.ts
8
+ var s = "confirmed", c = async (e, t, r = {}) => {
9
+ let { evmConfirmations: i = 1, evmTimeoutMs: s = o } = r, c = t.startsWith("0x") ? t : `0x${t}`, l = await a(e).waitForTransaction(c, i, s);
10
+ if (!l || l.status !== 1) throw Error(n.TRANSACTION_NOT_CONFIRMED);
11
+ return l;
12
+ }, l = async (e, n, r = {}) => {
13
+ let { solanaCommitment: a = s } = r, { fetchRpcUrl: o } = t[e];
14
+ if (!o) throw Error("RPC URL not found for the specified chain ID");
15
+ let c = await i(o, a).confirmTransaction(n, a);
16
+ if (c.value.err) throw Error("Transaction failed");
17
+ return c;
18
+ }, u = async (t, n, i = {}) => {
19
+ try {
20
+ if (e(t)) {
21
+ await l(t, n, i);
22
+ return;
23
+ }
24
+ await c(t, n.startsWith("0x") ? n : `0x${n}`, i);
25
+ } catch (e) {
26
+ throw r.error("waitForTransactionConfirmation failed", {
27
+ chainId: t,
28
+ txHash: n,
29
+ error: e
30
+ }), e;
31
+ }
32
+ };
33
+ //#endregion
34
+ export { c as waitForEthereumTransactionConfirmation, l as waitForSolanaTransactionConfirmation, u as waitForTransactionConfirmation };
@@ -0,0 +1 @@
1
+ require(`../../../../_virtual/_rolldown/runtime.cjs`),new(require(`ua-parser-js`)).UAParser;
@@ -0,0 +1,3 @@
1
+ import { UAParser as e } from "ua-parser-js";
2
+ new e();
3
+ //#endregion
@@ -0,0 +1 @@
1
+ require(`../../constants/chains.constants.cjs`),require(`./addresses.cjs`);
@@ -0,0 +1 @@
1
+ export declare const validateWalletAddressForChainId: (walletAddress: string, chainId: number) => void;
@@ -0,0 +1,2 @@
1
+ import "../../constants/chains.constants.mjs";
2
+ import "./addresses.mjs";
@@ -0,0 +1 @@
1
+ require(`@solana/web3.js`);
@@ -0,0 +1,4 @@
1
+ import { SolanaWallet } from '../../types/solana.types';
2
+ import { TronWallet } from '../../types/tron.types';
3
+ export declare const createVoidSolanaWallet: (ethereumAddress: string) => SolanaWallet;
4
+ export declare const createVoidTronWallet: (address: string) => TronWallet;
@@ -0,0 +1 @@
1
+ import "@solana/web3.js";
@@ -0,0 +1 @@
1
+ require(`../web3/etherFunctions.cjs`);
@@ -0,0 +1 @@
1
+ import "../web3/etherFunctions.mjs";
@@ -0,0 +1 @@
1
+ require(`ethers`);
@@ -0,0 +1 @@
1
+ import "ethers";
@@ -0,0 +1 @@
1
+ require(`../utils/index.cjs`);
@@ -0,0 +1,9 @@
1
+ import { Connector } from 'wagmi';
2
+ import { WalletGroup } from '../connectors.types';
3
+ export declare const openMetaMaskApp: () => void;
4
+ export declare const isInjectedConnector: (c: Connector) => boolean;
5
+ export declare const isMockConnector: (c: Connector) => boolean;
6
+ export declare const isSolanaConnector: (c: Connector) => boolean;
7
+ export declare const isTronConnector: (c: Connector) => boolean;
8
+ export declare const isWalletConnectConnector: (c: Connector) => boolean;
9
+ export declare const groupConnectorsByWallet: (connectors: Connector[]) => WalletGroup[];
@@ -0,0 +1 @@
1
+ import "../utils/index.mjs";
@@ -0,0 +1 @@
1
+ require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../error-handling/error-codes.constants.cjs`);let t=require(`ethers`);var n=e=>BigInt(t.ethers.hexlify(t.ethers.randomBytes(e))),r=(e,n)=>t.ethers.formatUnits(n,e.decimals),i=(n,r)=>{let i=10**(18-n.decimals);try{return t.ethers.parseUnits(r)/BigInt(i)}catch{throw Error(e.transactionErrorCodes.DECIMALS_LIMIT)}},a=(n,r,i)=>{let a=t.ethers.formatUnits(n,r.decimals),o=BigInt(10**(18-i));try{let e=t.ethers.parseUnits(a)/o;return t.ethers.formatUnits(e,i)}catch{throw Error(e.transactionErrorCodes.DECIMALS_LIMIT)}};exports.getAmountInToken=r,exports.getAmountInWei=i,exports.getAmountWithPrecision=a,exports.randomBigInt=n;
@@ -0,0 +1,21 @@
1
+ import { ERC20Token } from '../../types/token.types';
2
+ export declare const ethToWei: (amount: string) => bigint;
3
+ export declare const randomBigInt: (numberOfBytes: number) => bigint;
4
+ export declare const getAmountInToken: (token: ERC20Token, amount: bigint) => string;
5
+ export declare const weiToUsd: (token: ERC20Token, amount: bigint, price: number) => number | undefined;
6
+ export declare const getAmountInWei: (token: ERC20Token, amount: string) => bigint;
7
+ /**
8
+ * Convert a decimal number into bigint through string method and return a bigint and number of decimal places.
9
+ * @param decimal
10
+ * @returns a tuple of [ theBigInt, numberOfDecimalPlaces]
11
+ */
12
+ export declare const toBigIntWithDecimals: (decimal: number) => [bigint, number];
13
+ /** Return getAmountInWei or 0 if error */
14
+ export declare const getAmountInWeiOrZero: (token: ERC20Token, amount: string) => bigint;
15
+ export declare const getAmountWithPrecision: (balance: bigint, token: ERC20Token, precision: number) => string;
16
+ export declare const calculateDollarValue: (token: ERC20Token, tokenAmount: bigint, tokenPriceDollar: number, precision: number) => {
17
+ totalValueDollarsBigInt: bigint;
18
+ precision: number;
19
+ };
20
+ /** Returns same as getAmountWithPrecision but '0' if empty */
21
+ export declare const getAmountWithPrecisionOrZero: (token: ERC20Token | undefined, amount: bigint | undefined) => string;
@@ -0,0 +1,21 @@
1
+ import { transactionErrorCodes as e } from "../../error-handling/error-codes.constants.mjs";
2
+ import { ethers as t } from "ethers";
3
+ //#region libs/shared/common/src/functions/web3/etherFunctions.ts
4
+ var n = (e) => BigInt(t.hexlify(t.randomBytes(e))), r = (e, n) => t.formatUnits(n, e.decimals), i = (n, r) => {
5
+ let i = 10 ** (18 - n.decimals);
6
+ try {
7
+ return t.parseUnits(r) / BigInt(i);
8
+ } catch {
9
+ throw Error(e.DECIMALS_LIMIT);
10
+ }
11
+ }, a = (n, r, i) => {
12
+ let a = t.formatUnits(n, r.decimals), o = BigInt(10 ** (18 - i));
13
+ try {
14
+ let e = t.parseUnits(a) / o;
15
+ return t.formatUnits(e, i);
16
+ } catch {
17
+ throw Error(e.DECIMALS_LIMIT);
18
+ }
19
+ };
20
+ //#endregion
21
+ export { r as getAmountInToken, i as getAmountInWei, a as getAmountWithPrecision, n as randomBigInt };
@@ -0,0 +1 @@
1
+ require(`../../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../../constants/chains.constants.cjs`),t=require(`../../utils/caseInsensitive.utils.cjs`),n=require(`../../../data-structures/utxo/Utxo.cjs`),r=require(`../../utils/upToDateState.cjs`),i=require(`../../utils/cacheFunctions.cjs`),a=require(`../../utils/encodeTokenWithId.cjs`),o=require(`../../utils/solanaMint.utils.cjs`),s=require(`./getInputUtxosEnclave.cjs`),c=require(`../../utils/addresses.cjs`),l=require(`../../../API/scheduled-transactions-calls.cjs`),u=require(`../../utils/tron.utils.cjs`);var d=new(require(`async-mutex`)).Mutex,f=async(e,t)=>e.allowParallelBalanceLocalDecryption?t():d.runExclusive(t),p=e=>e?.[0]===0n&&e?.[1]===1n,m=async(e,t,n,a,o,s,c,l,u)=>f(e,async()=>{u+=1;let d=s.slice(u),{lastOutput:f,additionalEncryptedOutputs:p}=await e.utxoUtils.batchProcess(d,l,t,n),m=[...c,...p];return await r.checkAddressNotUpdated(e,a),i.setHinkalCache({lastOutput:f,encryptedOutputs:m},e,n,o),await e.utxoUtils.buildBatchProcess(m,t,n)}),h=async(e,t,n,r)=>{let{utxos:a,encryptedOutputs:o,lastOutput:c}=await s.getInputUtxosEnclave(e,n,t);return i.setHinkalCache({encryptedOutputs:o,lastOutput:c},e,n,r),a},g=async(e,t,n,r,i,a,o,s,c)=>{try{return await h(e,t,n,i)}catch{return m(e,t,n,r,i,a,o,s,c)}},_=e=>{if(Array.isArray(e))return e;if(e!==void 0)return[e]},v=async(e,t,n)=>await e.utxoUtils.batchFilterUtxosWithNullifier(t,n),y=(e,t,r,i,a,o,s)=>{for(e.sort((e,t)=>e.amount<=t.amount?1:-1);e.length<t||e.length>t&&e.length<6;)if(e.push(new n.Utxo({amount:0n,erc20TokenAddress:o,mintAddress:s,nullifyingKey:i,spendingPublicKey:a})),r)for(;e.length>6;)e.splice(e.length-1)},b=async({hinkal:e,chainId:t,passedShieldedPublicKey:n=void 0,ethAddress:a=void 0,resetCacheBefore:o=!1,allowRemoteDecryption:s=!1,useBlockedUtxos:c=!1})=>{let l=a??await e.getEthereumAddress(),u=n??e.userKeys.getShieldedPublicKey(),{userKeys:d}=e,f=e.encryptedOutputsByChain[t],h=e.nullifiersByChain[t],_=Array.from(f);o&&i.resetCache(e,t,u);let{encryptedOutputs:y,lastOutput:b}=i.getHinkalCache(e,t,u);await r.checkAddressNotUpdated(e,l);let x=b!==``,S=_.findIndex(e=>e.value===b),C=S>-1,w=!x&&S===-1,T=e.areMerkleTreeUpdatesDisabled(),E=!T&&(C||!s&&w),D=!T&&s&&w,O=!E&&!D,k=[];E?k=await m(e,d,t,l,u,_,y,b,S):D?k=await g(e,d,t,l,u,_,y,b,S):O&&(k=await e.utxoUtils.buildBatchProcess(y,d,t)),await r.checkAddressNotUpdated(e,l);let A=await v(e,k,h);return{inputUtxos:(c?A.filter(e=>e.isBlocked):A.filter(e=>!e.isBlocked)).filter(e=>!p(e.H0))}},x=async({hinkal:t,chainId:n,passedShieldedPublicKey:r=void 0,ethAddress:i=void 0,resetCacheBefore:a=!1,allowRemoteDecryption:o=!1})=>{let s=i??await t.getEthereumAddressByChain(n),d=c.hashEthereumAddress(e.isTronLike(n)?u.addressToHexFormat(s):s),{inputUtxos:f}=await b({hinkal:t,chainId:n,passedShieldedPublicKey:r,ethAddress:s,resetCacheBefore:a,allowRemoteDecryption:o,useBlockedUtxos:!0});if(!f.length)return{inputUtxos:[]};let{indexes:p}=await l.getScheduledTransactionsNullifierIndexes({hashedEthereumAddress:d,nullifiers:f.map(e=>e.getNullifier())});return{inputUtxos:p.map(e=>f[e]).filter(e=>!!e)}},S=async({hinkal:n,tokenWithId:r,minInput:i=2,sliceIfMore6:s=!0,chainId:c,passedShieldedPrivateKey:l=void 0,passedShieldedPublicKey:u=void 0,ethAddress:d=void 0,resetCacheBefore:f=!1,ensuredTokensWithId:p,allowRemoteDecryption:m=!1,useBlockedUtxos:h=!1})=>{let g=l??n.userKeys.getShieldedPrivateKey(),v=n.userKeys.getSpendingKeyPair().pubSpendingBJJPoint,{inputUtxos:S}=h?await x({hinkal:n,chainId:c,ethAddress:d,passedShieldedPrivateKey:l,resetCacheBefore:f,allowRemoteDecryption:m}):await b({hinkal:n,tokenWithId:r,minInput:i,sliceIfMore6:s,chainId:c,passedShieldedPrivateKey:l,passedShieldedPublicKey:u,ethAddress:d,resetCacheBefore:f,allowRemoteDecryption:m}),C=_(r),w=new Map;S.forEach(e=>{let n=e.getTokenAddress(c);if(C&&!C.some(e=>t.caseInsensitiveEqual(e,n)))return;let r=a.normalizeTokenAddress(c,n),i=w.get(r)??[];w.set(r,[...i,e])}),p?.forEach(e=>{let t=a.normalizeTokenAddress(c,e);w.set(t,w.get(t)??[])});for(let[t,n]of w){let r=t,a=e.isSolanaLike(c),l=a?r:void 0;y(n,i,s,g,v,a?o.formatMintAddress(r).compressedAddress.toLowerCase():r.toLowerCase(),l)}return w};exports.attemptGetInputUtxosRemotely=g,exports.getInputUtxoAndBalance=b,exports.getInputUtxoAndBalanceOfStuckUtxos=x,exports.getInputUtxoAndBalancePerToken=S,exports.getInputUtxosRemotely=h;
@@ -0,0 +1,36 @@
1
+ import { IHinkal } from '../../../data-structures/Hinkal/IHinkal';
2
+ import { UserKeys } from '../../../data-structures/crypto-keys/keys';
3
+ import { Utxo } from '../../../data-structures/utxo/Utxo';
4
+ import { EncryptedOutputWithSign } from '../../../types/commitments.types';
5
+ interface IGetInputUtxos {
6
+ hinkal: IHinkal;
7
+ chainId: number;
8
+ tokenWithId?: string | string[];
9
+ minInput?: number;
10
+ sliceIfMore6?: boolean;
11
+ passedShieldedPrivateKey?: string;
12
+ passedShieldedPublicKey?: string;
13
+ ethAddress?: string;
14
+ resetCacheBefore?: boolean;
15
+ allowRemoteDecryption?: boolean;
16
+ ensuredTokensWithId?: string[];
17
+ useBlockedUtxos?: boolean;
18
+ }
19
+ export declare const getInputUtxosRemotely: (hinkal: IHinkal, userKeys: UserKeys, currentChainId: number, shieldedPublicKey: string) => Promise<Utxo[]>;
20
+ export declare const attemptGetInputUtxosRemotely: (hinkal: IHinkal, userKeys: UserKeys, currentChainId: number, ethereumAddress: string, shieldedPublicKey: string, hinkalOutputs: EncryptedOutputWithSign<boolean>[], cachedEncryptedOutputs: EncryptedOutputWithSign<boolean>[], lastOutput: string, lastOutputIndex: number) => Promise<Utxo[]>;
21
+ /**
22
+ *
23
+ * @param hinkal instance of the hinkal class
24
+ * @param erc20TokenAddress erc20 token address
25
+ * @param minInput min number of input UTXOs
26
+ * @param sliceIfMore6 max upper bound on input UTXOs controller
27
+ * @returns UTXOs for particular erc20 token address
28
+ */
29
+ export declare const getInputUtxoAndBalance: ({ hinkal, chainId, passedShieldedPublicKey, ethAddress, resetCacheBefore, allowRemoteDecryption, useBlockedUtxos, }: IGetInputUtxos) => Promise<{
30
+ inputUtxos: Utxo[];
31
+ }>;
32
+ export declare const getInputUtxoAndBalanceOfStuckUtxos: ({ hinkal, chainId, passedShieldedPublicKey, ethAddress, resetCacheBefore, allowRemoteDecryption, }: IGetInputUtxos) => Promise<{
33
+ inputUtxos: Utxo[];
34
+ }>;
35
+ export declare const getInputUtxoAndBalancePerToken: ({ hinkal, tokenWithId, minInput, sliceIfMore6, chainId, passedShieldedPrivateKey, passedShieldedPublicKey, ethAddress, resetCacheBefore, ensuredTokensWithId, allowRemoteDecryption, useBlockedUtxos, }: IGetInputUtxos) => Promise<Map<string, Utxo[]>>;
36
+ export {};
@@ -0,0 +1,105 @@
1
+ import { isSolanaLike as e, isTronLike as t } from "../../../constants/chains.constants.mjs";
2
+ import { caseInsensitiveEqual as n } from "../../utils/caseInsensitive.utils.mjs";
3
+ import { Utxo as r } from "../../../data-structures/utxo/Utxo.mjs";
4
+ import { checkAddressNotUpdated as i } from "../../utils/upToDateState.mjs";
5
+ import { getHinkalCache as a, resetCache as o, setHinkalCache as s } from "../../utils/cacheFunctions.mjs";
6
+ import { normalizeTokenAddress as c } from "../../utils/encodeTokenWithId.mjs";
7
+ import { formatMintAddress as l } from "../../utils/solanaMint.utils.mjs";
8
+ import { getInputUtxosEnclave as u } from "./getInputUtxosEnclave.mjs";
9
+ import { hashEthereumAddress as d } from "../../utils/addresses.mjs";
10
+ import { getScheduledTransactionsNullifierIndexes as f } from "../../../API/scheduled-transactions-calls.mjs";
11
+ import { addressToHexFormat as p } from "../../utils/tron.utils.mjs";
12
+ import { Mutex as m } from "async-mutex";
13
+ //#region libs/shared/common/src/functions/web3/events/getInputUtxoAndBalance.ts
14
+ var h = new m(), g = async (e, t) => e.allowParallelBalanceLocalDecryption ? t() : h.runExclusive(t), _ = (e) => e?.[0] === 0n && e?.[1] === 1n, v = async (e, t, n, r, a, o, c, l, u) => g(e, async () => {
15
+ u += 1;
16
+ let d = o.slice(u), { lastOutput: f, additionalEncryptedOutputs: p } = await e.utxoUtils.batchProcess(d, l, t, n), m = [...c, ...p];
17
+ return await i(e, r), s({
18
+ lastOutput: f,
19
+ encryptedOutputs: m
20
+ }, e, n, a), await e.utxoUtils.buildBatchProcess(m, t, n);
21
+ }), y = async (e, t, n, r) => {
22
+ let { utxos: i, encryptedOutputs: a, lastOutput: o } = await u(e, n, t);
23
+ return s({
24
+ encryptedOutputs: a,
25
+ lastOutput: o
26
+ }, e, n, r), i;
27
+ }, b = async (e, t, n, r, i, a, o, s, c) => {
28
+ try {
29
+ return await y(e, t, n, i);
30
+ } catch {
31
+ return v(e, t, n, r, i, a, o, s, c);
32
+ }
33
+ }, x = (e) => {
34
+ if (Array.isArray(e)) return e;
35
+ if (e !== void 0) return [e];
36
+ }, S = async (e, t, n) => await e.utxoUtils.batchFilterUtxosWithNullifier(t, n), C = (e, t, n, i, a, o, s) => {
37
+ for (e.sort((e, t) => e.amount <= t.amount ? 1 : -1); e.length < t || e.length > t && e.length < 6;) if (e.push(new r({
38
+ amount: 0n,
39
+ erc20TokenAddress: o,
40
+ mintAddress: s,
41
+ nullifyingKey: i,
42
+ spendingPublicKey: a
43
+ })), n) for (; e.length > 6;) e.splice(e.length - 1);
44
+ }, w = async ({ hinkal: e, chainId: t, passedShieldedPublicKey: n = void 0, ethAddress: r = void 0, resetCacheBefore: s = !1, allowRemoteDecryption: c = !1, useBlockedUtxos: l = !1 }) => {
45
+ let u = r ?? await e.getEthereumAddress(), d = n ?? e.userKeys.getShieldedPublicKey(), { userKeys: f } = e, p = e.encryptedOutputsByChain[t], m = e.nullifiersByChain[t], h = Array.from(p);
46
+ s && o(e, t, d);
47
+ let { encryptedOutputs: g, lastOutput: y } = a(e, t, d);
48
+ await i(e, u);
49
+ let x = y !== "", C = h.findIndex((e) => e.value === y), w = C > -1, T = !x && C === -1, E = e.areMerkleTreeUpdatesDisabled(), D = !E && (w || !c && T), O = !E && c && T, k = !D && !O, A = [];
50
+ D ? A = await v(e, f, t, u, d, h, g, y, C) : O ? A = await b(e, f, t, u, d, h, g, y, C) : k && (A = await e.utxoUtils.buildBatchProcess(g, f, t)), await i(e, u);
51
+ let j = await S(e, A, m);
52
+ return { inputUtxos: (l ? j.filter((e) => e.isBlocked) : j.filter((e) => !e.isBlocked)).filter((e) => !_(e.H0)) };
53
+ }, T = async ({ hinkal: e, chainId: n, passedShieldedPublicKey: r = void 0, ethAddress: i = void 0, resetCacheBefore: a = !1, allowRemoteDecryption: o = !1 }) => {
54
+ let s = i ?? await e.getEthereumAddressByChain(n), c = d(t(n) ? p(s) : s), { inputUtxos: l } = await w({
55
+ hinkal: e,
56
+ chainId: n,
57
+ passedShieldedPublicKey: r,
58
+ ethAddress: s,
59
+ resetCacheBefore: a,
60
+ allowRemoteDecryption: o,
61
+ useBlockedUtxos: !0
62
+ });
63
+ if (!l.length) return { inputUtxos: [] };
64
+ let { indexes: u } = await f({
65
+ hashedEthereumAddress: c,
66
+ nullifiers: l.map((e) => e.getNullifier())
67
+ });
68
+ return { inputUtxos: u.map((e) => l[e]).filter((e) => !!e) };
69
+ }, E = async ({ hinkal: t, tokenWithId: r, minInput: i = 2, sliceIfMore6: a = !0, chainId: o, passedShieldedPrivateKey: s = void 0, passedShieldedPublicKey: u = void 0, ethAddress: d = void 0, resetCacheBefore: f = !1, ensuredTokensWithId: p, allowRemoteDecryption: m = !1, useBlockedUtxos: h = !1 }) => {
70
+ let g = s ?? t.userKeys.getShieldedPrivateKey(), _ = t.userKeys.getSpendingKeyPair().pubSpendingBJJPoint, { inputUtxos: v } = h ? await T({
71
+ hinkal: t,
72
+ chainId: o,
73
+ ethAddress: d,
74
+ passedShieldedPrivateKey: s,
75
+ resetCacheBefore: f,
76
+ allowRemoteDecryption: m
77
+ }) : await w({
78
+ hinkal: t,
79
+ tokenWithId: r,
80
+ minInput: i,
81
+ sliceIfMore6: a,
82
+ chainId: o,
83
+ passedShieldedPrivateKey: s,
84
+ passedShieldedPublicKey: u,
85
+ ethAddress: d,
86
+ resetCacheBefore: f,
87
+ allowRemoteDecryption: m
88
+ }), y = x(r), b = /* @__PURE__ */ new Map();
89
+ v.forEach((e) => {
90
+ let t = e.getTokenAddress(o);
91
+ if (y && !y.some((e) => n(e, t))) return;
92
+ let r = c(o, t), i = b.get(r) ?? [];
93
+ b.set(r, [...i, e]);
94
+ }), p?.forEach((e) => {
95
+ let t = c(o, e);
96
+ b.set(t, b.get(t) ?? []);
97
+ });
98
+ for (let [t, n] of b) {
99
+ let r = t, s = e(o), c = s ? r : void 0;
100
+ C(n, i, a, g, _, s ? l(r).compressedAddress.toLowerCase() : r.toLowerCase(), c);
101
+ }
102
+ return b;
103
+ };
104
+ //#endregion
105
+ export { b as attemptGetInputUtxosRemotely, w as getInputUtxoAndBalance, T as getInputUtxoAndBalanceOfStuckUtxos, E as getInputUtxoAndBalancePerToken, y as getInputUtxosRemotely };
@@ -0,0 +1 @@
1
+ require(`../../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../../constants/chains.constants.cjs`),t=require(`../../../data-structures/crypto-keys/keys.cjs`),n=require(`../../../data-structures/utxo/Utxo.cjs`),r=require(`../../utils/encryptInputForEnclave.cjs`),i=require(`../../utils/solanaMint.utils.cjs`),a=require(`../../utils/customEnclaveFunctionsRegister.cjs`),o=require(`../../utils/serialize-utxos.utils.cjs`);let s=require(`ethers`),c=require(`@solana/web3.js`);var l=e=>{if(!e)return;let t=s.ethers.getBytes(e);if(t.length!==32)return;let n=new c.PublicKey(t),r=n.toBase58(),{compressedAddress:a}=i.formatMintAddress(n);return{mintBase58:r,compressedAddress:a}},u=async(e,t,n)=>{let{keyCiphertext:i,inputCiphertext:a}=await r.makeEnclaveHandshakeAndEncryptUint8Array(n);return e.getAPI().decryptUtxoEnclaveCall(t,i,a)},d=async(r,i,c)=>{let d=c.getShieldedPrivateKey(),{privateKey:f,publicKey:p}=t.UserKeys.getEncryptionKeyPair(d),m=c.getSpendingKeyPair().pubSpendingBJJPoint,h=s.ethers.solidityPacked([`uint256`,`uint256`,`uint256`],[p,f,d]),g=s.ethers.getBytes(h),_=a.getCustomUtxoDecryptor(),{utxos:v,lastOutput:y,encryptedOutputs:b}=await(_?_(i,g):u(r,i,g));return{utxos:v.map(t=>{let r=t;if(e.isSolanaLike(i)){let e=l(t.mintAddress);if(!e)throw Error(`Invalid mint address`);r={...r,erc20TokenAddress:e.compressedAddress,mintAddress:e.mintBase58}}return new n.Utxo({...o.deserializeUtxoConstructorParams(r),nullifyingKey:d,spendingPublicKey:m})}),encryptedOutputs:b,lastOutput:y}};exports.getInputUtxosEnclave=d;