h_test_1 0.0.1

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 (1264) hide show
  1. package/API/API.cjs +1 -0
  2. package/API/API.d.ts +94 -0
  3. package/API/API.mjs +123 -0
  4. package/API/accessCodeCalls.cjs +1 -0
  5. package/API/accessCodeCalls.d.ts +23 -0
  6. package/API/accessCodeCalls.mjs +23 -0
  7. package/API/admin-calls.cjs +1 -0
  8. package/API/admin-calls.d.ts +2 -0
  9. package/API/admin-calls.mjs +8 -0
  10. package/API/ai-calls.cjs +1 -0
  11. package/API/ai-calls.d.ts +17 -0
  12. package/API/ai-calls.mjs +21 -0
  13. package/API/brotherhoodCalls.cjs +1 -0
  14. package/API/brotherhoodCalls.d.ts +82 -0
  15. package/API/brotherhoodCalls.mjs +59 -0
  16. package/API/callLifiAPI.cjs +1 -0
  17. package/API/callLifiAPI.d.ts +33 -0
  18. package/API/callLifiAPI.mjs +11 -0
  19. package/API/callMonitor.cjs +1 -0
  20. package/API/callMonitor.d.ts +1 -0
  21. package/API/callMonitor.mjs +10 -0
  22. package/API/callOdosAPI.cjs +1 -0
  23. package/API/callOdosAPI.d.ts +63 -0
  24. package/API/callOdosAPI.mjs +21 -0
  25. package/API/callOkxAPI.cjs +1 -0
  26. package/API/callOkxAPI.d.ts +10 -0
  27. package/API/callOkxAPI.mjs +13 -0
  28. package/API/callOneInchAPI.cjs +1 -0
  29. package/API/callOneInchAPI.d.ts +18 -0
  30. package/API/callOneInchAPI.mjs +16 -0
  31. package/API/callRelayer.cjs +1 -0
  32. package/API/callRelayer.d.ts +30 -0
  33. package/API/callRelayer.mjs +18 -0
  34. package/API/checkRisk.cjs +1 -0
  35. package/API/checkRisk.d.ts +1 -0
  36. package/API/checkRisk.mjs +8 -0
  37. package/API/deposit-and-withdraw-status-calls.cjs +1 -0
  38. package/API/deposit-and-withdraw-status-calls.d.ts +20 -0
  39. package/API/deposit-and-withdraw-status-calls.mjs +18 -0
  40. package/API/duneAPI.cjs +1 -0
  41. package/API/duneAPI.d.ts +11 -0
  42. package/API/duneAPI.mjs +25 -0
  43. package/API/enclaveCalls.cjs +1 -0
  44. package/API/enclaveCalls.d.ts +9 -0
  45. package/API/enclaveCalls.mjs +11 -0
  46. package/API/fetchCommitmentsCache.cjs +1 -0
  47. package/API/fetchCommitmentsCache.d.ts +36 -0
  48. package/API/fetchCommitmentsCache.mjs +23 -0
  49. package/API/generate-trading-points.cjs +1 -0
  50. package/API/generate-trading-points.d.ts +27 -0
  51. package/API/generate-trading-points.mjs +45 -0
  52. package/API/get-token-data.cjs +1 -0
  53. package/API/get-token-data.d.ts +6 -0
  54. package/API/get-token-data.mjs +8 -0
  55. package/API/getBridgeProtocols.cjs +1 -0
  56. package/API/getBridgeProtocols.d.ts +7 -0
  57. package/API/getBridgeProtocols.mjs +8 -0
  58. package/API/getCoingeckoPrice.cjs +1 -0
  59. package/API/getCoingeckoPrice.d.ts +22 -0
  60. package/API/getCoingeckoPrice.mjs +27 -0
  61. package/API/getGasEstimates.cjs +1 -0
  62. package/API/getGasEstimates.d.ts +10 -0
  63. package/API/getGasEstimates.mjs +16 -0
  64. package/API/getLifiStatus.cjs +1 -0
  65. package/API/getLifiStatus.d.ts +24 -0
  66. package/API/getLifiStatus.mjs +15 -0
  67. package/API/getRelayerURL.cjs +1 -0
  68. package/API/getRelayerURL.d.ts +1 -0
  69. package/API/getRelayerURL.mjs +10 -0
  70. package/API/getServerURL.cjs +1 -0
  71. package/API/getServerURL.d.ts +4 -0
  72. package/API/getServerURL.mjs +76 -0
  73. package/API/getTokenPrice.cjs +1 -0
  74. package/API/getTokenPrice.d.ts +5 -0
  75. package/API/getTokenPrice.mjs +10 -0
  76. package/API/getWebsiteURL.cjs +1 -0
  77. package/API/getWebsiteURL.d.ts +3 -0
  78. package/API/getWebsiteURL.mjs +56 -0
  79. package/API/index.d.ts +22 -0
  80. package/API/is-tx-stateless.cjs +1 -0
  81. package/API/is-tx-stateless.d.ts +5 -0
  82. package/API/is-tx-stateless.mjs +20 -0
  83. package/API/kycCalls.cjs +1 -0
  84. package/API/kycCalls.d.ts +23 -0
  85. package/API/kycCalls.mjs +42 -0
  86. package/API/leaderboardCalls.cjs +1 -0
  87. package/API/leaderboardCalls.d.ts +14 -0
  88. package/API/leaderboardCalls.mjs +16 -0
  89. package/API/passwordCalls.cjs +1 -0
  90. package/API/passwordCalls.d.ts +9 -0
  91. package/API/passwordCalls.mjs +13 -0
  92. package/API/proxyAccountsCalls.cjs +1 -0
  93. package/API/proxyAccountsCalls.d.ts +4 -0
  94. package/API/proxyAccountsCalls.mjs +26 -0
  95. package/API/referralsCalls.cjs +1 -0
  96. package/API/referralsCalls.d.ts +22 -0
  97. package/API/referralsCalls.mjs +22 -0
  98. package/API/relayCalls.cjs +1 -0
  99. package/API/relayCalls.d.ts +5 -0
  100. package/API/relayCalls.mjs +10 -0
  101. package/API/resolve-sns.cjs +1 -0
  102. package/API/resolve-sns.d.ts +1 -0
  103. package/API/resolve-sns.mjs +12 -0
  104. package/API/restoreSnapshots.cjs +1 -0
  105. package/API/restoreSnapshots.d.ts +1 -0
  106. package/API/restoreSnapshots.mjs +10 -0
  107. package/API/rewardsUserCalls.cjs +1 -0
  108. package/API/rewardsUserCalls.d.ts +51 -0
  109. package/API/rewardsUserCalls.mjs +44 -0
  110. package/API/scheduled-transactions-calls.cjs +1 -0
  111. package/API/scheduled-transactions-calls.d.ts +14 -0
  112. package/API/scheduled-transactions-calls.mjs +13 -0
  113. package/API/seedless-calls.cjs +1 -0
  114. package/API/seedless-calls.d.ts +53 -0
  115. package/API/seedless-calls.mjs +12 -0
  116. package/API/send-telegram-callback.cjs +1 -0
  117. package/API/send-telegram-callback.d.ts +7 -0
  118. package/API/send-telegram-callback.mjs +11 -0
  119. package/API/simulate-batch-tx.cjs +1 -0
  120. package/API/simulate-batch-tx.d.ts +3 -0
  121. package/API/simulate-batch-tx.mjs +13 -0
  122. package/API/solana-calls.cjs +1 -0
  123. package/API/solana-calls.d.ts +34 -0
  124. package/API/solana-calls.mjs +19 -0
  125. package/API/temporaryWalletCalls.cjs +1 -0
  126. package/API/temporaryWalletCalls.d.ts +13 -0
  127. package/API/temporaryWalletCalls.mjs +26 -0
  128. package/API/tenderly.api.cjs +1 -0
  129. package/API/tenderly.api.d.ts +14 -0
  130. package/API/tenderly.api.mjs +57 -0
  131. package/API/token-calls.cjs +1 -0
  132. package/API/token-calls.d.ts +2 -0
  133. package/API/token-calls.mjs +14 -0
  134. package/API/weeklyAnalyticCalls.cjs +1 -0
  135. package/API/weeklyAnalyticCalls.d.ts +22 -0
  136. package/API/weeklyAnalyticCalls.mjs +16 -0
  137. package/README.md +171 -0
  138. package/constants/activity.constants.cjs +1 -0
  139. package/constants/activity.constants.d.ts +2 -0
  140. package/constants/activity.constants.mjs +13 -0
  141. package/constants/addresses.constants.cjs +1 -0
  142. package/constants/addresses.constants.d.ts +24 -0
  143. package/constants/addresses.constants.mjs +78 -0
  144. package/constants/assets.constants.cjs +1 -0
  145. package/constants/assets.constants.d.ts +13 -0
  146. package/constants/assets.constants.mjs +16 -0
  147. package/constants/backend.constants.cjs +1 -0
  148. package/constants/backend.constants.d.ts +13 -0
  149. package/constants/backend.constants.mjs +16 -0
  150. package/constants/balance.constants.cjs +1 -0
  151. package/constants/balance.constants.d.ts +1 -0
  152. package/constants/balance.constants.mjs +4 -0
  153. package/constants/bridging.constants.cjs +1 -0
  154. package/constants/bridging.constants.d.ts +5 -0
  155. package/constants/bridging.constants.mjs +8 -0
  156. package/constants/chains.constants.cjs +1 -0
  157. package/constants/chains.constants.d.ts +42 -0
  158. package/constants/chains.constants.mjs +200 -0
  159. package/constants/coingecko.constants.cjs +1 -0
  160. package/constants/coingecko.constants.d.ts +16 -0
  161. package/constants/coingecko.constants.mjs +59 -0
  162. package/constants/contracts.constants.cjs +1 -0
  163. package/constants/contracts.constants.d.ts +119 -0
  164. package/constants/contracts.constants.mjs +92 -0
  165. package/constants/conversion.constants.cjs +1 -0
  166. package/constants/conversion.constants.d.ts +1 -0
  167. package/constants/conversion.constants.mjs +4 -0
  168. package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -0
  169. package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +6912 -0
  170. package/constants/deploy-data/deploy-data-arcTestnet.json.cjs +1 -0
  171. package/constants/deploy-data/deploy-data-arcTestnet.json.mjs +7381 -0
  172. package/constants/deploy-data/deploy-data-avalanche.json.cjs +1 -0
  173. package/constants/deploy-data/deploy-data-avalanche.json.mjs +5940 -0
  174. package/constants/deploy-data/deploy-data-base.json.cjs +1 -0
  175. package/constants/deploy-data/deploy-data-base.json.mjs +6922 -0
  176. package/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -0
  177. package/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +5940 -0
  178. package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -0
  179. package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +7152 -0
  180. package/constants/deploy-data/deploy-data-localhost.json.cjs +1 -0
  181. package/constants/deploy-data/deploy-data-localhost.json.mjs +5940 -0
  182. package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -0
  183. package/constants/deploy-data/deploy-data-optimism.json.mjs +6922 -0
  184. package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -0
  185. package/constants/deploy-data/deploy-data-polygon.json.mjs +6922 -0
  186. package/constants/deploy-data/deploy-data-solana.json.cjs +1 -0
  187. package/constants/deploy-data/deploy-data-solana.json.mjs +6111 -0
  188. package/constants/deploy-data/index.d.ts +11 -0
  189. package/constants/events.constants.cjs +1 -0
  190. package/constants/events.constants.d.ts +1 -0
  191. package/constants/events.constants.mjs +12 -0
  192. package/constants/fees.constants.cjs +1 -0
  193. package/constants/fees.constants.d.ts +2 -0
  194. package/constants/fees.constants.mjs +6 -0
  195. package/constants/function-signatures.constants.cjs +1 -0
  196. package/constants/function-signatures.constants.d.ts +5 -0
  197. package/constants/function-signatures.constants.mjs +8 -0
  198. package/constants/index.d.ts +31 -0
  199. package/constants/kyc.constants.cjs +1 -0
  200. package/constants/kyc.constants.d.ts +28 -0
  201. package/constants/kyc.constants.mjs +179 -0
  202. package/constants/lifi.constants.cjs +1 -0
  203. package/constants/lifi.constants.d.ts +1 -0
  204. package/constants/lifi.constants.mjs +4 -0
  205. package/constants/link.constant.cjs +1 -0
  206. package/constants/link.constant.d.ts +1 -0
  207. package/constants/link.constant.mjs +4 -0
  208. package/constants/mediaUrls.constants.cjs +1 -0
  209. package/constants/mediaUrls.constants.d.ts +35 -0
  210. package/constants/mediaUrls.constants.mjs +38 -0
  211. package/constants/mystery-boxes.constants.d.ts +0 -0
  212. package/constants/oauthUrls.constants.cjs +1 -0
  213. package/constants/oauthUrls.constants.d.ts +7 -0
  214. package/constants/oauthUrls.constants.mjs +10 -0
  215. package/constants/okx.constants.cjs +1 -0
  216. package/constants/okx.constants.d.ts +2 -0
  217. package/constants/okx.constants.mjs +5 -0
  218. package/constants/permit2.constants.cjs +1 -0
  219. package/constants/permit2.constants.d.ts +8 -0
  220. package/constants/permit2.constants.mjs +17 -0
  221. package/constants/presale.constants.cjs +1 -0
  222. package/constants/presale.constants.d.ts +78 -0
  223. package/constants/presale.constants.mjs +504 -0
  224. package/constants/protocol.constants.cjs +1 -0
  225. package/constants/protocol.constants.d.ts +47 -0
  226. package/constants/protocol.constants.mjs +47 -0
  227. package/constants/reorg-depths.constants.cjs +1 -0
  228. package/constants/reorg-depths.constants.d.ts +3 -0
  229. package/constants/reorg-depths.constants.mjs +17 -0
  230. package/constants/rewards.constants.cjs +1 -0
  231. package/constants/rewards.constants.d.ts +17 -0
  232. package/constants/rewards.constants.mjs +22 -0
  233. package/constants/save-depths.cjs +1 -0
  234. package/constants/save-depths.d.ts +3 -0
  235. package/constants/save-depths.mjs +19 -0
  236. package/constants/server.constants.cjs +1 -0
  237. package/constants/server.constants.d.ts +205 -0
  238. package/constants/server.constants.mjs +229 -0
  239. package/constants/tasks.constants.cjs +1 -0
  240. package/constants/tasks.constants.d.ts +9 -0
  241. package/constants/tasks.constants.mjs +229 -0
  242. package/constants/token-data/ERC20Registry.cjs +1 -0
  243. package/constants/token-data/ERC20Registry.d.ts +3 -0
  244. package/constants/token-data/ERC20Registry.mjs +95 -0
  245. package/constants/token-data/arbMainnetRegistry.json.cjs +1 -0
  246. package/constants/token-data/arbMainnetRegistry.json.mjs +1845 -0
  247. package/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -0
  248. package/constants/token-data/arbMainnetRegistryFixed.json.mjs +1845 -0
  249. package/constants/token-data/arcTestnetRegistry.json.cjs +1 -0
  250. package/constants/token-data/arcTestnetRegistry.json.mjs +439 -0
  251. package/constants/token-data/avalancheRegistry.json.cjs +1 -0
  252. package/constants/token-data/avalancheRegistry.json.mjs +733 -0
  253. package/constants/token-data/avalancheRegistryFixed.json.cjs +1 -0
  254. package/constants/token-data/avalancheRegistryFixed.json.mjs +733 -0
  255. package/constants/token-data/baseRegistry.json.cjs +1 -0
  256. package/constants/token-data/baseRegistry.json.mjs +1138 -0
  257. package/constants/token-data/baseRegistryFixed.json.cjs +1 -0
  258. package/constants/token-data/baseRegistryFixed.json.mjs +1138 -0
  259. package/constants/token-data/bnbMainnetRegistry.json.cjs +1 -0
  260. package/constants/token-data/bnbMainnetRegistry.json.mjs +904 -0
  261. package/constants/token-data/bnbMainnetRegistryFixed.json.cjs +1 -0
  262. package/constants/token-data/bnbMainnetRegistryFixed.json.mjs +904 -0
  263. package/constants/token-data/ethMainnetRegistry.json.cjs +1 -0
  264. package/constants/token-data/ethMainnetRegistry.json.mjs +4278 -0
  265. package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -0
  266. package/constants/token-data/ethMainnetRegistryFixed.json.mjs +4278 -0
  267. package/constants/token-data/index.cjs +1 -0
  268. package/constants/token-data/index.d.ts +1381 -0
  269. package/constants/token-data/index.mjs +40 -0
  270. package/constants/token-data/localhostRegistry.json.cjs +1 -0
  271. package/constants/token-data/localhostRegistry.json.mjs +2762 -0
  272. package/constants/token-data/optimismRegistry.json.cjs +1 -0
  273. package/constants/token-data/optimismRegistry.json.mjs +705 -0
  274. package/constants/token-data/optimismRegistryFixed.json.cjs +1 -0
  275. package/constants/token-data/optimismRegistryFixed.json.mjs +705 -0
  276. package/constants/token-data/polygonRegistry.json.cjs +1 -0
  277. package/constants/token-data/polygonRegistry.json.mjs +2313 -0
  278. package/constants/token-data/polygonRegistryFixed.json.cjs +1 -0
  279. package/constants/token-data/polygonRegistryFixed.json.mjs +2313 -0
  280. package/constants/token-data/popularTokens.constants.cjs +1 -0
  281. package/constants/token-data/popularTokens.constants.d.ts +3 -0
  282. package/constants/token-data/popularTokens.constants.mjs +13 -0
  283. package/constants/token-data/solanaLocalnetRegistry.json.cjs +1 -0
  284. package/constants/token-data/solanaLocalnetRegistry.json.mjs +24 -0
  285. package/constants/token-data/solanaMainnetRegistry.json.cjs +1 -0
  286. package/constants/token-data/solanaMainnetRegistry.json.mjs +560 -0
  287. package/constants/token-data/tokenPricing.consts.d.ts +2 -0
  288. package/constants/token.limits.constants.cjs +1 -0
  289. package/constants/token.limits.constants.d.ts +5 -0
  290. package/constants/token.limits.constants.mjs +30 -0
  291. package/constants/vite.constants.cjs +1 -0
  292. package/constants/vite.constants.d.ts +16 -0
  293. package/constants/vite.constants.mjs +15 -0
  294. package/constants/wallet.constants.cjs +1 -0
  295. package/constants/wallet.constants.d.ts +7 -0
  296. package/constants/wallet.constants.mjs +10 -0
  297. package/crypto/babyJub.cjs +1 -0
  298. package/crypto/babyJub.d.ts +16 -0
  299. package/crypto/babyJub.mjs +15 -0
  300. package/crypto/index.d.ts +3 -0
  301. package/crypto/poseidon.cjs +1 -0
  302. package/crypto/poseidon.d.ts +15 -0
  303. package/crypto/poseidon.mjs +26 -0
  304. package/crypto/preProcessing.cjs +1 -0
  305. package/crypto/preProcessing.d.ts +1 -0
  306. package/crypto/preProcessing.mjs +16 -0
  307. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.cjs +1 -0
  308. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.d.ts +18 -0
  309. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.mjs +175 -0
  310. package/data-structures/ApprovalDBs/index.d.ts +1 -0
  311. package/data-structures/Hinkal/Hinkal.cjs +1 -0
  312. package/data-structures/Hinkal/Hinkal.d.ts +121 -0
  313. package/data-structures/Hinkal/Hinkal.mjs +649 -0
  314. package/data-structures/Hinkal/IHinkal.d.ts +113 -0
  315. package/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -0
  316. package/data-structures/Hinkal/handleAutoDepositBack.d.ts +5 -0
  317. package/data-structures/Hinkal/handleAutoDepositBack.mjs +108 -0
  318. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.cjs +1 -0
  319. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.d.ts +7 -0
  320. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.mjs +42 -0
  321. package/data-structures/Hinkal/hinkalActionReceive.cjs +1 -0
  322. package/data-structures/Hinkal/hinkalActionReceive.d.ts +7 -0
  323. package/data-structures/Hinkal/hinkalActionReceive.mjs +41 -0
  324. package/data-structures/Hinkal/hinkalApprove.cjs +1 -0
  325. package/data-structures/Hinkal/hinkalApprove.d.ts +3 -0
  326. package/data-structures/Hinkal/hinkalApprove.mjs +114 -0
  327. package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.cjs +1 -0
  328. package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.d.ts +3 -0
  329. package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.mjs +28 -0
  330. package/data-structures/Hinkal/hinkalCheckTokenRegistry.cjs +1 -0
  331. package/data-structures/Hinkal/hinkalCheckTokenRegistry.d.ts +3 -0
  332. package/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +50 -0
  333. package/data-structures/Hinkal/hinkalDeposit.cjs +1 -0
  334. package/data-structures/Hinkal/hinkalDeposit.d.ts +4 -0
  335. package/data-structures/Hinkal/hinkalDeposit.mjs +156 -0
  336. package/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -0
  337. package/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +4 -0
  338. package/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +133 -0
  339. package/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -0
  340. package/data-structures/Hinkal/hinkalDepositOnChainUtxos.d.ts +7 -0
  341. package/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +107 -0
  342. package/data-structures/Hinkal/hinkalDepostAndBridge.cjs +1 -0
  343. package/data-structures/Hinkal/hinkalDepostAndBridge.d.ts +4 -0
  344. package/data-structures/Hinkal/hinkalDepostAndBridge.mjs +225 -0
  345. package/data-structures/Hinkal/hinkalGetRecipientInfo.cjs +1 -0
  346. package/data-structures/Hinkal/hinkalGetRecipientInfo.d.ts +2 -0
  347. package/data-structures/Hinkal/hinkalGetRecipientInfo.mjs +10 -0
  348. package/data-structures/Hinkal/hinkalGetZkMeProvider.cjs +1 -0
  349. package/data-structures/Hinkal/hinkalGetZkMeProvider.d.ts +28 -0
  350. package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +23 -0
  351. package/data-structures/Hinkal/hinkalInsideTransact.cjs +1 -0
  352. package/data-structures/Hinkal/hinkalInsideTransact.d.ts +4 -0
  353. package/data-structures/Hinkal/hinkalInsideTransact.mjs +120 -0
  354. package/data-structures/Hinkal/hinkalMultiSend.cjs +1 -0
  355. package/data-structures/Hinkal/hinkalMultiSend.d.ts +3 -0
  356. package/data-structures/Hinkal/hinkalMultiSend.mjs +13 -0
  357. package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -0
  358. package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +6 -0
  359. package/data-structures/Hinkal/hinkalPrivateWallet.mjs +160 -0
  360. package/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -0
  361. package/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +4 -0
  362. package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +47 -0
  363. package/data-structures/Hinkal/hinkalProxySwap.cjs +1 -0
  364. package/data-structures/Hinkal/hinkalProxySwap.d.ts +8 -0
  365. package/data-structures/Hinkal/hinkalProxySwap.mjs +60 -0
  366. package/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -0
  367. package/data-structures/Hinkal/hinkalProxyToPrivate.d.ts +6 -0
  368. package/data-structures/Hinkal/hinkalProxyToPrivate.mjs +45 -0
  369. package/data-structures/Hinkal/hinkalSignSubAccount.cjs +1 -0
  370. package/data-structures/Hinkal/hinkalSignSubAccount.d.ts +4 -0
  371. package/data-structures/Hinkal/hinkalSignSubAccount.mjs +22 -0
  372. package/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -0
  373. package/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +4 -0
  374. package/data-structures/Hinkal/hinkalSolanaDeposit.mjs +133 -0
  375. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -0
  376. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +3 -0
  377. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +264 -0
  378. package/data-structures/Hinkal/hinkalSolanaProxySend.cjs +1 -0
  379. package/data-structures/Hinkal/hinkalSolanaProxySend.d.ts +6 -0
  380. package/data-structures/Hinkal/hinkalSolanaProxySend.mjs +55 -0
  381. package/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -0
  382. package/data-structures/Hinkal/hinkalSolanaProxyShield.d.ts +6 -0
  383. package/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +99 -0
  384. package/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -0
  385. package/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +5 -0
  386. package/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +96 -0
  387. package/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -0
  388. package/data-structures/Hinkal/hinkalSolanaSwap.d.ts +4 -0
  389. package/data-structures/Hinkal/hinkalSolanaSwap.mjs +119 -0
  390. package/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -0
  391. package/data-structures/Hinkal/hinkalSolanaTransfer.d.ts +3 -0
  392. package/data-structures/Hinkal/hinkalSolanaTransfer.mjs +88 -0
  393. package/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -0
  394. package/data-structures/Hinkal/hinkalSolanaWithdraw.d.ts +3 -0
  395. package/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +104 -0
  396. package/data-structures/Hinkal/hinkalSwap.cjs +1 -0
  397. package/data-structures/Hinkal/hinkalSwap.d.ts +6 -0
  398. package/data-structures/Hinkal/hinkalSwap.mjs +128 -0
  399. package/data-structures/Hinkal/hinkalTransfer.cjs +1 -0
  400. package/data-structures/Hinkal/hinkalTransfer.d.ts +4 -0
  401. package/data-structures/Hinkal/hinkalTransfer.mjs +129 -0
  402. package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -0
  403. package/data-structures/Hinkal/hinkalWithdraw.d.ts +4 -0
  404. package/data-structures/Hinkal/hinkalWithdraw.mjs +129 -0
  405. package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -0
  406. package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.d.ts +4 -0
  407. package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +145 -0
  408. package/data-structures/Hinkal/index.d.ts +14 -0
  409. package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -0
  410. package/data-structures/Hinkal/resetMerkleTrees.d.ts +2 -0
  411. package/data-structures/Hinkal/resetMerkleTrees.mjs +68 -0
  412. package/data-structures/IndexedDB/activity-db.cjs +1 -0
  413. package/data-structures/IndexedDB/activity-db.d.ts +15 -0
  414. package/data-structures/IndexedDB/activity-db.mjs +185 -0
  415. package/data-structures/IndexedDB/balances-db.cjs +1 -0
  416. package/data-structures/IndexedDB/balances-db.d.ts +13 -0
  417. package/data-structures/IndexedDB/balances-db.mjs +92 -0
  418. package/data-structures/IndexedDB/contact-db.cjs +1 -0
  419. package/data-structures/IndexedDB/contact-db.d.ts +11 -0
  420. package/data-structures/IndexedDB/contact-db.mjs +96 -0
  421. package/data-structures/IndexedDB/index.d.ts +6 -0
  422. package/data-structures/IndexedDB/prices-db.cjs +1 -0
  423. package/data-structures/IndexedDB/prices-db.d.ts +9 -0
  424. package/data-structures/IndexedDB/prices-db.mjs +62 -0
  425. package/data-structures/IndexedDB/private-balances-db.cjs +1 -0
  426. package/data-structures/IndexedDB/private-balances-db.d.ts +9 -0
  427. package/data-structures/IndexedDB/private-balances-db.mjs +28 -0
  428. package/data-structures/IndexedDB/signatures-db.cjs +1 -0
  429. package/data-structures/IndexedDB/signatures-db.d.ts +10 -0
  430. package/data-structures/IndexedDB/signatures-db.mjs +62 -0
  431. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -0
  432. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +20 -0
  433. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +81 -0
  434. package/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +1 -0
  435. package/data-structures/TokenDBs/AlchemyPublicTokensDB.d.ts +19 -0
  436. package/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +204 -0
  437. package/data-structures/TokenDBs/ArcPublicTokensDB.cjs +1 -0
  438. package/data-structures/TokenDBs/ArcPublicTokensDB.d.ts +11 -0
  439. package/data-structures/TokenDBs/ArcPublicTokensDB.mjs +112 -0
  440. package/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -0
  441. package/data-structures/TokenDBs/EventsPublicTokensDB.d.ts +17 -0
  442. package/data-structures/TokenDBs/EventsPublicTokensDB.mjs +171 -0
  443. package/data-structures/TokenDBs/IPublicTokensDB.d.ts +6 -0
  444. package/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -0
  445. package/data-structures/TokenDBs/PrivateTokensDB.d.ts +11 -0
  446. package/data-structures/TokenDBs/PrivateTokensDB.mjs +65 -0
  447. package/data-structures/TokenDBs/PublicTokensDB.cjs +1 -0
  448. package/data-structures/TokenDBs/PublicTokensDB.d.ts +9 -0
  449. package/data-structures/TokenDBs/PublicTokensDB.mjs +32 -0
  450. package/data-structures/TokenDBs/index.d.ts +4 -0
  451. package/data-structures/TokenDBs/token-visibility-db.cjs +1 -0
  452. package/data-structures/TokenDBs/token-visibility-db.d.ts +17 -0
  453. package/data-structures/TokenDBs/token-visibility-db.mjs +96 -0
  454. package/data-structures/ValueCache/ValueCache.cjs +1 -0
  455. package/data-structures/ValueCache/ValueCache.d.ts +10 -0
  456. package/data-structures/ValueCache/ValueCache.mjs +25 -0
  457. package/data-structures/ValueCache/index.d.ts +1 -0
  458. package/data-structures/cacheDevices/AttachableMemoryCacheDevice.cjs +1 -0
  459. package/data-structures/cacheDevices/AttachableMemoryCacheDevice.d.ts +8 -0
  460. package/data-structures/cacheDevices/AttachableMemoryCacheDevice.mjs +28 -0
  461. package/data-structures/cacheDevices/BaseCacheDevice.cjs +1 -0
  462. package/data-structures/cacheDevices/BaseCacheDevice.d.ts +11 -0
  463. package/data-structures/cacheDevices/BaseCacheDevice.mjs +21 -0
  464. package/data-structures/cacheDevices/FileCacheDevice.cjs +1 -0
  465. package/data-structures/cacheDevices/FileCacheDevice.d.ts +10 -0
  466. package/data-structures/cacheDevices/FileCacheDevice.mjs +41 -0
  467. package/data-structures/cacheDevices/LocalStorageCacheDevice.cjs +1 -0
  468. package/data-structures/cacheDevices/LocalStorageCacheDevice.d.ts +8 -0
  469. package/data-structures/cacheDevices/LocalStorageCacheDevice.mjs +21 -0
  470. package/data-structures/cacheDevices/index.d.ts +2 -0
  471. package/data-structures/crypto-keys/decodeUTXO.cjs +1 -0
  472. package/data-structures/crypto-keys/decodeUTXO.d.ts +26 -0
  473. package/data-structures/crypto-keys/decodeUTXO.mjs +99 -0
  474. package/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -0
  475. package/data-structures/crypto-keys/encryptDecryptUtxo.d.ts +18 -0
  476. package/data-structures/crypto-keys/encryptDecryptUtxo.mjs +46 -0
  477. package/data-structures/crypto-keys/index.d.ts +4 -0
  478. package/data-structures/crypto-keys/keyUtils.cjs +1 -0
  479. package/data-structures/crypto-keys/keyUtils.d.ts +2 -0
  480. package/data-structures/crypto-keys/keyUtils.mjs +10 -0
  481. package/data-structures/crypto-keys/keys.cjs +1 -0
  482. package/data-structures/crypto-keys/keys.d.ts +88 -0
  483. package/data-structures/crypto-keys/keys.mjs +179 -0
  484. package/data-structures/custom-token-registry/CustomTokenRegistry.cjs +1 -0
  485. package/data-structures/custom-token-registry/CustomTokenRegistry.d.ts +12 -0
  486. package/data-structures/custom-token-registry/CustomTokenRegistry.mjs +29 -0
  487. package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.cjs +1 -0
  488. package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.d.ts +34 -0
  489. package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.mjs +86 -0
  490. package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.cjs +1 -0
  491. package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.d.ts +29 -0
  492. package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.mjs +92 -0
  493. package/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.cjs +1 -0
  494. package/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.d.ts +29 -0
  495. package/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.mjs +86 -0
  496. package/data-structures/event-service/evm/AbstractEventService.cjs +1 -0
  497. package/data-structures/event-service/evm/AbstractEventService.d.ts +12 -0
  498. package/data-structures/event-service/evm/AbstractEventService.mjs +37 -0
  499. package/data-structures/event-service/evm/AbstractNullifierSnapshotService.cjs +1 -0
  500. package/data-structures/event-service/evm/AbstractNullifierSnapshotService.d.ts +21 -0
  501. package/data-structures/event-service/evm/AbstractNullifierSnapshotService.mjs +49 -0
  502. package/data-structures/event-service/evm/AbstractSnapshotService.cjs +1 -0
  503. package/data-structures/event-service/evm/AbstractSnapshotService.d.ts +22 -0
  504. package/data-structures/event-service/evm/AbstractSnapshotService.mjs +36 -0
  505. package/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -0
  506. package/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +26 -0
  507. package/data-structures/event-service/evm/BlockchainEventEmitter.mjs +94 -0
  508. package/data-structures/event-service/index.d.ts +13 -0
  509. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.cjs +1 -0
  510. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.d.ts +34 -0
  511. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs +87 -0
  512. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs +1 -0
  513. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.d.ts +29 -0
  514. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +96 -0
  515. package/data-structures/event-service/solana/AbstractSolanaEventService.cjs +1 -0
  516. package/data-structures/event-service/solana/AbstractSolanaEventService.d.ts +22 -0
  517. package/data-structures/event-service/solana/AbstractSolanaEventService.mjs +33 -0
  518. package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.cjs +1 -0
  519. package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.d.ts +21 -0
  520. package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.mjs +49 -0
  521. package/data-structures/event-service/solana/AbstractSolanaSnapshotService.cjs +1 -0
  522. package/data-structures/event-service/solana/AbstractSolanaSnapshotService.d.ts +22 -0
  523. package/data-structures/event-service/solana/AbstractSolanaSnapshotService.mjs +33 -0
  524. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.cjs +1 -0
  525. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +41 -0
  526. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.mjs +154 -0
  527. package/data-structures/http/BasicHttpClient.cjs +1 -0
  528. package/data-structures/http/BasicHttpClient.d.ts +11 -0
  529. package/data-structures/http/BasicHttpClient.mjs +25 -0
  530. package/data-structures/http/HttpClient.cjs +1 -0
  531. package/data-structures/http/HttpClient.d.ts +10 -0
  532. package/data-structures/http/HttpClient.mjs +15 -0
  533. package/data-structures/http/index.d.ts +2 -0
  534. package/data-structures/index.d.ts +18 -0
  535. package/data-structures/merkle-tree/MerkleTree.cjs +1 -0
  536. package/data-structures/merkle-tree/MerkleTree.d.ts +81 -0
  537. package/data-structures/merkle-tree/MerkleTree.mjs +168 -0
  538. package/data-structures/merkle-tree/MerkleTreeIncompleteError.cjs +1 -0
  539. package/data-structures/merkle-tree/MerkleTreeIncompleteError.d.ts +3 -0
  540. package/data-structures/merkle-tree/MerkleTreeIncompleteError.mjs +8 -0
  541. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs +1 -0
  542. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.d.ts +3 -0
  543. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs +13 -0
  544. package/data-structures/merkle-tree/index.d.ts +3 -0
  545. package/data-structures/presale/PresaleContractWrapper.cjs +1 -0
  546. package/data-structures/presale/PresaleContractWrapper.d.ts +23 -0
  547. package/data-structures/presale/PresaleContractWrapper.mjs +54 -0
  548. package/data-structures/presale/index.d.ts +1 -0
  549. package/data-structures/provider-adapter/IProviderAdapter.d.ts +38 -0
  550. package/data-structures/snapshot/SnapshotFetcherService.cjs +1 -0
  551. package/data-structures/snapshot/SnapshotFetcherService.d.ts +16 -0
  552. package/data-structures/snapshot/SnapshotFetcherService.mjs +42 -0
  553. package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.cjs +1 -0
  554. package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.d.ts +8 -0
  555. package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.mjs +43 -0
  556. package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.cjs +1 -0
  557. package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.d.ts +8 -0
  558. package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.mjs +45 -0
  559. package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.cjs +1 -0
  560. package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.d.ts +8 -0
  561. package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.mjs +35 -0
  562. package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.cjs +1 -0
  563. package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.d.ts +8 -0
  564. package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.mjs +34 -0
  565. package/data-structures/snapshot/index.d.ts +8 -0
  566. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.cjs +1 -0
  567. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.d.ts +8 -0
  568. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs +42 -0
  569. package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.cjs +1 -0
  570. package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.d.ts +8 -0
  571. package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs +34 -0
  572. package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.cjs +1 -0
  573. package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.d.ts +8 -0
  574. package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.mjs +34 -0
  575. package/data-structures/token-price-fetcher/TokenChecker.cjs +1 -0
  576. package/data-structures/token-price-fetcher/TokenChecker.d.ts +9 -0
  577. package/data-structures/token-price-fetcher/TokenChecker.mjs +16 -0
  578. package/data-structures/token-price-fetcher/index.d.ts +1 -0
  579. package/data-structures/transactions-manager/history/history.types.cjs +1 -0
  580. package/data-structures/transactions-manager/history/history.types.d.ts +16 -0
  581. package/data-structures/transactions-manager/history/history.types.mjs +4 -0
  582. package/data-structures/transactions-manager/index.d.ts +1 -0
  583. package/data-structures/utxo/Utxo.cjs +1 -0
  584. package/data-structures/utxo/Utxo.d.ts +64 -0
  585. package/data-structures/utxo/Utxo.mjs +153 -0
  586. package/error-handling/customErrors/ErrorWithAmount.cjs +1 -0
  587. package/error-handling/customErrors/ErrorWithAmount.d.ts +4 -0
  588. package/error-handling/customErrors/ErrorWithAmount.mjs +9 -0
  589. package/error-handling/customErrors/ErrorWithTx.cjs +1 -0
  590. package/error-handling/customErrors/ErrorWithTx.d.ts +5 -0
  591. package/error-handling/customErrors/ErrorWithTx.mjs +9 -0
  592. package/error-handling/customErrors/FeeOverTransactionValueError.cjs +1 -0
  593. package/error-handling/customErrors/FeeOverTransactionValueError.d.ts +9 -0
  594. package/error-handling/customErrors/FeeOverTransactionValueError.mjs +9 -0
  595. package/error-handling/customErrors/SimulationFailureError.cjs +1 -0
  596. package/error-handling/customErrors/SimulationFailureError.d.ts +10 -0
  597. package/error-handling/customErrors/SimulationFailureError.mjs +9 -0
  598. package/error-handling/customErrors/customErrors.helpers.cjs +1 -0
  599. package/error-handling/customErrors/customErrors.helpers.d.ts +5 -0
  600. package/error-handling/customErrors/customErrors.helpers.mjs +21 -0
  601. package/error-handling/customErrors/index.d.ts +5 -0
  602. package/error-handling/error-codes.constants.cjs +2 -0
  603. package/error-handling/error-codes.constants.d.ts +199 -0
  604. package/error-handling/error-codes.constants.mjs +204 -0
  605. package/error-handling/get-error.message.cjs +1 -0
  606. package/error-handling/get-error.message.d.ts +5 -0
  607. package/error-handling/get-error.message.mjs +101 -0
  608. package/error-handling/handleErrorRestore.cjs +1 -0
  609. package/error-handling/handleErrorRestore.d.ts +2 -0
  610. package/error-handling/handleErrorRestore.mjs +11 -0
  611. package/error-handling/index.d.ts +7 -0
  612. package/error-handling/logError.cjs +1 -0
  613. package/error-handling/logError.d.ts +1 -0
  614. package/error-handling/logError.mjs +7 -0
  615. package/error-handling/logger.cjs +1 -0
  616. package/error-handling/logger.d.ts +5 -0
  617. package/error-handling/logger.mjs +16 -0
  618. package/error-handling/types.cjs +1 -0
  619. package/error-handling/types.d.ts +10 -0
  620. package/error-handling/types.mjs +4 -0
  621. package/externalABIs/BUSD.cjs +1 -0
  622. package/externalABIs/BUSD.d.ts +38 -0
  623. package/externalABIs/BUSD.mjs +519 -0
  624. package/externalABIs/BabPassport.json.cjs +1 -0
  625. package/externalABIs/BabPassport.json.mjs +29 -0
  626. package/externalABIs/DAI.cjs +1 -0
  627. package/externalABIs/DAI.d.ts +45 -0
  628. package/externalABIs/DAI.mjs +334 -0
  629. package/externalABIs/ERC1155.json.cjs +1 -0
  630. package/externalABIs/ERC1155.json.mjs +320 -0
  631. package/externalABIs/ERC20.json.cjs +1 -0
  632. package/externalABIs/ERC20.json.mjs +308 -0
  633. package/externalABIs/ERC721.json.cjs +1 -0
  634. package/externalABIs/ERC721.json.mjs +338 -0
  635. package/externalABIs/GalxePassport.json.cjs +1 -0
  636. package/externalABIs/GalxePassport.json.mjs +46 -0
  637. package/externalABIs/IQuoterV2.json.cjs +1 -0
  638. package/externalABIs/IQuoterV2.json.mjs +222 -0
  639. package/externalABIs/ISwapRouter.json.cjs +1 -0
  640. package/externalABIs/ISwapRouter.json.mjs +571 -0
  641. package/externalABIs/IUniswapV3Factory.json.cjs +1 -0
  642. package/externalABIs/IUniswapV3Factory.json.mjs +218 -0
  643. package/externalABIs/IUniswapV3Pool.json.cjs +1 -0
  644. package/externalABIs/IUniswapV3Pool.json.mjs +1016 -0
  645. package/externalABIs/NodeInterfaceABI.json.cjs +1 -0
  646. package/externalABIs/NodeInterfaceABI.json.mjs +280 -0
  647. package/externalABIs/OptimismGasPriceOracle.json.cjs +1 -0
  648. package/externalABIs/OptimismGasPriceOracle.json.mjs +206 -0
  649. package/externalABIs/SanctionsList.cjs +1 -0
  650. package/externalABIs/SanctionsList.d.ts +35 -0
  651. package/externalABIs/SanctionsList.mjs +89 -0
  652. package/externalABIs/USDC.cjs +1 -0
  653. package/externalABIs/USDC.d.ts +28 -0
  654. package/externalABIs/USDC.mjs +721 -0
  655. package/externalABIs/USDR.cjs +1 -0
  656. package/externalABIs/USDR.d.ts +28 -0
  657. package/externalABIs/USDR.mjs +346 -0
  658. package/externalABIs/USDR3CRV.cjs +1 -0
  659. package/externalABIs/USDR3CRV.d.ts +49 -0
  660. package/externalABIs/USDR3CRV.mjs +542 -0
  661. package/externalABIs/USDT.cjs +1 -0
  662. package/externalABIs/USDT.d.ts +41 -0
  663. package/externalABIs/USDT.mjs +393 -0
  664. package/externalABIs/UniswapV2PoolAbi.json.cjs +1 -0
  665. package/externalABIs/UniswapV2PoolAbi.json.mjs +93 -0
  666. package/externalABIs/WETH.cjs +1 -0
  667. package/externalABIs/WETH.d.ts +38 -0
  668. package/externalABIs/WETH.mjs +156 -0
  669. package/externalABIs/amToken.cjs +1 -0
  670. package/externalABIs/amToken.d.ts +28 -0
  671. package/externalABIs/amToken.mjs +350 -0
  672. package/externalABIs/index.cjs +1 -0
  673. package/externalABIs/index.d.ts +269 -0
  674. package/externalABIs/index.mjs +21 -0
  675. package/externalABIs/swapAbi.cjs +1 -0
  676. package/externalABIs/swapAbi.d.ts +77 -0
  677. package/externalABIs/swapAbi.mjs +291 -0
  678. package/externalABIs/transactionsProver.json.cjs +1 -0
  679. package/externalABIs/transactionsProver.json.mjs +56 -0
  680. package/functions/connectors.types.d.ts +14 -0
  681. package/functions/index.d.ts +13 -0
  682. package/functions/kyc/aiPriseHelper.d.ts +0 -0
  683. package/functions/kyc/authentoHelper.cjs +1 -0
  684. package/functions/kyc/authentoHelper.d.ts +12 -0
  685. package/functions/kyc/authentoHelper.mjs +30 -0
  686. package/functions/kyc/index.d.ts +3 -0
  687. package/functions/kyc/openDefaultPassportWindow.cjs +1 -0
  688. package/functions/kyc/openDefaultPassportWindow.d.ts +1 -0
  689. package/functions/kyc/openDefaultPassportWindow.mjs +11 -0
  690. package/functions/kyc/passportHelper.cjs +1 -0
  691. package/functions/kyc/passportHelper.d.ts +3 -0
  692. package/functions/kyc/passportHelper.mjs +9 -0
  693. package/functions/kyc/zkMeHelper.cjs +1 -0
  694. package/functions/kyc/zkMeHelper.d.ts +4 -0
  695. package/functions/kyc/zkMeHelper.mjs +52 -0
  696. package/functions/pre-transaction/addressTableLookup.cjs +1 -0
  697. package/functions/pre-transaction/addressTableLookup.d.ts +4 -0
  698. package/functions/pre-transaction/addressTableLookup.mjs +44 -0
  699. package/functions/pre-transaction/constructAdminData.cjs +1 -0
  700. package/functions/pre-transaction/constructAdminData.d.ts +3 -0
  701. package/functions/pre-transaction/constructAdminData.mjs +33 -0
  702. package/functions/pre-transaction/convert-okx-instructions.cjs +1 -0
  703. package/functions/pre-transaction/convert-okx-instructions.d.ts +12 -0
  704. package/functions/pre-transaction/convert-okx-instructions.mjs +30 -0
  705. package/functions/pre-transaction/getExternalSwapAddress.cjs +1 -0
  706. package/functions/pre-transaction/getExternalSwapAddress.d.ts +3 -0
  707. package/functions/pre-transaction/getExternalSwapAddress.mjs +29 -0
  708. package/functions/pre-transaction/getFeeStructure.cjs +1 -0
  709. package/functions/pre-transaction/getFeeStructure.d.ts +4 -0
  710. package/functions/pre-transaction/getFeeStructure.mjs +29 -0
  711. package/functions/pre-transaction/getFlatFees.cjs +1 -0
  712. package/functions/pre-transaction/getFlatFees.d.ts +8 -0
  713. package/functions/pre-transaction/getFlatFees.mjs +56 -0
  714. package/functions/pre-transaction/getSignatureDataForTransact.cjs +1 -0
  715. package/functions/pre-transaction/getSignatureDataForTransact.d.ts +3 -0
  716. package/functions/pre-transaction/getSignatureDataForTransact.mjs +6 -0
  717. package/functions/pre-transaction/getSolanaCalldataHash.cjs +1 -0
  718. package/functions/pre-transaction/getSolanaCalldataHash.d.ts +4 -0
  719. package/functions/pre-transaction/getSolanaCalldataHash.mjs +36 -0
  720. package/functions/pre-transaction/getVolatileTransferAmount.cjs +1 -0
  721. package/functions/pre-transaction/getVolatileTransferAmount.d.ts +9 -0
  722. package/functions/pre-transaction/getVolatileTransferAmount.mjs +52 -0
  723. package/functions/pre-transaction/index.d.ts +17 -0
  724. package/functions/pre-transaction/initTokenLimitIfNeeded.cjs +1 -0
  725. package/functions/pre-transaction/initTokenLimitIfNeeded.d.ts +3 -0
  726. package/functions/pre-transaction/initTokenLimitIfNeeded.mjs +20 -0
  727. package/functions/pre-transaction/interaction-to-action.cjs +1 -0
  728. package/functions/pre-transaction/interaction-to-action.d.ts +2 -0
  729. package/functions/pre-transaction/interaction-to-action.mjs +10 -0
  730. package/functions/pre-transaction/merge-with-fee-structure-emporium.cjs +1 -0
  731. package/functions/pre-transaction/merge-with-fee-structure-emporium.d.ts +3 -0
  732. package/functions/pre-transaction/merge-with-fee-structure-emporium.mjs +24 -0
  733. package/functions/pre-transaction/merge-with-fee-structure.cjs +1 -0
  734. package/functions/pre-transaction/merge-with-fee-structure.d.ts +2 -0
  735. package/functions/pre-transaction/merge-with-fee-structure.mjs +23 -0
  736. package/functions/pre-transaction/outputApprovalDataProcessing.cjs +1 -0
  737. package/functions/pre-transaction/outputApprovalDataProcessing.d.ts +17 -0
  738. package/functions/pre-transaction/outputApprovalDataProcessing.mjs +39 -0
  739. package/functions/pre-transaction/outputUtxoProcessing.cjs +1 -0
  740. package/functions/pre-transaction/outputUtxoProcessing.d.ts +5 -0
  741. package/functions/pre-transaction/outputUtxoProcessing.mjs +35 -0
  742. package/functions/pre-transaction/process-gas-estimates.cjs +1 -0
  743. package/functions/pre-transaction/process-gas-estimates.d.ts +5 -0
  744. package/functions/pre-transaction/process-gas-estimates.mjs +25 -0
  745. package/functions/pre-transaction/recipientUtxoProcessing.cjs +1 -0
  746. package/functions/pre-transaction/recipientUtxoProcessing.d.ts +3 -0
  747. package/functions/pre-transaction/recipientUtxoProcessing.mjs +36 -0
  748. package/functions/pre-transaction/sendInitNullifiersTransaction.cjs +1 -0
  749. package/functions/pre-transaction/sendInitNullifiersTransaction.d.ts +11 -0
  750. package/functions/pre-transaction/sendInitNullifiersTransaction.mjs +41 -0
  751. package/functions/pre-transaction/sendV0Transaction.cjs +1 -0
  752. package/functions/pre-transaction/sendV0Transaction.d.ts +22 -0
  753. package/functions/pre-transaction/sendV0Transaction.mjs +121 -0
  754. package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.cjs +1 -0
  755. package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.d.ts +6 -0
  756. package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.mjs +7 -0
  757. package/functions/pre-transaction/solana-public-signals.cjs +1 -0
  758. package/functions/pre-transaction/solana-public-signals.d.ts +20 -0
  759. package/functions/pre-transaction/solana-public-signals.mjs +63 -0
  760. package/functions/pre-transaction/solana.cjs +1 -0
  761. package/functions/pre-transaction/solana.d.ts +18 -0
  762. package/functions/pre-transaction/solana.mjs +105 -0
  763. package/functions/pre-transaction/solanaTransfer.utils.cjs +1 -0
  764. package/functions/pre-transaction/solanaTransfer.utils.d.ts +6 -0
  765. package/functions/pre-transaction/solanaTransfer.utils.mjs +38 -0
  766. package/functions/pre-transaction/store-instructions.cjs +1 -0
  767. package/functions/pre-transaction/store-instructions.d.ts +4 -0
  768. package/functions/pre-transaction/store-instructions.mjs +9 -0
  769. package/functions/pre-transaction/store-proof.cjs +1 -0
  770. package/functions/pre-transaction/store-proof.d.ts +7 -0
  771. package/functions/pre-transaction/store-proof.mjs +55 -0
  772. package/functions/private-wallet/emporium.helpers.cjs +1 -0
  773. package/functions/private-wallet/emporium.helpers.d.ts +32 -0
  774. package/functions/private-wallet/emporium.helpers.mjs +224 -0
  775. package/functions/private-wallet/emporium.swap.helpers.cjs +1 -0
  776. package/functions/private-wallet/emporium.swap.helpers.d.ts +7 -0
  777. package/functions/private-wallet/emporium.swap.helpers.mjs +158 -0
  778. package/functions/private-wallet/index.d.ts +3 -0
  779. package/functions/private-wallet/opProducer.cjs +1 -0
  780. package/functions/private-wallet/opProducer.d.ts +5 -0
  781. package/functions/private-wallet/opProducer.mjs +23 -0
  782. package/functions/snarkjs/common.snarkjs.cjs +1 -0
  783. package/functions/snarkjs/common.snarkjs.d.ts +29 -0
  784. package/functions/snarkjs/common.snarkjs.mjs +190 -0
  785. package/functions/snarkjs/constant.cjs +1 -0
  786. package/functions/snarkjs/constant.d.ts +430 -0
  787. package/functions/snarkjs/constant.mjs +470 -0
  788. package/functions/snarkjs/constructEmporiumProof.cjs +1 -0
  789. package/functions/snarkjs/constructEmporiumProof.d.ts +13 -0
  790. package/functions/snarkjs/constructEmporiumProof.mjs +166 -0
  791. package/functions/snarkjs/constructGeneralZkProof.cjs +1 -0
  792. package/functions/snarkjs/constructGeneralZkProof.d.ts +13 -0
  793. package/functions/snarkjs/constructGeneralZkProof.mjs +154 -0
  794. package/functions/snarkjs/constructSolanaZkProof.cjs +1 -0
  795. package/functions/snarkjs/constructSolanaZkProof.d.ts +13 -0
  796. package/functions/snarkjs/constructSolanaZkProof.mjs +105 -0
  797. package/functions/snarkjs/fetchMerkleTreeSiblings.cjs +1 -0
  798. package/functions/snarkjs/fetchMerkleTreeSiblings.d.ts +11 -0
  799. package/functions/snarkjs/fetchMerkleTreeSiblings.mjs +22 -0
  800. package/functions/snarkjs/generateCircomData.cjs +1 -0
  801. package/functions/snarkjs/generateCircomData.d.ts +5 -0
  802. package/functions/snarkjs/generateCircomData.mjs +37 -0
  803. package/functions/snarkjs/generateZkProof.cjs +1 -0
  804. package/functions/snarkjs/generateZkProof.d.ts +5 -0
  805. package/functions/snarkjs/generateZkProof.mjs +15 -0
  806. package/functions/snarkjs/generateZkProofEnclave.cjs +1 -0
  807. package/functions/snarkjs/generateZkProofEnclave.d.ts +6 -0
  808. package/functions/snarkjs/generateZkProofEnclave.mjs +27 -0
  809. package/functions/snarkjs/generateZkProofSelf.cjs +1 -0
  810. package/functions/snarkjs/generateZkProofSelf.d.ts +5 -0
  811. package/functions/snarkjs/generateZkProofSelf.mjs +17 -0
  812. package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.cjs +1 -0
  813. package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.d.ts +13 -0
  814. package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +92 -0
  815. package/functions/snarkjs/getOriginalSender.cjs +1 -0
  816. package/functions/snarkjs/getOriginalSender.d.ts +1 -0
  817. package/functions/snarkjs/getOriginalSender.mjs +5 -0
  818. package/functions/snarkjs/getZKFiles.cjs +1 -0
  819. package/functions/snarkjs/getZKFiles.d.ts +3 -0
  820. package/functions/snarkjs/getZKFiles.mjs +16 -0
  821. package/functions/snarkjs/index.d.ts +5 -0
  822. package/functions/utils/addresses.cjs +1 -0
  823. package/functions/utils/addresses.d.ts +5 -0
  824. package/functions/utils/addresses.mjs +26 -0
  825. package/functions/utils/amounts.utils.cjs +1 -0
  826. package/functions/utils/amounts.utils.d.ts +27 -0
  827. package/functions/utils/amounts.utils.mjs +98 -0
  828. package/functions/utils/arraysMatch.cjs +1 -0
  829. package/functions/utils/arraysMatch.d.ts +1 -0
  830. package/functions/utils/arraysMatch.mjs +4 -0
  831. package/functions/utils/bytes32.utils.cjs +1 -0
  832. package/functions/utils/bytes32.utils.d.ts +2 -0
  833. package/functions/utils/bytes32.utils.mjs +11 -0
  834. package/functions/utils/cacheDevice.utils.cjs +1 -0
  835. package/functions/utils/cacheDevice.utils.d.ts +3 -0
  836. package/functions/utils/cacheDevice.utils.mjs +28 -0
  837. package/functions/utils/cacheFunctions.cjs +1 -0
  838. package/functions/utils/cacheFunctions.d.ts +20 -0
  839. package/functions/utils/cacheFunctions.mjs +83 -0
  840. package/functions/utils/caseInsensitive.utils.cjs +1 -0
  841. package/functions/utils/caseInsensitive.utils.d.ts +3 -0
  842. package/functions/utils/caseInsensitive.utils.mjs +6 -0
  843. package/functions/utils/convertEmporiumOpToCallInfo.cjs +1 -0
  844. package/functions/utils/convertEmporiumOpToCallInfo.d.ts +2 -0
  845. package/functions/utils/convertEmporiumOpToCallInfo.mjs +11 -0
  846. package/functions/utils/convertIntegrationProviderToExternalActionId.cjs +1 -0
  847. package/functions/utils/convertIntegrationProviderToExternalActionId.d.ts +3 -0
  848. package/functions/utils/convertIntegrationProviderToExternalActionId.mjs +14 -0
  849. package/functions/utils/create-provider.cjs +1 -0
  850. package/functions/utils/create-provider.d.ts +6 -0
  851. package/functions/utils/create-provider.mjs +12 -0
  852. package/functions/utils/encodeTokenWithId.cjs +1 -0
  853. package/functions/utils/encodeTokenWithId.d.ts +2 -0
  854. package/functions/utils/encodeTokenWithId.mjs +8 -0
  855. package/functions/utils/encryptInputForEnclave.cjs +1 -0
  856. package/functions/utils/encryptInputForEnclave.d.ts +8 -0
  857. package/functions/utils/encryptInputForEnclave.mjs +44 -0
  858. package/functions/utils/enum.utils.d.ts +9 -0
  859. package/functions/utils/erc20tokenFunctions.cjs +1 -0
  860. package/functions/utils/erc20tokenFunctions.d.ts +14 -0
  861. package/functions/utils/erc20tokenFunctions.mjs +55 -0
  862. package/functions/utils/ethers-formatter.utils.cjs +1 -0
  863. package/functions/utils/ethers-formatter.utils.d.ts +5 -0
  864. package/functions/utils/ethers-formatter.utils.mjs +59 -0
  865. package/functions/utils/evmNetworkFunctions.cjs +1 -0
  866. package/functions/utils/evmNetworkFunctions.d.ts +4 -0
  867. package/functions/utils/evmNetworkFunctions.mjs +19 -0
  868. package/functions/utils/external-action.utils.cjs +1 -0
  869. package/functions/utils/external-action.utils.d.ts +3 -0
  870. package/functions/utils/external-action.utils.mjs +10 -0
  871. package/functions/utils/fees.utils.cjs +1 -0
  872. package/functions/utils/fees.utils.d.ts +5 -0
  873. package/functions/utils/fees.utils.mjs +35 -0
  874. package/functions/utils/get-hinkal-approvals.cjs +1 -0
  875. package/functions/utils/get-hinkal-approvals.d.ts +3 -0
  876. package/functions/utils/get-hinkal-approvals.mjs +38 -0
  877. package/functions/utils/get-signature-header.cjs +1 -0
  878. package/functions/utils/get-signature-header.d.ts +5 -0
  879. package/functions/utils/get-signature-header.mjs +8 -0
  880. package/functions/utils/getBlockExplorerUrl.cjs +1 -0
  881. package/functions/utils/getBlockExplorerUrl.d.ts +1 -0
  882. package/functions/utils/getBlockExplorerUrl.mjs +6 -0
  883. package/functions/utils/getContractAddress.cjs +1 -0
  884. package/functions/utils/getContractAddress.d.ts +2 -0
  885. package/functions/utils/getContractAddress.mjs +9 -0
  886. package/functions/utils/getDataFromTransaction.cjs +1 -0
  887. package/functions/utils/getDataFromTransaction.d.ts +33 -0
  888. package/functions/utils/getDataFromTransaction.mjs +40 -0
  889. package/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -0
  890. package/functions/utils/getRecipientInfoFromUserKeys.d.ts +2 -0
  891. package/functions/utils/getRecipientInfoFromUserKeys.mjs +15 -0
  892. package/functions/utils/getSignerFromContract.cjs +1 -0
  893. package/functions/utils/getSignerFromContract.d.ts +3 -0
  894. package/functions/utils/getSignerFromContract.mjs +16 -0
  895. package/functions/utils/getUtxosFromReceipt.utils.cjs +1 -0
  896. package/functions/utils/getUtxosFromReceipt.utils.d.ts +4 -0
  897. package/functions/utils/getUtxosFromReceipt.utils.mjs +28 -0
  898. package/functions/utils/getUtxosFromReceiptSolana.cjs +1 -0
  899. package/functions/utils/getUtxosFromReceiptSolana.d.ts +5 -0
  900. package/functions/utils/getUtxosFromReceiptSolana.mjs +19 -0
  901. package/functions/utils/inLogicMetadata.cjs +1 -0
  902. package/functions/utils/inLogicMetadata.d.ts +2 -0
  903. package/functions/utils/inLogicMetadata.mjs +8 -0
  904. package/functions/utils/index.d.ts +47 -0
  905. package/functions/utils/involves-permit2-op.cjs +1 -0
  906. package/functions/utils/involves-permit2-op.d.ts +8 -0
  907. package/functions/utils/involves-permit2-op.mjs +9 -0
  908. package/functions/utils/ipfs.cjs +1 -0
  909. package/functions/utils/ipfs.d.ts +8 -0
  910. package/functions/utils/ipfs.mjs +25 -0
  911. package/functions/utils/is-valid-url.cjs +1 -0
  912. package/functions/utils/is-valid-url.d.ts +1 -0
  913. package/functions/utils/is-valid-url.mjs +4 -0
  914. package/functions/utils/lifi.utils.d.ts +1 -0
  915. package/functions/utils/memoize.utils.d.ts +1 -0
  916. package/functions/utils/merkleTree.utils.cjs +1 -0
  917. package/functions/utils/merkleTree.utils.d.ts +2 -0
  918. package/functions/utils/merkleTree.utils.mjs +20 -0
  919. package/functions/utils/mutexes.utils.cjs +1 -0
  920. package/functions/utils/mutexes.utils.d.ts +2 -0
  921. package/functions/utils/mutexes.utils.mjs +5 -0
  922. package/functions/utils/networks.utils.cjs +1 -0
  923. package/functions/utils/networks.utils.d.ts +1 -0
  924. package/functions/utils/networks.utils.mjs +21 -0
  925. package/functions/utils/nftTokenFunctions.cjs +1 -0
  926. package/functions/utils/nftTokenFunctions.d.ts +2 -0
  927. package/functions/utils/nftTokenFunctions.mjs +39 -0
  928. package/functions/utils/nickname.utils.cjs +1 -0
  929. package/functions/utils/nickname.utils.d.ts +1 -0
  930. package/functions/utils/nickname.utils.mjs +7 -0
  931. package/functions/utils/postToOffscreen.cjs +1 -0
  932. package/functions/utils/postToOffscreen.d.ts +2 -0
  933. package/functions/utils/postToOffscreen.mjs +6 -0
  934. package/functions/utils/prepareHinkal.cjs +1 -0
  935. package/functions/utils/prepareHinkal.d.ts +18 -0
  936. package/functions/utils/prepareHinkal.mjs +88 -0
  937. package/functions/utils/process.utils.cjs +1 -0
  938. package/functions/utils/process.utils.d.ts +7 -0
  939. package/functions/utils/process.utils.mjs +16 -0
  940. package/functions/utils/processUseApprovalUtxoData.cjs +1 -0
  941. package/functions/utils/processUseApprovalUtxoData.d.ts +3 -0
  942. package/functions/utils/processUseApprovalUtxoData.mjs +19 -0
  943. package/functions/utils/publicBalance.utils.cjs +1 -0
  944. package/functions/utils/publicBalance.utils.d.ts +7 -0
  945. package/functions/utils/publicBalance.utils.mjs +105 -0
  946. package/functions/utils/reloadPage.cjs +1 -0
  947. package/functions/utils/reloadPage.d.ts +1 -0
  948. package/functions/utils/reloadPage.mjs +4 -0
  949. package/functions/utils/replaceAddressInCalldata.cjs +1 -0
  950. package/functions/utils/replaceAddressInCalldata.d.ts +1 -0
  951. package/functions/utils/replaceAddressInCalldata.mjs +7 -0
  952. package/functions/utils/requireEnv.cjs +1 -0
  953. package/functions/utils/requireEnv.d.ts +1 -0
  954. package/functions/utils/requireEnv.mjs +7 -0
  955. package/functions/utils/resolve-sync.utils.cjs +1 -0
  956. package/functions/utils/resolve-sync.utils.d.ts +6 -0
  957. package/functions/utils/resolve-sync.utils.mjs +31 -0
  958. package/functions/utils/rpc-int-encode.cjs +1 -0
  959. package/functions/utils/rpc-int-encode.d.ts +1 -0
  960. package/functions/utils/rpc-int-encode.mjs +5 -0
  961. package/functions/utils/serialize.utils.cjs +1 -0
  962. package/functions/utils/serialize.utils.d.ts +2 -0
  963. package/functions/utils/serialize.utils.mjs +5 -0
  964. package/functions/utils/solanaMint.utils.cjs +1 -0
  965. package/functions/utils/solanaMint.utils.d.ts +10 -0
  966. package/functions/utils/solanaMint.utils.mjs +14 -0
  967. package/functions/utils/string.utils.cjs +1 -0
  968. package/functions/utils/string.utils.d.ts +14 -0
  969. package/functions/utils/string.utils.mjs +44 -0
  970. package/functions/utils/time.utils.cjs +1 -0
  971. package/functions/utils/time.utils.d.ts +13 -0
  972. package/functions/utils/time.utils.mjs +57 -0
  973. package/functions/utils/token-check.utils.cjs +1 -0
  974. package/functions/utils/token-check.utils.d.ts +1 -0
  975. package/functions/utils/token-check.utils.mjs +10 -0
  976. package/functions/utils/trimFieldValues.cjs +1 -0
  977. package/functions/utils/trimFieldValues.d.ts +4 -0
  978. package/functions/utils/trimFieldValues.mjs +17 -0
  979. package/functions/utils/upToDateState.cjs +1 -0
  980. package/functions/utils/upToDateState.d.ts +2 -0
  981. package/functions/utils/upToDateState.mjs +11 -0
  982. package/functions/utils/userAgent.cjs +1 -0
  983. package/functions/utils/userAgent.d.ts +3 -0
  984. package/functions/utils/userAgent.mjs +27 -0
  985. package/functions/utils/walletBalances.utils.cjs +1 -0
  986. package/functions/utils/walletBalances.utils.d.ts +17 -0
  987. package/functions/utils/walletBalances.utils.mjs +42 -0
  988. package/functions/web3/EIP-712.cjs +1 -0
  989. package/functions/web3/EIP-712.d.ts +23 -0
  990. package/functions/web3/EIP-712.mjs +113 -0
  991. package/functions/web3/connectors.utils.cjs +1 -0
  992. package/functions/web3/connectors.utils.d.ts +6 -0
  993. package/functions/web3/connectors.utils.mjs +23 -0
  994. package/functions/web3/etherFunctions.cjs +1 -0
  995. package/functions/web3/etherFunctions.d.ts +20 -0
  996. package/functions/web3/etherFunctions.mjs +44 -0
  997. package/functions/web3/events/balanceChangedCustomHandler.cjs +1 -0
  998. package/functions/web3/events/balanceChangedCustomHandler.d.ts +2 -0
  999. package/functions/web3/events/balanceChangedCustomHandler.mjs +12 -0
  1000. package/functions/web3/events/balanceChangedHandler.cjs +1 -0
  1001. package/functions/web3/events/balanceChangedHandler.d.ts +1 -0
  1002. package/functions/web3/events/balanceChangedHandler.mjs +10 -0
  1003. package/functions/web3/events/getApprovedBalance.cjs +1 -0
  1004. package/functions/web3/events/getApprovedBalance.d.ts +7 -0
  1005. package/functions/web3/events/getApprovedBalance.mjs +54 -0
  1006. package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -0
  1007. package/functions/web3/events/getInputUtxoAndBalance.d.ts +38 -0
  1008. package/functions/web3/events/getInputUtxoAndBalance.mjs +221 -0
  1009. package/functions/web3/events/getInputUtxosEnclave.cjs +1 -0
  1010. package/functions/web3/events/getInputUtxosEnclave.d.ts +8 -0
  1011. package/functions/web3/events/getInputUtxosEnclave.mjs +47 -0
  1012. package/functions/web3/events/getShieldedBalance.cjs +2 -0
  1013. package/functions/web3/events/getShieldedBalance.d.ts +18 -0
  1014. package/functions/web3/events/getShieldedBalance.mjs +104 -0
  1015. package/functions/web3/events/getTransactionLogEvents.cjs +1 -0
  1016. package/functions/web3/events/getTransactionLogEvents.d.ts +13 -0
  1017. package/functions/web3/events/getTransactionLogEvents.mjs +76 -0
  1018. package/functions/web3/events/index.d.ts +6 -0
  1019. package/functions/web3/fetchSolanaMerkleTreeRootHash.cjs +1 -0
  1020. package/functions/web3/fetchSolanaMerkleTreeRootHash.d.ts +3 -0
  1021. package/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +44 -0
  1022. package/functions/web3/functionCalls/accessTokenCalls.cjs +1 -0
  1023. package/functions/web3/functionCalls/accessTokenCalls.d.ts +7 -0
  1024. package/functions/web3/functionCalls/accessTokenCalls.mjs +32 -0
  1025. package/functions/web3/functionCalls/approveToken.cjs +1 -0
  1026. package/functions/web3/functionCalls/approveToken.d.ts +4 -0
  1027. package/functions/web3/functionCalls/approveToken.mjs +141 -0
  1028. package/functions/web3/functionCalls/approveTokensToHinkal.cjs +1 -0
  1029. package/functions/web3/functionCalls/approveTokensToHinkal.d.ts +4 -0
  1030. package/functions/web3/functionCalls/approveTokensToHinkal.mjs +11 -0
  1031. package/functions/web3/functionCalls/constructBatchCall.cjs +1 -0
  1032. package/functions/web3/functionCalls/constructBatchCall.d.ts +5 -0
  1033. package/functions/web3/functionCalls/constructBatchCall.mjs +22 -0
  1034. package/functions/web3/functionCalls/estimateGasRelayer.cjs +1 -0
  1035. package/functions/web3/functionCalls/estimateGasRelayer.d.ts +5 -0
  1036. package/functions/web3/functionCalls/estimateGasRelayer.mjs +22 -0
  1037. package/functions/web3/functionCalls/getRootHash.d.ts +2 -0
  1038. package/functions/web3/functionCalls/inHinkalApprovalCalls.cjs +1 -0
  1039. package/functions/web3/functionCalls/inHinkalApprovalCalls.d.ts +5 -0
  1040. package/functions/web3/functionCalls/inHinkalApprovalCalls.mjs +29 -0
  1041. package/functions/web3/functionCalls/recoverTransactionFromError.cjs +1 -0
  1042. package/functions/web3/functionCalls/recoverTransactionFromError.d.ts +2 -0
  1043. package/functions/web3/functionCalls/recoverTransactionFromError.mjs +23 -0
  1044. package/functions/web3/functionCalls/relayFunctions.d.ts +3 -0
  1045. package/functions/web3/functionCalls/transactCallDirect.cjs +1 -0
  1046. package/functions/web3/functionCalls/transactCallDirect.d.ts +6 -0
  1047. package/functions/web3/functionCalls/transactCallDirect.mjs +68 -0
  1048. package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -0
  1049. package/functions/web3/functionCalls/transactCallRelayer.d.ts +27 -0
  1050. package/functions/web3/functionCalls/transactCallRelayer.mjs +103 -0
  1051. package/functions/web3/getContractMetadata.cjs +1 -0
  1052. package/functions/web3/getContractMetadata.d.ts +5 -0
  1053. package/functions/web3/getContractMetadata.mjs +34 -0
  1054. package/functions/web3/getPublicAddressBalance.cjs +1 -0
  1055. package/functions/web3/getPublicAddressBalance.d.ts +2 -0
  1056. package/functions/web3/getPublicAddressBalance.mjs +10 -0
  1057. package/functions/web3/getTokenHolder.cjs +1 -0
  1058. package/functions/web3/getTokenHolder.d.ts +1 -0
  1059. package/functions/web3/getTokenHolder.mjs +74 -0
  1060. package/functions/web3/index.d.ts +13 -0
  1061. package/functions/web3/lifiAPI.cjs +1 -0
  1062. package/functions/web3/lifiAPI.d.ts +6 -0
  1063. package/functions/web3/lifiAPI.mjs +30 -0
  1064. package/functions/web3/odosAPI.cjs +1 -0
  1065. package/functions/web3/odosAPI.d.ts +5 -0
  1066. package/functions/web3/odosAPI.mjs +70 -0
  1067. package/functions/web3/okxAPI.cjs +1 -0
  1068. package/functions/web3/okxAPI.d.ts +8 -0
  1069. package/functions/web3/okxAPI.mjs +43 -0
  1070. package/functions/web3/oneInchAPI.cjs +1 -0
  1071. package/functions/web3/oneInchAPI.d.ts +5 -0
  1072. package/functions/web3/oneInchAPI.mjs +68 -0
  1073. package/functions/web3/runContractFunction.cjs +1 -0
  1074. package/functions/web3/runContractFunction.d.ts +16 -0
  1075. package/functions/web3/runContractFunction.mjs +87 -0
  1076. package/functions/web3/signAndSendSerializedTransaction.cjs +1 -0
  1077. package/functions/web3/signAndSendSerializedTransaction.d.ts +2 -0
  1078. package/functions/web3/signAndSendSerializedTransaction.mjs +11 -0
  1079. package/functions/web3/solana-wagmi-adapter.cjs +1 -0
  1080. package/functions/web3/solana-wagmi-adapter.d.ts +3 -0
  1081. package/functions/web3/solana-wagmi-adapter.mjs +29 -0
  1082. package/functions/web3/uniswapAPI.cjs +1 -0
  1083. package/functions/web3/uniswapAPI.d.ts +16 -0
  1084. package/functions/web3/uniswapAPI.mjs +109 -0
  1085. package/index.cjs +1 -0
  1086. package/index.d.ts +9 -0
  1087. package/index.mjs +971 -0
  1088. package/mutexes/index.d.ts +1 -0
  1089. package/mutexes/mutex.cjs +1 -0
  1090. package/mutexes/mutex.d.ts +2 -0
  1091. package/mutexes/mutex.mjs +5 -0
  1092. package/package.json +88 -0
  1093. package/providers/CustomEthersProvider.cjs +1 -0
  1094. package/providers/CustomEthersProvider.d.ts +10 -0
  1095. package/providers/CustomEthersProvider.mjs +29 -0
  1096. package/providers/CustomSolanaConnection.cjs +1 -0
  1097. package/providers/CustomSolanaConnection.d.ts +4 -0
  1098. package/providers/CustomSolanaConnection.mjs +33 -0
  1099. package/providers/EthersProviderAdapter.cjs +1 -0
  1100. package/providers/EthersProviderAdapter.d.ts +42 -0
  1101. package/providers/EthersProviderAdapter.mjs +148 -0
  1102. package/providers/SolanaProviderAdapter.cjs +1 -0
  1103. package/providers/SolanaProviderAdapter.d.ts +44 -0
  1104. package/providers/SolanaProviderAdapter.mjs +125 -0
  1105. package/providers/WagmiProviderAdapter.cjs +1 -0
  1106. package/providers/WagmiProviderAdapter.d.ts +51 -0
  1107. package/providers/WagmiProviderAdapter.mjs +258 -0
  1108. package/providers/exportProviers.d.ts +3 -0
  1109. package/providers/prepareEthersHinkal.cjs +1 -0
  1110. package/providers/prepareEthersHinkal.d.ts +4 -0
  1111. package/providers/prepareEthersHinkal.mjs +50 -0
  1112. package/providers/prepareWagmiHinkal.cjs +1 -0
  1113. package/providers/prepareWagmiHinkal.d.ts +3 -0
  1114. package/providers/prepareWagmiHinkal.mjs +50 -0
  1115. package/types/API.types.d.ts +25 -0
  1116. package/types/ICacheDevice.d.ts +5 -0
  1117. package/types/IMultiThreadedUtxoUtils.d.ts +8 -0
  1118. package/types/RewardUserEnums.cjs +1 -0
  1119. package/types/RewardUserEnums.d.ts +11 -0
  1120. package/types/RewardUserEnums.mjs +5 -0
  1121. package/types/TransactionSimulator.types.d.ts +23 -0
  1122. package/types/WeeklyAnalytics.types.d.ts +37 -0
  1123. package/types/activities.types.cjs +1 -0
  1124. package/types/activities.types.d.ts +71 -0
  1125. package/types/activities.types.mjs +25 -0
  1126. package/types/admin.types.cjs +1 -0
  1127. package/types/admin.types.d.ts +46 -0
  1128. package/types/admin.types.mjs +4 -0
  1129. package/types/all-points.types.d.ts +7 -0
  1130. package/types/approvals.types.cjs +1 -0
  1131. package/types/approvals.types.d.ts +41 -0
  1132. package/types/approvals.types.mjs +4 -0
  1133. package/types/balances.types.cjs +1 -0
  1134. package/types/balances.types.d.ts +17 -0
  1135. package/types/balances.types.mjs +4 -0
  1136. package/types/big-intable.types.d.ts +3 -0
  1137. package/types/bridging-tx.types.d.ts +17 -0
  1138. package/types/bridging.types.d.ts +29 -0
  1139. package/types/brotherhood-user.types.d.ts +11 -0
  1140. package/types/cache.types.cjs +1 -0
  1141. package/types/cache.types.d.ts +49 -0
  1142. package/types/cache.types.mjs +4 -0
  1143. package/types/circom-data.types.cjs +1 -0
  1144. package/types/circom-data.types.d.ts +102 -0
  1145. package/types/circom-data.types.mjs +22 -0
  1146. package/types/coingecko.types.d.ts +215 -0
  1147. package/types/commitments.types.d.ts +44 -0
  1148. package/types/confirmation-request.types.cjs +1 -0
  1149. package/types/confirmation-request.types.d.ts +10 -0
  1150. package/types/confirmation-request.types.mjs +4 -0
  1151. package/types/connector.types.d.ts +4 -0
  1152. package/types/contacts.types.d.ts +6 -0
  1153. package/types/crypto.types.d.ts +8 -0
  1154. package/types/duneAPI.types.d.ts +9 -0
  1155. package/types/eip5792.types.cjs +1 -0
  1156. package/types/eip5792.types.d.ts +33 -0
  1157. package/types/eip5792.types.mjs +5 -0
  1158. package/types/ethereum-network.types.cjs +1 -0
  1159. package/types/ethereum-network.types.d.ts +65 -0
  1160. package/types/ethereum-network.types.mjs +4 -0
  1161. package/types/external-action.types.cjs +1 -0
  1162. package/types/external-action.types.d.ts +16 -0
  1163. package/types/external-action.types.mjs +4 -0
  1164. package/types/fee.types.d.ts +9 -0
  1165. package/types/generatePoints.cjs +1 -0
  1166. package/types/generatePoints.d.ts +14 -0
  1167. package/types/generatePoints.mjs +5 -0
  1168. package/types/hinkal.types.cjs +1 -0
  1169. package/types/hinkal.types.d.ts +110 -0
  1170. package/types/hinkal.types.mjs +33 -0
  1171. package/types/http.types.d.ts +8 -0
  1172. package/types/index.d.ts +53 -0
  1173. package/types/kyc.types.cjs +1 -0
  1174. package/types/kyc.types.d.ts +41 -0
  1175. package/types/kyc.types.mjs +14 -0
  1176. package/types/message.types.d.ts +5 -0
  1177. package/types/new-rewards.type.cjs +1 -0
  1178. package/types/new-rewards.type.d.ts +156 -0
  1179. package/types/new-rewards.type.mjs +7 -0
  1180. package/types/offscreen.types.cjs +1 -0
  1181. package/types/offscreen.types.d.ts +9 -0
  1182. package/types/offscreen.types.mjs +4 -0
  1183. package/types/okx.types.d.ts +57 -0
  1184. package/types/presaleReferral.types.d.ts +4 -0
  1185. package/types/proxy.types.d.ts +15 -0
  1186. package/types/referral.types.d.ts +12 -0
  1187. package/types/relayer.types.d.ts +25 -0
  1188. package/types/remote-proof.types.d.ts +15 -0
  1189. package/types/rewards.types.cjs +1 -0
  1190. package/types/rewards.types.d.ts +34 -0
  1191. package/types/rewards.types.mjs +5 -0
  1192. package/types/routing.types.cjs +1 -0
  1193. package/types/routing.types.d.ts +7 -0
  1194. package/types/routing.types.mjs +4 -0
  1195. package/types/sandbox.types.cjs +1 -0
  1196. package/types/sandbox.types.d.ts +222 -0
  1197. package/types/sandbox.types.mjs +4 -0
  1198. package/types/scheduled-transactions.types.cjs +1 -0
  1199. package/types/scheduled-transactions.types.d.ts +28 -0
  1200. package/types/scheduled-transactions.types.mjs +5 -0
  1201. package/types/session.types.d.ts +11 -0
  1202. package/types/signature.types.d.ts +10 -0
  1203. package/types/slippage.types.cjs +1 -0
  1204. package/types/slippage.types.d.ts +3 -0
  1205. package/types/slippage.types.mjs +4 -0
  1206. package/types/snark.types.d.ts +40 -0
  1207. package/types/solana.types.d.ts +77 -0
  1208. package/types/tenderly.api.types.d.ts +196 -0
  1209. package/types/token-prices.types.cjs +1 -0
  1210. package/types/token-prices.types.d.ts +7 -0
  1211. package/types/token-prices.types.mjs +9 -0
  1212. package/types/token-with-id.types.d.ts +4 -0
  1213. package/types/token.types.cjs +1 -0
  1214. package/types/token.types.d.ts +88 -0
  1215. package/types/token.types.mjs +4 -0
  1216. package/types/transactions.types.cjs +1 -0
  1217. package/types/transactions.types.d.ts +79 -0
  1218. package/types/transactions.types.mjs +39 -0
  1219. package/types/wc.types.d.ts +78 -0
  1220. package/types/with-id.types.d.ts +3 -0
  1221. package/webworker/performTaskWithWorker.cjs +1 -0
  1222. package/webworker/performTaskWithWorker.d.ts +5 -0
  1223. package/webworker/performTaskWithWorker.mjs +41 -0
  1224. package/webworker/snarkjsWorker/snarkjsWorker.types.cjs +1 -0
  1225. package/webworker/snarkjsWorker/snarkjsWorker.types.d.ts +14 -0
  1226. package/webworker/snarkjsWorker/snarkjsWorker.types.mjs +4 -0
  1227. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.cjs +1 -0
  1228. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.d.ts +1 -0
  1229. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.mjs +4 -0
  1230. package/webworker/snarkjsWorker/snarkjsWorkerLogic.cjs +1 -0
  1231. package/webworker/snarkjsWorker/snarkjsWorkerLogic.d.ts +10 -0
  1232. package/webworker/snarkjsWorker/snarkjsWorkerLogic.mjs +38 -0
  1233. package/webworker/utxoWorker/utxoWorker.types.cjs +1 -0
  1234. package/webworker/utxoWorker/utxoWorker.types.d.ts +31 -0
  1235. package/webworker/utxoWorker/utxoWorker.types.mjs +4 -0
  1236. package/webworker/utxoWorker/utxoWorkerLauncher.cjs +1 -0
  1237. package/webworker/utxoWorker/utxoWorkerLauncher.d.ts +1 -0
  1238. package/webworker/utxoWorker/utxoWorkerLauncher.mjs +4 -0
  1239. package/webworker/utxoWorker/utxoWorkerLogic.cjs +1 -0
  1240. package/webworker/utxoWorker/utxoWorkerLogic.d.ts +8 -0
  1241. package/webworker/utxoWorker/utxoWorkerLogic.mjs +77 -0
  1242. package/webworker/viteWorkerURL.constant.cjs +21 -0
  1243. package/webworker/viteWorkerURL.constant.d.ts +9 -0
  1244. package/webworker/viteWorkerURL.constant.mjs +21 -0
  1245. package/webworker/worker.registry.cjs +1 -0
  1246. package/webworker/worker.registry.d.ts +10 -0
  1247. package/webworker/worker.registry.mjs +4 -0
  1248. package/webworker/worker.types.d.ts +33 -0
  1249. package/webworker/workerErrorHandler.d.ts +1 -0
  1250. package/webworker/workerFactory.cjs +1 -0
  1251. package/webworker/workerFactory.d.ts +7 -0
  1252. package/webworker/workerFactory.mjs +42 -0
  1253. package/webworker/workerProxy.cjs +1 -0
  1254. package/webworker/workerProxy.d.ts +40 -0
  1255. package/webworker/workerProxy.mjs +54 -0
  1256. package/webworker/zkProofWorker/zkProofWorker.types.cjs +1 -0
  1257. package/webworker/zkProofWorker/zkProofWorker.types.d.ts +40 -0
  1258. package/webworker/zkProofWorker/zkProofWorker.types.mjs +4 -0
  1259. package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -0
  1260. package/webworker/zkProofWorker/zkProofWorkerLauncher.d.ts +1 -0
  1261. package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +4 -0
  1262. package/webworker/zkProofWorker/zkProofWorkerLogic.cjs +1 -0
  1263. package/webworker/zkProofWorker/zkProofWorkerLogic.d.ts +8 -0
  1264. package/webworker/zkProofWorker/zkProofWorkerLogic.mjs +52 -0
