@hinkal/common 0.2.21 → 0.2.23

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 (603) hide show
  1. package/API/API.cjs +1 -1
  2. package/API/API.d.ts +14 -14
  3. package/API/API.mjs +88 -87
  4. package/API/admin-calls.cjs +1 -1
  5. package/API/admin-calls.d.ts +1 -1
  6. package/API/admin-calls.mjs +4 -4
  7. package/API/ai-calls.cjs +1 -0
  8. package/API/ai-calls.d.ts +17 -0
  9. package/API/ai-calls.mjs +21 -0
  10. package/API/callLifiAPI.cjs +1 -1
  11. package/API/callLifiAPI.d.ts +1 -1
  12. package/API/callLifiAPI.mjs +5 -5
  13. package/API/callMonitor.cjs +1 -1
  14. package/API/callMonitor.d.ts +1 -1
  15. package/API/callMonitor.mjs +7 -7
  16. package/API/callOdosAPI.cjs +1 -1
  17. package/API/callOdosAPI.mjs +11 -11
  18. package/API/callOkxAPI.cjs +1 -1
  19. package/API/callOkxAPI.d.ts +1 -1
  20. package/API/callOkxAPI.mjs +5 -5
  21. package/API/callOneInchAPI.cjs +1 -1
  22. package/API/callOneInchAPI.mjs +11 -10
  23. package/API/callRelayer.cjs +1 -1
  24. package/API/callRelayer.d.ts +5 -6
  25. package/API/callRelayer.mjs +11 -11
  26. package/API/checkRisk.cjs +1 -1
  27. package/API/checkRisk.d.ts +1 -1
  28. package/API/checkRisk.mjs +4 -4
  29. package/API/deposit-and-withdraw-status-calls.cjs +1 -0
  30. package/API/deposit-and-withdraw-status-calls.d.ts +20 -0
  31. package/API/deposit-and-withdraw-status-calls.mjs +18 -0
  32. package/API/duneAPI.cjs +1 -0
  33. package/API/duneAPI.d.ts +11 -0
  34. package/API/duneAPI.mjs +25 -0
  35. package/API/enclaveCalls.cjs +1 -1
  36. package/API/enclaveCalls.mjs +4 -5
  37. package/API/fetchCommitmentsCache.cjs +1 -1
  38. package/API/fetchCommitmentsCache.mjs +9 -9
  39. package/API/get-token-data.cjs +1 -1
  40. package/API/get-token-data.d.ts +1 -1
  41. package/API/get-token-data.mjs +5 -5
  42. package/API/getBridgeProtocols.cjs +1 -0
  43. package/API/getBridgeProtocols.d.ts +7 -0
  44. package/API/getBridgeProtocols.mjs +8 -0
  45. package/API/getGasEstimates.cjs +1 -1
  46. package/API/getGasEstimates.mjs +9 -9
  47. package/API/getLifiStatus.cjs +1 -0
  48. package/API/getLifiStatus.d.ts +24 -0
  49. package/API/getLifiStatus.mjs +15 -0
  50. package/API/getRelayerURL.cjs +1 -0
  51. package/API/getRelayerURL.d.ts +1 -0
  52. package/API/getRelayerURL.mjs +10 -0
  53. package/API/getServerURL.cjs +1 -1
  54. package/API/getServerURL.d.ts +3 -3
  55. package/API/getServerURL.mjs +67 -51
  56. package/API/getTokenPrice.cjs +1 -1
  57. package/API/getTokenPrice.d.ts +0 -5
  58. package/API/getTokenPrice.mjs +7 -14
  59. package/API/index.d.ts +3 -1
  60. package/API/is-tx-stateless.cjs +1 -1
  61. package/API/is-tx-stateless.d.ts +1 -1
  62. package/API/is-tx-stateless.mjs +12 -10
  63. package/API/kycCalls.cjs +1 -1
  64. package/API/kycCalls.d.ts +8 -4
  65. package/API/kycCalls.mjs +26 -23
  66. package/API/passwordCalls.cjs +1 -0
  67. package/API/passwordCalls.d.ts +9 -0
  68. package/API/passwordCalls.mjs +13 -0
  69. package/API/proxyAccountsCalls.cjs +1 -1
  70. package/API/proxyAccountsCalls.d.ts +2 -7
  71. package/API/proxyAccountsCalls.mjs +21 -27
  72. package/API/relayCalls.cjs +1 -1
  73. package/API/relayCalls.mjs +4 -4
  74. package/API/restoreSnapshots.cjs +1 -0
  75. package/API/restoreSnapshots.d.ts +1 -0
  76. package/API/restoreSnapshots.mjs +10 -0
  77. package/API/scheduled-transactions-calls.cjs +1 -1
  78. package/API/scheduled-transactions-calls.d.ts +9 -1
  79. package/API/scheduled-transactions-calls.mjs +9 -5
  80. package/API/simulate-batch-tx.cjs +1 -1
  81. package/API/simulate-batch-tx.d.ts +2 -2
  82. package/API/simulate-batch-tx.mjs +6 -7
  83. package/API/solana-calls.cjs +1 -1
  84. package/API/solana-calls.d.ts +3 -6
  85. package/API/solana-calls.mjs +15 -15
  86. package/API/temporaryWalletCalls.cjs +1 -1
  87. package/API/temporaryWalletCalls.mjs +19 -13
  88. package/API/token-calls.cjs +1 -1
  89. package/API/token-calls.mjs +5 -6
  90. package/README.md +64 -256
  91. package/constants/activity.constants.cjs +1 -1
  92. package/constants/activity.constants.mjs +0 -1
  93. package/constants/addresses.constants.cjs +1 -1
  94. package/constants/addresses.constants.mjs +9 -10
  95. package/constants/chains.constants.cjs +1 -1
  96. package/constants/chains.constants.d.ts +6 -0
  97. package/constants/chains.constants.mjs +52 -58
  98. package/constants/coingecko.constants.cjs +1 -1
  99. package/constants/coingecko.constants.d.ts +0 -1
  100. package/constants/coingecko.constants.mjs +10 -11
  101. package/constants/contracts.constants.cjs +1 -1
  102. package/constants/contracts.constants.d.ts +3 -3
  103. package/constants/contracts.constants.mjs +29 -29
  104. package/constants/deploy-data/deploy-data-solana.json.cjs +1 -1
  105. package/constants/deploy-data/deploy-data-solana.json.mjs +2 -28
  106. package/constants/function-signatures.constants.cjs +1 -1
  107. package/constants/function-signatures.constants.d.ts +1 -0
  108. package/constants/function-signatures.constants.mjs +4 -3
  109. package/constants/kyc.constants.cjs +1 -1
  110. package/constants/kyc.constants.mjs +40 -39
  111. package/constants/mediaUrls.constants.cjs +1 -1
  112. package/constants/mediaUrls.constants.d.ts +0 -1
  113. package/constants/mediaUrls.constants.mjs +1 -2
  114. package/constants/permit2.constants.cjs +1 -1
  115. package/constants/permit2.constants.d.ts +1 -0
  116. package/constants/permit2.constants.mjs +11 -10
  117. package/constants/server.constants.cjs +1 -1
  118. package/constants/server.constants.d.ts +123 -19
  119. package/constants/server.constants.mjs +138 -35
  120. package/constants/tasks.constants.cjs +1 -1
  121. package/constants/tasks.constants.mjs +4 -5
  122. package/constants/vite.constants.cjs +1 -1
  123. package/constants/vite.constants.mjs +13 -36
  124. package/crypto/poseidon.cjs +1 -1
  125. package/crypto/poseidon.mjs +10 -10
  126. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.cjs +1 -1
  127. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.mjs +86 -83
  128. package/data-structures/Hinkal/Hinkal.cjs +1 -1
  129. package/data-structures/Hinkal/Hinkal.d.ts +56 -45
  130. package/data-structures/Hinkal/Hinkal.mjs +348 -315
  131. package/data-structures/Hinkal/IHinkal.d.ts +56 -42
  132. package/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
  133. package/data-structures/Hinkal/handleAutoDepositBack.d.ts +1 -1
  134. package/data-structures/Hinkal/handleAutoDepositBack.mjs +49 -48
  135. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.cjs +1 -0
  136. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.d.ts +7 -0
  137. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.mjs +42 -0
  138. package/data-structures/Hinkal/hinkalActionReceive.cjs +1 -1
  139. package/data-structures/Hinkal/hinkalActionReceive.mjs +24 -29
  140. package/data-structures/Hinkal/hinkalApprove.cjs +1 -0
  141. package/data-structures/Hinkal/hinkalApprove.d.ts +3 -0
  142. package/data-structures/Hinkal/hinkalApprove.mjs +114 -0
  143. package/data-structures/Hinkal/hinkalCheckTokenRegistry.cjs +1 -1
  144. package/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +19 -20
  145. package/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
  146. package/data-structures/Hinkal/hinkalDeposit.mjs +84 -89
  147. package/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
  148. package/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +1 -1
  149. package/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +96 -78
  150. package/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -1
  151. package/data-structures/Hinkal/hinkalDepositOnChainUtxos.d.ts +4 -1
  152. package/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +79 -75
  153. package/data-structures/Hinkal/hinkalDepostAndBridge.cjs +1 -1
  154. package/data-structures/Hinkal/hinkalDepostAndBridge.d.ts +1 -1
  155. package/data-structures/Hinkal/hinkalDepostAndBridge.mjs +151 -140
  156. package/data-structures/Hinkal/hinkalGetZkMeProvider.cjs +1 -1
  157. package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +5 -4
  158. package/data-structures/Hinkal/hinkalInsideTransact.cjs +1 -0
  159. package/data-structures/Hinkal/hinkalInsideTransact.d.ts +4 -0
  160. package/data-structures/Hinkal/hinkalInsideTransact.mjs +120 -0
  161. package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
  162. package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +2 -2
  163. package/data-structures/Hinkal/hinkalPrivateWallet.mjs +118 -115
  164. package/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -1
  165. package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +29 -30
  166. package/data-structures/Hinkal/hinkalProxySwap.cjs +1 -1
  167. package/data-structures/Hinkal/hinkalProxySwap.mjs +36 -40
  168. package/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -1
  169. package/data-structures/Hinkal/hinkalProxyToPrivate.mjs +32 -37
  170. package/data-structures/Hinkal/hinkalSignSubAccount.cjs +1 -1
  171. package/data-structures/Hinkal/hinkalSignSubAccount.d.ts +2 -1
  172. package/data-structures/Hinkal/hinkalSignSubAccount.mjs +15 -17
  173. package/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
  174. package/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +3 -4
  175. package/data-structures/Hinkal/hinkalSolanaDeposit.mjs +95 -84
  176. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
  177. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +1 -2
  178. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +180 -154
  179. package/data-structures/Hinkal/hinkalSolanaProxySend.cjs +1 -1
  180. package/data-structures/Hinkal/hinkalSolanaProxySend.d.ts +3 -2
  181. package/data-structures/Hinkal/hinkalSolanaProxySend.mjs +40 -43
  182. package/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -1
  183. package/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +67 -71
  184. package/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -1
  185. package/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +1 -1
  186. package/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +59 -63
  187. package/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -1
  188. package/data-structures/Hinkal/hinkalSolanaSwap.mjs +46 -50
  189. package/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -1
  190. package/data-structures/Hinkal/hinkalSolanaTransfer.mjs +50 -52
  191. package/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -1
  192. package/data-structures/Hinkal/hinkalSolanaWithdraw.d.ts +1 -2
  193. package/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +65 -69
  194. package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
  195. package/data-structures/Hinkal/hinkalSwap.mjs +77 -71
  196. package/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
  197. package/data-structures/Hinkal/hinkalTransfer.mjs +70 -72
  198. package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
  199. package/data-structures/Hinkal/hinkalWithdraw.mjs +78 -81
  200. package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
  201. package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +103 -106
  202. package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
  203. package/data-structures/Hinkal/resetMerkleTrees.d.ts +1 -1
  204. package/data-structures/Hinkal/resetMerkleTrees.mjs +54 -108
  205. package/data-structures/IndexedDB/activity-db.cjs +1 -1
  206. package/data-structures/IndexedDB/activity-db.d.ts +0 -1
  207. package/data-structures/IndexedDB/activity-db.mjs +79 -97
  208. package/data-structures/IndexedDB/balances-db.cjs +1 -1
  209. package/data-structures/IndexedDB/balances-db.mjs +39 -43
  210. package/data-structures/IndexedDB/contact-db.cjs +1 -1
  211. package/data-structures/IndexedDB/contact-db.mjs +31 -36
  212. package/data-structures/IndexedDB/signatures-db.cjs +1 -1
  213. package/data-structures/IndexedDB/signatures-db.mjs +40 -26
  214. package/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -1
  215. package/data-structures/TokenDBs/EventsPublicTokensDB.mjs +82 -82
  216. package/data-structures/TokenDBs/token-visibility-db.cjs +1 -1
  217. package/data-structures/TokenDBs/token-visibility-db.mjs +36 -22
  218. package/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
  219. package/data-structures/crypto-keys/decodeUTXO.mjs +45 -45
  220. package/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -1
  221. package/data-structures/crypto-keys/encryptDecryptUtxo.mjs +28 -27
  222. package/data-structures/crypto-keys/keys.cjs +1 -1
  223. package/data-structures/crypto-keys/keys.d.ts +10 -0
  224. package/data-structures/crypto-keys/keys.mjs +106 -47
  225. package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.cjs +1 -1
  226. package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.d.ts +2 -3
  227. package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.mjs +9 -9
  228. package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.cjs +1 -1
  229. package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.d.ts +2 -3
  230. package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.mjs +5 -5
  231. package/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.cjs +1 -1
  232. package/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.d.ts +2 -3
  233. package/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.mjs +6 -6
  234. package/data-structures/event-service/evm/AbstractEventService.cjs +1 -1
  235. package/data-structures/event-service/evm/AbstractEventService.d.ts +2 -4
  236. package/data-structures/event-service/evm/AbstractEventService.mjs +13 -13
  237. package/data-structures/event-service/evm/AbstractNullifierSnapshotService.cjs +1 -1
  238. package/data-structures/event-service/evm/AbstractNullifierSnapshotService.d.ts +2 -3
  239. package/data-structures/event-service/evm/AbstractNullifierSnapshotService.mjs +3 -3
  240. package/data-structures/event-service/evm/AbstractSnapshotService.cjs +1 -1
  241. package/data-structures/event-service/evm/AbstractSnapshotService.d.ts +2 -1
  242. package/data-structures/event-service/evm/AbstractSnapshotService.mjs +6 -2
  243. package/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -1
  244. package/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +5 -10
  245. package/data-structures/event-service/evm/BlockchainEventEmitter.mjs +40 -40
  246. package/data-structures/event-service/index.d.ts +0 -4
  247. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.cjs +1 -1
  248. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.d.ts +2 -3
  249. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs +6 -6
  250. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs +1 -1
  251. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.d.ts +3 -4
  252. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +8 -8
  253. package/data-structures/event-service/solana/AbstractSolanaEventService.cjs +1 -1
  254. package/data-structures/event-service/solana/AbstractSolanaEventService.d.ts +10 -4
  255. package/data-structures/event-service/solana/AbstractSolanaEventService.mjs +7 -10
  256. package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.cjs +1 -1
  257. package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.d.ts +2 -3
  258. package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.mjs +2 -2
  259. package/data-structures/event-service/solana/AbstractSolanaSnapshotService.cjs +1 -1
  260. package/data-structures/event-service/solana/AbstractSolanaSnapshotService.d.ts +2 -1
  261. package/data-structures/event-service/solana/AbstractSolanaSnapshotService.mjs +2 -1
  262. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.cjs +1 -1
  263. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +16 -11
  264. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.mjs +66 -64
  265. package/data-structures/index.d.ts +0 -3
  266. package/data-structures/presale/PresaleContractWrapper.cjs +1 -1
  267. package/data-structures/presale/PresaleContractWrapper.d.ts +3 -3
  268. package/data-structures/presale/PresaleContractWrapper.mjs +10 -10
  269. package/data-structures/provider-adapter/IProviderAdapter.d.ts +16 -11
  270. package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.cjs +1 -1
  271. package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.mjs +18 -18
  272. package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.cjs +1 -1
  273. package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.mjs +9 -9
  274. package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.cjs +1 -1
  275. package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.mjs +4 -6
  276. package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.cjs +1 -1
  277. package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.mjs +4 -6
  278. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.cjs +1 -1
  279. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs +4 -6
  280. package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.cjs +1 -1
  281. package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs +4 -5
  282. package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.cjs +1 -1
  283. package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.mjs +4 -6
  284. package/error-handling/error-codes.constants.cjs +1 -1
  285. package/error-handling/error-codes.constants.d.ts +0 -1
  286. package/error-handling/error-codes.constants.mjs +3 -4
  287. package/error-handling/get-error.message.cjs +1 -1
  288. package/error-handling/get-error.message.mjs +27 -22
  289. package/error-handling/handleErrorRestore.cjs +1 -0
  290. package/error-handling/handleErrorRestore.d.ts +2 -0
  291. package/error-handling/handleErrorRestore.mjs +11 -0
  292. package/error-handling/index.d.ts +1 -0
  293. package/functions/kyc/authentoHelper.cjs +1 -0
  294. package/functions/kyc/authentoHelper.d.ts +12 -0
  295. package/functions/kyc/authentoHelper.mjs +30 -0
  296. package/functions/kyc/zkMeHelper.cjs +1 -1
  297. package/functions/kyc/zkMeHelper.mjs +16 -17
  298. package/functions/pre-transaction/constructAdminData.cjs +1 -1
  299. package/functions/pre-transaction/constructAdminData.d.ts +2 -2
  300. package/functions/pre-transaction/constructAdminData.mjs +18 -12
  301. package/functions/pre-transaction/getExternalSwapAddress.cjs +1 -1
  302. package/functions/pre-transaction/getExternalSwapAddress.d.ts +2 -1
  303. package/functions/pre-transaction/getExternalSwapAddress.mjs +8 -8
  304. package/functions/pre-transaction/getFlatFees.cjs +1 -1
  305. package/functions/pre-transaction/getFlatFees.mjs +2 -3
  306. package/functions/pre-transaction/getSolanaCalldataHash.cjs +1 -1
  307. package/functions/pre-transaction/getSolanaCalldataHash.mjs +21 -21
  308. package/functions/pre-transaction/getVolatileTransferAmount.cjs +1 -1
  309. package/functions/pre-transaction/getVolatileTransferAmount.mjs +36 -22
  310. package/functions/pre-transaction/interaction-to-action.cjs +1 -1
  311. package/functions/pre-transaction/interaction-to-action.mjs +2 -3
  312. package/functions/pre-transaction/merge-with-fee-structure-emporium.cjs +1 -1
  313. package/functions/pre-transaction/merge-with-fee-structure-emporium.d.ts +1 -1
  314. package/functions/pre-transaction/merge-with-fee-structure-emporium.mjs +17 -17
  315. package/functions/pre-transaction/outputApprovalDataProcessing.cjs +1 -1
  316. package/functions/pre-transaction/outputApprovalDataProcessing.d.ts +9 -1
  317. package/functions/pre-transaction/outputApprovalDataProcessing.mjs +34 -19
  318. package/functions/pre-transaction/sendV0Transaction.cjs +1 -1
  319. package/functions/pre-transaction/sendV0Transaction.mjs +50 -53
  320. package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.cjs +1 -1
  321. package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.d.ts +1 -1
  322. package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.mjs +4 -4
  323. package/functions/private-wallet/emporium.helpers.cjs +1 -1
  324. package/functions/private-wallet/emporium.helpers.d.ts +12 -10
  325. package/functions/private-wallet/emporium.helpers.mjs +139 -102
  326. package/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
  327. package/functions/private-wallet/emporium.swap.helpers.d.ts +4 -1
  328. package/functions/private-wallet/emporium.swap.helpers.mjs +106 -103
  329. package/functions/private-wallet/opProducer.cjs +1 -1
  330. package/functions/private-wallet/opProducer.mjs +1 -1
  331. package/functions/snarkjs/common.snarkjs.cjs +1 -1
  332. package/functions/snarkjs/common.snarkjs.mjs +21 -18
  333. package/functions/snarkjs/constructEmporiumProof.cjs +1 -1
  334. package/functions/snarkjs/constructEmporiumProof.mjs +49 -49
  335. package/functions/snarkjs/constructSolanaZkProof.cjs +1 -1
  336. package/functions/snarkjs/constructSolanaZkProof.mjs +11 -10
  337. package/functions/snarkjs/fetchMerkleTreeSiblings.cjs +1 -1
  338. package/functions/snarkjs/fetchMerkleTreeSiblings.mjs +10 -11
  339. package/functions/utils/addresses.cjs +1 -1
  340. package/functions/utils/addresses.d.ts +0 -1
  341. package/functions/utils/addresses.mjs +11 -12
  342. package/functions/utils/cacheFunctions.cjs +1 -1
  343. package/functions/utils/cacheFunctions.d.ts +1 -1
  344. package/functions/utils/cacheFunctions.mjs +55 -54
  345. package/functions/utils/convertEmporiumOpToCallInfo.cjs +1 -1
  346. package/functions/utils/convertEmporiumOpToCallInfo.mjs +5 -5
  347. package/functions/utils/create-provider.cjs +1 -1
  348. package/functions/utils/create-provider.d.ts +2 -2
  349. package/functions/utils/create-provider.mjs +7 -11
  350. package/functions/utils/encryptInputForEnclave.cjs +1 -1
  351. package/functions/utils/encryptInputForEnclave.mjs +9 -9
  352. package/functions/utils/ethers-formatter.utils.d.ts +1 -1
  353. package/functions/utils/external-action.utils.cjs +1 -1
  354. package/functions/utils/external-action.utils.mjs +2 -2
  355. package/functions/utils/get-hinkal-approvals.cjs +1 -0
  356. package/functions/utils/get-hinkal-approvals.d.ts +3 -0
  357. package/functions/utils/get-hinkal-approvals.mjs +38 -0
  358. package/functions/utils/getContractAddress.cjs +1 -0
  359. package/functions/utils/getContractAddress.d.ts +2 -0
  360. package/functions/utils/getContractAddress.mjs +9 -0
  361. package/functions/utils/getDataFromTransaction.cjs +1 -1
  362. package/functions/utils/getDataFromTransaction.d.ts +0 -11
  363. package/functions/utils/getDataFromTransaction.mjs +26 -50
  364. package/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -1
  365. package/functions/utils/getRecipientInfoFromUserKeys.mjs +1 -1
  366. package/functions/utils/getSignerFromContract.cjs +1 -0
  367. package/functions/utils/getSignerFromContract.d.ts +3 -0
  368. package/functions/utils/getSignerFromContract.mjs +16 -0
  369. package/functions/utils/getUtxosFromReceipt.utils.cjs +1 -1
  370. package/functions/utils/getUtxosFromReceipt.utils.d.ts +1 -1
  371. package/functions/utils/getUtxosFromReceipt.utils.mjs +14 -15
  372. package/functions/utils/inLogicMetadata.cjs +1 -1
  373. package/functions/utils/inLogicMetadata.mjs +2 -2
  374. package/functions/utils/index.d.ts +1 -0
  375. package/functions/utils/involves-permit2-op.cjs +1 -1
  376. package/functions/utils/involves-permit2-op.d.ts +1 -0
  377. package/functions/utils/involves-permit2-op.mjs +6 -4
  378. package/functions/utils/mutexes.utils.cjs +1 -1
  379. package/functions/utils/mutexes.utils.d.ts +1 -1
  380. package/functions/utils/mutexes.utils.mjs +3 -3
  381. package/functions/utils/nftTokenFunctions.cjs +1 -1
  382. package/functions/utils/nftTokenFunctions.mjs +23 -9
  383. package/functions/utils/prepareHinkal.cjs +1 -1
  384. package/functions/utils/prepareHinkal.d.ts +13 -6
  385. package/functions/utils/prepareHinkal.mjs +72 -45
  386. package/functions/utils/publicBalance.utils.cjs +1 -1
  387. package/functions/utils/publicBalance.utils.d.ts +1 -1
  388. package/functions/utils/publicBalance.utils.mjs +62 -57
  389. package/functions/utils/replaceAddressInCalldata.cjs +1 -0
  390. package/functions/utils/replaceAddressInCalldata.d.ts +1 -0
  391. package/functions/utils/replaceAddressInCalldata.mjs +7 -0
  392. package/functions/utils/rpc-int-encode.cjs +1 -1
  393. package/functions/utils/rpc-int-encode.d.ts +1 -2
  394. package/functions/utils/rpc-int-encode.mjs +3 -6
  395. package/functions/utils/solanaMint.utils.cjs +1 -1
  396. package/functions/utils/solanaMint.utils.mjs +6 -6
  397. package/functions/utils/string.utils.cjs +1 -1
  398. package/functions/utils/string.utils.d.ts +0 -1
  399. package/functions/utils/string.utils.mjs +14 -18
  400. package/functions/utils/token-check.utils.cjs +1 -1
  401. package/functions/utils/token-check.utils.d.ts +0 -3
  402. package/functions/utils/token-check.utils.mjs +7 -18
  403. package/functions/utils/upToDateState.cjs +1 -1
  404. package/functions/utils/upToDateState.d.ts +1 -1
  405. package/functions/utils/upToDateState.mjs +4 -4
  406. package/functions/utils/walletBalances.utils.cjs +1 -1
  407. package/functions/utils/walletBalances.utils.d.ts +17 -2
  408. package/functions/utils/walletBalances.utils.mjs +36 -5
  409. package/functions/web3/EIP-712.cjs +1 -1
  410. package/functions/web3/EIP-712.d.ts +4 -4
  411. package/functions/web3/EIP-712.mjs +1 -1
  412. package/functions/web3/etherFunctions.cjs +1 -1
  413. package/functions/web3/etherFunctions.mjs +32 -29
  414. package/functions/web3/events/balanceChangedCustomHandler.cjs +1 -1
  415. package/functions/web3/events/balanceChangedCustomHandler.mjs +4 -5
  416. package/functions/web3/events/balanceChangedHandler.cjs +1 -1
  417. package/functions/web3/events/balanceChangedHandler.mjs +2 -3
  418. package/functions/web3/events/getApprovedBalance.cjs +1 -1
  419. package/functions/web3/events/getApprovedBalance.d.ts +4 -3
  420. package/functions/web3/events/getApprovedBalance.mjs +44 -39
  421. package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
  422. package/functions/web3/events/getInputUtxoAndBalance.d.ts +3 -3
  423. package/functions/web3/events/getInputUtxoAndBalance.mjs +150 -129
  424. package/functions/web3/events/getInputUtxosEnclave.cjs +1 -1
  425. package/functions/web3/events/getInputUtxosEnclave.mjs +20 -20
  426. package/functions/web3/events/getShieldedBalance.cjs +2 -2
  427. package/functions/web3/events/getShieldedBalance.d.ts +1 -1
  428. package/functions/web3/events/getShieldedBalance.mjs +75 -73
  429. package/functions/web3/events/getTransactionLogEvents.cjs +1 -1
  430. package/functions/web3/events/getTransactionLogEvents.d.ts +3 -3
  431. package/functions/web3/events/getTransactionLogEvents.mjs +41 -40
  432. package/functions/web3/events/index.d.ts +0 -1
  433. package/functions/web3/fetchSolanaMerkleTreeRootHash.cjs +1 -1
  434. package/functions/web3/fetchSolanaMerkleTreeRootHash.d.ts +1 -2
  435. package/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +12 -16
  436. package/functions/web3/functionCalls/accessTokenCalls.cjs +1 -1
  437. package/functions/web3/functionCalls/accessTokenCalls.d.ts +6 -1
  438. package/functions/web3/functionCalls/accessTokenCalls.mjs +20 -12
  439. package/functions/web3/functionCalls/approveToken.cjs +1 -1
  440. package/functions/web3/functionCalls/approveToken.d.ts +1 -1
  441. package/functions/web3/functionCalls/approveToken.mjs +68 -69
  442. package/functions/web3/functionCalls/approveTokensToHinkal.cjs +1 -1
  443. package/functions/web3/functionCalls/approveTokensToHinkal.d.ts +1 -1
  444. package/functions/web3/functionCalls/approveTokensToHinkal.mjs +6 -6
  445. package/functions/web3/functionCalls/constructBatchCall.cjs +1 -1
  446. package/functions/web3/functionCalls/constructBatchCall.d.ts +2 -2
  447. package/functions/web3/functionCalls/constructBatchCall.mjs +10 -9
  448. package/functions/web3/functionCalls/estimateGasRelayer.cjs +1 -1
  449. package/functions/web3/functionCalls/estimateGasRelayer.d.ts +2 -1
  450. package/functions/web3/functionCalls/estimateGasRelayer.mjs +10 -10
  451. package/functions/web3/functionCalls/inHinkalApprovalCalls.cjs +1 -0
  452. package/functions/web3/functionCalls/inHinkalApprovalCalls.d.ts +5 -0
  453. package/functions/web3/functionCalls/inHinkalApprovalCalls.mjs +29 -0
  454. package/functions/web3/functionCalls/recoverTransactionFromError.d.ts +1 -1
  455. package/functions/web3/functionCalls/transactCallDirect.cjs +1 -1
  456. package/functions/web3/functionCalls/transactCallDirect.d.ts +1 -1
  457. package/functions/web3/functionCalls/transactCallDirect.mjs +47 -39
  458. package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
  459. package/functions/web3/functionCalls/transactCallRelayer.d.ts +3 -3
  460. package/functions/web3/functionCalls/transactCallRelayer.mjs +54 -56
  461. package/functions/web3/getContractMetadata.cjs +1 -1
  462. package/functions/web3/getContractMetadata.d.ts +1 -1
  463. package/functions/web3/getContractMetadata.mjs +21 -16
  464. package/functions/web3/getPublicAddressBalance.cjs +1 -1
  465. package/functions/web3/getPublicAddressBalance.d.ts +1 -1
  466. package/functions/web3/getPublicAddressBalance.mjs +7 -6
  467. package/functions/web3/getTokenHolder.cjs +1 -1
  468. package/functions/web3/getTokenHolder.mjs +32 -31
  469. package/functions/web3/index.d.ts +0 -1
  470. package/functions/web3/lifiAPI.cjs +1 -1
  471. package/functions/web3/lifiAPI.d.ts +1 -1
  472. package/functions/web3/lifiAPI.mjs +12 -12
  473. package/functions/web3/odosAPI.cjs +1 -1
  474. package/functions/web3/odosAPI.mjs +15 -3
  475. package/functions/web3/okxAPI.cjs +1 -1
  476. package/functions/web3/okxAPI.mjs +13 -13
  477. package/functions/web3/oneInchAPI.cjs +1 -1
  478. package/functions/web3/oneInchAPI.mjs +20 -8
  479. package/functions/web3/runContractFunction.cjs +1 -1
  480. package/functions/web3/runContractFunction.d.ts +6 -5
  481. package/functions/web3/runContractFunction.mjs +60 -46
  482. package/functions/web3/uniswapAPI.cjs +1 -1
  483. package/functions/web3/uniswapAPI.d.ts +2 -2
  484. package/functions/web3/uniswapAPI.mjs +49 -38
  485. package/index.cjs +1 -1
  486. package/index.mjs +912 -914
  487. package/package.json +4 -6
  488. package/providers/CustomEthersProvider.d.ts +1 -1
  489. package/providers/EthersProviderAdapter.cjs +1 -1
  490. package/providers/EthersProviderAdapter.d.ts +21 -14
  491. package/providers/EthersProviderAdapter.mjs +86 -53
  492. package/providers/SolanaProviderAdapter.cjs +1 -1
  493. package/providers/SolanaProviderAdapter.d.ts +12 -8
  494. package/providers/SolanaProviderAdapter.mjs +31 -16
  495. package/providers/WagmiProviderAdapter.cjs +1 -1
  496. package/providers/WagmiProviderAdapter.d.ts +20 -14
  497. package/providers/WagmiProviderAdapter.mjs +126 -91
  498. package/providers/prepareEthersHinkal.cjs +1 -1
  499. package/providers/prepareEthersHinkal.d.ts +2 -2
  500. package/providers/prepareEthersHinkal.mjs +9 -16
  501. package/providers/prepareWagmiHinkal.cjs +1 -1
  502. package/providers/prepareWagmiHinkal.mjs +9 -17
  503. package/types/TransactionSimulator.types.d.ts +9 -2
  504. package/types/activities.types.d.ts +2 -5
  505. package/types/admin.types.cjs +1 -1
  506. package/types/admin.types.d.ts +6 -0
  507. package/types/admin.types.mjs +2 -2
  508. package/types/balances.types.d.ts +1 -0
  509. package/types/big-intable.types.d.ts +3 -2
  510. package/types/bridging.types.d.ts +29 -0
  511. package/types/cache.types.cjs +1 -1
  512. package/types/cache.types.d.ts +3 -6
  513. package/types/cache.types.mjs +1 -1
  514. package/types/coingecko.types.d.ts +0 -5
  515. package/types/duneAPI.types.d.ts +9 -0
  516. package/types/ethereum-network.types.d.ts +10 -11
  517. package/types/hinkal.types.cjs +1 -1
  518. package/types/hinkal.types.d.ts +1 -1
  519. package/types/hinkal.types.mjs +18 -18
  520. package/types/index.d.ts +2 -2
  521. package/types/proxy.types.d.ts +3 -6
  522. package/types/sandbox.types.cjs +1 -1
  523. package/types/sandbox.types.d.ts +39 -10
  524. package/types/sandbox.types.mjs +2 -2
  525. package/types/scheduled-transactions.types.cjs +1 -1
  526. package/types/scheduled-transactions.types.d.ts +6 -0
  527. package/types/scheduled-transactions.types.mjs +3 -2
  528. package/types/session.types.d.ts +0 -2
  529. package/types/solana.types.d.ts +0 -9
  530. package/types/token-prices.types.cjs +1 -1
  531. package/types/token-prices.types.d.ts +0 -7
  532. package/types/token-prices.types.mjs +2 -4
  533. package/types/transactions.types.cjs +1 -1
  534. package/types/transactions.types.d.ts +2 -3
  535. package/types/transactions.types.mjs +6 -7
  536. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.cjs +1 -1
  537. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.mjs +1 -1
  538. package/webworker/utxoWorker/utxoWorkerLauncher.cjs +1 -1
  539. package/webworker/utxoWorker/utxoWorkerLauncher.mjs +1 -1
  540. package/webworker/utxoWorker/utxoWorkerLogic.cjs +1 -1
  541. package/webworker/utxoWorker/utxoWorkerLogic.mjs +1 -1
  542. package/webworker/viteWorkerURL.constant.cjs +3 -3
  543. package/webworker/viteWorkerURL.constant.mjs +3 -3
  544. package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
  545. package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
  546. package/API/get-token-price-chart-data.cjs +0 -1
  547. package/API/get-token-price-chart-data.d.ts +0 -16
  548. package/API/get-token-price-chart-data.mjs +0 -13
  549. package/API/onrampCalls.cjs +0 -1
  550. package/API/onrampCalls.d.ts +0 -20
  551. package/API/onrampCalls.mjs +0 -15
  552. package/API/unspent-utxos-calls.cjs +0 -1
  553. package/API/unspent-utxos-calls.d.ts +0 -26
  554. package/API/unspent-utxos-calls.mjs +0 -26
  555. package/data-structures/AccountActions/AccountActions.cjs +0 -1
  556. package/data-structures/AccountActions/AccountActions.d.ts +0 -18
  557. package/data-structures/AccountActions/AccountActions.mjs +0 -78
  558. package/data-structures/AccountActions/index.d.ts +0 -1
  559. package/data-structures/BlockchainEvent/BlockchainEvent.cjs +0 -1
  560. package/data-structures/BlockchainEvent/BlockchainEvent.d.ts +0 -14
  561. package/data-structures/BlockchainEvent/BlockchainEvent.mjs +0 -41
  562. package/data-structures/PublicBalance/PublicBalanceWatcher.cjs +0 -1
  563. package/data-structures/PublicBalance/PublicBalanceWatcher.d.ts +0 -20
  564. package/data-structures/PublicBalance/PublicBalanceWatcher.mjs +0 -124
  565. package/data-structures/PublicBalance/SolanaPublicBalancerWatcher.cjs +0 -1
  566. package/data-structures/PublicBalance/SolanaPublicBalancerWatcher.d.ts +0 -15
  567. package/data-structures/PublicBalance/SolanaPublicBalancerWatcher.mjs +0 -64
  568. package/data-structures/PublicBalance/index.d.ts +0 -2
  569. package/data-structures/event-service/evm/ClientBlockchainEventEmitter.cjs +0 -1
  570. package/data-structures/event-service/evm/ClientBlockchainEventEmitter.d.ts +0 -11
  571. package/data-structures/event-service/evm/ClientBlockchainEventEmitter.mjs +0 -21
  572. package/data-structures/event-service/evm/PollingBlockchainEventEmitter.cjs +0 -1
  573. package/data-structures/event-service/evm/PollingBlockchainEventEmitter.d.ts +0 -6
  574. package/data-structures/event-service/evm/PollingBlockchainEventEmitter.mjs +0 -16
  575. package/data-structures/event-service/helpers/ClientEventHelper.cjs +0 -1
  576. package/data-structures/event-service/helpers/ClientEventHelper.d.ts +0 -11
  577. package/data-structures/event-service/helpers/ClientEventHelper.mjs +0 -26
  578. package/data-structures/event-service/helpers/PollingEventHelper.cjs +0 -1
  579. package/data-structures/event-service/helpers/PollingEventHelper.d.ts +0 -5
  580. package/data-structures/event-service/helpers/PollingEventHelper.mjs +0 -14
  581. package/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.cjs +0 -1
  582. package/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.d.ts +0 -11
  583. package/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.mjs +0 -22
  584. package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.cjs +0 -1
  585. package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.d.ts +0 -6
  586. package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.mjs +0 -16
  587. package/functions/utils/enum.utils.cjs +0 -1
  588. package/functions/utils/enum.utils.mjs +0 -14
  589. package/functions/utils/socket.utils.cjs +0 -1
  590. package/functions/utils/socket.utils.d.ts +0 -1
  591. package/functions/utils/socket.utils.mjs +0 -12
  592. package/functions/web3/crypto.cjs +0 -1
  593. package/functions/web3/crypto.d.ts +0 -1
  594. package/functions/web3/crypto.mjs +0 -7
  595. package/functions/web3/events/web3RetrieveEvents.cjs +0 -1
  596. package/functions/web3/events/web3RetrieveEvents.d.ts +0 -14
  597. package/functions/web3/events/web3RetrieveEvents.mjs +0 -9
  598. package/types/events.types.cjs +0 -1
  599. package/types/events.types.d.ts +0 -9
  600. package/types/events.types.mjs +0 -5
  601. package/types/onramp.types.cjs +0 -1
  602. package/types/onramp.types.d.ts +0 -58
  603. package/types/onramp.types.mjs +0 -4
