@hinkal/common 0.3.2 → 0.3.3

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 (446) hide show
  1. package/README.md +15 -18
  2. package/common/src/API/API.cjs +1 -1
  3. package/common/src/API/API.d.ts +5 -5
  4. package/common/src/API/API.mjs +78 -78
  5. package/common/src/API/callRelayer.d.ts +3 -0
  6. package/common/src/API/enclaveUtxoCalls.cjs +1 -1
  7. package/common/src/API/enclaveUtxoCalls.d.ts +8 -7
  8. package/common/src/API/enclaveUtxoCalls.mjs +5 -3
  9. package/common/src/API/getOdosPriceForToken.cjs +1 -0
  10. package/common/src/API/getOdosPriceForToken.d.ts +1 -0
  11. package/common/src/API/getOdosPriceForToken.mjs +14 -0
  12. package/common/src/API/getWebsiteURL.d.ts +0 -1
  13. package/common/src/API/index.cjs +1 -1
  14. package/common/src/API/index.d.ts +0 -1
  15. package/common/src/API/index.mjs +1 -2
  16. package/common/src/API/rewardsUserCalls.cjs +1 -1
  17. package/common/src/API/rewardsUserCalls.d.ts +0 -2
  18. package/common/src/API/rewardsUserCalls.mjs +2 -3
  19. package/common/src/API/tenderly.api.cjs +1 -1
  20. package/common/src/API/tenderly.api.d.ts +5 -10
  21. package/common/src/API/tenderly.api.mjs +1 -1
  22. package/common/src/constants/addresses.constants.cjs +1 -1
  23. package/common/src/constants/addresses.constants.d.ts +4 -46
  24. package/common/src/constants/addresses.constants.mjs +19 -60
  25. package/common/src/constants/balance.constants.cjs +1 -0
  26. package/common/src/constants/balance.constants.d.ts +1 -0
  27. package/common/src/constants/balance.constants.mjs +4 -0
  28. package/common/src/constants/chains.constants.cjs +1 -1
  29. package/common/src/constants/chains.constants.d.ts +3 -1
  30. package/common/src/constants/chains.constants.mjs +117 -131
  31. package/common/src/constants/coingecko.constants.cjs +1 -1
  32. package/common/src/constants/coingecko.constants.d.ts +2 -0
  33. package/common/src/constants/coingecko.constants.mjs +1 -1
  34. package/common/src/constants/contracts.constants.cjs +1 -1
  35. package/common/src/constants/contracts.constants.d.ts +0 -109
  36. package/common/src/constants/contracts.constants.mjs +13 -22
  37. package/common/src/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
  38. package/common/src/constants/deploy-data/deploy-data-arbMainnet.json.mjs +1 -3
  39. package/common/src/constants/deploy-data/deploy-data-arcTestnet.json.cjs +1 -1
  40. package/common/src/constants/deploy-data/deploy-data-arcTestnet.json.mjs +6 -6
  41. package/common/src/constants/deploy-data/deploy-data-base.json.cjs +1 -1
  42. package/common/src/constants/deploy-data/deploy-data-base.json.mjs +1 -3
  43. package/common/src/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -0
  44. package/common/src/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +10 -0
  45. package/common/src/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
  46. package/common/src/constants/deploy-data/deploy-data-ethMainnet.json.mjs +1 -3
  47. package/common/src/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
  48. package/common/src/constants/deploy-data/deploy-data-localhost.json.mjs +0 -3
  49. package/common/src/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
  50. package/common/src/constants/deploy-data/deploy-data-optimism.json.mjs +6 -8
  51. package/common/src/constants/deploy-data/deploy-data-optimismTest.json.cjs +1 -1
  52. package/common/src/constants/deploy-data/deploy-data-optimismTest.json.mjs +1 -4
  53. package/common/src/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
  54. package/common/src/constants/deploy-data/deploy-data-polygon.json.mjs +1 -3
  55. package/common/src/constants/deploy-data/deploy-data-sepoliaTestnet.json.cjs +1 -1
  56. package/common/src/constants/deploy-data/deploy-data-sepoliaTestnet.json.mjs +0 -1
  57. package/common/src/constants/deploy-data/deploy-data-solana.json.cjs +1 -1
  58. package/common/src/constants/deploy-data/deploy-data-solana.json.mjs +2 -2
  59. package/common/src/constants/deploy-data/deploy-data-tempo.json.cjs +1 -1
  60. package/common/src/constants/deploy-data/deploy-data-tempo.json.mjs +6 -7
  61. package/common/src/constants/deploy-data/deploy-data-tronMainnet.json.cjs +1 -1
  62. package/common/src/constants/deploy-data/deploy-data-tronMainnet.json.mjs +2 -4
  63. package/common/src/constants/deploy-data/deploy-data-tronNile.json.cjs +1 -1
  64. package/common/src/constants/deploy-data/deploy-data-tronNile.json.mjs +2 -4
  65. package/common/src/constants/deploy-data/index.cjs +1 -1
  66. package/common/src/constants/deploy-data/index.d.ts +2 -1
  67. package/common/src/constants/deploy-data/index.mjs +16 -15
  68. package/common/src/constants/deploy-data/shared-deploy-data-solana.json.cjs +1 -1
  69. package/common/src/constants/deploy-data/shared-deploy-data-solana.json.mjs +1 -1
  70. package/common/src/constants/deploy-data/shared-deploy-data-tron.json.cjs +1 -1
  71. package/common/src/constants/deploy-data/shared-deploy-data-tron.json.mjs +2 -35
  72. package/common/src/constants/events.constants.cjs +1 -1
  73. package/common/src/constants/events.constants.mjs +3 -2
  74. package/common/src/constants/fees.constants.cjs +1 -1
  75. package/common/src/constants/fees.constants.mjs +2 -2
  76. package/common/src/constants/index.cjs +1 -1
  77. package/common/src/constants/index.d.ts +0 -1
  78. package/common/src/constants/index.mjs +1 -0
  79. package/common/src/constants/protocol.constants.cjs +2 -2
  80. package/common/src/constants/protocol.constants.d.ts +3 -1
  81. package/common/src/constants/protocol.constants.mjs +2 -2
  82. package/common/src/constants/server.constants.cjs +1 -1
  83. package/common/src/constants/server.constants.d.ts +1 -2
  84. package/common/src/constants/server.constants.mjs +1 -2
  85. package/common/src/constants/tokens.constants.cjs +1 -1
  86. package/common/src/constants/tokens.constants.mjs +1 -1
  87. package/common/src/data-structures/Hinkal/Hinkal.cjs +1 -1
  88. package/common/src/data-structures/Hinkal/Hinkal.mjs +26 -22
  89. package/common/src/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
  90. package/common/src/data-structures/Hinkal/handleAutoDepositBack.d.ts +1 -1
  91. package/common/src/data-structures/Hinkal/handleAutoDepositBack.mjs +36 -35
  92. package/common/src/data-structures/Hinkal/hinkalActionReceive.cjs +1 -1
  93. package/common/src/data-structures/Hinkal/hinkalActionReceive.mjs +3 -3
  94. package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.cjs +1 -1
  95. package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.mjs +60 -58
  96. package/common/src/data-structures/Hinkal/hinkalClaimUtxo.cjs +1 -1
  97. package/common/src/data-structures/Hinkal/hinkalClaimUtxo.mjs +42 -47
  98. package/common/src/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
  99. package/common/src/data-structures/Hinkal/hinkalDeposit.d.ts +1 -0
  100. package/common/src/data-structures/Hinkal/hinkalDeposit.mjs +50 -116
  101. package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.cjs +1 -1
  102. package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.mjs +102 -92
  103. package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
  104. package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +3 -2
  105. package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +104 -59
  106. package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -1
  107. package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +4 -4
  108. package/common/src/data-structures/Hinkal/hinkalNearDepositAndBridge.cjs +1 -1
  109. package/common/src/data-structures/Hinkal/hinkalNearDepositAndBridge.mjs +7 -3
  110. package/common/src/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
  111. package/common/src/data-structures/Hinkal/hinkalPrivateWallet.mjs +51 -39
  112. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -1
  113. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +1 -2
  114. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.mjs +53 -131
  115. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.cjs +1 -1
  116. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.d.ts +1 -1
  117. package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.mjs +29 -47
  118. package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -1
  119. package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.mjs +3 -3
  120. package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.cjs +1 -1
  121. package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.mjs +70 -45
  122. package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
  123. package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +2 -2
  124. package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.mjs +47 -45
  125. package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
  126. package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +8 -4
  127. package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +133 -81
  128. package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.cjs +1 -1
  129. package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.d.ts +1 -1
  130. package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.mjs +16 -12
  131. package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -1
  132. package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.d.ts +2 -2
  133. package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +61 -54
  134. package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -1
  135. package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +1 -1
  136. package/common/src/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -1
  137. package/common/src/data-structures/Hinkal/hinkalSolanaSwap.mjs +87 -51
  138. package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -1
  139. package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.d.ts +1 -0
  140. package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.mjs +95 -50
  141. package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -1
  142. package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +60 -34
  143. package/common/src/data-structures/Hinkal/hinkalSwap.cjs +1 -1
  144. package/common/src/data-structures/Hinkal/hinkalSwap.mjs +29 -32
  145. package/common/src/data-structures/Hinkal/hinkalTransact.cjs +1 -0
  146. package/common/src/data-structures/Hinkal/hinkalTransact.d.ts +3 -0
  147. package/common/src/data-structures/Hinkal/hinkalTransact.mjs +90 -0
  148. package/common/src/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
  149. package/common/src/data-structures/Hinkal/hinkalTransfer.mjs +40 -45
  150. package/common/src/data-structures/Hinkal/hinkalTronDepositToSelf.cjs +1 -0
  151. package/common/src/data-structures/Hinkal/hinkalTronDepositToSelf.d.ts +8 -0
  152. package/common/src/data-structures/Hinkal/hinkalTronDepositToSelf.mjs +30 -0
  153. package/common/src/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
  154. package/common/src/data-structures/Hinkal/hinkalWithdraw.mjs +35 -45
  155. package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
  156. package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +167 -95
  157. package/common/src/data-structures/Hinkal/prepareTronDepositToSelf.cjs +1 -0
  158. package/common/src/data-structures/Hinkal/prepareTronDepositToSelf.d.ts +27 -0
  159. package/common/src/data-structures/Hinkal/prepareTronDepositToSelf.mjs +31 -0
  160. package/common/src/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
  161. package/common/src/data-structures/Hinkal/resetMerkleTrees.mjs +1 -0
  162. package/common/src/data-structures/IndexedDB/activity-db.cjs +1 -1
  163. package/common/src/data-structures/IndexedDB/activity-db.mjs +34 -34
  164. package/common/src/data-structures/IndexedDB/signatures-db.cjs +1 -1
  165. package/common/src/data-structures/IndexedDB/signatures-db.mjs +11 -11
  166. package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +1 -1
  167. package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +11 -10
  168. package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.cjs +1 -1
  169. package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.mjs +14 -14
  170. package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -1
  171. package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.mjs +26 -26
  172. package/common/src/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -1
  173. package/common/src/data-structures/TokenDBs/PrivateTokensDB.mjs +15 -15
  174. package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.cjs +1 -1
  175. package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.mjs +12 -16
  176. package/common/src/data-structures/TokenDBs/TronPublicTokensDB.cjs +1 -1
  177. package/common/src/data-structures/TokenDBs/TronPublicTokensDB.d.ts +1 -0
  178. package/common/src/data-structures/TokenDBs/TronPublicTokensDB.mjs +8 -4
  179. package/common/src/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
  180. package/common/src/data-structures/crypto-keys/decodeUTXO.d.ts +1 -0
  181. package/common/src/data-structures/crypto-keys/decodeUTXO.mjs +12 -12
  182. package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -1
  183. package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.mjs +12 -12
  184. package/common/src/data-structures/event-service/helpers/ClientEventHelper.cjs +1 -1
  185. package/common/src/data-structures/event-service/helpers/ClientEventHelper.mjs +6 -6
  186. package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs +1 -1
  187. package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +27 -23
  188. package/common/src/data-structures/merkle-tree/MerkleTree.cjs +1 -1
  189. package/common/src/data-structures/merkle-tree/MerkleTree.d.ts +10 -0
  190. package/common/src/data-structures/merkle-tree/MerkleTree.mjs +9 -1
  191. package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.cjs +1 -1
  192. package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.d.ts +3 -0
  193. package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.mjs +64 -54
  194. package/common/src/error-handling/error-codes.constants.cjs +1 -1
  195. package/common/src/error-handling/error-codes.constants.d.ts +6 -11
  196. package/common/src/error-handling/error-codes.constants.mjs +8 -13
  197. package/common/src/error-handling/get-error.message.cjs +1 -1
  198. package/common/src/error-handling/get-error.message.mjs +27 -14
  199. package/common/src/externalABIs/index.cjs +1 -1
  200. package/common/src/externalABIs/index.d.ts +1 -113
  201. package/common/src/externalABIs/index.mjs +2 -6
  202. package/common/src/functions/auto-deposit-back-helpers/select-gas-token.cjs +1 -1
  203. package/common/src/functions/auto-deposit-back-helpers/select-gas-token.mjs +8 -8
  204. package/common/src/functions/index.cjs +1 -1
  205. package/common/src/functions/index.d.ts +0 -1
  206. package/common/src/functions/index.mjs +12 -15
  207. package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.cjs +1 -1
  208. package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.mjs +39 -5
  209. package/common/src/functions/pre-transaction/getExternalSwapAddress.cjs +1 -1
  210. package/common/src/functions/pre-transaction/getExternalSwapAddress.mjs +2 -18
  211. package/common/src/functions/pre-transaction/getSolanaCalldataHash.cjs +1 -1
  212. package/common/src/functions/pre-transaction/getSolanaCalldataHash.d.ts +1 -1
  213. package/common/src/functions/pre-transaction/getSolanaCalldataHash.mjs +11 -10
  214. package/common/src/functions/pre-transaction/getVolatileTransferAmount.cjs +1 -1
  215. package/common/src/functions/pre-transaction/getVolatileTransferAmount.mjs +12 -12
  216. package/common/src/functions/pre-transaction/index.cjs +1 -1
  217. package/common/src/functions/pre-transaction/index.d.ts +1 -2
  218. package/common/src/functions/pre-transaction/index.mjs +1 -2
  219. package/common/src/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
  220. package/common/src/functions/pre-transaction/outputUtxoProcessing.d.ts +1 -1
  221. package/common/src/functions/pre-transaction/outputUtxoProcessing.mjs +7 -8
  222. package/common/src/functions/pre-transaction/solana.cjs +1 -1
  223. package/common/src/functions/pre-transaction/solana.d.ts +13 -0
  224. package/common/src/functions/pre-transaction/solana.mjs +46 -22
  225. package/common/src/functions/pre-transaction/store-proof.cjs +1 -1
  226. package/common/src/functions/pre-transaction/store-proof.d.ts +1 -1
  227. package/common/src/functions/pre-transaction/store-proof.mjs +1 -0
  228. package/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.cjs +1 -1
  229. package/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.mjs +1 -1
  230. package/common/src/functions/private-wallet/emporium.helpers.cjs +1 -1
  231. package/common/src/functions/private-wallet/emporium.helpers.mjs +12 -13
  232. package/common/src/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
  233. package/common/src/functions/private-wallet/emporium.swap.helpers.d.ts +0 -1
  234. package/common/src/functions/private-wallet/emporium.swap.helpers.mjs +38 -80
  235. package/common/src/functions/private-wallet/index.cjs +1 -1
  236. package/common/src/functions/private-wallet/index.d.ts +0 -1
  237. package/common/src/functions/private-wallet/index.mjs +0 -1
  238. package/common/src/functions/snarkjs/common.snarkjs.cjs +1 -1
  239. package/common/src/functions/snarkjs/common.snarkjs.d.ts +2 -2
  240. package/common/src/functions/snarkjs/common.snarkjs.mjs +89 -52
  241. package/common/src/functions/snarkjs/constant.cjs +1 -1
  242. package/common/src/functions/snarkjs/constant.d.ts +32 -0
  243. package/common/src/functions/snarkjs/constant.mjs +32 -0
  244. package/common/src/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
  245. package/common/src/functions/snarkjs/constructGeneralZkProof.d.ts +1 -1
  246. package/common/src/functions/snarkjs/constructGeneralZkProof.mjs +78 -65
  247. package/common/src/functions/snarkjs/constructSolanaZkProof.cjs +1 -1
  248. package/common/src/functions/snarkjs/constructSolanaZkProof.d.ts +4 -1
  249. package/common/src/functions/snarkjs/constructSolanaZkProof.mjs +44 -39
  250. package/common/src/functions/snarkjs/constructTxEnclave.cjs +1 -0
  251. package/common/src/functions/snarkjs/constructTxEnclave.d.ts +32 -0
  252. package/common/src/functions/snarkjs/constructTxEnclave.mjs +162 -0
  253. package/common/src/functions/snarkjs/fetchTronInsertionSiblings.cjs +1 -0
  254. package/common/src/functions/snarkjs/fetchTronInsertionSiblings.d.ts +7 -0
  255. package/common/src/functions/snarkjs/fetchTronInsertionSiblings.mjs +13 -0
  256. package/common/src/functions/snarkjs/generateCircomData.cjs +1 -1
  257. package/common/src/functions/snarkjs/generateCircomData.d.ts +1 -1
  258. package/common/src/functions/snarkjs/generateCircomData.mjs +33 -27
  259. package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.cjs +1 -1
  260. package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.d.ts +1 -1
  261. package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.mjs +7 -7
  262. package/common/src/functions/snarkjs/generateZkProof.cjs +1 -1
  263. package/common/src/functions/snarkjs/generateZkProof.d.ts +1 -1
  264. package/common/src/functions/snarkjs/generateZkProof.mjs +9 -16
  265. package/common/src/functions/snarkjs/signedMessageHash.cjs +1 -1
  266. package/common/src/functions/snarkjs/signedMessageHash.d.ts +11 -0
  267. package/common/src/functions/snarkjs/signedMessageHash.mjs +21 -3
  268. package/common/src/functions/snarkjs/verifySignedEnclaveResponse.cjs +1 -0
  269. package/common/src/functions/snarkjs/verifySignedEnclaveResponse.d.ts +1 -0
  270. package/common/src/functions/snarkjs/verifySignedEnclaveResponse.mjs +11 -0
  271. package/common/src/functions/utils/addresses.cjs +1 -1
  272. package/common/src/functions/utils/addresses.d.ts +1 -0
  273. package/common/src/functions/utils/addresses.mjs +6 -2
  274. package/common/src/functions/utils/buildClaimableDepositPlan.d.ts +2 -2
  275. package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.cjs +1 -1
  276. package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.mjs +1 -1
  277. package/common/src/functions/utils/deposit-claimable.utils.cjs +1 -1
  278. package/common/src/functions/utils/deposit-claimable.utils.d.ts +1 -1
  279. package/common/src/functions/utils/deposit-claimable.utils.mjs +3 -1
  280. package/common/src/functions/utils/enclave-utxo-storage.cjs +1 -1
  281. package/common/src/functions/utils/enclave-utxo-storage.mjs +1 -1
  282. package/common/src/functions/utils/fees.utils.cjs +1 -1
  283. package/common/src/functions/utils/fees.utils.mjs +31 -31
  284. package/common/src/functions/utils/formatter.d.ts +1 -0
  285. package/common/src/functions/utils/getUtxosFromReceipt.utils.cjs +1 -1
  286. package/common/src/functions/utils/getUtxosFromReceipt.utils.mjs +6 -6
  287. package/common/src/functions/utils/getUtxosFromReceiptSolana.cjs +1 -1
  288. package/common/src/functions/utils/getUtxosFromReceiptSolana.mjs +11 -10
  289. package/common/src/functions/utils/index.cjs +1 -1
  290. package/common/src/functions/utils/index.d.ts +2 -2
  291. package/common/src/functions/utils/index.mjs +11 -10
  292. package/common/src/functions/utils/process.utils.cjs +1 -1
  293. package/common/src/functions/utils/process.utils.d.ts +0 -1
  294. package/common/src/functions/utils/process.utils.mjs +2 -11
  295. package/common/src/functions/utils/publicBalance.utils.cjs +1 -1
  296. package/common/src/functions/utils/publicBalance.utils.mjs +2 -1
  297. package/common/src/functions/utils/transfer-claimable.utils.cjs +1 -1
  298. package/common/src/functions/utils/transfer-claimable.utils.mjs +2 -2
  299. package/common/src/functions/utils/tron.utils.cjs +1 -1
  300. package/common/src/functions/utils/tron.utils.d.ts +5 -14
  301. package/common/src/functions/utils/tron.utils.mjs +91 -127
  302. package/common/src/functions/utils/waasStamp.cjs +1 -0
  303. package/common/src/functions/utils/waasStamp.d.ts +5 -0
  304. package/common/src/functions/utils/waasStamp.mjs +2 -0
  305. package/common/src/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
  306. package/common/src/functions/web3/events/getInputUtxoAndBalance.d.ts +3 -8
  307. package/common/src/functions/web3/events/getInputUtxoAndBalance.mjs +44 -48
  308. package/common/src/functions/web3/events/getInputUtxosEnclave.cjs +1 -1
  309. package/common/src/functions/web3/events/getInputUtxosEnclave.d.ts +4 -3
  310. package/common/src/functions/web3/events/getInputUtxosEnclave.mjs +34 -25
  311. package/common/src/functions/web3/events/getShieldedBalance.cjs +1 -1
  312. package/common/src/functions/web3/events/getShieldedBalance.d.ts +1 -1
  313. package/common/src/functions/web3/events/getShieldedBalance.mjs +88 -76
  314. package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.cjs +1 -1
  315. package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +9 -6
  316. package/common/src/functions/web3/functionCalls/approveToken.cjs +1 -1
  317. package/common/src/functions/web3/functionCalls/approveToken.mjs +12 -12
  318. package/common/src/functions/web3/functionCalls/submitProof.cjs +1 -0
  319. package/common/src/functions/web3/functionCalls/submitProof.d.ts +5 -0
  320. package/common/src/functions/web3/functionCalls/submitProof.mjs +26 -0
  321. package/common/src/functions/web3/functionCalls/transactCallDirectTron.cjs +1 -1
  322. package/common/src/functions/web3/functionCalls/transactCallDirectTron.d.ts +7 -3
  323. package/common/src/functions/web3/functionCalls/transactCallDirectTron.mjs +81 -87
  324. package/common/src/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
  325. package/common/src/functions/web3/functionCalls/transactCallRelayer.d.ts +6 -11
  326. package/common/src/functions/web3/functionCalls/transactCallRelayer.mjs +4 -2
  327. package/common/src/functions/web3/functionCalls/waitForErc20Approvals.cjs +1 -1
  328. package/common/src/functions/web3/functionCalls/waitForErc20Approvals.mjs +6 -6
  329. package/common/src/functions/web3/getContractMetadata.cjs +1 -1
  330. package/common/src/functions/web3/getContractMetadata.mjs +1 -1
  331. package/common/src/functions/web3/getTokenHolder.cjs +1 -1
  332. package/common/src/functions/web3/getTokenHolder.mjs +3 -2
  333. package/common/src/functions/web3/index.cjs +1 -1
  334. package/common/src/functions/web3/index.d.ts +0 -3
  335. package/common/src/functions/web3/index.mjs +0 -3
  336. package/common/src/functions/web3/lifiAPI.cjs +1 -1
  337. package/common/src/functions/web3/lifiAPI.mjs +1 -1
  338. package/common/src/providers/TronProviderAdapter.cjs +1 -1
  339. package/common/src/providers/TronProviderAdapter.mjs +7 -1
  340. package/common/src/providers/WagmiProviderAdapter.cjs +1 -1
  341. package/common/src/providers/WagmiProviderAdapter.mjs +5 -5
  342. package/common/src/types/activities.types.cjs +1 -1
  343. package/common/src/types/activities.types.d.ts +0 -9
  344. package/common/src/types/activities.types.mjs +1 -1
  345. package/common/src/types/admin.types.cjs +1 -1
  346. package/common/src/types/admin.types.d.ts +3 -1
  347. package/common/src/types/admin.types.mjs +1 -1
  348. package/common/src/types/bridging-tx.types.d.ts +8 -0
  349. package/common/src/types/cache.types.cjs +1 -1
  350. package/common/src/types/cache.types.d.ts +2 -1
  351. package/common/src/types/cache.types.mjs +1 -1
  352. package/common/src/types/circom-data.types.d.ts +6 -0
  353. package/common/src/types/commitments.types.d.ts +2 -0
  354. package/common/src/types/dashboard-transaction.types.d.ts +3 -0
  355. package/common/src/types/ethereum-network.types.cjs +1 -1
  356. package/common/src/types/ethereum-network.types.d.ts +6 -15
  357. package/common/src/types/ethereum-network.types.mjs +1 -1
  358. package/common/src/types/external-action.types.cjs +1 -1
  359. package/common/src/types/external-action.types.d.ts +2 -5
  360. package/common/src/types/external-action.types.mjs +1 -1
  361. package/common/src/types/hinkal.types.cjs +1 -1
  362. package/common/src/types/hinkal.types.d.ts +4 -7
  363. package/common/src/types/hinkal.types.mjs +1 -1
  364. package/common/src/types/index.cjs +1 -1
  365. package/common/src/types/index.d.ts +2 -0
  366. package/common/src/types/index.mjs +1 -0
  367. package/common/src/types/near-intents.types.d.ts +1 -0
  368. package/common/src/types/offscreen.types.cjs +1 -1
  369. package/common/src/types/offscreen.types.d.ts +0 -1
  370. package/common/src/types/offscreen.types.mjs +1 -1
  371. package/common/src/types/pay-activities.types.d.ts +3 -0
  372. package/common/src/types/remote-proof.types.d.ts +0 -6
  373. package/common/src/types/remote-tx-build.types.d.ts +242 -0
  374. package/common/src/types/scheduled-transactions.types.d.ts +3 -0
  375. package/common/src/types/solana.types.d.ts +7 -0
  376. package/common/src/types/tenderly.api.types.d.ts +70 -0
  377. package/common/src/types/transact.types.cjs +1 -0
  378. package/common/src/types/transact.types.d.ts +53 -0
  379. package/common/src/types/transact.types.mjs +6 -0
  380. package/common/src/webworker/{logError-uy41lNp1.js → logError-CxZzSALU.js} +1 -1
  381. package/common/src/webworker/package.json +12 -12
  382. package/common/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs +1 -1
  383. package/common/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.mjs +1 -1
  384. package/common/src/webworker/snarkjsWorkerNode.cjs +1 -1
  385. package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -1
  386. package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +1 -1
  387. package/common/src/webworker/utxoWorkerNode.cjs +1 -1
  388. package/common/src/webworker/viteWorkerURL.constant.cjs +3 -3
  389. package/common/src/webworker/viteWorkerURL.constant.mjs +3 -3
  390. package/common/src/webworker/workerProxy-swwPYw6e.js +1 -0
  391. package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -1
  392. package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +1 -1
  393. package/common/src/webworker/zkProofWorkerNode.cjs +1 -1
  394. package/index.cjs +1 -1
  395. package/index.mjs +1 -1
  396. package/internal/swapApi.cjs +1 -1
  397. package/internal/swapApi.d.ts +3 -3
  398. package/internal/swapApi.mjs +22 -25
  399. package/package.json +12 -12
  400. package/services/Hinkal.cjs +1 -1
  401. package/services/Hinkal.d.ts +3 -3
  402. package/services/Hinkal.mjs +7 -7
  403. package/types/IHinkal.d.ts +3 -3
  404. package/types/swap.types.d.ts +3 -20
  405. package/common/src/API/callOdosAPI.cjs +0 -1
  406. package/common/src/API/callOdosAPI.d.ts +0 -63
  407. package/common/src/API/callOdosAPI.mjs +0 -18
  408. package/common/src/API/callOneInchAPI.cjs +0 -1
  409. package/common/src/API/callOneInchAPI.d.ts +0 -24
  410. package/common/src/API/callOneInchAPI.mjs +0 -16
  411. package/common/src/constants/rewards.constants.d.ts +0 -2
  412. package/common/src/externalABIs/IQuoterV2.json.cjs +0 -1
  413. package/common/src/externalABIs/IQuoterV2.json.mjs +0 -203
  414. package/common/src/externalABIs/ISwapRouter.json.cjs +0 -1
  415. package/common/src/externalABIs/ISwapRouter.json.mjs +0 -537
  416. package/common/src/externalABIs/IUniswapV3Factory.json.cjs +0 -1
  417. package/common/src/externalABIs/IUniswapV3Factory.json.mjs +0 -188
  418. package/common/src/externalABIs/IUniswapV3Pool.json.cjs +0 -1
  419. package/common/src/externalABIs/IUniswapV3Pool.json.mjs +0 -938
  420. package/common/src/externalABIs/UniswapV2PoolAbi.json.cjs +0 -1
  421. package/common/src/externalABIs/UniswapV2PoolAbi.json.mjs +0 -78
  422. package/common/src/functions/pre-transaction/interaction-to-action.cjs +0 -1
  423. package/common/src/functions/pre-transaction/interaction-to-action.d.ts +0 -2
  424. package/common/src/functions/pre-transaction/interaction-to-action.mjs +0 -1
  425. package/common/src/functions/pre-transaction/recipientUtxoProcessing.cjs +0 -1
  426. package/common/src/functions/pre-transaction/recipientUtxoProcessing.d.ts +0 -3
  427. package/common/src/functions/pre-transaction/recipientUtxoProcessing.mjs +0 -30
  428. package/common/src/functions/private-wallet/opProducer.cjs +0 -1
  429. package/common/src/functions/private-wallet/opProducer.d.ts +0 -5
  430. package/common/src/functions/private-wallet/opProducer.mjs +0 -3
  431. package/common/src/functions/snarkjs/generateZkProofEnclave.cjs +0 -1
  432. package/common/src/functions/snarkjs/generateZkProofEnclave.d.ts +0 -5
  433. package/common/src/functions/snarkjs/generateZkProofEnclave.mjs +0 -27
  434. package/common/src/functions/utils/get-signature-header.cjs +0 -1
  435. package/common/src/functions/utils/get-signature-header.d.ts +0 -5
  436. package/common/src/functions/utils/get-signature-header.mjs +0 -4
  437. package/common/src/functions/web3/odosAPI.cjs +0 -1
  438. package/common/src/functions/web3/odosAPI.d.ts +0 -5
  439. package/common/src/functions/web3/odosAPI.mjs +0 -35
  440. package/common/src/functions/web3/oneInchAPI.cjs +0 -1
  441. package/common/src/functions/web3/oneInchAPI.d.ts +0 -5
  442. package/common/src/functions/web3/oneInchAPI.mjs +0 -44
  443. package/common/src/functions/web3/uniswapAPI.cjs +0 -1
  444. package/common/src/functions/web3/uniswapAPI.d.ts +0 -16
  445. package/common/src/functions/web3/uniswapAPI.mjs +0 -60
  446. package/common/src/webworker/workerProxy-MheXtWa4.js +0 -1