@@ -0,0 +1,35 @@
1
+ import "ethers";
2
+ import "circomlibjs-hinkal-fork";
3
+ import "libsodium-wrappers";
4
+ import "process";
5
+ import "buffer";
6
+ import "../../../constants/vite.constants.mjs";
7
+ import "../../../error-handling/error-codes.constants.mjs";
8
+ import "../../../constants/save-depths.mjs";
9
+ import { AbstractCommitmentsSnapshotService as r } from "../../event-service/evm/AbstractCommitmentsSnapshotService.mjs";
10
+ import "../../../constants/reorg-depths.constants.mjs";
11
+ import "../../../functions/utils/mutexes.utils.mjs";
12
+ import "@coral-xyz/anchor";
13
+ import "../../../constants/chains.constants.mjs";
14
+ import "@solana/web3.js";
15
+ import "../../crypto-keys/keys.mjs";
16
+ class b extends r {
17
+ snapshotsService;
18
+ constructor(t, e) {
19
+ super(t), this.snapshotsService = e;
20
+ }
21
+ async fetchSnapshot() {
22
+ const t = await this.snapshotsService.getCommitments();
23
+ return {
24
+ latestBlockNumber: t.latestBlockNumber,
25
+ merkleTree: t.merkleTree,
26
+ encryptedOutputs: t.encryptedOutputs
27
+ };
28
+ }
29
+ persistSnapshot(t) {
30
+ return Promise.resolve();
31
+ }
32
+ }
33
+ export {
34
+ b as ClientCommitmentsSnapshotService
35
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs-hinkal-fork");require("libsodium-wrappers");require("process");require("buffer");require("../../../constants/vite.constants.cjs");require("../../../error-handling/error-codes.constants.cjs");require("../../../constants/save-depths.cjs");const i=require("../../event-service/evm/AbstractNullifierSnapshotService.cjs");require("../../../constants/reorg-depths.constants.cjs");require("../../../functions/utils/mutexes.utils.cjs");require("@coral-xyz/anchor");require("../../../constants/chains.constants.cjs");require("@solana/web3.js");require("../../crypto-keys/keys.cjs");class s extends i.AbstractNullifierSnapshotService{snapshotsService;constructor(e,r){super(e),this.snapshotsService=r}async fetchSnapshot(){const e=await this.snapshotsService.getNullifiers();return{latestBlockNumber:e.latestBlockNumber,nullifiers:e.nullifiers}}persistSnapshot(e){return Promise.resolve()}}exports.ClientNullifierSnapshotService=s;
@@ -0,0 +1,8 @@
1
+ import { AbstractNullifierSnapshotService, BlockchainEventEmitter, NullifierSerializedSnapshot } from '../../event-service';
2
+ import { SnapshotFetcherService } from '../SnapshotFetcherService';
3
+ export declare class ClientNullifierSnapshotService extends AbstractNullifierSnapshotService {
4
+ private snapshotsService;
5
+ constructor(hinkalEventEmitter: BlockchainEventEmitter, snapshotsFetcher: SnapshotFetcherService);
6
+ protected fetchSnapshot(): Promise<NullifierSerializedSnapshot>;
7
+ protected persistSnapshot(_serializedSnapshot: NullifierSerializedSnapshot): Promise<unknown>;
8
+ }
@@ -0,0 +1,34 @@
1
+ import "ethers";
2
+ import "circomlibjs-hinkal-fork";
3
+ import "libsodium-wrappers";
4
+ import "process";
5
+ import "buffer";
6
+ import "../../../constants/vite.constants.mjs";
7
+ import "../../../error-handling/error-codes.constants.mjs";
8
+ import "../../../constants/save-depths.mjs";
9
+ import { AbstractNullifierSnapshotService as i } from "../../event-service/evm/AbstractNullifierSnapshotService.mjs";
10
+ import "../../../constants/reorg-depths.constants.mjs";
11
+ import "../../../functions/utils/mutexes.utils.mjs";
12
+ import "@coral-xyz/anchor";
13
+ import "../../../constants/chains.constants.mjs";
14
+ import "@solana/web3.js";
15
+ import "../../crypto-keys/keys.mjs";
16
+ class d extends i {
17
+ snapshotsService;
18
+ constructor(t, r) {
19
+ super(t), this.snapshotsService = r;
20
+ }
21
+ async fetchSnapshot() {
22
+ const t = await this.snapshotsService.getNullifiers();
23
+ return {
24
+ latestBlockNumber: t.latestBlockNumber,
25
+ nullifiers: t.nullifiers
26
+ };
27
+ }
28
+ persistSnapshot(t) {
29
+ return Promise.resolve();
30
+ }
31
+ }
32
+ export {
33
+ d as ClientNullifierSnapshotService
34
+ };
@@ -0,0 +1,8 @@
1
+ export * from './SnapshotFetcherService';
2
+ export * from './solana-snapshots/ClientSolanaCommitmentsSnapshotService';
3
+ export * from './solana-snapshots/ClientSolanaNullifierSnapshotService';
4
+ export * from './solana-snapshots/ClientSolanaAccessTokenSnapshotService';
5
+ export * from './evm-snapshots/ClientAccessTokenSnapshotService';
6
+ export * from './evm-snapshots/ClientCommitmentsSnapshotService';
7
+ export * from './evm-snapshots/ClientNullifierSnapshotService';
8
+ export * from './evm-snapshots/ClientApprovalsSnapshotService';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs-hinkal-fork");require("libsodium-wrappers");require("process");require("buffer");require("../../../constants/vite.constants.cjs");require("../../../error-handling/error-codes.constants.cjs");require("../../../constants/save-depths.cjs");require("../../../constants/reorg-depths.constants.cjs");require("../../../functions/utils/mutexes.utils.cjs");require("@coral-xyz/anchor");require("../../../constants/chains.constants.cjs");require("@solana/web3.js");require("../../crypto-keys/keys.cjs");const s=require("../../event-service/solana/AbstractSolanaAccessTokenSnapshotService.cjs"),t=require("../SnapshotFetcherService.cjs");class n extends s.AbstractSolanaAccessTokenSnapshotService{snapshotsService;constructor(r,e){super(r),this.snapshotsService=e}async fetchSnapshot(){const{chainId:r}=this.solanaBlockchainEventEmitter;this.snapshotsService||(this.snapshotsService=new t.SnapshotFetcherService(r,this.solanaBlockchainEventEmitter.programId.toString()));const e=await this.snapshotsService.getAccessTokens();return{latestBlockNumber:e.latestBlockNumber,merkleTree:e.merkleTree,senderAddresses:e.senderAddresses,senderAddressIndexMap:e.senderAddressIndexMap}}persistSnapshot(r){return Promise.resolve()}}exports.ClientSolanaAccessTokenSnapshotService=n;
@@ -0,0 +1,8 @@
1
+ import { AbstractSolanaAccessTokenSnapshotService, SolanaAccessTokenSerializedSnapshot, SolanaBlockchainEventEmitter } from '../../event-service';
2
+ import { SnapshotFetcherService } from '../SnapshotFetcherService';
3
+ export declare class ClientSolanaAccessTokenSnapshotService extends AbstractSolanaAccessTokenSnapshotService {
4
+ private snapshotsService;
5
+ constructor(accessTokenEventEmitter: SolanaBlockchainEventEmitter, snapshotFetcher: SnapshotFetcherService);
6
+ protected fetchSnapshot(): Promise<SolanaAccessTokenSerializedSnapshot>;
7
+ protected persistSnapshot(_serializedSnapshot: SolanaAccessTokenSerializedSnapshot): Promise<unknown>;
8
+ }
@@ -0,0 +1,42 @@
1
+ import "ethers";
2
+ import "circomlibjs-hinkal-fork";
3
+ import "libsodium-wrappers";
4
+ import "process";
5
+ import "buffer";
6
+ import "../../../constants/vite.constants.mjs";
7
+ import "../../../error-handling/error-codes.constants.mjs";
8
+ import "../../../constants/save-depths.mjs";
9
+ import "../../../constants/reorg-depths.constants.mjs";
10
+ import "../../../functions/utils/mutexes.utils.mjs";
11
+ import "@coral-xyz/anchor";
12
+ import "../../../constants/chains.constants.mjs";
13
+ import "@solana/web3.js";
14
+ import "../../crypto-keys/keys.mjs";
15
+ import { AbstractSolanaAccessTokenSnapshotService as t } from "../../event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs";
16
+ import { SnapshotFetcherService as r } from "../SnapshotFetcherService.mjs";
17
+ class x extends t {
18
+ snapshotsService;
19
+ constructor(s, e) {
20
+ super(s), this.snapshotsService = e;
21
+ }
22
+ async fetchSnapshot() {
23
+ const { chainId: s } = this.solanaBlockchainEventEmitter;
24
+ this.snapshotsService || (this.snapshotsService = new r(
25
+ s,
26
+ this.solanaBlockchainEventEmitter.programId.toString()
27
+ ));
28
+ const e = await this.snapshotsService.getAccessTokens();
29
+ return {
30
+ latestBlockNumber: e.latestBlockNumber,
31
+ merkleTree: e.merkleTree,
32
+ senderAddresses: e.senderAddresses,
33
+ senderAddressIndexMap: e.senderAddressIndexMap
34
+ };
35
+ }
36
+ persistSnapshot(s) {
37
+ return Promise.resolve();
38
+ }
39
+ }
40
+ export {
41
+ x as ClientSolanaAccessTokenSnapshotService
42
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs-hinkal-fork");require("libsodium-wrappers");require("process");require("buffer");require("../../../constants/vite.constants.cjs");require("../../../error-handling/error-codes.constants.cjs");require("../../../constants/save-depths.cjs");require("../../../constants/reorg-depths.constants.cjs");require("../../../functions/utils/mutexes.utils.cjs");require("@coral-xyz/anchor");require("../../../constants/chains.constants.cjs");const t=require("../../event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs");require("@solana/web3.js");class s extends t.AbstractSolanaCommitmentsSnapshotService{snapshotsService;constructor(e,r){super(e),this.snapshotsService=r}async fetchSnapshot(){const e=await this.snapshotsService.getCommitments();return{latestBlockNumber:e.latestBlockNumber,merkleTree:e.merkleTree,encryptedOutputs:e.encryptedOutputs}}persistSnapshot(e){return Promise.resolve()}}exports.ClientSolanaCommitmentsSnapshotService=s;
@@ -0,0 +1,8 @@
1
+ import { AbstractSolanaCommitmentsSnapshotService, SolanaBlockchainEventEmitter, SolanaCommitmentsSerializedSnapshot } from '../../event-service';
2
+ import { SnapshotFetcherService } from '../SnapshotFetcherService';
3
+ export declare class ClientSolanaCommitmentsSnapshotService extends AbstractSolanaCommitmentsSnapshotService {
4
+ private snapshotsService;
5
+ constructor(commitmentsEventEmitter: SolanaBlockchainEventEmitter, snapshotFetcher: SnapshotFetcherService);
6
+ protected fetchSnapshot(): Promise<SolanaCommitmentsSerializedSnapshot>;
7
+ protected persistSnapshot(_serializedSnapshot: SolanaCommitmentsSerializedSnapshot): Promise<unknown>;
8
+ }
@@ -0,0 +1,34 @@
1
+ import "ethers";
2
+ import "circomlibjs-hinkal-fork";
3
+ import "libsodium-wrappers";
4
+ import "process";
5
+ import "buffer";
6
+ import "../../../constants/vite.constants.mjs";
7
+ import "../../../error-handling/error-codes.constants.mjs";
8
+ import "../../../constants/save-depths.mjs";
9
+ import "../../../constants/reorg-depths.constants.mjs";
10
+ import "../../../functions/utils/mutexes.utils.mjs";
11
+ import "@coral-xyz/anchor";
12
+ import "../../../constants/chains.constants.mjs";
13
+ import { AbstractSolanaCommitmentsSnapshotService as r } from "../../event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs";
14
+ import "@solana/web3.js";
15
+ class C extends r {
16
+ snapshotsService;
17
+ constructor(t, e) {
18
+ super(t), this.snapshotsService = e;
19
+ }
20
+ async fetchSnapshot() {
21
+ const t = await this.snapshotsService.getCommitments();
22
+ return {
23
+ latestBlockNumber: t.latestBlockNumber,
24
+ merkleTree: t.merkleTree,
25
+ encryptedOutputs: t.encryptedOutputs
26
+ };
27
+ }
28
+ persistSnapshot(t) {
29
+ return Promise.resolve();
30
+ }
31
+ }
32
+ export {
33
+ C as ClientSolanaCommitmentsSnapshotService
34
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs-hinkal-fork");require("libsodium-wrappers");require("process");require("buffer");require("../../../constants/vite.constants.cjs");require("../../../error-handling/error-codes.constants.cjs");require("../../../constants/save-depths.cjs");require("../../../constants/reorg-depths.constants.cjs");require("../../../functions/utils/mutexes.utils.cjs");require("@coral-xyz/anchor");require("../../../constants/chains.constants.cjs");const i=require("../../event-service/solana/AbstractSolanaNullifierSnapshotService.cjs");require("@solana/web3.js");require("../../crypto-keys/keys.cjs");class s extends i.AbstractSolanaNullifierSnapshotService{snapshotsService;constructor(e,r){super(e),this.snapshotsService=r}async fetchSnapshot(){const e=await this.snapshotsService.getNullifiers();return{latestBlockNumber:e.latestBlockNumber,nullifiers:e.nullifiers}}persistSnapshot(e){return Promise.resolve()}}exports.ClientSolanaNullifierSnapshotService=s;
@@ -0,0 +1,8 @@
1
+ import { AbstractSolanaNullifierSnapshotService, SolanaBlockchainEventEmitter, SolanaNullifierSerializedSnapshot } from '../../event-service';
2
+ import { SnapshotFetcherService } from '../SnapshotFetcherService';
3
+ export declare class ClientSolanaNullifierSnapshotService extends AbstractSolanaNullifierSnapshotService {
4
+ private snapshotsService;
5
+ constructor(nullifierEventEmitter: SolanaBlockchainEventEmitter, snapshotFetcher: SnapshotFetcherService);
6
+ protected fetchSnapshot(): Promise<SolanaNullifierSerializedSnapshot>;
7
+ protected persistSnapshot(_serializedSnapshot: SolanaNullifierSerializedSnapshot): Promise<unknown>;
8
+ }
@@ -0,0 +1,34 @@
1
+ import "ethers";
2
+ import "circomlibjs-hinkal-fork";
3
+ import "libsodium-wrappers";
4
+ import "process";
5
+ import "buffer";
6
+ import "../../../constants/vite.constants.mjs";
7
+ import "../../../error-handling/error-codes.constants.mjs";
8
+ import "../../../constants/save-depths.mjs";
9
+ import "../../../constants/reorg-depths.constants.mjs";
10
+ import "../../../functions/utils/mutexes.utils.mjs";
11
+ import "@coral-xyz/anchor";
12
+ import "../../../constants/chains.constants.mjs";
13
+ import { AbstractSolanaNullifierSnapshotService as i } from "../../event-service/solana/AbstractSolanaNullifierSnapshotService.mjs";
14
+ import "@solana/web3.js";
15
+ import "../../crypto-keys/keys.mjs";
16
+ class d extends i {
17
+ snapshotsService;
18
+ constructor(t, r) {
19
+ super(t), this.snapshotsService = r;
20
+ }
21
+ async fetchSnapshot() {
22
+ const t = await this.snapshotsService.getNullifiers();
23
+ return {
24
+ latestBlockNumber: t.latestBlockNumber,
25
+ nullifiers: t.nullifiers
26
+ };
27
+ }
28
+ persistSnapshot(t) {
29
+ return Promise.resolve();
30
+ }
31
+ }
32
+ export {
33
+ d as ClientSolanaNullifierSnapshotService
34
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../../constants/protocol.constants.cjs"),_=require("../../constants/chains.constants.cjs");class b{static isBeefyStakeToken=t=>t.name.includes("-Boost")&&t.symbol.includes("-Boost");static isStakeToken=t=>this.isBeefyStakeToken(t);static isAaveToken=t=>t.aaveToken;static isKinzaToken=t=>t.name.startsWith("Kinza");static isPotentiallyVolatile=t=>t.erc20TokenAddress===k.zeroAddress?!1:t.isVolatile||!_.isSolanaLike(t.chainId)&&(t.balanceStorageOffset===void 0||t.allowanceStorageOffset===void 0);static isPotentiallySpamToken(t){const{name:s,symbol:o}=t,e=`${s} ${o}`,i=/(?:https?:\/\/|www\.)/i,n=/\.(?:com|io|app|org|net|co|xyz|link|site|top|in|ru|cn|me|biz|info|online|club|tech|to|cloud)(?=[^\w]|$)/i,c=/\b(?:t\.me|discord\.(?:gg|com)|twitter\.com|x\.com|telegram\.(?:me|org))\b/i,a=/@[^\s]+\.[^\s]+/i,r=/\p{Extended_Pictographic}/u,l=/[\u{1F1E6}-\u{1F1FF}]{2}/u,u=/[#*0-9]\uFE0F?\u20E3/u,E=i.test(e),d=n.test(e),m=c.test(e),T=a.test(e),S=r.test(e)||l.test(e)||u.test(e);return E||d||m||T||S}}exports.TokenChecker=b;
@@ -0,0 +1,9 @@
1
+ import { ERC20Token } from '../../types/token.types';
2
+ export declare class TokenChecker {
3
+ static isBeefyStakeToken: (token: ERC20Token) => boolean;
4
+ static isStakeToken: (token: ERC20Token) => boolean;
5
+ static isAaveToken: (token: ERC20Token) => boolean | undefined;
6
+ static isKinzaToken: (token: ERC20Token) => boolean;
7
+ static isPotentiallyVolatile: (token: ERC20Token) => boolean;
8
+ static isPotentiallySpamToken(token: ERC20Token): boolean;
9
+ }
@@ -0,0 +1,16 @@
1
+ import { zeroAddress as S } from "../../constants/protocol.constants.mjs";
2
+ import { isSolanaLike as k } from "../../constants/chains.constants.mjs";
3
+ class g {
4
+ static isBeefyStakeToken = (t) => t.name.includes("-Boost") && t.symbol.includes("-Boost");
5
+ static isStakeToken = (t) => this.isBeefyStakeToken(t);
6
+ static isAaveToken = (t) => t.aaveToken;
7
+ static isKinzaToken = (t) => t.name.startsWith("Kinza");
8
+ static isPotentiallyVolatile = (t) => t.erc20TokenAddress === S ? !1 : t.isVolatile || !k(t.chainId) && (t.balanceStorageOffset === void 0 || t.allowanceStorageOffset === void 0);
9
+ static isPotentiallySpamToken(t) {
10
+ const { name: e, symbol: o } = t, s = `${e} ${o}`, i = /(?:https?:\/\/|www\.)/i, n = /\.(?:com|io|app|org|net|co|xyz|link|site|top|in|ru|cn|me|biz|info|online|club|tech|to|cloud)(?=[^\w]|$)/i, c = /\b(?:t\.me|discord\.(?:gg|com)|twitter\.com|x\.com|telegram\.(?:me|org))\b/i, a = /@[^\s]+\.[^\s]+/i, r = /\p{Extended_Pictographic}/u, l = /[\u{1F1E6}-\u{1F1FF}]{2}/u, m = /[#*0-9]\uFE0F?\u20E3/u, E = i.test(s), u = n.test(s), d = c.test(s), T = a.test(s), f = r.test(s) || l.test(s) || m.test(s);
11
+ return E || u || d || T || f;
12
+ }
13
+ }
14
+ export {
15
+ g as TokenChecker
16
+ };
@@ -0,0 +1 @@
1
+ export * from './TokenChecker';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var N=(W=>(W[W.DEPOSIT=0]="DEPOSIT",W[W.WITHDRAW=1]="WITHDRAW",W[W.SWAP=2]="SWAP",W[W.UNKNOWN=3]="UNKNOWN",W))(N||{});exports.TransactionType=N;
@@ -0,0 +1,16 @@
1
+ import { TokenBalance } from '../../../types';
2
+ export declare enum TransactionType {
3
+ DEPOSIT = 0,
4
+ WITHDRAW = 1,
5
+ SWAP = 2,
6
+ UNKNOWN = 3
7
+ }
8
+ export interface TransactionDetails {
9
+ type: TransactionType;
10
+ }
11
+ export type HistoryTokenBalance = TokenBalance | {
12
+ token: {
13
+ erc20TokenAddress: string;
14
+ };
15
+ balance: bigint;
16
+ };
@@ -0,0 +1,4 @@
1
+ var N = /* @__PURE__ */ ((W) => (W[W.DEPOSIT = 0] = "DEPOSIT", W[W.WITHDRAW = 1] = "WITHDRAW", W[W.SWAP = 2] = "SWAP", W[W.UNKNOWN = 3] = "UNKNOWN", W))(N || {});
2
+ export {
3
+ N as TransactionType
4
+ };
@@ -0,0 +1 @@
1
+ export * from './history/history.types';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../constants/protocol.constants.cjs"),h=require("../../crypto/poseidon.cjs"),A=require("../../functions/web3/etherFunctions.cjs"),l=require("../crypto-keys/keys.cjs"),p=require("../../functions/utils/time.utils.cjs"),g=require("../../constants/chains.constants.cjs");class n{amount;erc20TokenAddress;mintAddress;timeStamp;tokenId;shieldedPrivateKey;randomization;stealthAddress;encryptionKey;commitment;nullifier;isBlocked;constructor({amount:t,erc20TokenAddress:e,mintAddress:o,timeStamp:i,tokenId:r,shieldedPrivateKey:s,randomization:a,stealthAddress:c,encryptionKey:u,commitment:y=void 0,nullifier:f=void 0,isBlocked:k=!1,enableLogs:m=!1}){this.amount=t,this.erc20TokenAddress=e,this.mintAddress=o,this.timeStamp=i??p.getCurrentTimeInSeconds().toString(),this.tokenId=r??0,this.shieldedPrivateKey=s,m&&console.log({randomization:a}),this.randomization=a??n.findCorrectRandomization(A.randomBigInt(31),s),m&&console.log("randomization assigned"),this.stealthAddress=c,this.encryptionKey=u,this.commitment=y,this.nullifier=f,this.isBlocked=k}static createFrom(t,e){return new n({...t.getConstructableParams(),nullifier:void 0,commitment:void 0,...e})}getConstructableParams(){return{amount:this.amount,erc20TokenAddress:this.erc20TokenAddress,mintAddress:this.mintAddress,timeStamp:this.timeStamp,shieldedPrivateKey:this.shieldedPrivateKey,randomization:this.randomization,stealthAddress:this.stealthAddress,encryptionKey:this.encryptionKey,tokenId:this.tokenId,commitment:this.commitment,nullifier:this.nullifier,isBlocked:this.isBlocked}}getBasicUtxoParams(){return{amount:this.amount,erc20TokenAddress:this.erc20TokenAddress,mintAddress:this.mintAddress,timeStamp:this.timeStamp,randomization:this.randomization,stealthAddress:this.stealthAddress,tokenId:this.tokenId,commitment:this.commitment,nullifier:this.nullifier,isBlocked:this.isBlocked}}getCommitment(){if(!this.commitment){const t=[this.amount,this.erc20TokenAddress,BigInt(this.getStealthAddress()),this.timeStamp];this.tokenId>0&&t.push(this.tokenId.toString()),this.commitment=h.poseidonHash(...t)}return this.commitment}getNullifier(){if(!this.nullifier){if(!this.shieldedPrivateKey)throw new Error("No Nullifiers if private key is not provided");const t=h.poseidonHash(this.shieldedPrivateKey,this.getCommitment());this.nullifier=h.poseidonHash(this.commitment,t)}return this.nullifier}getStealthAddress(){if(!this.stealthAddress){if(!this.shieldedPrivateKey)throw Error("No stealth address in UTXO if private key is not provided");const t=l.UserKeys.getStealthAddress(this.randomization,this.shieldedPrivateKey);this.stealthAddress=t}return this.stealthAddress}getEncryptionKey(){if(!this.shieldedPrivateKey){if(!this.encryptionKey)throw Error("No encryption key provided in UTXO");return this.encryptionKey}return l.UserKeys.getEncryptionKeyPair(this.shieldedPrivateKey).publicKey}static findCorrectRandomization(t,e){if(console.log("initialRandomization",t,e),!e)throw Error("No Private Shielded Key Provided");const o=BigInt(e)%d.CIRCOM_P;let i,r,s=0n;do i=t*10n**s%d.CIRCOM_P,r=i*o%d.CIRCOM_P,s+=1n;while(r>=2n**253n||i>=2n**253n);return i}getTokenAddress(t){const e=g.isSolanaLike(t)?this.mintAddress:this.erc20TokenAddress;if(!e)throw new Error("No token address provided");return e}}exports.Utxo=n;
@@ -0,0 +1,64 @@
1
+ export type IUtxoConstructor<T = bigint> = {
2
+ amount: T;
3
+ erc20TokenAddress: string;
4
+ mintAddress?: string;
5
+ timeStamp?: string;
6
+ shieldedPrivateKey?: string;
7
+ randomization?: T;
8
+ stealthAddress?: string;
9
+ encryptionKey?: string;
10
+ tokenId?: number;
11
+ isBlocked?: boolean;
12
+ commitment?: string;
13
+ nullifier?: string;
14
+ enableLogs?: boolean;
15
+ };
16
+ /**
17
+ * UTXO class for transactions
18
+ */
19
+ export declare class Utxo {
20
+ amount: bigint;
21
+ erc20TokenAddress: string;
22
+ mintAddress?: string;
23
+ timeStamp: string;
24
+ tokenId: number;
25
+ shieldedPrivateKey?: string;
26
+ randomization: bigint;
27
+ stealthAddress?: string;
28
+ encryptionKey?: string;
29
+ commitment?: string;
30
+ nullifier?: string;
31
+ isBlocked: boolean;
32
+ /**
33
+ * creates new UTXO instance
34
+ * @param amount UTXO amount
35
+ * @param erc20TokenAddress contract address of ERC-20/ERC-721 token
36
+ * @param timeStamp timestamp
37
+ * @param tokenId tokenId
38
+ * @param randomization randomization parameter
39
+ * @param stealthAddress stealth address as a parameter(e.g. in case of transfers we will not know private key and randomization of payee
40
+ * @param encryptionKey encryption public key
41
+ * @param shieldedPrivateKey private key for nullification
42
+ * @param commitment [optional] commitment value if already computed
43
+ * @param nullifier [optional] nullifier value if already computed
44
+ */
45
+ constructor({ amount, erc20TokenAddress, mintAddress, timeStamp, tokenId, shieldedPrivateKey, randomization, stealthAddress, encryptionKey, commitment, nullifier, isBlocked, enableLogs, }: IUtxoConstructor);
46
+ static createFrom(utxoToCreateFrom: Utxo, patch: Partial<IUtxoConstructor>): Utxo;
47
+ getConstructableParams(): IUtxoConstructor;
48
+ getBasicUtxoParams(): IUtxoConstructor;
49
+ /**
50
+ * @returns commitment hash of the UTXO instance
51
+ */
52
+ getCommitment(): string;
53
+ /**
54
+ * @returns nullifier hash of the UTXO instance
55
+ */
56
+ getNullifier(): string;
57
+ /**
58
+ * @returns stealth address from randomization and private shieldedPrivateKey
59
+ */
60
+ getStealthAddress(): string;
61
+ getEncryptionKey(): string;
62
+ static findCorrectRandomization(initialRandomization: bigint, privateKey?: string): bigint;
63
+ getTokenAddress(chainId: number): string;
64
+ }
@@ -0,0 +1,153 @@
1
+ import { CIRCOM_P as o } from "../../constants/protocol.constants.mjs";
2
+ import { poseidonHash as d } from "../../crypto/poseidon.mjs";
3
+ import { randomBigInt as A } from "../../functions/web3/etherFunctions.mjs";
4
+ import { UserKeys as l } from "../crypto-keys/keys.mjs";
5
+ import { getCurrentTimeInSeconds as k } from "../../functions/utils/time.utils.mjs";
6
+ import { isSolanaLike as g } from "../../constants/chains.constants.mjs";
7
+ class h {
8
+ amount;
9
+ erc20TokenAddress;
10
+ mintAddress;
11
+ timeStamp;
12
+ tokenId;
13
+ shieldedPrivateKey;
14
+ // 1) if it's own UTXO one provides private key and randomization -> computes stealth address and and eKey
15
+ randomization;
16
+ stealthAddress;
17
+ // 2) if it's other's utxo, stealth address and encryption key should be provided
18
+ encryptionKey;
19
+ commitment;
20
+ // computed
21
+ nullifier;
22
+ // computed
23
+ isBlocked;
24
+ /**
25
+ * creates new UTXO instance
26
+ * @param amount UTXO amount
27
+ * @param erc20TokenAddress contract address of ERC-20/ERC-721 token
28
+ * @param timeStamp timestamp
29
+ * @param tokenId tokenId
30
+ * @param randomization randomization parameter
31
+ * @param stealthAddress stealth address as a parameter(e.g. in case of transfers we will not know private key and randomization of payee
32
+ * @param encryptionKey encryption public key
33
+ * @param shieldedPrivateKey private key for nullification
34
+ * @param commitment [optional] commitment value if already computed
35
+ * @param nullifier [optional] nullifier value if already computed
36
+ */
37
+ constructor({
38
+ amount: t,
39
+ erc20TokenAddress: e,
40
+ mintAddress: n,
41
+ timeStamp: i,
42
+ tokenId: r,
43
+ shieldedPrivateKey: s,
44
+ randomization: m,
45
+ stealthAddress: c,
46
+ encryptionKey: u,
47
+ commitment: f = void 0,
48
+ nullifier: p = void 0,
49
+ isBlocked: y = !1,
50
+ enableLogs: a = !1
51
+ }) {
52
+ this.amount = t, this.erc20TokenAddress = e, this.mintAddress = n, this.timeStamp = i ?? k().toString(), this.tokenId = r ?? 0, this.shieldedPrivateKey = s, a && console.log({ randomization: m }), this.randomization = m ?? h.findCorrectRandomization(A(31), s), a && console.log("randomization assigned"), this.stealthAddress = c, this.encryptionKey = u, this.commitment = f, this.nullifier = p, this.isBlocked = y;
53
+ }
54
+ static createFrom(t, e) {
55
+ return new h({
56
+ ...t.getConstructableParams(),
57
+ nullifier: void 0,
58
+ commitment: void 0,
59
+ ...e
60
+ });
61
+ }
62
+ getConstructableParams() {
63
+ return {
64
+ amount: this.amount,
65
+ erc20TokenAddress: this.erc20TokenAddress,
66
+ mintAddress: this.mintAddress,
67
+ timeStamp: this.timeStamp,
68
+ shieldedPrivateKey: this.shieldedPrivateKey,
69
+ randomization: this.randomization,
70
+ stealthAddress: this.stealthAddress,
71
+ encryptionKey: this.encryptionKey,
72
+ tokenId: this.tokenId,
73
+ commitment: this.commitment,
74
+ nullifier: this.nullifier,
75
+ isBlocked: this.isBlocked
76
+ };
77
+ }
78
+ getBasicUtxoParams() {
79
+ return {
80
+ amount: this.amount,
81
+ erc20TokenAddress: this.erc20TokenAddress,
82
+ mintAddress: this.mintAddress,
83
+ timeStamp: this.timeStamp,
84
+ randomization: this.randomization,
85
+ stealthAddress: this.stealthAddress,
86
+ tokenId: this.tokenId,
87
+ commitment: this.commitment,
88
+ nullifier: this.nullifier,
89
+ isBlocked: this.isBlocked
90
+ };
91
+ }
92
+ /**
93
+ * @returns commitment hash of the UTXO instance
94
+ */
95
+ getCommitment() {
96
+ if (!this.commitment) {
97
+ const t = [this.amount, this.erc20TokenAddress, BigInt(this.getStealthAddress()), this.timeStamp];
98
+ this.tokenId > 0 && t.push(this.tokenId.toString()), this.commitment = d(...t);
99
+ }
100
+ return this.commitment;
101
+ }
102
+ /**
103
+ * @returns nullifier hash of the UTXO instance
104
+ */
105
+ getNullifier() {
106
+ if (!this.nullifier) {
107
+ if (!this.shieldedPrivateKey)
108
+ throw new Error("No Nullifiers if private key is not provided");
109
+ const t = d(this.shieldedPrivateKey, this.getCommitment());
110
+ this.nullifier = d(this.commitment, t);
111
+ }
112
+ return this.nullifier;
113
+ }
114
+ /**
115
+ * @returns stealth address from randomization and private shieldedPrivateKey
116
+ */
117
+ getStealthAddress() {
118
+ if (!this.stealthAddress) {
119
+ if (!this.shieldedPrivateKey)
120
+ throw Error("No stealth address in UTXO if private key is not provided");
121
+ const t = l.getStealthAddress(this.randomization, this.shieldedPrivateKey);
122
+ this.stealthAddress = t;
123
+ }
124
+ return this.stealthAddress;
125
+ }
126
+ getEncryptionKey() {
127
+ if (!this.shieldedPrivateKey) {
128
+ if (!this.encryptionKey)
129
+ throw Error("No encryption key provided in UTXO");
130
+ return this.encryptionKey;
131
+ }
132
+ return l.getEncryptionKeyPair(this.shieldedPrivateKey).publicKey;
133
+ }
134
+ static findCorrectRandomization(t, e) {
135
+ if (console.log("initialRandomization", t, e), !e)
136
+ throw Error("No Private Shielded Key Provided");
137
+ const n = BigInt(e) % o;
138
+ let i, r, s = 0n;
139
+ do
140
+ i = t * 10n ** s % o, r = i * n % o, s += 1n;
141
+ while (r >= 2n ** 253n || i >= 2n ** 253n);
142
+ return i;
143
+ }
144
+ getTokenAddress(t) {
145
+ const e = g(t) ? this.mintAddress : this.erc20TokenAddress;
146
+ if (!e)
147
+ throw new Error("No token address provided");
148
+ return e;
149
+ }
150
+ }
151
+ export {
152
+ h as Utxo
153
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class o extends Error{amount;constructor(r,t){super(t),this.amount=r}}exports.ErrorWithAmount=o;
@@ -0,0 +1,4 @@
1
+ export declare class ErrorWithAmount extends Error {
2
+ amount: number;
3
+ constructor(providedAmount: number, message: string);
4
+ }
@@ -0,0 +1,9 @@
1
+ class s extends Error {
2
+ amount;
3
+ constructor(r, t) {
4
+ super(t), this.amount = r;
5
+ }
6
+ }
7
+ export {
8
+ s as ErrorWithAmount
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class e extends Error{tx;constructor(r,t){super(r),this.tx=t}}exports.ErrorWithRelayerTransaction=e;
@@ -0,0 +1,5 @@
1
+ import { RelayerTransaction } from '../../types/relayer.types';
2
+ export declare class ErrorWithRelayerTransaction extends Error {
3
+ tx: RelayerTransaction | undefined;
4
+ constructor(message: string, tx: RelayerTransaction | undefined);
5
+ }
@@ -0,0 +1,9 @@
1
+ class e extends Error {
2
+ tx;
3
+ constructor(r, t) {
4
+ super(r), this.tx = t;
5
+ }
6
+ }
7
+ export {
8
+ e as ErrorWithRelayerTransaction
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../error-codes.constants.cjs");class t extends Error{constructor(r){super(e.transactionErrorCodes.FEES_OVER_TRANSACTION_VALUE),this.data=r,this.name=this.constructor.name}}exports.FeeOverTransactionValueError=t;
@@ -0,0 +1,9 @@
1
+ import { ERC20Token } from '../../types';
2
+ export interface FeeOverTransactionValueErrorData {
3
+ totalFeeWEI: bigint;
4
+ feeUnit: ERC20Token | undefined;
5
+ }
6
+ export declare class FeeOverTransactionValueError extends Error {
7
+ data: FeeOverTransactionValueErrorData;
8
+ constructor(data: FeeOverTransactionValueErrorData);
9
+ }
@@ -0,0 +1,9 @@
1
+ import { transactionErrorCodes as t } from "../error-codes.constants.mjs";
2
+ class e extends Error {
3
+ constructor(r) {
4
+ super(t.FEES_OVER_TRANSACTION_VALUE), this.data = r, this.name = this.constructor.name;
5
+ }
6
+ }
7
+ export {
8
+ e as FeeOverTransactionValueError
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class e extends Error{errorStructure;constructor(r){super(r.error),this.errorStructure=r,this.name=this.constructor.name}}exports.SimulationFailureError=e;
@@ -0,0 +1,10 @@
1
+ export declare class SimulationFailureError extends Error {
2
+ errorStructure: {
3
+ error: string;
4
+ errorReason: string;
5
+ };
6
+ constructor(data: {
7
+ error: string;
8
+ errorReason: string;
9
+ });
10
+ }
@@ -0,0 +1,9 @@
1
+ class e extends Error {
2
+ errorStructure;
3
+ constructor(r) {
4
+ super(r.error), this.errorStructure = r, this.name = this.constructor.name;
5
+ }
6
+ }
7
+ export {
8
+ e as SimulationFailureError
9
+ };