@gurge/sdk 0.3.142 → 0.3.151

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 (1106) hide show
  1. package/README.md +43 -29
  2. package/common/src/API/API.cjs +1 -1
  3. package/common/src/API/API.d.ts +97 -0
  4. package/common/src/API/API.mjs +96 -121
  5. package/common/src/API/TokenCallsCachedHelper.d.ts +15 -0
  6. package/common/src/API/admin-calls.cjs +1 -1
  7. package/common/src/API/admin-calls.d.ts +9 -0
  8. package/common/src/API/admin-calls.mjs +3 -1
  9. package/common/src/API/callLifiAPI.cjs +1 -1
  10. package/common/src/API/callLifiAPI.d.ts +37 -0
  11. package/common/src/API/callLifiAPI.mjs +7 -2
  12. package/common/src/API/callMonitor.d.ts +9 -0
  13. package/common/src/API/callNearIntentsAPI.cjs +1 -1
  14. package/common/src/API/callNearIntentsAPI.d.ts +3 -0
  15. package/common/src/API/callNearIntentsAPI.mjs +2 -2
  16. package/common/src/API/callOkxAPI.d.ts +10 -0
  17. package/common/src/API/callRelayer.cjs +1 -1
  18. package/common/src/API/callRelayer.d.ts +76 -0
  19. package/common/src/API/callRelayer.mjs +7 -1
  20. package/common/src/API/checkRisk.d.ts +1 -0
  21. package/common/src/API/dashboardAccountCalls.d.ts +24 -0
  22. package/common/src/API/dashboardAccountMemberCalls.cjs +1 -1
  23. package/common/src/API/dashboardAccountMemberCalls.d.ts +49 -0
  24. package/common/src/API/dashboardAccountMemberCalls.mjs +5 -2
  25. package/common/src/API/dashboardBalanceCalls.d.ts +12 -0
  26. package/common/src/API/dashboardContactCalls.d.ts +9 -0
  27. package/common/src/API/dashboardPayoutCalls.cjs +1 -1
  28. package/common/src/API/dashboardPayoutCalls.d.ts +15 -0
  29. package/common/src/API/dashboardPayoutCalls.mjs +4 -1
  30. package/common/src/API/dashboardTransactionCalls.cjs +1 -1
  31. package/common/src/API/dashboardTransactionCalls.d.ts +6 -0
  32. package/common/src/API/dashboardTransactionCalls.mjs +2 -2
  33. package/common/src/API/enclaveRecipientInfoCalls.d.ts +12 -0
  34. package/common/src/API/enclaveSignatureCalls.cjs +1 -1
  35. package/common/src/API/enclaveSignatureCalls.d.ts +6 -0
  36. package/common/src/API/enclaveSignatureCalls.mjs +5 -8
  37. package/common/src/API/enclaveUtxoCalls.cjs +1 -1
  38. package/common/src/API/enclaveUtxoCalls.d.ts +59 -0
  39. package/common/src/API/enclaveUtxoCalls.mjs +16 -17
  40. package/common/src/API/evm-rpc-fallback.cjs +1 -0
  41. package/common/src/API/evm-rpc-fallback.d.ts +1 -0
  42. package/common/src/API/evm-rpc-fallback.mjs +17 -0
  43. package/common/src/API/evm-token-assets.d.ts +8 -0
  44. package/common/src/API/fetchCommitmentsCache.d.ts +19 -0
  45. package/common/src/API/get-token-data.d.ts +6 -0
  46. package/common/src/API/get-token-price-chart-data.d.ts +16 -0
  47. package/common/src/API/getCoingeckoPrice.d.ts +21 -0
  48. package/common/src/API/getGasEstimates.d.ts +10 -0
  49. package/common/src/API/getOdosPriceForToken.cjs +1 -0
  50. package/common/src/API/getOdosPriceForToken.d.ts +1 -0
  51. package/common/src/API/getOdosPriceForToken.mjs +14 -0
  52. package/common/src/API/getServerURL.d.ts +7 -0
  53. package/common/src/API/getTokenPrice.d.ts +10 -0
  54. package/common/src/API/getWebsiteURL.d.ts +3 -0
  55. package/common/src/API/index.cjs +1 -1
  56. package/common/src/API/index.d.ts +24 -0
  57. package/common/src/API/index.mjs +4 -5
  58. package/common/src/API/onrampCalls.d.ts +20 -0
  59. package/common/src/API/payoutNotificationStateCalls.cjs +1 -0
  60. package/common/src/API/payoutNotificationStateCalls.d.ts +10 -0
  61. package/common/src/API/payoutNotificationStateCalls.mjs +10 -0
  62. package/common/src/API/privacy-score-calls.d.ts +17 -0
  63. package/common/src/API/privateSendEmailNotificationsCalls.d.ts +8 -0
  64. package/common/src/API/privateSendNonceCalls.d.ts +13 -0
  65. package/common/src/API/privateSendRecipientInfoCalls.cjs +1 -1
  66. package/common/src/API/privateSendRecipientInfoCalls.d.ts +8 -0
  67. package/common/src/API/privateSendRecipientInfoCalls.mjs +12 -6
  68. package/common/src/API/proxyAccountsCalls.cjs +1 -1
  69. package/common/src/API/proxyAccountsCalls.d.ts +5 -0
  70. package/common/src/API/proxyAccountsCalls.mjs +11 -10
  71. package/common/src/API/relayCalls.d.ts +5 -0
  72. package/common/src/API/resolve-sns.d.ts +1 -0
  73. package/common/src/API/rewardsUserCalls.cjs +1 -1
  74. package/common/src/API/rewardsUserCalls.d.ts +21 -0
  75. package/common/src/API/rewardsUserCalls.mjs +2 -10
  76. package/common/src/API/route-config.cjs +1 -0
  77. package/common/src/API/route-config.d.ts +1 -0
  78. package/common/src/API/route-config.mjs +26 -0
  79. package/common/src/API/scheduled-transactions-calls.cjs +1 -1
  80. package/common/src/API/scheduled-transactions-calls.d.ts +17 -0
  81. package/common/src/API/scheduled-transactions-calls.mjs +2 -6
  82. package/common/src/API/seedless-calls.d.ts +53 -0
  83. package/common/src/API/simulate-batch-tx.d.ts +3 -0
  84. package/common/src/API/simulate-transaction.d.ts +5 -0
  85. package/common/src/API/snapshot-event-calls.d.ts +7 -0
  86. package/common/src/API/solana-nft-assets.d.ts +1 -0
  87. package/common/src/API/solana-priority-fee.cjs +1 -0
  88. package/common/src/API/solana-priority-fee.d.ts +3 -0
  89. package/common/src/API/solana-priority-fee.mjs +20 -0
  90. package/common/src/API/solana-rpc-fallback.cjs +1 -0
  91. package/common/src/API/solana-rpc-fallback.d.ts +1 -0
  92. package/common/src/API/solana-rpc-fallback.mjs +13 -0
  93. package/common/src/API/temporaryWalletCalls.cjs +1 -1
  94. package/common/src/API/temporaryWalletCalls.d.ts +11 -0
  95. package/common/src/API/temporaryWalletCalls.mjs +8 -9
  96. package/common/src/API/tenderly.api.cjs +1 -1
  97. package/common/src/API/tenderly.api.d.ts +15 -0
  98. package/common/src/API/tenderly.api.mjs +1 -1
  99. package/common/src/API/token-calls.d.ts +4 -0
  100. package/common/src/API/tronSubsidyCalls.d.ts +13 -0
  101. package/common/src/API/weeklyAnalyticCalls.cjs +1 -1
  102. package/common/src/API/weeklyAnalyticCalls.d.ts +12 -0
  103. package/common/src/API/weeklyAnalyticCalls.mjs +2 -5
  104. package/common/src/constants/activity.constants.d.ts +2 -0
  105. package/common/src/constants/addresses.constants.cjs +1 -1
  106. package/common/src/constants/addresses.constants.d.ts +28 -0
  107. package/common/src/constants/addresses.constants.mjs +19 -60
  108. package/common/src/constants/auth.constants.d.ts +2 -0
  109. package/common/src/constants/backend.constants.d.ts +12 -0
  110. package/common/src/constants/balance.constants.cjs +1 -0
  111. package/common/src/constants/balance.constants.d.ts +4 -0
  112. package/common/src/constants/balance.constants.mjs +4 -0
  113. package/common/src/constants/bridging.constants.cjs +1 -1
  114. package/common/src/constants/bridging.constants.d.ts +35 -0
  115. package/common/src/constants/bridging.constants.mjs +2 -1
  116. package/common/src/constants/chains.constants.cjs +1 -1
  117. package/common/src/constants/chains.constants.d.ts +74 -0
  118. package/common/src/constants/chains.constants.mjs +175 -198
  119. package/common/src/constants/coingecko.constants.cjs +1 -1
  120. package/common/src/constants/coingecko.constants.d.ts +46 -0
  121. package/common/src/constants/coingecko.constants.mjs +1 -1
  122. package/common/src/constants/contracts.constants.cjs +1 -1
  123. package/common/src/constants/contracts.constants.d.ts +11 -0
  124. package/common/src/constants/contracts.constants.mjs +16 -34
  125. package/common/src/constants/conversion.constants.d.ts +1 -0
  126. package/common/src/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
  127. package/common/src/constants/deploy-data/deploy-data-arbMainnet.json.mjs +8 -9
  128. package/common/src/constants/deploy-data/deploy-data-arcTestnet.json.cjs +1 -1
  129. package/common/src/constants/deploy-data/deploy-data-arcTestnet.json.mjs +7 -6
  130. package/common/src/constants/deploy-data/deploy-data-base.json.cjs +1 -1
  131. package/common/src/constants/deploy-data/deploy-data-base.json.mjs +8 -9
  132. package/common/src/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -0
  133. package/common/src/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +12 -0
  134. package/common/src/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
  135. package/common/src/constants/deploy-data/deploy-data-ethMainnet.json.mjs +8 -9
  136. package/common/src/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
  137. package/common/src/constants/deploy-data/deploy-data-localhost.json.mjs +0 -3
  138. package/common/src/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
  139. package/common/src/constants/deploy-data/deploy-data-optimism.json.mjs +8 -9
  140. package/common/src/constants/deploy-data/deploy-data-optimismTest.json.cjs +1 -1
  141. package/common/src/constants/deploy-data/deploy-data-optimismTest.json.mjs +5 -9
  142. package/common/src/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
  143. package/common/src/constants/deploy-data/deploy-data-polygon.json.mjs +8 -9
  144. package/common/src/constants/deploy-data/deploy-data-sepoliaTestnet.json.cjs +1 -1
  145. package/common/src/constants/deploy-data/deploy-data-sepoliaTestnet.json.mjs +0 -1
  146. package/common/src/constants/deploy-data/deploy-data-solana.json.cjs +1 -1
  147. package/common/src/constants/deploy-data/deploy-data-solana.json.mjs +2 -2
  148. package/common/src/constants/deploy-data/deploy-data-tempo.json.cjs +1 -1
  149. package/common/src/constants/deploy-data/deploy-data-tempo.json.mjs +7 -7
  150. package/common/src/constants/deploy-data/deploy-data-tronMainnet.json.cjs +1 -1
  151. package/common/src/constants/deploy-data/deploy-data-tronMainnet.json.mjs +2 -4
  152. package/common/src/constants/deploy-data/deploy-data-tronNile.json.cjs +1 -1
  153. package/common/src/constants/deploy-data/deploy-data-tronNile.json.mjs +2 -4
  154. package/common/src/constants/deploy-data/index.cjs +1 -1
  155. package/common/src/constants/deploy-data/index.d.ts +15 -0
  156. package/common/src/constants/deploy-data/index.mjs +16 -15
  157. package/common/src/constants/deploy-data/mergeDeployData.d.ts +4 -0
  158. package/common/src/constants/deploy-data/shared-deploy-data-evm.json.cjs +1 -1
  159. package/common/src/constants/deploy-data/shared-deploy-data-evm.json.mjs +36 -45
  160. package/common/src/constants/deploy-data/shared-deploy-data-solana.json.cjs +1 -1
  161. package/common/src/constants/deploy-data/shared-deploy-data-solana.json.mjs +1 -1
  162. package/common/src/constants/deploy-data/shared-deploy-data-tron.json.cjs +1 -1
  163. package/common/src/constants/deploy-data/shared-deploy-data-tron.json.mjs +2 -46
  164. package/common/src/constants/enclaveAuth.constants.d.ts +5 -0
  165. package/common/src/constants/events.constants.cjs +1 -1
  166. package/common/src/constants/events.constants.d.ts +1 -0
  167. package/common/src/constants/events.constants.mjs +1 -15
  168. package/common/src/constants/fees.constants.cjs +1 -1
  169. package/common/src/constants/fees.constants.d.ts +9 -0
  170. package/common/src/constants/fees.constants.mjs +2 -2
  171. package/common/src/constants/function-signatures.constants.d.ts +4 -0
  172. package/common/src/constants/images.constants.d.ts +1 -0
  173. package/common/src/constants/index.cjs +1 -1
  174. package/common/src/constants/index.d.ts +32 -0
  175. package/common/src/constants/index.mjs +1 -1
  176. package/common/src/constants/lifi.constants.cjs +1 -1
  177. package/common/src/constants/lifi.constants.d.ts +3 -0
  178. package/common/src/constants/lifi.constants.mjs +6 -3
  179. package/common/src/constants/link.constant.d.ts +1 -0
  180. package/common/src/constants/mediaUrls.constants.d.ts +43 -0
  181. package/common/src/constants/oauthUrls.constants.d.ts +4 -0
  182. package/common/src/constants/okx.constants.d.ts +3 -0
  183. package/common/src/constants/pay.constants.d.ts +2 -0
  184. package/common/src/constants/permit2.constants.d.ts +7 -0
  185. package/common/src/constants/presale.constants.d.ts +87 -0
  186. package/common/src/constants/protocol.constants.cjs +2 -1
  187. package/common/src/constants/protocol.constants.d.ts +74 -0
  188. package/common/src/constants/protocol.constants.mjs +3 -15
  189. package/common/src/constants/reorg-depths.constants.d.ts +17 -0
  190. package/common/src/constants/save-depths.d.ts +19 -0
  191. package/common/src/constants/schedule.constants.d.ts +2 -0
  192. package/common/src/constants/server.constants.cjs +1 -1
  193. package/common/src/constants/server.constants.d.ts +116 -0
  194. package/common/src/constants/server.constants.mjs +19 -49
  195. package/common/src/constants/tokens.constants.cjs +1 -1
  196. package/common/src/constants/tokens.constants.d.ts +5 -0
  197. package/common/src/constants/tokens.constants.mjs +4 -1
  198. package/common/src/constants/tx-confirmation.constants.cjs +1 -1
  199. package/common/src/constants/tx-confirmation.constants.d.ts +5 -0
  200. package/common/src/constants/tx-confirmation.constants.mjs +2 -2
  201. package/common/src/constants/vite.constants.d.ts +16 -0
  202. package/common/src/constants/wallet.constants.d.ts +1 -0
  203. package/common/src/crypto/babyJub.d.ts +16 -0
  204. package/common/src/crypto/ecdh-sealed-keys.cjs +1 -1
  205. package/common/src/crypto/ecdh-sealed-keys.d.ts +22 -0
  206. package/common/src/crypto/ecdh-sealed-keys.mjs +17 -2
  207. package/common/src/crypto/ecdh.d.ts +2 -0
  208. package/common/src/crypto/eddsa.d.ts +8 -0
  209. package/common/src/crypto/index.cjs +1 -1
  210. package/common/src/crypto/index.d.ts +6 -0
  211. package/common/src/crypto/index.mjs +1 -2
  212. package/common/src/crypto/poseidon.d.ts +15 -0
  213. package/common/src/crypto/preProcessing.d.ts +1 -0
  214. package/common/src/data-structures/AccountActions/AccountActions.d.ts +17 -0
  215. package/common/src/data-structures/AccountActions/index.d.ts +1 -0
  216. package/common/src/data-structures/ApprovalDBs/EventsPublicApprovalsDB.d.ts +17 -0
  217. package/common/src/data-structures/ApprovalDBs/index.d.ts +1 -0
  218. package/common/src/data-structures/BlockchainEvent/BlockchainEvent.d.ts +14 -0
  219. package/common/src/data-structures/Hinkal/Hinkal.cjs +1 -1
  220. package/common/src/data-structures/Hinkal/Hinkal.d.ts +120 -0
  221. package/common/src/data-structures/Hinkal/Hinkal.mjs +142 -174
  222. package/common/src/data-structures/Hinkal/IHinkal.d.ts +106 -0
  223. package/common/src/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
  224. package/common/src/data-structures/Hinkal/handleAutoDepositBack.d.ts +3 -0
  225. package/common/src/data-structures/Hinkal/handleAutoDepositBack.mjs +36 -35
  226. package/common/src/data-structures/Hinkal/hinkalActionReceive.cjs +1 -1
  227. package/common/src/data-structures/Hinkal/hinkalActionReceive.d.ts +7 -0
  228. package/common/src/data-structures/Hinkal/hinkalActionReceive.mjs +13 -11
  229. package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.cjs +1 -0
  230. package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.d.ts +6 -0
  231. package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.mjs +100 -0
  232. package/common/src/data-structures/Hinkal/hinkalClaimUtxo.cjs +1 -1
  233. package/common/src/data-structures/Hinkal/hinkalClaimUtxo.d.ts +5 -0
  234. package/common/src/data-structures/Hinkal/hinkalClaimUtxo.mjs +40 -50
  235. package/common/src/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
  236. package/common/src/data-structures/Hinkal/hinkalDeposit.d.ts +7 -0
  237. package/common/src/data-structures/Hinkal/hinkalDeposit.mjs +50 -119
  238. package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.cjs +1 -1
  239. package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.d.ts +4 -0
  240. package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.mjs +113 -109
  241. package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
  242. package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +7 -0
  243. package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +98 -64
  244. package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -1
  245. package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.d.ts +21 -0
  246. package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +50 -48
  247. package/common/src/data-structures/Hinkal/hinkalGetRecipientInfo.d.ts +2 -0
  248. package/common/src/data-structures/Hinkal/hinkalNearDepositAndBridge.cjs +1 -1
  249. package/common/src/data-structures/Hinkal/hinkalNearDepositAndBridge.d.ts +6 -0
  250. package/common/src/data-structures/Hinkal/hinkalNearDepositAndBridge.mjs +8 -3
  251. package/common/src/data-structures/Hinkal/hinkalPalEvmDeposit.d.ts +9 -0
  252. package/common/src/data-structures/Hinkal/hinkalPalSolanaDepositPrepare.d.ts +9 -0
  253. package/common/src/data-structures/Hinkal/hinkalPalTronDepositPrepare.d.ts +9 -0
  254. package/common/src/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
  255. package/common/src/data-structures/Hinkal/hinkalPrivateWallet.d.ts +6 -0
  256. package/common/src/data-structures/Hinkal/hinkalPrivateWallet.mjs +50 -38
  257. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -1
  258. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +7 -0
  259. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.mjs +52 -117
  260. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.cjs +1 -1
  261. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.d.ts +10 -0
  262. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.mjs +26 -32
  263. package/common/src/data-structures/Hinkal/hinkalProxySend.cjs +1 -0
  264. package/common/src/data-structures/Hinkal/hinkalProxySend.d.ts +6 -0
  265. package/common/src/data-structures/Hinkal/hinkalProxySend.mjs +16 -0
  266. package/common/src/data-structures/Hinkal/hinkalProxySwap.cjs +1 -1
  267. package/common/src/data-structures/Hinkal/hinkalProxySwap.d.ts +7 -0
  268. package/common/src/data-structures/Hinkal/hinkalProxySwap.mjs +13 -12
  269. package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -1
  270. package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.d.ts +6 -0
  271. package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.mjs +19 -17
  272. package/common/src/data-structures/Hinkal/hinkalSignSubAccount.d.ts +4 -0
  273. package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.cjs +1 -1
  274. package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.d.ts +5 -0
  275. package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.mjs +50 -79
  276. package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
  277. package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +8 -0
  278. package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.mjs +47 -51
  279. package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
  280. package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +28 -0
  281. package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +115 -133
  282. package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.cjs +1 -1
  283. package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.d.ts +5 -0
  284. package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.mjs +16 -12
  285. package/common/src/data-structures/Hinkal/hinkalSolanaProxySend.cjs +1 -1
  286. package/common/src/data-structures/Hinkal/hinkalSolanaProxySend.d.ts +6 -0
  287. package/common/src/data-structures/Hinkal/hinkalSolanaProxySend.mjs +1 -3
  288. package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -1
  289. package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.d.ts +28 -0
  290. package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +82 -56
  291. package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -1
  292. package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +6 -0
  293. package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +11 -13
  294. package/common/src/data-structures/Hinkal/hinkalSolanaSponsoredShield.cjs +1 -0
  295. package/common/src/data-structures/Hinkal/hinkalSolanaSponsoredShield.d.ts +8 -0
  296. package/common/src/data-structures/Hinkal/hinkalSolanaSponsoredShield.mjs +32 -0
  297. package/common/src/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -1
  298. package/common/src/data-structures/Hinkal/hinkalSolanaSwap.d.ts +4 -0
  299. package/common/src/data-structures/Hinkal/hinkalSolanaSwap.mjs +58 -79
  300. package/common/src/data-structures/Hinkal/hinkalSolanaTransact.cjs +1 -0
  301. package/common/src/data-structures/Hinkal/hinkalSolanaTransact.d.ts +3 -0
  302. package/common/src/data-structures/Hinkal/hinkalSolanaTransact.mjs +119 -0
  303. package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -1
  304. package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.d.ts +3 -0
  305. package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.mjs +46 -77
  306. package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -1
  307. package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.d.ts +4 -0
  308. package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +46 -57
  309. package/common/src/data-structures/Hinkal/hinkalSwap.cjs +1 -1
  310. package/common/src/data-structures/Hinkal/hinkalSwap.d.ts +7 -0
  311. package/common/src/data-structures/Hinkal/hinkalSwap.mjs +32 -32
  312. package/common/src/data-structures/Hinkal/hinkalTransact.cjs +1 -0
  313. package/common/src/data-structures/Hinkal/hinkalTransact.d.ts +3 -0
  314. package/common/src/data-structures/Hinkal/hinkalTransact.mjs +106 -0
  315. package/common/src/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
  316. package/common/src/data-structures/Hinkal/hinkalTransfer.d.ts +4 -0
  317. package/common/src/data-structures/Hinkal/hinkalTransfer.mjs +39 -44
  318. package/common/src/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
  319. package/common/src/data-structures/Hinkal/hinkalWithdraw.d.ts +7 -0
  320. package/common/src/data-structures/Hinkal/hinkalWithdraw.mjs +38 -49
  321. package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
  322. package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.d.ts +3 -0
  323. package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +160 -102
  324. package/common/src/data-structures/Hinkal/index.d.ts +25 -0
  325. package/common/src/data-structures/Hinkal/prepareTronDepositToSelf.d.ts +27 -0
  326. package/common/src/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
  327. package/common/src/data-structures/Hinkal/resetMerkleTrees.d.ts +2 -0
  328. package/common/src/data-structures/Hinkal/resetMerkleTrees.mjs +7 -6
  329. package/common/src/data-structures/IndexedDB/activity-db.cjs +1 -1
  330. package/common/src/data-structures/IndexedDB/activity-db.d.ts +14 -0
  331. package/common/src/data-structures/IndexedDB/activity-db.mjs +34 -34
  332. package/common/src/data-structures/IndexedDB/balances-db.d.ts +13 -0
  333. package/common/src/data-structures/IndexedDB/contact-db.cjs +1 -1
  334. package/common/src/data-structures/IndexedDB/contact-db.d.ts +11 -0
  335. package/common/src/data-structures/IndexedDB/contact-db.mjs +14 -28
  336. package/common/src/data-structures/IndexedDB/index.cjs +1 -1
  337. package/common/src/data-structures/IndexedDB/index.d.ts +9 -0
  338. package/common/src/data-structures/IndexedDB/index.mjs +1 -0
  339. package/common/src/data-structures/IndexedDB/key-val-store.cjs +1 -1
  340. package/common/src/data-structures/IndexedDB/key-val-store.d.ts +8 -0
  341. package/common/src/data-structures/IndexedDB/key-val-store.mjs +14 -0
  342. package/common/src/data-structures/IndexedDB/pay-activity-db.cjs +1 -1
  343. package/common/src/data-structures/IndexedDB/pay-activity-db.d.ts +9 -0
  344. package/common/src/data-structures/IndexedDB/pay-activity-db.mjs +43 -1
  345. package/common/src/data-structures/IndexedDB/prices-db.d.ts +9 -0
  346. package/common/src/data-structures/IndexedDB/private-balances-db.cjs +1 -1
  347. package/common/src/data-structures/IndexedDB/private-balances-db.d.ts +10 -0
  348. package/common/src/data-structures/IndexedDB/private-balances-db.mjs +3 -0
  349. package/common/src/data-structures/IndexedDB/scheduled-transactions-db.cjs +1 -0
  350. package/common/src/data-structures/IndexedDB/scheduled-transactions-db.d.ts +11 -0
  351. package/common/src/data-structures/IndexedDB/scheduled-transactions-db.mjs +34 -0
  352. package/common/src/data-structures/IndexedDB/signatures-db.cjs +1 -1
  353. package/common/src/data-structures/IndexedDB/signatures-db.d.ts +10 -0
  354. package/common/src/data-structures/IndexedDB/signatures-db.mjs +11 -11
  355. package/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -1
  356. package/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +21 -0
  357. package/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +29 -26
  358. package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.d.ts +18 -0
  359. package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.d.ts +11 -0
  360. package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.d.ts +18 -0
  361. package/common/src/data-structures/TokenDBs/IPublicTokensDB.d.ts +6 -0
  362. package/common/src/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -1
  363. package/common/src/data-structures/TokenDBs/PrivateTokensDB.d.ts +11 -0
  364. package/common/src/data-structures/TokenDBs/PrivateTokensDB.mjs +17 -18
  365. package/common/src/data-structures/TokenDBs/PublicTokensDB.d.ts +9 -0
  366. package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.d.ts +9 -0
  367. package/common/src/data-structures/TokenDBs/TronPublicTokensDB.d.ts +10 -0
  368. package/common/src/data-structures/TokenDBs/index.d.ts +6 -0
  369. package/common/src/data-structures/TokenDBs/token-visibility-db.d.ts +17 -0
  370. package/common/src/data-structures/ValueCache/ValueCache.d.ts +10 -0
  371. package/common/src/data-structures/ValueCache/index.d.ts +1 -0
  372. package/common/src/data-structures/WalletManager/WalletManager.d.ts +52 -0
  373. package/common/src/data-structures/WalletManager/index.d.ts +1 -0
  374. package/common/src/data-structures/cacheDevices/AttachableMemoryCacheDevice.d.ts +8 -0
  375. package/common/src/data-structures/cacheDevices/BaseCacheDevice.cjs +1 -1
  376. package/common/src/data-structures/cacheDevices/BaseCacheDevice.d.ts +12 -0
  377. package/common/src/data-structures/cacheDevices/BaseCacheDevice.mjs +3 -0
  378. package/common/src/data-structures/cacheDevices/FileCacheDevice.cjs +1 -1
  379. package/common/src/data-structures/cacheDevices/FileCacheDevice.d.ts +13 -0
  380. package/common/src/data-structures/cacheDevices/FileCacheDevice.mjs +12 -3
  381. package/common/src/data-structures/cacheDevices/LocalStorageCacheDevice.d.ts +8 -0
  382. package/common/src/data-structures/cacheDevices/index.d.ts +2 -0
  383. package/common/src/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
  384. package/common/src/data-structures/crypto-keys/decodeUTXO.d.ts +28 -0
  385. package/common/src/data-structures/crypto-keys/decodeUTXO.mjs +11 -71
  386. package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -1
  387. package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.d.ts +17 -0
  388. package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.mjs +39 -23
  389. package/common/src/data-structures/crypto-keys/index.d.ts +4 -0
  390. package/common/src/data-structures/crypto-keys/keyUtils.d.ts +2 -0
  391. package/common/src/data-structures/crypto-keys/keys.cjs +1 -1
  392. package/common/src/data-structures/crypto-keys/keys.d.ts +117 -0
  393. package/common/src/data-structures/crypto-keys/keys.mjs +64 -79
  394. package/common/src/data-structures/custom-token-registry/CustomTokenRegistry.d.ts +12 -0
  395. package/common/src/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.d.ts +34 -0
  396. package/common/src/data-structures/event-service/evm/AbstractEventService.d.ts +14 -0
  397. package/common/src/data-structures/event-service/evm/AbstractNullifierSnapshotService.d.ts +22 -0
  398. package/common/src/data-structures/event-service/evm/AbstractSnapshotService.d.ts +22 -0
  399. package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -1
  400. package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +38 -0
  401. package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.mjs +46 -38
  402. package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.cjs +1 -1
  403. package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.d.ts +11 -0
  404. package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.mjs +2 -2
  405. package/common/src/data-structures/event-service/evm/PollingBlockchainEventEmitter.d.ts +6 -0
  406. package/common/src/data-structures/event-service/helpers/ClientEventHelper.d.ts +10 -0
  407. package/common/src/data-structures/event-service/helpers/PollingEventHelper.d.ts +7 -0
  408. package/common/src/data-structures/event-service/index.d.ts +14 -0
  409. package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs +1 -1
  410. package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.d.ts +34 -0
  411. package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +27 -23
  412. package/common/src/data-structures/event-service/solana/AbstractSolanaEventService.d.ts +17 -0
  413. package/common/src/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.d.ts +22 -0
  414. package/common/src/data-structures/event-service/solana/AbstractSolanaSnapshotService.d.ts +21 -0
  415. package/common/src/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.d.ts +11 -0
  416. package/common/src/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.d.ts +6 -0
  417. package/common/src/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +42 -0
  418. package/common/src/data-structures/http/BasicHttpClient.d.ts +11 -0
  419. package/common/src/data-structures/http/HttpClient.d.ts +10 -0
  420. package/common/src/data-structures/http/index.d.ts +2 -0
  421. package/common/src/data-structures/index.d.ts +22 -0
  422. package/common/src/data-structures/merkle-tree/MerkleTree.cjs +1 -1
  423. package/common/src/data-structures/merkle-tree/MerkleTree.d.ts +93 -0
  424. package/common/src/data-structures/merkle-tree/MerkleTree.mjs +12 -1
  425. package/common/src/data-structures/merkle-tree/MerkleTreeIncompleteError.d.ts +3 -0
  426. package/common/src/data-structures/merkle-tree/index.d.ts +2 -0
  427. package/common/src/data-structures/presale/PresaleContractWrapper.d.ts +23 -0
  428. package/common/src/data-structures/presale/index.d.ts +1 -0
  429. package/common/src/data-structures/private-balances/BalanceChangedHandler.d.ts +9 -0
  430. package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.cjs +1 -1
  431. package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.d.ts +25 -0
  432. package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.mjs +100 -86
  433. package/common/src/data-structures/private-balances/index.d.ts +3 -0
  434. package/common/src/data-structures/private-balances/privateBalancesReducer.d.ts +2 -0
  435. package/common/src/data-structures/provider-adapter/IProviderAdapter.d.ts +36 -0
  436. package/common/src/data-structures/snapshot/SnapshotFetcherService.d.ts +14 -0
  437. package/common/src/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.d.ts +8 -0
  438. package/common/src/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.d.ts +8 -0
  439. package/common/src/data-structures/snapshot/index.d.ts +5 -0
  440. package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.d.ts +8 -0
  441. package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.d.ts +8 -0
  442. package/common/src/data-structures/token-price-fetcher/TokenChecker.cjs +1 -1
  443. package/common/src/data-structures/token-price-fetcher/TokenChecker.d.ts +10 -0
  444. package/common/src/data-structures/token-price-fetcher/TokenChecker.mjs +5 -3
  445. package/common/src/data-structures/token-price-fetcher/index.d.ts +1 -0
  446. package/common/src/data-structures/transactions-manager/history/history.types.d.ts +16 -0
  447. package/common/src/data-structures/transactions-manager/index.d.ts +1 -0
  448. package/common/src/data-structures/utxo/Utxo.cjs +1 -1
  449. package/common/src/data-structures/utxo/Utxo.d.ts +66 -0
  450. package/common/src/data-structures/utxo/Utxo.mjs +7 -17
  451. package/common/src/error-handling/customErrors/ErrorWithAmount.d.ts +4 -0
  452. package/common/src/error-handling/customErrors/ErrorWithIndex.d.ts +4 -0
  453. package/common/src/error-handling/customErrors/ErrorWithTx.d.ts +4 -0
  454. package/common/src/error-handling/customErrors/FeeOverTransactionValueError.d.ts +9 -0
  455. package/common/src/error-handling/customErrors/HttpError.d.ts +4 -0
  456. package/common/src/error-handling/customErrors/SimulationFailureError.d.ts +10 -0
  457. package/common/src/error-handling/customErrors/customErrors.helpers.d.ts +5 -0
  458. package/common/src/error-handling/customErrors/index.d.ts +7 -0
  459. package/common/src/error-handling/error-codes.constants.cjs +2 -2
  460. package/common/src/error-handling/error-codes.constants.d.ts +249 -0
  461. package/common/src/error-handling/error-codes.constants.mjs +30 -32
  462. package/common/src/error-handling/get-error.message.cjs +1 -1
  463. package/common/src/error-handling/get-error.message.d.ts +5 -0
  464. package/common/src/error-handling/get-error.message.mjs +28 -18
  465. package/common/src/error-handling/index.cjs +1 -1
  466. package/common/src/error-handling/index.d.ts +7 -0
  467. package/common/src/error-handling/index.mjs +1 -0
  468. package/common/src/error-handling/isInsufficientFundsError.d.ts +1 -0
  469. package/common/src/error-handling/logError.d.ts +1 -0
  470. package/common/src/error-handling/logger.d.ts +5 -0
  471. package/common/src/error-handling/retrySolanaError.d.ts +1 -0
  472. package/common/src/error-handling/types.d.ts +10 -0
  473. package/common/src/externalABIs/BUSD.d.ts +38 -0
  474. package/common/src/externalABIs/DAI.d.ts +45 -0
  475. package/common/src/externalABIs/SanctionsList.d.ts +35 -0
  476. package/common/src/externalABIs/USDC.d.ts +28 -0
  477. package/common/src/externalABIs/USDR.d.ts +28 -0
  478. package/common/src/externalABIs/USDR3CRV.d.ts +49 -0
  479. package/common/src/externalABIs/USDT.d.ts +41 -0
  480. package/common/src/externalABIs/WETH.d.ts +38 -0
  481. package/common/src/externalABIs/amToken.d.ts +28 -0
  482. package/common/src/externalABIs/index.cjs +1 -1
  483. package/common/src/externalABIs/index.d.ts +107 -0
  484. package/common/src/externalABIs/index.mjs +2 -6
  485. package/common/src/externalABIs/swapAbi.d.ts +77 -0
  486. package/common/src/functions/auto-deposit-back-helpers/get-gas-token-records.cjs +1 -1
  487. package/common/src/functions/auto-deposit-back-helpers/get-gas-token-records.d.ts +9 -0
  488. package/common/src/functions/auto-deposit-back-helpers/get-gas-token-records.mjs +7 -6
  489. package/common/src/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.d.ts +3 -0
  490. package/common/src/functions/auto-deposit-back-helpers/index.d.ts +4 -0
  491. package/common/src/functions/auto-deposit-back-helpers/select-gas-token.cjs +1 -1
  492. package/common/src/functions/auto-deposit-back-helpers/select-gas-token.d.ts +13 -0
  493. package/common/src/functions/auto-deposit-back-helpers/select-gas-token.mjs +8 -8
  494. package/common/src/functions/auto-deposit-back-helpers/update-hinkal.d.ts +2 -0
  495. package/common/src/functions/connectors.types.d.ts +22 -0
  496. package/common/src/functions/index.cjs +1 -1
  497. package/common/src/functions/index.d.ts +11 -0
  498. package/common/src/functions/index.mjs +21 -20
  499. package/common/src/functions/pre-transaction/addressTableLookup.d.ts +4 -0
  500. package/common/src/functions/pre-transaction/buildCommitmentValidationData.cjs +1 -1
  501. package/common/src/functions/pre-transaction/buildCommitmentValidationData.d.ts +14 -0
  502. package/common/src/functions/pre-transaction/buildCommitmentValidationData.mjs +36 -38
  503. package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.cjs +1 -1
  504. package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.d.ts +2 -0
  505. package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.mjs +38 -5
  506. package/common/src/functions/pre-transaction/constructAdminData.d.ts +3 -0
  507. package/common/src/functions/pre-transaction/convert-okx-instructions.d.ts +11 -0
  508. package/common/src/functions/pre-transaction/ensureAmountChanges.cjs +1 -1
  509. package/common/src/functions/pre-transaction/ensureAmountChanges.d.ts +2 -0
  510. package/common/src/functions/pre-transaction/ensureAmountChanges.mjs +3 -10
  511. package/common/src/functions/pre-transaction/getExternalSwapAddress.cjs +1 -1
  512. package/common/src/functions/pre-transaction/getExternalSwapAddress.d.ts +2 -0
  513. package/common/src/functions/pre-transaction/getExternalSwapAddress.mjs +2 -18
  514. package/common/src/functions/pre-transaction/getFeeStructure.d.ts +5 -0
  515. package/common/src/functions/pre-transaction/getSolanaCalldataHash.cjs +1 -1
  516. package/common/src/functions/pre-transaction/getSolanaCalldataHash.d.ts +4 -0
  517. package/common/src/functions/pre-transaction/getSolanaCalldataHash.mjs +11 -10
  518. package/common/src/functions/pre-transaction/getVolatileTransferAmount.cjs +1 -1
  519. package/common/src/functions/pre-transaction/getVolatileTransferAmount.d.ts +9 -0
  520. package/common/src/functions/pre-transaction/getVolatileTransferAmount.mjs +1 -1
  521. package/common/src/functions/pre-transaction/index.cjs +1 -1
  522. package/common/src/functions/pre-transaction/index.d.ts +19 -0
  523. package/common/src/functions/pre-transaction/index.mjs +2 -3
  524. package/common/src/functions/pre-transaction/merge-with-fee-structure-emporium.cjs +1 -1
  525. package/common/src/functions/pre-transaction/merge-with-fee-structure-emporium.d.ts +3 -0
  526. package/common/src/functions/pre-transaction/merge-with-fee-structure-emporium.mjs +2 -2
  527. package/common/src/functions/pre-transaction/merge-with-fee-structure.d.ts +2 -0
  528. package/common/src/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
  529. package/common/src/functions/pre-transaction/outputUtxoProcessing.d.ts +6 -0
  530. package/common/src/functions/pre-transaction/outputUtxoProcessing.mjs +19 -18
  531. package/common/src/functions/pre-transaction/process-gas-estimates.d.ts +5 -0
  532. package/common/src/functions/pre-transaction/sendInitNullifiersTransaction.d.ts +11 -0
  533. package/common/src/functions/pre-transaction/sendV0Transaction.cjs +2 -2
  534. package/common/src/functions/pre-transaction/sendV0Transaction.d.ts +21 -0
  535. package/common/src/functions/pre-transaction/sendV0Transaction.mjs +4 -4
  536. package/common/src/functions/pre-transaction/solana-public-signals.d.ts +22 -0
  537. package/common/src/functions/pre-transaction/solana.cjs +1 -1
  538. package/common/src/functions/pre-transaction/solana.d.ts +27 -0
  539. package/common/src/functions/pre-transaction/solana.mjs +46 -21
  540. package/common/src/functions/pre-transaction/solanaTransfer.utils.cjs +1 -1
  541. package/common/src/functions/pre-transaction/solanaTransfer.utils.d.ts +6 -0
  542. package/common/src/functions/pre-transaction/solanaTransfer.utils.mjs +16 -15
  543. package/common/src/functions/pre-transaction/speculativeUtxo.cjs +1 -0
  544. package/common/src/functions/pre-transaction/speculativeUtxo.d.ts +9 -0
  545. package/common/src/functions/pre-transaction/speculativeUtxo.mjs +19 -0
  546. package/common/src/functions/pre-transaction/store-instructions.d.ts +4 -0
  547. package/common/src/functions/pre-transaction/store-proof.cjs +1 -1
  548. package/common/src/functions/pre-transaction/store-proof.d.ts +7 -0
  549. package/common/src/functions/pre-transaction/store-proof.mjs +1 -0
  550. package/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.d.ts +3 -0
  551. package/common/src/functions/private-wallet/emporium.helpers.cjs +1 -1
  552. package/common/src/functions/private-wallet/emporium.helpers.d.ts +53 -0
  553. package/common/src/functions/private-wallet/emporium.helpers.mjs +116 -72
  554. package/common/src/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
  555. package/common/src/functions/private-wallet/emporium.swap.helpers.d.ts +3 -0
  556. package/common/src/functions/private-wallet/emporium.swap.helpers.mjs +38 -80
  557. package/common/src/functions/private-wallet/index.cjs +1 -1
  558. package/common/src/functions/private-wallet/index.d.ts +2 -0
  559. package/common/src/functions/private-wallet/index.mjs +0 -1
  560. package/common/src/functions/snarkjs/common.snarkjs.cjs +1 -1
  561. package/common/src/functions/snarkjs/common.snarkjs.d.ts +32 -0
  562. package/common/src/functions/snarkjs/common.snarkjs.mjs +104 -65
  563. package/common/src/functions/snarkjs/constant.cjs +1 -1
  564. package/common/src/functions/snarkjs/constant.d.ts +236 -0
  565. package/common/src/functions/snarkjs/constant.mjs +231 -145
  566. package/common/src/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
  567. package/common/src/functions/snarkjs/constructGeneralZkProof.d.ts +13 -0
  568. package/common/src/functions/snarkjs/constructGeneralZkProof.mjs +85 -69
  569. package/common/src/functions/snarkjs/constructSignatureFromMnemonicProofInput.cjs +1 -0
  570. package/common/src/functions/snarkjs/constructSignatureFromMnemonicProofInput.d.ts +7 -0
  571. package/common/src/functions/snarkjs/constructSignatureFromMnemonicProofInput.mjs +2 -0
  572. package/common/src/functions/snarkjs/constructSolanaZkProof.cjs +1 -1
  573. package/common/src/functions/snarkjs/constructSolanaZkProof.d.ts +16 -0
  574. package/common/src/functions/snarkjs/constructSolanaZkProof.mjs +62 -61
  575. package/common/src/functions/snarkjs/constructTxEnclave.cjs +1 -0
  576. package/common/src/functions/snarkjs/constructTxEnclave.d.ts +34 -0
  577. package/common/src/functions/snarkjs/constructTxEnclave.mjs +95 -0
  578. package/common/src/functions/snarkjs/constructTxEnclaveVerify.cjs +1 -0
  579. package/common/src/functions/snarkjs/constructTxEnclaveVerify.d.ts +5 -0
  580. package/common/src/functions/snarkjs/constructTxEnclaveVerify.mjs +295 -0
  581. package/common/src/functions/snarkjs/fetchMerkleTreeSiblings.d.ts +9 -0
  582. package/common/src/functions/snarkjs/fetchOnChainRootHashes.cjs +1 -1
  583. package/common/src/functions/snarkjs/fetchOnChainRootHashes.d.ts +4 -0
  584. package/common/src/functions/snarkjs/fetchOnChainRootHashes.mjs +16 -18
  585. package/common/src/functions/snarkjs/fetchTronInsertionSiblings.cjs +1 -0
  586. package/common/src/functions/snarkjs/fetchTronInsertionSiblings.d.ts +7 -0
  587. package/common/src/functions/snarkjs/fetchTronInsertionSiblings.mjs +13 -0
  588. package/common/src/functions/snarkjs/generateCircomData.cjs +1 -1
  589. package/common/src/functions/snarkjs/generateCircomData.d.ts +5 -0
  590. package/common/src/functions/snarkjs/generateCircomData.mjs +41 -31
  591. package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.cjs +1 -1
  592. package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.d.ts +11 -0
  593. package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.mjs +7 -7
  594. package/common/src/functions/snarkjs/generateSignatureFromMnemonicProof.cjs +1 -0
  595. package/common/src/functions/snarkjs/generateSignatureFromMnemonicProof.d.ts +2 -0
  596. package/common/src/functions/snarkjs/generateSignatureFromMnemonicProof.mjs +3 -0
  597. package/common/src/functions/snarkjs/generateZkProof.cjs +1 -1
  598. package/common/src/functions/snarkjs/generateZkProof.d.ts +5 -0
  599. package/common/src/functions/snarkjs/generateZkProof.mjs +9 -16
  600. package/common/src/functions/snarkjs/generateZkProofSelf.d.ts +5 -0
  601. package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.cjs +1 -1
  602. package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.d.ts +17 -0
  603. package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +19 -13
  604. package/common/src/functions/snarkjs/getOriginalSender.d.ts +1 -0
  605. package/common/src/functions/snarkjs/getZKFiles.cjs +1 -1
  606. package/common/src/functions/snarkjs/getZKFiles.d.ts +3 -0
  607. package/common/src/functions/snarkjs/getZKFiles.mjs +9 -3
  608. package/common/src/functions/snarkjs/index.cjs +1 -1
  609. package/common/src/functions/snarkjs/index.d.ts +10 -0
  610. package/common/src/functions/snarkjs/index.mjs +2 -0
  611. package/common/src/functions/snarkjs/signedMessageHash.cjs +1 -1
  612. package/common/src/functions/snarkjs/signedMessageHash.d.ts +47 -0
  613. package/common/src/functions/snarkjs/signedMessageHash.mjs +36 -7
  614. package/common/src/functions/snarkjs/verifyCommitmentValidationData.d.ts +4 -0
  615. package/common/src/functions/snarkjs/verifySignedEnclaveResponse.cjs +1 -0
  616. package/common/src/functions/snarkjs/verifySignedEnclaveResponse.d.ts +1 -0
  617. package/common/src/functions/snarkjs/verifySignedEnclaveResponse.mjs +11 -0
  618. package/common/src/functions/utils/abi.utils.d.ts +3 -0
  619. package/common/src/functions/utils/addresses.cjs +1 -1
  620. package/common/src/functions/utils/addresses.d.ts +12 -0
  621. package/common/src/functions/utils/addresses.mjs +30 -21
  622. package/common/src/functions/utils/aggregateTokenAmounts.d.ts +2 -0
  623. package/common/src/functions/utils/amounts.utils.d.ts +25 -0
  624. package/common/src/functions/utils/arraysMatch.d.ts +1 -0
  625. package/common/src/functions/utils/auth.utils.d.ts +5 -0
  626. package/common/src/functions/utils/bridge-arrival.utils.cjs +1 -0
  627. package/common/src/functions/utils/bridge-arrival.utils.d.ts +1 -0
  628. package/common/src/functions/utils/bridge-arrival.utils.mjs +16 -0
  629. package/common/src/functions/utils/bridge-claimable-utxo.utils.cjs +1 -0
  630. package/common/src/functions/utils/bridge-claimable-utxo.utils.d.ts +19 -0
  631. package/common/src/functions/utils/bridge-claimable-utxo.utils.mjs +24 -0
  632. package/common/src/functions/utils/bridge-claimable.utils.cjs +1 -0
  633. package/common/src/functions/utils/bridge-claimable.utils.d.ts +15 -0
  634. package/common/src/functions/utils/bridge-claimable.utils.mjs +3 -0
  635. package/common/src/functions/utils/bridge-flow.utils.cjs +1 -0
  636. package/common/src/functions/utils/bridge-flow.utils.d.ts +4 -0
  637. package/common/src/functions/utils/bridge-flow.utils.mjs +2 -0
  638. package/common/src/functions/utils/buildClaimableDepositPlan.d.ts +17 -0
  639. package/common/src/functions/utils/bytes32.utils.d.ts +2 -0
  640. package/common/src/functions/utils/cacheDevice.utils.d.ts +3 -0
  641. package/common/src/functions/utils/cacheFunctions.d.ts +16 -0
  642. package/common/src/functions/utils/caseInsensitive.utils.d.ts +3 -0
  643. package/common/src/functions/utils/convertEmporiumOpToCallInfo.cjs +1 -1
  644. package/common/src/functions/utils/convertEmporiumOpToCallInfo.d.ts +2 -0
  645. package/common/src/functions/utils/convertEmporiumOpToCallInfo.mjs +5 -10
  646. package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.cjs +1 -1
  647. package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.d.ts +3 -0
  648. package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.mjs +1 -1
  649. package/common/src/functions/utils/create-provider.cjs +1 -1
  650. package/common/src/functions/utils/create-provider.d.ts +11 -0
  651. package/common/src/functions/utils/create-provider.mjs +45 -9
  652. package/common/src/functions/utils/customEnclaveFunctionsRegister.d.ts +18 -0
  653. package/common/src/functions/utils/deposit-claimable.utils.cjs +1 -1
  654. package/common/src/functions/utils/deposit-claimable.utils.d.ts +3 -0
  655. package/common/src/functions/utils/deposit-claimable.utils.mjs +3 -6
  656. package/common/src/functions/utils/dispatchBalanceRefreshes.d.ts +4 -0
  657. package/common/src/functions/utils/enclave-recipient-info-storage.cjs +1 -1
  658. package/common/src/functions/utils/enclave-recipient-info-storage.d.ts +5 -0
  659. package/common/src/functions/utils/enclave-recipient-info-storage.mjs +1 -0
  660. package/common/src/functions/utils/enclave-signature-storage.cjs +1 -1
  661. package/common/src/functions/utils/enclave-signature-storage.d.ts +1 -0
  662. package/common/src/functions/utils/enclave-signature-storage.mjs +3 -3
  663. package/common/src/functions/utils/enclave-utxo-storage.cjs +1 -1
  664. package/common/src/functions/utils/enclave-utxo-storage.d.ts +6 -0
  665. package/common/src/functions/utils/enclave-utxo-storage.mjs +16 -2
  666. package/common/src/functions/utils/enclaveHandshakeService.d.ts +10 -0
  667. package/common/src/functions/utils/enclaveSessionSigning.cjs +1 -0
  668. package/common/src/functions/utils/enclaveSessionSigning.d.ts +16 -0
  669. package/common/src/functions/utils/enclaveSessionSigning.mjs +2 -0
  670. package/common/src/functions/utils/encodeTokenWithId.cjs +1 -1
  671. package/common/src/functions/utils/encodeTokenWithId.d.ts +1 -0
  672. package/common/src/functions/utils/encodeTokenWithId.mjs +2 -5
  673. package/common/src/functions/utils/encryptInputForEnclave.cjs +1 -1
  674. package/common/src/functions/utils/encryptInputForEnclave.d.ts +16 -0
  675. package/common/src/functions/utils/encryptInputForEnclave.mjs +43 -23
  676. package/common/src/functions/utils/enum.utils.d.ts +9 -0
  677. package/common/src/functions/utils/erc20tokenFunctions.cjs +1 -1
  678. package/common/src/functions/utils/erc20tokenFunctions.d.ts +20 -0
  679. package/common/src/functions/utils/erc20tokenFunctions.mjs +2 -15
  680. package/common/src/functions/utils/evmNetworkFunctions.d.ts +4 -0
  681. package/common/src/functions/utils/external-action.utils.d.ts +3 -0
  682. package/common/src/functions/utils/fees.utils.cjs +1 -1
  683. package/common/src/functions/utils/fees.utils.d.ts +9 -0
  684. package/common/src/functions/utils/fees.utils.mjs +42 -29
  685. package/common/src/functions/utils/formatter.d.ts +3 -0
  686. package/common/src/functions/utils/getBlockExplorerUrl.d.ts +1 -0
  687. package/common/src/functions/utils/getContractAddress.d.ts +2 -0
  688. package/common/src/functions/utils/getDataFromTransaction.d.ts +34 -0
  689. package/common/src/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -1
  690. package/common/src/functions/utils/getRecipientInfoFromUserKeys.d.ts +4 -0
  691. package/common/src/functions/utils/getRecipientInfoFromUserKeys.mjs +2 -3
  692. package/common/src/functions/utils/getSignerFromContract.d.ts +3 -0
  693. package/common/src/functions/utils/getUtxosFromReceipt.utils.cjs +1 -1
  694. package/common/src/functions/utils/getUtxosFromReceipt.utils.d.ts +6 -0
  695. package/common/src/functions/utils/getUtxosFromReceipt.utils.mjs +2 -26
  696. package/common/src/functions/utils/getUtxosFromReceiptSolana.cjs +1 -1
  697. package/common/src/functions/utils/getUtxosFromReceiptSolana.d.ts +7 -0
  698. package/common/src/functions/utils/getUtxosFromReceiptSolana.mjs +7 -24
  699. package/common/src/functions/utils/getWalletGroupKey.utils.d.ts +1 -0
  700. package/common/src/functions/utils/inLogicMetadata.d.ts +2 -0
  701. package/common/src/functions/utils/index.cjs +1 -1
  702. package/common/src/functions/utils/index.d.ts +89 -0
  703. package/common/src/functions/utils/index.mjs +27 -13
  704. package/common/src/functions/utils/involves-permit2-op.d.ts +7 -0
  705. package/common/src/functions/utils/ipfs.d.ts +7 -0
  706. package/common/src/functions/utils/is-valid-url.d.ts +1 -0
  707. package/common/src/functions/utils/legacyKeys.cjs +1 -0
  708. package/common/src/functions/utils/legacyKeys.d.ts +10 -0
  709. package/common/src/functions/utils/legacyKeys.mjs +8 -0
  710. package/common/src/functions/utils/lifi.utils.d.ts +7 -0
  711. package/common/src/functions/utils/map.utils.d.ts +1 -0
  712. package/common/src/functions/utils/memoize.utils.d.ts +1 -0
  713. package/common/src/functions/utils/merkleTree.utils.d.ts +2 -0
  714. package/common/src/functions/utils/mnemonics.cjs +1 -1
  715. package/common/src/functions/utils/mnemonics.d.ts +1 -0
  716. package/common/src/functions/utils/mnemonics.mjs +4 -6
  717. package/common/src/functions/utils/mutexes.utils.d.ts +2 -0
  718. package/common/src/functions/utils/nearIntents.utils.cjs +1 -1
  719. package/common/src/functions/utils/nearIntents.utils.d.ts +11 -0
  720. package/common/src/functions/utils/nearIntents.utils.mjs +27 -13
  721. package/common/src/functions/utils/networks.utils.d.ts +2 -0
  722. package/common/src/functions/utils/nftTokenFunctions.d.ts +2 -0
  723. package/common/src/functions/utils/nickname.utils.d.ts +1 -0
  724. package/common/src/functions/utils/pay-routing.utils.d.ts +4 -0
  725. package/common/src/functions/utils/postToOffscreen.d.ts +2 -0
  726. package/common/src/functions/utils/prepareHinkal.cjs +1 -1
  727. package/common/src/functions/utils/prepareHinkal.d.ts +9 -0
  728. package/common/src/functions/utils/prepareHinkal.mjs +2 -1
  729. package/common/src/functions/utils/process.utils.cjs +1 -1
  730. package/common/src/functions/utils/process.utils.d.ts +13 -0
  731. package/common/src/functions/utils/process.utils.mjs +2 -11
  732. package/common/src/functions/utils/proxyAvatar.utils.cjs +1 -0
  733. package/common/src/functions/utils/proxyAvatar.utils.d.ts +2 -0
  734. package/common/src/functions/utils/proxyAvatar.utils.mjs +3 -0
  735. package/common/src/functions/utils/publicBalance.utils.cjs +1 -1
  736. package/common/src/functions/utils/publicBalance.utils.d.ts +6 -0
  737. package/common/src/functions/utils/publicBalance.utils.mjs +37 -23
  738. package/common/src/functions/utils/recovery-balance.utils.cjs +1 -0
  739. package/common/src/functions/utils/recovery-balance.utils.d.ts +2 -0
  740. package/common/src/functions/utils/recovery-balance.utils.mjs +1 -0
  741. package/common/src/functions/utils/reloadPage.d.ts +1 -0
  742. package/common/src/functions/utils/requireEnv.d.ts +1 -0
  743. package/common/src/functions/utils/resolve-domain-address.cjs +1 -0
  744. package/common/src/functions/utils/resolve-domain-address.d.ts +4 -0
  745. package/common/src/functions/utils/resolve-domain-address.mjs +3 -0
  746. package/common/src/functions/utils/resolve-sync.utils.d.ts +6 -0
  747. package/common/src/functions/utils/rpc-int-encode.d.ts +1 -0
  748. package/common/src/functions/utils/serialize-utxos.utils.cjs +1 -1
  749. package/common/src/functions/utils/serialize-utxos.utils.d.ts +3 -0
  750. package/common/src/functions/utils/serialize-utxos.utils.mjs +6 -4
  751. package/common/src/functions/utils/serialize.utils.d.ts +10 -0
  752. package/common/src/functions/utils/solana-memo.d.ts +3 -0
  753. package/common/src/functions/utils/solana-program.utils.cjs +1 -0
  754. package/common/src/functions/utils/solana-program.utils.d.ts +3 -0
  755. package/common/src/functions/utils/solana-program.utils.mjs +17 -0
  756. package/common/src/functions/utils/solana-sponsored.utils.cjs +1 -0
  757. package/common/src/functions/utils/solana-sponsored.utils.d.ts +22 -0
  758. package/common/src/functions/utils/solana-sponsored.utils.mjs +30 -0
  759. package/common/src/functions/utils/solanaMint.utils.cjs +1 -1
  760. package/common/src/functions/utils/solanaMint.utils.d.ts +17 -0
  761. package/common/src/functions/utils/solanaMint.utils.mjs +18 -8
  762. package/common/src/functions/utils/solanaSendPreflight.utils.d.ts +6 -0
  763. package/common/src/functions/utils/sponsored-shield.utils.cjs +1 -0
  764. package/common/src/functions/utils/sponsored-shield.utils.d.ts +3 -0
  765. package/common/src/functions/utils/sponsored-shield.utils.mjs +3 -0
  766. package/common/src/functions/utils/string.utils.d.ts +16 -0
  767. package/common/src/functions/utils/temp-wallet.utils.cjs +1 -0
  768. package/common/src/functions/utils/temp-wallet.utils.d.ts +8 -0
  769. package/common/src/functions/utils/temp-wallet.utils.mjs +43 -0
  770. package/common/src/functions/utils/temporary-wallet-recovery.utils.cjs +1 -0
  771. package/common/src/functions/utils/temporary-wallet-recovery.utils.d.ts +7 -0
  772. package/common/src/functions/utils/temporary-wallet-recovery.utils.mjs +10 -0
  773. package/common/src/functions/utils/time.utils.d.ts +20 -0
  774. package/common/src/functions/utils/token-check.utils.d.ts +4 -0
  775. package/common/src/functions/utils/transfer-claimable.utils.cjs +1 -1
  776. package/common/src/functions/utils/transfer-claimable.utils.d.ts +8 -0
  777. package/common/src/functions/utils/transfer-claimable.utils.mjs +1 -4
  778. package/common/src/functions/utils/trimFieldValues.d.ts +4 -0
  779. package/common/src/functions/utils/tron.utils.cjs +1 -1
  780. package/common/src/functions/utils/tron.utils.d.ts +35 -0
  781. package/common/src/functions/utils/tron.utils.mjs +89 -152
  782. package/common/src/functions/utils/tronSimulation.utils.cjs +1 -1
  783. package/common/src/functions/utils/tronSimulation.utils.d.ts +1 -0
  784. package/common/src/functions/utils/tronSimulation.utils.mjs +4 -6
  785. package/common/src/functions/utils/tx-confirmation.utils.cjs +1 -1
  786. package/common/src/functions/utils/tx-confirmation.utils.d.ts +11 -0
  787. package/common/src/functions/utils/tx-confirmation.utils.mjs +16 -13
  788. package/common/src/functions/utils/upToDateState.d.ts +2 -0
  789. package/common/src/functions/utils/userAgent.d.ts +2 -0
  790. package/common/src/functions/utils/validateUsername.d.ts +5 -0
  791. package/common/src/functions/utils/validateWalletAddress.cjs +1 -0
  792. package/common/src/functions/utils/validateWalletAddress.d.ts +1 -0
  793. package/common/src/functions/utils/validateWalletAddress.mjs +2 -0
  794. package/common/src/functions/utils/voidWallets.utils.cjs +1 -0
  795. package/common/src/functions/utils/voidWallets.utils.d.ts +4 -0
  796. package/common/src/functions/utils/voidWallets.utils.mjs +1 -0
  797. package/common/src/functions/utils/waasStamp.cjs +1 -0
  798. package/common/src/functions/utils/waasStamp.d.ts +5 -0
  799. package/common/src/functions/utils/waasStamp.mjs +2 -0
  800. package/common/src/functions/utils/walletBalances.utils.d.ts +2 -0
  801. package/common/src/functions/web3/EIP-712.d.ts +23 -0
  802. package/common/src/functions/web3/connectors.utils.d.ts +9 -0
  803. package/common/src/functions/web3/crypto.d.ts +1 -0
  804. package/common/src/functions/web3/etherFunctions.d.ts +21 -0
  805. package/common/src/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
  806. package/common/src/functions/web3/events/getInputUtxoAndBalance.d.ts +31 -0
  807. package/common/src/functions/web3/events/getInputUtxoAndBalance.mjs +50 -61
  808. package/common/src/functions/web3/events/getInputUtxosEnclave.cjs +1 -1
  809. package/common/src/functions/web3/events/getInputUtxosEnclave.d.ts +10 -0
  810. package/common/src/functions/web3/events/getInputUtxosEnclave.mjs +42 -35
  811. package/common/src/functions/web3/events/getShieldedBalance.cjs +1 -1
  812. package/common/src/functions/web3/events/getShieldedBalance.d.ts +18 -0
  813. package/common/src/functions/web3/events/getShieldedBalance.mjs +109 -93
  814. package/common/src/functions/web3/events/getTransactionLogEvents.d.ts +13 -0
  815. package/common/src/functions/web3/events/index.d.ts +3 -0
  816. package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.cjs +1 -1
  817. package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.d.ts +3 -0
  818. package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +9 -6
  819. package/common/src/functions/web3/functionCalls/approveToken.cjs +1 -1
  820. package/common/src/functions/web3/functionCalls/approveToken.d.ts +4 -0
  821. package/common/src/functions/web3/functionCalls/approveToken.mjs +21 -107
  822. package/common/src/functions/web3/functionCalls/approveTokensToHinkal.d.ts +4 -0
  823. package/common/src/functions/web3/functionCalls/constructBatchCall.cjs +1 -1
  824. package/common/src/functions/web3/functionCalls/constructBatchCall.d.ts +7 -0
  825. package/common/src/functions/web3/functionCalls/constructBatchCall.mjs +23 -18
  826. package/common/src/functions/web3/functionCalls/estimateGasRelayer.d.ts +4 -0
  827. package/common/src/functions/web3/functionCalls/getRootHash.d.ts +2 -0
  828. package/common/src/functions/web3/functionCalls/recoverTransactionFromError.d.ts +2 -0
  829. package/common/src/functions/web3/functionCalls/relayFunctions.d.ts +3 -0
  830. package/common/src/functions/web3/functionCalls/submitProof.cjs +1 -0
  831. package/common/src/functions/web3/functionCalls/submitProof.d.ts +5 -0
  832. package/common/src/functions/web3/functionCalls/submitProof.mjs +26 -0
  833. package/common/src/functions/web3/functionCalls/transactCallDirect.d.ts +6 -0
  834. package/common/src/functions/web3/functionCalls/transactCallDirectTron.cjs +1 -1
  835. package/common/src/functions/web3/functionCalls/transactCallDirectTron.d.ts +16 -0
  836. package/common/src/functions/web3/functionCalls/transactCallDirectTron.mjs +81 -53
  837. package/common/src/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
  838. package/common/src/functions/web3/functionCalls/transactCallRelayer.d.ts +32 -0
  839. package/common/src/functions/web3/functionCalls/transactCallRelayer.mjs +12 -8
  840. package/common/src/functions/web3/functionCalls/waitForErc20Approvals.d.ts +11 -0
  841. package/common/src/functions/web3/getContractMetadata.d.ts +5 -0
  842. package/common/src/functions/web3/getPublicAddressBalance.cjs +1 -1
  843. package/common/src/functions/web3/getPublicAddressBalance.d.ts +1 -0
  844. package/common/src/functions/web3/getPublicAddressBalance.mjs +6 -5
  845. package/common/src/functions/web3/getTokenHolder.cjs +1 -1
  846. package/common/src/functions/web3/getTokenHolder.d.ts +1 -0
  847. package/common/src/functions/web3/getTokenHolder.mjs +3 -2
  848. package/common/src/functions/web3/index.cjs +1 -1
  849. package/common/src/functions/web3/index.d.ts +11 -0
  850. package/common/src/functions/web3/index.mjs +1 -4
  851. package/common/src/functions/web3/lifiAPI.cjs +1 -1
  852. package/common/src/functions/web3/lifiAPI.d.ts +6 -0
  853. package/common/src/functions/web3/lifiAPI.mjs +38 -7
  854. package/common/src/functions/web3/okxAPI.d.ts +8 -0
  855. package/common/src/functions/web3/runContractFunction.d.ts +16 -0
  856. package/common/src/functions/web3/signAndSendSerializedTransaction.d.ts +2 -0
  857. package/common/src/index.d.ts +9 -0
  858. package/common/src/mutexes/chainBalanceRwLock.d.ts +18 -0
  859. package/common/src/mutexes/index.d.ts +2 -0
  860. package/common/src/mutexes/mutex.d.ts +2 -0
  861. package/common/src/providers/EthersProviderAdapter.cjs +1 -1
  862. package/common/src/providers/EthersProviderAdapter.d.ts +35 -0
  863. package/common/src/providers/EthersProviderAdapter.mjs +0 -3
  864. package/common/src/providers/SolanaProviderAdapter.cjs +1 -1
  865. package/common/src/providers/SolanaProviderAdapter.d.ts +48 -0
  866. package/common/src/providers/SolanaProviderAdapter.mjs +4 -11
  867. package/common/src/providers/TronProviderAdapter.cjs +1 -1
  868. package/common/src/providers/TronProviderAdapter.d.ts +38 -0
  869. package/common/src/providers/TronProviderAdapter.mjs +7 -4
  870. package/common/src/providers/WagmiProviderAdapter.cjs +1 -1
  871. package/common/src/providers/WagmiProviderAdapter.d.ts +47 -0
  872. package/common/src/providers/WagmiProviderAdapter.mjs +32 -39
  873. package/common/src/providers/exportProviers.d.ts +3 -0
  874. package/common/src/types/API.types.d.ts +21 -0
  875. package/common/src/types/ICacheDevice.d.ts +5 -0
  876. package/common/src/types/IMultiThreadedUtxoUtils.d.ts +8 -0
  877. package/common/src/types/RewardUserEnums.d.ts +11 -0
  878. package/common/src/types/TransactionSimulator.types.d.ts +16 -0
  879. package/common/src/types/WeeklyAnalytics.types.d.ts +12 -0
  880. package/common/src/types/activities.types.cjs +1 -1
  881. package/common/src/types/activities.types.d.ts +68 -0
  882. package/common/src/types/activities.types.mjs +1 -1
  883. package/common/src/types/admin.types.cjs +1 -1
  884. package/common/src/types/admin.types.d.ts +45 -0
  885. package/common/src/types/admin.types.mjs +1 -1
  886. package/common/src/types/all-points.types.d.ts +7 -0
  887. package/common/src/types/approvals.types.d.ts +41 -0
  888. package/common/src/types/balances.types.d.ts +39 -0
  889. package/common/src/types/big-intable.types.d.ts +3 -0
  890. package/common/src/types/bridging-tx.types.d.ts +40 -0
  891. package/common/src/types/cache.types.cjs +1 -1
  892. package/common/src/types/cache.types.d.ts +61 -0
  893. package/common/src/types/cache.types.mjs +1 -1
  894. package/common/src/types/chains.types.d.ts +11 -0
  895. package/common/src/types/circom-data.types.cjs +1 -1
  896. package/common/src/types/circom-data.types.d.ts +112 -0
  897. package/common/src/types/circom-data.types.mjs +1 -1
  898. package/common/src/types/coingecko.types.d.ts +220 -0
  899. package/common/src/types/commitments.types.d.ts +34 -0
  900. package/common/src/types/confirmation-request.types.d.ts +10 -0
  901. package/common/src/types/connector.types.d.ts +5 -0
  902. package/common/src/types/contacts.types.d.ts +7 -0
  903. package/common/src/types/dashboard-account.d.ts +116 -0
  904. package/common/src/types/dashboard-payout.types.d.ts +30 -0
  905. package/common/src/types/dashboard-transaction.types.d.ts +25 -0
  906. package/common/src/types/eip5792.types.d.ts +33 -0
  907. package/common/src/types/enclaveApi.types.d.ts +77 -0
  908. package/common/src/types/ethereum-network.types.cjs +1 -1
  909. package/common/src/types/ethereum-network.types.d.ts +46 -0
  910. package/common/src/types/ethereum-network.types.mjs +1 -1
  911. package/common/src/types/events.types.d.ts +6 -0
  912. package/common/src/types/external-action.types.cjs +1 -1
  913. package/common/src/types/external-action.types.d.ts +14 -0
  914. package/common/src/types/external-action.types.mjs +1 -1
  915. package/common/src/types/fee.types.d.ts +13 -0
  916. package/common/src/types/hinkal.types.cjs +1 -1
  917. package/common/src/types/hinkal.types.d.ts +82 -0
  918. package/common/src/types/hinkal.types.mjs +12 -20
  919. package/common/src/types/http.types.d.ts +8 -0
  920. package/common/src/types/index.cjs +1 -1
  921. package/common/src/types/index.d.ts +61 -0
  922. package/common/src/types/index.mjs +3 -2
  923. package/common/src/types/message.types.d.ts +5 -0
  924. package/common/src/types/near-intents.types.d.ts +62 -0
  925. package/common/src/types/new-rewards.type.d.ts +82 -0
  926. package/common/src/types/offscreen.types.cjs +1 -1
  927. package/common/src/types/offscreen.types.d.ts +8 -0
  928. package/common/src/types/offscreen.types.mjs +1 -1
  929. package/common/src/types/okx.types.d.ts +57 -0
  930. package/common/src/types/onramp.types.d.ts +58 -0
  931. package/common/src/types/pay-activities.types.d.ts +52 -0
  932. package/common/src/types/pay-routing.types.d.ts +9 -0
  933. package/common/src/types/payout-notification.types.d.ts +11 -0
  934. package/common/src/types/presaleReferral.types.d.ts +4 -0
  935. package/common/src/types/proxy-progress.types.d.ts +5 -0
  936. package/common/src/types/proxy.types.d.ts +19 -0
  937. package/common/src/types/remote-proof.types.d.ts +14 -0
  938. package/common/src/types/remote-tx-build.types.d.ts +298 -0
  939. package/common/src/types/schedule.types.d.ts +7 -0
  940. package/common/src/types/scheduled-transactions.types.d.ts +67 -0
  941. package/common/src/types/session.types.d.ts +13 -0
  942. package/common/src/types/signature.types.d.ts +10 -0
  943. package/common/src/types/slippage.types.d.ts +3 -0
  944. package/common/src/types/snark.types.d.ts +38 -0
  945. package/common/src/types/solana-transact.types.cjs +1 -0
  946. package/common/src/types/solana-transact.types.d.ts +35 -0
  947. package/common/src/types/solana-transact.types.mjs +6 -0
  948. package/common/src/types/solana.types.cjs +1 -0
  949. package/common/src/types/solana.types.d.ts +96 -0
  950. package/common/src/types/solana.types.mjs +6 -0
  951. package/common/src/types/temp-wallet.types.d.ts +9 -0
  952. package/common/src/types/tenderly.api.types.d.ts +266 -0
  953. package/common/src/types/token-prices.types.d.ts +18 -0
  954. package/common/src/types/token.types.cjs +1 -1
  955. package/common/src/types/token.types.d.ts +98 -0
  956. package/common/src/types/token.types.mjs +2 -2
  957. package/common/src/types/transact.types.cjs +1 -0
  958. package/common/src/types/transact.types.d.ts +53 -0
  959. package/common/src/types/transact.types.mjs +6 -0
  960. package/common/src/types/transaction.types.d.ts +159 -0
  961. package/common/src/types/transactions.types.d.ts +78 -0
  962. package/common/src/types/tron.types.d.ts +15 -0
  963. package/common/src/types/wc.types.d.ts +78 -0
  964. package/common/src/types/with-id.types.d.ts +3 -0
  965. package/common/src/webworker/WorkerWrapper.d.ts +9 -0
  966. package/common/src/webworker/logError-ScFy7p5w.js +2 -0
  967. package/common/src/webworker/package.json +26 -25
  968. package/common/src/webworker/performTaskWithWorker.d.ts +5 -0
  969. package/common/src/webworker/snarkjsWorker/snarkjsWorker.types.d.ts +14 -0
  970. package/common/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.d.ts +1 -0
  971. package/common/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs +1 -1
  972. package/common/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.mjs +1 -1
  973. package/common/src/webworker/snarkjsWorker/snarkjsWorkerLogic.d.ts +2 -0
  974. package/common/src/webworker/snarkjsWorker/snarkjsWorkerNode.d.ts +1 -0
  975. package/common/src/webworker/snarkjsWorkerNode.cjs +1 -1
  976. package/common/src/webworker/utxoWorker/utxoWorker.types.d.ts +33 -0
  977. package/common/src/webworker/utxoWorker/utxoWorkerLauncher.d.ts +1 -0
  978. package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -1
  979. package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +1 -1
  980. package/common/src/webworker/utxoWorker/utxoWorkerLogic.d.ts +5 -0
  981. package/common/src/webworker/utxoWorker/utxoWorkerNode.d.ts +1 -0
  982. package/common/src/webworker/utxoWorkerNode.cjs +1 -1
  983. package/common/src/webworker/viteWorkerURL.constant.cjs +3 -3
  984. package/common/src/webworker/viteWorkerURL.constant.d.ts +10 -0
  985. package/common/src/webworker/viteWorkerURL.constant.fallback.d.ts +4 -0
  986. package/common/src/webworker/viteWorkerURL.constant.mjs +3 -3
  987. package/common/src/webworker/worker.registry.d.ts +10 -0
  988. package/common/src/webworker/worker.types.d.ts +33 -0
  989. package/common/src/webworker/workerErrorHandler.d.ts +1 -0
  990. package/common/src/webworker/workerFactory.d.ts +11 -0
  991. package/common/src/webworker/workerProxy-B_eSl85g.js +1 -0
  992. package/common/src/webworker/workerProxy.d.ts +39 -0
  993. package/common/src/webworker/zkProofWorker/zkProofWorker.types.d.ts +26 -0
  994. package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.d.ts +1 -0
  995. package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -1
  996. package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +1 -1
  997. package/common/src/webworker/zkProofWorker/zkProofWorkerLogic.d.ts +4 -0
  998. package/common/src/webworker/zkProofWorker/zkProofWorkerNode.d.ts +1 -0
  999. package/common/src/webworker/zkProofWorkerNode.cjs +1 -1
  1000. package/index.cjs +1 -1
  1001. package/index.mjs +1 -1
  1002. package/internal/swapApi.cjs +1 -1
  1003. package/internal/swapApi.d.ts +3 -3
  1004. package/internal/swapApi.mjs +22 -25
  1005. package/package.json +26 -25
  1006. package/providers/prepareEthersHinkal.cjs +1 -1
  1007. package/providers/prepareEthersHinkal.d.ts +1 -0
  1008. package/providers/prepareEthersHinkal.mjs +2 -2
  1009. package/providers/prepareSolanaHinkal.cjs +1 -1
  1010. package/providers/prepareSolanaHinkal.d.ts +1 -0
  1011. package/providers/prepareSolanaHinkal.mjs +2 -2
  1012. package/providers/prepareTronHinkal.cjs +1 -1
  1013. package/providers/prepareTronHinkal.d.ts +1 -0
  1014. package/providers/prepareTronHinkal.mjs +2 -2
  1015. package/providers/prepareWagmiHinkal.cjs +1 -1
  1016. package/providers/prepareWagmiHinkal.d.ts +1 -0
  1017. package/providers/prepareWagmiHinkal.mjs +2 -2
  1018. package/services/Hinkal.cjs +1 -1
  1019. package/services/Hinkal.d.ts +16 -10
  1020. package/services/Hinkal.mjs +29 -17
  1021. package/types/IHinkal.d.ts +16 -10
  1022. package/types/swap.types.d.ts +3 -20
  1023. package/common/src/API/accessCodeCalls.cjs +0 -1
  1024. package/common/src/API/accessCodeCalls.mjs +0 -13
  1025. package/common/src/API/brotherhoodCalls.cjs +0 -1
  1026. package/common/src/API/brotherhoodCalls.mjs +0 -17
  1027. package/common/src/API/callOdosAPI.cjs +0 -1
  1028. package/common/src/API/callOdosAPI.mjs +0 -18
  1029. package/common/src/API/callOneInchAPI.cjs +0 -1
  1030. package/common/src/API/callOneInchAPI.mjs +0 -13
  1031. package/common/src/API/deposit-and-withdraw-status-calls.cjs +0 -1
  1032. package/common/src/API/deposit-and-withdraw-status-calls.mjs +0 -13
  1033. package/common/src/API/generate-trading-points.cjs +0 -1
  1034. package/common/src/API/generate-trading-points.mjs +0 -23
  1035. package/common/src/API/leaderboardCalls.cjs +0 -1
  1036. package/common/src/API/leaderboardCalls.mjs +0 -8
  1037. package/common/src/API/referralsCalls.cjs +0 -1
  1038. package/common/src/API/referralsCalls.mjs +0 -11
  1039. package/common/src/API/send-telegram-callback.cjs +0 -1
  1040. package/common/src/API/send-telegram-callback.mjs +0 -11
  1041. package/common/src/constants/tasks.constants.cjs +0 -1
  1042. package/common/src/constants/tasks.constants.mjs +0 -124
  1043. package/common/src/crypto/ecdh-dual-path.cjs +0 -1
  1044. package/common/src/crypto/ecdh-dual-path.mjs +0 -6
  1045. package/common/src/data-structures/Hinkal/hinkalMultiSend.cjs +0 -1
  1046. package/common/src/data-structures/Hinkal/hinkalMultiSend.mjs +0 -12
  1047. package/common/src/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.cjs +0 -1
  1048. package/common/src/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.mjs +0 -128
  1049. package/common/src/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.cjs +0 -1
  1050. package/common/src/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.mjs +0 -34
  1051. package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +0 -1
  1052. package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +0 -172
  1053. package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.cjs +0 -1
  1054. package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.mjs +0 -94
  1055. package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.cjs +0 -1
  1056. package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.mjs +0 -134
  1057. package/common/src/data-structures/TokenDBs/PublicTokensDB.cjs +0 -1
  1058. package/common/src/data-structures/TokenDBs/PublicTokensDB.mjs +0 -32
  1059. package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.cjs +0 -1
  1060. package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.mjs +0 -41
  1061. package/common/src/data-structures/TokenDBs/TronPublicTokensDB.cjs +0 -1
  1062. package/common/src/data-structures/TokenDBs/TronPublicTokensDB.mjs +0 -47
  1063. package/common/src/data-structures/TokenDBs/index.cjs +0 -1
  1064. package/common/src/data-structures/TokenDBs/index.mjs +0 -6
  1065. package/common/src/externalABIs/IQuoterV2.json.cjs +0 -1
  1066. package/common/src/externalABIs/IQuoterV2.json.mjs +0 -203
  1067. package/common/src/externalABIs/ISwapRouter.json.cjs +0 -1
  1068. package/common/src/externalABIs/ISwapRouter.json.mjs +0 -537
  1069. package/common/src/externalABIs/IUniswapV3Factory.json.cjs +0 -1
  1070. package/common/src/externalABIs/IUniswapV3Factory.json.mjs +0 -188
  1071. package/common/src/externalABIs/IUniswapV3Pool.json.cjs +0 -1
  1072. package/common/src/externalABIs/IUniswapV3Pool.json.mjs +0 -938
  1073. package/common/src/externalABIs/UniswapV2PoolAbi.json.cjs +0 -1
  1074. package/common/src/externalABIs/UniswapV2PoolAbi.json.mjs +0 -78
  1075. package/common/src/functions/pre-transaction/interaction-to-action.cjs +0 -1
  1076. package/common/src/functions/pre-transaction/interaction-to-action.mjs +0 -1
  1077. package/common/src/functions/pre-transaction/recipientUtxoProcessing.cjs +0 -1
  1078. package/common/src/functions/pre-transaction/recipientUtxoProcessing.mjs +0 -32
  1079. package/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.cjs +0 -1
  1080. package/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.mjs +0 -29
  1081. package/common/src/functions/private-wallet/opProducer.cjs +0 -1
  1082. package/common/src/functions/private-wallet/opProducer.mjs +0 -3
  1083. package/common/src/functions/snarkjs/generateZkProofEnclave.cjs +0 -1
  1084. package/common/src/functions/snarkjs/generateZkProofEnclave.mjs +0 -27
  1085. package/common/src/functions/utils/bit.operations.cjs +0 -1
  1086. package/common/src/functions/utils/bit.operations.mjs +0 -4
  1087. package/common/src/functions/utils/get-signature-header.cjs +0 -1
  1088. package/common/src/functions/utils/get-signature-header.mjs +0 -4
  1089. package/common/src/functions/utils/ipfs.cjs +0 -1
  1090. package/common/src/functions/utils/ipfs.mjs +0 -1
  1091. package/common/src/functions/utils/reloadPage.cjs +0 -1
  1092. package/common/src/functions/utils/reloadPage.mjs +0 -4
  1093. package/common/src/functions/web3/getSolanaPriorityFee.cjs +0 -1
  1094. package/common/src/functions/web3/getSolanaPriorityFee.mjs +0 -26
  1095. package/common/src/functions/web3/odosAPI.cjs +0 -1
  1096. package/common/src/functions/web3/odosAPI.mjs +0 -35
  1097. package/common/src/functions/web3/oneInchAPI.cjs +0 -1
  1098. package/common/src/functions/web3/oneInchAPI.mjs +0 -34
  1099. package/common/src/functions/web3/uniswapAPI.cjs +0 -1
  1100. package/common/src/functions/web3/uniswapAPI.mjs +0 -60
  1101. package/common/src/types/new-rewards.type.cjs +0 -1
  1102. package/common/src/types/new-rewards.type.mjs +0 -10
  1103. package/common/src/types/scheduled-transactions.types.cjs +0 -1
  1104. package/common/src/types/scheduled-transactions.types.mjs +0 -6
  1105. package/common/src/webworker/logError-CZYZ3oyV.js +0 -2
  1106. package/common/src/webworker/workerProxy-DPeuP2Mg.js +0 -1
