@gurge/sdk 0.3.150 → 0.3.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -29
- package/common/src/API/API.cjs +1 -1
- package/common/src/API/API.d.ts +21 -46
- package/common/src/API/API.mjs +96 -121
- package/common/src/API/admin-calls.cjs +1 -1
- package/common/src/API/admin-calls.d.ts +1 -1
- package/common/src/API/admin-calls.mjs +3 -1
- package/common/src/API/callLifiAPI.cjs +1 -1
- package/common/src/API/callLifiAPI.d.ts +4 -0
- package/common/src/API/callLifiAPI.mjs +7 -2
- package/common/src/API/callNearIntentsAPI.cjs +1 -1
- package/common/src/API/callNearIntentsAPI.mjs +2 -2
- package/common/src/API/callRelayer.cjs +1 -1
- package/common/src/API/callRelayer.d.ts +36 -1
- package/common/src/API/callRelayer.mjs +7 -1
- package/common/src/API/dashboardAccountMemberCalls.cjs +1 -1
- package/common/src/API/dashboardAccountMemberCalls.d.ts +15 -0
- package/common/src/API/dashboardAccountMemberCalls.mjs +5 -2
- package/common/src/API/dashboardPayoutCalls.cjs +1 -1
- package/common/src/API/dashboardPayoutCalls.d.ts +2 -1
- package/common/src/API/dashboardPayoutCalls.mjs +4 -1
- package/common/src/API/dashboardTransactionCalls.cjs +1 -1
- package/common/src/API/dashboardTransactionCalls.d.ts +4 -1
- package/common/src/API/dashboardTransactionCalls.mjs +2 -2
- package/common/src/API/enclaveRecipientInfoCalls.d.ts +0 -2
- package/common/src/API/enclaveSignatureCalls.cjs +1 -1
- package/common/src/API/enclaveSignatureCalls.d.ts +2 -1
- package/common/src/API/enclaveSignatureCalls.mjs +5 -8
- package/common/src/API/enclaveUtxoCalls.cjs +1 -1
- package/common/src/API/enclaveUtxoCalls.d.ts +40 -27
- package/common/src/API/enclaveUtxoCalls.mjs +16 -17
- package/common/src/API/evm-rpc-fallback.cjs +1 -0
- package/common/src/API/evm-rpc-fallback.d.ts +1 -0
- package/common/src/API/evm-rpc-fallback.mjs +17 -0
- package/common/src/API/evm-token-assets.d.ts +8 -0
- package/common/src/API/getOdosPriceForToken.cjs +1 -0
- package/common/src/API/getOdosPriceForToken.d.ts +1 -0
- package/common/src/API/getOdosPriceForToken.mjs +14 -0
- package/common/src/API/getWebsiteURL.d.ts +1 -3
- package/common/src/API/index.cjs +1 -1
- package/common/src/API/index.d.ts +2 -3
- package/common/src/API/index.mjs +4 -5
- package/common/src/API/payoutNotificationStateCalls.cjs +1 -0
- package/common/src/API/payoutNotificationStateCalls.d.ts +10 -0
- package/common/src/API/payoutNotificationStateCalls.mjs +10 -0
- package/common/src/API/privateSendRecipientInfoCalls.cjs +1 -1
- package/common/src/API/privateSendRecipientInfoCalls.d.ts +3 -6
- package/common/src/API/privateSendRecipientInfoCalls.mjs +12 -6
- package/common/src/API/proxyAccountsCalls.cjs +1 -1
- package/common/src/API/proxyAccountsCalls.d.ts +2 -3
- package/common/src/API/proxyAccountsCalls.mjs +11 -10
- package/common/src/API/rewardsUserCalls.cjs +1 -1
- package/common/src/API/rewardsUserCalls.d.ts +1 -40
- package/common/src/API/rewardsUserCalls.mjs +2 -10
- package/common/src/API/route-config.cjs +1 -0
- package/common/src/API/route-config.d.ts +1 -0
- package/common/src/API/route-config.mjs +26 -0
- package/common/src/API/scheduled-transactions-calls.cjs +1 -1
- package/common/src/API/scheduled-transactions-calls.d.ts +2 -5
- package/common/src/API/scheduled-transactions-calls.mjs +2 -6
- package/common/src/API/solana-nft-assets.d.ts +1 -0
- package/common/src/API/solana-priority-fee.cjs +1 -0
- package/common/src/API/solana-priority-fee.d.ts +3 -0
- package/common/src/API/solana-priority-fee.mjs +20 -0
- package/common/src/API/solana-rpc-fallback.cjs +1 -0
- package/common/src/API/solana-rpc-fallback.d.ts +1 -0
- package/common/src/API/solana-rpc-fallback.mjs +13 -0
- package/common/src/API/temporaryWalletCalls.cjs +1 -1
- package/common/src/API/temporaryWalletCalls.d.ts +3 -5
- package/common/src/API/temporaryWalletCalls.mjs +8 -9
- package/common/src/API/tenderly.api.cjs +1 -1
- package/common/src/API/tenderly.api.d.ts +5 -10
- package/common/src/API/tenderly.api.mjs +1 -1
- package/common/src/API/weeklyAnalyticCalls.cjs +1 -1
- package/common/src/API/weeklyAnalyticCalls.d.ts +1 -11
- package/common/src/API/weeklyAnalyticCalls.mjs +2 -5
- package/common/src/constants/addresses.constants.cjs +1 -1
- package/common/src/constants/addresses.constants.d.ts +4 -46
- package/common/src/constants/addresses.constants.mjs +19 -60
- package/common/src/constants/balance.constants.cjs +1 -0
- package/common/src/constants/balance.constants.d.ts +3 -0
- package/common/src/constants/balance.constants.mjs +4 -0
- package/common/src/constants/bridging.constants.cjs +1 -1
- package/common/src/constants/bridging.constants.d.ts +10 -0
- package/common/src/constants/bridging.constants.mjs +2 -1
- package/common/src/constants/chains.constants.cjs +1 -1
- package/common/src/constants/chains.constants.d.ts +21 -19
- package/common/src/constants/chains.constants.mjs +175 -198
- package/common/src/constants/coingecko.constants.cjs +1 -1
- package/common/src/constants/coingecko.constants.d.ts +3 -1
- package/common/src/constants/coingecko.constants.mjs +1 -1
- package/common/src/constants/contracts.constants.cjs +1 -1
- package/common/src/constants/contracts.constants.d.ts +1 -109
- package/common/src/constants/contracts.constants.mjs +16 -34
- package/common/src/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-arbMainnet.json.mjs +8 -9
- package/common/src/constants/deploy-data/deploy-data-arcTestnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-arcTestnet.json.mjs +7 -6
- package/common/src/constants/deploy-data/deploy-data-base.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-base.json.mjs +8 -9
- package/common/src/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -0
- package/common/src/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +12 -0
- package/common/src/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-ethMainnet.json.mjs +8 -9
- package/common/src/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-localhost.json.mjs +0 -3
- package/common/src/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-optimism.json.mjs +8 -9
- package/common/src/constants/deploy-data/deploy-data-optimismTest.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-optimismTest.json.mjs +5 -9
- package/common/src/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-polygon.json.mjs +8 -9
- package/common/src/constants/deploy-data/deploy-data-sepoliaTestnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-sepoliaTestnet.json.mjs +0 -1
- package/common/src/constants/deploy-data/deploy-data-solana.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-solana.json.mjs +2 -2
- package/common/src/constants/deploy-data/deploy-data-tempo.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-tempo.json.mjs +7 -7
- package/common/src/constants/deploy-data/deploy-data-tronMainnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-tronMainnet.json.mjs +2 -4
- package/common/src/constants/deploy-data/deploy-data-tronNile.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-tronNile.json.mjs +2 -4
- package/common/src/constants/deploy-data/index.cjs +1 -1
- package/common/src/constants/deploy-data/index.d.ts +2 -1
- package/common/src/constants/deploy-data/index.mjs +16 -15
- package/common/src/constants/deploy-data/shared-deploy-data-evm.json.cjs +1 -1
- package/common/src/constants/deploy-data/shared-deploy-data-evm.json.mjs +36 -45
- package/common/src/constants/deploy-data/shared-deploy-data-solana.json.cjs +1 -1
- package/common/src/constants/deploy-data/shared-deploy-data-solana.json.mjs +1 -1
- package/common/src/constants/deploy-data/shared-deploy-data-tron.json.cjs +1 -1
- package/common/src/constants/deploy-data/shared-deploy-data-tron.json.mjs +2 -46
- package/common/src/constants/enclaveAuth.constants.d.ts +5 -0
- package/common/src/constants/events.constants.cjs +1 -1
- package/common/src/constants/events.constants.mjs +1 -15
- package/common/src/constants/fees.constants.cjs +1 -1
- package/common/src/constants/fees.constants.mjs +2 -2
- package/common/src/constants/index.cjs +1 -1
- package/common/src/constants/index.d.ts +1 -3
- package/common/src/constants/index.mjs +1 -1
- package/common/src/constants/lifi.constants.cjs +1 -1
- package/common/src/constants/lifi.constants.mjs +6 -3
- package/common/src/constants/mediaUrls.constants.d.ts +0 -1
- package/common/src/constants/okx.constants.d.ts +1 -0
- package/common/src/constants/pay.constants.d.ts +1 -0
- package/common/src/constants/protocol.constants.cjs +2 -1
- package/common/src/constants/protocol.constants.d.ts +22 -12
- package/common/src/constants/protocol.constants.mjs +3 -15
- package/common/src/constants/server.constants.cjs +1 -1
- package/common/src/constants/server.constants.d.ts +14 -36
- package/common/src/constants/server.constants.mjs +19 -49
- package/common/src/constants/tokens.constants.cjs +1 -1
- package/common/src/constants/tokens.constants.d.ts +1 -0
- package/common/src/constants/tokens.constants.mjs +4 -1
- package/common/src/constants/tx-confirmation.constants.cjs +1 -1
- package/common/src/constants/tx-confirmation.constants.d.ts +1 -0
- package/common/src/constants/tx-confirmation.constants.mjs +2 -2
- package/common/src/crypto/ecdh-sealed-keys.cjs +1 -1
- package/common/src/crypto/ecdh-sealed-keys.mjs +17 -2
- package/common/src/crypto/index.cjs +1 -1
- package/common/src/crypto/index.d.ts +0 -1
- package/common/src/crypto/index.mjs +1 -2
- package/common/src/data-structures/ApprovalDBs/EventsPublicApprovalsDB.d.ts +1 -2
- package/common/src/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/common/src/data-structures/Hinkal/Hinkal.d.ts +18 -23
- package/common/src/data-structures/Hinkal/Hinkal.mjs +142 -174
- package/common/src/data-structures/Hinkal/IHinkal.d.ts +18 -24
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.d.ts +1 -1
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.mjs +36 -35
- package/common/src/data-structures/Hinkal/hinkalActionReceive.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalActionReceive.mjs +13 -11
- package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.cjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.d.ts +6 -0
- package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.mjs +100 -0
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.mjs +40 -50
- package/common/src/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDeposit.d.ts +1 -0
- package/common/src/data-structures/Hinkal/hinkalDeposit.mjs +50 -119
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.d.ts +2 -2
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.mjs +113 -109
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +3 -2
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +98 -64
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.d.ts +20 -7
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +50 -48
- package/common/src/data-structures/Hinkal/hinkalNearDepositAndBridge.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalNearDepositAndBridge.mjs +8 -3
- package/common/src/data-structures/Hinkal/hinkalPalEvmDeposit.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalPalTronDepositPrepare.d.ts +2 -2
- package/common/src/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalPrivateWallet.mjs +50 -38
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +2 -3
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.mjs +52 -117
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.d.ts +3 -0
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.mjs +26 -32
- package/common/src/data-structures/Hinkal/hinkalProxySend.cjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalProxySend.d.ts +6 -0
- package/common/src/data-structures/Hinkal/hinkalProxySend.mjs +16 -0
- package/common/src/data-structures/Hinkal/hinkalProxySwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalProxySwap.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalProxySwap.mjs +13 -12
- package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.mjs +19 -17
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.mjs +50 -79
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +2 -2
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.mjs +47 -51
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +8 -4
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +115 -133
- package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.mjs +16 -12
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySend.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySend.mjs +1 -3
- package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.d.ts +24 -2
- package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +82 -56
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +11 -13
- package/common/src/data-structures/Hinkal/hinkalSolanaSponsoredShield.cjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaSponsoredShield.d.ts +8 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaSponsoredShield.mjs +32 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaSwap.mjs +58 -79
- package/common/src/data-structures/Hinkal/hinkalSolanaTransact.cjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaTransact.d.ts +3 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaTransact.mjs +119 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.d.ts +2 -30
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.mjs +46 -77
- package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +46 -57
- package/common/src/data-structures/Hinkal/hinkalSwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSwap.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalSwap.mjs +32 -32
- package/common/src/data-structures/Hinkal/hinkalTransact.cjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalTransact.d.ts +3 -0
- package/common/src/data-structures/Hinkal/hinkalTransact.mjs +106 -0
- package/common/src/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalTransfer.mjs +39 -44
- package/common/src/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalWithdraw.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalWithdraw.mjs +38 -49
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +160 -102
- package/common/src/data-structures/Hinkal/index.d.ts +2 -1
- package/common/src/data-structures/Hinkal/prepareTronDepositToSelf.d.ts +27 -0
- package/common/src/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
- package/common/src/data-structures/Hinkal/resetMerkleTrees.mjs +7 -6
- package/common/src/data-structures/IndexedDB/activity-db.cjs +1 -1
- package/common/src/data-structures/IndexedDB/activity-db.mjs +34 -34
- package/common/src/data-structures/IndexedDB/contact-db.cjs +1 -1
- package/common/src/data-structures/IndexedDB/contact-db.d.ts +0 -1
- package/common/src/data-structures/IndexedDB/contact-db.mjs +14 -28
- package/common/src/data-structures/IndexedDB/index.cjs +1 -1
- package/common/src/data-structures/IndexedDB/index.d.ts +1 -0
- package/common/src/data-structures/IndexedDB/index.mjs +1 -0
- package/common/src/data-structures/IndexedDB/key-val-store.cjs +1 -1
- package/common/src/data-structures/IndexedDB/key-val-store.d.ts +2 -0
- package/common/src/data-structures/IndexedDB/key-val-store.mjs +14 -0
- package/common/src/data-structures/IndexedDB/pay-activity-db.cjs +1 -1
- package/common/src/data-structures/IndexedDB/pay-activity-db.mjs +43 -1
- package/common/src/data-structures/IndexedDB/private-balances-db.cjs +1 -1
- package/common/src/data-structures/IndexedDB/private-balances-db.d.ts +1 -0
- package/common/src/data-structures/IndexedDB/private-balances-db.mjs +3 -0
- package/common/src/data-structures/IndexedDB/scheduled-transactions-db.cjs +1 -0
- package/common/src/data-structures/IndexedDB/scheduled-transactions-db.d.ts +11 -0
- package/common/src/data-structures/IndexedDB/scheduled-transactions-db.mjs +34 -0
- package/common/src/data-structures/IndexedDB/signatures-db.cjs +1 -1
- package/common/src/data-structures/IndexedDB/signatures-db.mjs +11 -11
- package/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -1
- package/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +1 -0
- package/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +29 -26
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.d.ts +0 -1
- package/common/src/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -1
- package/common/src/data-structures/TokenDBs/PrivateTokensDB.mjs +17 -18
- package/common/src/data-structures/TokenDBs/TronPublicTokensDB.d.ts +1 -0
- package/common/src/data-structures/WalletManager/WalletManager.d.ts +1 -0
- package/common/src/data-structures/cacheDevices/BaseCacheDevice.cjs +1 -1
- package/common/src/data-structures/cacheDevices/BaseCacheDevice.d.ts +1 -0
- package/common/src/data-structures/cacheDevices/BaseCacheDevice.mjs +3 -0
- package/common/src/data-structures/cacheDevices/FileCacheDevice.cjs +1 -1
- package/common/src/data-structures/cacheDevices/FileCacheDevice.d.ts +3 -0
- package/common/src/data-structures/cacheDevices/FileCacheDevice.mjs +12 -3
- package/common/src/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
- package/common/src/data-structures/crypto-keys/decodeUTXO.d.ts +9 -9
- package/common/src/data-structures/crypto-keys/decodeUTXO.mjs +11 -71
- package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -1
- package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.d.ts +2 -3
- package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.mjs +39 -23
- package/common/src/data-structures/crypto-keys/keys.cjs +1 -1
- package/common/src/data-structures/crypto-keys/keys.d.ts +13 -27
- package/common/src/data-structures/crypto-keys/keys.mjs +64 -79
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -1
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +3 -2
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.mjs +46 -38
- package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.cjs +1 -1
- package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.d.ts +1 -1
- package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.mjs +2 -2
- package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs +1 -1
- package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +27 -23
- package/common/src/data-structures/merkle-tree/MerkleTree.cjs +1 -1
- package/common/src/data-structures/merkle-tree/MerkleTree.d.ts +11 -0
- package/common/src/data-structures/merkle-tree/MerkleTree.mjs +12 -1
- package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.cjs +1 -1
- package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.d.ts +4 -0
- package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.mjs +100 -86
- package/common/src/data-structures/provider-adapter/IProviderAdapter.d.ts +1 -5
- package/common/src/data-structures/token-price-fetcher/TokenChecker.cjs +1 -1
- package/common/src/data-structures/token-price-fetcher/TokenChecker.d.ts +1 -0
- package/common/src/data-structures/token-price-fetcher/TokenChecker.mjs +5 -3
- package/common/src/data-structures/utxo/Utxo.cjs +1 -1
- package/common/src/data-structures/utxo/Utxo.d.ts +1 -4
- package/common/src/data-structures/utxo/Utxo.mjs +7 -17
- package/common/src/error-handling/error-codes.constants.cjs +2 -2
- package/common/src/error-handling/error-codes.constants.d.ts +14 -14
- package/common/src/error-handling/error-codes.constants.mjs +30 -32
- package/common/src/error-handling/get-error.message.cjs +1 -1
- package/common/src/error-handling/get-error.message.mjs +28 -18
- package/common/src/error-handling/index.cjs +1 -1
- package/common/src/error-handling/index.d.ts +1 -0
- package/common/src/error-handling/index.mjs +1 -0
- package/common/src/externalABIs/index.cjs +1 -1
- package/common/src/externalABIs/index.d.ts +1 -113
- package/common/src/externalABIs/index.mjs +2 -6
- package/common/src/functions/auto-deposit-back-helpers/get-gas-token-records.cjs +1 -1
- package/common/src/functions/auto-deposit-back-helpers/get-gas-token-records.mjs +7 -6
- package/common/src/functions/auto-deposit-back-helpers/select-gas-token.cjs +1 -1
- package/common/src/functions/auto-deposit-back-helpers/select-gas-token.mjs +8 -8
- package/common/src/functions/index.cjs +1 -1
- package/common/src/functions/index.d.ts +0 -1
- package/common/src/functions/index.mjs +21 -20
- package/common/src/functions/pre-transaction/buildCommitmentValidationData.cjs +1 -1
- package/common/src/functions/pre-transaction/buildCommitmentValidationData.mjs +36 -38
- package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.cjs +1 -1
- package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.mjs +38 -5
- package/common/src/functions/pre-transaction/ensureAmountChanges.cjs +1 -1
- package/common/src/functions/pre-transaction/ensureAmountChanges.mjs +3 -10
- package/common/src/functions/pre-transaction/getExternalSwapAddress.cjs +1 -1
- package/common/src/functions/pre-transaction/getExternalSwapAddress.mjs +2 -18
- package/common/src/functions/pre-transaction/getSolanaCalldataHash.cjs +1 -1
- package/common/src/functions/pre-transaction/getSolanaCalldataHash.d.ts +1 -1
- package/common/src/functions/pre-transaction/getSolanaCalldataHash.mjs +11 -10
- package/common/src/functions/pre-transaction/getVolatileTransferAmount.cjs +1 -1
- package/common/src/functions/pre-transaction/getVolatileTransferAmount.mjs +1 -1
- package/common/src/functions/pre-transaction/index.cjs +1 -1
- package/common/src/functions/pre-transaction/index.d.ts +2 -2
- package/common/src/functions/pre-transaction/index.mjs +2 -3
- package/common/src/functions/pre-transaction/merge-with-fee-structure-emporium.cjs +1 -1
- package/common/src/functions/pre-transaction/merge-with-fee-structure-emporium.mjs +2 -2
- package/common/src/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
- package/common/src/functions/pre-transaction/outputUtxoProcessing.d.ts +2 -1
- package/common/src/functions/pre-transaction/outputUtxoProcessing.mjs +19 -18
- package/common/src/functions/pre-transaction/sendV0Transaction.cjs +2 -2
- package/common/src/functions/pre-transaction/sendV0Transaction.d.ts +5 -2
- package/common/src/functions/pre-transaction/sendV0Transaction.mjs +4 -4
- package/common/src/functions/pre-transaction/solana-public-signals.d.ts +1 -0
- package/common/src/functions/pre-transaction/solana.cjs +1 -1
- package/common/src/functions/pre-transaction/solana.d.ts +13 -0
- package/common/src/functions/pre-transaction/solana.mjs +46 -21
- package/common/src/functions/pre-transaction/solanaTransfer.utils.cjs +1 -1
- package/common/src/functions/pre-transaction/solanaTransfer.utils.mjs +16 -15
- package/common/src/functions/pre-transaction/speculativeUtxo.cjs +1 -0
- package/common/src/functions/pre-transaction/speculativeUtxo.d.ts +9 -0
- package/common/src/functions/pre-transaction/speculativeUtxo.mjs +19 -0
- package/common/src/functions/pre-transaction/store-proof.cjs +1 -1
- package/common/src/functions/pre-transaction/store-proof.d.ts +1 -1
- package/common/src/functions/pre-transaction/store-proof.mjs +1 -0
- package/common/src/functions/private-wallet/emporium.helpers.cjs +1 -1
- package/common/src/functions/private-wallet/emporium.helpers.d.ts +9 -3
- package/common/src/functions/private-wallet/emporium.helpers.mjs +116 -72
- package/common/src/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
- package/common/src/functions/private-wallet/emporium.swap.helpers.d.ts +0 -1
- package/common/src/functions/private-wallet/emporium.swap.helpers.mjs +38 -80
- package/common/src/functions/private-wallet/index.cjs +1 -1
- package/common/src/functions/private-wallet/index.d.ts +0 -1
- package/common/src/functions/private-wallet/index.mjs +0 -1
- package/common/src/functions/snarkjs/common.snarkjs.cjs +1 -1
- package/common/src/functions/snarkjs/common.snarkjs.d.ts +4 -4
- package/common/src/functions/snarkjs/common.snarkjs.mjs +104 -65
- package/common/src/functions/snarkjs/constant.cjs +1 -1
- package/common/src/functions/snarkjs/constant.d.ts +231 -144
- package/common/src/functions/snarkjs/constant.mjs +231 -145
- package/common/src/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
- package/common/src/functions/snarkjs/constructGeneralZkProof.d.ts +1 -1
- package/common/src/functions/snarkjs/constructGeneralZkProof.mjs +85 -69
- package/common/src/functions/snarkjs/constructSignatureFromMnemonicProofInput.cjs +1 -0
- package/common/src/functions/snarkjs/constructSignatureFromMnemonicProofInput.d.ts +7 -0
- package/common/src/functions/snarkjs/constructSignatureFromMnemonicProofInput.mjs +2 -0
- package/common/src/functions/snarkjs/constructSolanaZkProof.cjs +1 -1
- package/common/src/functions/snarkjs/constructSolanaZkProof.d.ts +4 -1
- package/common/src/functions/snarkjs/constructSolanaZkProof.mjs +62 -61
- package/common/src/functions/snarkjs/constructTxEnclave.cjs +1 -0
- package/common/src/functions/snarkjs/constructTxEnclave.d.ts +34 -0
- package/common/src/functions/snarkjs/constructTxEnclave.mjs +95 -0
- package/common/src/functions/snarkjs/constructTxEnclaveVerify.cjs +1 -0
- package/common/src/functions/snarkjs/constructTxEnclaveVerify.d.ts +5 -0
- package/common/src/functions/snarkjs/constructTxEnclaveVerify.mjs +295 -0
- package/common/src/functions/snarkjs/fetchMerkleTreeSiblings.d.ts +1 -3
- package/common/src/functions/snarkjs/fetchOnChainRootHashes.cjs +1 -1
- package/common/src/functions/snarkjs/fetchOnChainRootHashes.d.ts +1 -0
- package/common/src/functions/snarkjs/fetchOnChainRootHashes.mjs +16 -18
- package/common/src/functions/snarkjs/fetchTronInsertionSiblings.cjs +1 -0
- package/common/src/functions/snarkjs/fetchTronInsertionSiblings.d.ts +7 -0
- package/common/src/functions/snarkjs/fetchTronInsertionSiblings.mjs +13 -0
- package/common/src/functions/snarkjs/generateCircomData.cjs +1 -1
- package/common/src/functions/snarkjs/generateCircomData.d.ts +1 -1
- package/common/src/functions/snarkjs/generateCircomData.mjs +41 -31
- package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.cjs +1 -1
- package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.d.ts +1 -1
- package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.mjs +7 -7
- package/common/src/functions/snarkjs/generateSignatureFromMnemonicProof.cjs +1 -0
- package/common/src/functions/snarkjs/generateSignatureFromMnemonicProof.d.ts +2 -0
- package/common/src/functions/snarkjs/generateSignatureFromMnemonicProof.mjs +3 -0
- package/common/src/functions/snarkjs/generateZkProof.cjs +1 -1
- package/common/src/functions/snarkjs/generateZkProof.d.ts +1 -1
- package/common/src/functions/snarkjs/generateZkProof.mjs +9 -16
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.cjs +1 -1
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.d.ts +4 -2
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +19 -13
- package/common/src/functions/snarkjs/getZKFiles.cjs +1 -1
- package/common/src/functions/snarkjs/getZKFiles.mjs +9 -3
- package/common/src/functions/snarkjs/index.cjs +1 -1
- package/common/src/functions/snarkjs/index.d.ts +2 -0
- package/common/src/functions/snarkjs/index.mjs +2 -0
- package/common/src/functions/snarkjs/signedMessageHash.cjs +1 -1
- package/common/src/functions/snarkjs/signedMessageHash.d.ts +16 -0
- package/common/src/functions/snarkjs/signedMessageHash.mjs +36 -7
- package/common/src/functions/snarkjs/verifySignedEnclaveResponse.cjs +1 -0
- package/common/src/functions/snarkjs/verifySignedEnclaveResponse.d.ts +1 -0
- package/common/src/functions/snarkjs/verifySignedEnclaveResponse.mjs +11 -0
- package/common/src/functions/utils/addresses.cjs +1 -1
- package/common/src/functions/utils/addresses.d.ts +2 -1
- package/common/src/functions/utils/addresses.mjs +30 -21
- package/common/src/functions/utils/bridge-arrival.utils.cjs +1 -0
- package/common/src/functions/utils/bridge-arrival.utils.d.ts +1 -0
- package/common/src/functions/utils/bridge-arrival.utils.mjs +16 -0
- package/common/src/functions/utils/bridge-claimable-utxo.utils.cjs +1 -0
- package/common/src/functions/utils/bridge-claimable-utxo.utils.d.ts +19 -0
- package/common/src/functions/utils/bridge-claimable-utxo.utils.mjs +24 -0
- package/common/src/functions/utils/bridge-claimable.utils.cjs +1 -0
- package/common/src/functions/utils/bridge-claimable.utils.d.ts +15 -0
- package/common/src/functions/utils/bridge-claimable.utils.mjs +3 -0
- package/common/src/functions/utils/bridge-flow.utils.cjs +1 -0
- package/common/src/functions/utils/bridge-flow.utils.d.ts +4 -0
- package/common/src/functions/utils/bridge-flow.utils.mjs +2 -0
- package/common/src/functions/utils/buildClaimableDepositPlan.d.ts +3 -2
- package/common/src/functions/utils/convertEmporiumOpToCallInfo.cjs +1 -1
- package/common/src/functions/utils/convertEmporiumOpToCallInfo.mjs +5 -10
- package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.cjs +1 -1
- package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.mjs +1 -1
- package/common/src/functions/utils/create-provider.cjs +1 -1
- package/common/src/functions/utils/create-provider.d.ts +9 -2
- package/common/src/functions/utils/create-provider.mjs +45 -9
- package/common/src/functions/utils/deposit-claimable.utils.cjs +1 -1
- package/common/src/functions/utils/deposit-claimable.utils.d.ts +2 -5
- package/common/src/functions/utils/deposit-claimable.utils.mjs +3 -6
- package/common/src/functions/utils/enclave-recipient-info-storage.cjs +1 -1
- package/common/src/functions/utils/enclave-recipient-info-storage.d.ts +4 -1
- package/common/src/functions/utils/enclave-recipient-info-storage.mjs +1 -0
- package/common/src/functions/utils/enclave-signature-storage.cjs +1 -1
- package/common/src/functions/utils/enclave-signature-storage.d.ts +1 -1
- package/common/src/functions/utils/enclave-signature-storage.mjs +3 -3
- package/common/src/functions/utils/enclave-utxo-storage.cjs +1 -1
- package/common/src/functions/utils/enclave-utxo-storage.d.ts +6 -7
- package/common/src/functions/utils/enclave-utxo-storage.mjs +16 -2
- package/common/src/functions/utils/enclaveSessionSigning.cjs +1 -0
- package/common/src/functions/utils/enclaveSessionSigning.d.ts +16 -0
- package/common/src/functions/utils/enclaveSessionSigning.mjs +2 -0
- package/common/src/functions/utils/encodeTokenWithId.cjs +1 -1
- package/common/src/functions/utils/encodeTokenWithId.d.ts +1 -2
- package/common/src/functions/utils/encodeTokenWithId.mjs +2 -5
- package/common/src/functions/utils/encryptInputForEnclave.cjs +1 -1
- package/common/src/functions/utils/encryptInputForEnclave.d.ts +8 -0
- package/common/src/functions/utils/encryptInputForEnclave.mjs +43 -23
- package/common/src/functions/utils/erc20tokenFunctions.cjs +1 -1
- package/common/src/functions/utils/erc20tokenFunctions.mjs +2 -15
- package/common/src/functions/utils/fees.utils.cjs +1 -1
- package/common/src/functions/utils/fees.utils.d.ts +3 -0
- package/common/src/functions/utils/fees.utils.mjs +42 -29
- package/common/src/functions/utils/formatter.d.ts +2 -0
- package/common/src/functions/utils/getDataFromTransaction.d.ts +4 -3
- package/common/src/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -1
- package/common/src/functions/utils/getRecipientInfoFromUserKeys.mjs +2 -3
- package/common/src/functions/utils/getUtxosFromReceipt.utils.cjs +1 -1
- package/common/src/functions/utils/getUtxosFromReceipt.utils.d.ts +1 -1
- package/common/src/functions/utils/getUtxosFromReceipt.utils.mjs +2 -26
- package/common/src/functions/utils/getUtxosFromReceiptSolana.cjs +1 -1
- package/common/src/functions/utils/getUtxosFromReceiptSolana.mjs +7 -24
- package/common/src/functions/utils/index.cjs +1 -1
- package/common/src/functions/utils/index.d.ts +17 -3
- package/common/src/functions/utils/index.mjs +27 -13
- package/common/src/functions/utils/ipfs.d.ts +2 -3
- package/common/src/functions/utils/legacyKeys.cjs +1 -0
- package/common/src/functions/utils/legacyKeys.d.ts +10 -0
- package/common/src/functions/utils/legacyKeys.mjs +8 -0
- package/common/src/functions/utils/lifi.utils.d.ts +3 -0
- package/common/src/functions/utils/mnemonics.cjs +1 -1
- package/common/src/functions/utils/mnemonics.mjs +4 -6
- package/common/src/functions/utils/nearIntents.utils.cjs +1 -1
- package/common/src/functions/utils/nearIntents.utils.mjs +27 -13
- package/common/src/functions/utils/networks.utils.d.ts +1 -0
- package/common/src/functions/utils/prepareHinkal.cjs +1 -1
- package/common/src/functions/utils/prepareHinkal.d.ts +1 -3
- package/common/src/functions/utils/prepareHinkal.mjs +2 -1
- package/common/src/functions/utils/process.utils.cjs +1 -1
- package/common/src/functions/utils/process.utils.d.ts +0 -1
- package/common/src/functions/utils/process.utils.mjs +2 -11
- package/common/src/functions/utils/proxyAvatar.utils.cjs +1 -0
- package/common/src/functions/utils/proxyAvatar.utils.mjs +3 -0
- package/common/src/functions/utils/publicBalance.utils.cjs +1 -1
- package/common/src/functions/utils/publicBalance.utils.d.ts +0 -1
- package/common/src/functions/utils/publicBalance.utils.mjs +37 -23
- package/common/src/functions/utils/recovery-balance.utils.cjs +1 -0
- package/common/src/functions/utils/recovery-balance.utils.d.ts +2 -0
- package/common/src/functions/utils/recovery-balance.utils.mjs +1 -0
- package/common/src/functions/utils/resolve-domain-address.cjs +1 -0
- package/common/src/functions/utils/resolve-domain-address.d.ts +4 -0
- package/common/src/functions/utils/resolve-domain-address.mjs +3 -0
- package/common/src/functions/utils/serialize-utxos.utils.cjs +1 -1
- package/common/src/functions/utils/serialize-utxos.utils.mjs +6 -4
- package/common/src/functions/utils/solana-program.utils.cjs +1 -0
- package/common/src/functions/utils/solana-program.utils.d.ts +3 -0
- package/common/src/functions/utils/solana-program.utils.mjs +17 -0
- package/common/src/functions/utils/solana-sponsored.utils.cjs +1 -0
- package/common/src/functions/utils/solana-sponsored.utils.d.ts +22 -0
- package/common/src/functions/utils/solana-sponsored.utils.mjs +30 -0
- package/common/src/functions/utils/solanaMint.utils.cjs +1 -1
- package/common/src/functions/utils/solanaMint.utils.d.ts +7 -0
- package/common/src/functions/utils/solanaMint.utils.mjs +18 -8
- package/common/src/functions/utils/sponsored-shield.utils.cjs +1 -0
- package/common/src/functions/utils/sponsored-shield.utils.d.ts +3 -0
- package/common/src/functions/utils/sponsored-shield.utils.mjs +3 -0
- package/common/src/functions/utils/temp-wallet.utils.cjs +1 -0
- package/common/src/functions/utils/temp-wallet.utils.d.ts +8 -0
- package/common/src/functions/utils/temp-wallet.utils.mjs +43 -0
- package/common/src/functions/utils/temporary-wallet-recovery.utils.cjs +1 -0
- package/common/src/functions/utils/temporary-wallet-recovery.utils.d.ts +7 -0
- package/common/src/functions/utils/temporary-wallet-recovery.utils.mjs +10 -0
- package/common/src/functions/utils/transfer-claimable.utils.cjs +1 -1
- package/common/src/functions/utils/transfer-claimable.utils.d.ts +1 -2
- package/common/src/functions/utils/transfer-claimable.utils.mjs +1 -4
- package/common/src/functions/utils/tron.utils.cjs +1 -1
- package/common/src/functions/utils/tron.utils.d.ts +5 -14
- package/common/src/functions/utils/tron.utils.mjs +89 -152
- package/common/src/functions/utils/tronSimulation.utils.cjs +1 -1
- package/common/src/functions/utils/tronSimulation.utils.mjs +4 -6
- package/common/src/functions/utils/tx-confirmation.utils.cjs +1 -1
- package/common/src/functions/utils/tx-confirmation.utils.d.ts +1 -0
- package/common/src/functions/utils/tx-confirmation.utils.mjs +16 -13
- package/common/src/functions/utils/validateWalletAddress.cjs +1 -0
- package/common/src/functions/utils/validateWalletAddress.d.ts +1 -0
- package/common/src/functions/utils/validateWalletAddress.mjs +2 -0
- package/common/src/functions/utils/voidWallets.utils.cjs +1 -0
- package/common/src/functions/utils/voidWallets.utils.d.ts +4 -0
- package/common/src/functions/utils/voidWallets.utils.mjs +1 -0
- package/common/src/functions/utils/waasStamp.cjs +1 -0
- package/common/src/functions/utils/waasStamp.d.ts +5 -0
- package/common/src/functions/utils/waasStamp.mjs +2 -0
- package/common/src/functions/web3/connectors.utils.d.ts +1 -0
- package/common/src/functions/web3/etherFunctions.d.ts +1 -0
- package/common/src/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
- package/common/src/functions/web3/events/getInputUtxoAndBalance.d.ts +5 -12
- package/common/src/functions/web3/events/getInputUtxoAndBalance.mjs +50 -61
- package/common/src/functions/web3/events/getInputUtxosEnclave.cjs +1 -1
- package/common/src/functions/web3/events/getInputUtxosEnclave.d.ts +4 -3
- package/common/src/functions/web3/events/getInputUtxosEnclave.mjs +42 -35
- package/common/src/functions/web3/events/getShieldedBalance.cjs +1 -1
- package/common/src/functions/web3/events/getShieldedBalance.d.ts +4 -4
- package/common/src/functions/web3/events/getShieldedBalance.mjs +109 -93
- package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.cjs +1 -1
- package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +9 -6
- package/common/src/functions/web3/functionCalls/approveToken.cjs +1 -1
- package/common/src/functions/web3/functionCalls/approveToken.d.ts +1 -1
- package/common/src/functions/web3/functionCalls/approveToken.mjs +21 -107
- package/common/src/functions/web3/functionCalls/constructBatchCall.cjs +1 -1
- package/common/src/functions/web3/functionCalls/constructBatchCall.d.ts +2 -2
- package/common/src/functions/web3/functionCalls/constructBatchCall.mjs +23 -18
- package/common/src/functions/web3/functionCalls/submitProof.cjs +1 -0
- package/common/src/functions/web3/functionCalls/submitProof.d.ts +5 -0
- package/common/src/functions/web3/functionCalls/submitProof.mjs +26 -0
- package/common/src/functions/web3/functionCalls/transactCallDirectTron.cjs +1 -1
- package/common/src/functions/web3/functionCalls/transactCallDirectTron.d.ts +7 -3
- package/common/src/functions/web3/functionCalls/transactCallDirectTron.mjs +81 -53
- package/common/src/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/common/src/functions/web3/functionCalls/transactCallRelayer.d.ts +8 -13
- package/common/src/functions/web3/functionCalls/transactCallRelayer.mjs +12 -8
- package/common/src/functions/web3/getPublicAddressBalance.cjs +1 -1
- package/common/src/functions/web3/getPublicAddressBalance.d.ts +1 -2
- package/common/src/functions/web3/getPublicAddressBalance.mjs +6 -5
- package/common/src/functions/web3/getTokenHolder.cjs +1 -1
- package/common/src/functions/web3/getTokenHolder.mjs +3 -2
- package/common/src/functions/web3/index.cjs +1 -1
- package/common/src/functions/web3/index.d.ts +1 -4
- package/common/src/functions/web3/index.mjs +1 -4
- package/common/src/functions/web3/lifiAPI.cjs +1 -1
- package/common/src/functions/web3/lifiAPI.mjs +38 -7
- package/common/src/providers/EthersProviderAdapter.cjs +1 -1
- package/common/src/providers/EthersProviderAdapter.d.ts +0 -1
- package/common/src/providers/EthersProviderAdapter.mjs +0 -3
- package/common/src/providers/SolanaProviderAdapter.cjs +1 -1
- package/common/src/providers/SolanaProviderAdapter.d.ts +1 -5
- package/common/src/providers/SolanaProviderAdapter.mjs +4 -11
- package/common/src/providers/TronProviderAdapter.cjs +1 -1
- package/common/src/providers/TronProviderAdapter.d.ts +0 -1
- package/common/src/providers/TronProviderAdapter.mjs +7 -4
- package/common/src/providers/WagmiProviderAdapter.cjs +1 -1
- package/common/src/providers/WagmiProviderAdapter.d.ts +0 -1
- package/common/src/providers/WagmiProviderAdapter.mjs +32 -39
- package/common/src/types/API.types.d.ts +0 -4
- package/common/src/types/WeeklyAnalytics.types.d.ts +1 -26
- package/common/src/types/activities.types.cjs +1 -1
- package/common/src/types/activities.types.d.ts +0 -9
- package/common/src/types/activities.types.mjs +1 -1
- package/common/src/types/admin.types.cjs +1 -1
- package/common/src/types/admin.types.d.ts +4 -1
- package/common/src/types/admin.types.mjs +1 -1
- package/common/src/types/bridging-tx.types.d.ts +26 -3
- package/common/src/types/cache.types.cjs +1 -1
- package/common/src/types/cache.types.d.ts +4 -3
- package/common/src/types/cache.types.mjs +1 -1
- package/common/src/types/circom-data.types.cjs +1 -1
- package/common/src/types/circom-data.types.d.ts +32 -27
- package/common/src/types/circom-data.types.mjs +1 -1
- package/common/src/types/commitments.types.d.ts +2 -0
- package/common/src/types/dashboard-account.d.ts +15 -0
- package/common/src/types/dashboard-payout.types.d.ts +1 -0
- package/common/src/types/dashboard-transaction.types.d.ts +3 -0
- package/common/src/types/enclaveApi.types.d.ts +77 -0
- package/common/src/types/ethereum-network.types.cjs +1 -1
- package/common/src/types/ethereum-network.types.d.ts +13 -29
- package/common/src/types/ethereum-network.types.mjs +1 -1
- package/common/src/types/events.types.d.ts +1 -0
- package/common/src/types/external-action.types.cjs +1 -1
- package/common/src/types/external-action.types.d.ts +4 -7
- package/common/src/types/external-action.types.mjs +1 -1
- package/common/src/types/hinkal.types.cjs +1 -1
- package/common/src/types/hinkal.types.d.ts +12 -29
- package/common/src/types/hinkal.types.mjs +12 -20
- package/common/src/types/index.cjs +1 -1
- package/common/src/types/index.d.ts +6 -5
- package/common/src/types/index.mjs +3 -2
- package/common/src/types/near-intents.types.d.ts +2 -0
- package/common/src/types/new-rewards.type.d.ts +0 -70
- package/common/src/types/offscreen.types.cjs +1 -1
- package/common/src/types/offscreen.types.d.ts +0 -1
- package/common/src/types/offscreen.types.mjs +1 -1
- package/common/src/types/pay-activities.types.d.ts +24 -4
- package/common/src/types/payout-notification.types.d.ts +11 -0
- package/common/src/types/proxy-progress.types.d.ts +5 -0
- package/common/src/types/remote-proof.types.d.ts +5 -6
- package/common/src/types/remote-tx-build.types.d.ts +298 -0
- package/common/src/types/scheduled-transactions.types.d.ts +25 -12
- package/common/src/types/snark.types.d.ts +1 -3
- package/common/src/types/solana-transact.types.cjs +1 -0
- package/common/src/types/solana-transact.types.d.ts +35 -0
- package/common/src/types/solana-transact.types.mjs +6 -0
- package/common/src/types/solana.types.cjs +1 -0
- package/common/src/types/solana.types.d.ts +12 -3
- package/common/src/types/solana.types.mjs +6 -0
- package/common/src/types/temp-wallet.types.d.ts +9 -0
- package/common/src/types/tenderly.api.types.d.ts +70 -0
- package/common/src/types/token.types.cjs +1 -1
- package/common/src/types/token.types.d.ts +10 -0
- package/common/src/types/token.types.mjs +2 -2
- package/common/src/types/transact.types.cjs +1 -0
- package/common/src/types/transact.types.d.ts +53 -0
- package/common/src/types/transact.types.mjs +6 -0
- package/common/src/types/transaction.types.d.ts +0 -1
- package/common/src/types/transactions.types.d.ts +0 -1
- package/common/src/webworker/logError-ScFy7p5w.js +2 -0
- package/common/src/webworker/package.json +26 -25
- package/common/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs +1 -1
- package/common/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.mjs +1 -1
- package/common/src/webworker/snarkjsWorkerNode.cjs +1 -1
- package/common/src/webworker/utxoWorker/utxoWorker.types.d.ts +4 -2
- package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -1
- package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +1 -1
- package/common/src/webworker/utxoWorkerNode.cjs +1 -1
- package/common/src/webworker/viteWorkerURL.constant.cjs +3 -3
- package/common/src/webworker/viteWorkerURL.constant.mjs +3 -3
- package/common/src/webworker/workerProxy-B_eSl85g.js +1 -0
- package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -1
- package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +1 -1
- package/common/src/webworker/zkProofWorkerNode.cjs +1 -1
- package/index.cjs +1 -1
- package/index.mjs +1 -1
- package/internal/swapApi.cjs +1 -1
- package/internal/swapApi.d.ts +3 -3
- package/internal/swapApi.mjs +22 -25
- package/package.json +26 -25
- package/providers/prepareEthersHinkal.cjs +1 -1
- package/providers/prepareEthersHinkal.d.ts +1 -0
- package/providers/prepareEthersHinkal.mjs +2 -2
- package/providers/prepareSolanaHinkal.cjs +1 -1
- package/providers/prepareSolanaHinkal.d.ts +1 -0
- package/providers/prepareSolanaHinkal.mjs +2 -2
- package/providers/prepareTronHinkal.cjs +1 -1
- package/providers/prepareTronHinkal.d.ts +1 -0
- package/providers/prepareTronHinkal.mjs +2 -2
- package/providers/prepareWagmiHinkal.cjs +1 -1
- package/providers/prepareWagmiHinkal.d.ts +1 -0
- package/providers/prepareWagmiHinkal.mjs +2 -2
- package/services/Hinkal.cjs +1 -1
- package/services/Hinkal.d.ts +16 -10
- package/services/Hinkal.mjs +29 -17
- package/types/IHinkal.d.ts +16 -10
- package/types/swap.types.d.ts +3 -20
- package/common/src/API/accessCodeCalls.cjs +0 -1
- package/common/src/API/accessCodeCalls.d.ts +0 -23
- package/common/src/API/accessCodeCalls.mjs +0 -13
- package/common/src/API/brotherhoodCalls.cjs +0 -1
- package/common/src/API/brotherhoodCalls.d.ts +0 -82
- package/common/src/API/brotherhoodCalls.mjs +0 -17
- package/common/src/API/callOdosAPI.cjs +0 -1
- package/common/src/API/callOdosAPI.d.ts +0 -63
- package/common/src/API/callOdosAPI.mjs +0 -18
- package/common/src/API/callOneInchAPI.cjs +0 -1
- package/common/src/API/callOneInchAPI.d.ts +0 -18
- package/common/src/API/callOneInchAPI.mjs +0 -13
- package/common/src/API/deposit-and-withdraw-status-calls.cjs +0 -1
- package/common/src/API/deposit-and-withdraw-status-calls.d.ts +0 -21
- package/common/src/API/deposit-and-withdraw-status-calls.mjs +0 -13
- package/common/src/API/generate-trading-points.cjs +0 -1
- package/common/src/API/generate-trading-points.d.ts +0 -27
- package/common/src/API/generate-trading-points.mjs +0 -23
- package/common/src/API/getAnyRecipientInfo.d.ts +0 -1
- package/common/src/API/leaderboardCalls.cjs +0 -1
- package/common/src/API/leaderboardCalls.d.ts +0 -14
- package/common/src/API/leaderboardCalls.mjs +0 -8
- package/common/src/API/referralsCalls.cjs +0 -1
- package/common/src/API/referralsCalls.d.ts +0 -22
- package/common/src/API/referralsCalls.mjs +0 -11
- package/common/src/API/send-telegram-callback.cjs +0 -1
- package/common/src/API/send-telegram-callback.d.ts +0 -7
- package/common/src/API/send-telegram-callback.mjs +0 -11
- package/common/src/constants/mystery-boxes.constants.d.ts +0 -0
- package/common/src/constants/price-impact.constants.d.ts +0 -2
- package/common/src/constants/rewards.constants.d.ts +0 -15
- package/common/src/constants/tasks.constants.cjs +0 -1
- package/common/src/constants/tasks.constants.d.ts +0 -9
- package/common/src/constants/tasks.constants.mjs +0 -124
- package/common/src/crypto/ecdh-dual-path.cjs +0 -1
- package/common/src/crypto/ecdh-dual-path.d.ts +0 -13
- package/common/src/crypto/ecdh-dual-path.mjs +0 -6
- package/common/src/data-structures/Hinkal/hinkalMultiSend.cjs +0 -1
- package/common/src/data-structures/Hinkal/hinkalMultiSend.d.ts +0 -3
- package/common/src/data-structures/Hinkal/hinkalMultiSend.mjs +0 -12
- package/common/src/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.cjs +0 -1
- package/common/src/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.d.ts +0 -6
- package/common/src/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.mjs +0 -128
- package/common/src/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.cjs +0 -1
- package/common/src/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.d.ts +0 -22
- package/common/src/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.mjs +0 -34
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +0 -172
- package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.mjs +0 -94
- package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.mjs +0 -134
- package/common/src/data-structures/TokenDBs/PublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/PublicTokensDB.mjs +0 -32
- package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.mjs +0 -41
- package/common/src/data-structures/TokenDBs/TronPublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/TronPublicTokensDB.mjs +0 -47
- package/common/src/data-structures/TokenDBs/index.cjs +0 -1
- package/common/src/data-structures/TokenDBs/index.mjs +0 -6
- package/common/src/externalABIs/IQuoterV2.json.cjs +0 -1
- package/common/src/externalABIs/IQuoterV2.json.mjs +0 -203
- package/common/src/externalABIs/ISwapRouter.json.cjs +0 -1
- package/common/src/externalABIs/ISwapRouter.json.mjs +0 -537
- package/common/src/externalABIs/IUniswapV3Factory.json.cjs +0 -1
- package/common/src/externalABIs/IUniswapV3Factory.json.mjs +0 -188
- package/common/src/externalABIs/IUniswapV3Pool.json.cjs +0 -1
- package/common/src/externalABIs/IUniswapV3Pool.json.mjs +0 -938
- package/common/src/externalABIs/UniswapV2PoolAbi.json.cjs +0 -1
- package/common/src/externalABIs/UniswapV2PoolAbi.json.mjs +0 -78
- package/common/src/functions/pre-transaction/interaction-to-action.cjs +0 -1
- package/common/src/functions/pre-transaction/interaction-to-action.d.ts +0 -2
- package/common/src/functions/pre-transaction/interaction-to-action.mjs +0 -1
- package/common/src/functions/pre-transaction/recipientUtxoProcessing.cjs +0 -1
- package/common/src/functions/pre-transaction/recipientUtxoProcessing.d.ts +0 -3
- package/common/src/functions/pre-transaction/recipientUtxoProcessing.mjs +0 -32
- package/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.cjs +0 -1
- package/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.mjs +0 -29
- package/common/src/functions/private-wallet/opProducer.cjs +0 -1
- package/common/src/functions/private-wallet/opProducer.d.ts +0 -5
- package/common/src/functions/private-wallet/opProducer.mjs +0 -3
- package/common/src/functions/snarkjs/generateZkProofEnclave.cjs +0 -1
- package/common/src/functions/snarkjs/generateZkProofEnclave.d.ts +0 -5
- package/common/src/functions/snarkjs/generateZkProofEnclave.mjs +0 -27
- package/common/src/functions/utils/bit.operations.cjs +0 -1
- package/common/src/functions/utils/bit.operations.d.ts +0 -3
- package/common/src/functions/utils/bit.operations.mjs +0 -4
- package/common/src/functions/utils/get-signature-header.cjs +0 -1
- package/common/src/functions/utils/get-signature-header.d.ts +0 -5
- package/common/src/functions/utils/get-signature-header.mjs +0 -4
- package/common/src/functions/utils/ipfs.cjs +0 -1
- package/common/src/functions/utils/ipfs.mjs +0 -1
- package/common/src/functions/utils/reloadPage.cjs +0 -1
- package/common/src/functions/utils/reloadPage.mjs +0 -4
- package/common/src/functions/web3/getSolanaPriorityFee.cjs +0 -1
- package/common/src/functions/web3/getSolanaPriorityFee.d.ts +0 -3
- package/common/src/functions/web3/getSolanaPriorityFee.mjs +0 -26
- package/common/src/functions/web3/odosAPI.cjs +0 -1
- package/common/src/functions/web3/odosAPI.d.ts +0 -5
- package/common/src/functions/web3/odosAPI.mjs +0 -35
- package/common/src/functions/web3/oneInchAPI.cjs +0 -1
- package/common/src/functions/web3/oneInchAPI.d.ts +0 -5
- package/common/src/functions/web3/oneInchAPI.mjs +0 -34
- package/common/src/functions/web3/uniswapAPI.cjs +0 -1
- package/common/src/functions/web3/uniswapAPI.d.ts +0 -16
- package/common/src/functions/web3/uniswapAPI.mjs +0 -60
- package/common/src/types/brotherhood-user.types.d.ts +0 -11
- package/common/src/types/crypto.types.d.ts +0 -8
- package/common/src/types/generatePoints.d.ts +0 -14
- package/common/src/types/new-rewards.type.cjs +0 -1
- package/common/src/types/new-rewards.type.mjs +0 -10
- package/common/src/types/referral.types.d.ts +0 -12
- package/common/src/types/rewards.types.d.ts +0 -34
- package/common/src/types/scheduled-transactions.types.cjs +0 -1
- package/common/src/types/scheduled-transactions.types.mjs +0 -6
- package/common/src/types/token-with-id.types.d.ts +0 -4
- package/common/src/webworker/logError-CZYZ3oyV.js +0 -2
- package/common/src/webworker/workerProxy-DPeuP2Mg.js +0 -1
package/README.md
CHANGED
|
@@ -43,11 +43,12 @@ Initializing the SDK creates a `Hinkal` object that encapsulates:
|
|
|
43
43
|
- Actions the user can perform, such as shielding (depositing), transfers, and swapping
|
|
44
44
|
- Cryptographic keys for privacy-preserving operations
|
|
45
45
|
|
|
46
|
-
Each provider exposes
|
|
46
|
+
Each provider exposes four prepare helpers:
|
|
47
47
|
|
|
48
48
|
- `prepare*Hinkal` — signs the Hinkal login message and initializes user keys (deterministic signers)
|
|
49
49
|
- `prepare*HinkalWithEnclaveSignIn` — signs in through the secure enclave and stabilizes identity for non-deterministic signers (smart contract wallets, some hardware wallets)
|
|
50
50
|
- `prepare*HinkalFromSignature` — initializes user keys from a previously stored signature
|
|
51
|
+
- `prepare*HinkalFromNullifyingKey` — initializes a read-only session from an exported nullifying key (balance viewing only, no signing capability)
|
|
51
52
|
|
|
52
53
|
**ethers.js:**
|
|
53
54
|
|
|
@@ -83,7 +84,7 @@ import { prepareTronHinkal } from '@hinkal/common/providers/prepareTronHinkal';
|
|
|
83
84
|
const hinkal = await prepareTronHinkal(connector, hinkalConfig);
|
|
84
85
|
```
|
|
85
86
|
|
|
86
|
-
The same `WithEnclaveSignIn` and `
|
|
87
|
+
The same `WithEnclaveSignIn`, `FromSignature`, and `FromNullifyingKey` variants are available for each provider (for example, `prepareWagmiHinkalWithEnclaveSignIn`, `prepareSolanaHinkalFromSignature`, `prepareEthersHinkalFromNullifyingKey`).
|
|
87
88
|
|
|
88
89
|
The `hinkalConfig` is defined as follows:
|
|
89
90
|
|
|
@@ -127,18 +128,12 @@ When that happens, a returning user appears as a new account. Funds deposited in
|
|
|
127
128
|
**Manual approach:** if you manage identity yourself, call `storeAndGetInitialSignature` and then either `initUserKeysWithSignature` or `prepare*HinkalFromSignature`:
|
|
128
129
|
|
|
129
130
|
```typescript
|
|
130
|
-
function storeAndGetInitialSignature(
|
|
131
|
-
authSignature: string,
|
|
132
|
-
isSolanaLedger?: boolean,
|
|
133
|
-
txMessageForSolanaLedger?: string,
|
|
134
|
-
): Promise<string>;
|
|
131
|
+
function storeAndGetInitialSignature(authSignature: string): Promise<string>;
|
|
135
132
|
```
|
|
136
133
|
|
|
137
134
|
Parameters:
|
|
138
135
|
|
|
139
|
-
- `authSignature` — signature from the current login session
|
|
140
|
-
- `isSolanaLedger` — set to `true` for a Solana Ledger wallet. Defaults to `false`
|
|
141
|
-
- `txMessageForSolanaLedger` — base64-encoded transaction message used for Solana Ledger authentication. Required when `isSolanaLedger` is `true`
|
|
136
|
+
- `authSignature` — signature from the current login session. For Solana Ledger wallets, sign with `signSolanaLedgerMessage()` first
|
|
142
137
|
|
|
143
138
|
Typical flow with a stored signature:
|
|
144
139
|
|
|
@@ -161,6 +156,27 @@ At rest, only the encrypted signature and encrypted key are stored in the databa
|
|
|
161
156
|
|
|
162
157
|
Requests that fail this check are rejected. The first signature stored for a given address is never replaced. Later logins only use a fresh signature to authenticate retrieval of the original.
|
|
163
158
|
|
|
159
|
+
### Read-only sessions (view keys)
|
|
160
|
+
|
|
161
|
+
A signed-in session can export a nullifying key: a value derived from the login signature that resolves to the same shielded account but cannot authorize spends. Use it to view balances on another device, in a backend job, or anywhere handing out the wallet's signing capability is not acceptable.
|
|
162
|
+
|
|
163
|
+
```typescript
|
|
164
|
+
// on a fully signed-in session
|
|
165
|
+
const nullifyingKey = hinkal.getNullifyingKey();
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Initialize a separate, read-only session from that key alone, either through a provider helper or directly on an existing `Hinkal` instance:
|
|
169
|
+
|
|
170
|
+
```typescript
|
|
171
|
+
const readOnlyHinkal = await prepareWagmiHinkalFromNullifyingKey(connector, wagmiConfig, nullifyingKey, hinkalConfig);
|
|
172
|
+
// or:
|
|
173
|
+
readOnlyHinkal.initUserKeysWithNullifyingKey(nullifyingKey);
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
A read-only session can fetch balances (`getTotalBalance`, `privateBalancesWithUSD`), decrypt incoming shielded outputs, and call `getRecipientInfo()` to receive funds — everything needed to view holdings. It cannot spend: `transfer`, `withdraw`, `swap`, `actionPrivateWallet`, and every other value-moving call throw, because they require the EdDSA spending key derived from the original wallet signature, which a nullifying key cannot reproduce.
|
|
177
|
+
|
|
178
|
+
Treat an exported nullifying key as sensitive account-specific material, not a public value — hand it out only to contexts you trust with read access to the account's balances and incoming transfers.
|
|
179
|
+
|
|
164
180
|
### Shielded balance
|
|
165
181
|
|
|
166
182
|
Shielded balances are encrypted token holdings stored within the Hinkal protocol. Unlike regular blockchain balances that are publicly visible, shielded balances are hidden from external observers.
|
|
@@ -362,10 +378,11 @@ Possible values for `ScheduledTransactionStatus` are:
|
|
|
362
378
|
- `sent_on_chain` — the withdrawal was submitted on-chain and `txHash` is available
|
|
363
379
|
- `completed` — the withdrawal was confirmed on-chain
|
|
364
380
|
- `failed` — the withdrawal transaction failed
|
|
381
|
+
- `deposit_failed` — the deposit transaction did not confirm; the withdrawal was not attempted
|
|
365
382
|
|
|
366
383
|
### Swapping tokens from the shielded balance
|
|
367
384
|
|
|
368
|
-
Swapping allows you to exchange tokens directly from your shielded balance without revealing your identity.
|
|
385
|
+
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
386
|
|
|
370
387
|
A user can swap tokens directly from their shielded balance using:
|
|
371
388
|
|
|
@@ -383,14 +400,14 @@ function swap(
|
|
|
383
400
|
|
|
384
401
|
where:
|
|
385
402
|
|
|
386
|
-
- `externalActionId` — swap
|
|
403
|
+
- `externalActionId` — swap external action to use (`ExternalActionId.Lifi` on EVM, `ExternalActionId.Okx` on Solana)
|
|
387
404
|
- `swapData` — encoded swap parameters for the chosen protocol
|
|
388
405
|
- `feeToken` — optional fee-payment token address
|
|
389
406
|
- `feeStructureOverride` — optional custom fee structure
|
|
390
407
|
|
|
391
408
|
**Getting swap quotes and calldata:**
|
|
392
409
|
|
|
393
|
-
Fetch
|
|
410
|
+
Fetch the swap quote for a chain in one call.
|
|
394
411
|
|
|
395
412
|
**EVM chains:**
|
|
396
413
|
|
|
@@ -400,22 +417,19 @@ function getEvmSwapPrices(
|
|
|
400
417
|
inSwapAmount: string,
|
|
401
418
|
inSwapTokenAddress: string,
|
|
402
419
|
outSwapTokenAddress: string,
|
|
403
|
-
): Promise<
|
|
420
|
+
): Promise<EvmSwapPrice | null>;
|
|
404
421
|
```
|
|
405
422
|
|
|
406
423
|
```typescript
|
|
407
|
-
type
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
oneInch: { outSwapAmountValue: bigint; oneInchDataValue: string } | null;
|
|
424
|
+
type EvmSwapPrice = {
|
|
425
|
+
outSwapAmountValue: bigint;
|
|
426
|
+
lifiDataValue: string;
|
|
411
427
|
};
|
|
412
428
|
```
|
|
413
429
|
|
|
414
|
-
Pass the swap calldata from the
|
|
430
|
+
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
431
|
|
|
416
|
-
- **
|
|
417
|
-
- **Odos** — `odos.odosDataValue` with `ExternalActionId.Odos`
|
|
418
|
-
- **1Inch** — `oneInch.oneInchDataValue` with `ExternalActionId.OneInch`
|
|
432
|
+
- **LI.FI** — `lifiDataValue` with `ExternalActionId.Lifi`
|
|
419
433
|
|
|
420
434
|
**Solana:**
|
|
421
435
|
|
|
@@ -425,16 +439,17 @@ function getSolanaSwapPrices(
|
|
|
425
439
|
inSwapAmount: string,
|
|
426
440
|
inSwapTokenAddress: string,
|
|
427
441
|
outSwapTokenAddress: string,
|
|
428
|
-
): Promise<
|
|
442
|
+
): Promise<SolanaSwapPrice | null>;
|
|
429
443
|
```
|
|
430
444
|
|
|
431
445
|
```typescript
|
|
432
|
-
type
|
|
433
|
-
|
|
446
|
+
type SolanaSwapPrice = {
|
|
447
|
+
outSwapAmountValue: bigint;
|
|
448
|
+
okxDataValue: string;
|
|
434
449
|
};
|
|
435
450
|
```
|
|
436
451
|
|
|
437
|
-
Pass `
|
|
452
|
+
Returns `null` if no quote could be fetched. Pass `okxDataValue` to `swap` as `swapData` with `ExternalActionId.Okx`.
|
|
438
453
|
|
|
439
454
|
### Interacting with smart contracts privately
|
|
440
455
|
|
|
@@ -540,14 +555,13 @@ Hinkal SDK is available on the following blockchain networks:
|
|
|
540
555
|
| --------------- | ---------- | ------- |
|
|
541
556
|
| Ethereum | 1 | ✅ Live |
|
|
542
557
|
| Arbitrum | 42161 | ✅ Live |
|
|
543
|
-
| Optimism | 10 | ✅ Live |
|
|
544
558
|
| Polygon | 137 | ✅ Live |
|
|
545
559
|
| Base | 8453 | ✅ Live |
|
|
560
|
+
| Tempo | 4217 | ✅ Live |
|
|
561
|
+
| BNB | 56 | ✅ Live |
|
|
546
562
|
| Solana | 501 | ✅ Live |
|
|
547
563
|
| Tron | 728126428 | ✅ Live |
|
|
548
|
-
| Tempo | 4217 | ✅ Live |
|
|
549
564
|
| Arc Testnet | 5042002 | ✅ Live |
|
|
550
|
-
| Sepolia Testnet | 11155111 | ✅ Live |
|
|
551
565
|
| Tron Nile | 3448148188 | ✅ Live |
|
|
552
566
|
|
|
553
567
|
Each chain supports the full suite of Hinkal privacy features including shielding, transfers, and confidential interactions with DeFi protocols.
|
package/common/src/API/API.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./
|
|
1
|
+
const e=require(`./relayCalls.cjs`),t=require(`./getTokenPrice.cjs`),n=require(`./getOdosPriceForToken.cjs`),r=require(`./simulate-transaction.cjs`),i=require(`./simulate-batch-tx.cjs`),a=require(`./token-calls.cjs`),o=require(`./get-token-data.cjs`),s=require(`./proxyAccountsCalls.cjs`),c=require(`./callMonitor.cjs`),l=require(`./callRelayer.cjs`),u=require(`./seedless-calls.cjs`),d=require(`./temporaryWalletCalls.cjs`),f=require(`./onrampCalls.cjs`),p=require(`./get-token-price-chart-data.cjs`),m=require(`./privacy-score-calls.cjs`),h=require(`./privateSendRecipientInfoCalls.cjs`),g=require(`./privateSendNonceCalls.cjs`),_=require(`./snapshot-event-calls.cjs`),v=require(`./privateSendEmailNotificationsCalls.cjs`),y=require(`./tronSubsidyCalls.cjs`),b=require(`./dashboardAccountCalls.cjs`),x=require(`./dashboardContactCalls.cjs`),S=require(`./dashboardPayoutCalls.cjs`),C=require(`./dashboardAccountMemberCalls.cjs`),w=require(`./dashboardBalanceCalls.cjs`),T=require(`./dashboardTransactionCalls.cjs`),E=require(`./payoutNotificationStateCalls.cjs`),D=require(`./enclaveUtxoCalls.cjs`),O=require(`./rewardsUserCalls.cjs`),k=require(`./weeklyAnalyticCalls.cjs`);var A={getTokenPrices:t.getTokenPrices,getOdosPriceForToken:n.getOdosPriceForToken,getTokenPriceChartData:p.getTokenPriceChartData,getTokenPreviousDayPrices:t.getTokenPreviousDayPrices,getIdleRelay:e.getIdleRelay,getUserAnalytics:k.getUserAnalytics,updateRewardsUser:O.updateRewardsUser,getRewardsUser:O.getRewardsUser,checkUsernameAvailability:O.checkUsernameAvailability,simulateTransaction:r.simulateTransaction,simulateBatchTx:i.simulateBatchTx,tokensInfoCall:a.tokensInfoCall,getTokenData:o.getTokenData,getBalancesEnclaveCall:D.getBalancesEnclaveCall,storeClaimableKeyEnclaveCall:D.storeClaimableKeyEnclaveCall,getUtxosEnclaveCall:D.getUtxosEnclaveCall,getProxyAccounts:s.getProxyAccounts,updateProxyAccounts:s.updateProxyAccounts,monitor:c.monitor,callRelayerSolanaTransactBatchAPI:l.callRelayerSolanaTransactBatchAPI,callRelayerSolanaSponsoredBuildAPI:l.callRelayerSolanaSponsoredBuildAPI,callRelayerSolanaSponsoredSubmitAPI:l.callRelayerSolanaSponsoredSubmitAPI,seedlessInit:u.seedlessInit,seedlessBackup:u.seedlessBackup,seedlessCheckPassword:u.seedlessCheckPassword,seedlessStatus:u.seedlessStatus,seedlessSalt:u.seedlessSalt,getTemporaryWalletNonces:d.getTemporaryWalletNonces,addTemporaryWalletNonce:d.addTemporaryWalletNonce,encodeMoonPayBuyUrl:f.encodeMoonPayBuyUrl,generateMoonPayQuote:f.generateMoonPayQuote,getPrivateTransactionRatio:m.getPrivateTransactionRatio,savePrivacyScoreAndGetPrivacyRank:m.savePrivacyScoreAndGetPrivacyRank,allocateRecipientInfosEnclaveCall:h.allocateRecipientInfosEnclaveCall,syncPrivateSendNonce:g.syncPrivateSendNonce,reservePrivateSendNonceRange:g.reservePrivateSendNonceRange,getSnapshotServerEvents:_.getSnapshotServerEvents,sendPrivateSendEmailNotifications:v.sendPrivateSendEmailNotifications,checkTronSubsidyEligibility:y.checkTronSubsidyEligibility,recordTronSubsidyUsage:y.recordTronSubsidyUsage,getDashboardAccount:b.getDashboardAccount,updateDashboardAccount:b.updateDashboardAccount,addDashboardContact:x.addDashboardContact,deleteDashboardContact:x.deleteDashboardContact,deleteDashboardAccount:b.deleteDashboardAccount,updateDashboardContact:x.updateDashboardContact,getDashboardContacts:x.getDashboardContacts,updateUserProfile:C.updateUserProfile,sendDashboardInvitationEmail:C.sendDashboardInvitationEmail,resolveInviteRequest:C.resolveInviteRequest,deleteInviteRequest:C.deleteInviteRequest,removeMember:C.removeMember,editMember:C.editMember,createDashboardPayout:S.createDashboardPayout,getDashboardPayouts:S.getDashboardPayouts,syncDashboardBalances:w.syncDashboardBalances,getDashboardBalances:w.getDashboardBalances,changePayoutStatus:S.changePayoutStatus,createDashboardTransactions:T.createDashboardTransactions,getDashboardTransactions:T.getDashboardTransactions,getDashboardScheduledTransactions:T.getDashboardScheduledTransactions,getPayoutNotifications:E.getPayoutNotifications,markPayoutNotificationsRead:E.markPayoutNotificationsRead,dismissPayoutNotification:E.dismissPayoutNotification};exports.API=A;
|
package/common/src/API/API.d.ts
CHANGED
|
@@ -1,29 +1,19 @@
|
|
|
1
1
|
import { getIdleRelay } from './relayCalls';
|
|
2
2
|
import { getTokenPreviousDayPrices, getTokenPrices } from './getTokenPrice';
|
|
3
|
-
import { getOdosPriceForToken } from './
|
|
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 { generateAumPoints, generateTradingPoints } from './generate-trading-points';
|
|
10
|
-
import { createBrotherhood, editBrotherhood, getBrotherhood, getBrotherhoodUsers, getCurrentUserBrotherhood, getCurrentUserBrotherhoodUsers, getPublicBrotherhoods, joinBrotherhood, leaveBrotherhood } from './brotherhoodCalls';
|
|
11
|
-
import { getBrotherhoodsLeaderboard, getUserCurrentLeaderboard } from './leaderboardCalls';
|
|
12
|
-
import { getCurrentUserAppliedReferralCode, getCurrentUserReferral, submitReferralCode } from './referralsCalls';
|
|
13
|
-
import { getAccessCodeBenefits, submitAccessCode } from './accessCodeCalls';
|
|
14
|
-
import { checkUsernameAvailability, connectRewardsUser, disconnectSocialNetwork, getNftMultiplier, getRewardsUser, getSwapStreak, getTasksProgress, updateRewardsUser } from './rewardsUserCalls';
|
|
15
|
-
import { getBrotherhoodAnalytics, getUserAnalytics } from './weeklyAnalyticCalls';
|
|
16
|
-
import { sendTelegramCallback } from './send-telegram-callback';
|
|
17
8
|
import { getProxyAccounts, updateProxyAccounts } from './proxyAccountsCalls';
|
|
18
9
|
import { monitor } from './callMonitor';
|
|
19
|
-
import { callRelayerSolanaTransactBatchAPI } from './callRelayer';
|
|
10
|
+
import { callRelayerSolanaSponsoredBuildAPI, callRelayerSolanaSponsoredSubmitAPI, callRelayerSolanaTransactBatchAPI } from './callRelayer';
|
|
20
11
|
import { seedlessBackup, seedlessCheckPassword, seedlessInit, seedlessSalt, seedlessStatus } from './seedless-calls';
|
|
21
|
-
import {
|
|
22
|
-
import { addTemporaryWalletNonce, getTemporaryWalletNonces, removeTemporaryWalletNonce } from './temporaryWalletCalls';
|
|
12
|
+
import { addTemporaryWalletNonce, getTemporaryWalletNonces } from './temporaryWalletCalls';
|
|
23
13
|
import { encodeMoonPayBuyUrl, generateMoonPayQuote } from './onrampCalls';
|
|
24
14
|
import { getTokenPriceChartData } from './get-token-price-chart-data';
|
|
25
15
|
import { getPrivateTransactionRatio, savePrivacyScoreAndGetPrivacyRank } from './privacy-score-calls';
|
|
26
|
-
import {
|
|
16
|
+
import { allocateRecipientInfosEnclaveCall } from './privateSendRecipientInfoCalls';
|
|
27
17
|
import { reservePrivateSendNonceRange, syncPrivateSendNonce } from './privateSendNonceCalls';
|
|
28
18
|
import { getSnapshotServerEvents } from './snapshot-event-calls';
|
|
29
19
|
import { sendPrivateSendEmailNotifications } from './privateSendEmailNotificationsCalls';
|
|
@@ -31,9 +21,13 @@ import { checkTronSubsidyEligibility, recordTronSubsidyUsage } from './tronSubsi
|
|
|
31
21
|
import { deleteDashboardAccount, getDashboardAccount, updateDashboardAccount } from './dashboardAccountCalls';
|
|
32
22
|
import { addDashboardContact, deleteDashboardContact, getDashboardContacts, updateDashboardContact } from './dashboardContactCalls';
|
|
33
23
|
import { changePayoutStatus, createDashboardPayout, getDashboardPayouts } from './dashboardPayoutCalls';
|
|
34
|
-
import { editMember, removeMember, sendDashboardInvitationEmail, updateUserProfile } from './dashboardAccountMemberCalls';
|
|
24
|
+
import { deleteInviteRequest, editMember, removeMember, resolveInviteRequest, sendDashboardInvitationEmail, updateUserProfile } from './dashboardAccountMemberCalls';
|
|
35
25
|
import { getDashboardBalances, syncDashboardBalances } from './dashboardBalanceCalls';
|
|
36
|
-
import { createDashboardTransactions, getDashboardTransactions } from './dashboardTransactionCalls';
|
|
26
|
+
import { createDashboardTransactions, getDashboardScheduledTransactions, getDashboardTransactions } from './dashboardTransactionCalls';
|
|
27
|
+
import { dismissPayoutNotification, getPayoutNotifications, markPayoutNotificationsRead } from './payoutNotificationStateCalls';
|
|
28
|
+
import { getBalancesEnclaveCall, getUtxosEnclaveCall, storeClaimableKeyEnclaveCall } from './enclaveUtxoCalls';
|
|
29
|
+
import { checkUsernameAvailability, getRewardsUser, updateRewardsUser } from './rewardsUserCalls';
|
|
30
|
+
import { getUserAnalytics } from './weeklyAnalyticCalls';
|
|
37
31
|
export type IAPI = {
|
|
38
32
|
getTokenPrices: typeof getTokenPrices;
|
|
39
33
|
getOdosPriceForToken: typeof getOdosPriceForToken;
|
|
@@ -44,56 +38,31 @@ export type IAPI = {
|
|
|
44
38
|
simulateBatchTx: typeof simulateBatchTx;
|
|
45
39
|
tokensInfoCall: typeof tokensInfoCall;
|
|
46
40
|
getTokenData: typeof getTokenData;
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
getBalancesEnclaveCall: typeof getBalancesEnclaveCall;
|
|
42
|
+
storeClaimableKeyEnclaveCall: typeof storeClaimableKeyEnclaveCall;
|
|
49
43
|
getUtxosEnclaveCall: typeof getUtxosEnclaveCall;
|
|
50
|
-
generateTradingPoints: typeof generateTradingPoints;
|
|
51
|
-
getBrotherhoodUsers: typeof getBrotherhoodUsers;
|
|
52
|
-
getCurrentUserBrotherhoodUsers: typeof getCurrentUserBrotherhoodUsers;
|
|
53
|
-
editBrotherhood: typeof editBrotherhood;
|
|
54
|
-
createBrotherhood: typeof createBrotherhood;
|
|
55
|
-
getCurrentUserBrotherhood: typeof getCurrentUserBrotherhood;
|
|
56
|
-
getPublicBrotherhoods: typeof getPublicBrotherhoods;
|
|
57
|
-
leaveBrotherhood: typeof leaveBrotherhood;
|
|
58
|
-
joinBrotherhood: typeof joinBrotherhood;
|
|
59
44
|
getUserAnalytics: typeof getUserAnalytics;
|
|
60
|
-
connectRewardsUser: typeof connectRewardsUser;
|
|
61
|
-
getBrotherhood: typeof getBrotherhood;
|
|
62
45
|
updateRewardsUser: typeof updateRewardsUser;
|
|
63
46
|
getRewardsUser: typeof getRewardsUser;
|
|
64
47
|
checkUsernameAvailability: typeof checkUsernameAvailability;
|
|
65
|
-
getUserCurrentLeaderboard: typeof getUserCurrentLeaderboard;
|
|
66
|
-
getBrotherhoodsLeaderboard: typeof getBrotherhoodsLeaderboard;
|
|
67
|
-
getCurrentUserReferral: typeof getCurrentUserReferral;
|
|
68
|
-
submitReferralCode: typeof submitReferralCode;
|
|
69
|
-
getCurrentUserAppliedReferralCode: typeof getCurrentUserAppliedReferralCode;
|
|
70
|
-
submitAccessCode: typeof submitAccessCode;
|
|
71
|
-
getAccessCodeBenefits: typeof getAccessCodeBenefits;
|
|
72
|
-
sendTelegramCallback: typeof sendTelegramCallback;
|
|
73
|
-
generateAumPoints: typeof generateAumPoints;
|
|
74
|
-
getSwapStreak: typeof getSwapStreak;
|
|
75
|
-
getBrotherhoodAnalytics: typeof getBrotherhoodAnalytics;
|
|
76
|
-
getTasksProgress: typeof getTasksProgress;
|
|
77
|
-
disconnectSocialNetwork: typeof disconnectSocialNetwork;
|
|
78
48
|
getProxyAccounts: typeof getProxyAccounts;
|
|
79
49
|
updateProxyAccounts: typeof updateProxyAccounts;
|
|
80
|
-
getNftMultiplier: typeof getNftMultiplier;
|
|
81
50
|
monitor: typeof monitor;
|
|
82
51
|
callRelayerSolanaTransactBatchAPI: typeof callRelayerSolanaTransactBatchAPI;
|
|
52
|
+
callRelayerSolanaSponsoredBuildAPI: typeof callRelayerSolanaSponsoredBuildAPI;
|
|
53
|
+
callRelayerSolanaSponsoredSubmitAPI: typeof callRelayerSolanaSponsoredSubmitAPI;
|
|
83
54
|
seedlessInit: typeof seedlessInit;
|
|
84
55
|
seedlessBackup: typeof seedlessBackup;
|
|
85
56
|
seedlessCheckPassword: typeof seedlessCheckPassword;
|
|
86
57
|
seedlessStatus: typeof seedlessStatus;
|
|
87
58
|
seedlessSalt: typeof seedlessSalt;
|
|
88
|
-
getScheduledTransactions: typeof getScheduledTransactions;
|
|
89
59
|
getTemporaryWalletNonces: typeof getTemporaryWalletNonces;
|
|
90
60
|
addTemporaryWalletNonce: typeof addTemporaryWalletNonce;
|
|
91
|
-
removeTemporaryWalletNonce: typeof removeTemporaryWalletNonce;
|
|
92
61
|
encodeMoonPayBuyUrl: typeof encodeMoonPayBuyUrl;
|
|
93
62
|
generateMoonPayQuote: typeof generateMoonPayQuote;
|
|
94
63
|
getPrivateTransactionRatio: typeof getPrivateTransactionRatio;
|
|
95
64
|
savePrivacyScoreAndGetPrivacyRank: typeof savePrivacyScoreAndGetPrivacyRank;
|
|
96
|
-
|
|
65
|
+
allocateRecipientInfosEnclaveCall: typeof allocateRecipientInfosEnclaveCall;
|
|
97
66
|
syncPrivateSendNonce: typeof syncPrivateSendNonce;
|
|
98
67
|
reservePrivateSendNonceRange: typeof reservePrivateSendNonceRange;
|
|
99
68
|
getSnapshotServerEvents: typeof getSnapshotServerEvents;
|
|
@@ -109,6 +78,8 @@ export type IAPI = {
|
|
|
109
78
|
updateDashboardContact: typeof updateDashboardContact;
|
|
110
79
|
getDashboardContacts: typeof getDashboardContacts;
|
|
111
80
|
sendDashboardInvitationEmail: typeof sendDashboardInvitationEmail;
|
|
81
|
+
resolveInviteRequest: typeof resolveInviteRequest;
|
|
82
|
+
deleteInviteRequest: typeof deleteInviteRequest;
|
|
112
83
|
removeMember: typeof removeMember;
|
|
113
84
|
editMember: typeof editMember;
|
|
114
85
|
createDashboardPayout: typeof createDashboardPayout;
|
|
@@ -118,5 +89,9 @@ export type IAPI = {
|
|
|
118
89
|
changePayoutStatus: typeof changePayoutStatus;
|
|
119
90
|
createDashboardTransactions: typeof createDashboardTransactions;
|
|
120
91
|
getDashboardTransactions: typeof getDashboardTransactions;
|
|
92
|
+
getDashboardScheduledTransactions: typeof getDashboardScheduledTransactions;
|
|
93
|
+
getPayoutNotifications: typeof getPayoutNotifications;
|
|
94
|
+
markPayoutNotificationsRead: typeof markPayoutNotificationsRead;
|
|
95
|
+
dismissPayoutNotification: typeof dismissPayoutNotification;
|
|
121
96
|
};
|
|
122
97
|
export declare const API: IAPI;
|
package/common/src/API/API.mjs
CHANGED
|
@@ -1,124 +1,99 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { deleteDashboardAccount as de, getDashboardAccount as fe, updateDashboardAccount as pe } from "./dashboardAccountCalls.mjs";
|
|
32
|
-
import { addDashboardContact as me, deleteDashboardContact as he, getDashboardContacts as ge, updateDashboardContact as _e } from "./dashboardContactCalls.mjs";
|
|
33
|
-
import { changePayoutStatus as ve, createDashboardPayout as ye, getDashboardPayouts as be } from "./dashboardPayoutCalls.mjs";
|
|
34
|
-
import { editMember as xe, removeMember as Se, sendDashboardInvitationEmail as Ce, updateUserProfile as we } from "./dashboardAccountMemberCalls.mjs";
|
|
35
|
-
import { getDashboardBalances as Te, syncDashboardBalances as Ee } from "./dashboardBalanceCalls.mjs";
|
|
36
|
-
import { createDashboardTransactions as De, getDashboardTransactions as Oe } from "./dashboardTransactionCalls.mjs";
|
|
1
|
+
import { getIdleRelay as e } from "./relayCalls.mjs";
|
|
2
|
+
import { getTokenPreviousDayPrices as t, getTokenPrices as n } from "./getTokenPrice.mjs";
|
|
3
|
+
import { getOdosPriceForToken as r } from "./getOdosPriceForToken.mjs";
|
|
4
|
+
import { simulateTransaction as i } from "./simulate-transaction.mjs";
|
|
5
|
+
import { simulateBatchTx as a } from "./simulate-batch-tx.mjs";
|
|
6
|
+
import { tokensInfoCall as o } from "./token-calls.mjs";
|
|
7
|
+
import { getTokenData as s } from "./get-token-data.mjs";
|
|
8
|
+
import { getProxyAccounts as c, updateProxyAccounts as l } from "./proxyAccountsCalls.mjs";
|
|
9
|
+
import { monitor as u } from "./callMonitor.mjs";
|
|
10
|
+
import { callRelayerSolanaSponsoredBuildAPI as d, callRelayerSolanaSponsoredSubmitAPI as f, callRelayerSolanaTransactBatchAPI as p } from "./callRelayer.mjs";
|
|
11
|
+
import { seedlessBackup as m, seedlessCheckPassword as h, seedlessInit as g, seedlessSalt as _, seedlessStatus as v } from "./seedless-calls.mjs";
|
|
12
|
+
import { addTemporaryWalletNonce as y, getTemporaryWalletNonces as b } from "./temporaryWalletCalls.mjs";
|
|
13
|
+
import { encodeMoonPayBuyUrl as x, generateMoonPayQuote as S } from "./onrampCalls.mjs";
|
|
14
|
+
import { getTokenPriceChartData as C } from "./get-token-price-chart-data.mjs";
|
|
15
|
+
import { getPrivateTransactionRatio as w, savePrivacyScoreAndGetPrivacyRank as T } from "./privacy-score-calls.mjs";
|
|
16
|
+
import { allocateRecipientInfosEnclaveCall as E } from "./privateSendRecipientInfoCalls.mjs";
|
|
17
|
+
import { reservePrivateSendNonceRange as D, syncPrivateSendNonce as O } from "./privateSendNonceCalls.mjs";
|
|
18
|
+
import { getSnapshotServerEvents as k } from "./snapshot-event-calls.mjs";
|
|
19
|
+
import { sendPrivateSendEmailNotifications as A } from "./privateSendEmailNotificationsCalls.mjs";
|
|
20
|
+
import { checkTronSubsidyEligibility as j, recordTronSubsidyUsage as M } from "./tronSubsidyCalls.mjs";
|
|
21
|
+
import { deleteDashboardAccount as N, getDashboardAccount as P, updateDashboardAccount as F } from "./dashboardAccountCalls.mjs";
|
|
22
|
+
import { addDashboardContact as I, deleteDashboardContact as L, getDashboardContacts as R, updateDashboardContact as z } from "./dashboardContactCalls.mjs";
|
|
23
|
+
import { changePayoutStatus as B, createDashboardPayout as V, getDashboardPayouts as H } from "./dashboardPayoutCalls.mjs";
|
|
24
|
+
import { deleteInviteRequest as U, editMember as W, removeMember as G, resolveInviteRequest as K, sendDashboardInvitationEmail as q, updateUserProfile as J } from "./dashboardAccountMemberCalls.mjs";
|
|
25
|
+
import { getDashboardBalances as Y, syncDashboardBalances as X } from "./dashboardBalanceCalls.mjs";
|
|
26
|
+
import { createDashboardTransactions as Z, getDashboardScheduledTransactions as Q, getDashboardTransactions as $ } from "./dashboardTransactionCalls.mjs";
|
|
27
|
+
import { dismissPayoutNotification as ee, getPayoutNotifications as te, markPayoutNotificationsRead as ne } from "./payoutNotificationStateCalls.mjs";
|
|
28
|
+
import { getBalancesEnclaveCall as re, getUtxosEnclaveCall as ie, storeClaimableKeyEnclaveCall as ae } from "./enclaveUtxoCalls.mjs";
|
|
29
|
+
import { checkUsernameAvailability as oe, getRewardsUser as se, updateRewardsUser as ce } from "./rewardsUserCalls.mjs";
|
|
30
|
+
import { getUserAnalytics as le } from "./weeklyAnalyticCalls.mjs";
|
|
37
31
|
//#region libs/shared/common/src/API/API.ts
|
|
38
|
-
var
|
|
39
|
-
getTokenPrices:
|
|
40
|
-
getOdosPriceForToken:
|
|
41
|
-
getTokenPriceChartData:
|
|
42
|
-
getTokenPreviousDayPrices:
|
|
43
|
-
getIdleRelay:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
recordTronSubsidyUsage: ue,
|
|
104
|
-
getDashboardAccount: fe,
|
|
105
|
-
updateDashboardAccount: pe,
|
|
106
|
-
addDashboardContact: me,
|
|
107
|
-
deleteDashboardContact: he,
|
|
108
|
-
deleteDashboardAccount: de,
|
|
109
|
-
updateDashboardContact: _e,
|
|
110
|
-
getDashboardContacts: ge,
|
|
111
|
-
updateUserProfile: we,
|
|
112
|
-
sendDashboardInvitationEmail: Ce,
|
|
113
|
-
removeMember: Se,
|
|
114
|
-
editMember: xe,
|
|
115
|
-
createDashboardPayout: ye,
|
|
116
|
-
getDashboardPayouts: be,
|
|
117
|
-
syncDashboardBalances: Ee,
|
|
118
|
-
getDashboardBalances: Te,
|
|
119
|
-
changePayoutStatus: ve,
|
|
120
|
-
createDashboardTransactions: De,
|
|
121
|
-
getDashboardTransactions: Oe
|
|
32
|
+
var ue = {
|
|
33
|
+
getTokenPrices: n,
|
|
34
|
+
getOdosPriceForToken: r,
|
|
35
|
+
getTokenPriceChartData: C,
|
|
36
|
+
getTokenPreviousDayPrices: t,
|
|
37
|
+
getIdleRelay: e,
|
|
38
|
+
getUserAnalytics: le,
|
|
39
|
+
updateRewardsUser: ce,
|
|
40
|
+
getRewardsUser: se,
|
|
41
|
+
checkUsernameAvailability: oe,
|
|
42
|
+
simulateTransaction: i,
|
|
43
|
+
simulateBatchTx: a,
|
|
44
|
+
tokensInfoCall: o,
|
|
45
|
+
getTokenData: s,
|
|
46
|
+
getBalancesEnclaveCall: re,
|
|
47
|
+
storeClaimableKeyEnclaveCall: ae,
|
|
48
|
+
getUtxosEnclaveCall: ie,
|
|
49
|
+
getProxyAccounts: c,
|
|
50
|
+
updateProxyAccounts: l,
|
|
51
|
+
monitor: u,
|
|
52
|
+
callRelayerSolanaTransactBatchAPI: p,
|
|
53
|
+
callRelayerSolanaSponsoredBuildAPI: d,
|
|
54
|
+
callRelayerSolanaSponsoredSubmitAPI: f,
|
|
55
|
+
seedlessInit: g,
|
|
56
|
+
seedlessBackup: m,
|
|
57
|
+
seedlessCheckPassword: h,
|
|
58
|
+
seedlessStatus: v,
|
|
59
|
+
seedlessSalt: _,
|
|
60
|
+
getTemporaryWalletNonces: b,
|
|
61
|
+
addTemporaryWalletNonce: y,
|
|
62
|
+
encodeMoonPayBuyUrl: x,
|
|
63
|
+
generateMoonPayQuote: S,
|
|
64
|
+
getPrivateTransactionRatio: w,
|
|
65
|
+
savePrivacyScoreAndGetPrivacyRank: T,
|
|
66
|
+
allocateRecipientInfosEnclaveCall: E,
|
|
67
|
+
syncPrivateSendNonce: O,
|
|
68
|
+
reservePrivateSendNonceRange: D,
|
|
69
|
+
getSnapshotServerEvents: k,
|
|
70
|
+
sendPrivateSendEmailNotifications: A,
|
|
71
|
+
checkTronSubsidyEligibility: j,
|
|
72
|
+
recordTronSubsidyUsage: M,
|
|
73
|
+
getDashboardAccount: P,
|
|
74
|
+
updateDashboardAccount: F,
|
|
75
|
+
addDashboardContact: I,
|
|
76
|
+
deleteDashboardContact: L,
|
|
77
|
+
deleteDashboardAccount: N,
|
|
78
|
+
updateDashboardContact: z,
|
|
79
|
+
getDashboardContacts: R,
|
|
80
|
+
updateUserProfile: J,
|
|
81
|
+
sendDashboardInvitationEmail: q,
|
|
82
|
+
resolveInviteRequest: K,
|
|
83
|
+
deleteInviteRequest: U,
|
|
84
|
+
removeMember: G,
|
|
85
|
+
editMember: W,
|
|
86
|
+
createDashboardPayout: V,
|
|
87
|
+
getDashboardPayouts: H,
|
|
88
|
+
syncDashboardBalances: X,
|
|
89
|
+
getDashboardBalances: Y,
|
|
90
|
+
changePayoutStatus: B,
|
|
91
|
+
createDashboardTransactions: Z,
|
|
92
|
+
getDashboardTransactions: $,
|
|
93
|
+
getDashboardScheduledTransactions: Q,
|
|
94
|
+
getPayoutNotifications: te,
|
|
95
|
+
markPayoutNotificationsRead: ne,
|
|
96
|
+
dismissPayoutNotification: ee
|
|
122
97
|
};
|
|
123
98
|
//#endregion
|
|
124
|
-
export {
|
|
99
|
+
export { ue as API };
|
|
@@ -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`);var r=r=>n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.emitTxPublicData}`,{adminData:r});exports.emitTxPublicData=r;
|
|
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=r=>{if(r)return n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.emitTxPublicData}`,{adminData:r})};exports.emitTxPublicData=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdminDataType } from '../types/admin.types';
|
|
2
|
-
export declare const emitTxPublicData: (adminData: AdminDataType | undefined) => Promise<any
|
|
2
|
+
export declare const emitTxPublicData: (adminData: AdminDataType | undefined) => Promise<any> | undefined;
|
|
3
3
|
export declare const emitReferralTx: (payload: {
|
|
4
4
|
txHash: string;
|
|
5
5
|
ref: string;
|
|
@@ -3,6 +3,8 @@ import { RELAYER_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
5
|
//#region libs/shared/common/src/API/admin-calls.ts
|
|
6
|
-
var r = (r) =>
|
|
6
|
+
var r = (r) => {
|
|
7
|
+
if (r) return n.post(`${t}${e.emitTxPublicData}`, { adminData: r });
|
|
8
|
+
};
|
|
7
9
|
//#endregion
|
|
8
10
|
export { r as emitTxPublicData };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../constants/server.constants.cjs`),require(`./getServerURL.cjs`),require(`../data-structures/http/index.cjs`);
|
|
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=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.callLifiAPI}`,r);exports.callLifiAPI=r;
|
|
@@ -22,9 +22,13 @@ export interface LifiBridgeResponse {
|
|
|
22
22
|
};
|
|
23
23
|
estimate: {
|
|
24
24
|
tool: string;
|
|
25
|
+
approvalAddress?: string;
|
|
25
26
|
fromAmount: string;
|
|
26
27
|
toAmount: string;
|
|
27
28
|
toAmountMin: string;
|
|
29
|
+
fromAmountUSD: string;
|
|
30
|
+
toAmountUSD: string;
|
|
31
|
+
executionDuration: number;
|
|
28
32
|
};
|
|
29
33
|
}
|
|
30
34
|
export declare const callLifiAPI: (requestBody: LifiRequestData) => Promise<{
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import "../constants/server.constants.mjs";
|
|
2
|
-
import "./getServerURL.mjs";
|
|
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";
|
|
3
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
+
//#region libs/shared/common/src/API/callLifiAPI.ts
|
|
6
|
+
var r = async (r) => n.post(`${t}${e.ROUTES.callLifiAPI}`, r);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { r as callLifiAPI };
|
|
@@ -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`);var r=r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.callNearIntentsQuote}`,r);exports.getNearIntentsQuote=r;
|
|
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=r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.callNearIntentsQuote}`,r),i=()=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.callNearIntentsTokens}`);exports.getNearIntentsQuote=r,exports.getNearIntentsTokens=i;
|
|
@@ -3,6 +3,6 @@ import { 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
5
|
//#region libs/shared/common/src/API/callNearIntentsAPI.ts
|
|
6
|
-
var r = (r) => n.post(`${t}${e.ROUTES.callNearIntentsQuote}`, r);
|
|
6
|
+
var r = (r) => n.post(`${t}${e.ROUTES.callNearIntentsQuote}`, r), i = () => n.get(`${t}${e.ROUTES.callNearIntentsTokens}`);
|
|
7
7
|
//#endregion
|
|
8
|
-
export { r as getNearIntentsQuote };
|
|
8
|
+
export { r as getNearIntentsQuote, i as getNearIntentsTokens };
|