package/README.md CHANGED
@@ -5,17 +5,11 @@ Hinkal is a privacy middleware and smart-contract SDK for public blockchains tha
5
5
  The SDK allows wallets, dApps, and payment platforms to integrate protocol-level privacy on Ethereum, Solana, Polygon, Base, Arbitrum, and Optimis. It hides transaction history, wallet relationships, and asset flows on-chain while preserving public-chain finality and compliance.
6
6
 
7
7
  With Hinkal SDK, developers can:
8
- Enable private sends between public wallets
9
- Perform confidential payouts and settlements
10
- Route transactions through Hinkal’s privacy contracts without exposing sender, recipient, or amounts
11
- Maintain non-custodial control with optional compliance visibility via viewing keys
8
+ Enable private sends between public wallets
9
+ Perform confidential payouts and settlements
10
+ Route transactions through Hinkal’s privacy contracts without exposing sender, recipient, or amounts
11
+ Maintain non-custodial control with optional compliance visibility via viewing keys
12
12
 
13
- ## Compatibility
14
-
15
- | Environment | Supported | Notes |
16
- |-------------|-----------|-------|
17
- | Node.js | ✅ | v18+ |
18
- | Browser | ✅ | React, Next.js, vanilla JS |
19
13
 
20
14
  ## Installation