package/README.md CHANGED
@@ -365,7 +365,7 @@ Possible values for `ScheduledTransactionStatus` are:
365
365
 
366
366
  ### Swapping tokens from the shielded balance
367
367
 
368
- 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.
368
+ Swapping allows you to exchange tokens directly from your shielded balance without revealing your identity. On EVM chains the swap is executed through the LI.FI aggregator (OKX on Solana) while keeping your transaction private. Your tokens are withdrawn from your shielded balance, swapped through the aggregator, and the resulting tokens are deposited back into your shielded balance—all in a single private transaction.
369
369
 
370
370
  A user can swap tokens directly from their shielded balance using:
371
371
 
@@ -383,14 +383,14 @@ function swap(
383
383
 
384
384
  where:
385
385
 
386
- - `externalActionId` — swap protocol to use (`ExternalActionId.Uniswap`, `ExternalActionId.OneInch`, `ExternalActionId.Odos`, etc.)
386
+ - `externalActionId` — swap external action to use (`ExternalActionId.Lifi` on EVM, `ExternalActionId.Okx` on Solana)
387
387
  - `swapData` — encoded swap parameters for the chosen protocol
388
388
  - `feeToken` — optional fee-payment token address
389
389
  - `feeStructureOverride` — optional custom fee structure
390
390
 
391
391
  **Getting swap quotes and calldata:**
392
392
 
393
- Fetch quotes from all supported aggregators for a chain in one call.
393
+ Fetch the swap quote for a chain in one call.
394
394
 
395
395
  **EVM chains:**
396
396
 
@@ -400,22 +400,19 @@ function getEvmSwapPrices(
400
400
  inSwapAmount: string,
401
401
  inSwapTokenAddress: string,
402
402
  outSwapTokenAddress: string,
403
- ): Promise<EvmSwapPrices>;
403
+ ): Promise<EvmSwapPrice | null>;
404
404
  ```
405
405
 
406
406
  ```typescript