@@ -1 +0,0 @@
1
- var e={_format:`hh-sol-artifact-1`,abi:[{inputs:[],name:`token0`,outputs:[{internalType:`address`,name:``,type:`address`}],stateMutability:`view`,type:`function`},{inputs:[],name:`token1`,outputs:[{internalType:`address`,name:``,type:`address`}],stateMutability:`view`,type:`function`},{inputs:[],name:`stable`,outputs:[{internalType:`bool`,name:``,type:`bool`}],stateMutability:`view`,type:`function`},{inputs:[],name:`getReserves`,outputs:[{internalType:`uint256`,name:`_reserve0`,type:`uint256`},{internalType:`uint256`,name:`_reserve1`,type:`uint256`},{internalType:`uint256`,name:`_blockTimestampLast`,type:`uint256`}],stateMutability:`view`,type:`function`},{inputs:[],name:`totalSupply`,outputs:[{internalType:`uint256`,name:``,type:`uint256`}],stateMutability:`view`,type:`function`}],bytecode:`0x`,deployedBytecode:`0x`,linkReferences:{},deployedLinkReferences:{}};exports.default=e;
@@ -1,78 +0,0 @@
1
- var e = {
2
- _format: "hh-sol-artifact-1",
3
- abi: [
4
- {
5
- inputs: [],
6
- name: "token0",
7
- outputs: [{
8
- internalType: "address",
9
- name: "",
10
- type: "address"
11
- }],
12
- stateMutability: "view",
13
- type: "function"
14
- },
15
- {
16
- inputs: [],
17
- name: "token1",
18
- outputs: [{
19
- internalType: "address",
20
- name: "",
21
- type: "address"
22
- }],
23
- stateMutability: "view",
24
- type: "function"
25
- },
26
- {
27
- inputs: [],
28
- name: "stable",
29
- outputs: [{
30
- internalType: "bool",
31
- name: "",
32
- type: "bool"
33
- }],
34
- stateMutability: "view",
35
- type: "function"
36
- },
37
- {
38
- inputs: [],
39
- name: "getReserves",
40
- outputs: [
41
- {
42
- internalType: "uint256",
43
- name: "_reserve0",
44
- type: "uint256"
45
- },
46
- {
47
- internalType: "uint256",
48
- name: "_reserve1",
49
- type: "uint256"
50
- },
51
- {
52
- internalType: "uint256",
53
- name: "_blockTimestampLast",
54
- type: "uint256"
55
- }
56
- ],
57
- stateMutability: "view",
58
- type: "function"
59
- },
60
- {
61
- inputs: [],
62
- name: "totalSupply",
63
- outputs: [{
64
- internalType: "uint256",
65
- name: "",
66
- type: "uint256"
67
- }],
68
- stateMutability: "view",
69
- type: "function"
70
- }
71
- ],
72
- bytecode: "0x",
73
- deployedBytecode: "0x",
74
- linkReferences: {},
75
- deployedLinkReferences: {}
76
- };
77
- //#endregion
78
- export { e as default };
@@ -1 +0,0 @@
1
- require(`../../types/index.cjs`);
@@ -1 +0,0 @@
1
- import "../../types/index.mjs";
@@ -1 +0,0 @@
1
- const e=require(`../utils/caseInsensitive.utils.cjs`),t=require(`../../data-structures/utxo/Utxo.cjs`);var n=(n,r,i,a)=>{let{recipientInfo:o,amount:s,token:c}=n,[l,u,d,,f]=o.split(`,`),p=r.findIndex(t=>t.find(t=>e.caseInsensitiveEqual(t.erc20TokenAddress,n?.token.erc20TokenAddress))!==void 0),m=new t.Utxo({amount:s,erc20TokenAddress:c.erc20TokenAddress,timeStamp:a,H0:[BigInt(u),BigInt(d)],stealthAddress:l,encryptionKey:f,isNewStyle:!0});if(p===-1)throw Error(`Private recipient index not found`);r.forEach((e,n)=>{if(n===p)e.push(m),i[n]+=s;else{let n=new t.Utxo({amount:0n,erc20TokenAddress:e[0].erc20TokenAddress,timeStamp:a,H0:[BigInt(u),BigInt(d)],stealthAddress:l,encryptionKey:f,isNewStyle:!0});e.push(n)}})};exports.recipientUtxoProcessing=n;
@@ -1,32 +0,0 @@
1
- import { caseInsensitiveEqual as e } from "../utils/caseInsensitive.utils.mjs";
2
- import { Utxo as t } from "../../data-structures/utxo/Utxo.mjs";
3
- //#region libs/shared/common/src/functions/pre-transaction/recipientUtxoProcessing.ts
4
- var n = (n, r, i, a) => {
5
- let { recipientInfo: o, amount: s, token: c } = n, [l, u, d, , f] = o.split(","), p = r.findIndex((t) => t.find((t) => e(t.erc20TokenAddress, n?.token.erc20TokenAddress)) !== void 0), m = new t({
6
- amount: s,
7
- erc20TokenAddress: c.erc20TokenAddress,
8
- timeStamp: a,
9
- H0: [BigInt(u), BigInt(d)],
10
- stealthAddress: l,
11
- encryptionKey: f,
12
- isNewStyle: !0
13
- });
14
- if (p === -1) throw Error("Private recipient index not found");
15
- r.forEach((e, n) => {
16
- if (n === p) e.push(m), i[n] += s;
17
- else {
18
- let n = new t({
19
- amount: 0n,
20
- erc20TokenAddress: e[0].erc20TokenAddress,
21
- timeStamp: a,
22
- H0: [BigInt(u), BigInt(d)],
23
- stealthAddress: l,
24
- encryptionKey: f,
25
- isNewStyle: !0
26
- });
27
- e.push(n);
28
- }
29
- });
30
- };
31
- //#endregion
32
- export { n as recipientUtxoProcessing };
@@ -1 +0,0 @@
1
- const e=require(`../utils/time.utils.cjs`);var t=60,n=(e,t)=>{if(!e.length)return!0;let n=new Set(t.map(e=>e.toString()));return e.every(({utxo:e})=>{let t=BigInt(e.getCommitment());return n.has(t.toString())})},r=(e,t,n=20)=>{let r=e.merkleTreeHinkalByChain[t],i=r.getStartIndex(),{count:a}=r.toJSON(),o=BigInt(a);if(o===0n)return[];let s=r.getMerkleData(),c=[],l=o<BigInt(n)?o:BigInt(n);for(let e=0n;e<l;e+=1n){let t=i+o-1n-e,n=s.get(t);n&&n!==0n&&c.push(n)}return c},i=async(i,a,o)=>{if(o.length){for(let s=0;s<t;s+=1){if(n(o,r(i,a)))return;await e.waitLittle()}throw Error(`Timeout while waiting for deposited UTXOs to appear in Merkle tree.`)}};exports.waitForDepositedUtxosInMerkleTree=i;
@@ -1,29 +0,0 @@
1
- import { waitLittle as e } from "../utils/time.utils.mjs";
2
- //#region libs/shared/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.ts
3
- var t = 60, n = (e, t) => {
4
- if (!e.length) return !0;
5
- let n = new Set(t.map((e) => e.toString()));
6
- return e.every(({ utxo: e }) => {
7
- let t = BigInt(e.getCommitment());
8
- return n.has(t.toString());
9
- });
10
- }, r = (e, t, n = 20) => {
11
- let r = e.merkleTreeHinkalByChain[t], i = r.getStartIndex(), { count: a } = r.toJSON(), o = BigInt(a);
12
- if (o === 0n) return [];
13
- let s = r.getMerkleData(), c = [], l = o < BigInt(n) ? o : BigInt(n);
14
- for (let e = 0n; e < l; e += 1n) {
15
- let t = i + o - 1n - e, n = s.get(t);
16
- n && n !== 0n && c.push(n);
17
- }
18
- return c;
19
- }, i = async (i, a, o) => {
20
- if (o.length) {
21
- for (let s = 0; s < t; s += 1) {
22
- if (n(o, r(i, a))) return;
23
- await e();
24
- }
25
- throw Error("Timeout while waiting for deposited UTXOs to appear in Merkle tree.");
26
- }
27
- };
28
- //#endregion
29
- export { i as waitForDepositedUtxosInMerkleTree };
@@ -1 +0,0 @@
1
- require(`../../externalABIs/index.cjs`),require(`./emporium.helpers.cjs`),require(`ethers`);
@@ -1,3 +0,0 @@
1
- import "../../externalABIs/index.mjs";
2
- import "./emporium.helpers.mjs";
3
- import "ethers";
@@ -1 +0,0 @@
1
- const e=require(`./constant.cjs`),t=require(`../../data-structures/http/HttpClient.cjs`);require(`../../data-structures/http/index.cjs`);const n=require(`../utils/encryptInputForEnclave.cjs`),r=require(`./getZKFiles.cjs`);var i=e=>{if(e.startsWith(`http`)){let t=e.split(`/`).at(-1);if(!t)throw Error(`invalid verifierName`);return t}return e},a=async(a,o,s)=>{let c=o.map(e=>i(r.getWASMFile(e,a))),l=o.map(e=>i(r.getZKeyFile(e,a))),{keyCiphertext:u,inputCiphertext:d}=await n.makeEnclaveHandshakeAndEncryptInput(s),f={circuit_wasms:c,circuit_zkeys:l,inputs:d,key:u};return(await t.httpClient.post(`${e.ENCLAVE_URL}/generate-proofs`,f)).map(({zk_calldata:e,public_signals:t})=>({zkCallData:e,publicSignals:t}))};exports.generateZkProofEnclave=a;
@@ -1,27 +0,0 @@
1
- import { ENCLAVE_URL as e } from "./constant.mjs";
2
- import { httpClient as t } from "../../data-structures/http/HttpClient.mjs";
3
- import "../../data-structures/http/index.mjs";
4
- import { makeEnclaveHandshakeAndEncryptInput as n } from "../utils/encryptInputForEnclave.mjs";
5
- import { getWASMFile as r, getZKeyFile as i } from "./getZKFiles.mjs";
6
- //#region libs/shared/common/src/functions/snarkjs/generateZkProofEnclave.ts
7
- var a = (e) => {
8
- if (e.startsWith("http")) {
9
- let t = e.split("/").at(-1);
10
- if (!t) throw Error("invalid verifierName");
11
- return t;
12
- }
13
- return e;
14
- }, o = async (o, s, c) => {
15
- let l = s.map((e) => a(r(e, o))), u = s.map((e) => a(i(e, o))), { keyCiphertext: d, inputCiphertext: f } = await n(c), p = {
16
- circuit_wasms: l,
17
- circuit_zkeys: u,
18
- inputs: f,
19
- key: d
20
- };
21
- return (await t.post(`${e}/generate-proofs`, p)).map(({ zk_calldata: e, public_signals: t }) => ({
22
- zkCallData: e,
23
- publicSignals: t
24
- }));
25
- };
26
- //#endregion
27
- export { o as generateZkProofEnclave };
@@ -1 +0,0 @@
1
- var e=e=>e|2n**255n,t=e=>e&2n**255n-1n,n=e=>e>>255n&1n;exports.addHighestBitToNumber=e,exports.extractHighestBit=n,exports.takeOffHighestBit=t;
@@ -1,4 +0,0 @@
1
- //#region libs/shared/common/src/functions/utils/bit.operations.ts
2
- var e = (e) => e | 2n ** 255n, t = (e) => e & 2n ** 255n - 1n, n = (e) => e >> 255n & 1n;
3
- //#endregion
4
- export { e as addHighestBitToNumber, n as extractHighestBit, t as takeOffHighestBit };
@@ -1 +0,0 @@
1
- var e=e=>({headers:{"x-user-signature":e}});exports.getSignatureHeader=e;
@@ -1,4 +0,0 @@
1
- //#region libs/shared/common/src/functions/utils/get-signature-header.ts
2
- var e = (e) => ({ headers: { "x-user-signature": e } });
3
- //#endregion
4
- export { e as getSignatureHeader };
@@ -1 +0,0 @@
1
- require(`multiformats`);
@@ -1 +0,0 @@
1
- import "multiformats";
@@ -1 +0,0 @@
1
- var e=()=>window.location.reload();exports.reloadPage=e;
@@ -1,4 +0,0 @@
1
- //#region libs/shared/common/src/functions/utils/reloadPage.ts
2
- var e = () => window.location.reload();
3
- //#endregion
4
- export { e as reloadPage };
@@ -1 +0,0 @@
1
- const e=require(`../../constants/chains.constants.cjs`),t=require(`../../constants/protocol.constants.cjs`),n=require(`../../data-structures/http/HttpClient.cjs`);require(`../../data-structures/http/index.cjs`);const r=require(`../../error-handling/logger.cjs`),i=require(`../../types/fee.types.cjs`);var a=async(a,o=i.SolanaPriorityFeeMode.RECOMMENDED)=>{let s=a.map(e=>e.toBase58());try{let r=await n.httpClient.post(e.HELIUS_RPC_URL,{jsonrpc:`2.0`,id:`1`,method:`getPriorityFeeEstimate`,params:[{accountKeys:s,options:o===i.SolanaPriorityFeeMode.RECOMMENDED?{recommended:!0}:{includeAllPriorityFeeLevels:!0}}]}),a=o===i.SolanaPriorityFeeMode.RECOMMENDED?r.result?.priorityFeeEstimate:r.result?.priorityFeeLevels?.high;return Math.min(a??15e5,t.MAX_MICRO_LAMPORTS_PER_CU)}catch(e){return r.Logger.error(`Error getting solana priority fee:`,e),t.MAX_MICRO_LAMPORTS_PER_CU}};exports.getSolanaPriorityFee=a;
@@ -1,26 +0,0 @@
1
- import { HELIUS_RPC_URL as e } from "../../constants/chains.constants.mjs";
2
- import { MAX_MICRO_LAMPORTS_PER_CU as t } from "../../constants/protocol.constants.mjs";
3
- import { httpClient as n } from "../../data-structures/http/HttpClient.mjs";
4
- import "../../data-structures/http/index.mjs";
5
- import { Logger as r } from "../../error-handling/logger.mjs";
6
- import { SolanaPriorityFeeMode as i } from "../../types/fee.types.mjs";
7
- //#region libs/shared/common/src/functions/web3/getSolanaPriorityFee.ts
8
- var a = async (a, o = i.RECOMMENDED) => {
9
- let s = a.map((e) => e.toBase58());
10
- try {
11
- let r = await n.post(e, {
12
- jsonrpc: "2.0",
13
- id: "1",
14
- method: "getPriorityFeeEstimate",
15
- params: [{
16
- accountKeys: s,
17
- options: o === i.RECOMMENDED ? { recommended: !0 } : { includeAllPriorityFeeLevels: !0 }
18
- }]
19
- }), a = o === i.RECOMMENDED ? r.result?.priorityFeeEstimate : r.result?.priorityFeeLevels?.high;
20
- return Math.min(a ?? 15e5, t);
21
- } catch (e) {
22
- return r.error("Error getting solana priority fee:", e), t;
23
- }
24
- };
25
- //#endregion
26
- export { a as getSolanaPriorityFee };
@@ -1 +0,0 @@
1
- const e=require(`../../constants/chains.constants.cjs`),t=require(`../../constants/protocol.constants.cjs`),n=require(`../../error-handling/error-codes.constants.cjs`),r=require(`./etherFunctions.cjs`),i=require(`../../API/callOdosAPI.cjs`);require(`../../error-handling/index.cjs`),require(`../../constants/index.cjs`);var a=async(a,o,s,c,l=.7)=>{try{let{odosResponse:n,status:u}=await i.callOdosAPI(a,{chainId:a===31337?e.localhostNetwork:a,inputTokens:[{tokenAddress:o?.wrappedErc20TokenAddress??o.erc20TokenAddress,amount:r.getAmountInWei(o,c).toString()}],outputTokens:[{tokenAddress:s?.wrappedErc20TokenAddress??s.erc20TokenAddress,proportion:1}],userAddr:e.networkRegistry[a].contractData.odosExternalActionInstanceAddress||t.zeroAddress,slippageLimitPercent:l,disableRFQs:!0});if(u!==`success`)throw Error(`Odos API Fetch Error`);return{outSwapAmountValue:BigInt(n.outputTokens[0].amount),odosDataValue:n.transaction.data}}catch(e){throw console.log({error:e}),Error(n.transactionErrorCodes.NO_ODOS_PRICE)}};exports.getOdosPrice=a;
@@ -1,35 +0,0 @@
1
- import { localhostNetwork as e, networkRegistry as t } from "../../constants/chains.constants.mjs";
2
- import { zeroAddress as n } from "../../constants/protocol.constants.mjs";
3
- import { transactionErrorCodes as r } from "../../error-handling/error-codes.constants.mjs";
4
- import { getAmountInWei as i } from "./etherFunctions.mjs";
5
- import { callOdosAPI as a } from "../../API/callOdosAPI.mjs";
6
- import "../../error-handling/index.mjs";
7
- import "../../constants/index.mjs";
8
- //#region libs/shared/common/src/functions/web3/odosAPI.ts
9
- var o = async (o, s, c, l, u = .7) => {
10
- try {
11
- let { odosResponse: r, status: d } = await a(o, {
12
- chainId: o === 31337 ? e : o,
13
- inputTokens: [{
14
- tokenAddress: s?.wrappedErc20TokenAddress ?? s.erc20TokenAddress,
15
- amount: i(s, l).toString()
16
- }],
17
- outputTokens: [{
18
- tokenAddress: c?.wrappedErc20TokenAddress ?? c.erc20TokenAddress,
19
- proportion: 1
20
- }],
21
- userAddr: t[o].contractData.odosExternalActionInstanceAddress || n,
22
- slippageLimitPercent: u,
23
- disableRFQs: !0
24
- });
25
- if (d !== "success") throw Error("Odos API Fetch Error");
26
- return {
27
- outSwapAmountValue: BigInt(r.outputTokens[0].amount),
28
- odosDataValue: r.transaction.data
29
- };
30
- } catch (e) {
31
- throw console.log({ error: e }), Error(r.NO_ODOS_PRICE);
32
- }
33
- };
34
- //#endregion
35
- export { o as getOdosPrice };
@@ -1 +0,0 @@
1
- const e=require(`../../constants/protocol.constants.cjs`),t=require(`../../error-handling/error-codes.constants.cjs`),n=require(`./etherFunctions.cjs`),r=require(`../../types/ethereum-network.types.cjs`);require(`../../types/index.cjs`);const i=require(`../../error-handling/logger.cjs`);require(`../../error-handling/index.cjs`);const a=require(`./getContractMetadata.cjs`);require(`../../constants/index.cjs`);const o=require(`../../API/callOneInchAPI.cjs`);var s=async(s,c,l,u,d=.7)=>{try{let t=await o.callOneInchAPI(s,{fromTokenAddress:c.erc20TokenAddress===e.zeroAddress?e.oneInchZeroAddress:c.erc20TokenAddress,toTokenAddress:l.erc20TokenAddress===e.zeroAddress?e.oneInchZeroAddress:l.erc20TokenAddress,fromAddress:e.zeroAddress,destReceiver:a.getContractMetadata(r.ContractType.OneInchExternalActionContract,s).address,amount:n.getAmountInWei(c,u),slippage:d,disableEstimate:!0,allowPartialFill:!1});if(!t||!t.tx)throw Error(`OneInch API price fetch error`);return{outSwapAmountValue:BigInt(t.toAmount),oneInchDataValue:t.tx.data}}catch(e){throw i.Logger.log({error:e}),Error(t.transactionErrorCodes.NO_ONEINCH_PRICE)}};exports.getOneInchPrice=s;
@@ -1,34 +0,0 @@
1
- import { oneInchZeroAddress as e, zeroAddress as t } from "../../constants/protocol.constants.mjs";
2
- import { transactionErrorCodes as n } from "../../error-handling/error-codes.constants.mjs";
3
- import { getAmountInWei as r } from "./etherFunctions.mjs";
4
- import { ContractType as i } from "../../types/ethereum-network.types.mjs";
5
- import "../../types/index.mjs";
6
- import { Logger as a } from "../../error-handling/logger.mjs";
7
- import "../../error-handling/index.mjs";
8
- import { getContractMetadata as o } from "./getContractMetadata.mjs";
9
- import "../../constants/index.mjs";
10
- import { callOneInchAPI as s } from "../../API/callOneInchAPI.mjs";
11
- //#region libs/shared/common/src/functions/web3/oneInchAPI.ts
12
- var c = async (c, l, u, d, f = .7) => {
13
- try {
14
- let n = await s(c, {
15
- fromTokenAddress: l.erc20TokenAddress === t ? e : l.erc20TokenAddress,
16
- toTokenAddress: u.erc20TokenAddress === t ? e : u.erc20TokenAddress,
17
- fromAddress: t,
18
- destReceiver: o(i.OneInchExternalActionContract, c).address,
19
- amount: r(l, d),
20
- slippage: f,
21
- disableEstimate: !0,
22
- allowPartialFill: !1
23
- });
24
- if (!n || !n.tx) throw Error("OneInch API price fetch error");
25
- return {
26
- outSwapAmountValue: BigInt(n.toAmount),
27
- oneInchDataValue: n.tx.data
28
- };
29
- } catch (e) {
30
- throw a.log({ error: e }), Error(n.NO_ONEINCH_PRICE);
31
- }
32
- };
33
- //#endregion
34
- export { c as getOneInchPrice };
@@ -1 +0,0 @@
1
- require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../constants/chains.constants.cjs`),t=require(`../../constants/protocol.constants.cjs`),n=require(`../../error-handling/error-codes.constants.cjs`),r=require(`./etherFunctions.cjs`),i=require(`../../types/ethereum-network.types.cjs`);require(`../../types/index.cjs`);const a=require(`../../error-handling/logError.cjs`);require(`../../error-handling/index.cjs`),require(`../../constants/index.cjs`);let o=require(`ethers`);var s=async(e,r,i,a)=>{let o=(await Promise.all([100,500,3e3,1e4].map(async e=>({poolAddress:await r.getPool(i,a,e),fee:e})))).filter(({poolAddress:e})=>e!==t.zeroAddress),s=await Promise.all(o.map(async t=>({poolAddress:t.poolAddress,fee:t.fee,token1Balance:await e.balanceOf(t.poolAddress)}))),c=s.map(e=>e.token1Balance).reduce((e,t)=>t>=e?t:e,0n);if(c===0n)throw Error(n.transactionErrorCodes.UNISWAP_NOT_ENOUGH_LIQUIDITY);return s.find(e=>e.token1Balance===c)},c=async(t,n,r,o,s,c)=>{try{if(!e.networkRegistry[n].quoterV2Address)throw Error(`No Quoter Contract Provided`);return(await t.getContractWithFetcherByChainId(n,i.ContractType.UniswapV3QuoterContract,e.networkRegistry[n].quoterV2Address).quoteExactInputSingle.staticCall({tokenIn:r.wrappedErc20TokenAddress??r.erc20TokenAddress,tokenOut:o.wrappedErc20TokenAddress??o.erc20TokenAddress,fee:s,amountIn:c,sqrtPriceLimitX96:0})).amountOut}catch(e){throw a.logError(e),e}},l=async(t,n,r,a)=>{try{let o=t.getContractWithFetcherByChainId(n,i.ContractType.UniswapV3FactoryContract,e.networkRegistry[n].uniswapV3FactoryAddress),{fee:c}=await s(t.getContractWithFetcherByChainId(n,i.ContractType.ERC20Contract,a.wrappedErc20TokenAddress??a.erc20TokenAddress),o,r.wrappedErc20TokenAddress??r.erc20TokenAddress,a.wrappedErc20TokenAddress??a.erc20TokenAddress);return c}catch(e){throw console.log(`Error in getUniswapFee`,e),e}},u=async(e,t,i,a,s)=>{try{let n=await l(e,t,a,s),u=o.ethers.AbiCoder.defaultAbiCoder().encode([`uint24`],[n]);return{tokenPrice:await c(e,t,a,s,n,r.getAmountInWei(a,i)),poolFee:u}}catch{throw Error(n.transactionErrorCodes.NO_UNISWAP_PRICE)}};exports.getUniswapFee=l,exports.getUniswapPrice=u,exports.getUniswapPriceHelper=c,exports.searchPoolAndFee=s;
@@ -1,60 +0,0 @@
1
- import { networkRegistry as e } from "../../constants/chains.constants.mjs";
2
- import { zeroAddress as t } from "../../constants/protocol.constants.mjs";
3
- import { transactionErrorCodes as n } from "../../error-handling/error-codes.constants.mjs";
4
- import { getAmountInWei as r } from "./etherFunctions.mjs";
5
- import { ContractType as i } from "../../types/ethereum-network.types.mjs";
6
- import "../../types/index.mjs";
7
- import { logError as a } from "../../error-handling/logError.mjs";
8
- import "../../error-handling/index.mjs";
9
- import "../../constants/index.mjs";
10
- import { ethers as o } from "ethers";
11
- //#region libs/shared/common/src/functions/web3/uniswapAPI.ts
12
- var s = async (e, r, i, a) => {
13
- let o = (await Promise.all([
14
- 100,
15
- 500,
16
- 3e3,
17
- 1e4
18
- ].map(async (e) => ({
19
- poolAddress: await r.getPool(i, a, e),
20
- fee: e
21
- })))).filter(({ poolAddress: e }) => e !== t), s = await Promise.all(o.map(async (t) => ({
22
- poolAddress: t.poolAddress,
23
- fee: t.fee,
24
- token1Balance: await e.balanceOf(t.poolAddress)
25
- }))), c = s.map((e) => e.token1Balance).reduce((e, t) => t >= e ? t : e, 0n);
26
- if (c === 0n) throw Error(n.UNISWAP_NOT_ENOUGH_LIQUIDITY);
27
- return s.find((e) => e.token1Balance === c);
28
- }, c = async (t, n, r, o, s, c) => {
29
- try {
30
- if (!e[n].quoterV2Address) throw Error("No Quoter Contract Provided");
31
- return (await t.getContractWithFetcherByChainId(n, i.UniswapV3QuoterContract, e[n].quoterV2Address).quoteExactInputSingle.staticCall({
32
- tokenIn: r.wrappedErc20TokenAddress ?? r.erc20TokenAddress,
33
- tokenOut: o.wrappedErc20TokenAddress ?? o.erc20TokenAddress,
34
- fee: s,
35
- amountIn: c,
36
- sqrtPriceLimitX96: 0
37
- })).amountOut;
38
- } catch (e) {
39
- throw a(e), e;
40
- }
41
- }, l = async (t, n, r, a) => {
42
- try {
43
- let o = t.getContractWithFetcherByChainId(n, i.UniswapV3FactoryContract, e[n].uniswapV3FactoryAddress), { fee: c } = await s(t.getContractWithFetcherByChainId(n, i.ERC20Contract, a.wrappedErc20TokenAddress ?? a.erc20TokenAddress), o, r.wrappedErc20TokenAddress ?? r.erc20TokenAddress, a.wrappedErc20TokenAddress ?? a.erc20TokenAddress);
44
- return c;
45
- } catch (e) {
46
- throw console.log("Error in getUniswapFee", e), e;
47
- }
48
- }, u = async (e, t, i, a, s) => {
49
- try {
50
- let n = await l(e, t, a, s), u = o.AbiCoder.defaultAbiCoder().encode(["uint24"], [n]);
51
- return {
52
- tokenPrice: await c(e, t, a, s, n, r(a, i)),
53
- poolFee: u
54
- };
55
- } catch {
56
- throw Error(n.NO_UNISWAP_PRICE);
57
- }
58
- };
59
- //#endregion
60
- export { l as getUniswapFee, u as getUniswapPrice, c as getUniswapPriceHelper, s as searchPoolAndFee };
@@ -1 +0,0 @@
1
- var e=function(e){return e.Welcome=`welcome`,e.Daily=`daily`,e.Brotherhood=`brotherhood`,e.PointsBoost=`pointsBoost`,e}({}),t=function(e){return e.None=`None`,e.Bronze=`Bronze`,e.Silver=`Silver`,e.Gold=`Gold`,e.Diamond=`Diamond`,e}({}),n=function(e){return e.discord=`discord`,e.telegram=`telegram`,e.firstSwap=`firstSwap`,e.members=`members`,e.quests=`quests`,e.swaps=`swaps`,e.referrals=`referrals`,e.dApps=`dApps`,e.chains=`chains`,e.dailySwap=`dailySwap`,e.dailyDappTx=`dailyDappTx`,e.achievementSwaps=`achievementSwaps`,e.achievementReferrals=`achievementReferrals`,e.achievementDapps=`achievementDapps`,e.achievementChains=`achievementChains`,e.achievementPrivateSends=`achievementPrivateSends`,e.createOrJoinBH=`createOrJoinBH`,e.shieldUnshield=`shieldUnshield`,e.moneyComes=`moneyComes`,e.referralPrivateSendBonus=`referralPrivateSendBonus`,e}({});exports.AchievementTiers=t,exports.TaskCategory=e,exports.TaskTypes=n;
@@ -1,10 +0,0 @@
1
- //#region libs/shared/common/src/types/new-rewards.type.ts
2
- var e = /* @__PURE__ */ function(e) {
3
- return e.Welcome = "welcome", e.Daily = "daily", e.Brotherhood = "brotherhood", e.PointsBoost = "pointsBoost", e;
4
- }({}), t = /* @__PURE__ */ function(e) {
5
- return e.None = "None", e.Bronze = "Bronze", e.Silver = "Silver", e.Gold = "Gold", e.Diamond = "Diamond", e;
6
- }({}), n = /* @__PURE__ */ function(e) {
7
- return e.discord = "discord", e.telegram = "telegram", e.firstSwap = "firstSwap", e.members = "members", e.quests = "quests", e.swaps = "swaps", e.referrals = "referrals", e.dApps = "dApps", e.chains = "chains", e.dailySwap = "dailySwap", e.dailyDappTx = "dailyDappTx", e.achievementSwaps = "achievementSwaps", e.achievementReferrals = "achievementReferrals", e.achievementDapps = "achievementDapps", e.achievementChains = "achievementChains", e.achievementPrivateSends = "achievementPrivateSends", e.createOrJoinBH = "createOrJoinBH", e.shieldUnshield = "shieldUnshield", e.moneyComes = "moneyComes", e.referralPrivateSendBonus = "referralPrivateSendBonus", e;
8
- }({});
9
- //#endregion
10
- export { t as AchievementTiers, e as TaskCategory, n as TaskTypes };
@@ -1 +0,0 @@
1
- var e=function(e){return e.BEFORE_DEPOSIT=`before_deposit`,e.AFTER_DEPOSIT=`after_deposit`,e.BEFORE_SCHEDULE_WITHDRAW=`before_schedule_withdraw`,e.AFTER_SCHEDULE_WITHDRAW=`after_schedule_withdraw`,e}({});exports.DepositAndWithdrawPhase=e;
@@ -1,6 +0,0 @@
1
- //#region libs/shared/common/src/types/scheduled-transactions.types.ts
2
- var e = /* @__PURE__ */ function(e) {
3
- return e.BEFORE_DEPOSIT = "before_deposit", e.AFTER_DEPOSIT = "after_deposit", e.BEFORE_SCHEDULE_WITHDRAW = "before_schedule_withdraw", e.AFTER_SCHEDULE_WITHDRAW = "after_schedule_withdraw", e;
4
- }({});
5
- //#endregion
6
- export { e as DepositAndWithdrawPhase };
@@ -1,2 +0,0 @@
1
- const e=require(`./workerProxy-DPeuP2Mg.js`);let t=require(`buffer`),n=require(`process`);n=e.u(n);let r=require(`circomlibjs-hinkal-fork`),i=require(`ethers`),a=require(`libsodium-wrappers`);a=e.u(a);let o=require(`@solana/web3.js`),s=require(`bs58`);s=e.u(s);let c=require(`tweetnacl`);c=e.u(c);let l=require(`tronweb`);var u=new class{babyjub=void 0;async init(){this.babyjub||=e.o?(0,r.buildBabyJubRN)():await(0,r.buildBabyjub)()}getJub(){return this.babyjub}},d=()=>u.getJub(),f=new class{eddsa=void 0;async init(){this.eddsa||=e.o?await(0,r.buildEddsaRN)():await(0,r.buildEddsa)()}getEddsa(){return this.eddsa}},p=()=>f.getEddsa();function m(e){return typeof e==`object`&&`toBigInt`in e?e.toBigInt():BigInt(e)}var h=new class{poseidon=void 0;async init(){this.poseidon||=e.o?(0,r.buildPoseidonRN)():await(0,r.buildPoseidon)()}getPoseidon(){return this.poseidon}};function g(...e){let t=h.getPoseidon();return m(t.F.toString(t(e)))}var _=(...e)=>{let t=h.getPoseidon();return i.ethers.toBeHex(t.F.toString(t([...e])))},v=async(e=!1)=>{(typeof window<`u`||typeof self<`u`)&&(typeof window<`u`&&(window.global=window),globalThis.Buffer=t.Buffer,globalThis.process=n.default),await Promise.all([a.default.ready,h.init(),u.init(),...e?[]:[f.init()]])};`${`00`.repeat(20)}`;var y=21888242871839275222246405745257275088548364400416034343698204186575808495617n,b=y/2n,x=200n;`${`00`.repeat(32)}`;var S=class{inMemoryCache=new Map;constructor(e){e&&this.mergeWithSerialized(e)}getInMemory(e){return this.inMemoryCache.get(e)??void 0}setInMemory(e,t){this.inMemoryCache.set(e,t)}mergeWithSerialized(t){Object.entries(t).forEach(([t,n])=>{this.set(t,e.c(n))})}},C=class extends S{isAttached=!1;get(e){return this.getInMemory(e)}set(e,t){this.setInMemory(e,t)}serialize(){return Object.fromEntries([...this.inMemoryCache].map(([t,n])=>[t,e.l(n)]))}attach(t){if(this.isAttached)throw Error(`can't reattach cache device`);return this.isAttached=!0,(...n)=>{let r=e.l(n),i=this.get(r);if(i!==void 0)return i;let a=t(...n);return this.set(r,a),a}}},w=e=>{if(e<0n||e>=21888242871839275222246405745257275088548364400416034343698204186575808495617n)throw RangeError();return e>b},T=e=>w(e)?1n:0n,E=new C,D=new C,O=new C,k=class{signature;nullifyingKey;PREFIX_FOR_SPENDING_PAIR=`1`;PREFIX_FOR_NULLIFYING_PAIR=`2`;constructor(e,t){this.signature=e,this.nullifyingKey=t}getSignature(){return this.requireSignature(),this.signature}setSignature(e){this.signature=e}requireSignature(){if(!this.signature)throw Error(`No signature provided`)}requireKeyMaterial(){if(!this.signature&&!this.nullifyingKey)throw Error(`No signature or private key provided`)}verifyTronMessage(e,t){return this.requireSignature(),t===l.Trx.verifyMessageV2(e,this.signature)}getShieldedPrivateKey=()=>(this.requireKeyMaterial(),this.nullifyingKey||=i.ethers.keccak256(this.signature),this.nullifyingKey);getShieldedPublicKey=()=>(this.requireKeyMaterial(),_(this.getShieldedPrivateKey()));getSpendingKeyPair=()=>{this.requireSignature();let e=p(),t=d(),n=_(this.PREFIX_FOR_SPENDING_PAIR,this.getSignature()),r=Buffer.from(i.ethers.getBytes(n)),a=e.prv2pub(r);return{privSpendingKey:n,pubSpendingBJJPoint:[BigInt(t.F.toString(a[0])),BigInt(t.F.toString(a[1]))]}};signEddsa=e=>{this.requireSignature();let t=d(),n=p(),r=Buffer.from(i.ethers.getBytes(this.getSpendingKeyPair().privSpendingKey)),a=t.F.e(e),o=n.signPoseidon(r,a);return{R8:[BigInt(t.F.toString(o.R8[0])),BigInt(t.F.toString(o.R8[1]))],S:BigInt(o.S)}};getShieldedPrivateKeyFromNonce=e=>{this.requireKeyMaterial();let t=_(e,this.getShieldedPrivateKey(),this.getShieldedPublicKey());return i.ethers.keccak256(i.ethers.toUtf8Bytes(`hinkal-offchain-shielded-key:${t}`))};getClaimableSignatureFromNonce=e=>{this.requireKeyMaterial();let t=_(e,this.getShieldedPrivateKey(),this.getShieldedPublicKey());return i.ethers.keccak256(i.ethers.toUtf8Bytes(`hinkal-claimable-utxo-signature:${t}`))};getDerivedEthereumAddress=()=>(this.requireKeyMaterial(),new i.ethers.Wallet(this.getShieldedPrivateKey()).address);getDerivedSolanaPublicKey=()=>(this.requireKeyMaterial(),o.Keypair.fromSeed(i.ethers.getBytes(this.getShieldedPrivateKey())).publicKey.toBase58());getNearIntentsAccountId=()=>{this.requireKeyMaterial();let e=o.Keypair.fromSeed(i.ethers.getBytes(this.getShieldedPrivateKey()));return i.ethers.hexlify(e.publicKey.toBytes()).slice(2)};getNearIntentsKeyPairString=()=>{this.requireKeyMaterial();let e=o.Keypair.fromSeed(i.ethers.getBytes(this.getShieldedPrivateKey()));return`ed25519:${s.default.encode(e.secretKey)}`};getSignerPrivateKeyFromNonce=e=>{this.requireKeyMaterial();let t=_(e,this.getShieldedPrivateKey(),this.getShieldedPublicKey());return i.ethers.keccak256(i.ethers.toUtf8Bytes(t))};getSignerSolanaPrivateKeyFromNonce=e=>{let t=this.getSignerPrivateKeyFromNonce(e),n=i.ethers.getBytes(t),r=o.Keypair.fromSeed(n);return s.default.encode(r.secretKey)};verifyMessage(e){return this.requireSignature(),i.ethers.verifyMessage(e,this.signature)}verifySolanaMessage(e,t){this.requireSignature();let n=new TextEncoder().encode(e),r=i.ethers.getBytes(this.signature),a=new o.PublicKey(t).toBytes();return c.default.sign.detached.verify(n,r,a)}static getRandomizedStealthPairOld=D.attach((e,t)=>{let n=d(),r=e*(BigInt(t)%y)%y,i=n.mulPointEscalar(n.Base8,e),a=n.mulPointEscalar(n.Base8,r);return{H0:[BigInt(n.F.toString(i[0])),BigInt(n.F.toString(i[1]))],H1:[BigInt(n.F.toString(a[0])),BigInt(n.F.toString(a[1]))]}});static getRandomizedStealthPair=E.attach((e,t)=>{let n=d(),r=BigInt(t)%y,i=n.mulPointEscalar(n.Base8,e),a=n.mulPointEscalar(i,r);return{H0:[BigInt(n.F.toString(i[0])),BigInt(n.F.toString(i[1]))],H1:[BigInt(n.F.toString(a[0])),BigInt(n.F.toString(a[1]))]}});static getStealthAddressCompressedPoints=(e,t)=>{let{H0:n,H1:r}=this.getRandomizedStealthPairOld(e,t),[i,a]=[n,r].map(e=>BigInt(e[1])+2n**255n*T(e[0]));return{h0:i,h1:a}};static checkSignature=(e,t,n,r)=>{let{h0:i,h1:a}=this.getStealthAddressCompressedPoints(e,r);return t===i&&n===a};static getStealthAddress=O.attach((e,t)=>{let{H0:n,H1:r}=this.getRandomizedStealthPairOld(e,t);return _(2n*T(n[0])+T(r[0]),n[1],r[1])});static getH1FromH0=(e,t)=>{let n=d(),r=BigInt(t)%y,i=[n.F.e(e[0]),n.F.e(e[1])],a=n.mulPointEscalar(i,r);return[BigInt(n.F.toString(a[0])),BigInt(n.F.toString(a[1]))]};static verifyStealthPair=(e,t,n,r=!0)=>{let i=this.getH1FromH0(e,n);return r?i[1]===t[1]:i===t};static getStealthAddressNewStyle=(e,t,n)=>{if(n?.length!==2)throw Error(`Spending public key must be an array of 2 elements`);let r=this.getH1FromH0(e,t);return _(2n*T(e[0])+T(r[0]),e[1],r[1],n[0],n[1],t)};static findCorrectRandomization(e,t){if(!t)throw Error(`No Private Shielded Key Provided`);let n=BigInt(t)%y,r,i,a=0n;do r=e*10n**a%y,i=r*n%y,a+=1n;while(i>=2n**253n||r>=2n**253n);return r}static getH0FromRandomization=e=>{let t=d(),n=t.mulPointEscalar(t.Base8,e);return[BigInt(t.F.toString(n[0])),BigInt(t.F.toString(n[1]))]};static findH0(e,t){if(!t)return;let{H0:n}=this.getRandomizedStealthPair(e,t);return n}static getEncryptionKeyPair=e=>{let t=a.default.crypto_box_seed_keypair(i.ethers.getBytes(e));return{privateKey:i.ethers.hexlify(t.privateKey),publicKey:i.ethers.hexlify(t.publicKey)}};getAccessKey=()=>(this.requireKeyMaterial(),_(this.getShieldedPrivateKey(),this.getShieldedPublicKey()));getBackendToken=()=>(this.requireKeyMaterial(),_(this.getAccessKey(),this.getShieldedPublicKey()))},A={CANNOT_CERTIFY_FOR_PAST_WEEK:`Certification for the past week is not available`,CYCLICAL_REFERRALS_FORBIDDEN:`Cyclical referrals are forbidden`,USER_IS_UNRANKED:`Please certify transactions to see rank`},j={WC_NO_MATCHING_KEY:`creating the transaction failed
2
- version`,CONNECTION_PROBLEM:`Failed to connect wallet. Please try again.`,REQUEST_PENDING:`request of type 'wallet_requestpermissions' already pending for origin`},M={INSUFFICIENT_FUNDS:`Insufficient funds`,INSUFFICIENT_FUNDS_WITHDRAW:`Not enough funds to withdraw`,INSUFFICIENT_FUNDS_TRANSFER:`Not enough funds to transfer`,INSUFFICIENT_FUNDS_TO_TRANSACT:`Not enough funds to transact`,INSUFFICIENT_FUNDS_GAS:`Insufficient funds for gas * price`,INSUFFICIENT_TRON_BALANCE_FOR_FEE:`Insufficient TRX balance to cover transfer amount and transaction fee reserve`,INSUFFICIENT_SOL_BALANCE:`Insufficient SOL balance`},N={GAS_PRICE_EXCEEDS_AUTOSHIELD_LIMIT:`Skipped shielding due to gas fee exceeding your limit.`,AUTO_SHIELD_INSUFFICIENT_GAS:`Auto-Shield skipped due to insufficient gas.`};({...A,...j,...M,...N});var P=e=>BigInt(i.ethers.hexlify(i.ethers.randomBytes(e))),F=()=>Math.floor(Date.now()/1e3),I=class t{amount;erc20TokenAddress;mintAddress;timeStamp;nullifyingKey;spendingPublicKey;randomization;H0;stealthAddress;encryptionKey;commitment;nullifier;isBlocked;isNewStyle;constructor({amount:e,erc20TokenAddress:t,mintAddress:n,timeStamp:r,nullifyingKey:i,spendingPublicKey:a,randomization:o,H0:s,stealthAddress:c,encryptionKey:l,commitment:u=void 0,nullifier:d=void 0,isBlocked:f=!1,isNewStyle:p=!1}){if(this.amount=e,this.erc20TokenAddress=t,this.mintAddress=n,this.timeStamp=r??F().toString(),this.nullifyingKey=i,this.spendingPublicKey=a,this.stealthAddress=c,this.encryptionKey=l,this.commitment=u,this.nullifier=d,this.isBlocked=f,this.isNewStyle=p,p)if(s!==void 0)this.H0=s;else{let e=o??(i?k.findCorrectRandomization(P(31),i):void 0);if(this.H0=e?k.findH0(e,i):void 0,!this.H0)throw Error(`New-style UTXO requires H0 or nullifyingKey`)}else if(this.randomization=o??(i?k.findCorrectRandomization(P(31),i):void 0),!this.randomization)throw Error(`Old-style UTXO requires randomization or nullifyingKey`)}static createFrom(e,n){return new t({...e.getConstructableParams(),nullifier:void 0,commitment:void 0,...n})}getConstructableParams(){return{amount:this.amount,erc20TokenAddress:this.erc20TokenAddress,mintAddress:this.mintAddress,timeStamp:this.timeStamp,nullifyingKey:this.nullifyingKey,spendingPublicKey:this.spendingPublicKey,stealthAddress:this.stealthAddress,encryptionKey:this.encryptionKey,commitment:this.commitment,nullifier:this.nullifier,isBlocked:this.isBlocked,isNewStyle:this.isNewStyle,...this.isNewStyle?{H0:this.H0}:{randomization:this.randomization}}}getBasicUtxoParams(){return{amount:this.amount,erc20TokenAddress:this.erc20TokenAddress,mintAddress:this.mintAddress,timeStamp:this.timeStamp,stealthAddress:this.stealthAddress,commitment:this.commitment,nullifier:this.nullifier,isBlocked:this.isBlocked,isNewStyle:this.isNewStyle,...this.isNewStyle?{H0:this.H0}:{randomization:this.randomization}}}getCommitment(){if(!this.commitment){let e=[this.amount,this.erc20TokenAddress,BigInt(this.getStealthAddress()),this.timeStamp];this.commitment=_(...e)}return this.commitment}getNullifier(){if(!this.nullifier){if(!this.nullifyingKey)throw Error(`No Nullifiers if private key is not provided`);let e=this.getCommitment(),t=_(this.nullifyingKey,e);this.nullifier=_(e,t)}return this.nullifier}getStealthAddress(){if(!this.stealthAddress){if(!this.nullifyingKey)throw Error(`No stealth address in UTXO if private key is not provided`);if(this.isNewStyle){if(!this.H0)throw Error(`No H0 point provided`);this.stealthAddress=k.getStealthAddressNewStyle(this.H0,this.nullifyingKey,this.spendingPublicKey)}else{if(!this.randomization)throw Error(`No randomization provided`);this.stealthAddress=k.getStealthAddress(this.randomization,this.nullifyingKey)}}return this.stealthAddress}getTokenAddress(t){let n=e.r(t)?this.mintAddress:this.erc20TokenAddress;if(!n)throw Error(`No token address provided`);return n}getEncryptionKey(){if(!this.nullifyingKey){if(!this.encryptionKey)throw Error(`No encryption key provided in UTXO`);return this.encryptionKey}return k.getEncryptionKeyPair(this.nullifyingKey).publicKey}},L=()=>a.default.crypto_box_SEALBYTES+a.default.crypto_secretbox_KEYBYTES,R=e=>{let t=a.default.crypto_secretbox_NONCEBYTES,n=L(),r=0,i=e[r];r+=1;let o=e.slice(r,r+t);r+=t;let s=[];for(let t=0;t<i;t+=1)s.push(e.slice(r,r+n)),r+=n;return{nonce:o,sealedKeys:s,ciphertext:e.slice(r)}},z=(e,t,n,r)=>{let{nonce:o,sealedKeys:s,ciphertext:c}=R(e),l=a.default.crypto_box_seal_open(s[r],i.ethers.getBytes(n),i.ethers.getBytes(t)),u=a.default.crypto_secretbox_open_easy(c,o,l);return Buffer.from(u)},B=(e,t,n)=>{let r=a.default.crypto_box_seal_open(e,i.ethers.getBytes(n),i.ethers.getBytes(t));return Buffer.from(r)},V=54912,H=2,U=e=>e[0]*256+e[1],W=(e,t)=>{let{privateKey:n,publicKey:r}=k.getEncryptionKeyPair(t.getShieldedPrivateKey()),i=U(e)===V?z(e.slice(H),n,r,0):B(e,n,r),a=Buffer.from(i).toString(`utf-8`).split(`0x`).filter(e=>e.length!==0),s=e=>BigInt(`0x${e}`),c=e=>`0x${e}`,l=a.length>=8,u=l&&s(a[5])===1n,d=l?8:6,f=a[d]?c(a[d]):void 0,p=f?new o.PublicKey(Buffer.from(f.slice(2),`hex`)).toString():void 0;return{amount:s(a[0]),erc20TokenAddress:c(a[1]),stealthAddress:c(a[3]),nullifyingKey:t.getShieldedPrivateKey(),timeStamp:s(a[4]).toString(),isNewStyle:u,...u?{H0:[s(a[6]),s(a[7])]}:{randomization:s(a[2])},mintAddress:p}},G=(e,t)=>new I(W(e,t)),K=e=>e&2n**255n-1n,q=e=>e>>255n&1n,J=(...t)=>{e.a&&console.log(...t)};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return x}});