21
15
 
@@ -31,24 +25,18 @@ Or, yarn:
31
25
  yarn add @hinkal/common
32
26
  ```
33
27
 
34
- ## Usage
35
-
36
- ### Initialization
28
+ ### Usage
37
29
 
38
- To begin using Hinkal in your application, you'll need to initialize the SDK with your preferred Web3 connection library. Hinkal supports multiple popular libraries out of the box, allowing seamless integration with your existing wallet connection setup.
39
-
40
- Initializing the SDK creates a `Hinkal` object that encapsulates:
41
- - The user's shielded balances
42
- - Actions the user can perform, such as shielding (depositing), transfers, and swapping
43
- - Cryptographic keys for privacy-preserving operations
30
+ #### Initialization
44
31
 
32
+ To get started with Hinkal, initialize it based on the Web3 connection library you’re using:
45
33
 
46
34
  **ethers.js:**
47
35
 
48
36
  ```typescript
49
37
  import { prepareEthersHinkal } from '@hinkal/common/providers/prepareEthersHinkal';
50
38
  // signer: ethers.Signer
51
- const hinkal = await prepareEthersHinkal(signer, hinkalConfig);
39
+ const hinkal = await prepareEthersHinkal(signer);
52
40
  ```
53
41
 
54
42
  **wagmi:**
@@ -56,308 +44,128 @@ const hinkal = await prepareEthersHinkal(signer, hinkalConfig);
56
44
  ```typescript