407
- type EvmSwapPrices = {
408
- uniswap: { tokenPrice: bigint; poolFee: string } | null;
409
- odos: { outSwapAmountValue: bigint; odosDataValue: string } | null;
410
- oneInch: { outSwapAmountValue: bigint; oneInchDataValue: string } | null;
407
+ type EvmSwapPrice = {
408
+ outSwapAmountValue: bigint;
409
+ lifiDataValue: string;
411
410
  };
412
411
  ```
413
412
 
414
- Pass the swap calldata from the chosen quote to `swap` as `swapData`, with the matching `externalActionId`:
413
+ Returns `null` if no quote could be fetched. Pass the swap calldata from the quote to `swap` as `swapData`, with `ExternalActionId.Lifi` (`outSwapAmountValue` is the quoted output amount):
415
414
 
416
- - **Uniswap** — `uniswap.poolFee` with `ExternalActionId.Uniswap` (`uniswap.tokenPrice` is the quoted output amount)
417
- - **Odos** — `odos.odosDataValue` with `ExternalActionId.Odos`
418
- - **1Inch** — `oneInch.oneInchDataValue` with `ExternalActionId.OneInch`
415
+ - **LI.FI** — `lifiDataValue` with `ExternalActionId.Lifi`
419
416
 
420
417
  **Solana:**
421
418
 
@@ -425,16 +422,17 @@ function getSolanaSwapPrices(
425
422
  inSwapAmount: string,
426
423
  inSwapTokenAddress: string,
427
424
  outSwapTokenAddress: string,
428
- ): Promise<SolanaSwapPrices>;
425
+ ): Promise<SolanaSwapPrice | null>;
429
426
  ```
430
427
 
431
428
  ```typescript
432
- type SolanaSwapPrices = {
433
- okx: { outSwapAmountValue: bigint; okxDataValue: string } | null;
429
+ type SolanaSwapPrice = {
430
+ outSwapAmountValue: bigint;
431
+ okxDataValue: string;
434
432
  };
435
433
  ```
436
434
 
437
- Pass `okx.okxDataValue` to `swap` as `swapData` with `ExternalActionId.Okx`.
435
+ Returns `null` if no quote could be fetched. Pass `okxDataValue` to `swap` as `swapData` with `ExternalActionId.Okx`.
438
436
 
439
437
  ### Interacting with smart contracts privately
440
438
 
@@ -540,14 +538,13 @@ Hinkal SDK is available on the following blockchain networks:
540
538
  | --------------- | ---------- | ------- |
541
539
  | Ethereum | 1 | ✅ Live |
542
540
  | Arbitrum | 42161 | ✅ Live |
543
- | Optimism | 10 | ✅ Live |
544
541
  | Polygon | 137 | ✅ Live |
545
542
  | Base | 8453 | ✅ Live |
546
543
  | Solana | 501 | ✅ Live |
547
544
  | Tron | 728126428 | ✅ Live |
548
545
  | Tempo | 4217 | ✅ Live |
546
+ | BNB | 56 | ✅ Live |
549
547
  | Arc Testnet | 5042002 | ✅ Live |
550
- | Sepolia Testnet | 11155111 | ✅ Live |
551
548
  | Tron Nile | 3448148188 | ✅ Live |
552
549
 
553
550
  Each chain supports the full suite of Hinkal privacy features including shielding, transfers, and confidential interactions with DeFi protocols.
@@ -1 +1 @@
1
- const e=require(`./scheduled-transactions-calls.cjs`),t=require(`./relayCalls.cjs`),n=require(`./getTokenPrice.cjs`),r=require(`./callOdosAPI.cjs`),i=require(`./simulate-transaction.cjs`),a=require(`./simulate-batch-tx.cjs`),o=require(`./token-calls.cjs`),s=require(`./get-token-data.cjs`),c=require(`./enclaveUtxoCalls.cjs`),l=require(`./rewardsUserCalls.cjs`),u=require(`./weeklyAnalyticCalls.cjs`),d=require(`./proxyAccountsCalls.cjs`),f=require(`./callMonitor.cjs`),p=require(`./callRelayer.cjs`),m=require(`./seedless-calls.cjs`),h=require(`./temporaryWalletCalls.cjs`),g=require(`./onrampCalls.cjs`),_=require(`./get-token-price-chart-data.cjs`),v=require(`./privacy-score-calls.cjs`),y=require(`./privateSendRecipientInfoCalls.cjs`),b=require(`./privateSendNonceCalls.cjs`),x=require(`./snapshot-event-calls.cjs`),S=require(`./privateSendEmailNotificationsCalls.cjs`),C=require(`./tronSubsidyCalls.cjs`),w=require(`./dashboardAccountCalls.cjs`),T=require(`./dashboardContactCalls.cjs`),E=require(`./dashboardPayoutCalls.cjs`),D=require(`./dashboardAccountMemberCalls.cjs`),O=require(`./dashboardBalanceCalls.cjs`),k=require(`./dashboardTransactionCalls.cjs`),A=require(`./payoutNotificationStateCalls.cjs`);var j={getTokenPrices:n.getTokenPrices,getOdosPriceForToken:r.getOdosPriceForToken,getTokenPriceChartData:_.getTokenPriceChartData,getTokenPreviousDayPrices:n.getTokenPreviousDayPrices,getIdleRelay:t.getIdleRelay,getUserAnalytics:u.getUserAnalytics,updateRewardsUser:l.updateRewardsUser,getRewardsUser:l.getRewardsUser,checkUsernameAvailability:l.checkUsernameAvailability,simulateTransaction:i.simulateTransaction,simulateBatchTx:a.simulateBatchTx,tokensInfoCall:o.tokensInfoCall,getTokenData:s.getTokenData,decryptUtxoEnclaveCall:c.decryptUtxoEnclaveCall,storeUtxoEnclaveCall:c.storeUtxoEnclaveCall,getUtxosEnclaveCall:c.getUtxosEnclaveCall,getProxyAccounts:d.getProxyAccounts,updateProxyAccounts:d.updateProxyAccounts,monitor:f.monitor,callRelayerSolanaTransactBatchAPI:p.callRelayerSolanaTransactBatchAPI,seedlessInit:m.seedlessInit,seedlessBackup:m.seedlessBackup,seedlessCheckPassword:m.seedlessCheckPassword,seedlessStatus:m.seedlessStatus,seedlessSalt:m.seedlessSalt,getScheduledTransactions:e.getScheduledTransactions,getTemporaryWalletNonces:h.getTemporaryWalletNonces,addTemporaryWalletNonce:h.addTemporaryWalletNonce,removeTemporaryWalletNonce:h.removeTemporaryWalletNonce,encodeMoonPayBuyUrl:g.encodeMoonPayBuyUrl,generateMoonPayQuote:g.generateMoonPayQuote,getPrivateTransactionRatio:v.getPrivateTransactionRatio,savePrivacyScoreAndGetPrivacyRank:v.savePrivacyScoreAndGetPrivacyRank,allocatePrivateSendRecipientInfos:y.allocatePrivateSendRecipientInfos,syncPrivateSendNonce:b.syncPrivateSendNonce,reservePrivateSendNonceRange:b.reservePrivateSendNonceRange,getSnapshotServerEvents:x.getSnapshotServerEvents,sendPrivateSendEmailNotifications:S.sendPrivateSendEmailNotifications,checkTronSubsidyEligibility:C.checkTronSubsidyEligibility,recordTronSubsidyUsage:C.recordTronSubsidyUsage,getDashboardAccount:w.getDashboardAccount,updateDashboardAccount:w.updateDashboardAccount,addDashboardContact:T.addDashboardContact,deleteDashboardContact:T.deleteDashboardContact,deleteDashboardAccount:w.deleteDashboardAccount,updateDashboardContact:T.updateDashboardContact,getDashboardContacts:T.getDashboardContacts,updateUserProfile:D.updateUserProfile,sendDashboardInvitationEmail:D.sendDashboardInvitationEmail,resolveInviteRequest:D.resolveInviteRequest,deleteInviteRequest:D.deleteInviteRequest,removeMember:D.removeMember,editMember:D.editMember,createDashboardPayout:E.createDashboardPayout,getDashboardPayouts:E.getDashboardPayouts,syncDashboardBalances:O.syncDashboardBalances,getDashboardBalances:O.getDashboardBalances,changePayoutStatus:E.changePayoutStatus,createDashboardTransactions:k.createDashboardTransactions,getDashboardTransactions:k.getDashboardTransactions,getPayoutNotifications:A.getPayoutNotifications,markPayoutNotificationsRead:A.markPayoutNotificationsRead,dismissPayoutNotification:A.dismissPayoutNotification};exports.API=j;
1
+ const e=require(`./scheduled-transactions-calls.cjs`),t=require(`./relayCalls.cjs`),n=require(`./getTokenPrice.cjs`),r=require(`./getOdosPriceForToken.cjs`),i=require(`./simulate-transaction.cjs`),a=require(`./simulate-batch-tx.cjs`),o=require(`./token-calls.cjs`),s=require(`./get-token-data.cjs`),c=require(`./proxyAccountsCalls.cjs`),l=require(`./callMonitor.cjs`),u=require(`./callRelayer.cjs`),d=require(`./seedless-calls.cjs`),f=require(`./temporaryWalletCalls.cjs`),p=require(`./onrampCalls.cjs`),m=require(`./get-token-price-chart-data.cjs`),h=require(`./privacy-score-calls.cjs`),g=require(`./privateSendRecipientInfoCalls.cjs`),_=require(`./privateSendNonceCalls.cjs`),v=require(`./snapshot-event-calls.cjs`),y=require(`./privateSendEmailNotificationsCalls.cjs`),b=require(`./tronSubsidyCalls.cjs`),x=require(`./dashboardAccountCalls.cjs`),S=require(`./dashboardContactCalls.cjs`),C=require(`./dashboardPayoutCalls.cjs`),w=require(`./dashboardAccountMemberCalls.cjs`),T=require(`./dashboardBalanceCalls.cjs`),E=require(`./dashboardTransactionCalls.cjs`),D=require(`./payoutNotificationStateCalls.cjs`),O=require(`./enclaveUtxoCalls.cjs`),k=require(`./rewardsUserCalls.cjs`),A=require(`./weeklyAnalyticCalls.cjs`);var j={getTokenPrices:n.getTokenPrices,getOdosPriceForToken:r.getOdosPriceForToken,getTokenPriceChartData:m.getTokenPriceChartData,getTokenPreviousDayPrices:n.getTokenPreviousDayPrices,getIdleRelay:t.getIdleRelay,getUserAnalytics:A.getUserAnalytics,updateRewardsUser:k.updateRewardsUser,getRewardsUser:k.getRewardsUser,checkUsernameAvailability:k.checkUsernameAvailability,simulateTransaction:i.simulateTransaction,simulateBatchTx:a.simulateBatchTx,tokensInfoCall:o.tokensInfoCall,getTokenData:s.getTokenData,getBalancesEnclaveCall:O.getBalancesEnclaveCall,storeUtxoEnclaveCall:O.storeUtxoEnclaveCall,getUtxosEnclaveCall:O.getUtxosEnclaveCall,getProxyAccounts:c.getProxyAccounts,updateProxyAccounts:c.updateProxyAccounts,monitor:l.monitor,callRelayerSolanaTransactBatchAPI:u.callRelayerSolanaTransactBatchAPI,seedlessInit:d.seedlessInit,seedlessBackup:d.seedlessBackup,seedlessCheckPassword:d.seedlessCheckPassword,seedlessStatus:d.seedlessStatus,seedlessSalt:d.seedlessSalt,getScheduledTransactions:e.getScheduledTransactions,getTemporaryWalletNonces:f.getTemporaryWalletNonces,addTemporaryWalletNonce:f.addTemporaryWalletNonce,removeTemporaryWalletNonce:f.removeTemporaryWalletNonce,encodeMoonPayBuyUrl:p.encodeMoonPayBuyUrl,generateMoonPayQuote:p.generateMoonPayQuote,getPrivateTransactionRatio:h.getPrivateTransactionRatio,savePrivacyScoreAndGetPrivacyRank:h.savePrivacyScoreAndGetPrivacyRank,allocatePrivateSendRecipientInfos:g.allocatePrivateSendRecipientInfos,syncPrivateSendNonce:_.syncPrivateSendNonce,reservePrivateSendNonceRange:_.reservePrivateSendNonceRange,getSnapshotServerEvents:v.getSnapshotServerEvents,sendPrivateSendEmailNotifications:y.sendPrivateSendEmailNotifications,checkTronSubsidyEligibility:b.checkTronSubsidyEligibility,recordTronSubsidyUsage:b.recordTronSubsidyUsage,getDashboardAccount:x.getDashboardAccount,updateDashboardAccount:x.updateDashboardAccount,addDashboardContact:S.addDashboardContact,deleteDashboardContact:S.deleteDashboardContact,deleteDashboardAccount:x.deleteDashboardAccount,updateDashboardContact:S.updateDashboardContact,getDashboardContacts:S.getDashboardContacts,updateUserProfile:w.updateUserProfile,sendDashboardInvitationEmail:w.sendDashboardInvitationEmail,resolveInviteRequest:w.resolveInviteRequest,deleteInviteRequest:w.deleteInviteRequest,removeMember:w.removeMember,editMember:w.editMember,createDashboardPayout:C.createDashboardPayout,getDashboardPayouts:C.getDashboardPayouts,syncDashboardBalances:T.syncDashboardBalances,getDashboardBalances:T.getDashboardBalances,changePayoutStatus:C.changePayoutStatus,createDashboardTransactions:E.createDashboardTransactions,getDashboardTransactions:E.getDashboardTransactions,getPayoutNotifications:D.getPayoutNotifications,markPayoutNotificationsRead:D.markPayoutNotificationsRead,dismissPayoutNotification:D.dismissPayoutNotification};exports.API=j;
@@ -1,13 +1,10 @@
1
1
  import { getIdleRelay } from './relayCalls';
2
2
  import { getTokenPreviousDayPrices, getTokenPrices } from './getTokenPrice';
3
- import { getOdosPriceForToken } from './callOdosAPI';
3
+ import { getOdosPriceForToken } from './getOdosPriceForToken';
4
4
  import { simulateTransaction } from './simulate-transaction';
5
5
  import { simulateBatchTx } from './simulate-batch-tx';
6
6
  import { tokensInfoCall } from './token-calls';
7
7
  import { getTokenData } from './get-token-data';
8
- import { decryptUtxoEnclaveCall, getUtxosEnclaveCall, storeUtxoEnclaveCall } from './enclaveUtxoCalls';
9
- import { checkUsernameAvailability, getRewardsUser, updateRewardsUser } from './rewardsUserCalls';
10
- import { getUserAnalytics } from './weeklyAnalyticCalls';
11
8
  import { getProxyAccounts, updateProxyAccounts } from './proxyAccountsCalls';
12
9
  import { monitor } from './callMonitor';
13
10
  import { callRelayerSolanaTransactBatchAPI } from './callRelayer';
@@ -29,6 +26,9 @@ import { deleteInviteRequest, editMember, removeMember, resolveInviteRequest, se
29
26
  import { getDashboardBalances, syncDashboardBalances } from './dashboardBalanceCalls';
30
27
  import { createDashboardTransactions, getDashboardTransactions } from './dashboardTransactionCalls';
31
28
  import { dismissPayoutNotification, getPayoutNotifications, markPayoutNotificationsRead } from './payoutNotificationStateCalls';
29
+ import { getBalancesEnclaveCall, getUtxosEnclaveCall, storeUtxoEnclaveCall } from './enclaveUtxoCalls';
30
+ import { checkUsernameAvailability, getRewardsUser, updateRewardsUser } from './rewardsUserCalls';
31
+ import { getUserAnalytics } from './weeklyAnalyticCalls';
32
32
  export type IAPI = {
33
33
  getTokenPrices: typeof getTokenPrices;
34
34
  getOdosPriceForToken: typeof getOdosPriceForToken;
@@ -39,7 +39,7 @@ export type IAPI = {
39
39
  simulateBatchTx: typeof simulateBatchTx;
40
40
  tokensInfoCall: typeof tokensInfoCall;
41
41
  getTokenData: typeof getTokenData;
42
- decryptUtxoEnclaveCall: typeof decryptUtxoEnclaveCall;
42
+ getBalancesEnclaveCall: typeof getBalancesEnclaveCall;
43
43
  storeUtxoEnclaveCall: typeof storeUtxoEnclaveCall;
44
44
  getUtxosEnclaveCall: typeof getUtxosEnclaveCall;
45
45
  getUserAnalytics: typeof getUserAnalytics;
@@ -1,99 +1,99 @@
1
1
  import { getScheduledTransactions as e } from "./scheduled-transactions-calls.mjs";
2
2
  import { getIdleRelay as t } from "./relayCalls.mjs";
3
3
  import { getTokenPreviousDayPrices as n, getTokenPrices as r } from "./getTokenPrice.mjs";
4
- import { getOdosPriceForToken as i } from "./callOdosAPI.mjs";
4
+ import { getOdosPriceForToken as i } from "./getOdosPriceForToken.mjs";
5
5
  import { simulateTransaction as a } from "./simulate-transaction.mjs";
6
6
  import { simulateBatchTx as o } from "./simulate-batch-tx.mjs";
7
7
  import { tokensInfoCall as s } from "./token-calls.mjs";
8
8
  import { getTokenData as c } from "./get-token-data.mjs";
9
- import { decryptUtxoEnclaveCall as l, getUtxosEnclaveCall as u, storeUtxoEnclaveCall as d } from "./enclaveUtxoCalls.mjs";
10
- import { checkUsernameAvailability as f, getRewardsUser as p, updateRewardsUser as m } from "./rewardsUserCalls.mjs";
11
- import { getUserAnalytics as h } from "./weeklyAnalyticCalls.mjs";
12
- import { getProxyAccounts as g, updateProxyAccounts as _ } from "./proxyAccountsCalls.mjs";
13
- import { monitor as v } from "./callMonitor.mjs";
14
- import { callRelayerSolanaTransactBatchAPI as y } from "./callRelayer.mjs";
15
- import { seedlessBackup as b, seedlessCheckPassword as x, seedlessInit as S, seedlessSalt as C, seedlessStatus as w } from "./seedless-calls.mjs";
16
- import { addTemporaryWalletNonce as T, getTemporaryWalletNonces as E, removeTemporaryWalletNonce as D } from "./temporaryWalletCalls.mjs";
17
- import { encodeMoonPayBuyUrl as O, generateMoonPayQuote as k } from "./onrampCalls.mjs";
18
- import { getTokenPriceChartData as A } from "./get-token-price-chart-data.mjs";
19
- import { getPrivateTransactionRatio as j, savePrivacyScoreAndGetPrivacyRank as M } from "./privacy-score-calls.mjs";
20
- import { allocatePrivateSendRecipientInfos as N } from "./privateSendRecipientInfoCalls.mjs";
21
- import { reservePrivateSendNonceRange as P, syncPrivateSendNonce as F } from "./privateSendNonceCalls.mjs";
22
- import { getSnapshotServerEvents as I } from "./snapshot-event-calls.mjs";
23
- import { sendPrivateSendEmailNotifications as L } from "./privateSendEmailNotificationsCalls.mjs";
24
- import { checkTronSubsidyEligibility as R, recordTronSubsidyUsage as z } from "./tronSubsidyCalls.mjs";
25
- import { deleteDashboardAccount as B, getDashboardAccount as V, updateDashboardAccount as H } from "./dashboardAccountCalls.mjs";
26
- import { addDashboardContact as U, deleteDashboardContact as W, getDashboardContacts as G, updateDashboardContact as K } from "./dashboardContactCalls.mjs";
27
- import { changePayoutStatus as q, createDashboardPayout as J, getDashboardPayouts as Y } from "./dashboardPayoutCalls.mjs";
28
- import { deleteInviteRequest as X, editMember as Z, removeMember as Q, resolveInviteRequest as $, sendDashboardInvitationEmail as ee, updateUserProfile as te } from "./dashboardAccountMemberCalls.mjs";
29
- import { getDashboardBalances as ne, syncDashboardBalances as re } from "./dashboardBalanceCalls.mjs";
30
- import { createDashboardTransactions as ie, getDashboardTransactions as ae } from "./dashboardTransactionCalls.mjs";
31
- import { dismissPayoutNotification as oe, getPayoutNotifications as se, markPayoutNotificationsRead as ce } from "./payoutNotificationStateCalls.mjs";
9
+ import { getProxyAccounts as l, updateProxyAccounts as u } from "./proxyAccountsCalls.mjs";
10
+ import { monitor as d } from "./callMonitor.mjs";
11
+ import { callRelayerSolanaTransactBatchAPI as f } from "./callRelayer.mjs";
12
+ import { seedlessBackup as p, seedlessCheckPassword as m, seedlessInit as h, seedlessSalt as g, seedlessStatus as _ } from "./seedless-calls.mjs";
13
+ import { addTemporaryWalletNonce as v, getTemporaryWalletNonces as y, removeTemporaryWalletNonce as b } from "./temporaryWalletCalls.mjs";
14
+ import { encodeMoonPayBuyUrl as x, generateMoonPayQuote as S } from "./onrampCalls.mjs";
15
+ import { getTokenPriceChartData as C } from "./get-token-price-chart-data.mjs";
16
+ import { getPrivateTransactionRatio as w, savePrivacyScoreAndGetPrivacyRank as T } from "./privacy-score-calls.mjs";
17
+ import { allocatePrivateSendRecipientInfos as E } from "./privateSendRecipientInfoCalls.mjs";
18
+ import { reservePrivateSendNonceRange as D, syncPrivateSendNonce as O } from "./privateSendNonceCalls.mjs";
19
+ import { getSnapshotServerEvents as k } from "./snapshot-event-calls.mjs";
20
+ import { sendPrivateSendEmailNotifications as A } from "./privateSendEmailNotificationsCalls.mjs";
21
+ import { checkTronSubsidyEligibility as j, recordTronSubsidyUsage as M } from "./tronSubsidyCalls.mjs";
22
+ import { deleteDashboardAccount as N, getDashboardAccount as P, updateDashboardAccount as F } from "./dashboardAccountCalls.mjs";
23
+ import { addDashboardContact as I, deleteDashboardContact as L, getDashboardContacts as R, updateDashboardContact as z } from "./dashboardContactCalls.mjs";
24
+ import { changePayoutStatus as B, createDashboardPayout as V, getDashboardPayouts as H } from "./dashboardPayoutCalls.mjs";
25
+ import { deleteInviteRequest as U, editMember as W, removeMember as G, resolveInviteRequest as K, sendDashboardInvitationEmail as q, updateUserProfile as J } from "./dashboardAccountMemberCalls.mjs";
26
+ import { getDashboardBalances as Y, syncDashboardBalances as X } from "./dashboardBalanceCalls.mjs";
27
+ import { createDashboardTransactions as Z, getDashboardTransactions as Q } from "./dashboardTransactionCalls.mjs";
28
+ import { dismissPayoutNotification as $, getPayoutNotifications as ee, markPayoutNotificationsRead as te } from "./payoutNotificationStateCalls.mjs";
29
+ import { getBalancesEnclaveCall as ne, getUtxosEnclaveCall as re, storeUtxoEnclaveCall as ie } from "./enclaveUtxoCalls.mjs";
30
+ import { checkUsernameAvailability as ae, getRewardsUser as oe, updateRewardsUser as se } from "./rewardsUserCalls.mjs";
31
+ import { getUserAnalytics as ce } from "./weeklyAnalyticCalls.mjs";
32
32
  //#region libs/shared/common/src/API/API.ts
33
33
  var le = {
34
34
  getTokenPrices: r,
35
35
  getOdosPriceForToken: i,
36
- getTokenPriceChartData: A,
36
+ getTokenPriceChartData: C,
37
37
  getTokenPreviousDayPrices: n,
38
38
  getIdleRelay: t,
39
- getUserAnalytics: h,
40
- updateRewardsUser: m,
41
- getRewardsUser: p,
42
- checkUsernameAvailability: f,
39
+ getUserAnalytics: ce,
40
+ updateRewardsUser: se,
41
+ getRewardsUser: oe,
42
+ checkUsernameAvailability: ae,
43
43
  simulateTransaction: a,
44
44
  simulateBatchTx: o,
45
45
  tokensInfoCall: s,
46
46
  getTokenData: c,
47
- decryptUtxoEnclaveCall: l,
48
- storeUtxoEnclaveCall: d,
49
- getUtxosEnclaveCall: u,
50
- getProxyAccounts: g,
51
- updateProxyAccounts: _,
52
- monitor: v,
53
- callRelayerSolanaTransactBatchAPI: y,
54
- seedlessInit: S,
55
- seedlessBackup: b,
56
- seedlessCheckPassword: x,
57
- seedlessStatus: w,
58
- seedlessSalt: C,
47
+ getBalancesEnclaveCall: ne,
48
+ storeUtxoEnclaveCall: ie,
49
+ getUtxosEnclaveCall: re,
50
+ getProxyAccounts: l,
51
+ updateProxyAccounts: u,
52
+ monitor: d,
53
+ callRelayerSolanaTransactBatchAPI: f,
54
+ seedlessInit: h,
55
+ seedlessBackup: p,
56
+ seedlessCheckPassword: m,
57
+ seedlessStatus: _,
58
+ seedlessSalt: g,
59
59
  getScheduledTransactions: e,
60
- getTemporaryWalletNonces: E,
61
- addTemporaryWalletNonce: T,
62
- removeTemporaryWalletNonce: D,
63
- encodeMoonPayBuyUrl: O,
64
- generateMoonPayQuote: k,
65
- getPrivateTransactionRatio: j,
66
- savePrivacyScoreAndGetPrivacyRank: M,
67
- allocatePrivateSendRecipientInfos: N,
68
- syncPrivateSendNonce: F,
69
- reservePrivateSendNonceRange: P,
70
- getSnapshotServerEvents: I,
71
- sendPrivateSendEmailNotifications: L,
72
- checkTronSubsidyEligibility: R,
73
- recordTronSubsidyUsage: z,
74
- getDashboardAccount: V,
75
- updateDashboardAccount: H,
76
- addDashboardContact: U,
77
- deleteDashboardContact: W,
78
- deleteDashboardAccount: B,
79
- updateDashboardContact: K,
80
- getDashboardContacts: G,
81
- updateUserProfile: te,
82
- sendDashboardInvitationEmail: ee,
83
- resolveInviteRequest: $,
84
- deleteInviteRequest: X,
85
- removeMember: Q,
86
- editMember: Z,
87
- createDashboardPayout: J,
88
- getDashboardPayouts: Y,
89
- syncDashboardBalances: re,
90
- getDashboardBalances: ne,
91
- changePayoutStatus: q,
92
- createDashboardTransactions: ie,
93
- getDashboardTransactions: ae,
94
- getPayoutNotifications: se,
95
- markPayoutNotificationsRead: ce,
96
- dismissPayoutNotification: oe
60
+ getTemporaryWalletNonces: y,
61
+ addTemporaryWalletNonce: v,
62
+ removeTemporaryWalletNonce: b,
63
+ encodeMoonPayBuyUrl: x,
64
+ generateMoonPayQuote: S,
65
+ getPrivateTransactionRatio: w,
66
+ savePrivacyScoreAndGetPrivacyRank: T,
67
+ allocatePrivateSendRecipientInfos: E,
68
+ syncPrivateSendNonce: O,
69
+ reservePrivateSendNonceRange: D,
70
+ getSnapshotServerEvents: k,
71
+ sendPrivateSendEmailNotifications: A,
72
+ checkTronSubsidyEligibility: j,
73
+ recordTronSubsidyUsage: M,
74
+ getDashboardAccount: P,
75
+ updateDashboardAccount: F,
76
+ addDashboardContact: I,
77
+ deleteDashboardContact: L,
78
+ deleteDashboardAccount: N,
79
+ updateDashboardContact: z,
80
+ getDashboardContacts: R,
81
+ updateUserProfile: J,
82
+ sendDashboardInvitationEmail: q,
83
+ resolveInviteRequest: K,
84
+ deleteInviteRequest: U,
85
+ removeMember: G,
86
+ editMember: W,
87
+ createDashboardPayout: V,
88
+ getDashboardPayouts: H,
89
+ syncDashboardBalances: X,
90
+ getDashboardBalances: Y,
91
+ changePayoutStatus: B,
92
+ createDashboardTransactions: Z,
93
+ getDashboardTransactions: Q,
94
+ getPayoutNotifications: ee,
95
+ markPayoutNotificationsRead: te,
96
+ dismissPayoutNotification: $
97
97
  };
98
98
  //#endregion
99
99
  export { le as API };
@@ -19,6 +19,9 @@ export interface HinkalTransactionRequestBody {
19
19
  r: string;
20
20
  s: string;
21
21
  };
22
+ destinationChainId?: number;
23
+ destinationTokenAddress?: string;
24
+ destinationTokenAmount?: string;
22
25
  }
23
26
  export declare function callRelayerTransactAPI(requestBody: HinkalTransactionRequestBody): Promise<any>;
24
27
  export interface HinkalTransactionBatchRequestBody {
@@ -1 +1 @@
1
- const e=require(`../functions/snarkjs/constant.cjs`),t=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var n=async(n,r,i)=>await t.httpClient.post(`${e.ENCLAVE_URL}/decrypt-utxos`,{chainId:n,input:i,key:r}),r=async(n,r,i,a)=>await t.httpClient.post(`${e.ENCLAVE_URL}/store-utxo`,{recipientEthAddress:n,encryptedUtxo:r,key:i,chainId:a}),i=async(n,r,i,a,o,s)=>await t.httpClient.post(`${e.ENCLAVE_URL}/get-utxos`,{ethAddress:n,encryptedSignature:r,key:i,chainId:a,isSolanaLedger:o,txMessageForSolanaLedger:s});exports.decryptUtxoEnclaveCall=n,exports.getUtxosEnclaveCall=i,exports.storeUtxoEnclaveCall=r;
1
+ const e=require(`../functions/snarkjs/constant.cjs`),t=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var n=async(n,r,i,a=!1,o)=>await t.httpClient.post(`${e.ENCLAVE_URL}/get-balances`,{chainId:n,input:i,key:r,useBlockedUtxos:a,hashedEthereumAddress:o}),r=async(n,r,i,a)=>await t.httpClient.post(`${e.ENCLAVE_URL}/store-utxo`,{recipientEthAddress:n,encryptedUtxo:r,key:i,chainId:a}),i=async(n,r,i,a,o,s)=>await t.httpClient.post(`${e.ENCLAVE_URL}/get-utxos`,{ethAddress:n,encryptedSignature:r,key:i,chainId:a,isSolanaLedger:o,txMessageForSolanaLedger:s});exports.getBalancesEnclaveCall=n,exports.getUtxosEnclaveCall=i,exports.storeUtxoEnclaveCall=r;
@@ -1,11 +1,12 @@
1
- import { EncryptedOutputWithSign } from '../types/commitments.types';
2
- import { IUtxoConstructor } from '../data-structures/utxo/Utxo';
3
- type DecryptUtxoEnclaveCallResponse = {
4
- utxos: IUtxoConstructor<string>[];
5
- encryptedOutputs: EncryptedOutputWithSign[];
6
- lastOutput: string;
1
+ type TokenBalanceEntry = {
2
+ erc20TokenAddress: string;
3
+ amount: string;
4
+ };
5
+ type GetBalancesEnclaveCallResponse = {
6
+ confirmedBalances: TokenBalanceEntry[];
7
+ preConfirmedBalances: TokenBalanceEntry[];
7
8
  };
8
- export declare const decryptUtxoEnclaveCall: (chainId: number, keyCiphertext: string, inputCiphertext: string) => Promise<DecryptUtxoEnclaveCallResponse>;
9
+ export declare const getBalancesEnclaveCall: (chainId: number, keyCiphertext: string, inputCiphertext: string, useBlockedUtxos?: boolean, hashedEthereumAddress?: string) => Promise<GetBalancesEnclaveCallResponse>;
9
10
  export interface StoreUtxoRequest {
10
11
  recipientEthAddress: string;
11
12
  encryptedUtxo: string;
@@ -2,10 +2,12 @@ import { ENCLAVE_URL as e } from "../functions/snarkjs/constant.mjs";
2
2
  import { httpClient as t } from "../data-structures/http/HttpClient.mjs";
3
3
  import "../data-structures/http/index.mjs";
4
4
  //#region libs/shared/common/src/API/enclaveUtxoCalls.ts
5
- var n = async (n, r, i) => await t.post(`${e}/decrypt-utxos`, {
5
+ var n = async (n, r, i, a = !1, o) => await t.post(`${e}/get-balances`, {
6
6
  chainId: n,
7
7
  input: i,
8
- key: r
8
+ key: r,
9
+ useBlockedUtxos: a,
10
+ hashedEthereumAddress: o
9
11
  }), r = async (n, r, i, a) => await t.post(`${e}/store-utxo`, {
10
12
  recipientEthAddress: n,
11
13
  encryptedUtxo: r,
@@ -20,4 +22,4 @@ var n = async (n, r, i) => await t.post(`${e}/decrypt-utxos`, {
20
22
  txMessageForSolanaLedger: s
21
23
  });
22
24
  //#endregion
23
- export { n as decryptUtxoEnclaveCall, i as getUtxosEnclaveCall, r as storeUtxoEnclaveCall };
25
+ export { n as getBalancesEnclaveCall, i as getUtxosEnclaveCall, r as storeUtxoEnclaveCall };
@@ -0,0 +1 @@
1
+ const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=async(r,i)=>{try{return(await n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getOdosPriceForToken(r,i)}`)).price}catch{return}};exports.getOdosPriceForToken=r;
@@ -0,0 +1 @@
1
+ export declare const getOdosPriceForToken: (chainId: number, tokenAddress: string) => Promise<number | undefined>;
@@ -0,0 +1,14 @@
1
+ import { API_CONFIG as e } from "../constants/server.constants.mjs";
2
+ import { SERVER_URL as t } from "./getServerURL.mjs";
3
+ import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
4
+ import "../data-structures/http/index.mjs";
5
+ //#region libs/shared/common/src/API/getOdosPriceForToken.ts
6
+ var r = async (r, i) => {
7
+ try {
8
+ return (await n.get(`${t}${e.ROUTES.getOdosPriceForToken(r, i)}`)).price;
9
+ } catch {
10
+ return;
11
+ }
12
+ };
13
+ //#endregion
14
+ export { r as getOdosPriceForToken };
@@ -1,4 +1,3 @@
1
1
  export declare const getHinkalLandingURL: () => "https://hinkal.io" | "http://localhost:4230" | "https://hinkal-playground-landing.netlify.app" | "https://staging-hinkal-landing.netlify.app";
2
- export declare const getWalletOnboardingURL: () => "http://localhost:4118" | "https://hinkal-playground-onboarding.netlify.app" | "https://staging-hinkal-onboarding.netlify.app" | "https://onboarding.hinkal.pro";
3
2
  export declare const getPayURL: () => "https://pay.hinkal.io" | "http://localhost:4116" | "https://hinkal-playground-pay.netlify.app" | "https://staging-hinkal-pay.netlify.app";
4
3
  export declare const getDashboardURL: () => "http://localhost:4120" | "https://hinkal-playground.netlify.app" | "https://staging-hinkal-dashboard.netlify.app" | "https://prime.hinkal.io";
@@ -1 +1 @@
1
- require(`./getServerURL.cjs`),require(`./scheduled-transactions-calls.cjs`),require(`./relayCalls.cjs`),require(`./getTokenPrice.cjs`),require(`./token-calls.cjs`),require(`./callMonitor.cjs`),require(`./callRelayer.cjs`),require(`./seedless-calls.cjs`),require(`./temporaryWalletCalls.cjs`),require(`./privateSendRecipientInfoCalls.cjs`),require(`./privateSendEmailNotificationsCalls.cjs`),require(`./payoutNotificationStateCalls.cjs`),require(`./API.cjs`),require(`./getGasEstimates.cjs`),require(`./resolve-sns.cjs`),require(`./enclaveRecipientInfoCalls.cjs`),require(`./callNearIntentsAPI.cjs`),require(`./admin-calls.cjs`),require(`./callOneInchAPI.cjs`),require(`./callLifiAPI.cjs`),require(`./getCoingeckoPrice.cjs`),require(`./checkRisk.cjs`),require(`./tenderly.api.cjs`),require(`./getWebsiteURL.cjs`);
1
+ require(`./getServerURL.cjs`),require(`./scheduled-transactions-calls.cjs`),require(`./relayCalls.cjs`),require(`./getTokenPrice.cjs`),require(`./token-calls.cjs`),require(`./callMonitor.cjs`),require(`./callRelayer.cjs`),require(`./seedless-calls.cjs`),require(`./temporaryWalletCalls.cjs`),require(`./privateSendRecipientInfoCalls.cjs`),require(`./privateSendEmailNotificationsCalls.cjs`),require(`./payoutNotificationStateCalls.cjs`),require(`./API.cjs`),require(`./getGasEstimates.cjs`),require(`./admin-calls.cjs`),require(`./resolve-sns.cjs`),require(`./enclaveRecipientInfoCalls.cjs`),require(`./callNearIntentsAPI.cjs`),require(`./callLifiAPI.cjs`),require(`./getCoingeckoPrice.cjs`),require(`./checkRisk.cjs`),require(`./tenderly.api.cjs`),require(`./getWebsiteURL.cjs`);
@@ -1,6 +1,5 @@
1
1
  export * from './getServerURL';
2
2
  export * from './getCoingeckoPrice';
3
- export * from './callOneInchAPI';
4
3
  export * from './callRelayer';
5
4
  export * from './getGasEstimates';
6
5
  export * from './getTokenPrice';
@@ -12,11 +12,10 @@ import "./privateSendEmailNotificationsCalls.mjs";
12
12
  import "./payoutNotificationStateCalls.mjs";
13
13
  import "./API.mjs";
14
14
  import "./getGasEstimates.mjs";
15
+ import "./admin-calls.mjs";
15
16
  import "./resolve-sns.mjs";
16
17
  import "./enclaveRecipientInfoCalls.mjs";
17
18
  import "./callNearIntentsAPI.mjs";
18
- import "./admin-calls.mjs";
19
- import "./callOneInchAPI.mjs";
20
19
  import "./callLifiAPI.mjs";
21
20
  import "./getCoingeckoPrice.mjs";
22
21
  import "./checkRisk.mjs";
@@ -1 +1 @@
1
- const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);const r=require(`../functions/utils/get-signature-header.cjs`);var i=async r=>await n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getRewardsUser(r)}`),a=async i=>await n.httpClient.patch(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.updateRewardsUser}`,i,r.getSignatureHeader(i.signature)),o=async r=>await n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.checkUsernameAvailability(r)}`);exports.checkUsernameAvailability=o,exports.getRewardsUser=i,exports.updateRewardsUser=a;
1
+ const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=async r=>await n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getRewardsUser(r)}`),i=async r=>await n.httpClient.patch(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.updateRewardsUser}`,r),a=async r=>await n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.checkUsernameAvailability(r)}`);exports.checkUsernameAvailability=a,exports.getRewardsUser=r,exports.updateRewardsUser=i;
@@ -6,10 +6,8 @@ export interface GetRewardsUserRes {
6
6
  export declare const getRewardsUser: (ethereumAddress: string) => Promise<GetRewardsUserRes>;
7
7
  interface InputDataTypes {
8
8
  ethereumAddress: string;
9
- signature: string;
10
9
  username?: string;
11
10
  profileImage?: string;
12
- proxyAddress?: string;
13
11
  }
14
12
  interface UpdateRewardsUserRes {
15
13
  message: string;
@@ -2,8 +2,7 @@ import { DATA_SERVER_CONFIG as e } from "../constants/server.constants.mjs";
2
2
  import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
3
3
  import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
4
4
  import "../data-structures/http/index.mjs";
5
- import { getSignatureHeader as r } from "../functions/utils/get-signature-header.mjs";
6
5
  //#region libs/shared/common/src/API/rewardsUserCalls.ts
7
- var i = async (r) => await n.get(`${t}${e.getRewardsUser(r)}`), a = async (i) => await n.patch(`${t}${e.updateRewardsUser}`, i, r(i.signature)), o = async (r) => await n.get(`${t}${e.checkUsernameAvailability(r)}`);
6
+ var r = async (r) => await n.get(`${t}${e.getRewardsUser(r)}`), i = async (r) => await n.patch(`${t}${e.updateRewardsUser}`, r), a = async (r) => await n.get(`${t}${e.checkUsernameAvailability(r)}`);
8
7
  //#endregion
9
- export { o as checkUsernameAvailability, i as getRewardsUser, a as updateRewardsUser };
8
+ export { a as checkUsernameAvailability, r as getRewardsUser, i as updateRewardsUser };
@@ -1 +1 @@
1
- const e=require(`../constants/chains.constants.cjs`);require(`../data-structures/http/index.cjs`),e.chainIds.optimism,e.chainIds.optimismTest,e.chainIds.base,e.chainIds.ethMainnet,e.chainIds.arbMainnet,e.chainIds.polygon;
1
+ const e=require(`../constants/chains.constants.cjs`);require(`../data-structures/http/index.cjs`),e.chainIds.optimism,e.chainIds.optimismTest,e.chainIds.base,e.chainIds.ethMainnet,e.chainIds.arbMainnet,e.chainIds.polygon,e.chainIds.sepoliaTestnet,e.chainIds.tempo;
@@ -1,14 +1,8 @@
1
- import { RpcSimulateResult, RpcSimulateTransactionBody, RpcSimulateTransactionResponse, RpcTransactionParams, SimulateTxBody, SimulateTxResponse } from '../types/tenderly.api.types';
2
- import { chainIds } from '../constants/chains.constants';
1
+ import { RpcSimulateResult, RpcSimulateTransactionBody, RpcSimulateTransactionResponse, RpcTransactionParams, SimulateBundleTxResponse, SimulateTxBody, SimulateTxResponse } from '../types/tenderly.api.types';
3
2
  export declare const simulateTx: (simulateTxBody: SimulateTxBody) => Promise<SimulateTxResponse>;
4
- export declare const tenderlyRpcLinks: {
5
- [chainIds.optimism]: string;
6
- [chainIds.optimismTest]: string;
7
- [chainIds.base]: string;
8
- [chainIds.ethMainnet]: string;
9
- [chainIds.arbMainnet]: string;
10
- [chainIds.polygon]: string;
11
- };
3
+ export declare const simulateBundleTx: (simulations: SimulateTxBody[]) => Promise<SimulateBundleTxResponse>;
4
+ export declare const tenderlyRpcLinks: Partial<Record<number, string>>;
5
+ export declare const hasTenderlyNodeRpc: (chainId: number) => boolean;
12
6
  export declare const rpcSimulateTransaction: (chainId: number, simulateTxBody: RpcSimulateTransactionBody) => Promise<RpcSimulateTransactionResponse>;
13
7
  export declare const rpcSimulateBundle: (chainId: number, simulateTxBody: RpcSimulateTransactionBody<RpcTransactionParams[]>) => Promise<RpcSimulateTransactionResponse<RpcSimulateResult[]>>;
14
8
  export declare const rpcGetStorageChanges: (chainId: number, address: string, offset: string) => Promise<any>;
@@ -17,4 +11,5 @@ export declare const WALLET_API: {
17
11
  rpcSimulateTransaction: (chainId: number, simulateTxBody: RpcSimulateTransactionBody) => Promise<RpcSimulateTransactionResponse>;
18
12
  rpcSimulateBundle: (chainId: number, simulateTxBody: RpcSimulateTransactionBody<RpcTransactionParams[]>) => Promise<RpcSimulateTransactionResponse<RpcSimulateResult[]>>;
19
13
  simulateTx: (simulateTxBody: SimulateTxBody) => Promise<SimulateTxResponse>;
14
+ simulateBundleTx: (simulations: SimulateTxBody[]) => Promise<SimulateBundleTxResponse>;
20
15
  };
@@ -1,4 +1,4 @@
1
1
  import { chainIds as e } from "../constants/chains.constants.mjs";
2
2
  import "../data-structures/http/index.mjs";
3
- e.optimism, e.optimismTest, e.base, e.ethMainnet, e.arbMainnet, e.polygon;
3
+ e.optimism, e.optimismTest, e.base, e.ethMainnet, e.arbMainnet, e.polygon, e.sepoliaTestnet, e.tempo;
4
4
  //#endregion
@@ -1 +1 @@
1
- const e=require(`./chains.constants.cjs`),t=require(`../types/external-action.types.cjs`);require(`../types/index.cjs`);var n={[t.ExternalActionId.Uniswap]:{[e.chainIds.ethMainnet]:`0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45`,[e.chainIds.polygon]:`0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45`,[e.chainIds.optimism]:`0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45`,[e.chainIds.optimismTest]:`0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45`,[e.chainIds.arbMainnet]:`0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45`,[e.chainIds.bnbMainnet]:`0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2`,[e.chainIds.base]:`0x2626664c2603336E57B271c5C0b26F421741e481`},[t.ExternalActionId.Odos]:{[e.chainIds.ethMainnet]:`0xCf5540fFFCdC3d510B18bFcA6d2b9987b0772559`,[e.chainIds.polygon]:`0x4E3288c9ca110bCC82bf38F09A7b425c095d92Bf`,[e.chainIds.optimism]:`0xCa423977156BB05b13A2BA3b76Bc5419E2fE9680`,[e.chainIds.optimismTest]:`0xCa423977156BB05b13A2BA3b76Bc5419E2fE9680`,[e.chainIds.arbMainnet]:`0xa669e7A0d4b3e4Fa48af2dE86BD4CD7126Be4e13`,[e.chainIds.bnbMainnet]:`0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E`,[e.chainIds.base]:`0x19cEeAd7105607Cd444F5ad10dd51356436095a1`},[t.ExternalActionId.OneInch]:{[e.chainIds.ethMainnet]:`0x1111111254EEB25477B68fb85Ed929f73A960582`,[e.chainIds.polygon]:`0x1111111254EEB25477B68fb85Ed929f73A960582`,[e.chainIds.optimism]:`0x1111111254EEB25477B68fb85Ed929f73A960582`,[e.chainIds.optimismTest]:`0x1111111254EEB25477B68fb85Ed929f73A960582`,[e.chainIds.arbMainnet]:`0x1111111254EEB25477B68fb85Ed929f73A960582`,[e.chainIds.bnbMainnet]:`0x1111111254EEB25477B68fb85Ed929f73A960582`,[e.chainIds.base]:`0x1111111254EEB25477B68fb85Ed929f73A960582`},[t.ExternalActionId.Lifi]:{[e.chainIds.ethMainnet]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.polygon]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.optimism]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.optimismTest]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.arbMainnet]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.bnbMainnet]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.base]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.tempo]:`0x2cAcAE8e22418E65dcf7651c67aEbe6288EB8243`,[e.chainIds.solanaMainnet]:`3i5JeuZuUxeKtVysUnwQNGerJP2bSMX9fTFfS4Nxe3Br`,[e.chainIds.solanaLocalnet]:`3i5JeuZuUxeKtVysUnwQNGerJP2bSMX9fTFfS4Nxe3Br`}},r={[e.chainIds.ethMainnet]:`0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`,[e.chainIds.polygon]:`0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270`,[e.chainIds.optimism]:`0x4200000000000000000000000000000000000006`,[e.chainIds.optimismTest]:`0x4200000000000000000000000000000000000006`,[e.chainIds.arbMainnet]:`0x82aF49447D8a07e3bd95BD0d56f35241523fBab1`,[e.chainIds.bnbMainnet]:`0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c`,[e.chainIds.base]:`0x4200000000000000000000000000000000000006`},i={[e.chainIds.ethMainnet]:`0xdaC7Fb8AC2e47F412e8556Fd13256D90FBae08CD`,[e.chainIds.polygon]:`0x9759Baf5eEfa817E3FdF4C488ED51a334e948C05`,[e.chainIds.optimism]:`0xDe6A7d13c7E01582F5989b14cdf64d4bc6608364`,[e.chainIds.optimismTest]:`0xDe6A7d13c7E01582F5989b14cdf64d4bc6608364`,[e.chainIds.arbMainnet]:`0xF43D84490c6A155f2DDDF501db378D77151590f4`,[e.chainIds.bnbMainnet]:`0x5fa6773A7dC2CA3fB411f9Ef157F30e91aa1e53d`,[e.chainIds.base]:`0x86B9e7F2698C0776b988085b5Ca8d7D6A1Dff74b`},a={[e.chainIds.ethMainnet]:`0x1D69943ea7D9874b43f9FbcC2B6a4f0f433F602d`,[e.chainIds.polygon]:`0x5181606B45302Bb7b83e03DC7c5390ec9e4d973f`,[e.chainIds.optimism]:`0x0720a259A8CaBb9ef0F6a6334fEB4da5f45a8579`,[e.chainIds.optimismTest]:`0x0720a259A8CaBb9ef0F6a6334fEB4da5f45a8579`,[e.chainIds.arbMainnet]:`0x7ae4AD3f4D2df012807C3CC50fc0d4bB19Cc9800`,[e.chainIds.bnbMainnet]:`0x4200000000000000000000000000000000000000`,[e.chainIds.base]:`0xB69B207994506697196E5C1Ce40233c06040BB79`};exports.NATIVE_TOKEN_WRAPPER_ADDRESSES=r,exports.SWAP_FEE_TAKER_ADDRESSES=a,exports.SWAP_ROUTER_ADDRESSES=n,exports.WRAPPER_TOKEN_EXCHANGE_ADDRESSES=i;
1
+ const e=require(`./chains.constants.cjs`),t=require(`../types/external-action.types.cjs`);require(`../types/index.cjs`);var n={[t.ExternalActionId.Lifi]:{[e.chainIds.ethMainnet]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.localhost]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.polygon]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.optimism]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.optimismTest]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.arbMainnet]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.bnbMainnet]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.base]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[e.chainIds.tempo]:`0x2cAcAE8e22418E65dcf7651c67aEbe6288EB8243`,[e.chainIds.arcTestnet]:`0xFf70F4A1d11995621854F3692acF286d8aCd04b2`,[e.chainIds.solanaMainnet]:`3i5JeuZuUxeKtVysUnwQNGerJP2bSMX9fTFfS4Nxe3Br`,[e.chainIds.solanaLocalnet]:`3i5JeuZuUxeKtVysUnwQNGerJP2bSMX9fTFfS4Nxe3Br`}},r={[e.chainIds.ethMainnet]:`0x1D69943ea7D9874b43f9FbcC2B6a4f0f433F602d`,[e.chainIds.polygon]:`0x5181606B45302Bb7b83e03DC7c5390ec9e4d973f`,[e.chainIds.optimism]:`0x0720a259A8CaBb9ef0F6a6334fEB4da5f45a8579`,[e.chainIds.optimismTest]:`0x0720a259A8CaBb9ef0F6a6334fEB4da5f45a8579`,[e.chainIds.arbMainnet]:`0x7ae4AD3f4D2df012807C3CC50fc0d4bB19Cc9800`,[e.chainIds.bnbMainnet]:`0x8880517e7769DD4f03Fe6E13c320C33866153065`,[e.chainIds.base]:`0xB69B207994506697196E5C1Ce40233c06040BB79`,[e.chainIds.arcTestnet]:`0x6670945B9a77F7d37D06200feAC7E780dFBa713f`,[e.chainIds.tempo]:`0x78fdd410eC285af4503Ea5F8e64Ad4b13033094b`};exports.SWAP_FEE_TAKER_ADDRESSES=r,exports.SWAP_ROUTER_ADDRESSES=n;
@@ -1,35 +1,8 @@
1
1
  import { chainIds } from './chains.constants';
2
- export declare const WETH_ERC20_TOKEN_ADDRESS = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
3
2
  export declare const SWAP_ROUTER_ADDRESSES: {
4
- Uniswap: {
5
- [chainIds.ethMainnet]: string;
6
- [chainIds.polygon]: string;
7
- [chainIds.optimism]: string;
8
- [chainIds.optimismTest]: string;
9
- [chainIds.arbMainnet]: string;
10
- [chainIds.bnbMainnet]: string;
11
- [chainIds.base]: string;
12
- };
13
- Odos: {
14
- [chainIds.ethMainnet]: string;
15
- [chainIds.polygon]: string;
16
- [chainIds.optimism]: string;
17
- [chainIds.optimismTest]: string;
18
- [chainIds.arbMainnet]: string;
19
- [chainIds.bnbMainnet]: string;
20
- [chainIds.base]: string;
21
- };
22
- OneInch: {
23
- [chainIds.ethMainnet]: string;
24
- [chainIds.polygon]: string;
25
- [chainIds.optimism]: string;
26
- [chainIds.optimismTest]: string;
27
- [chainIds.arbMainnet]: string;
28
- [chainIds.bnbMainnet]: string;
29
- [chainIds.base]: string;
30
- };
31
3
  Lifi: {
32
4
  [chainIds.ethMainnet]: string;
5
+ [chainIds.localhost]: string;
33
6
  [chainIds.polygon]: string;
34
7
  [chainIds.optimism]: string;
35
8
  [chainIds.optimismTest]: string;
@@ -37,28 +10,11 @@ export declare const SWAP_ROUTER_ADDRESSES: {
37
10
  [chainIds.bnbMainnet]: string;
38
11
  [chainIds.base]: string;
39
12
  [chainIds.tempo]: string;
13
+ [chainIds.arcTestnet]: string;
40
14
  [chainIds.solanaMainnet]: string;
41
15
  [chainIds.solanaLocalnet]: string;
42
16
  };
43
17
  };
44
- export declare const NATIVE_TOKEN_WRAPPER_ADDRESSES: {
45
- [chainIds.ethMainnet]: string;
46
- [chainIds.polygon]: string;
47
- [chainIds.optimism]: string;
48
- [chainIds.optimismTest]: string;
49
- [chainIds.arbMainnet]: string;
50
- [chainIds.bnbMainnet]: string;
51
- [chainIds.base]: string;
52
- };
53
- export declare const WRAPPER_TOKEN_EXCHANGE_ADDRESSES: {
54
- [chainIds.ethMainnet]: string;
55
- [chainIds.polygon]: string;
56
- [chainIds.optimism]: string;
57
- [chainIds.optimismTest]: string;
58
- [chainIds.arbMainnet]: string;
59
- [chainIds.bnbMainnet]: string;
60
- [chainIds.base]: string;
61
- };
62
18
  export declare const SWAP_FEE_TAKER_ADDRESSES: {
63
19
  [chainIds.ethMainnet]: string;
64
20
  [chainIds.polygon]: string;
@@ -67,4 +23,6 @@ export declare const SWAP_FEE_TAKER_ADDRESSES: {
67
23
  [chainIds.arbMainnet]: string;
68
24
  [chainIds.bnbMainnet]: string;
69
25
  [chainIds.base]: string;
26
+ [chainIds.arcTestnet]: string;
27
+ [chainIds.tempo]: string;
70
28
  };