@hinkal/common 0.3.6 → 0.3.7
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 +1 -0
- package/common/src/API/API.cjs +1 -1
- package/common/src/API/API.d.ts +6 -5
- package/common/src/API/API.mjs +75 -74
- 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.d.ts +1 -0
- 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 +32 -1
- package/common/src/API/callRelayer.mjs +7 -1
- package/common/src/API/enclaveUtxoCalls.cjs +1 -1
- package/common/src/API/enclaveUtxoCalls.d.ts +16 -16
- package/common/src/API/enclaveUtxoCalls.mjs +3 -3
- 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.cjs +1 -0
- package/common/src/API/evm-token-assets.d.ts +8 -0
- package/common/src/API/evm-token-assets.mjs +20 -0
- package/common/src/API/index.cjs +1 -1
- package/common/src/API/index.d.ts +1 -0
- package/common/src/API/index.mjs +1 -0
- 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/solana-nft-assets.cjs +1 -0
- package/common/src/API/solana-nft-assets.d.ts +1 -0
- package/common/src/API/solana-nft-assets.mjs +11 -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 +0 -4
- package/common/src/API/temporaryWalletCalls.mjs +1 -5
- package/common/src/constants/balance.constants.d.ts +2 -0
- package/common/src/constants/bridging.constants.d.ts +1 -0
- package/common/src/constants/chains.constants.cjs +1 -1
- package/common/src/constants/chains.constants.d.ts +0 -3
- package/common/src/constants/chains.constants.mjs +33 -54
- package/common/src/constants/coingecko.constants.cjs +1 -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 -0
- package/common/src/constants/contracts.constants.mjs +19 -15
- package/common/src/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-arbMainnet.json.mjs +3 -2
- package/common/src/constants/deploy-data/deploy-data-arcTestnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-arcTestnet.json.mjs +3 -2
- package/common/src/constants/deploy-data/deploy-data-base.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-base.json.mjs +3 -2
- package/common/src/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +3 -2
- package/common/src/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-ethMainnet.json.mjs +3 -2
- package/common/src/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-optimism.json.mjs +7 -6
- package/common/src/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-polygon.json.mjs +3 -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 +3 -2
- 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 +18 -1
- 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/okx.constants.d.ts +1 -0
- package/common/src/constants/protocol.constants.cjs +2 -2
- package/common/src/constants/protocol.constants.d.ts +4 -1
- package/common/src/constants/protocol.constants.mjs +3 -8
- package/common/src/constants/server.constants.cjs +1 -1
- package/common/src/constants/server.constants.d.ts +7 -2
- package/common/src/constants/server.constants.mjs +8 -3
- package/common/src/constants/vite.constants.cjs +1 -1
- package/common/src/constants/vite.constants.mjs +5 -23
- 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 +4 -4
- package/common/src/data-structures/Hinkal/Hinkal.mjs +39 -39
- package/common/src/data-structures/Hinkal/IHinkal.d.ts +4 -4
- package/common/src/data-structures/Hinkal/hinkalActionReceive.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalActionReceive.mjs +11 -9
- package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.d.ts +2 -1
- package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.mjs +81 -90
- 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 +3 -5
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.mjs +100 -104
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +86 -93
- 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 +51 -39
- package/common/src/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalPrivateWallet.mjs +2 -2
- package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.mjs +15 -13
- 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 +3 -5
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.mjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +2 -2
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +88 -121
- 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 +77 -58
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +1 -3
- package/common/src/data-structures/Hinkal/hinkalSolanaSponsoredProxySend.d.ts +5 -0
- 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 +31 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaTransact.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaTransact.mjs +44 -42
- 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 +29 -24
- 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 +27 -24
- package/common/src/data-structures/Hinkal/hinkalTransact.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalTransact.mjs +73 -56
- 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 +21 -18
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +19 -18
- package/common/src/data-structures/Hinkal/index.d.ts +2 -0
- package/common/src/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
- package/common/src/data-structures/Hinkal/resetMerkleTrees.mjs +2 -2
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +1 -1
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.d.ts +0 -1
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +55 -119
- package/common/src/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
- package/common/src/data-structures/crypto-keys/decodeUTXO.mjs +11 -61
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -1
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +2 -0
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.mjs +41 -27
- package/common/src/data-structures/merkle-tree/MerkleTree.cjs +1 -1
- package/common/src/data-structures/merkle-tree/MerkleTree.d.ts +1 -0
- package/common/src/data-structures/merkle-tree/MerkleTree.mjs +3 -0
- package/common/src/error-handling/get-error.message.cjs +1 -1
- package/common/src/error-handling/get-error.message.mjs +1 -4
- package/common/src/functions/index.cjs +1 -1
- package/common/src/functions/index.mjs +9 -6
- package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.cjs +1 -1
- package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.mjs +2 -3
- package/common/src/functions/pre-transaction/index.cjs +1 -1
- package/common/src/functions/pre-transaction/index.d.ts +1 -0
- package/common/src/functions/pre-transaction/index.mjs +1 -1
- 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/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/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/private-wallet/emporium.helpers.cjs +1 -1
- package/common/src/functions/private-wallet/emporium.helpers.d.ts +9 -2
- package/common/src/functions/private-wallet/emporium.helpers.mjs +93 -74
- package/common/src/functions/snarkjs/common.snarkjs.cjs +1 -1
- package/common/src/functions/snarkjs/common.snarkjs.d.ts +1 -0
- package/common/src/functions/snarkjs/common.snarkjs.mjs +36 -32
- package/common/src/functions/snarkjs/constant.cjs +1 -1
- package/common/src/functions/snarkjs/constant.d.ts +48 -0
- package/common/src/functions/snarkjs/constant.mjs +48 -0
- 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 +75 -71
- package/common/src/functions/snarkjs/constructSolanaZkProof.cjs +1 -1
- package/common/src/functions/snarkjs/constructSolanaZkProof.d.ts +1 -1
- package/common/src/functions/snarkjs/constructSolanaZkProof.mjs +27 -27
- package/common/src/functions/snarkjs/constructTxEnclave.cjs +1 -1
- package/common/src/functions/snarkjs/constructTxEnclave.mjs +8 -3
- package/common/src/functions/snarkjs/fetchOnChainRootHashes.cjs +1 -1
- package/common/src/functions/snarkjs/fetchOnChainRootHashes.mjs +10 -21
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.cjs +1 -1
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.d.ts +2 -2
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +3 -3
- package/common/src/functions/snarkjs/signedMessageHash.cjs +1 -1
- package/common/src/functions/snarkjs/signedMessageHash.d.ts +4 -0
- package/common/src/functions/snarkjs/signedMessageHash.mjs +27 -18
- package/common/src/functions/utils/addresses.cjs +1 -1
- package/common/src/functions/utils/addresses.mjs +19 -12
- 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 +15 -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.d.ts +2 -3
- 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 +42 -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 +1 -6
- package/common/src/functions/utils/enclave-utxo-storage.cjs +1 -1
- package/common/src/functions/utils/enclave-utxo-storage.d.ts +4 -8
- package/common/src/functions/utils/enclave-utxo-storage.mjs +13 -2
- package/common/src/functions/utils/fees.utils.cjs +1 -1
- package/common/src/functions/utils/fees.utils.d.ts +2 -0
- package/common/src/functions/utils/fees.utils.mjs +15 -6
- 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 +5 -51
- package/common/src/functions/utils/getUtxosFromReceiptSolana.cjs +1 -1
- package/common/src/functions/utils/getUtxosFromReceiptSolana.mjs +7 -23
- package/common/src/functions/utils/index.cjs +1 -1
- package/common/src/functions/utils/index.d.ts +6 -0
- package/common/src/functions/utils/index.mjs +10 -4
- 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/publicBalance.utils.cjs +1 -1
- package/common/src/functions/utils/publicBalance.utils.d.ts +0 -1
- package/common/src/functions/utils/publicBalance.utils.mjs +35 -22
- 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/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 -1
- package/common/src/functions/utils/temp-wallet.utils.d.ts +5 -4
- package/common/src/functions/utils/temp-wallet.utils.mjs +35 -14
- 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 +2 -5
- package/common/src/functions/utils/tron.utils.cjs +1 -1
- package/common/src/functions/utils/tron.utils.d.ts +2 -2
- package/common/src/functions/utils/tron.utils.mjs +19 -18
- 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.mjs +1 -1
- package/common/src/functions/web3/events/getInputUtxosEnclave.cjs +1 -1
- package/common/src/functions/web3/events/getInputUtxosEnclave.mjs +15 -25
- package/common/src/functions/web3/functionCalls/submitProof.cjs +1 -1
- package/common/src/functions/web3/functionCalls/submitProof.mjs +6 -6
- package/common/src/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/common/src/functions/web3/functionCalls/transactCallRelayer.d.ts +2 -2
- package/common/src/functions/web3/functionCalls/transactCallRelayer.mjs +8 -6
- package/common/src/functions/web3/getContractMetadata.cjs +1 -1
- package/common/src/functions/web3/getContractMetadata.mjs +1 -1
- 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/index.cjs +1 -1
- package/common/src/functions/web3/index.d.ts +1 -1
- package/common/src/functions/web3/index.mjs +1 -1
- package/common/src/providers/SolanaProviderAdapter.cjs +1 -1
- package/common/src/providers/SolanaProviderAdapter.mjs +1 -2
- package/common/src/providers/WagmiProviderAdapter.cjs +1 -1
- package/common/src/providers/WagmiProviderAdapter.mjs +35 -38
- package/common/src/types/bridging-tx.types.d.ts +1 -4
- package/common/src/types/cache.types.cjs +1 -1
- package/common/src/types/cache.types.d.ts +0 -1
- package/common/src/types/cache.types.mjs +1 -1
- package/common/src/types/ethereum-network.types.cjs +1 -1
- package/common/src/types/ethereum-network.types.d.ts +9 -7
- package/common/src/types/ethereum-network.types.mjs +1 -1
- package/common/src/types/external-action.types.cjs +1 -1
- package/common/src/types/external-action.types.d.ts +1 -0
- package/common/src/types/external-action.types.mjs +1 -1
- package/common/src/types/index.cjs +1 -1
- package/common/src/types/index.d.ts +1 -1
- package/common/src/types/index.mjs +1 -1
- package/common/src/types/pay-activities.types.d.ts +3 -1
- package/common/src/types/remote-tx-build.types.d.ts +23 -0
- package/common/src/types/scheduled-transactions.types.d.ts +4 -12
- package/common/src/types/solana.types.cjs +1 -0
- package/common/src/types/solana.types.d.ts +5 -0
- package/common/src/types/solana.types.mjs +6 -0
- package/common/src/types/temp-wallet.types.d.ts +9 -0
- package/common/src/types/token.types.d.ts +1 -0
- package/common/src/webworker/logError-RKYfeI6h.js +2 -0
- package/common/src/webworker/package.json +20 -20
- 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/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 +28 -1
- package/common/src/webworker/viteWorkerURL.constant.mjs +27 -13
- package/common/src/webworker/workerProxy-COB7g4Qc.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/package.json +20 -20
- package/services/Hinkal.cjs +1 -1
- package/services/Hinkal.d.ts +2 -2
- package/services/Hinkal.mjs +3 -3
- package/types/IHinkal.d.ts +2 -2
- package/assets/snarkjsWorkerLauncher-SrStwJvX.js +0 -1
- package/assets/snarkjsWorkerLogic-DtIjisbE.js +0 -132
- package/assets/utxoWorkerLauncher-CIBeBAML.js +0 -1
- package/assets/utxoWorkerLogic-C8R4GSaf.js +0 -199
- package/assets/zkProofWorkerLauncher-DfwteloJ.js +0 -1
- package/assets/zkProofWorkerLogic-CY9y6rOV.js +0 -199
- 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/data-structures/Hinkal/hinkalTronDepositToSelf.cjs +0 -1
- package/common/src/data-structures/Hinkal/hinkalTronDepositToSelf.d.ts +0 -8
- package/common/src/data-structures/Hinkal/hinkalTronDepositToSelf.mjs +0 -30
- package/common/src/data-structures/Hinkal/prepareTronDepositToSelf.cjs +0 -1
- package/common/src/data-structures/Hinkal/prepareTronDepositToSelf.mjs +0 -31
- package/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.cjs +0 -1
- package/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.mjs +0 -29
- package/common/src/functions/utils/enum.utils.cjs +0 -1
- package/common/src/functions/utils/enum.utils.mjs +0 -12
- 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/types/scheduled-transactions.types.cjs +0 -1
- package/common/src/types/scheduled-transactions.types.mjs +0 -6
- package/common/src/webworker/logError-Dex6ch32.js +0 -2
- package/common/src/webworker/workerProxy-BuJUMCQ4.js +0 -1
package/README.md
CHANGED
|
@@ -362,6 +362,7 @@ Possible values for `ScheduledTransactionStatus` are:
|
|
|
362
362
|
- `sent_on_chain` — the withdrawal was submitted on-chain and `txHash` is available
|
|
363
363
|
- `completed` — the withdrawal was confirmed on-chain
|
|
364
364
|
- `failed` — the withdrawal transaction failed
|
|
365
|
+
- `deposit_failed` — the deposit transaction did not confirm; the withdrawal was not attempted
|
|
365
366
|
|
|
366
367
|
### Swapping tokens from the shielded balance
|
|
367
368
|
|
package/common/src/API/API.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./scheduled-transactions-calls.cjs`),t=require(`./relayCalls.cjs`),n=require(`./getTokenPrice.cjs`),r=require(`./getOdosPriceForToken.cjs`),i=require(`./simulate-transaction.cjs`),a=require(`./simulate-batch-tx.cjs`),o=require(`./token-calls.cjs`),s=require(`./get-token-data.cjs`),c=require(`./proxyAccountsCalls.cjs`),l=require(`./callMonitor.cjs`),u=require(`./callRelayer.cjs`),d=require(`./seedless-calls.cjs`),f=require(`./temporaryWalletCalls.cjs`),p=require(`./onrampCalls.cjs`),m=require(`./get-token-price-chart-data.cjs`),h=require(`./privacy-score-calls.cjs`),g=require(`./privateSendRecipientInfoCalls.cjs`),_=require(`./privateSendNonceCalls.cjs`),v=require(`./snapshot-event-calls.cjs`),y=require(`./privateSendEmailNotificationsCalls.cjs`),b=require(`./tronSubsidyCalls.cjs`),x=require(`./dashboardAccountCalls.cjs`),S=require(`./dashboardContactCalls.cjs`),C=require(`./dashboardPayoutCalls.cjs`),w=require(`./dashboardAccountMemberCalls.cjs`),T=require(`./dashboardBalanceCalls.cjs`),E=require(`./dashboardTransactionCalls.cjs`),D=require(`./payoutNotificationStateCalls.cjs`),O=require(`./enclaveUtxoCalls.cjs`),k=require(`./rewardsUserCalls.cjs`),A=require(`./weeklyAnalyticCalls.cjs`);var j={getTokenPrices:n.getTokenPrices,getOdosPriceForToken:r.getOdosPriceForToken,getTokenPriceChartData:m.getTokenPriceChartData,getTokenPreviousDayPrices:n.getTokenPreviousDayPrices,getIdleRelay:t.getIdleRelay,getUserAnalytics:A.getUserAnalytics,updateRewardsUser:k.updateRewardsUser,getRewardsUser:k.getRewardsUser,checkUsernameAvailability:k.checkUsernameAvailability,simulateTransaction:i.simulateTransaction,simulateBatchTx:a.simulateBatchTx,tokensInfoCall:o.tokensInfoCall,getTokenData:s.getTokenData,getBalancesEnclaveCall:O.getBalancesEnclaveCall,
|
|
1
|
+
const e=require(`./scheduled-transactions-calls.cjs`),t=require(`./relayCalls.cjs`),n=require(`./getTokenPrice.cjs`),r=require(`./getOdosPriceForToken.cjs`),i=require(`./simulate-transaction.cjs`),a=require(`./simulate-batch-tx.cjs`),o=require(`./token-calls.cjs`),s=require(`./get-token-data.cjs`),c=require(`./proxyAccountsCalls.cjs`),l=require(`./callMonitor.cjs`),u=require(`./callRelayer.cjs`),d=require(`./seedless-calls.cjs`),f=require(`./temporaryWalletCalls.cjs`),p=require(`./onrampCalls.cjs`),m=require(`./get-token-price-chart-data.cjs`),h=require(`./privacy-score-calls.cjs`),g=require(`./privateSendRecipientInfoCalls.cjs`),_=require(`./privateSendNonceCalls.cjs`),v=require(`./snapshot-event-calls.cjs`),y=require(`./privateSendEmailNotificationsCalls.cjs`),b=require(`./tronSubsidyCalls.cjs`),x=require(`./dashboardAccountCalls.cjs`),S=require(`./dashboardContactCalls.cjs`),C=require(`./dashboardPayoutCalls.cjs`),w=require(`./dashboardAccountMemberCalls.cjs`),T=require(`./dashboardBalanceCalls.cjs`),E=require(`./dashboardTransactionCalls.cjs`),D=require(`./payoutNotificationStateCalls.cjs`),O=require(`./enclaveUtxoCalls.cjs`),k=require(`./rewardsUserCalls.cjs`),A=require(`./weeklyAnalyticCalls.cjs`);var j={getTokenPrices:n.getTokenPrices,getOdosPriceForToken:r.getOdosPriceForToken,getTokenPriceChartData:m.getTokenPriceChartData,getTokenPreviousDayPrices:n.getTokenPreviousDayPrices,getIdleRelay:t.getIdleRelay,getUserAnalytics:A.getUserAnalytics,updateRewardsUser:k.updateRewardsUser,getRewardsUser:k.getRewardsUser,checkUsernameAvailability:k.checkUsernameAvailability,simulateTransaction:i.simulateTransaction,simulateBatchTx:a.simulateBatchTx,tokensInfoCall:o.tokensInfoCall,getTokenData:s.getTokenData,getBalancesEnclaveCall:O.getBalancesEnclaveCall,storeClaimableKeyEnclaveCall:O.storeClaimableKeyEnclaveCall,getUtxosEnclaveCall:O.getUtxosEnclaveCall,getProxyAccounts:c.getProxyAccounts,updateProxyAccounts:c.updateProxyAccounts,monitor:l.monitor,callRelayerSolanaTransactBatchAPI:u.callRelayerSolanaTransactBatchAPI,callRelayerSolanaSponsoredBuildAPI:u.callRelayerSolanaSponsoredBuildAPI,callRelayerSolanaSponsoredSubmitAPI:u.callRelayerSolanaSponsoredSubmitAPI,seedlessInit:d.seedlessInit,seedlessBackup:d.seedlessBackup,seedlessCheckPassword:d.seedlessCheckPassword,seedlessStatus:d.seedlessStatus,seedlessSalt:d.seedlessSalt,getScheduledTransactions:e.getScheduledTransactions,getTemporaryWalletNonces:f.getTemporaryWalletNonces,addTemporaryWalletNonce:f.addTemporaryWalletNonce,encodeMoonPayBuyUrl:p.encodeMoonPayBuyUrl,generateMoonPayQuote:p.generateMoonPayQuote,getPrivateTransactionRatio:h.getPrivateTransactionRatio,savePrivacyScoreAndGetPrivacyRank:h.savePrivacyScoreAndGetPrivacyRank,allocatePrivateSendRecipientInfos:g.allocatePrivateSendRecipientInfos,syncPrivateSendNonce:_.syncPrivateSendNonce,reservePrivateSendNonceRange:_.reservePrivateSendNonceRange,getSnapshotServerEvents:v.getSnapshotServerEvents,sendPrivateSendEmailNotifications:y.sendPrivateSendEmailNotifications,checkTronSubsidyEligibility:b.checkTronSubsidyEligibility,recordTronSubsidyUsage:b.recordTronSubsidyUsage,getDashboardAccount:x.getDashboardAccount,updateDashboardAccount:x.updateDashboardAccount,addDashboardContact:S.addDashboardContact,deleteDashboardContact:S.deleteDashboardContact,deleteDashboardAccount:x.deleteDashboardAccount,updateDashboardContact:S.updateDashboardContact,getDashboardContacts:S.getDashboardContacts,updateUserProfile:w.updateUserProfile,sendDashboardInvitationEmail:w.sendDashboardInvitationEmail,resolveInviteRequest:w.resolveInviteRequest,deleteInviteRequest:w.deleteInviteRequest,removeMember:w.removeMember,editMember:w.editMember,createDashboardPayout:C.createDashboardPayout,getDashboardPayouts:C.getDashboardPayouts,syncDashboardBalances:T.syncDashboardBalances,getDashboardBalances:T.getDashboardBalances,changePayoutStatus:C.changePayoutStatus,createDashboardTransactions:E.createDashboardTransactions,getDashboardTransactions:E.getDashboardTransactions,getPayoutNotifications:D.getPayoutNotifications,markPayoutNotificationsRead:D.markPayoutNotificationsRead,dismissPayoutNotification:D.dismissPayoutNotification};exports.API=j;
|
package/common/src/API/API.d.ts
CHANGED
|
@@ -7,10 +7,10 @@ import { tokensInfoCall } from './token-calls';
|
|
|
7
7
|
import { getTokenData } from './get-token-data';
|
|
8
8
|
import { getProxyAccounts, updateProxyAccounts } from './proxyAccountsCalls';
|
|
9
9
|
import { monitor } from './callMonitor';
|
|
10
|
-
import { callRelayerSolanaTransactBatchAPI } from './callRelayer';
|
|
10
|
+
import { callRelayerSolanaSponsoredBuildAPI, callRelayerSolanaSponsoredSubmitAPI, callRelayerSolanaTransactBatchAPI } from './callRelayer';
|
|
11
11
|
import { seedlessBackup, seedlessCheckPassword, seedlessInit, seedlessSalt, seedlessStatus } from './seedless-calls';
|
|
12
12
|
import { getScheduledTransactions } from './scheduled-transactions-calls';
|
|
13
|
-
import { addTemporaryWalletNonce, getTemporaryWalletNonces
|
|
13
|
+
import { addTemporaryWalletNonce, getTemporaryWalletNonces } from './temporaryWalletCalls';
|
|
14
14
|
import { encodeMoonPayBuyUrl, generateMoonPayQuote } from './onrampCalls';
|
|
15
15
|
import { getTokenPriceChartData } from './get-token-price-chart-data';
|
|
16
16
|
import { getPrivateTransactionRatio, savePrivacyScoreAndGetPrivacyRank } from './privacy-score-calls';
|
|
@@ -26,7 +26,7 @@ import { deleteInviteRequest, editMember, removeMember, resolveInviteRequest, se
|
|
|
26
26
|
import { getDashboardBalances, syncDashboardBalances } from './dashboardBalanceCalls';
|
|
27
27
|
import { createDashboardTransactions, getDashboardTransactions } from './dashboardTransactionCalls';
|
|
28
28
|
import { dismissPayoutNotification, getPayoutNotifications, markPayoutNotificationsRead } from './payoutNotificationStateCalls';
|
|
29
|
-
import { getBalancesEnclaveCall, getUtxosEnclaveCall,
|
|
29
|
+
import { getBalancesEnclaveCall, getUtxosEnclaveCall, storeClaimableKeyEnclaveCall } from './enclaveUtxoCalls';
|
|
30
30
|
import { checkUsernameAvailability, getRewardsUser, updateRewardsUser } from './rewardsUserCalls';
|
|
31
31
|
import { getUserAnalytics } from './weeklyAnalyticCalls';
|
|
32
32
|
export type IAPI = {
|
|
@@ -40,7 +40,7 @@ export type IAPI = {
|
|
|
40
40
|
tokensInfoCall: typeof tokensInfoCall;
|
|
41
41
|
getTokenData: typeof getTokenData;
|
|
42
42
|
getBalancesEnclaveCall: typeof getBalancesEnclaveCall;
|
|
43
|
-
|
|
43
|
+
storeClaimableKeyEnclaveCall: typeof storeClaimableKeyEnclaveCall;
|
|
44
44
|
getUtxosEnclaveCall: typeof getUtxosEnclaveCall;
|
|
45
45
|
getUserAnalytics: typeof getUserAnalytics;
|
|
46
46
|
updateRewardsUser: typeof updateRewardsUser;
|
|
@@ -50,6 +50,8 @@ export type IAPI = {
|
|
|
50
50
|
updateProxyAccounts: typeof updateProxyAccounts;
|
|
51
51
|
monitor: typeof monitor;
|
|
52
52
|
callRelayerSolanaTransactBatchAPI: typeof callRelayerSolanaTransactBatchAPI;
|
|
53
|
+
callRelayerSolanaSponsoredBuildAPI: typeof callRelayerSolanaSponsoredBuildAPI;
|
|
54
|
+
callRelayerSolanaSponsoredSubmitAPI: typeof callRelayerSolanaSponsoredSubmitAPI;
|
|
53
55
|
seedlessInit: typeof seedlessInit;
|
|
54
56
|
seedlessBackup: typeof seedlessBackup;
|
|
55
57
|
seedlessCheckPassword: typeof seedlessCheckPassword;
|
|
@@ -58,7 +60,6 @@ export type IAPI = {
|
|
|
58
60
|
getScheduledTransactions: typeof getScheduledTransactions;
|
|
59
61
|
getTemporaryWalletNonces: typeof getTemporaryWalletNonces;
|
|
60
62
|
addTemporaryWalletNonce: typeof addTemporaryWalletNonce;
|
|
61
|
-
removeTemporaryWalletNonce: typeof removeTemporaryWalletNonce;
|
|
62
63
|
encodeMoonPayBuyUrl: typeof encodeMoonPayBuyUrl;
|
|
63
64
|
generateMoonPayQuote: typeof generateMoonPayQuote;
|
|
64
65
|
getPrivateTransactionRatio: typeof getPrivateTransactionRatio;
|
package/common/src/API/API.mjs
CHANGED
|
@@ -8,92 +8,93 @@ import { tokensInfoCall as s } from "./token-calls.mjs";
|
|
|
8
8
|
import { getTokenData as c } from "./get-token-data.mjs";
|
|
9
9
|
import { getProxyAccounts as l, updateProxyAccounts as u } from "./proxyAccountsCalls.mjs";
|
|
10
10
|
import { monitor as d } from "./callMonitor.mjs";
|
|
11
|
-
import {
|
|
12
|
-
import { seedlessBackup as
|
|
13
|
-
import { addTemporaryWalletNonce as
|
|
14
|
-
import { encodeMoonPayBuyUrl as
|
|
15
|
-
import { getTokenPriceChartData as
|
|
16
|
-
import { getPrivateTransactionRatio as
|
|
17
|
-
import { allocatePrivateSendRecipientInfos as
|
|
18
|
-
import { reservePrivateSendNonceRange as
|
|
19
|
-
import { getSnapshotServerEvents as
|
|
20
|
-
import { sendPrivateSendEmailNotifications as
|
|
21
|
-
import { checkTronSubsidyEligibility as
|
|
22
|
-
import { deleteDashboardAccount as
|
|
23
|
-
import { addDashboardContact as
|
|
24
|
-
import { changePayoutStatus as
|
|
25
|
-
import { deleteInviteRequest as
|
|
26
|
-
import { getDashboardBalances as
|
|
27
|
-
import { createDashboardTransactions as
|
|
28
|
-
import { dismissPayoutNotification as
|
|
29
|
-
import { getBalancesEnclaveCall as
|
|
30
|
-
import { checkUsernameAvailability as
|
|
31
|
-
import { getUserAnalytics as
|
|
11
|
+
import { callRelayerSolanaSponsoredBuildAPI as f, callRelayerSolanaSponsoredSubmitAPI as p, callRelayerSolanaTransactBatchAPI as m } from "./callRelayer.mjs";
|
|
12
|
+
import { seedlessBackup as h, seedlessCheckPassword as g, seedlessInit as _, seedlessSalt as v, seedlessStatus as y } from "./seedless-calls.mjs";
|
|
13
|
+
import { addTemporaryWalletNonce as b, getTemporaryWalletNonces as x } from "./temporaryWalletCalls.mjs";
|
|
14
|
+
import { encodeMoonPayBuyUrl as S, generateMoonPayQuote as C } from "./onrampCalls.mjs";
|
|
15
|
+
import { getTokenPriceChartData as w } from "./get-token-price-chart-data.mjs";
|
|
16
|
+
import { getPrivateTransactionRatio as T, savePrivacyScoreAndGetPrivacyRank as E } from "./privacy-score-calls.mjs";
|
|
17
|
+
import { allocatePrivateSendRecipientInfos as D } from "./privateSendRecipientInfoCalls.mjs";
|
|
18
|
+
import { reservePrivateSendNonceRange as O, syncPrivateSendNonce as k } from "./privateSendNonceCalls.mjs";
|
|
19
|
+
import { getSnapshotServerEvents as A } from "./snapshot-event-calls.mjs";
|
|
20
|
+
import { sendPrivateSendEmailNotifications as j } from "./privateSendEmailNotificationsCalls.mjs";
|
|
21
|
+
import { checkTronSubsidyEligibility as M, recordTronSubsidyUsage as N } from "./tronSubsidyCalls.mjs";
|
|
22
|
+
import { deleteDashboardAccount as P, getDashboardAccount as F, updateDashboardAccount as I } from "./dashboardAccountCalls.mjs";
|
|
23
|
+
import { addDashboardContact as L, deleteDashboardContact as R, getDashboardContacts as z, updateDashboardContact as B } from "./dashboardContactCalls.mjs";
|
|
24
|
+
import { changePayoutStatus as V, createDashboardPayout as H, getDashboardPayouts as U } from "./dashboardPayoutCalls.mjs";
|
|
25
|
+
import { deleteInviteRequest as W, editMember as G, removeMember as K, resolveInviteRequest as q, sendDashboardInvitationEmail as J, updateUserProfile as Y } from "./dashboardAccountMemberCalls.mjs";
|
|
26
|
+
import { getDashboardBalances as X, syncDashboardBalances as Z } from "./dashboardBalanceCalls.mjs";
|
|
27
|
+
import { createDashboardTransactions as Q, getDashboardTransactions as $ } from "./dashboardTransactionCalls.mjs";
|
|
28
|
+
import { dismissPayoutNotification as ee, getPayoutNotifications as te, markPayoutNotificationsRead as ne } from "./payoutNotificationStateCalls.mjs";
|
|
29
|
+
import { getBalancesEnclaveCall as re, getUtxosEnclaveCall as ie, storeClaimableKeyEnclaveCall as ae } from "./enclaveUtxoCalls.mjs";
|
|
30
|
+
import { checkUsernameAvailability as oe, getRewardsUser as se, updateRewardsUser as ce } from "./rewardsUserCalls.mjs";
|
|
31
|
+
import { getUserAnalytics as le } from "./weeklyAnalyticCalls.mjs";
|
|
32
32
|
//#region libs/shared/common/src/API/API.ts
|
|
33
|
-
var
|
|
33
|
+
var ue = {
|
|
34
34
|
getTokenPrices: r,
|
|
35
35
|
getOdosPriceForToken: i,
|
|
36
|
-
getTokenPriceChartData:
|
|
36
|
+
getTokenPriceChartData: w,
|
|
37
37
|
getTokenPreviousDayPrices: n,
|
|
38
38
|
getIdleRelay: t,
|
|
39
|
-
getUserAnalytics:
|
|
40
|
-
updateRewardsUser:
|
|
41
|
-
getRewardsUser:
|
|
42
|
-
checkUsernameAvailability:
|
|
39
|
+
getUserAnalytics: le,
|
|
40
|
+
updateRewardsUser: ce,
|
|
41
|
+
getRewardsUser: se,
|
|
42
|
+
checkUsernameAvailability: oe,
|
|
43
43
|
simulateTransaction: a,
|
|
44
44
|
simulateBatchTx: o,
|
|
45
45
|
tokensInfoCall: s,
|
|
46
46
|
getTokenData: c,
|
|
47
|
-
getBalancesEnclaveCall:
|
|
48
|
-
|
|
49
|
-
getUtxosEnclaveCall:
|
|
47
|
+
getBalancesEnclaveCall: re,
|
|
48
|
+
storeClaimableKeyEnclaveCall: ae,
|
|
49
|
+
getUtxosEnclaveCall: ie,
|
|
50
50
|
getProxyAccounts: l,
|
|
51
51
|
updateProxyAccounts: u,
|
|
52
52
|
monitor: d,
|
|
53
|
-
callRelayerSolanaTransactBatchAPI:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
callRelayerSolanaTransactBatchAPI: m,
|
|
54
|
+
callRelayerSolanaSponsoredBuildAPI: f,
|
|
55
|
+
callRelayerSolanaSponsoredSubmitAPI: p,
|
|
56
|
+
seedlessInit: _,
|
|
57
|
+
seedlessBackup: h,
|
|
58
|
+
seedlessCheckPassword: g,
|
|
59
|
+
seedlessStatus: y,
|
|
60
|
+
seedlessSalt: v,
|
|
59
61
|
getScheduledTransactions: e,
|
|
60
|
-
getTemporaryWalletNonces:
|
|
61
|
-
addTemporaryWalletNonce:
|
|
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
|
-
dismissPayoutNotification: $
|
|
62
|
+
getTemporaryWalletNonces: x,
|
|
63
|
+
addTemporaryWalletNonce: b,
|
|
64
|
+
encodeMoonPayBuyUrl: S,
|
|
65
|
+
generateMoonPayQuote: C,
|
|
66
|
+
getPrivateTransactionRatio: T,
|
|
67
|
+
savePrivacyScoreAndGetPrivacyRank: E,
|
|
68
|
+
allocatePrivateSendRecipientInfos: D,
|
|
69
|
+
syncPrivateSendNonce: k,
|
|
70
|
+
reservePrivateSendNonceRange: O,
|
|
71
|
+
getSnapshotServerEvents: A,
|
|
72
|
+
sendPrivateSendEmailNotifications: j,
|
|
73
|
+
checkTronSubsidyEligibility: M,
|
|
74
|
+
recordTronSubsidyUsage: N,
|
|
75
|
+
getDashboardAccount: F,
|
|
76
|
+
updateDashboardAccount: I,
|
|
77
|
+
addDashboardContact: L,
|
|
78
|
+
deleteDashboardContact: R,
|
|
79
|
+
deleteDashboardAccount: P,
|
|
80
|
+
updateDashboardContact: B,
|
|
81
|
+
getDashboardContacts: z,
|
|
82
|
+
updateUserProfile: Y,
|
|
83
|
+
sendDashboardInvitationEmail: J,
|
|
84
|
+
resolveInviteRequest: q,
|
|
85
|
+
deleteInviteRequest: W,
|
|
86
|
+
removeMember: K,
|
|
87
|
+
editMember: G,
|
|
88
|
+
createDashboardPayout: H,
|
|
89
|
+
getDashboardPayouts: U,
|
|
90
|
+
syncDashboardBalances: Z,
|
|
91
|
+
getDashboardBalances: X,
|
|
92
|
+
changePayoutStatus: V,
|
|
93
|
+
createDashboardTransactions: Q,
|
|
94
|
+
getDashboardTransactions: $,
|
|
95
|
+
getPayoutNotifications: te,
|
|
96
|
+
markPayoutNotificationsRead: ne,
|
|
97
|
+
dismissPayoutNotification: ee
|
|
97
98
|
};
|
|
98
99
|
//#endregion
|
|
99
|
-
export {
|
|
100
|
+
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
|
-
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 };
|
|
@@ -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`);async function r(r){return n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.TRANSACT}`,r)}async function i(r){return n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.TRANSACT_BATCH}`,r)}async function a(r){return n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.SOLANA_TRANSACT_BATCH}`,r)}exports.callRelayerSolanaTransactBatchAPI=a,exports.callRelayerTransactAPI=r,exports.callRelayerTransactBatchAPI=i;
|
|
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`);async function r(r){return n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.TRANSACT}`,r)}async function i(r){return n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.TRANSACT_BATCH}`,r)}async function a(r){return n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.SOLANA_TRANSACT_BATCH}`,r)}async function o(r){return n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.SOLANA_SPONSORED_BUILD}`,r)}async function s(r){return n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.SOLANA_SPONSORED_SUBMIT}`,r)}exports.callRelayerSolanaSponsoredBuildAPI=o,exports.callRelayerSolanaSponsoredSubmitAPI=s,exports.callRelayerSolanaTransactBatchAPI=a,exports.callRelayerTransactAPI=r,exports.callRelayerTransactBatchAPI=i;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CircomDataJsonType, CommitmentValidationDataType, DimDataType } from '../types/circom-data.types';
|
|
2
2
|
import { AuthorizationData } from '../types/hinkal.types';
|
|
3
3
|
import { AdminDataType } from '../types/admin.types';
|
|
4
|
-
import { SolanaTransactionBody } from '../types/solana.types';
|
|
4
|
+
import { SolanaSponsoredTxKind, SolanaTransactionBody } from '../types/solana.types';
|
|
5
5
|
export interface HinkalTransactionRequestBody {
|
|
6
6
|
chainId: number;
|
|
7
7
|
a: [string, string];
|
|
@@ -31,6 +31,7 @@ export interface HinkalTransactionBatchRequestBody {
|
|
|
31
31
|
txCompletionTime?: number;
|
|
32
32
|
ref?: string;
|
|
33
33
|
hashedDashboardAccountId?: string;
|
|
34
|
+
dependsOnTxHash?: string;
|
|
34
35
|
}
|
|
35
36
|
export interface SolanaTransactionBatchRequestBody {
|
|
36
37
|
chainId: number;
|
|
@@ -39,6 +40,36 @@ export interface SolanaTransactionBatchRequestBody {
|
|
|
39
40
|
txCompletionTime?: number;
|
|
40
41
|
ref?: string;
|
|
41
42
|
hashedDashboardAccountId?: string;
|
|
43
|
+
dependsOnTxHash?: string;
|
|
42
44
|
}
|
|
43
45
|
export declare function callRelayerTransactBatchAPI(requestBody: HinkalTransactionBatchRequestBody): Promise<any>;
|
|
44
46
|
export declare function callRelayerSolanaTransactBatchAPI(requestBody: SolanaTransactionBatchRequestBody): Promise<any>;
|
|
47
|
+
export interface SolanaSponsoredBuildRequestBody {
|
|
48
|
+
chainId: number;
|
|
49
|
+
kind: SolanaSponsoredTxKind;
|
|
50
|
+
tokenAddress: string;
|
|
51
|
+
amount: string;
|
|
52
|
+
senderAddress: string;
|
|
53
|
+
relayAddress: string;
|
|
54
|
+
recipientInfo?: string;
|
|
55
|
+
recipientAddress?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface SolanaSponsoredBuildResponse {
|
|
58
|
+
status: 'success' | 'failed';
|
|
59
|
+
error?: string;
|
|
60
|
+
ticketId?: string;
|
|
61
|
+
serializedTx?: string;
|
|
62
|
+
fee?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface SolanaSponsoredSubmitRequestBody {
|
|
65
|
+
chainId: number;
|
|
66
|
+
ticketId: string;
|
|
67
|
+
serializedTx: string;
|
|
68
|
+
}
|
|
69
|
+
export interface SolanaSponsoredSubmitResponse {
|
|
70
|
+
status: 'success' | 'failed';
|
|
71
|
+
error?: string;
|
|
72
|
+
txHash?: string;
|
|
73
|
+
}
|
|
74
|
+
export declare function callRelayerSolanaSponsoredBuildAPI(requestBody: SolanaSponsoredBuildRequestBody): Promise<SolanaSponsoredBuildResponse>;
|
|
75
|
+
export declare function callRelayerSolanaSponsoredSubmitAPI(requestBody: SolanaSponsoredSubmitRequestBody): Promise<SolanaSponsoredSubmitResponse>;
|
|
@@ -12,5 +12,11 @@ async function i(r) {
|
|
|
12
12
|
async function a(r) {
|
|
13
13
|
return n.post(`${t}${e.SOLANA_TRANSACT_BATCH}`, r);
|
|
14
14
|
}
|
|
15
|
+
async function o(r) {
|
|
16
|
+
return n.post(`${t}${e.SOLANA_SPONSORED_BUILD}`, r);
|
|
17
|
+
}
|
|
18
|
+
async function s(r) {
|
|
19
|
+
return n.post(`${t}${e.SOLANA_SPONSORED_SUBMIT}`, r);
|
|
20
|
+
}
|
|
15
21
|
//#endregion
|
|
16
|
-
export { a as callRelayerSolanaTransactBatchAPI, r as callRelayerTransactAPI, i as callRelayerTransactBatchAPI };
|
|
22
|
+
export { o as callRelayerSolanaSponsoredBuildAPI, s as callRelayerSolanaSponsoredSubmitAPI, a as callRelayerSolanaTransactBatchAPI, r as callRelayerTransactAPI, i as callRelayerTransactBatchAPI };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../functions/snarkjs/constant.cjs`),t=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var n=async(n,r,i,a=!1,o)=>await t.httpClient.post(`${e.ENCLAVE_URL}/get-balances`,{chainId:n,input:i,key:r,useBlockedUtxos:a,hashedEthereumAddress:o}),r=async(n,r,i,a)=>await t.httpClient.post(`${e.ENCLAVE_URL}/store-
|
|
1
|
+
const e=require(`../functions/snarkjs/constant.cjs`),t=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var n=async(n,r,i,a=!1,o)=>await t.httpClient.post(`${e.ENCLAVE_URL}/get-balances`,{chainId:n,input:i,key:r,useBlockedUtxos:a,hashedEthereumAddress:o}),r=async(n,r,i,a)=>await t.httpClient.post(`${e.ENCLAVE_URL}/store-claimable-key`,{recipientEthAddress:n,encryptedMaterial:r,key:i,chainId:a}),i=async(n,r,i,a,o,s)=>await t.httpClient.post(`${e.ENCLAVE_URL}/get-utxos`,{ethAddress:n,encryptedSignature:r,key:i,chainId:a,isSolanaLedger:o,txMessageForSolanaLedger:s});exports.getBalancesEnclaveCall=n,exports.getUtxosEnclaveCall=i,exports.storeClaimableKeyEnclaveCall=r;
|
|
@@ -7,40 +7,36 @@ type GetBalancesEnclaveCallResponse = {
|
|
|
7
7
|
preConfirmedBalances: TokenBalanceEntry[];
|
|
8
8
|
};
|
|
9
9
|
export declare const getBalancesEnclaveCall: (chainId: number, keyCiphertext: string, inputCiphertext: string, useBlockedUtxos?: boolean, hashedEthereumAddress?: string) => Promise<GetBalancesEnclaveCallResponse>;
|
|
10
|
-
export interface
|
|
10
|
+
export interface StoreClaimableKeyRequest {
|
|
11
11
|
recipientEthAddress: string;
|
|
12
|
-
|
|
12
|
+
encryptedMaterial: string;
|
|
13
13
|
key: string;
|
|
14
14
|
chainId: number;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface StoreClaimableKeyResponse {
|
|
17
17
|
status: 'success';
|
|
18
18
|
}
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const storeClaimableKeyEnclaveCall: (recipientEthAddress: string, encryptedMaterial: string, key: string, chainId: number) => Promise<StoreClaimableKeyResponse>;
|
|
20
20
|
export interface GetUtxosRequest {
|
|
21
21
|
ethAddress: string;
|
|
22
22
|
encryptedSignature: string;
|
|
23
23
|
key: string;
|
|
24
24
|
chainId: number;
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
26
|
+
export interface EnclaveClaimableUtxo {
|
|
27
|
+
senderAddress: string;
|
|
27
28
|
amount: string;
|
|
28
29
|
erc20TokenAddress: string;
|
|
29
30
|
mintAddress?: string;
|
|
30
|
-
randomization: string;
|
|
31
|
-
stealthAddress: string;
|
|
32
31
|
timeStamp: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
claimableSignature?: string;
|
|
39
|
-
spendingPublicKey?: string[];
|
|
40
|
-
H0?: [string, string];
|
|
32
|
+
stealthAddress: string;
|
|
33
|
+
nullifyingKey: string;
|
|
34
|
+
claimableSignature: string;
|
|
35
|
+
H0: [string, string];
|
|
36
|
+
isBlocked: boolean;
|
|
41
37
|
}
|
|
42
38
|
export interface GetUtxosResponse {
|
|
43
|
-
utxos:
|
|
39
|
+
utxos: EnclaveClaimableUtxo[];
|
|
44
40
|
}
|
|
45
41
|
export interface RecoverUtxosResponse {
|
|
46
42
|
status: string;
|
|
@@ -52,4 +48,8 @@ export interface Proof {
|
|
|
52
48
|
}
|
|
53
49
|
export declare const recoverUtxosEnclaveCall: (encryptedSignature: string, key: string, addressForLoginSignatureVerify?: string, addressForAuthorizationSignatureVerify?: string, ethereumWithdrawalAddress?: string, solanaWithdrawalAddress?: string, mnemonicProof?: Proof) => Promise<RecoverUtxosResponse>;
|
|
54
50
|
export declare const getUtxosEnclaveCall: (ethAddress: string, encryptedSignature: string, key: string, chainId: number, isSolanaLedger: boolean, txMessageForSolanaLedger?: string) => Promise<GetUtxosResponse>;
|
|
51
|
+
export interface MarkClaimableKeyClaimedResponse {
|
|
52
|
+
status: 'success';
|
|
53
|
+
}
|
|
54
|
+
export declare const markClaimableKeyClaimedEnclaveCall: (ethAddress: string, encryptedSignature: string, key: string, encryptedMaterial: string, materialKey: string, chainId: number, isSolanaLedger: boolean, txMessageForSolanaLedger?: string) => Promise<MarkClaimableKeyClaimedResponse>;
|
|
55
55
|
export {};
|
|
@@ -8,9 +8,9 @@ var n = async (n, r, i, a = !1, o) => await t.post(`${e}/get-balances`, {
|
|
|
8
8
|
key: r,
|
|
9
9
|
useBlockedUtxos: a,
|
|
10
10
|
hashedEthereumAddress: o
|
|
11
|
-
}), r = async (n, r, i, a) => await t.post(`${e}/store-
|
|
11
|
+
}), r = async (n, r, i, a) => await t.post(`${e}/store-claimable-key`, {
|
|
12
12
|
recipientEthAddress: n,
|
|
13
|
-
|
|
13
|
+
encryptedMaterial: r,
|
|
14
14
|
key: i,
|
|
15
15
|
chainId: a
|
|
16
16
|
}), i = async (n, r, i, a, o, s) => await t.post(`${e}/get-utxos`, {
|
|
@@ -22,4 +22,4 @@ var n = async (n, r, i, a = !1, o) => await t.post(`${e}/get-balances`, {
|
|
|
22
22
|
txMessageForSolanaLedger: s
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
25
|
-
export { n as getBalancesEnclaveCall, i as getUtxosEnclaveCall, r as
|
|
25
|
+
export { n as getBalancesEnclaveCall, i as getUtxosEnclaveCall, r as storeClaimableKeyEnclaveCall };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./getServerURL.cjs`),t=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);const n=require(`./route-config.cjs`);var r=async(r,i,a)=>{let{result:o,error:s}=await n.callWithRouteConfig(n=>t.httpClient.post(`${e.SERVER_URL}/evm/${r}/${n}`,{jsonrpc:`2.0`,id:1,method:i,params:a}));if(s)throw Error(s.message);return o};exports.getEvmRpcResultFromServer=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getEvmRpcResultFromServer: (chainId: number, method: string, params: unknown[]) => Promise<any>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SERVER_URL as e } from "./getServerURL.mjs";
|
|
2
|
+
import { httpClient as t } from "../data-structures/http/HttpClient.mjs";
|
|
3
|
+
import "../data-structures/http/index.mjs";
|
|
4
|
+
import { callWithRouteConfig as n } from "./route-config.mjs";
|
|
5
|
+
//#region libs/shared/common/src/API/evm-rpc-fallback.ts
|
|
6
|
+
var r = async (r, i, a) => {
|
|
7
|
+
let { result: o, error: s } = await n((n) => t.post(`${e}/evm/${r}/${n}`, {
|
|
8
|
+
jsonrpc: "2.0",
|
|
9
|
+
id: 1,
|
|
10
|
+
method: i,
|
|
11
|
+
params: a
|
|
12
|
+
}));
|
|
13
|
+
if (s) throw Error(s.message);
|
|
14
|
+
return o;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { r as getEvmRpcResultFromServer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=async(r,i)=>{let{balances:a}=await n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.evmTokenBalances}`,{chainId:r,walletAddress:i});return a},i=async(r,i)=>{let{nfts:a}=await n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.evmNftAssets}`,{chainId:r,walletAddress:i});return a};exports.getEvmNftAssetsFromServer=i,exports.getEvmTokenBalancesFromServer=r;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const getEvmTokenBalancesFromServer: (chainId: number, walletAddress: string) => Promise<{
|
|
2
|
+
contractAddress: string;
|
|
3
|
+
tokenBalance: string;
|
|
4
|
+
}[]>;
|
|
5
|
+
export declare const getEvmNftAssetsFromServer: (chainId: number, walletAddress: string) => Promise<{
|
|
6
|
+
contractAddress: string;
|
|
7
|
+
tokenIds: string[];
|
|
8
|
+
}[]>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
|
+
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
|
+
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
+
import "../data-structures/http/index.mjs";
|
|
5
|
+
//#region libs/shared/common/src/API/evm-token-assets.ts
|
|
6
|
+
var r = async (r, i) => {
|
|
7
|
+
let { balances: a } = await n.post(`${t}${e.ROUTES.evmTokenBalances}`, {
|
|
8
|
+
chainId: r,
|
|
9
|
+
walletAddress: i
|
|
10
|
+
});
|
|
11
|
+
return a;
|
|
12
|
+
}, i = async (r, i) => {
|
|
13
|
+
let { nfts: a } = await n.post(`${t}${e.ROUTES.evmNftAssets}`, {
|
|
14
|
+
chainId: r,
|
|
15
|
+
walletAddress: i
|
|
16
|
+
});
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { i as getEvmNftAssetsFromServer, r as getEvmTokenBalancesFromServer };
|
package/common/src/API/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./getServerURL.cjs`),require(`./scheduled-transactions-calls.cjs`),require(`./relayCalls.cjs`),require(`./getTokenPrice.cjs`),require(`./token-calls.cjs`),require(`./callMonitor.cjs`),require(`./callRelayer.cjs`),require(`./seedless-calls.cjs`),require(`./temporaryWalletCalls.cjs`),require(`./privateSendRecipientInfoCalls.cjs`),require(`./privateSendEmailNotificationsCalls.cjs`),require(`./payoutNotificationStateCalls.cjs`),require(`./API.cjs`),require(`./getGasEstimates.cjs`),require(`./admin-calls.cjs`),require(`./resolve-sns.cjs`),require(`./enclaveRecipientInfoCalls.cjs`),require(`./callNearIntentsAPI.cjs`),require(`./callLifiAPI.cjs`),require(`./getCoingeckoPrice.cjs`),require(`./checkRisk.cjs`),require(`./tenderly.api.cjs`),require(`./getWebsiteURL.cjs`);
|
|
1
|
+
require(`./getServerURL.cjs`),require(`./scheduled-transactions-calls.cjs`),require(`./relayCalls.cjs`),require(`./getTokenPrice.cjs`),require(`./token-calls.cjs`),require(`./callMonitor.cjs`),require(`./callRelayer.cjs`),require(`./seedless-calls.cjs`),require(`./temporaryWalletCalls.cjs`),require(`./privateSendRecipientInfoCalls.cjs`),require(`./privateSendEmailNotificationsCalls.cjs`),require(`./payoutNotificationStateCalls.cjs`),require(`./enclaveUtxoCalls.cjs`),require(`./API.cjs`),require(`./getGasEstimates.cjs`),require(`./admin-calls.cjs`),require(`./resolve-sns.cjs`),require(`./enclaveRecipientInfoCalls.cjs`),require(`./callNearIntentsAPI.cjs`),require(`./callLifiAPI.cjs`),require(`./getCoingeckoPrice.cjs`),require(`./checkRisk.cjs`),require(`./tenderly.api.cjs`),require(`./getWebsiteURL.cjs`);
|
|
@@ -20,4 +20,5 @@ export * from './privateSendRecipientInfoCalls';
|
|
|
20
20
|
export * from './privateSendEmailNotificationsCalls';
|
|
21
21
|
export * from './admin-calls';
|
|
22
22
|
export * from './enclaveRecipientInfoCalls';
|
|
23
|
+
export * from './enclaveUtxoCalls';
|
|
23
24
|
export * from './payoutNotificationStateCalls';
|
package/common/src/API/index.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import "./temporaryWalletCalls.mjs";
|
|
|
10
10
|
import "./privateSendRecipientInfoCalls.mjs";
|
|
11
11
|
import "./privateSendEmailNotificationsCalls.mjs";
|
|
12
12
|
import "./payoutNotificationStateCalls.mjs";
|
|
13
|
+
import "./enclaveUtxoCalls.mjs";
|
|
13
14
|
import "./API.mjs";
|
|
14
15
|
import "./getGasEstimates.mjs";
|
|
15
16
|
import "./admin-calls.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../../_virtual/_rolldown/runtime.cjs`),t=require(`../constants/server.constants.cjs`),n=require(`./getServerURL.cjs`),r=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);let i=require(`axios`);i=e.__toESM(i);var a,o=(e=!1)=>{if(!a||e){let e=r.httpClient.get(`${n.SERVER_URL}${t.API_CONFIG.ROUTES.routeConfig}`).catch(t=>{throw a===e&&(a=void 0),t});a=e}return a},s=async e=>{let{a:t}=await o();try{return await e(t)}catch(t){if(!i.default.isAxiosError(t)||t.response?.status!==401)throw t;let{a:n}=await o(!0);return e(n)}};exports.callWithRouteConfig=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const callWithRouteConfig: <T>(request: (path: string) => Promise<T>) => Promise<T>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
|
+
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
|
+
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
+
import "../data-structures/http/index.mjs";
|
|
5
|
+
import r from "axios";
|
|
6
|
+
//#region libs/shared/common/src/API/route-config.ts
|
|
7
|
+
var i, a = (r = !1) => {
|
|
8
|
+
if (!i || r) {
|
|
9
|
+
let r = n.get(`${t}${e.ROUTES.routeConfig}`).catch((e) => {
|
|
10
|
+
throw i === r && (i = void 0), e;
|
|
11
|
+
});
|
|
12
|
+
i = r;
|
|
13
|
+
}
|
|
14
|
+
return i;
|
|
15
|
+
}, o = async (e) => {
|
|
16
|
+
let { a: t } = await a();
|
|
17
|
+
try {
|
|
18
|
+
return await e(t);
|
|
19
|
+
} catch (t) {
|
|
20
|
+
if (!r.isAxiosError(t) || t.response?.status !== 401) throw t;
|
|
21
|
+
let { a: n } = await a(!0);
|
|
22
|
+
return e(n);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { o as callWithRouteConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=async r=>{let{nftAddresses:i}=await n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.solanaNftAssets}`,{walletAddress:r});return i};exports.getSolanaNftAssetsFromServer=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getSolanaNftAssetsFromServer: (walletAddress: string) => Promise<string[]>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
|
+
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
|
+
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
+
import "../data-structures/http/index.mjs";
|
|
5
|
+
//#region libs/shared/common/src/API/solana-nft-assets.ts
|
|
6
|
+
var r = async (r) => {
|
|
7
|
+
let { nftAddresses: i } = await n.post(`${t}${e.ROUTES.solanaNftAssets}`, { walletAddress: r });
|
|
8
|
+
return i;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { r as getSolanaNftAssetsFromServer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../constants/protocol.constants.cjs`),t=require(`../constants/server.constants.cjs`),n=require(`./getServerURL.cjs`),r=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);const i=require(`../types/fee.types.cjs`);var a=async(a,o=i.SolanaPriorityFeeMode.RECOMMENDED)=>{try{let{microLamports:e}=await r.httpClient.post(`${n.SERVER_URL}${t.API_CONFIG.ROUTES.solanaPriorityFee}`,{accounts:a.map(e=>e.toBase58()),priorityFeeMode:o});return e??15e5}catch{return e.MAX_MICRO_LAMPORTS_PER_CU}};exports.getSolanaPriorityFeeFromServer=a;
|