57
45
  import { prepareWagmiHinkal } from '@hinkal/common/providers/prepareWagmiHinkal';
58
46
  // connector: wagmi.Connector
59
- // wagmiConfig: wagmi.Config
60
- const hinkal = await prepareWagmiHinkal(connector, wagmiConfig, hinkalConfig);
61
- ```
62
- The `hinkalConfig` is defined as follows:
63
- ```typescript
64
- type HinkalConfig = {
65
- /** Disables caching in browser localStorage, storing data only in memory. Front-end only. Defaults to false. */
66
- disableCaching?: boolean;
67
-
68
- /** If true, allows caching in a file locally. Node.js only. Defaults to false. */
69
- useFileCache?: boolean;
70
-
71
- /**
72
- * Path to the cache file used for storing temporary data. Node.js only.
73
- * It should be a valid file path string. Defaults to hinkalCache.json in the current working directory.
74
- */
75
- cacheFilePath?: string;
76
-
77
- /**
78
- * Indicator controlling wether the proof should be constructed remotely in secure enclave. Defaults to true.
79
- */
80
- generateProofRemotely?: boolean;
81
- };
47
+ // config: wagmi.Config
48
+ const hinkal = await prepareWagmiHinkal(connector, config);
82
49
  ```
83
50
 
84
- ### Shielded balance
51
+ #### Shielded balance
85
52
 
86
- Shielded balances are encrypted token holdings stored within the Hinkal protocol. Unlike regular blockchain balances that are publicly visible, shielded balances are hidden from external observers, providing privacy for your assets. After initializing the Hinkal object, you can access and calculate your shielded balances:
53
+ Once the Hinkal object is initialized, shielded balances become accessible and can be calculated as needed:
87
54
 
88
55
  ```typescript
89
- const balances: Promise<Map<string, TokenBalance>> = await hinkal.getBalances();
56
+ const balances = await hinkal.getBalances();
90
57
  ```
91
58
 
92
- This returns a map from token address to balance for all tokens held by the user, including ERC20 and ERC721 tokens.
93
-
94
-
95
- ### Shielding: depositing funds to the shielded balance
96
-
97
- Shielding is the process of moving your tokens from a public blockchain address into a private, encrypted balance. Once shielded, your tokens are no longer visible on-chain to external observers. This provides privacy for your holdings and subsequent transactions.
59
+ #### Depositing funds to the shielded balance
98
60
 
99
61
  A user can deposit funds to their shielded address using:
100
62
 
101
63
  ```typescript
