@gurge/sdk 0.3.9 → 0.3.11

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 (54) hide show
  1. package/common/src/API/enclaveSignatureCalls.cjs +1 -1
  2. package/common/src/API/enclaveSignatureCalls.d.ts +1 -1
  3. package/common/src/API/enclaveSignatureCalls.mjs +1 -1
  4. package/common/src/API/getServerURL.cjs +1 -1
  5. package/common/src/API/getServerURL.mjs +2 -2
  6. package/common/src/constants/protocol.constants.cjs +1 -1
  7. package/common/src/constants/protocol.constants.d.ts +2 -0
  8. package/common/src/constants/protocol.constants.mjs +2 -2
  9. package/common/src/constants/server.constants.cjs +1 -1
  10. package/common/src/constants/server.constants.d.ts +1 -1
  11. package/common/src/constants/server.constants.mjs +2 -2
  12. package/common/src/data-structures/Hinkal/Hinkal.cjs +1 -1
  13. package/common/src/data-structures/Hinkal/Hinkal.d.ts +5 -1
  14. package/common/src/data-structures/Hinkal/Hinkal.mjs +125 -112
  15. package/common/src/data-structures/Hinkal/IHinkal.d.ts +5 -1
  16. package/common/src/error-handling/error-codes.constants.cjs +1 -1
  17. package/common/src/error-handling/error-codes.constants.d.ts +2 -0
  18. package/common/src/error-handling/error-codes.constants.mjs +2 -0
  19. package/common/src/functions/pre-transaction/sendV0Transaction.cjs +2 -1
  20. package/common/src/functions/pre-transaction/sendV0Transaction.mjs +2 -2
  21. package/common/src/functions/snarkjs/constant.cjs +1 -1
  22. package/common/src/functions/snarkjs/constant.mjs +1 -1
  23. package/common/src/functions/utils/enclave-signature-storage.cjs +1 -1
  24. package/common/src/functions/utils/enclave-signature-storage.d.ts +1 -1
  25. package/common/src/functions/utils/enclave-signature-storage.mjs +1 -1
  26. package/common/src/functions/utils/erc20tokenFunctions.cjs +1 -1
  27. package/common/src/functions/utils/erc20tokenFunctions.d.ts +1 -0
  28. package/common/src/functions/utils/erc20tokenFunctions.mjs +3 -3
  29. package/common/src/webworker/package.json +1 -1
  30. package/common/src/webworker/viteWorkerURL.constant.cjs +3 -3
  31. package/common/src/webworker/viteWorkerURL.constant.mjs +3 -3
  32. package/functions/index.cjs +1 -1
  33. package/functions/index.mjs +0 -1
  34. package/functions/integrations/swapApi.cjs +1 -1
  35. package/functions/integrations/swapApi.d.ts +2 -2
  36. package/functions/integrations/swapApi.mjs +5 -4
  37. package/functions/utils/index.cjs +1 -1
  38. package/functions/utils/index.d.ts +0 -1
  39. package/functions/utils/index.mjs +0 -1
  40. package/index.cjs +1 -1
  41. package/index.mjs +2 -3
  42. package/internal/token.utils.cjs +1 -0
  43. package/internal/token.utils.d.ts +7 -0
  44. package/internal/token.utils.mjs +38 -0
  45. package/package.json +1 -1
  46. package/services/Hinkal.cjs +1 -1
  47. package/services/Hinkal.d.ts +20 -20
  48. package/services/Hinkal.mjs +45 -44
  49. package/types/IHinkal.d.ts +21 -19
  50. package/types/balances.types.d.ts +12 -1
  51. package/types/token.types.d.ts +5 -1
  52. package/functions/utils/getERC20Token.cjs +0 -1
  53. package/functions/utils/getERC20Token.d.ts +0 -2
  54. package/functions/utils/getERC20Token.mjs +0 -5
@@ -1 +1 @@
1
- const e=require(`../../constants/vite.constants.cjs`),t=require(`../../API/getServerURL.cjs`);var n=e.isNotProduction?`https://enclave-staging.hinkal.io`:`https://enclave-server.hinkal.io`,r=`${t.BACK_END_URL}/verifiers-v2/`,i={mainEVMCircuit1x2x1v1x1Wasm:`${r}mainEVMCircuit1x2x1-1.1.wasm`,mainEVMCircuit1x2x1v1x1Zkey:`${r}mainEVMCircuit1x2x1_final-1.1.zkey`,mainEVMCircuit1x6x1v1x1Wasm:`${r}mainEVMCircuit1x6x1-1.1.wasm`,mainEVMCircuit1x6x1v1x1Zkey:`${r}mainEVMCircuit1x6x1_final-1.1.zkey`,mainEVMCircuit2x2x1v1x1Wasm:`${r}mainEVMCircuit2x2x1-1.1.wasm`,mainEVMCircuit2x2x1v1x1Zkey:`${r}mainEVMCircuit2x2x1_final-1.1.zkey`,mainEVMCircuit2x6x1v1x1Wasm:`${r}mainEVMCircuit2x6x1-1.1.wasm`,mainEVMCircuit2x6x1v1x1Zkey:`${r}mainEVMCircuit2x6x1_final-1.1.zkey`,mainEVMCircuit3x2x1v1x1Wasm:`${r}mainEVMCircuit3x2x1-1.1.wasm`,mainEVMCircuit3x2x1v1x1Zkey:`${r}mainEVMCircuit3x2x1_final-1.1.zkey`,mainEVMCircuit3x6x1v1x1Wasm:`${r}mainEVMCircuit3x6x1-1.1.wasm`,mainEVMCircuit3x6x1v1x1Zkey:`${r}mainEVMCircuit3x6x1_final-1.1.zkey`,mainEVMCircuit4x2x1v1x1Wasm:`${r}mainEVMCircuit4x2x1-1.1.wasm`,mainEVMCircuit4x2x1v1x1Zkey:`${r}mainEVMCircuit4x2x1_final-1.1.zkey`,mainEVMCircuit4x6x1v1x1Wasm:`${r}mainEVMCircuit4x6x1-1.1.wasm`,mainEVMCircuit4x6x1v1x1Zkey:`${r}mainEVMCircuit4x6x1_final-1.1.zkey`,mainEVMCircuit5x2x1v1x1Wasm:`${r}mainEVMCircuit5x2x1-1.1.wasm`,mainEVMCircuit5x2x1v1x1Zkey:`${r}mainEVMCircuit5x2x1_final-1.1.zkey`,mainEVMCircuit5x6x1v1x1Wasm:`${r}mainEVMCircuit5x6x1-1.1.wasm`,mainEVMCircuit5x6x1v1x1Zkey:`${r}mainEVMCircuit5x6x1_final-1.1.zkey`,mainEVMCircuit1x2x2v1x1Wasm:`${r}mainEVMCircuit1x2x2-1.1.wasm`,mainEVMCircuit1x2x2v1x1Zkey:`${r}mainEVMCircuit1x2x2_final-1.1.zkey`,mainEVMCircuit1x6x2v1x1Wasm:`${r}mainEVMCircuit1x6x2-1.1.wasm`,mainEVMCircuit1x6x2v1x1Zkey:`${r}mainEVMCircuit1x6x2_final-1.1.zkey`,mainEVMCircuit2x2x2v1x1Wasm:`${r}mainEVMCircuit2x2x2-1.1.wasm`,mainEVMCircuit2x2x2v1x1Zkey:`${r}mainEVMCircuit2x2x2_final-1.1.zkey`,mainEVMCircuit2x6x2v1x1Wasm:`${r}mainEVMCircuit2x6x2-1.1.wasm`,mainEVMCircuit2x6x2v1x1Zkey:`${r}mainEVMCircuit2x6x2_final-1.1.zkey`,mainEVMCircuitMin0v1x1Wasm:`${r}mainEVMCircuitMin0-1.1.wasm`,mainEVMCircuitMin0v1x1Zkey:`${r}mainEVMCircuitMin0_final-1.1.zkey`,mainSolanaCircuit1x2x1v1x1Zkey:`${r}mainSolanaCircuit1x2x1_final-1.1.zkey`,mainSolanaCircuit1x2x1v1x1Wasm:`${r}mainSolanaCircuit1x2x1-1.1.wasm`,mainSolanaCircuit1x2x2v1x1Zkey:`${r}mainSolanaCircuit1x2x2_final-1.1.zkey`,mainSolanaCircuit1x2x2v1x1Wasm:`${r}mainSolanaCircuit1x2x2-1.1.wasm`,mainSolanaCircuit1x6x1v1x1Zkey:`${r}mainSolanaCircuit1x6x1_final-1.1.zkey`,mainSolanaCircuit1x6x1v1x1Wasm:`${r}mainSolanaCircuit1x6x1-1.1.wasm`,mainSolanaCircuit1x6x2v1x1Zkey:`${r}mainSolanaCircuit1x6x2_final-1.1.zkey`,mainSolanaCircuit1x6x2v1x1Wasm:`${r}mainSolanaCircuit1x6x2-1.1.wasm`,mainSolanaCircuit2x2x1v1x1Zkey:`${r}mainSolanaCircuit2x2x1_final-1.1.zkey`,mainSolanaCircuit2x2x1v1x1Wasm:`${r}mainSolanaCircuit2x2x1-1.1.wasm`,mainSolanaCircuit2x6x1v1x1Zkey:`${r}mainSolanaCircuit2x6x1_final-1.1.zkey`,mainSolanaCircuit2x6x1v1x1Wasm:`${r}mainSolanaCircuit2x6x1-1.1.wasm`,commitmentCalculator1x2v1x1Wasm:`${r}commitmentCalculator1x2-1.1.wasm`,commitmentCalculator1x2v1x1Zkey:`${r}commitmentCalculator1x2_final-1.1.zkey`,commitmentCalculator1x2v1x1VK:`${r}commitmentCalculator1x2_final-1.1_verification_key.json`,commitmentCalculator1x6v1x1Wasm:`${r}commitmentCalculator1x6-1.1.wasm`,commitmentCalculator1x6v1x1Zkey:`${r}commitmentCalculator1x6_final-1.1.zkey`,commitmentCalculator1x6v1x1VK:`${r}commitmentCalculator1x6_final-1.1_verification_key.json`,commitmentCalculator2x2v1x1Wasm:`${r}commitmentCalculator2x2-1.1.wasm`,commitmentCalculator2x2v1x1Zkey:`${r}commitmentCalculator2x2_final-1.1.zkey`,commitmentCalculator2x2v1x1VK:`${r}commitmentCalculator2x2_final-1.1_verification_key.json`,commitmentCalculator2x6v1x1Wasm:`${r}commitmentCalculator2x6-1.1.wasm`,commitmentCalculator2x6v1x1Zkey:`${r}commitmentCalculator2x6_final-1.1.zkey`,commitmentCalculator2x6v1x1VK:`${r}commitmentCalculator2x6_final-1.1_verification_key.json`,commitmentCalculator3x2v1x1Wasm:`${r}commitmentCalculator3x2-1.1.wasm`,commitmentCalculator3x2v1x1Zkey:`${r}commitmentCalculator3x2_final-1.1.zkey`,commitmentCalculator3x2v1x1VK:`${r}commitmentCalculator3x2_final-1.1_verification_key.json`,commitmentCalculator3x6v1x1Wasm:`${r}commitmentCalculator3x6-1.1.wasm`,commitmentCalculator3x6v1x1Zkey:`${r}commitmentCalculator3x6_final-1.1.zkey`,commitmentCalculator3x6v1x1VK:`${r}commitmentCalculator3x6_final-1.1_verification_key.json`,commitmentCalculator4x2v1x1Wasm:`${r}commitmentCalculator4x2-1.1.wasm`,commitmentCalculator4x2v1x1Zkey:`${r}commitmentCalculator4x2_final-1.1.zkey`,commitmentCalculator4x2v1x1VK:`${r}commitmentCalculator4x2_final-1.1_verification_key.json`,commitmentCalculator4x6v1x1Wasm:`${r}commitmentCalculator4x6-1.1.wasm`,commitmentCalculator4x6v1x1Zkey:`${r}commitmentCalculator4x6_final-1.1.zkey`,commitmentCalculator4x6v1x1VK:`${r}commitmentCalculator4x6_final-1.1_verification_key.json`,commitmentCalculator5x2v1x1Wasm:`${r}commitmentCalculator5x2-1.1.wasm`,commitmentCalculator5x2v1x1Zkey:`${r}commitmentCalculator5x2_final-1.1.zkey`,commitmentCalculator5x2v1x1VK:`${r}commitmentCalculator5x2_final-1.1_verification_key.json`,commitmentCalculator5x6v1x1Wasm:`${r}commitmentCalculator5x6-1.1.wasm`,commitmentCalculator5x6v1x1Zkey:`${r}commitmentCalculator5x6_final-1.1.zkey`,commitmentCalculator5x6v1x1VK:`${r}commitmentCalculator5x6_final-1.1_verification_key.json`},a={mainEVMCircuit1x2x1v1x1Wasm:`mainEVMCircuit1x2x1-1.1.wasm`,mainEVMCircuit1x2x1v1x1Zkey:`mainEVMCircuit1x2x1_final-1.1.zkey`,mainEVMCircuit1x6x1v1x1Wasm:`mainEVMCircuit1x6x1-1.1.wasm`,mainEVMCircuit1x6x1v1x1Zkey:`mainEVMCircuit1x6x1_final-1.1.zkey`,mainEVMCircuit2x2x1v1x1Wasm:`mainEVMCircuit2x2x1-1.1.wasm`,mainEVMCircuit2x2x1v1x1Zkey:`mainEVMCircuit2x2x1_final-1.1.zkey`,mainEVMCircuit2x6x1v1x1Wasm:`mainEVMCircuit2x6x1-1.1.wasm`,mainEVMCircuit2x6x1v1x1Zkey:`mainEVMCircuit2x6x1_final-1.1.zkey`,mainEVMCircuit3x2x1v1x1Wasm:`mainEVMCircuit3x2x1-1.1.wasm`,mainEVMCircuit3x2x1v1x1Zkey:`mainEVMCircuit3x2x1_final-1.1.zkey`,mainEVMCircuit3x6x1v1x1Wasm:`mainEVMCircuit3x6x1-1.1.wasm`,mainEVMCircuit3x6x1v1x1Zkey:`mainEVMCircuit3x6x1_final-1.1.zkey`,mainEVMCircuit4x2x1v1x1Wasm:`mainEVMCircuit4x2x1-1.1.wasm`,mainEVMCircuit4x2x1v1x1Zkey:`mainEVMCircuit4x2x1_final-1.1.zkey`,mainEVMCircuit4x6x1v1x1Wasm:`mainEVMCircuit4x6x1-1.1.wasm`,mainEVMCircuit4x6x1v1x1Zkey:`mainEVMCircuit4x6x1_final-1.1.zkey`,mainEVMCircuit5x2x1v1x1Wasm:`mainEVMCircuit5x2x1-1.1.wasm`,mainEVMCircuit5x2x1v1x1Zkey:`mainEVMCircuit5x2x1_final-1.1.zkey`,mainEVMCircuit5x6x1v1x1Wasm:`mainEVMCircuit5x6x1-1.1.wasm`,mainEVMCircuit5x6x1v1x1Zkey:`mainEVMCircuit5x6x1_final-1.1.zkey`,mainEVMCircuit1x2x2v1x1Wasm:`mainEVMCircuit1x2x2-1.1.wasm`,mainEVMCircuit1x2x2v1x1Zkey:`mainEVMCircuit1x2x2_final-1.1.zkey`,mainEVMCircuit1x6x2v1x1Wasm:`mainEVMCircuit1x6x2-1.1.wasm`,mainEVMCircuit1x6x2v1x1Zkey:`mainEVMCircuit1x6x2_final-1.1.zkey`,mainEVMCircuit2x2x2v1x1Wasm:`mainEVMCircuit2x2x2-1.1.wasm`,mainEVMCircuit2x2x2v1x1Zkey:`mainEVMCircuit2x2x2_final-1.1.zkey`,mainEVMCircuit2x6x2v1x1Wasm:`mainEVMCircuit2x6x2-1.1.wasm`,mainEVMCircuit2x6x2v1x1Zkey:`mainEVMCircuit2x6x2_final-1.1.zkey`,mainEVMCircuitMin0v1x1Wasm:`mainEVMCircuitMin0-1.1.wasm`,mainEVMCircuitMin0v1x1Zkey:`mainEVMCircuitMin0_final-1.1.zkey`,mainSolanaCircuit1x2x1v1x1Zkey:`mainSolanaCircuit1x2x1_final-1.1.zkey`,mainSolanaCircuit1x2x1v1x1Wasm:`mainSolanaCircuit1x2x1-1.1.wasm`,mainSolanaCircuit1x2x2v1x1Zkey:`mainSolanaCircuit1x2x2_final-1.1.zkey`,mainSolanaCircuit1x2x2v1x1Wasm:`mainSolanaCircuit1x2x2-1.1.wasm`,mainSolanaCircuit1x6x1v1x1Zkey:`mainSolanaCircuit1x6x1_final-1.1.zkey`,mainSolanaCircuit1x6x1v1x1Wasm:`mainSolanaCircuit1x6x1-1.1.wasm`,mainSolanaCircuit1x6x2v1x1Zkey:`mainSolanaCircuit1x6x2_final-1.1.zkey`,mainSolanaCircuit1x6x2v1x1Wasm:`mainSolanaCircuit1x6x2-1.1.wasm`,mainSolanaCircuit2x2x1v1x1Zkey:`mainSolanaCircuit2x2x1_final-1.1.zkey`,mainSolanaCircuit2x2x1v1x1Wasm:`mainSolanaCircuit2x2x1-1.1.wasm`,mainSolanaCircuit2x6x1v1x1Zkey:`mainSolanaCircuit2x6x1_final-1.1.zkey`,mainSolanaCircuit2x6x1v1x1Wasm:`mainSolanaCircuit2x6x1-1.1.wasm`,commitmentCalculator1x2v1x1Zkey:`commitmentCalculator1x2_final-1.1.zkey`,commitmentCalculator1x2v1x1Wasm:`commitmentCalculator1x2-1.1.wasm`,commitmentCalculator1x2v1x1VK:`commitmentCalculator1x2_final-1.1_verification_key.json`,commitmentCalculator1x6v1x1Zkey:`commitmentCalculator1x6_final-1.1.zkey`,commitmentCalculator1x6v1x1Wasm:`commitmentCalculator1x6-1.1.wasm`,commitmentCalculator1x6v1x1VK:`commitmentCalculator1x6_final-1.1_verification_key.json`,commitmentCalculator2x2v1x1Zkey:`commitmentCalculator2x2_final-1.1.zkey`,commitmentCalculator2x2v1x1Wasm:`commitmentCalculator2x2-1.1.wasm`,commitmentCalculator2x2v1x1VK:`commitmentCalculator2x2_final-1.1_verification_key.json`,commitmentCalculator2x6v1x1Zkey:`commitmentCalculator2x6_final-1.1.zkey`,commitmentCalculator2x6v1x1Wasm:`commitmentCalculator2x6-1.1.wasm`,commitmentCalculator2x6v1x1VK:`commitmentCalculator2x6_final-1.1_verification_key.json`,commitmentCalculator3x2v1x1Zkey:`commitmentCalculator3x2_final-1.1.zkey`,commitmentCalculator3x2v1x1Wasm:`commitmentCalculator3x2-1.1.wasm`,commitmentCalculator3x2v1x1VK:`commitmentCalculator3x2_final-1.1_verification_key.json`,commitmentCalculator3x6v1x1Zkey:`commitmentCalculator3x6_final-1.1.zkey`,commitmentCalculator3x6v1x1Wasm:`commitmentCalculator3x6-1.1.wasm`,commitmentCalculator3x6v1x1VK:`commitmentCalculator3x6_final-1.1_verification_key.json`,commitmentCalculator4x2v1x1Zkey:`commitmentCalculator4x2_final-1.1.zkey`,commitmentCalculator4x2v1x1Wasm:`commitmentCalculator4x2-1.1.wasm`,commitmentCalculator4x2v1x1VK:`commitmentCalculator4x2_final-1.1_verification_key.json`,commitmentCalculator4x6v1x1Zkey:`commitmentCalculator4x6_final-1.1.zkey`,commitmentCalculator4x6v1x1Wasm:`commitmentCalculator4x6-1.1.wasm`,commitmentCalculator4x6v1x1VK:`commitmentCalculator4x6_final-1.1_verification_key.json`,commitmentCalculator5x2v1x1Zkey:`commitmentCalculator5x2_final-1.1.zkey`,commitmentCalculator5x2v1x1Wasm:`commitmentCalculator5x2-1.1.wasm`,commitmentCalculator5x2v1x1VK:`commitmentCalculator5x2_final-1.1_verification_key.json`,commitmentCalculator5x6v1x1Zkey:`commitmentCalculator5x6_final-1.1.zkey`,commitmentCalculator5x6v1x1Wasm:`commitmentCalculator5x6-1.1.wasm`,commitmentCalculator5x6v1x1VK:`commitmentCalculator5x6_final-1.1_verification_key.json`};exports.ENCLAVE_URL=n,exports.localVerifiers=a,exports.prodVerifiers=i;
1
+ const e=require(`../../constants/vite.constants.cjs`),t=require(`../../API/getServerURL.cjs`);var n=e.isNotProduction?`https://enclave-staging-v2.hinkal.io`:`https://enclave-server.hinkal.io`,r=`${t.BACK_END_URL}/verifiers-v2/`,i={mainEVMCircuit1x2x1v1x1Wasm:`${r}mainEVMCircuit1x2x1-1.1.wasm`,mainEVMCircuit1x2x1v1x1Zkey:`${r}mainEVMCircuit1x2x1_final-1.1.zkey`,mainEVMCircuit1x6x1v1x1Wasm:`${r}mainEVMCircuit1x6x1-1.1.wasm`,mainEVMCircuit1x6x1v1x1Zkey:`${r}mainEVMCircuit1x6x1_final-1.1.zkey`,mainEVMCircuit2x2x1v1x1Wasm:`${r}mainEVMCircuit2x2x1-1.1.wasm`,mainEVMCircuit2x2x1v1x1Zkey:`${r}mainEVMCircuit2x2x1_final-1.1.zkey`,mainEVMCircuit2x6x1v1x1Wasm:`${r}mainEVMCircuit2x6x1-1.1.wasm`,mainEVMCircuit2x6x1v1x1Zkey:`${r}mainEVMCircuit2x6x1_final-1.1.zkey`,mainEVMCircuit3x2x1v1x1Wasm:`${r}mainEVMCircuit3x2x1-1.1.wasm`,mainEVMCircuit3x2x1v1x1Zkey:`${r}mainEVMCircuit3x2x1_final-1.1.zkey`,mainEVMCircuit3x6x1v1x1Wasm:`${r}mainEVMCircuit3x6x1-1.1.wasm`,mainEVMCircuit3x6x1v1x1Zkey:`${r}mainEVMCircuit3x6x1_final-1.1.zkey`,mainEVMCircuit4x2x1v1x1Wasm:`${r}mainEVMCircuit4x2x1-1.1.wasm`,mainEVMCircuit4x2x1v1x1Zkey:`${r}mainEVMCircuit4x2x1_final-1.1.zkey`,mainEVMCircuit4x6x1v1x1Wasm:`${r}mainEVMCircuit4x6x1-1.1.wasm`,mainEVMCircuit4x6x1v1x1Zkey:`${r}mainEVMCircuit4x6x1_final-1.1.zkey`,mainEVMCircuit5x2x1v1x1Wasm:`${r}mainEVMCircuit5x2x1-1.1.wasm`,mainEVMCircuit5x2x1v1x1Zkey:`${r}mainEVMCircuit5x2x1_final-1.1.zkey`,mainEVMCircuit5x6x1v1x1Wasm:`${r}mainEVMCircuit5x6x1-1.1.wasm`,mainEVMCircuit5x6x1v1x1Zkey:`${r}mainEVMCircuit5x6x1_final-1.1.zkey`,mainEVMCircuit1x2x2v1x1Wasm:`${r}mainEVMCircuit1x2x2-1.1.wasm`,mainEVMCircuit1x2x2v1x1Zkey:`${r}mainEVMCircuit1x2x2_final-1.1.zkey`,mainEVMCircuit1x6x2v1x1Wasm:`${r}mainEVMCircuit1x6x2-1.1.wasm`,mainEVMCircuit1x6x2v1x1Zkey:`${r}mainEVMCircuit1x6x2_final-1.1.zkey`,mainEVMCircuit2x2x2v1x1Wasm:`${r}mainEVMCircuit2x2x2-1.1.wasm`,mainEVMCircuit2x2x2v1x1Zkey:`${r}mainEVMCircuit2x2x2_final-1.1.zkey`,mainEVMCircuit2x6x2v1x1Wasm:`${r}mainEVMCircuit2x6x2-1.1.wasm`,mainEVMCircuit2x6x2v1x1Zkey:`${r}mainEVMCircuit2x6x2_final-1.1.zkey`,mainEVMCircuitMin0v1x1Wasm:`${r}mainEVMCircuitMin0-1.1.wasm`,mainEVMCircuitMin0v1x1Zkey:`${r}mainEVMCircuitMin0_final-1.1.zkey`,mainSolanaCircuit1x2x1v1x1Zkey:`${r}mainSolanaCircuit1x2x1_final-1.1.zkey`,mainSolanaCircuit1x2x1v1x1Wasm:`${r}mainSolanaCircuit1x2x1-1.1.wasm`,mainSolanaCircuit1x2x2v1x1Zkey:`${r}mainSolanaCircuit1x2x2_final-1.1.zkey`,mainSolanaCircuit1x2x2v1x1Wasm:`${r}mainSolanaCircuit1x2x2-1.1.wasm`,mainSolanaCircuit1x6x1v1x1Zkey:`${r}mainSolanaCircuit1x6x1_final-1.1.zkey`,mainSolanaCircuit1x6x1v1x1Wasm:`${r}mainSolanaCircuit1x6x1-1.1.wasm`,mainSolanaCircuit1x6x2v1x1Zkey:`${r}mainSolanaCircuit1x6x2_final-1.1.zkey`,mainSolanaCircuit1x6x2v1x1Wasm:`${r}mainSolanaCircuit1x6x2-1.1.wasm`,mainSolanaCircuit2x2x1v1x1Zkey:`${r}mainSolanaCircuit2x2x1_final-1.1.zkey`,mainSolanaCircuit2x2x1v1x1Wasm:`${r}mainSolanaCircuit2x2x1-1.1.wasm`,mainSolanaCircuit2x6x1v1x1Zkey:`${r}mainSolanaCircuit2x6x1_final-1.1.zkey`,mainSolanaCircuit2x6x1v1x1Wasm:`${r}mainSolanaCircuit2x6x1-1.1.wasm`,commitmentCalculator1x2v1x1Wasm:`${r}commitmentCalculator1x2-1.1.wasm`,commitmentCalculator1x2v1x1Zkey:`${r}commitmentCalculator1x2_final-1.1.zkey`,commitmentCalculator1x2v1x1VK:`${r}commitmentCalculator1x2_final-1.1_verification_key.json`,commitmentCalculator1x6v1x1Wasm:`${r}commitmentCalculator1x6-1.1.wasm`,commitmentCalculator1x6v1x1Zkey:`${r}commitmentCalculator1x6_final-1.1.zkey`,commitmentCalculator1x6v1x1VK:`${r}commitmentCalculator1x6_final-1.1_verification_key.json`,commitmentCalculator2x2v1x1Wasm:`${r}commitmentCalculator2x2-1.1.wasm`,commitmentCalculator2x2v1x1Zkey:`${r}commitmentCalculator2x2_final-1.1.zkey`,commitmentCalculator2x2v1x1VK:`${r}commitmentCalculator2x2_final-1.1_verification_key.json`,commitmentCalculator2x6v1x1Wasm:`${r}commitmentCalculator2x6-1.1.wasm`,commitmentCalculator2x6v1x1Zkey:`${r}commitmentCalculator2x6_final-1.1.zkey`,commitmentCalculator2x6v1x1VK:`${r}commitmentCalculator2x6_final-1.1_verification_key.json`,commitmentCalculator3x2v1x1Wasm:`${r}commitmentCalculator3x2-1.1.wasm`,commitmentCalculator3x2v1x1Zkey:`${r}commitmentCalculator3x2_final-1.1.zkey`,commitmentCalculator3x2v1x1VK:`${r}commitmentCalculator3x2_final-1.1_verification_key.json`,commitmentCalculator3x6v1x1Wasm:`${r}commitmentCalculator3x6-1.1.wasm`,commitmentCalculator3x6v1x1Zkey:`${r}commitmentCalculator3x6_final-1.1.zkey`,commitmentCalculator3x6v1x1VK:`${r}commitmentCalculator3x6_final-1.1_verification_key.json`,commitmentCalculator4x2v1x1Wasm:`${r}commitmentCalculator4x2-1.1.wasm`,commitmentCalculator4x2v1x1Zkey:`${r}commitmentCalculator4x2_final-1.1.zkey`,commitmentCalculator4x2v1x1VK:`${r}commitmentCalculator4x2_final-1.1_verification_key.json`,commitmentCalculator4x6v1x1Wasm:`${r}commitmentCalculator4x6-1.1.wasm`,commitmentCalculator4x6v1x1Zkey:`${r}commitmentCalculator4x6_final-1.1.zkey`,commitmentCalculator4x6v1x1VK:`${r}commitmentCalculator4x6_final-1.1_verification_key.json`,commitmentCalculator5x2v1x1Wasm:`${r}commitmentCalculator5x2-1.1.wasm`,commitmentCalculator5x2v1x1Zkey:`${r}commitmentCalculator5x2_final-1.1.zkey`,commitmentCalculator5x2v1x1VK:`${r}commitmentCalculator5x2_final-1.1_verification_key.json`,commitmentCalculator5x6v1x1Wasm:`${r}commitmentCalculator5x6-1.1.wasm`,commitmentCalculator5x6v1x1Zkey:`${r}commitmentCalculator5x6_final-1.1.zkey`,commitmentCalculator5x6v1x1VK:`${r}commitmentCalculator5x6_final-1.1_verification_key.json`},a={mainEVMCircuit1x2x1v1x1Wasm:`mainEVMCircuit1x2x1-1.1.wasm`,mainEVMCircuit1x2x1v1x1Zkey:`mainEVMCircuit1x2x1_final-1.1.zkey`,mainEVMCircuit1x6x1v1x1Wasm:`mainEVMCircuit1x6x1-1.1.wasm`,mainEVMCircuit1x6x1v1x1Zkey:`mainEVMCircuit1x6x1_final-1.1.zkey`,mainEVMCircuit2x2x1v1x1Wasm:`mainEVMCircuit2x2x1-1.1.wasm`,mainEVMCircuit2x2x1v1x1Zkey:`mainEVMCircuit2x2x1_final-1.1.zkey`,mainEVMCircuit2x6x1v1x1Wasm:`mainEVMCircuit2x6x1-1.1.wasm`,mainEVMCircuit2x6x1v1x1Zkey:`mainEVMCircuit2x6x1_final-1.1.zkey`,mainEVMCircuit3x2x1v1x1Wasm:`mainEVMCircuit3x2x1-1.1.wasm`,mainEVMCircuit3x2x1v1x1Zkey:`mainEVMCircuit3x2x1_final-1.1.zkey`,mainEVMCircuit3x6x1v1x1Wasm:`mainEVMCircuit3x6x1-1.1.wasm`,mainEVMCircuit3x6x1v1x1Zkey:`mainEVMCircuit3x6x1_final-1.1.zkey`,mainEVMCircuit4x2x1v1x1Wasm:`mainEVMCircuit4x2x1-1.1.wasm`,mainEVMCircuit4x2x1v1x1Zkey:`mainEVMCircuit4x2x1_final-1.1.zkey`,mainEVMCircuit4x6x1v1x1Wasm:`mainEVMCircuit4x6x1-1.1.wasm`,mainEVMCircuit4x6x1v1x1Zkey:`mainEVMCircuit4x6x1_final-1.1.zkey`,mainEVMCircuit5x2x1v1x1Wasm:`mainEVMCircuit5x2x1-1.1.wasm`,mainEVMCircuit5x2x1v1x1Zkey:`mainEVMCircuit5x2x1_final-1.1.zkey`,mainEVMCircuit5x6x1v1x1Wasm:`mainEVMCircuit5x6x1-1.1.wasm`,mainEVMCircuit5x6x1v1x1Zkey:`mainEVMCircuit5x6x1_final-1.1.zkey`,mainEVMCircuit1x2x2v1x1Wasm:`mainEVMCircuit1x2x2-1.1.wasm`,mainEVMCircuit1x2x2v1x1Zkey:`mainEVMCircuit1x2x2_final-1.1.zkey`,mainEVMCircuit1x6x2v1x1Wasm:`mainEVMCircuit1x6x2-1.1.wasm`,mainEVMCircuit1x6x2v1x1Zkey:`mainEVMCircuit1x6x2_final-1.1.zkey`,mainEVMCircuit2x2x2v1x1Wasm:`mainEVMCircuit2x2x2-1.1.wasm`,mainEVMCircuit2x2x2v1x1Zkey:`mainEVMCircuit2x2x2_final-1.1.zkey`,mainEVMCircuit2x6x2v1x1Wasm:`mainEVMCircuit2x6x2-1.1.wasm`,mainEVMCircuit2x6x2v1x1Zkey:`mainEVMCircuit2x6x2_final-1.1.zkey`,mainEVMCircuitMin0v1x1Wasm:`mainEVMCircuitMin0-1.1.wasm`,mainEVMCircuitMin0v1x1Zkey:`mainEVMCircuitMin0_final-1.1.zkey`,mainSolanaCircuit1x2x1v1x1Zkey:`mainSolanaCircuit1x2x1_final-1.1.zkey`,mainSolanaCircuit1x2x1v1x1Wasm:`mainSolanaCircuit1x2x1-1.1.wasm`,mainSolanaCircuit1x2x2v1x1Zkey:`mainSolanaCircuit1x2x2_final-1.1.zkey`,mainSolanaCircuit1x2x2v1x1Wasm:`mainSolanaCircuit1x2x2-1.1.wasm`,mainSolanaCircuit1x6x1v1x1Zkey:`mainSolanaCircuit1x6x1_final-1.1.zkey`,mainSolanaCircuit1x6x1v1x1Wasm:`mainSolanaCircuit1x6x1-1.1.wasm`,mainSolanaCircuit1x6x2v1x1Zkey:`mainSolanaCircuit1x6x2_final-1.1.zkey`,mainSolanaCircuit1x6x2v1x1Wasm:`mainSolanaCircuit1x6x2-1.1.wasm`,mainSolanaCircuit2x2x1v1x1Zkey:`mainSolanaCircuit2x2x1_final-1.1.zkey`,mainSolanaCircuit2x2x1v1x1Wasm:`mainSolanaCircuit2x2x1-1.1.wasm`,mainSolanaCircuit2x6x1v1x1Zkey:`mainSolanaCircuit2x6x1_final-1.1.zkey`,mainSolanaCircuit2x6x1v1x1Wasm:`mainSolanaCircuit2x6x1-1.1.wasm`,commitmentCalculator1x2v1x1Zkey:`commitmentCalculator1x2_final-1.1.zkey`,commitmentCalculator1x2v1x1Wasm:`commitmentCalculator1x2-1.1.wasm`,commitmentCalculator1x2v1x1VK:`commitmentCalculator1x2_final-1.1_verification_key.json`,commitmentCalculator1x6v1x1Zkey:`commitmentCalculator1x6_final-1.1.zkey`,commitmentCalculator1x6v1x1Wasm:`commitmentCalculator1x6-1.1.wasm`,commitmentCalculator1x6v1x1VK:`commitmentCalculator1x6_final-1.1_verification_key.json`,commitmentCalculator2x2v1x1Zkey:`commitmentCalculator2x2_final-1.1.zkey`,commitmentCalculator2x2v1x1Wasm:`commitmentCalculator2x2-1.1.wasm`,commitmentCalculator2x2v1x1VK:`commitmentCalculator2x2_final-1.1_verification_key.json`,commitmentCalculator2x6v1x1Zkey:`commitmentCalculator2x6_final-1.1.zkey`,commitmentCalculator2x6v1x1Wasm:`commitmentCalculator2x6-1.1.wasm`,commitmentCalculator2x6v1x1VK:`commitmentCalculator2x6_final-1.1_verification_key.json`,commitmentCalculator3x2v1x1Zkey:`commitmentCalculator3x2_final-1.1.zkey`,commitmentCalculator3x2v1x1Wasm:`commitmentCalculator3x2-1.1.wasm`,commitmentCalculator3x2v1x1VK:`commitmentCalculator3x2_final-1.1_verification_key.json`,commitmentCalculator3x6v1x1Zkey:`commitmentCalculator3x6_final-1.1.zkey`,commitmentCalculator3x6v1x1Wasm:`commitmentCalculator3x6-1.1.wasm`,commitmentCalculator3x6v1x1VK:`commitmentCalculator3x6_final-1.1_verification_key.json`,commitmentCalculator4x2v1x1Zkey:`commitmentCalculator4x2_final-1.1.zkey`,commitmentCalculator4x2v1x1Wasm:`commitmentCalculator4x2-1.1.wasm`,commitmentCalculator4x2v1x1VK:`commitmentCalculator4x2_final-1.1_verification_key.json`,commitmentCalculator4x6v1x1Zkey:`commitmentCalculator4x6_final-1.1.zkey`,commitmentCalculator4x6v1x1Wasm:`commitmentCalculator4x6-1.1.wasm`,commitmentCalculator4x6v1x1VK:`commitmentCalculator4x6_final-1.1_verification_key.json`,commitmentCalculator5x2v1x1Zkey:`commitmentCalculator5x2_final-1.1.zkey`,commitmentCalculator5x2v1x1Wasm:`commitmentCalculator5x2-1.1.wasm`,commitmentCalculator5x2v1x1VK:`commitmentCalculator5x2_final-1.1_verification_key.json`,commitmentCalculator5x6v1x1Zkey:`commitmentCalculator5x6_final-1.1.zkey`,commitmentCalculator5x6v1x1Wasm:`commitmentCalculator5x6-1.1.wasm`,commitmentCalculator5x6v1x1VK:`commitmentCalculator5x6_final-1.1_verification_key.json`};exports.ENCLAVE_URL=n,exports.localVerifiers=a,exports.prodVerifiers=i;
@@ -1,7 +1,7 @@
1
1
  import { isNotProduction as e } from "../../constants/vite.constants.mjs";