102
- function deposit(erc20Tokens: ERC20Token[], amountChanges: bigint[]): Promise<ethers.providers.TransactionResponse>;
103
- ```
104
-
105
- where:
106
- - `erc20Tokens` is an array of tokens to deposit
107
- - `amountChanges` represents the corresponding token amounts for the deposit
108
-
109
- The `ERC20Token` type is defined as follows:
110
-
111
- ```typescript
112
- type ERC20Token = {
113
- chainId: number;
114
- erc20TokenAddress: string;
115
- name: string;
116
- symbol: string;
117
- decimals: number;
118
- };
119
- ```
120
-
121
- ### Private Send to Public Address: withdrawing funds from the shielded balance
122
-
123
- Private Send to Public Address allows you to send tokens from your private, shielded balance directly to any public blockchain address. The sender's identity is not exposed during this transaction. The recipient receives the funds at their public address, where the tokens become visible on-chain. This is useful when you need to interact with public DeFi protocols, send funds to exchanges, or transfer to any public wallet while maintaining privacy for your shielded balance.
124
-
125
- A user can withdraw funds from their shielded address to a public address using:
126
-
127
- ```typescript
128
- function withdraw(
129
- erc20Tokens: ERC20Token[],
130
- deltaAmounts: bigint[],
131
- recipientAddress: string,
132
- isRelayerOff: boolean,
133
- ): Promise<RelayerTransaction>;
134
- ```
135
-
136
- where:
137
- - `recipientAddress` is the public address that will receive the withdrawn funds
138
- - `isRelayerOff` determines whether to use a relayer for the transaction (when `false`, a relayer handles gas fees; when `true`, the user pays gas directly)
139
- - `RelayerTransaction` type represents the transaction response from the relayer service.
140
-
141
- ### Private Send to Private Address: transfering funds from shielded balance
142
-
143
- Private Send to Private Address enables fully confidential transfers between shielded balances. Both the sender and recipient remain anonymous, and the transaction amount is hidden from external observers. This is the most private way to transfer tokens, as neither party's identity nor the transaction details are exposed on-chain.
144
-
145
- A user can transfer tokens from their shielded balance to another shielded address using:
146
-
147
- ```typescript
148
- function transfer(
149
- erc20Tokens: ERC20Token[],
150
- deltaAmounts: bigint[],
151
- privateRecipientAddress: string,
152
- ): Promise<RelayerTransaction>;
153
- ```
154
- where:
155
- - `privateRecipientAddress` is the recipient's private address, formatted as a comma-separated string with five components:
156
- - `randomization` - a random value for privacy
157
- - `stealthAddress` - the recipient's stealth address (hex format starting with `0x`)
158
- - `encryptionKey` - the recipient's encryption key (hex format starting with `0x`, 66 characters)
159
- - `H0` - the first hash component of elliptic curve point for stealth address derivation
160
- - `H1` - the second hash component of elliptic curve point for stealth address derivation
161
-
162
- ### Private Send from Public to Public addresses
163
-
164
- Private Send from Public to Public addresses enables you to transfer tokens between two public addresses while using Hinkal's privacy infrastructure. The tokens are first shielded from the sender's public address, then unshielded to the recipient's public address either immediately or after some interval. This ensures there is no traceable connection between the sender and recipient on-chain, providing transaction privacy even when both parties use public addresses.
165
-
166
- A user can perform a private transfer between public addresses using:
167
-
168
- ```typescript
169
- function depositAndWithdraw(
170
- erc20Token: ERC20Token,
171
- recipientAmounts: bigint[],
172
- recipientAddresses: string[],
173
- txCompletionTime?: number,
174
- ): Promise<RelayerTransaction>;
64
+ function deposit(erc20addresses: string[], amountChanges: bigint[]): Promise<TransactionObject>;
175
65
  ```
176
66
 
177
- where:
178
- - `erc20Token` is the token to transfer (only single token transfers are supported for this method)
179
- - `recipientAmounts` is an array of amounts to send to each recipient (in the token's smallest unit)
180
- - `recipientAddresses` is an array of public addresses that will receive the funds
181
- - `txCompletionTime` (optional) specifies a delay in milliseconds before the withdrawal completes
67
+ where erc20Addresses is an array of token addresses, and amountChanges represents the token amounts for the deposit.
182
68
 
69
+ #### Interacting with smart contracts privately
183
70
 
184
- ### Swapping tokens from the shielded balance
185
-
186
- Swapping allows you to exchange tokens directly from your shielded balance without revealing your identity. The swap is executed through integrated DEX protocols (Uniswap, 1Inch, Odos) while keeping your transaction private. Your tokens are withdrawn from your shielded balance, swapped through the specified protocol, and the resulting tokens are deposited back into your shielded balance—all in a single private transaction.
187
-
188
- A user can swap tokens directly from their shielded balance using:
189
-
190
- ```typescript
191
- function swap(
192
- erc20Tokens: ERC20Token[],
193
- deltaAmounts: bigint[],
194
- externalActionId: ExternalActionId,
195
- swapData: string,
196
- ): Promise<RelayerTransaction>;
197
- ```
198
-
199
- where:
200
- - `externalActionId` identifies the external swap protocol to use. Possible values include:
201
- - `ExternalActionId.Uniswap` - for Uniswap swaps
202
- - `ExternalActionId.OneInch` - for 1Inch swaps
203
- - `ExternalActionId.Odos` - for Odos swaps
204
- - `swapData` contains the encoded swap parameters specific to the chosen protocol
205
-
206
- **Getting swap calldata:**
207
-
208
- To obtain the swap calldata using the Hinkal SDK, you can use the built-in swap data generation utilities.
209
-
210
- To get swap data for 1Inch, you can use the `getOneInchPrice` function. This function fetches a quote from the 1Inch aggregator and returns both the expected output amount and the encoded swap data that can be passed to the `swap` function:
211
-
212
-
213
- **1Inch:**
214
- ```typescript
215
- function getOneInchPrice(
216
- chainId: number,
217
- inSwapToken: ERC20Token,
218
- outSwapToken: ERC20Token,
219
- inSwapAmount: string,
220
- slippagePercentage?: number,
221
- ): Promise<{
222
- outSwapAmountValue: bigint;
223
- oneInchDataValue: string;
224
- }>
225
- ```
226
- Similar functions are available for other supported swap protocols:
227
- - **Uniswap:** `getUniswapPrice`
228
- - **Odos:** `getOdosPrice`
229
- - **LiFi:** `getLifiPrice`
230
-
231
- ### Interacting with smart contracts privately
232
-
233
- The SDK lets you interact with any smart contract on the blockchain while keeping your identity private. When you initiate a private wallet action, your funds are first unshielded from your Hinkal shielded balance to an intermediary called an Emporium contract. The Emporium then executes your desired actions on-chain (such as swaps, staking, or other DeFi interactions) without exposing who initiated them. After the operations complete, the resulting tokens are automatically shielded back into your Hinkal shielded balance. This means you can use DeFi protocols, NFT marketplaces, or any other smart contract while maintaining full anonymity.
71
+ After a user’s shielded balance is updated, they can perform any smart contract interaction privately using:
234
72
 
235
73
  ```typescript
236
74
  function actionPrivateWallet(
237
- chainId:number,
238
- erc20Tokens: ERC20Token[],
239
- deltaAmounts: bigint[],
75
+ erc20Addresses: string[],
76
+ amountChanges: bigint[],
240
77
  onChainCreation: boolean[],
241
78
  ops: string[],
242
- ): Promise<RelayerTransaction>;
79
+ ): Promise<TransactionObject>;
243
80
  ```
244
81
 
245
- Parameters:
246
- - `chainId` - the blockchain network identifier
247
- - `onChainCreation` - array of booleans indicating the direction of token changes: `true` for positive changes (tokens received), `false` for negative changes (tokens spent)
248
- - `ops` - array of encoded user operations to execute (see User operations below)
249
-
250
- User operations (`ops`) are encoded instructions that tell the Emporium contract what actions to perform. Each operation specifies a target contract, the function to call, and any necessary parameters. For example, to stake ETH with Lido, you would create an operation that calls Lido's `submit` function with the appropriate value.
82
+ where onChainCreation indicates the amounts of tokens that are uncertain before the transaction is executed on-chain. The ops array contains encoded user operations.
251
83
 
252
- To generate user operations, a user will need the `emporiumOp` function.
84
+ ##### User operations
253
85
 
86
+ To generate user operations (`ops`) you will need the `emporiumOp` function.
254
87
  ```typescript
255
- function emporiumOp(
256
- contract: ethers.Contract | string;
257
- func?: string;
258
- args?: any[];
259
- callDataString?: string;
260
- invokeWallet?: boolean;
261
- value?: bigint;
262
- ): Promise<RelayerTransaction>;
88
+ import {emporiumOp} from "@hinkal/common";
263
89
  ```
264
90
 
265
91
  The function accepts the following arguments:
266
- 1. `contract` _(required)_ - target address or contract instance (with address). The contract instance will be used to properly encode the call function, if any, in the custom operation.
267
- 2. `func` _(optional)_ - the name of the function to be called on the target address.
268
- 3. `args` _(optional)_ - arguments of the function to be called on the target address.
269
- 4. `callDataString` _(optional)_ - pre-encoded calldata string. If provided, `func` and `args` should not be used.
270
- 5. `invokeWallet` _(optional)_ - boolean flag that determines the type of interaction (see the stateless/stateful interactions below).
271
- 6. `value` _(optional)_ - the value field to the user operation call.
92
+ 1. `endpoint` *(required)* - target address or contract instance (with address). The contract instance will be used to properly encode the call function, if any, in the custom operation.
93
+ 2. `func` *(optional)* - the name of the function to be called on the target address.
94
+ 3. `args` *(optional)* - arguments of the function to be called on the target address.
95
+ 4. `invokeWallet` *(optional)* - bool flag that determines the type of transaction. There are two types: stateful and stateless interaction. The default is false (stateless).
96
+ 5. `value` *(optional)* - the amount of native currency to transfer to the target address.
272
97
 
98
+ The `emporiumOp` function will generate data for subsequent calls, supporting both stateful interaction (with state preservation) and stateless interaction (without state preservation). This is determined by the `invokeWallet` flag.
273
99
 
274
- When the Emporium contract executes a user operation, it receives the data in this format:
275
-
100
+ To execute on a smart contract, the user operation will be received in the following format:
276
101
  ```solidity
277
102
  (address endpoint, bool invokeWallet, uint256 value, bytes data)
278
103
  ```
279
104
 
280
- This enables the Emporium contract to execute generic calls using user operations:
281
-
105
+ This will make it possible to make that kind of call:
282
106
  ```solidity
283
107
  (bool success, bytes memory err) = endpoint.call{value: value}(data);
284
108
  ```
285
109
 
286
- User operations can be categorized into two types based on whether the target protocol needs to track the caller account's history:
110
+ ##### Stateless and stateful
287
111
 
288
- **Stateless interactions** are operations where the resulting token amount changes depend only on the calldata provided. Two different accounts executing the same calldata should receive the same result, regardless of their transaction history. Examples include token swaps, liquidity provision, and simple staking operations.
112
+ The best way to demonstrate how this works is with an example.
289
113
 
290
- For example, consider exchanging USDC for ETH using a DEX. To perform a swap, the DEX does not need to know historical data about the caller (e.g., when and what swaps have been performed from his account in the past). It only needs to know how much token to swap and the exchange rate.
114
+ **Stateless interaction**
115
+
116
+ Let's say we need to exchange USDC for ETH using DEX.
291
117
 
292
118
  ```typescript