2
2
  import { BACK_END_URL as t } from "../../API/getServerURL.mjs";
3
3
  //#region libs/shared/common/src/functions/snarkjs/constant.ts
4
- var n = e ? "https://enclave-staging.hinkal.io" : "https://enclave-server.hinkal.io", r = `${t}/verifiers-v2/`, i = {
4
+ var n = e ? "https://enclave-staging-v2.hinkal.io" : "https://enclave-server.hinkal.io", r = `${t}/verifiers-v2/`, i = {
5
5
  mainEVMCircuit1x2x1v1x1Wasm: `${r}mainEVMCircuit1x2x1-1.1.wasm`,
6
6
  mainEVMCircuit1x2x1v1x1Zkey: `${r}mainEVMCircuit1x2x1_final-1.1.zkey`,
7
7
  mainEVMCircuit1x6x1v1x1Wasm: `${r}mainEVMCircuit1x6x1-1.1.wasm`,
@@ -1 +1 @@
1
- const e=require(`./encryptInputForEnclave.cjs`),t=require(`../../API/enclaveSignatureCalls.cjs`);var n=async(n,r,i,a)=>{let{keyCiphertext:o,inputCiphertext:s}=await e.makeEnclaveHandshakeAndEncryptInput(r),{signature:c}=await t.storeAndGetSignatureEnclaveCall(n,s,o,i,a);return c};exports.storeAndGetSignatureFromEnclave=n;
1
+ const e=require(`./encryptInputForEnclave.cjs`),t=require(`../../API/enclaveSignatureCalls.cjs`);var n=async(n,r,i=!1,a)=>{let{keyCiphertext:o,inputCiphertext:s}=await e.makeEnclaveHandshakeAndEncryptInput(r),{signature:c}=await t.storeAndGetSignatureEnclaveCall(n,s,o,i,a);return c};exports.storeAndGetSignatureFromEnclave=n;
@@ -1 +1 @@
1
- export declare const storeAndGetSignatureFromEnclave: (ethAddress: string, authSignature: string, isSolanaLedger: boolean, txMessageForSolanaLedger?: string) => Promise<string>;
1
+ export declare const storeAndGetSignatureFromEnclave: (ethAddress: string, authSignature: string, isSolanaLedger?: boolean, txMessageForSolanaLedger?: string) => Promise<string>;
@@ -1,7 +1,7 @@
1
1
  import { makeEnclaveHandshakeAndEncryptInput as e } from "./encryptInputForEnclave.mjs";
2
2
  import { storeAndGetSignatureEnclaveCall as t } from "../../API/enclaveSignatureCalls.mjs";
3
3
  //#region libs/shared/common/src/functions/utils/enclave-signature-storage.ts
4
- var n = async (n, r, i, a) => {
4
+ var n = async (n, r, i = !1, a) => {
5
5
  let { keyCiphertext: o, inputCiphertext: s } = await e(r), { signature: c } = await t(n, s, o, i, a);
6
6
  return c;
7
7
  };
@@ -1 +1 @@
1
- require(`../../constants/chains.constants.cjs`);const e=require(`../../constants/protocol.constants.cjs`);require(`../web3/etherFunctions.cjs`);const t=require(`../../API/token-calls.cjs`);require(`../../constants/tokens.constants.cjs`);var n=async(e,n)=>{let[r]=await t.tokensInfoCall(e,[n]);return r},r=async e=>await t.getTokensForChainCall(e),i=async(e,n)=>await t.getTokenBySymbolCall(n,e),a=async(e,t)=>{let r=await n(t,e.erc20TokenAddress);return r?{...e,name:r.name,symbol:r.symbol,logoURI:r.logoURI,decimals:r.decimals}:e},o=t=>t.nftTokenType===e.TokenType.ERC721||t.nftTokenType===e.TokenType.ERC1155||t.nftTokenType===e.TokenType.MetaplexNFT||t.nftTokenType===e.TokenType.Token2022NFT||t.nftTokenType===e.TokenType.CompressedNFT;exports.getErc20TokenBySymbolFromAPI=i,exports.getErc20TokenFromAPI=n,exports.getErc20TokensForChainAPI=r,exports.isNFTToken=o,exports.overlayTokenWithRegistryData=a;
1
+ require(`../../constants/chains.constants.cjs`);const e=require(`../../constants/protocol.constants.cjs`);require(`../web3/etherFunctions.cjs`);const t=require(`../../API/token-calls.cjs`);require(`../../constants/tokens.constants.cjs`);var n=async(e,n)=>{let[r]=await t.tokensInfoCall(e,[n]);return r},r=async(e,n)=>n.length===0?[]:t.tokensInfoCall(e,n),i=async e=>await t.getTokensForChainCall(e),a=async(e,n)=>await t.getTokenBySymbolCall(n,e),o=async(e,t)=>{let r=await n(t,e.erc20TokenAddress);return r?{...e,name:r.name,symbol:r.symbol,logoURI:r.logoURI,decimals:r.decimals}:e},s=t=>t.nftTokenType===e.TokenType.ERC721||t.nftTokenType===e.TokenType.ERC1155||t.nftTokenType===e.TokenType.MetaplexNFT||t.nftTokenType===e.TokenType.Token2022NFT||t.nftTokenType===e.TokenType.CompressedNFT;exports.getErc20TokenBySymbolFromAPI=a,exports.getErc20TokenFromAPI=n,exports.getErc20TokensForChainAPI=i,exports.getErc20TokensFromAPI=r,exports.isNFTToken=s,exports.overlayTokenWithRegistryData=o;
@@ -1,5 +1,6 @@
1
1
  import { ERC20Token, TokenChanges } from '../../types/token.types';
2
2
  export declare const getErc20TokenFromAPI: (chainId: number, address: string) => Promise<ERC20Token | undefined>;
3
+ export declare const getErc20TokensFromAPI: (chainId: number, addresses: string[]) => Promise<(ERC20Token | undefined)[]>;
3
4
  export declare const getErc20TokensForChainAPI: (chainId: number) => Promise<ERC20Token[]>;
4
5
  export declare const getErc20TokenBySymbolFromAPI: (symbol: string, chainId: number) => Promise<ERC20Token | undefined>;
5
6
  export declare const overlayTokenWithRegistryData: (token: ERC20Token, chainId: number) => Promise<ERC20Token>;
@@ -7,7 +7,7 @@ import "../../constants/tokens.constants.mjs";
7
7
  var i = async (e, t) => {
8
8
  let [n] = await r(e, [t]);
9
9
  return n;
10
- }, a = async (e) => await n(e), o = async (e, n) => await t(n, e), s = async (e, t) => {
10
+ }, a = async (e, t) => t.length === 0 ? [] : r(e, t), o = async (e) => await n(e), s = async (e, n) => await t(n, e), c = async (e, t) => {
11
11
  let n = await i(t, e.erc20TokenAddress);
12
12
  return n ? {
13
13
  ...e,
@@ -16,6 +16,6 @@ var i = async (e, t) => {
16
16
  logoURI: n.logoURI,
17
17
  decimals: n.decimals
18
18
  } : e;
19
- }, c = (t) => t.nftTokenType === e.ERC721 || t.nftTokenType === e.ERC1155 || t.nftTokenType === e.MetaplexNFT || t.nftTokenType === e.Token2022NFT || t.nftTokenType === e.CompressedNFT;
19
+ }, l = (t) => t.nftTokenType === e.ERC721 || t.nftTokenType === e.ERC1155 || t.nftTokenType === e.MetaplexNFT || t.nftTokenType === e.Token2022NFT || t.nftTokenType === e.CompressedNFT;
20
20
  //#endregion
21
- export { o as getErc20TokenBySymbolFromAPI, i as getErc20TokenFromAPI, a as getErc20TokensForChainAPI, c as isNFTToken, s as overlayTokenWithRegistryData };
21
+ export { s as getErc20TokenBySymbolFromAPI, i as getErc20TokenFromAPI, o as getErc20TokensForChainAPI, a as getErc20TokensFromAPI, l as isNFTToken, c as overlayTokenWithRegistryData };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gurge/sdk",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "homepage": "hinkal.io",
5
5
  "author": {
6
6
  "name": "Hinkal Protocol"
@@ -14,8 +14,8 @@
14
14
  var e = /* @__PURE__ */ ((r) => (r.ZKProof = "ZKProof", r.SnarkJS = "SnarkJS", r.UTXO = "UTXO", r))(e || {});
15
15
 
16
16
  const n = async () => ({
17
- [e.ZKProof]: await getWorkerURL(domain + '/0.3.9/' + 'zkProofWorkerLauncher.js'),
18
- [e.SnarkJS]: await getWorkerURL(domain + '/0.3.9/' + 'snarkjsWorkerLauncher.js'),
19
- [e.UTXO]: await getWorkerURL(domain + '/0.3.9/' + 'utxoWorkerLauncher.js'),
17
+ [e.ZKProof]: await getWorkerURL(domain + '/0.3.11/' + 'zkProofWorkerLauncher.js'),
18
+ [e.SnarkJS]: await getWorkerURL(domain + '/0.3.11/' + 'snarkjsWorkerLauncher.js'),
19
+ [e.UTXO]: await getWorkerURL(domain + '/0.3.11/' + 'utxoWorkerLauncher.js'),
20
20
  });
21
21
  exports.getWorkerViteURL = n;
@@ -14,8 +14,8 @@
14
14
  var e = /* @__PURE__ */ ((r) => (r.ZKProof = "ZKProof", r.SnarkJS = "SnarkJS", r.UTXO = "UTXO", r))(e || {});
15
15
 
16
16
  const n = async () => ({
17
- [e.ZKProof]: await getWorkerURL(domain + '/0.3.9/' + 'zkProofWorkerLauncher.js'),
18
- [e.SnarkJS]: await getWorkerURL(domain + '/0.3.9/' + 'snarkjsWorkerLauncher.js'),
19
- [e.UTXO]: await getWorkerURL(domain + '/0.3.9/' + 'utxoWorkerLauncher.js'),
17
+ [e.ZKProof]: await getWorkerURL(domain + '/0.3.11/' + 'zkProofWorkerLauncher.js'),
18
+ [e.SnarkJS]: await getWorkerURL(domain + '/0.3.11/' + 'snarkjsWorkerLauncher.js'),
19
+ [e.UTXO]: await getWorkerURL(domain + '/0.3.11/' + 'utxoWorkerLauncher.js'),
20
20
  });
21
21
  export { n as getWorkerViteURL };
@@ -1 +1 @@
1
- require(`../common/src/functions/pre-transaction/getFeeStructure.cjs`),require(`../common/src/crypto/preProcessing.cjs`),require(`../common/src/functions/web3/odosAPI.cjs`),require(`../common/src/functions/web3/oneInchAPI.cjs`),require(`../common/src/functions/web3/lifiAPI.cjs`),require(`../common/src/functions/web3/okxAPI.cjs`),require(`./utils/refreshBalance.cjs`),require(`./utils/getERC20Token.cjs`),require(`./utils/index.cjs`),require(`./integrations/swapApi.cjs`),require(`./integrations/index.cjs`);
1
+ require(`../common/src/functions/pre-transaction/getFeeStructure.cjs`),require(`../common/src/crypto/preProcessing.cjs`),require(`../common/src/functions/web3/odosAPI.cjs`),require(`../common/src/functions/web3/oneInchAPI.cjs`),require(`../common/src/functions/web3/lifiAPI.cjs`),require(`../common/src/functions/web3/okxAPI.cjs`),require(`./utils/refreshBalance.cjs`),require(`./utils/index.cjs`),require(`./integrations/swapApi.cjs`),require(`./integrations/index.cjs`);
@@ -5,7 +5,6 @@ import "../common/src/functions/web3/oneInchAPI.mjs";
5
5
  import "../common/src/functions/web3/lifiAPI.mjs";
6
6
  import "../common/src/functions/web3/okxAPI.mjs";
7
7
  import "./utils/refreshBalance.mjs";
8
- import "./utils/getERC20Token.mjs";
9
8
  import "./utils/index.mjs";
10
9
  import "./integrations/swapApi.mjs";
11
10
  import "./integrations/index.mjs";
@@ -1 +1 @@
1
- const e=require(`../../common/src/functions/web3/uniswapAPI.cjs`);require(`../../common/src/functions/web3/odosAPI.cjs`),require(`../../common/src/functions/web3/oneInchAPI.cjs`),require(`../../common/src/functions/web3/lifiAPI.cjs`),require(`../../common/src/functions/web3/okxAPI.cjs`);var t=async(t,n,r,i,a)=>{let o=t.hinkalCommon;return e.getUniswapPrice(o,n,r,i,a)};exports.getUniswapPrice=t;
1
+ const e=require(`../../common/src/functions/web3/uniswapAPI.cjs`);require(`../../common/src/functions/web3/odosAPI.cjs`),require(`../../common/src/functions/web3/oneInchAPI.cjs`),require(`../../common/src/functions/web3/lifiAPI.cjs`),require(`../../common/src/functions/web3/okxAPI.cjs`);const t=require(`../../internal/token.utils.cjs`);var n=async(n,r,i,a,o)=>{let s=n.hinkalCommon,[c,l]=await t.resolveErc20Tokens(r,[a,o]);return e.getUniswapPrice(s,r,i,c,l)};exports.getUniswapPrice=n;
@@ -1,9 +1,9 @@
1
- import { ERC20Token, IHinkal } from '../../types';
1
+ import { IHinkal } from '../../types';
2
2
  export { getOdosPrice } from '../../common/src/functions/web3/odosAPI';
3
3
  export { getOneInchPrice } from '../../common/src/functions/web3/oneInchAPI';
4
4
  export { getLifiPrice } from '../../common/src/functions/web3/lifiAPI';
5
5
  export { getOKXPrice } from '../../common/src/functions/web3/okxAPI';
6
- export declare const getUniswapPrice: (hinkal: IHinkal, chainId: number, inSwapAmount: string, inSwapToken: ERC20Token, outSwapToken: ERC20Token) => Promise<{
6
+ export declare const getUniswapPrice: (hinkal: IHinkal, chainId: number, inSwapAmount: string, inSwapTokenAddress: string, outSwapTokenAddress: string) => Promise<{
7
7
  tokenPrice: bigint;
8
8
  poolFee: string;
9
9
  }>;
@@ -3,10 +3,11 @@ import "../../common/src/functions/web3/odosAPI.mjs";
3
3
  import "../../common/src/functions/web3/oneInchAPI.mjs";
4
4
  import "../../common/src/functions/web3/lifiAPI.mjs";
5
5
  import "../../common/src/functions/web3/okxAPI.mjs";
6
+ import { resolveErc20Tokens as t } from "../../internal/token.utils.mjs";
6
7
  //#region libs/shared/sdk/src/functions/integrations/swapApi.ts
7
- var t = async (t, n, r, i, a) => {
8
- let o = t.hinkalCommon;
9
- return e(o, n, r, i, a);
8
+ var n = async (n, r, i, a, o) => {
9
+ let s = n.hinkalCommon, [c, l] = await t(r, [a, o]);
10
+ return e(s, r, i, c, l);
10
11
  };
11
12
  //#endregion
12
- export { t as getUniswapPrice };
13
+ export { n as getUniswapPrice };
@@ -1 +1 @@
1
- require(`../../common/src/functions/pre-transaction/getFeeStructure.cjs`),require(`../../common/src/crypto/preProcessing.cjs`),require(`./getFeeStructure.cjs`),require(`./refreshBalance.cjs`),require(`./preProcessing.cjs`),require(`./getERC20Token.cjs`);
1
+ require(`../../common/src/functions/pre-transaction/getFeeStructure.cjs`),require(`../../common/src/crypto/preProcessing.cjs`),require(`./getFeeStructure.cjs`),require(`./refreshBalance.cjs`),require(`./preProcessing.cjs`);
@@ -1,4 +1,3 @@
1
1
  export * from './getFeeStructure';
2
2
  export * from './refreshBalance';
3
3
  export * from './preProcessing';
4
- export * from './getERC20Token';
@@ -3,4 +3,3 @@ import "../../common/src/crypto/preProcessing.mjs";
3
3
  import "./getFeeStructure.mjs";
4
4
  import "./refreshBalance.mjs";
5
5
  import "./preProcessing.mjs";
6
- import "./getERC20Token.mjs";
package/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./common/src/types/external-action.types.cjs`),t=require(`./common/src/types/balances.types.cjs`),n=require(`./common/src/functions/pre-transaction/getFeeStructure.cjs`),r=require(`./common/src/crypto/preProcessing.cjs`),i=require(`./common/src/functions/web3/odosAPI.cjs`),a=require(`./common/src/functions/web3/oneInchAPI.cjs`),o=require(`./common/src/functions/web3/lifiAPI.cjs`),s=require(`./common/src/functions/web3/okxAPI.cjs`),c=require(`./services/Hinkal.cjs`);require(`./services/index.cjs`);const l=require(`./functions/utils/refreshBalance.cjs`),u=require(`./functions/utils/getERC20Token.cjs`),d=require(`./functions/integrations/swapApi.cjs`);require(`./functions/index.cjs`),require(`./types/index.cjs`),exports.ExternalActionId=e.ExternalActionId,exports.Hinkal=c.Hinkal,exports.PrivateBalanceUpdateType=t.PrivateBalanceUpdateType,exports.getERC20Token=u.getERC20Token,exports.getFeeStructure=n.getFeeStructure,exports.getLifiPrice=o.getLifiPrice,exports.getOKXPrice=s.getOKXPrice,exports.getOdosPrice=i.getOdosPrice,exports.getOneInchPrice=a.getOneInchPrice,exports.getUniswapPrice=d.getUniswapPrice,exports.preProcessing=r.preProcessing,exports.refreshBalance=l.refreshBalance;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./common/src/types/external-action.types.cjs`),t=require(`./common/src/types/balances.types.cjs`),n=require(`./common/src/functions/pre-transaction/getFeeStructure.cjs`),r=require(`./common/src/crypto/preProcessing.cjs`),i=require(`./common/src/functions/web3/odosAPI.cjs`),a=require(`./common/src/functions/web3/oneInchAPI.cjs`),o=require(`./common/src/functions/web3/lifiAPI.cjs`),s=require(`./common/src/functions/web3/okxAPI.cjs`),c=require(`./services/Hinkal.cjs`);require(`./services/index.cjs`);const l=require(`./functions/utils/refreshBalance.cjs`),u=require(`./functions/integrations/swapApi.cjs`);require(`./functions/index.cjs`),require(`./types/index.cjs`),exports.ExternalActionId=e.ExternalActionId,exports.Hinkal=c.Hinkal,exports.PrivateBalanceUpdateType=t.PrivateBalanceUpdateType,exports.getFeeStructure=n.getFeeStructure,exports.getLifiPrice=o.getLifiPrice,exports.getOKXPrice=s.getOKXPrice,exports.getOdosPrice=i.getOdosPrice,exports.getOneInchPrice=a.getOneInchPrice,exports.getUniswapPrice=u.getUniswapPrice,exports.preProcessing=r.preProcessing,exports.refreshBalance=l.refreshBalance;
package/index.mjs CHANGED
@@ -9,8 +9,7 @@ import { getOKXPrice as s } from "./common/src/functions/web3/okxAPI.mjs";
9
9
  import { Hinkal as c } from "./services/Hinkal.mjs";
10
10
  import "./services/index.mjs";
11
11
  import { refreshBalance as l } from "./functions/utils/refreshBalance.mjs";
12
- import { getERC20Token as u } from "./functions/utils/getERC20Token.mjs";
13
- import { getUniswapPrice as d } from "./functions/integrations/swapApi.mjs";
12
+ import { getUniswapPrice as u } from "./functions/integrations/swapApi.mjs";
14
13
  import "./functions/index.mjs";
15
14
  import "./types/index.mjs";
16
- export { e as ExternalActionId, c as Hinkal, t as PrivateBalanceUpdateType, u as getERC20Token, n as getFeeStructure, o as getLifiPrice, s as getOKXPrice, i as getOdosPrice, a as getOneInchPrice, d as getUniswapPrice, r as preProcessing, l as refreshBalance };
15
+ export { e as ExternalActionId, c as Hinkal, t as PrivateBalanceUpdateType, n as getFeeStructure, o as getLifiPrice, s as getOKXPrice, i as getOdosPrice, a as getOneInchPrice, u as getUniswapPrice, r as preProcessing, l as refreshBalance };
@@ -0,0 +1 @@
1
+ const e=require(`../common/src/functions/utils/erc20tokenFunctions.cjs`);var t=async(t,n)=>{let r=await e.getErc20TokenFromAPI(t,n);if(!r)throw Error(`Token not found: ${n} on chain ${t}`);return r},n=async(t,n)=>{if(n.length===0)return[];let r=await e.getErc20TokensFromAPI(t,n);return n.map((e,n)=>{let i=r[n];if(!i)throw Error(`Token not found: ${e} on chain ${t}`);return i})},r=async(e,t)=>{if(t.length===0)return[];let r=await n(e,t.map(({erc20Address:e})=>e));return t.map(({amount:e,nftIds:t},n)=>({token:r[n],amount:e,nftIds:t}))},i=e=>({chainId:e.token.chainId,erc20Address:e.token.erc20TokenAddress,balance:e.balance,timestamp:e.timestamp,isBalanceLoading:e.isBalanceLoading,usdValue:e.usdValue,isUsdValueLoading:e.isUsdValueLoading}),a=e=>({chainId:e.token.chainId,erc20Address:e.token.erc20TokenAddress,balance:e.balance,timestamp:e.timestamp}),o=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[Number(e),t?.map(i)]));exports.mapPrivateBalances=o,exports.mapTokenBalance=a,exports.resolveCommonTokenChanges=r,exports.resolveErc20Token=t,exports.resolveErc20Tokens=n;
@@ -0,0 +1,7 @@
1
+ import { PrivateBalancesState as CommonPrivateBalancesState, TokenBalance as CommonTokenBalance, TokenChanges as CommonTokenChanges, ERC20Token } from '../common/src/types';
2
+ import { PrivateBalancesState, TokenBalance, TokenChanges } from '../types';
3
+ export declare const resolveErc20Token: (chainId: number, erc20Address: string) => Promise<ERC20Token>;
4
+ export declare const resolveErc20Tokens: (chainId: number, erc20Addresses: string[]) => Promise<ERC20Token[]>;
5
+ export declare const resolveCommonTokenChanges: (chainId: number, tokenChanges: TokenChanges<bigint>[]) => Promise<CommonTokenChanges<bigint>[]>;
6
+ export declare const mapTokenBalance: (balance: CommonTokenBalance) => TokenBalance;
7
+ export declare const mapPrivateBalances: (state: CommonPrivateBalancesState) => PrivateBalancesState;
@@ -0,0 +1,38 @@
1
+ import { getErc20TokenFromAPI as e, getErc20TokensFromAPI as t } from "../common/src/functions/utils/erc20tokenFunctions.mjs";
2
+ //#region libs/shared/sdk/src/internal/token.utils.ts
3
+ var n = async (t, n) => {
4
+ let r = await e(t, n);
5
+ if (!r) throw Error(`Token not found: ${n} on chain ${t}`);
6
+ return r;
7
+ }, r = async (e, n) => {
8
+ if (n.length === 0) return [];
9
+ let r = await t(e, n);
10
+ return n.map((t, n) => {
11
+ let i = r[n];
12
+ if (!i) throw Error(`Token not found: ${t} on chain ${e}`);
13
+ return i;
14
+ });
15
+ }, i = async (e, t) => {
16
+ if (t.length === 0) return [];
17
+ let n = await r(e, t.map(({ erc20Address: e }) => e));
18
+ return t.map(({ amount: e, nftIds: t }, r) => ({
19
+ token: n[r],
20
+ amount: e,
21
+ nftIds: t
22
+ }));
23
+ }, a = (e) => ({
24
+ chainId: e.token.chainId,
25
+ erc20Address: e.token.erc20TokenAddress,
26
+ balance: e.balance,
27
+ timestamp: e.timestamp,
28
+ isBalanceLoading: e.isBalanceLoading,
29
+ usdValue: e.usdValue,
30
+ isUsdValueLoading: e.isUsdValueLoading
31
+ }), o = (e) => ({
32
+ chainId: e.token.chainId,
33
+ erc20Address: e.token.erc20TokenAddress,
34
+ balance: e.balance,
35
+ timestamp: e.timestamp
36
+ }), s = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [Number(e), t?.map(a)]));
37
+ //#endregion
38
+ export { s as mapPrivateBalances, o as mapTokenBalance, i as resolveCommonTokenChanges, n as resolveErc20Token, r as resolveErc20Tokens };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gurge/sdk",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "homepage": "hinkal.io",
5
5
  "author": {
6
6
  "name": "Hinkal Protocol"
@@ -1 +1 @@
1
- const e=require(`../common/src/constants/chains.constants.cjs`),t=require(`../common/src/types/hinkal.types.cjs`);require(`../common/src/types/index.cjs`);const n=require(`../common/src/data-structures/Hinkal/Hinkal.cjs`);var r=class{hinkalCommon;constructor(e){this.hinkalCommon=new n.Hinkal(e)}getProviderAdapter(e){return this.hinkalCommon.getProviderAdapter(e)}initProviderAdapter(e,t){return this.hinkalCommon.initProviderAdapter(e,t)}initUserKeys(e=t.LoginMessageMode.PROTOCOL){return this.hinkalCommon.initUserKeys(e)}initUserKeysWithSignature(e){return this.hinkalCommon.initUserKeysWithSignature(e)}initUserKeysFromSeedPhrases(e){return this.hinkalCommon.initUserKeysFromSeedPhrases(e)}storeAndGetInitialSignature(e,t=!1,n){return this.hinkalCommon.storeAndGetInitialSignature(e,t,n)}resetProviderAdapters(){return this.hinkalCommon.resetProviderAdapters()}disconnectFromConnector(){return this.hinkalCommon.disconnectFromConnector()}signMessage(e){return this.hinkalCommon.signMessage(e)}signTypedData(e,t,n){return this.hinkalCommon.signTypedData(e,t,n)}getSupportedChains(){return this.hinkalCommon.getSupportedChains()}isSelectedNetworkSupported(e){return this.hinkalCommon.isSelectedNetworkSupported(e)}switchNetwork(t){let n=e.networkRegistry[t];if(!n)throw Error(`Network with chainId ${t} not supported`);return this.hinkalCommon.switchNetwork(n)}resetMerkle(e){return this.hinkalCommon.resetMerkle(e)}resetMerkleTreesIfNecessary(e){return this.hinkalCommon.resetMerkleTreesIfNecessary(e)}get privateBalancesWithUSD(){return this.hinkalCommon.privateBalancesWithUSD}onPrivateBalancesWithUSDChange(e){return this.hinkalCommon.onPrivateBalancesWithUSDChange(e)}getTotalBalance(e,t=!1,n=!1){return this.hinkalCommon.getTotalBalance(e,void 0,void 0,t,n)}getStuckShieldedBalances(e,t=!1,n=!1){return this.hinkalCommon.getStuckShieldedBalances(e,void 0,void 0,t,n)}monitorConnectedAddress(e){return this.hinkalCommon.monitorConnectedAddress(e)}getSupportedPassportLinks(){return this.hinkalCommon.getSupportedPassportLinks()}checkAccessToken(e,t){return this.hinkalCommon.checkAccessToken(e,t)}waitForTransaction(e,t,n){return this.hinkalCommon.waitForTransaction(e,t,n)}getSolanaPublicKey(){return this.hinkalCommon.getSolanaPublicKey()}getEthereumAddress(){return this.hinkalCommon.getEthereumAddress()}getEthereumAddressByChain(e){return this.hinkalCommon.getEthereumAddressByChain(e)}getRecipientInfo(){return this.hinkalCommon.getRecipientInfo()}getShieldedPublicKey(){return this.hinkalCommon.userKeys.getShieldedPublicKey()}prooflessDeposit(e,t,n){return this.hinkalCommon.prooflessDeposit(e,t,n)}prooflessDepositWithPublicFee(e,t,n,r){return this.hinkalCommon.prooflessDepositWithPublicFee(e,t,n,r)}deposit(e,t,n,r){return this.hinkalCommon.deposit(e,t,n,r)}depositSolana(e,t){return this.hinkalCommon.depositSolana(e,t)}depositForOther(e,t,n,r,i){return this.hinkalCommon.depositForOther(e,t,n,r,i)}depositSolanaForOther(e,t,n){return this.hinkalCommon.depositSolanaForOther(e,t,n)}depositAndWithdraw(e,t,n,r,i,a){return this.hinkalCommon.depositAndWithdraw(e,t,n,r,i,void 0,void 0,void 0,a)}depositAndBridge(e,t,n,r,i){return this.hinkalCommon.depositAndBridge(e,t,n,r,void 0,void 0,void 0,i)}nearDepositAndBridge(e,t,n,r,i,a){return this.hinkalCommon.nearDepositAndBridge(e,t,n,r,i,a)}claimUtxo(e,t,n,r){return this.hinkalCommon.claimUtxo(e,t,n,r)}transfer(e,t,n,r,i){return this.hinkalCommon.transfer(e,t,n,r,i)}withdraw(e,t,n,r,i,a){return this.hinkalCommon.withdraw(e,t,n,r,i,a)}withdrawStuckUtxos(e,t){return this.hinkalCommon.withdrawStuckUtxos(e,t)}swap(e,t,n,r,i,a){return this.hinkalCommon.swap(e,t,n,r,i,a)}actionPrivateWallet(e,t,n,r,i,a,o,s,c){return this.hinkalCommon.actionPrivateWallet(e,t,n,r,i,a,o,s,c)}proxySwap(e,t,n,r,i,a,o,s){return this.hinkalCommon.proxySwap(e,t,n,r,i,a,o,s)}proxyToPrivate(e,t,n,r,i,a){return this.hinkalCommon.proxyToPrivate(e,t,n,r,i,a)}proxySend(e,t,n,r,i,a){return this.hinkalCommon.proxySend(e,t,n,r,i,a)}};exports.Hinkal=r;
1
+ const e=require(`../common/src/constants/chains.constants.cjs`),t=require(`../common/src/types/hinkal.types.cjs`);require(`../common/src/types/index.cjs`);const n=require(`../common/src/data-structures/Hinkal/Hinkal.cjs`),r=require(`../internal/token.utils.cjs`);var i=class{hinkalCommon;constructor(e){this.hinkalCommon=new n.Hinkal(e)}getProviderAdapter(e){return this.hinkalCommon.getProviderAdapter(e)}initProviderAdapter(e,t){return this.hinkalCommon.initProviderAdapter(e,t)}initUserKeys(e=t.LoginMessageMode.PROTOCOL){return this.hinkalCommon.initUserKeys(e)}initUserKeysWithSignature(e){return this.hinkalCommon.initUserKeysWithSignature(e)}initUserKeysFromSeedPhrases(e){return this.hinkalCommon.initUserKeysFromSeedPhrases(e)}storeAndGetInitialSignature(e,t=!1,n){return this.hinkalCommon.storeAndGetInitialSignature(e,t,n)}resetProviderAdapters(){return this.hinkalCommon.resetProviderAdapters()}disconnectFromConnector(){return this.hinkalCommon.disconnectFromConnector()}signMessage(e){return this.hinkalCommon.signMessage(e)}signTypedData(e,t,n){return this.hinkalCommon.signTypedData(e,t,n)}getSupportedChains(){return this.hinkalCommon.getSupportedChains()}isSelectedNetworkSupported(e){return this.hinkalCommon.isSelectedNetworkSupported(e)}switchNetwork(t){let n=e.networkRegistry[t];if(!n)throw Error(`Network with chainId ${t} not supported`);return this.hinkalCommon.switchNetwork(n)}resetMerkle(e){return this.hinkalCommon.resetMerkle(e)}resetMerkleTreesIfNecessary(e){return this.hinkalCommon.resetMerkleTreesIfNecessary(e)}get privateBalancesWithUSD(){return r.mapPrivateBalances(this.hinkalCommon.privateBalancesWithUSD)}onPrivateBalancesWithUSDChange(e){return this.hinkalCommon.onPrivateBalancesWithUSDChange(t=>e(r.mapPrivateBalances(t)))}async getTotalBalance(e,t=!1,n=!1){return(await this.hinkalCommon.getTotalBalance(e,void 0,void 0,t,n)).map(r.mapTokenBalance)}async getStuckShieldedBalances(e,t=!1,n=!1){return(await this.hinkalCommon.getStuckShieldedBalances(e,void 0,void 0,t,n)).map(r.mapTokenBalance)}monitorConnectedAddress(e){return this.hinkalCommon.monitorConnectedAddress(e)}getSupportedPassportLinks(){return this.hinkalCommon.getSupportedPassportLinks()}checkAccessToken(e,t){return this.hinkalCommon.checkAccessToken(e,t)}waitForTransaction(e,t,n){return this.hinkalCommon.waitForTransaction(e,t,n)}getSolanaPublicKey(){return this.hinkalCommon.getSolanaPublicKey()}getEthereumAddress(){return this.hinkalCommon.getEthereumAddress()}getEthereumAddressByChain(e){return this.hinkalCommon.getEthereumAddressByChain(e)}getRecipientInfo(){return this.hinkalCommon.getRecipientInfo()}getShieldedPublicKey(){return this.hinkalCommon.userKeys.getShieldedPublicKey()}async prooflessDeposit(e,t,n,i){return this.hinkalCommon.prooflessDeposit(await r.resolveErc20Tokens(e,t),n,i)}async prooflessDepositWithPublicFee(e,t,n,i,a){return this.hinkalCommon.prooflessDepositWithPublicFee(await r.resolveErc20Token(e,t),n,i,a)}async deposit(e,t,n,i,a){return this.hinkalCommon.deposit(await r.resolveErc20Tokens(e,t),n,i,a)}async depositSolana(e,t,n){return this.hinkalCommon.depositSolana(n,await r.resolveErc20Token(e,t))}async depositForOther(e,t,n,i,a,o){return this.hinkalCommon.depositForOther(await r.resolveErc20Tokens(e,t),n,i,a,o)}async depositSolanaForOther(e,t,n,i){return this.hinkalCommon.depositSolanaForOther(n,await r.resolveErc20Token(e,t),i)}async depositAndWithdraw(e,t,n,i,a,o,s){return this.hinkalCommon.depositAndWithdraw(await r.resolveErc20Token(e,t),n,i,a,o,void 0,void 0,void 0,s)}async depositAndBridge(e,t,n,i,a,o){return this.hinkalCommon.depositAndBridge(await r.resolveErc20Token(e,t),n,i,a,void 0,void 0,void 0,o)}async nearDepositAndBridge(e,t,n,i,a,o,s){return this.hinkalCommon.nearDepositAndBridge(await r.resolveErc20Token(e,t),n,i,a,o,s)}async claimUtxo(e,t,n,i,a){return this.hinkalCommon.claimUtxo(await r.resolveErc20Token(e,t),n,i,a)}async transfer(e,t,n,i,a,o){return this.hinkalCommon.transfer(await r.resolveErc20Tokens(e,t),n,i,a,o)}async withdraw(e,t,n,i,a,o,s){return this.hinkalCommon.withdraw(await r.resolveErc20Tokens(e,t),n,i,a,o,s)}async withdrawStuckUtxos(e,t,n){return this.hinkalCommon.withdrawStuckUtxos(await r.resolveErc20Token(e,t),n)}async swap(e,t,n,i,a,o,s){return this.hinkalCommon.swap(await r.resolveErc20Tokens(e,t),n,i,a,o,s)}async actionPrivateWallet(e,t,n,i,a,o,s,c,l){return this.hinkalCommon.actionPrivateWallet(e,await r.resolveErc20Tokens(e,t),n,i,a,await r.resolveCommonTokenChanges(e,o),s,c,l)}async proxySwap(e,t,n,i,a,o,s,c,l){return this.hinkalCommon.proxySwap(await r.resolveErc20Tokens(e,t),n,i,a,o,s,c,l)}async proxyToPrivate(e,t,n,i,a,o,s){return this.hinkalCommon.proxyToPrivate(await r.resolveErc20Tokens(e,t),n,i,a,o,s)}async proxySend(e,t,n,i,a,o,s){return this.hinkalCommon.proxySend(await r.resolveErc20Tokens(e,t),n,i,a,o,s)}};exports.Hinkal=i;
@@ -1,9 +1,9 @@
1
- import { BridgeRecipient, ERC20Token, ExternalActionId, FeeStructure, HinkalConfig, LoginMessageMode, NearBridgeParams, NearBridgeResult, StealthAddressStructure, SubAccount, TokenBalance, TokenChanges, PrivateBalancesState } from '../common/src/types';
1
+ import { BridgeRecipient, ExternalActionId, FeeStructure, HinkalConfig, LoginMessageMode, NearBridgeParams, NearBridgeResult, StealthAddressStructure, SubAccount } from '../common/src/types';
2
2
  import { ethers, TypedDataDomain, TypedDataField } from 'ethers';
3
3
  import { Types as TronWebTypes } from 'tronweb';
4
4
  import { Utxo } from '../common/src/data-structures/utxo/Utxo';
5
5
  import { PublicKey } from '@solana/web3.js';
6
- import { IHinkal, IProviderAdapter } from '../types';
6
+ import { IHinkal, IProviderAdapter, PrivateBalancesState, TokenBalance, TokenChanges } from '../types';
7
7
  export declare class Hinkal<ConnectorType> implements IHinkal<ConnectorType> {
8
8
  private readonly hinkalCommon;
9
9
  constructor(hinkalConfig?: HinkalConfig);
@@ -35,22 +35,22 @@ export declare class Hinkal<ConnectorType> implements IHinkal<ConnectorType> {
35
35
  getEthereumAddressByChain(chainId: number): Promise<string>;
36
36
  getRecipientInfo(): string;
37
37
  getShieldedPublicKey(): string;
38
- prooflessDeposit(erc20Tokens: ERC20Token[], amountChanges: bigint[], stealthAddressStructures?: StealthAddressStructure[]): Promise<string | ethers.TransactionRequest | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
39
- prooflessDepositWithPublicFee(erc20Token: ERC20Token, amounts: bigint[], stealthAddressStructures: StealthAddressStructure[], feeAmount: bigint): Promise<string>;
40
- deposit(erc20Tokens: ERC20Token[], amountChanges: bigint[], preEstimateGas?: boolean, returnTxData?: boolean): Promise<ethers.TransactionResponse | ethers.TransactionRequest | string | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
41
- depositSolana(amount: bigint, token: ERC20Token): Promise<string>;
42
- depositForOther(erc20Tokens: ERC20Token[], amountChanges: bigint[], recipientInfo: string, preEstimateGas?: boolean, returnTxData?: boolean): Promise<ethers.TransactionResponse | ethers.TransactionRequest | string | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
43
- depositSolanaForOther(amount: bigint, token: ERC20Token, recipientInfo: string): Promise<string>;
44
- depositAndWithdraw(erc20Token: ERC20Token, recipientAmounts: bigint[], recipientAddresses: string[], txCompletionTime?: number, feeStructureOverride?: FeeStructure, preEstimateGas?: boolean): Promise<string>;
45
- depositAndBridge(erc20Token: ERC20Token, recipientBridges: BridgeRecipient[], txCompletionTime?: number, feeStructureOverride?: FeeStructure, preEstimateGas?: boolean): Promise<string>;
46
- nearDepositAndBridge(erc20Token: ERC20Token, recipientAmounts: bigint[], recipientAddresses: string[], params: NearBridgeParams, txCompletionTime?: number, feeStructureOverride?: FeeStructure): Promise<NearBridgeResult>;
47
- claimUtxo(erc20Token: ERC20Token, utxo: Utxo, feeStructureOverride?: FeeStructure, claimableSignature?: string): Promise<string>;
48
- transfer(erc20Tokens: ERC20Token[], amountChanges: bigint[], recipientAddress: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
49
- withdraw(erc20Tokens: ERC20Token[], deltaAmounts: bigint[], recipientAddress: string, isRelayerOff: boolean, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<ethers.TransactionResponse | string>;
50
- withdrawStuckUtxos(erc20Token: ERC20Token, recipientAddress: string): Promise<string[]>;
51
- swap(erc20Tokens: ERC20Token[], deltaAmounts: bigint[], externalActionId: ExternalActionId, swapData: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
52
- actionPrivateWallet(chainId: number, erc20Tokens: ERC20Token[], deltaAmounts: bigint[], onChainCreation: boolean[], ops: string[], emporiumTokenChanges: TokenChanges<bigint>[], subAccount?: SubAccount, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
53
- proxySwap(erc20Tokens: ERC20Token[], deltaAmounts: bigint[], externalActionId: ExternalActionId, swapData: string, isTheSameChainSwap: boolean, subAccount: SubAccount, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
54
- proxyToPrivate(erc20Tokens: ERC20Token[], deltaAmountsBase: bigint[], subAccount: SubAccount, recipientInfo: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
55
- proxySend(erc20Tokens: ERC20Token[], amounts: bigint[], subAccount: SubAccount, recipientAddress: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
38
+ prooflessDeposit(chainId: number, erc20Addresses: string[], amountChanges: bigint[], stealthAddressStructures?: StealthAddressStructure[]): Promise<string | ethers.TransactionRequest | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
39
+ prooflessDepositWithPublicFee(chainId: number, erc20Address: string, amounts: bigint[], stealthAddressStructures: StealthAddressStructure[], feeAmount: bigint): Promise<string>;
40
+ deposit(chainId: number, erc20Addresses: string[], amountChanges: bigint[], preEstimateGas?: boolean, returnTxData?: boolean): Promise<ethers.TransactionResponse | ethers.TransactionRequest | string | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
41
+ depositSolana(chainId: number, erc20Address: string, amount: bigint): Promise<string>;
42
+ depositForOther(chainId: number, erc20Addresses: string[], amountChanges: bigint[], recipientInfo: string, preEstimateGas?: boolean, returnTxData?: boolean): Promise<ethers.TransactionResponse | ethers.TransactionRequest | string | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
43
+ depositSolanaForOther(chainId: number, erc20Address: string, amount: bigint, recipientInfo: string): Promise<string>;
44
+ depositAndWithdraw(chainId: number, erc20Address: string, recipientAmounts: bigint[], recipientAddresses: string[], txCompletionTime?: number, feeStructureOverride?: FeeStructure, preEstimateGas?: boolean): Promise<string>;
45
+ depositAndBridge(chainId: number, erc20Address: string, recipientBridges: BridgeRecipient[], txCompletionTime?: number, feeStructureOverride?: FeeStructure, preEstimateGas?: boolean): Promise<string>;
46
+ nearDepositAndBridge(chainId: number, erc20Address: string, recipientAmounts: bigint[], recipientAddresses: string[], params: NearBridgeParams, txCompletionTime?: number, feeStructureOverride?: FeeStructure): Promise<NearBridgeResult>;
47
+ claimUtxo(chainId: number, erc20Address: string, utxo: Utxo, feeStructureOverride?: FeeStructure, claimableSignature?: string): Promise<string>;
48
+ transfer(chainId: number, erc20Addresses: string[], amountChanges: bigint[], recipientAddress: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
49
+ withdraw(chainId: number, erc20Addresses: string[], deltaAmounts: bigint[], recipientAddress: string, isRelayerOff: boolean, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<ethers.TransactionResponse | string>;
50
+ withdrawStuckUtxos(chainId: number, erc20Address: string, recipientAddress: string): Promise<string[]>;
51
+ swap(chainId: number, erc20Addresses: string[], deltaAmounts: bigint[], externalActionId: ExternalActionId, swapData: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
52
+ actionPrivateWallet(chainId: number, erc20Addresses: string[], deltaAmounts: bigint[], onChainCreation: boolean[], ops: string[], emporiumTokenChanges: TokenChanges<bigint>[], subAccount?: SubAccount, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
53
+ proxySwap(chainId: number, erc20Addresses: string[], deltaAmounts: bigint[], externalActionId: ExternalActionId, swapData: string, isTheSameChainSwap: boolean, subAccount: SubAccount, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
54
+ proxyToPrivate(chainId: number, erc20Addresses: string[], deltaAmountsBase: bigint[], subAccount: SubAccount, recipientInfo: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
55
+ proxySend(chainId: number, erc20Addresses: string[], amounts: bigint[], subAccount: SubAccount, recipientAddress: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
56
56
  }
@@ -2,8 +2,9 @@ import { networkRegistry as e } from "../common/src/constants/chains.constants.m
2
2
  import { LoginMessageMode as t } from "../common/src/types/hinkal.types.mjs";
3
3
  import "../common/src/types/index.mjs";
4
4
  import { Hinkal as n } from "../common/src/data-structures/Hinkal/Hinkal.mjs";
5
+ import { mapPrivateBalances as r, mapTokenBalance as i, resolveCommonTokenChanges as a, resolveErc20Token as o, resolveErc20Tokens as s } from "../internal/token.utils.mjs";
5
6
  //#region libs/shared/sdk/src/services/Hinkal.ts
6
- var r = class {
7
+ var c = class {
7
8
  hinkalCommon;
8
9
  constructor(e) {
9
10
  this.hinkalCommon = new n(e);
@@ -56,16 +57,16 @@ var r = class {
56
57
  return this.hinkalCommon.resetMerkleTreesIfNecessary(e);
57
58
  }
58
59
  get privateBalancesWithUSD() {
59
- return this.hinkalCommon.privateBalancesWithUSD;
60
+ return r(this.hinkalCommon.privateBalancesWithUSD);
60
61
  }
61
62
  onPrivateBalancesWithUSDChange(e) {
62
- return this.hinkalCommon.onPrivateBalancesWithUSDChange(e);
63
+ return this.hinkalCommon.onPrivateBalancesWithUSDChange((t) => e(r(t)));
63
64
  }
64
- getTotalBalance(e, t = !1, n = !1) {
65
- return this.hinkalCommon.getTotalBalance(e, void 0, void 0, t, n);
65
+ async getTotalBalance(e, t = !1, n = !1) {
66
+ return (await this.hinkalCommon.getTotalBalance(e, void 0, void 0, t, n)).map(i);
66
67
  }
67
- getStuckShieldedBalances(e, t = !1, n = !1) {
68
- return this.hinkalCommon.getStuckShieldedBalances(e, void 0, void 0, t, n);
68
+ async getStuckShieldedBalances(e, t = !1, n = !1) {
69
+ return (await this.hinkalCommon.getStuckShieldedBalances(e, void 0, void 0, t, n)).map(i);
69
70
  }
70
71
  monitorConnectedAddress(e) {
71
72
  return this.hinkalCommon.monitorConnectedAddress(e);
@@ -94,60 +95,60 @@ var r = class {
94
95
  getShieldedPublicKey() {
95
96
  return this.hinkalCommon.userKeys.getShieldedPublicKey();
96
97
  }
97
- prooflessDeposit(e, t, n) {
98
- return this.hinkalCommon.prooflessDeposit(e, t, n);
98
+ async prooflessDeposit(e, t, n, r) {
99
+ return this.hinkalCommon.prooflessDeposit(await s(e, t), n, r);
99
100
  }
100
- prooflessDepositWithPublicFee(e, t, n, r) {
101
- return this.hinkalCommon.prooflessDepositWithPublicFee(e, t, n, r);
101
+ async prooflessDepositWithPublicFee(e, t, n, r, i) {
102
+ return this.hinkalCommon.prooflessDepositWithPublicFee(await o(e, t), n, r, i);
102
103
  }
103
- deposit(e, t, n, r) {
104
- return this.hinkalCommon.deposit(e, t, n, r);
104
+ async deposit(e, t, n, r, i) {
105
+ return this.hinkalCommon.deposit(await s(e, t), n, r, i);
105
106
  }
106
- depositSolana(e, t) {
107
- return this.hinkalCommon.depositSolana(e, t);
107
+ async depositSolana(e, t, n) {
108
+ return this.hinkalCommon.depositSolana(n, await o(e, t));
108
109
  }
109
- depositForOther(e, t, n, r, i) {
110
- return this.hinkalCommon.depositForOther(e, t, n, r, i);
110
+ async depositForOther(e, t, n, r, i, a) {
111
+ return this.hinkalCommon.depositForOther(await s(e, t), n, r, i, a);
111
112
  }
112
- depositSolanaForOther(e, t, n) {
113
- return this.hinkalCommon.depositSolanaForOther(e, t, n);
113
+ async depositSolanaForOther(e, t, n, r) {
114
+ return this.hinkalCommon.depositSolanaForOther(n, await o(e, t), r);
114
115
  }
115
- depositAndWithdraw(e, t, n, r, i, a) {
116
- return this.hinkalCommon.depositAndWithdraw(e, t, n, r, i, void 0, void 0, void 0, a);
116
+ async depositAndWithdraw(e, t, n, r, i, a, s) {
117
+ return this.hinkalCommon.depositAndWithdraw(await o(e, t), n, r, i, a, void 0, void 0, void 0, s);
117
118
  }
118
- depositAndBridge(e, t, n, r, i) {
119
- return this.hinkalCommon.depositAndBridge(e, t, n, r, void 0, void 0, void 0, i);
119
+ async depositAndBridge(e, t, n, r, i, a) {
120
+ return this.hinkalCommon.depositAndBridge(await o(e, t), n, r, i, void 0, void 0, void 0, a);
120
121
  }
121
- nearDepositAndBridge(e, t, n, r, i, a) {
122
- return this.hinkalCommon.nearDepositAndBridge(e, t, n, r, i, a);
122
+ async nearDepositAndBridge(e, t, n, r, i, a, s) {
123
+ return this.hinkalCommon.nearDepositAndBridge(await o(e, t), n, r, i, a, s);
123
124
  }
124
- claimUtxo(e, t, n, r) {
125
- return this.hinkalCommon.claimUtxo(e, t, n, r);
125
+ async claimUtxo(e, t, n, r, i) {
126
+ return this.hinkalCommon.claimUtxo(await o(e, t), n, r, i);
126
127
  }
127
- transfer(e, t, n, r, i) {
128
- return this.hinkalCommon.transfer(e, t, n, r, i);
128
+ async transfer(e, t, n, r, i, a) {
129
+ return this.hinkalCommon.transfer(await s(e, t), n, r, i, a);
129
130
  }
130
- withdraw(e, t, n, r, i, a) {
131
- return this.hinkalCommon.withdraw(e, t, n, r, i, a);
131
+ async withdraw(e, t, n, r, i, a, o) {
132
+ return this.hinkalCommon.withdraw(await s(e, t), n, r, i, a, o);
132
133
  }
133
- withdrawStuckUtxos(e, t) {
134
- return this.hinkalCommon.withdrawStuckUtxos(e, t);
134
+ async withdrawStuckUtxos(e, t, n) {
135
+ return this.hinkalCommon.withdrawStuckUtxos(await o(e, t), n);
135
136
  }
136
- swap(e, t, n, r, i, a) {
137
- return this.hinkalCommon.swap(e, t, n, r, i, a);
137
+ async swap(e, t, n, r, i, a, o) {
138
+ return this.hinkalCommon.swap(await s(e, t), n, r, i, a, o);
138
139
  }
139
- actionPrivateWallet(e, t, n, r, i, a, o, s, c) {
140
- return this.hinkalCommon.actionPrivateWallet(e, t, n, r, i, a, o, s, c);
140
+ async actionPrivateWallet(e, t, n, r, i, o, c, l, u) {
141
+ return this.hinkalCommon.actionPrivateWallet(e, await s(e, t), n, r, i, await a(e, o), c, l, u);
141
142
  }
142
- proxySwap(e, t, n, r, i, a, o, s) {
143
- return this.hinkalCommon.proxySwap(e, t, n, r, i, a, o, s);
143
+ async proxySwap(e, t, n, r, i, a, o, c, l) {
144
+ return this.hinkalCommon.proxySwap(await s(e, t), n, r, i, a, o, c, l);
144
145
  }
145
- proxyToPrivate(e, t, n, r, i, a) {
146
- return this.hinkalCommon.proxyToPrivate(e, t, n, r, i, a);
146
+ async proxyToPrivate(e, t, n, r, i, a, o) {
147
+ return this.hinkalCommon.proxyToPrivate(await s(e, t), n, r, i, a, o);
147
148
  }
148
- proxySend(e, t, n, r, i, a) {
149
- return this.hinkalCommon.proxySend(e, t, n, r, i, a);
149
+ async proxySend(e, t, n, r, i, a, o) {
150
+ return this.hinkalCommon.proxySend(await s(e, t), n, r, i, a, o);
150
151
  }
151
152
  };
152
153
  //#endregion
153
- export { r as Hinkal };
154
+ export { c as Hinkal };
@@ -1,9 +1,11 @@
1
- import { PrivateBalancesState, BridgeRecipient, ERC20Token, ExternalActionId, FeeStructure, LoginMessageMode, NearBridgeParams, NearBridgeResult, StealthAddressStructure, SubAccount, TokenBalance, TokenChanges } from '../common/src/types';
1
+ import { BridgeRecipient, ExternalActionId, FeeStructure, LoginMessageMode, NearBridgeParams, NearBridgeResult, StealthAddressStructure, SubAccount } from '../common/src/types';
2
2
  import { ethers, TypedDataDomain, TypedDataField } from 'ethers';
3
3
  import { Types as TronWebTypes } from 'tronweb';
4
4
  import { Utxo } from '../common/src/data-structures/utxo/Utxo';
5
5
  import { PublicKey } from '@solana/web3.js';
6
6
  import { IProviderAdapter } from './IProviderAdapter';
7
+ import { PrivateBalancesState, TokenBalance } from './balances.types';
8
+ import { TokenChanges } from './token.types';
7
9
  export interface IHinkal<ConnectorType = unknown> {
8
10
  getProviderAdapter(chainId?: number): IProviderAdapter;
9
11
  initProviderAdapter(connector: ConnectorType, providerAdapter: IProviderAdapter<ConnectorType>): Promise<void>;
@@ -34,22 +36,22 @@ export interface IHinkal<ConnectorType = unknown> {
34
36
  getEthereumAddressByChain(chainId: number): Promise<string>;
35
37
  getRecipientInfo(): string;
36
38
  getShieldedPublicKey(): string;
37
- prooflessDeposit(erc20Tokens: ERC20Token[], amountChanges: bigint[], stealthAddressStructures?: StealthAddressStructure[]): Promise<string | ethers.TransactionRequest | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
38
- prooflessDepositWithPublicFee(erc20Token: ERC20Token, amounts: bigint[], stealthAddressStructures: StealthAddressStructure[], feeAmount: bigint): Promise<string>;
39
- deposit(erc20Tokens: ERC20Token[], amountChanges: bigint[], preEstimateGas?: boolean, returnTxData?: boolean): Promise<ethers.TransactionResponse | ethers.TransactionRequest | string | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
40
- depositSolana(amount: bigint, token: ERC20Token): Promise<string>;
41
- depositForOther(erc20Tokens: ERC20Token[], amountChanges: bigint[], recipientInfo: string, preEstimateGas?: boolean, returnTxData?: boolean): Promise<ethers.TransactionResponse | ethers.TransactionRequest | string | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
42
- depositSolanaForOther(amount: bigint, token: ERC20Token, recipientInfo: string): Promise<string>;
43
- depositAndWithdraw(erc20Token: ERC20Token, recipientAmounts: bigint[], recipientAddresses: string[], txCompletionTime?: number, feeStructureOverride?: FeeStructure, preEstimateGas?: boolean): Promise<string>;
44
- depositAndBridge(erc20Token: ERC20Token, recipientBridges: BridgeRecipient[], txCompletionTime?: number, feeStructureOverride?: FeeStructure, preEstimateGas?: boolean): Promise<string>;
45
- nearDepositAndBridge(erc20Token: ERC20Token, recipientAmounts: bigint[], recipientAddresses: string[], params: NearBridgeParams, txCompletionTime?: number, feeStructureOverride?: FeeStructure): Promise<NearBridgeResult>;
46
- claimUtxo(erc20Token: ERC20Token, utxo: Utxo, feeStructureOverride?: FeeStructure, claimableSignature?: string): Promise<string>;
47
- transfer(erc20Tokens: ERC20Token[], amountChanges: bigint[], recipientAddress: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
48
- withdraw(erc20Tokens: ERC20Token[], deltaAmounts: bigint[], recipientAddress: string, isRelayerOff: boolean, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<ethers.TransactionResponse | string>;
49
- withdrawStuckUtxos(erc20Token: ERC20Token, recipientAddress: string): Promise<string[]>;
50
- swap(erc20Tokens: ERC20Token[], deltaAmounts: bigint[], externalActionId: ExternalActionId, swapData: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
51
- actionPrivateWallet(chainId: number, erc20Tokens: ERC20Token[], deltaAmounts: bigint[], onChainCreation: boolean[], ops: string[], emporiumTokenChanges: TokenChanges<bigint>[], subAccount?: SubAccount, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
52
- proxySwap(erc20Tokens: ERC20Token[], deltaAmounts: bigint[], externalActionId: ExternalActionId, swapData: string, isTheSameChainSwap: boolean, subAccount: SubAccount, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
53
- proxyToPrivate(erc20Tokens: ERC20Token[], deltaAmountsBase: bigint[], subAccount: SubAccount, recipientInfo: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
54
- proxySend(erc20Tokens: ERC20Token[], amounts: bigint[], subAccount: SubAccount, recipientAddress: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
39
+ prooflessDeposit(chainId: number, erc20Addresses: string[], amountChanges: bigint[], stealthAddressStructures?: StealthAddressStructure[]): Promise<string | ethers.TransactionRequest | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
40
+ prooflessDepositWithPublicFee(chainId: number, erc20Address: string, amounts: bigint[], stealthAddressStructures: StealthAddressStructure[], feeAmount: bigint): Promise<string>;
41
+ deposit(chainId: number, erc20Addresses: string[], amountChanges: bigint[], preEstimateGas?: boolean, returnTxData?: boolean): Promise<ethers.TransactionResponse | ethers.TransactionRequest | string | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
42
+ depositSolana(chainId: number, erc20Address: string, amount: bigint): Promise<string>;
43
+ depositForOther(chainId: number, erc20Addresses: string[], amountChanges: bigint[], recipientInfo: string, preEstimateGas?: boolean, returnTxData?: boolean): Promise<ethers.TransactionResponse | ethers.TransactionRequest | string | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
44
+ depositSolanaForOther(chainId: number, erc20Address: string, amount: bigint, recipientInfo: string): Promise<string>;
45
+ depositAndWithdraw(chainId: number, erc20Address: string, recipientAmounts: bigint[], recipientAddresses: string[], txCompletionTime?: number, feeStructureOverride?: FeeStructure, preEstimateGas?: boolean): Promise<string>;
46
+ depositAndBridge(chainId: number, erc20Address: string, recipientBridges: BridgeRecipient[], txCompletionTime?: number, feeStructureOverride?: FeeStructure, preEstimateGas?: boolean): Promise<string>;
47
+ nearDepositAndBridge(chainId: number, erc20Address: string, recipientAmounts: bigint[], recipientAddresses: string[], params: NearBridgeParams, txCompletionTime?: number, feeStructureOverride?: FeeStructure): Promise<NearBridgeResult>;
48
+ claimUtxo(chainId: number, erc20Address: string, utxo: Utxo, feeStructureOverride?: FeeStructure, claimableSignature?: string): Promise<string>;
49
+ transfer(chainId: number, erc20Addresses: string[], amountChanges: bigint[], recipientAddress: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
50
+ withdraw(chainId: number, erc20Addresses: string[], deltaAmounts: bigint[], recipientAddress: string, isRelayerOff: boolean, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<ethers.TransactionResponse | string>;
51
+ withdrawStuckUtxos(chainId: number, erc20Address: string, recipientAddress: string): Promise<string[]>;
52
+ swap(chainId: number, erc20Addresses: string[], deltaAmounts: bigint[], externalActionId: ExternalActionId, swapData: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
53
+ actionPrivateWallet(chainId: number, erc20Addresses: string[], deltaAmounts: bigint[], onChainCreation: boolean[], ops: string[], emporiumTokenChanges: TokenChanges<bigint>[], subAccount?: SubAccount, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
54
+ proxySwap(chainId: number, erc20Addresses: string[], deltaAmounts: bigint[], externalActionId: ExternalActionId, swapData: string, isTheSameChainSwap: boolean, subAccount: SubAccount, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
55
+ proxyToPrivate(chainId: number, erc20Addresses: string[], deltaAmountsBase: bigint[], subAccount: SubAccount, recipientInfo: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
56
+ proxySend(chainId: number, erc20Addresses: string[], amounts: bigint[], subAccount: SubAccount, recipientAddress: string, feeToken?: string, feeStructureOverride?: FeeStructure): Promise<string>;
55
57
  }