293
119
  const operations = [
294
- emporiumOp({ contract: usdcContractInstance, func: 'approve', args: [swapRouterAddress, amountIn] }),
295
- emporiumOp({ contract: swapRouterContractInstance, func: 'exactInputSingle', args: [swapSingleParams] }),
296
- emporiumOp({ contract: wethContractInstance, func: 'withdraw', args: [amountOut] }),
120
+ emporiumOp(usdcContractInstance, 'approve', [swapRouterAddress, amountIn]),
121
+ emporiumOp(swapRouterContractInstance, 'exactInputSingle', [swapSingleParams]),
122
+ emporiumOp(wethContractInstance, 'withdraw', [amountOut]),
297
123
  ];
298
124
  ```
299
- In this example:
300
- - First operation approves the swap router to spend USDC tokens
301
- - Second operation executes the swap from USDC to WETH
302
- - Third operation unwraps WETH to ETH
303
125
 
126
+ To perform a DEX swap, DEX does not need to know historical data about the calling party (e.g. when and what swaps have been performed from this account in the past). It only needs the current token balance for the exchange.
304
127
 
305
- **Stateful interactions** are operations where the target protocol needs to track the account's history for future calculations, such as staking rewards, voting power, or checkpoints. In these cases, set `invokeWallet: true` to ensure the operation is executed from a persistent wallet address that the protocol can track.
128
+ In this case it will be **stateless interaction**, so there is no need to change the default value of the `invokeWallet` flag.
306
129
 
307
- Consider a scenario where you have already staked Curve LP tokens and want to claim your rewards. The gauge contract needs to track your staking history to calculate accumulated rewards, so it must recognize the same wallet address across multiple interactions.
130
+ **Stateful interaction**
308
131
 
309
- ```typescript
132
+ Another example is when the protocol with which an account interacts needs to know what actions this account has done before, for example, to gain rewards. In this case, some account state will be required.
133
+
134
+ Let's imagine that you already have Curve LP tokens and need to make a stake.
135
+
136
+ ```solidity
310
137
  const operations = [
311
- emporiumOp({ contract: lpTokenInstance, func: 'approve', args: [gaugeAddressInstance, amount], invokeWallet: true }),
312
- emporiumOp({ contract: gaugeAddressInstance, func: 'deposit', args: [amount, invokeWalletAddress], invokeWallet: true }),
138
+ emporiumOp(lpTokenInstance, 'approve', [gaugeAddressInstance, amount]), // without flag, because is's stateless interaction
139
+ emporiumOp(gaugeAddressInstance, 'deposit', [amount, invokeWalletAddress], true), // with flag, because it's stateful interaction
313
140
  ];
314
141
  ```
315
- In this example:
316
- - First operation approves the gauge contract to spend LP tokens, executed from the persistent wallet
317
- - Second operation deposits LP tokens into the gauge, with the wallet address as the recipient for reward tracking
318
142
 
319
- ## Access Tokens
143
+ As you can see, in this case `approve` is a stateless interaction, but `deposit` is a stateful interaction, because under the hood Curve will record this address and timestamp in order to calculate the checkpoint correctly in the future.
320
144
 
321
- Access tokens are required credentials that allow users to interact with Hinkal's privacy smart contracts. Think of them as a "passport" that proves you've completed the necessary compliance verification.
145
+ ### Access Tokens
322
146
 
323
- Before you can deposit funds, make transfers, or perform any private transactions through Hinkal, you must have a valid access token associated with your wallet. This is a one-time requirement—once you have an access token, you can use Hinkal's features without needing to verify again.
147
+ Before interacting with Hinkal smart contracts, users need to mint an access token after passing compliance checks.
324
148
 
325
- To check whether a user already has an access token on a specific chain, use the `checkAccessToken` function:
149
+ To check whether a user already has an access token, use the checkAccessToken function:
326
150
 
327
151
  ```typescript
328
152
  function checkAccessToken(): Promise<boolean>;
329
153
  ```
330
154
 
331
- If the user does not have an access token, they need to complete a compliance verification through one of Hinkal's supported compliance providers. This is a one-time process that verifies the user meets regulatory requirements before they can use the privacy features.
155
+ If the user does not have an access token, they must use one of the compliance providers to pass the check. To view the available providers:
332
156
 
333
- To get a list of all available compliance providers that can be used for verification:
334
157
  ```typescript
335
158
  function getSupportedPassportLinks(): string[];
336
159
  ```
337
160
 
338
- After passing the compliance check with one of the supported providers, the access token will be automatically minted during the user's first transaction with Hinkal. This token is stored on-chain and grants the user permission to interact with Hinkal's privacy contracts.
339
-
340
- ## Supported Chains
161
+ After passing the compliance check, the user can mint an access token using:
341
162
 
342
- Hinkal SDK is available on the following blockchain networks:
343
-
344
- | Chain | Chain ID | Status |
345
- |-------|----------|--------|
346
- | Ethereum | 1 | ✅ Live |
347
- | Polygon | 137 | ✅ Live |
348
- | Base | 8453 | ✅ Live |
349
- | Arbitrum | 42161 | ✅ Live |
350
- | Optimism | 10 | ✅ Live |
351
- | Solana | - | 🚧 In Progress |
352
-
353
- Each chain supports the full suite of Hinkal privacy features including shielding, transfers, and confidential interactions with DeFi protocols.
354
-
355
-
356
-
357
- ## References
358
-
359
- Wallet: [Hinkal Wallet](https://chromewebstore.google.com/detail/hinkal-wallet/khfjgapjfcdoffmklchibpepboholpbe)
163
+ ```typescript
164
+ const { signatureData } = await hinkal.getAPI().getAccessTokenSignature(chainId, ethereumAddress, accessKey);
165
+ await mintAccessToken(this, signatureData);
166
+ ```
360
167
 
361
- Application: [Private Send](https://send.hinkal.io)
168
+ ### References
362
169
 
363
- Docs: [Hinkal Documentation](https://hinkal-team.gitbook.io/hinkal)
170
+ Application: [Hinkal](https://app.hinkal.pro)
171
+ Docs: [Hinkal Documentation](https://hinkal-team.gitbook.io/hinkal)
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../types/circom-data.types.cjs");require("../types/transactions.types.cjs");const t=require("../types/activities.types.cjs"),e=[t.ActivityTypes.SHIELD,t.ActivityTypes.RECIEVE,t.ActivityTypes.ONBOARDING_DEPOSIT,t.ActivityTypes.SEND,t.ActivityTypes.UNSHIELD,t.ActivityTypes.DAPP_INTERACTION];exports.TVL_CHANGER_ACTIVITY_TYPES=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../types/circom-data.types.cjs");const t=require("../types/activities.types.cjs"),i=[t.ActivityTypes.SHIELD,t.ActivityTypes.RECIEVE,t.ActivityTypes.ONBOARDING_DEPOSIT,t.ActivityTypes.SEND,t.ActivityTypes.UNSHIELD,t.ActivityTypes.DAPP_INTERACTION];exports.TVL_CHANGER_ACTIVITY_TYPES=i;
@@ -1,5 +1,4 @@
1
1
  import "../types/circom-data.types.mjs";
2
- import "../types/transactions.types.mjs";
3
2
  import { ActivityTypes as E } from "../types/activities.types.mjs";
4
3
  const N = [
5
4
  E.SHIELD,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../types/circom-data.types.cjs");const E=require("../types/external-action.types.cjs");require("../types/transactions.types.cjs");require("../types/activities.types.cjs");const a=require("./chains.constants.cjs"),n="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",c={[E.ExternalActionId.Uniswap]:{[a.chainIds.ethMainnet]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.polygon]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.optimism]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.arbMainnet]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.bnbMainnet]:"0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2",[a.chainIds.avalanche]:"0xbb00FF08d01D300023C629E8fFfFcb65A5a578cE",[a.chainIds.base]:"0x2626664c2603336E57B271c5C0b26F421741e481"},[E.ExternalActionId.Odos]:{[a.chainIds.ethMainnet]:"0xCf5540fFFCdC3d510B18bFcA6d2b9987b0772559",[a.chainIds.polygon]:"0x4E3288c9ca110bCC82bf38F09A7b425c095d92Bf",[a.chainIds.optimism]:"0xCa423977156BB05b13A2BA3b76Bc5419E2fE9680",[a.chainIds.arbMainnet]:"0xa669e7A0d4b3e4Fa48af2dE86BD4CD7126Be4e13",[a.chainIds.bnbMainnet]:"0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E",[a.chainIds.avalanche]:"0x88de50B233052e4Fb783d4F6db78Cc34fEa3e9FC",[a.chainIds.base]:"0x19cEeAd7105607Cd444F5ad10dd51356436095a1"},[E.ExternalActionId.OneInch]:{[a.chainIds.ethMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.polygon]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.optimism]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.arbMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.bnbMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.avalanche]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.base]:"0x1111111254EEB25477B68fb85Ed929f73A960582"},[E.ExternalActionId.Lifi]:{[a.chainIds.ethMainnet]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",[a.chainIds.polygon]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",[a.chainIds.optimism]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",[a.chainIds.arbMainnet]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",[a.chainIds.bnbMainnet]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",[a.chainIds.avalanche]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",[a.chainIds.base]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"}},e={[a.chainIds.ethMainnet]:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",[a.chainIds.polygon]:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",[a.chainIds.optimism]:"0x4200000000000000000000000000000000000006",[a.chainIds.arbMainnet]:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",[a.chainIds.bnbMainnet]:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",[a.chainIds.avalanche]:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",[a.chainIds.base]:"0x4200000000000000000000000000000000000006"},d={[a.chainIds.ethMainnet]:"0xdaC7Fb8AC2e47F412e8556Fd13256D90FBae08CD",[a.chainIds.polygon]:"0x9759Baf5eEfa817E3FdF4C488ED51a334e948C05",[a.chainIds.optimism]:"0xDe6A7d13c7E01582F5989b14cdf64d4bc6608364",[a.chainIds.arbMainnet]:"0xF43D84490c6A155f2DDDF501db378D77151590f4",[a.chainIds.bnbMainnet]:"0x5fa6773A7dC2CA3fB411f9Ef157F30e91aa1e53d",[a.chainIds.avalanche]:"0xD201f9ae495b23805C12ed74a816AE4ef0c00b05",[a.chainIds.base]:"0x86B9e7F2698C0776b988085b5Ca8d7D6A1Dff74b"},i={[a.chainIds.ethMainnet]:"0x1D69943ea7D9874b43f9FbcC2B6a4f0f433F602d",[a.chainIds.polygon]:"0x5181606B45302Bb7b83e03DC7c5390ec9e4d973f",[a.chainIds.optimism]:"0x0720a259A8CaBb9ef0F6a6334fEB4da5f45a8579",[a.chainIds.arbMainnet]:"0x7ae4AD3f4D2df012807C3CC50fc0d4bB19Cc9800",[a.chainIds.bnbMainnet]:"0x4200000000000000000000000000000000000000",[a.chainIds.avalanche]:"0x4200000000000000000000000000000000000000",[a.chainIds.base]:"0xB69B207994506697196E5C1Ce40233c06040BB79"};exports.NATIVE_TOKEN_WRAPPER_ADDRESSES=e;exports.SWAP_FEE_TAKER_ADDRESSES=i;exports.SWAP_ROUTER_ADDRESSES=c;exports.WETH_ERC20_TOKEN_ADDRESS=n;exports.WRAPPER_TOKEN_EXCHANGE_ADDRESSES=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../types/circom-data.types.cjs");const E=require("../types/external-action.types.cjs");require("../types/activities.types.cjs");const a=require("./chains.constants.cjs"),n="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",c={[E.ExternalActionId.Uniswap]:{[a.chainIds.ethMainnet]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.polygon]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.optimism]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.arbMainnet]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.bnbMainnet]:"0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2",[a.chainIds.avalanche]:"0xbb00FF08d01D300023C629E8fFfFcb65A5a578cE",[a.chainIds.base]:"0x2626664c2603336E57B271c5C0b26F421741e481"},[E.ExternalActionId.Odos]:{[a.chainIds.ethMainnet]:"0xCf5540fFFCdC3d510B18bFcA6d2b9987b0772559",[a.chainIds.polygon]:"0x4E3288c9ca110bCC82bf38F09A7b425c095d92Bf",[a.chainIds.optimism]:"0xCa423977156BB05b13A2BA3b76Bc5419E2fE9680",[a.chainIds.arbMainnet]:"0xa669e7A0d4b3e4Fa48af2dE86BD4CD7126Be4e13",[a.chainIds.bnbMainnet]:"0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E",[a.chainIds.avalanche]:"0x88de50B233052e4Fb783d4F6db78Cc34fEa3e9FC",[a.chainIds.base]:"0x19cEeAd7105607Cd444F5ad10dd51356436095a1"},[E.ExternalActionId.OneInch]:{[a.chainIds.ethMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.polygon]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.optimism]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.arbMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.bnbMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.avalanche]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.base]:"0x1111111254EEB25477B68fb85Ed929f73A960582"},[E.ExternalActionId.Lifi]:{[a.chainIds.ethMainnet]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",[a.chainIds.polygon]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",[a.chainIds.optimism]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",[a.chainIds.arbMainnet]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",[a.chainIds.bnbMainnet]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",[a.chainIds.avalanche]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",[a.chainIds.base]:"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"}},e={[a.chainIds.ethMainnet]:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",[a.chainIds.polygon]:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",[a.chainIds.optimism]:"0x4200000000000000000000000000000000000006",[a.chainIds.arbMainnet]:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",[a.chainIds.bnbMainnet]:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",[a.chainIds.avalanche]:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",[a.chainIds.base]:"0x4200000000000000000000000000000000000006"},d={[a.chainIds.ethMainnet]:"0xdaC7Fb8AC2e47F412e8556Fd13256D90FBae08CD",[a.chainIds.polygon]:"0x9759Baf5eEfa817E3FdF4C488ED51a334e948C05",[a.chainIds.optimism]:"0xDe6A7d13c7E01582F5989b14cdf64d4bc6608364",[a.chainIds.arbMainnet]:"0xF43D84490c6A155f2DDDF501db378D77151590f4",[a.chainIds.bnbMainnet]:"0x5fa6773A7dC2CA3fB411f9Ef157F30e91aa1e53d",[a.chainIds.avalanche]:"0xD201f9ae495b23805C12ed74a816AE4ef0c00b05",[a.chainIds.base]:"0x86B9e7F2698C0776b988085b5Ca8d7D6A1Dff74b"},i={[a.chainIds.ethMainnet]:"0x1D69943ea7D9874b43f9FbcC2B6a4f0f433F602d",[a.chainIds.polygon]:"0x5181606B45302Bb7b83e03DC7c5390ec9e4d973f",[a.chainIds.optimism]:"0x0720a259A8CaBb9ef0F6a6334fEB4da5f45a8579",[a.chainIds.arbMainnet]:"0x7ae4AD3f4D2df012807C3CC50fc0d4bB19Cc9800",[a.chainIds.bnbMainnet]:"0x4200000000000000000000000000000000000000",[a.chainIds.avalanche]:"0x4200000000000000000000000000000000000000",[a.chainIds.base]:"0xB69B207994506697196E5C1Ce40233c06040BB79"};exports.NATIVE_TOKEN_WRAPPER_ADDRESSES=e;exports.SWAP_FEE_TAKER_ADDRESSES=i;exports.SWAP_ROUTER_ADDRESSES=c;exports.WETH_ERC20_TOKEN_ADDRESS=n;exports.WRAPPER_TOKEN_EXCHANGE_ADDRESSES=d;
@@ -1,9 +1,8 @@
1
1
  import "../types/circom-data.types.mjs";
2
2
  import { ExternalActionId as a } from "../types/external-action.types.mjs";
3
- import "../types/transactions.types.mjs";
4
3
  import "../types/activities.types.mjs";
5
4
  import { chainIds as E } from "./chains.constants.mjs";
6
- const F = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", A = {
5
+ const D = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", F = {
7
6
  [a.Uniswap]: {
8
7
  [E.ethMainnet]: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
9
8
  [E.polygon]: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
@@ -43,7 +42,7 @@ const F = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", A = {
43
42
  [E.avalanche]: "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
44
43
  [E.base]: "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"
45
44
  }
46
- }, c = {
45
+ }, A = {
47
46
  [E.ethMainnet]: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
48
47
  [E.polygon]: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
49
48
  [E.optimism]: "0x4200000000000000000000000000000000000006",
@@ -51,7 +50,7 @@ const F = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", A = {
51
50
  [E.bnbMainnet]: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
52
51
  [E.avalanche]: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
53
52
  [E.base]: "0x4200000000000000000000000000000000000006"
54
- }, d = {
53
+ }, c = {
55
54
  [E.ethMainnet]: "0xdaC7Fb8AC2e47F412e8556Fd13256D90FBae08CD",
56
55
  [E.polygon]: "0x9759Baf5eEfa817E3FdF4C488ED51a334e948C05",
57
56
  [E.optimism]: "0xDe6A7d13c7E01582F5989b14cdf64d4bc6608364",
@@ -59,7 +58,7 @@ const F = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", A = {
59
58
  [E.bnbMainnet]: "0x5fa6773A7dC2CA3fB411f9Ef157F30e91aa1e53d",
60
59
  [E.avalanche]: "0xD201f9ae495b23805C12ed74a816AE4ef0c00b05",
61
60
  [E.base]: "0x86B9e7F2698C0776b988085b5Ca8d7D6A1Dff74b"
62
- }, x = {
61
+ }, d = {
63
62
  [E.ethMainnet]: "0x1D69943ea7D9874b43f9FbcC2B6a4f0f433F602d",
64
63
  [E.polygon]: "0x5181606B45302Bb7b83e03DC7c5390ec9e4d973f",
65
64
  [E.optimism]: "0x0720a259A8CaBb9ef0F6a6334fEB4da5f45a8579",
@@ -71,9 +70,9 @@ const F = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", A = {
71
70
  [E.base]: "0xB69B207994506697196E5C1Ce40233c06040BB79"
72
71
  };
73
72
  export {
74
- c as NATIVE_TOKEN_WRAPPER_ADDRESSES,
75
- x as SWAP_FEE_TAKER_ADDRESSES,
76
- A as SWAP_ROUTER_ADDRESSES,
77
- F as WETH_ERC20_TOKEN_ADDRESS,
78
- d as WRAPPER_TOKEN_EXCHANGE_ADDRESSES
73
+ A as NATIVE_TOKEN_WRAPPER_ADDRESSES,
74
+ d as SWAP_FEE_TAKER_ADDRESSES,
75
+ F as SWAP_ROUTER_ADDRESSES,
76
+ D as WETH_ERC20_TOKEN_ADDRESS,
77
+ c as WRAPPER_TOKEN_EXCHANGE_ADDRESSES
79
78
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./deploy-data/deploy-data-bnbMainnet.json.cjs"),d=require("./deploy-data/deploy-data-arbMainnet.json.cjs"),m=require("./deploy-data/deploy-data-ethMainnet.json.cjs"),h=require("./deploy-data/deploy-data-optimism.json.cjs"),u=require("./deploy-data/deploy-data-polygon.json.cjs"),y=require("./deploy-data/deploy-data-avalanche.json.cjs"),b=require("./deploy-data/deploy-data-base.json.cjs"),f=require("./deploy-data/deploy-data-localhost.json.cjs"),A=require("./deploy-data/deploy-data-arcTestnet.json.cjs"),o=require("./deploy-data/deploy-data-solana.json.cjs"),s=require("./vite.constants.cjs"),t={polygon:137,arbMainnet:42161,ethMainnet:1,avalanche:43114,bnbMainnet:56,optimism:10,base:8453,localhost:31337,arcTestnet:5042002,solanaMainnet:501,solanaLocalnet:102},D="4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ",n=t.ethMainnet,r=e=>!![t.localhost].includes(e),g=e=>e?r(e)?n:e:n,i="X4IiEZsSzGOrJq8tzq7Y3",a=s.isNotProduction?i:"XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",E="https://mainnet.helius-rpc.com/?api-key=24718f72-c710-45d6-853e-d447cf530579",c={[t.ethMainnet]:{name:"Ethereum",chainId:t.ethMainnet,rpcUrl:"https://rpc.ankr.com/eth",fetchRpcUrl:`https://eth-mainnet.g.alchemy.com/v2/${a}`,wsRpcUrl:`wss://eth-mainnet.g.alchemy.com/v2/${a}`,supported:!0,contractData:m.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:1,privateMempoolRpcUrl:"https://relay.flashbots.net",maxPageSize:9e5},[t.arbMainnet]:{name:"Arbitrum",chainId:t.arbMainnet,rpcUrl:"https://endpoints.omniatech.io/v1/arbitrum/one/public",fetchRpcUrl:`https://arb-mainnet.g.alchemy.com/v2/${a}`,wsRpcUrl:`wss://arb-mainnet.g.alchemy.com/v2/${a}`,supported:!0,contractData:d.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:2,maxPageSize:5e5},[t.optimism]:{name:"Optimism",chainId:t.optimism,rpcUrl:"https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",fetchRpcUrl:`https://opt-mainnet.g.alchemy.com/v2/${a}`,wsRpcUrl:`wss://opt-mainnet.g.alchemy.com/v2/${a}`,supported:!0,contractData:h.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:3,maxPageSize:9e5},[t.polygon]:{name:"Polygon",chainId:t.polygon,rpcUrl:"https://polygon-rpc.com",fetchRpcUrl:`https://polygon-mainnet.g.alchemy.com/v2/${a}`,wsRpcUrl:`wss://polygon-mainnet.g.alchemy.com/v2/${a}`,supported:!0,contractData:u.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:4,maxPageSize:9e5},[t.avalanche]:{name:"Avalanche",chainId:t.avalanche,rpcUrl:"https://api.avax.network/ext/bc/C/rpc",fetchRpcUrl:`https://avax-mainnet.g.alchemy.com/v2/${a}`,wsRpcUrl:`wss://avax-mainnet.g.alchemy.com/v2/${a}`,supported:!0,contractData:y.default,quoterV2Address:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",uniswapV3FactoryAddress:"0x740b1c1de25031C31FF4fC9A62f554A55cdC1baD",priority:5},[t.bnbMainnet]:{name:"BNB Chain",chainId:t.bnbMainnet,rpcUrl:"https://bsc-dataseed.binance.org",fetchRpcUrl:`https://bnb-mainnet.g.alchemy.com/v2/${a}`,wsRpcUrl:`wss://bnb-mainnet.g.alchemy.com/v2/${a}`,supported:!0,contractData:l.default,quoterV2Address:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",uniswapV3FactoryAddress:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",priority:6},[t.base]:{name:"Base",chainId:t.base,rpcUrl:"https://mainnet.base.org/",fetchRpcUrl:`https://base-mainnet.g.alchemy.com/v2/${a}`,wsRpcUrl:`wss://base-mainnet.g.alchemy.com/v2/${a}`,supported:!0,contractData:b.default,quoterV2Address:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",uniswapV3FactoryAddress:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",priority:7,maxPageSize:5e5},[t.arcTestnet]:{name:"Arc Testnet",chainId:t.arcTestnet,rpcUrl:`https://arc-testnet.g.alchemy.com/v2/${a}`,fetchRpcUrl:`https://arc-testnet.g.alchemy.com/v2/${a}`,wsRpcUrl:`wss://arc-testnet.g.alchemy.com/v2/${a}`,supported:!0,contractData:A.default,priority:8,maxPageSize:9999},[t.solanaMainnet]:{name:"Solana",chainId:t.solanaMainnet,rpcUrl:"https://api.mainnet-beta.solana.com",fetchRpcUrl:"https://mainnet.helius-rpc.com/?api-key=54ad9ec9-dad6-41de-b961-e3e8ea7a7188",supported:!0,contractData:o.default,priority:8},[t.solanaLocalnet]:{name:"Solana Localnet",chainId:t.solanaLocalnet,rpcUrl:"http://127.0.0.1:8899",fetchRpcUrl:"http://127.0.0.1:8899",supported:!0,contractData:o.default,priority:9},...s.isDevelopment?{}:{}},U={name:"Localhost",chainId:t.localhost,rpcUrl:"http://127.0.0.1:8545",fetchRpcUrl:"http://127.0.0.1:8545",supported:!0,contractData:f.default,quoterV2Address:c[n].quoterV2Address,uniswapV3FactoryAddress:c[n].uniswapV3FactoryAddress,priority:7};s.isDevelopment&&(c[t.localhost]=U);var p=(e=>(e.Mainnet="Mainnet",e.Testnet="Testnet",e.Local="Local",e))(p||{});const F={Mainnet:[t.polygon,t.arbMainnet,t.ethMainnet,t.bnbMainnet,t.optimism,t.avalanche,t.base],Testnet:[t.arcTestnet],Local:[t.localhost]},M=e=>[t.optimism,t.base].includes(e),v=e=>[t.solanaMainnet,t.solanaLocalnet].includes(e),w=[t.ethMainnet,t.optimism,t.base,t.polygon,t.arbMainnet,t.arcTestnet,t.solanaMainnet],R=[t.ethMainnet,t.optimism,t.base,t.polygon,t.arbMainnet];exports.ALCHEMY_API_KEY=a;exports.ALCHEMY_TEST_KEY=i;exports.BRIDGE_SUPPORTED_CHAINS=R;exports.EthereumNetworkType=p;exports.HELIUS_RPC_URL=E;exports.WALLET_SUPPORTED_CHAINS=w;exports.chainIds=t;exports.chainIdsByType=F;exports.getNonLocalhostChainId=g;exports.isLocalNetwork=r;exports.isOptimismLike=M;exports.isSolanaLike=v;exports.localhostNetwork=n;exports.networkRegistry=c;exports.solanaChainIdStr=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./deploy-data/deploy-data-bnbMainnet.json.cjs"),d=require("./deploy-data/deploy-data-arbMainnet.json.cjs"),h=require("./deploy-data/deploy-data-ethMainnet.json.cjs"),u=require("./deploy-data/deploy-data-optimism.json.cjs"),m=require("./deploy-data/deploy-data-polygon.json.cjs"),b=require("./deploy-data/deploy-data-avalanche.json.cjs"),y=require("./deploy-data/deploy-data-base.json.cjs"),A=require("./deploy-data/deploy-data-localhost.json.cjs"),f=require("./deploy-data/deploy-data-arcTestnet.json.cjs"),c=require("./deploy-data/deploy-data-solana.json.cjs"),r=require("./vite.constants.cjs"),t={polygon:137,arbMainnet:42161,ethMainnet:1,avalanche:43114,bnbMainnet:56,optimism:10,base:8453,bnbTestnet:97,polygonMumbai:80001,mainnetSepolia:11155111,optimismSepolia:11155420,localhost:31337,hardhat:31337,arcTestnet:5042002,solanaMainnet:501,solanaLocalnet:102},D="4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ",n=t.ethMainnet,s=a=>!![t.localhost].includes(a),E=a=>a?s(a)?n:a:n,i="X4IiEZsSzGOrJq8tzq7Y3",e=r.isNotProduction?i:"XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",F="https://mainnet.helius-rpc.com/?api-key=24718f72-c710-45d6-853e-d447cf530579",o={[t.ethMainnet]:{name:"Ethereum",chainId:t.ethMainnet,rpcUrl:"https://rpc.ankr.com/eth",fetchRpcUrl:`https://eth-mainnet.g.alchemy.com/v2/${e}`,supported:!0,contractData:h.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:1,privateMempoolRpcUrl:"https://relay.flashbots.net"},[t.arbMainnet]:{name:"Arbitrum",chainId:t.arbMainnet,rpcUrl:"https://endpoints.omniatech.io/v1/arbitrum/one/public",fetchRpcUrl:`https://arb-mainnet.g.alchemy.com/v2/${e}`,supported:!0,contractData:d.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:2},[t.optimism]:{name:"Optimism",chainId:t.optimism,rpcUrl:"https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",fetchRpcUrl:`https://opt-mainnet.g.alchemy.com/v2/${e}`,supported:!0,contractData:u.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:3},[t.polygon]:{name:"Polygon",chainId:t.polygon,rpcUrl:"https://polygon-rpc.com",fetchRpcUrl:`https://polygon-mainnet.g.alchemy.com/v2/${e}`,supported:!0,contractData:m.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:4,maxPageSize:1e6},[t.avalanche]:{name:"Avalanche",chainId:t.avalanche,rpcUrl:"https://api.avax.network/ext/bc/C/rpc",fetchRpcUrl:`https://avax-mainnet.g.alchemy.com/v2/${e}`,supported:!0,contractData:b.default,quoterV2Address:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",uniswapV3FactoryAddress:"0x740b1c1de25031C31FF4fC9A62f554A55cdC1baD",priority:5},[t.bnbMainnet]:{name:"BNB Chain",chainId:t.bnbMainnet,rpcUrl:"https://bsc-dataseed.binance.org",fetchRpcUrl:`https://bnb-mainnet.g.alchemy.com/v2/${e}`,supported:!0,contractData:l.default,quoterV2Address:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",uniswapV3FactoryAddress:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",priority:6},[t.base]:{name:"Base",chainId:t.base,rpcUrl:"https://mainnet.base.org/",fetchRpcUrl:`https://base-mainnet.g.alchemy.com/v2/${e}`,supported:!0,contractData:y.default,quoterV2Address:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",uniswapV3FactoryAddress:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",priority:7},[t.arcTestnet]:{name:"Arc Testnet",chainId:t.arcTestnet,rpcUrl:`https://arc-testnet.g.alchemy.com/v2/${e}`,fetchRpcUrl:`https://arc-testnet.g.alchemy.com/v2/${e}`,supported:!0,contractData:f.default,priority:8,maxPageSize:9999},[t.solanaMainnet]:{name:"Solana",chainId:t.solanaMainnet,rpcUrl:"https://api.mainnet-beta.solana.com",fetchRpcUrl:"https://wider-side-sunset.solana-mainnet.quiknode.pro/61054262c1a2b13dd570243c5fdd017c05cf7fe1",supported:!0,contractData:c.default,priority:8},[t.solanaLocalnet]:{name:"Solana Localnet",chainId:t.solanaLocalnet,rpcUrl:"http://127.0.0.1:8899",fetchRpcUrl:"http://127.0.0.1:8899",supported:!0,contractData:c.default,priority:9},...r.isDevelopment?{}:{}},I={name:"Localhost",chainId:t.localhost,rpcUrl:"http://127.0.0.1:8545",fetchRpcUrl:"http://127.0.0.1:8545",supported:!0,contractData:A.default,quoterV2Address:o[n].quoterV2Address,uniswapV3FactoryAddress:o[n].uniswapV3FactoryAddress,priority:7};r.isDevelopment&&(o[t.localhost]=I);var p=(a=>(a.Mainnet="Mainnet",a.Testnet="Testnet",a.Local="Local",a))(p||{});const L={Mainnet:[t.polygon,t.arbMainnet,t.ethMainnet,t.bnbMainnet,t.optimism,t.avalanche,t.base],Testnet:[t.bnbTestnet,t.polygonMumbai,t.arcTestnet],Local:[t.localhost]},M=a=>[t.optimism,t.base].includes(a),U=a=>[t.solanaMainnet,t.solanaLocalnet].includes(a),g=t.ethMainnet,T=[t.ethMainnet,t.optimism,t.base,t.polygon,t.arbMainnet,t.arcTestnet],C=[t.ethMainnet,t.optimism,t.base,t.polygon,t.arbMainnet];exports.ALCHEMY_API_KEY=e;exports.ALCHEMY_TEST_KEY=i;exports.BRIDGE_SUPPORTED_CHAINS=C;exports.EthereumNetworkType=p;exports.HELIUS_RPC_URL=F;exports.WALLET_INITIAL_CHAIN_ID=g;exports.WALLET_SUPPORTED_CHAINS=T;exports.chainIds=t;exports.chainIdsByType=L;exports.getNonLocalhostChainId=E;exports.isLocalNetwork=s;exports.isOptimismLike=M;exports.isSolanaLike=U;exports.localhostNetwork=n;exports.networkRegistry=o;exports.solanaChainIdStr=D;
@@ -7,7 +7,12 @@ export declare const chainIds: {
7
7
  bnbMainnet: number;
8
8
  optimism: number;
9
9
  base: number;
10
+ bnbTestnet: number;
11
+ polygonMumbai: number;
12
+ mainnetSepolia: number;
13
+ optimismSepolia: number;
10
14
  localhost: number;
15
+ hardhat: number;
11
16
  arcTestnet: number;
12
17
  solanaMainnet: number;
13
18
  solanaLocalnet: number;
@@ -32,5 +37,6 @@ export declare const chainIdsByType: {
32
37
  };
33
38
  export declare const isOptimismLike: (chainId: number) => boolean;
34
39
  export declare const isSolanaLike: (chainId: number) => boolean;
40
+ export declare const WALLET_INITIAL_CHAIN_ID: number;
35
41
  export declare const WALLET_SUPPORTED_CHAINS: number[];
36
42
  export declare const BRIDGE_SUPPORTED_CHAINS: number[];