@hinkal/common 0.2.18 → 0.2.19
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/API/API.cjs +1 -1
- package/API/API.d.ts +8 -13
- package/API/API.mjs +86 -94
- package/API/admin-calls.cjs +1 -1
- package/API/admin-calls.d.ts +1 -1
- package/API/admin-calls.mjs +4 -4
- package/API/callLifiAPI.cjs +1 -1
- package/API/callLifiAPI.d.ts +1 -1
- package/API/callLifiAPI.mjs +5 -5
- package/API/callMonitor.cjs +1 -1
- package/API/callMonitor.d.ts +1 -1
- package/API/callMonitor.mjs +7 -7
- package/API/callOdosAPI.cjs +1 -1
- package/API/callOdosAPI.mjs +11 -11
- package/API/callOkxAPI.cjs +1 -1
- package/API/callOkxAPI.d.ts +1 -1
- package/API/callOkxAPI.mjs +5 -5
- package/API/callOneInchAPI.cjs +1 -1
- package/API/callOneInchAPI.mjs +10 -11
- package/API/callRelayer.cjs +1 -1
- package/API/callRelayer.d.ts +6 -3
- package/API/callRelayer.mjs +11 -11
- package/API/checkRisk.cjs +1 -1
- package/API/checkRisk.d.ts +1 -1
- package/API/checkRisk.mjs +4 -4
- package/API/fetchCommitmentsCache.cjs +1 -1
- package/API/fetchCommitmentsCache.mjs +9 -9
- package/API/get-token-data.cjs +1 -1
- package/API/get-token-data.d.ts +1 -1
- package/API/get-token-data.mjs +5 -5
- package/API/get-token-price-chart-data.cjs +1 -0
- package/API/get-token-price-chart-data.d.ts +16 -0
- package/API/get-token-price-chart-data.mjs +13 -0
- package/API/getGasEstimates.cjs +1 -1
- package/API/getGasEstimates.mjs +9 -9
- package/API/getServerURL.cjs +1 -1
- package/API/getServerURL.d.ts +3 -3
- package/API/getServerURL.mjs +51 -67
- package/API/getTokenPrice.cjs +1 -1
- package/API/getTokenPrice.d.ts +5 -0
- package/API/getTokenPrice.mjs +14 -7
- package/API/index.d.ts +0 -3
- package/API/is-tx-stateless.cjs +1 -1
- package/API/is-tx-stateless.d.ts +1 -1
- package/API/is-tx-stateless.mjs +10 -12
- package/API/kycCalls.cjs +1 -1
- package/API/kycCalls.d.ts +4 -8
- package/API/kycCalls.mjs +23 -26
- package/API/onrampCalls.cjs +1 -0
- package/API/onrampCalls.d.ts +20 -0
- package/API/onrampCalls.mjs +15 -0
- package/API/proxyAccountsCalls.cjs +1 -1
- package/API/proxyAccountsCalls.d.ts +2 -2
- package/API/proxyAccountsCalls.mjs +19 -19
- package/API/relayCalls.cjs +1 -1
- package/API/relayCalls.mjs +4 -4
- package/API/scheduled-transactions-calls.cjs +1 -1
- package/API/scheduled-transactions-calls.d.ts +1 -1
- package/API/scheduled-transactions-calls.mjs +4 -4
- package/API/simulate-batch-tx.cjs +1 -1
- package/API/simulate-batch-tx.d.ts +2 -2
- package/API/simulate-batch-tx.mjs +7 -6
- package/API/solana-calls.cjs +1 -1
- package/API/solana-calls.d.ts +6 -3
- package/API/solana-calls.mjs +15 -15
- package/API/token-calls.cjs +1 -1
- package/API/token-calls.mjs +6 -5
- package/API/unspent-utxos-calls.cjs +1 -1
- package/API/unspent-utxos-calls.d.ts +1 -1
- package/API/unspent-utxos-calls.mjs +15 -18
- package/README.md +233 -64
- package/constants/addresses.constants.cjs +1 -1
- package/constants/addresses.constants.d.ts +0 -1
- package/constants/addresses.constants.mjs +7 -8
- package/constants/chains.constants.cjs +1 -1
- package/constants/chains.constants.d.ts +0 -5
- package/constants/chains.constants.mjs +19 -24
- package/constants/coingecko.constants.cjs +1 -1
- package/constants/coingecko.constants.d.ts +1 -0
- package/constants/coingecko.constants.mjs +11 -10
- package/constants/contracts.constants.cjs +1 -1
- package/constants/contracts.constants.mjs +34 -41
- package/constants/function-signatures.constants.cjs +1 -1
- package/constants/function-signatures.constants.d.ts +0 -1
- package/constants/function-signatures.constants.mjs +3 -4
- package/constants/mystery-boxes.constants.d.ts +0 -0
- package/constants/permit2.constants.cjs +1 -1
- package/constants/permit2.constants.d.ts +0 -1
- package/constants/permit2.constants.mjs +10 -11
- package/constants/server.constants.cjs +1 -1
- package/constants/server.constants.d.ts +14 -122
- package/constants/server.constants.mjs +44 -152
- package/constants/token-data/ethMainnetRegistry.json.cjs +1 -1
- package/constants/token-data/ethMainnetRegistry.json.mjs +0 -24
- package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -1
- package/constants/token-data/ethMainnetRegistryFixed.json.mjs +0 -24
- package/constants/token-data/index.d.ts +32 -88
- package/constants/token-data/localhostRegistry.json.cjs +1 -1
- package/constants/token-data/localhostRegistry.json.mjs +0 -26
- package/constants/token-data/popularTokens.constants.cjs +1 -1
- package/constants/token-data/popularTokens.constants.mjs +0 -1
- package/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/data-structures/Hinkal/Hinkal.d.ts +33 -48
- package/data-structures/Hinkal/Hinkal.mjs +237 -300
- package/data-structures/Hinkal/IHinkal.d.ts +32 -47
- package/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
- package/data-structures/Hinkal/handleAutoDepositBack.d.ts +1 -1
- package/data-structures/Hinkal/handleAutoDepositBack.mjs +42 -42
- package/data-structures/Hinkal/hinkalActionReceive.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionReceive.mjs +25 -23
- package/data-structures/Hinkal/hinkalCheckTokenRegistry.cjs +1 -1
- package/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +9 -9
- package/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalDeposit.mjs +95 -93
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +111 -115
- package/data-structures/Hinkal/hinkalGetZkMeProvider.cjs +1 -1
- package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +1 -2
- package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
- package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +1 -1
- package/data-structures/Hinkal/hinkalPrivateWallet.mjs +107 -115
- package/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +36 -34
- package/data-structures/Hinkal/hinkalProxySwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalProxySwap.mjs +34 -33
- package/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -1
- package/data-structures/Hinkal/hinkalProxyToPrivate.mjs +26 -24
- package/data-structures/Hinkal/hinkalSignSubAccount.cjs +1 -1
- package/data-structures/Hinkal/hinkalSignSubAccount.d.ts +1 -2
- package/data-structures/Hinkal/hinkalSignSubAccount.mjs +8 -9
- package/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +4 -3
- package/data-structures/Hinkal/hinkalSolanaDeposit.mjs +86 -97
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +2 -1
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +146 -146
- package/data-structures/Hinkal/hinkalSolanaProxySend.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySend.d.ts +2 -3
- package/data-structures/Hinkal/hinkalSolanaProxySend.mjs +38 -38
- package/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +57 -56
- package/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +59 -58
- package/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaSwap.d.ts +1 -1
- package/data-structures/Hinkal/hinkalSolanaSwap.mjs +83 -79
- package/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaTransfer.mjs +49 -48
- package/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaWithdraw.d.ts +2 -1
- package/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +67 -64
- package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSwap.mjs +75 -87
- package/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
- package/data-structures/Hinkal/hinkalTransfer.mjs +55 -58
- package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdraw.mjs +80 -82
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +98 -102
- package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
- package/data-structures/Hinkal/resetMerkleTrees.d.ts +1 -1
- package/data-structures/Hinkal/resetMerkleTrees.mjs +105 -53
- package/data-structures/IndexedDB/activity-db.cjs +1 -1
- package/data-structures/IndexedDB/activity-db.mjs +7 -7
- package/data-structures/IndexedDB/balances-db.cjs +1 -1
- package/data-structures/IndexedDB/balances-db.mjs +8 -8
- package/data-structures/IndexedDB/contact-db.cjs +1 -1
- package/data-structures/IndexedDB/contact-db.mjs +10 -10
- package/data-structures/IndexedDB/signatures-db.cjs +1 -1
- package/data-structures/IndexedDB/signatures-db.mjs +25 -40
- package/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -1
- package/data-structures/TokenDBs/EventsPublicTokensDB.mjs +10 -11
- package/data-structures/TokenDBs/token-visibility-db.cjs +1 -1
- package/data-structures/TokenDBs/token-visibility-db.mjs +22 -36
- package/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -1
- package/data-structures/crypto-keys/encryptDecryptUtxo.d.ts +1 -1
- package/data-structures/crypto-keys/encryptDecryptUtxo.mjs +14 -14
- package/data-structures/event-service/evm/AbstractEventService.cjs +1 -1
- package/data-structures/event-service/evm/AbstractEventService.d.ts +1 -0
- package/data-structures/event-service/evm/AbstractEventService.mjs +7 -4
- package/data-structures/event-service/evm/AbstractSnapshotService.cjs +1 -1
- package/data-structures/event-service/evm/AbstractSnapshotService.d.ts +0 -1
- package/data-structures/event-service/evm/AbstractSnapshotService.mjs +3 -4
- package/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -1
- package/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +3 -1
- package/data-structures/event-service/evm/BlockchainEventEmitter.mjs +17 -14
- package/data-structures/event-service/solana/AbstractSolanaEventService.cjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaEventService.d.ts +1 -0
- package/data-structures/event-service/solana/AbstractSolanaEventService.mjs +9 -6
- package/data-structures/event-service/solana/AbstractSolanaSnapshotService.cjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaSnapshotService.d.ts +0 -1
- package/data-structures/event-service/solana/AbstractSolanaSnapshotService.mjs +1 -2
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.cjs +1 -1
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +3 -2
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.mjs +42 -45
- package/data-structures/provider-adapter/IProviderAdapter.d.ts +8 -13
- package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.mjs +3 -4
- package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.cjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.mjs +3 -4
- package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.mjs +3 -4
- package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.cjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.mjs +3 -4
- package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs +3 -4
- package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs +2 -4
- package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.cjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.mjs +3 -4
- package/data-structures/utxo/Utxo.cjs +1 -1
- package/data-structures/utxo/Utxo.d.ts +1 -7
- package/data-structures/utxo/Utxo.mjs +26 -36
- package/error-handling/error-codes.constants.cjs +1 -1
- package/error-handling/error-codes.constants.d.ts +1 -0
- package/error-handling/error-codes.constants.mjs +2 -1
- package/error-handling/get-error.message.cjs +1 -1
- package/error-handling/get-error.message.mjs +21 -27
- package/error-handling/index.d.ts +0 -1
- package/functions/index.d.ts +0 -1
- package/functions/kyc/zkMeHelper.cjs +1 -1
- package/functions/kyc/zkMeHelper.mjs +18 -17
- package/functions/pre-transaction/constructAdminData.cjs +1 -1
- package/functions/pre-transaction/constructAdminData.d.ts +2 -2
- package/functions/pre-transaction/constructAdminData.mjs +12 -18
- package/functions/pre-transaction/getExternalSwapAddress.cjs +1 -1
- package/functions/pre-transaction/getExternalSwapAddress.d.ts +1 -2
- package/functions/pre-transaction/getExternalSwapAddress.mjs +8 -8
- package/functions/pre-transaction/getFlatFees.cjs +1 -1
- package/functions/pre-transaction/getFlatFees.mjs +22 -30
- package/functions/pre-transaction/getVolatileTransferAmount.cjs +1 -1
- package/functions/pre-transaction/getVolatileTransferAmount.mjs +21 -36
- package/functions/pre-transaction/merge-with-fee-structure-emporium.cjs +1 -1
- package/functions/pre-transaction/merge-with-fee-structure-emporium.d.ts +1 -1
- package/functions/pre-transaction/merge-with-fee-structure-emporium.mjs +17 -17
- package/functions/pre-transaction/outputApprovalDataProcessing.cjs +1 -1
- package/functions/pre-transaction/outputApprovalDataProcessing.d.ts +1 -9
- package/functions/pre-transaction/outputApprovalDataProcessing.mjs +19 -34
- package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.cjs +1 -1
- package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.d.ts +1 -1
- package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.mjs +4 -4
- package/functions/pre-transaction/solana-public-signals.cjs +1 -1
- package/functions/pre-transaction/solana-public-signals.d.ts +1 -0
- package/functions/pre-transaction/solana-public-signals.mjs +29 -26
- package/functions/pre-transaction/solana.cjs +1 -1
- package/functions/pre-transaction/solana.d.ts +2 -1
- package/functions/pre-transaction/solana.mjs +60 -51
- package/functions/private-wallet/emporium.helpers.cjs +1 -1
- package/functions/private-wallet/emporium.helpers.d.ts +3 -5
- package/functions/private-wallet/emporium.helpers.mjs +95 -135
- package/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
- package/functions/private-wallet/emporium.swap.helpers.d.ts +1 -4
- package/functions/private-wallet/emporium.swap.helpers.mjs +100 -102
- package/functions/snarkjs/common.snarkjs.cjs +1 -1
- package/functions/snarkjs/common.snarkjs.d.ts +1 -1
- package/functions/snarkjs/common.snarkjs.mjs +64 -64
- package/functions/snarkjs/constructEmporiumProof.cjs +1 -1
- package/functions/snarkjs/constructEmporiumProof.mjs +1 -1
- package/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
- package/functions/snarkjs/constructGeneralZkProof.d.ts +1 -2
- package/functions/snarkjs/constructGeneralZkProof.mjs +117 -121
- package/functions/snarkjs/constructSolanaZkProof.cjs +1 -1
- package/functions/snarkjs/constructSolanaZkProof.d.ts +1 -1
- package/functions/snarkjs/constructSolanaZkProof.mjs +54 -59
- package/functions/snarkjs/fetchMerkleTreeSiblings.cjs +1 -1
- package/functions/snarkjs/fetchMerkleTreeSiblings.mjs +11 -10
- package/functions/utils/addresses.cjs +1 -1
- package/functions/utils/addresses.d.ts +1 -0
- package/functions/utils/addresses.mjs +13 -12
- package/functions/utils/cacheFunctions.cjs +1 -1
- package/functions/utils/cacheFunctions.mjs +2 -2
- package/functions/utils/erc20tokenFunctions.cjs +1 -1
- package/functions/utils/erc20tokenFunctions.d.ts +0 -1
- package/functions/utils/erc20tokenFunctions.mjs +22 -29
- package/functions/utils/get-hinkal-approvals.cjs +1 -1
- package/functions/utils/get-hinkal-approvals.d.ts +1 -1
- package/functions/utils/get-hinkal-approvals.mjs +16 -16
- package/functions/utils/getUtxosFromReceipt.utils.cjs +1 -1
- package/functions/utils/getUtxosFromReceipt.utils.d.ts +1 -1
- package/functions/utils/getUtxosFromReceipt.utils.mjs +11 -11
- package/functions/utils/involves-permit2-op.cjs +1 -1
- package/functions/utils/involves-permit2-op.d.ts +0 -1
- package/functions/utils/involves-permit2-op.mjs +4 -6
- package/functions/utils/mutexes.utils.cjs +1 -1
- package/functions/utils/mutexes.utils.d.ts +1 -1
- package/functions/utils/mutexes.utils.mjs +3 -3
- package/functions/utils/nftTokenFunctions.cjs +1 -1
- package/functions/utils/nftTokenFunctions.mjs +8 -23
- package/functions/utils/prepareHinkal.cjs +1 -1
- package/functions/utils/prepareHinkal.d.ts +0 -6
- package/functions/utils/prepareHinkal.mjs +41 -60
- package/functions/utils/token-check.utils.cjs +1 -1
- package/functions/utils/token-check.utils.d.ts +3 -0
- package/functions/utils/token-check.utils.mjs +18 -7
- package/functions/utils/upToDateState.cjs +1 -1
- package/functions/utils/upToDateState.d.ts +1 -1
- package/functions/utils/upToDateState.mjs +4 -4
- package/functions/utils/walletBalances.utils.cjs +1 -1
- package/functions/utils/walletBalances.utils.d.ts +1 -16
- package/functions/utils/walletBalances.utils.mjs +4 -35
- package/functions/web3/events/getApprovedBalance.cjs +1 -1
- package/functions/web3/events/getApprovedBalance.d.ts +3 -4
- package/functions/web3/events/getApprovedBalance.mjs +39 -44
- package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.d.ts +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.mjs +114 -121
- package/functions/web3/events/getShieldedBalance.cjs +2 -2
- package/functions/web3/events/getShieldedBalance.d.ts +1 -1
- package/functions/web3/events/getShieldedBalance.mjs +71 -70
- package/functions/web3/events/getTransactionLogEvents.cjs +1 -1
- package/functions/web3/events/getTransactionLogEvents.mjs +7 -7
- package/functions/web3/fetchSolanaMerkleTreeRootHash.cjs +1 -1
- package/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +7 -7
- package/functions/web3/functionCalls/accessTokenCalls.cjs +1 -1
- package/functions/web3/functionCalls/accessTokenCalls.d.ts +1 -6
- package/functions/web3/functionCalls/accessTokenCalls.mjs +12 -21
- package/functions/web3/functionCalls/approveToken.cjs +1 -1
- package/functions/web3/functionCalls/approveToken.d.ts +1 -1
- package/functions/web3/functionCalls/approveToken.mjs +50 -46
- package/functions/web3/functionCalls/approveTokensToHinkal.cjs +1 -1
- package/functions/web3/functionCalls/approveTokensToHinkal.d.ts +1 -1
- package/functions/web3/functionCalls/approveTokensToHinkal.mjs +6 -6
- package/functions/web3/functionCalls/estimateGasRelayer.cjs +1 -1
- package/functions/web3/functionCalls/estimateGasRelayer.d.ts +1 -2
- package/functions/web3/functionCalls/estimateGasRelayer.mjs +10 -10
- package/functions/web3/functionCalls/transactCallDirect.cjs +1 -1
- package/functions/web3/functionCalls/transactCallDirect.d.ts +1 -1
- package/functions/web3/functionCalls/transactCallDirect.mjs +38 -42
- package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.d.ts +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.mjs +34 -34
- package/functions/web3/getPublicAddressBalance.cjs +1 -1
- package/functions/web3/getPublicAddressBalance.d.ts +1 -1
- package/functions/web3/getPublicAddressBalance.mjs +6 -6
- package/functions/web3/getTokenHolder.cjs +1 -1
- package/functions/web3/getTokenHolder.mjs +8 -8
- package/functions/web3/lifiAPI.cjs +1 -1
- package/functions/web3/lifiAPI.d.ts +1 -1
- package/functions/web3/lifiAPI.mjs +12 -12
- package/functions/web3/odosAPI.cjs +1 -1
- package/functions/web3/odosAPI.mjs +6 -19
- package/functions/web3/okxAPI.cjs +1 -1
- package/functions/web3/okxAPI.mjs +22 -22
- package/functions/web3/oneInchAPI.cjs +1 -1
- package/functions/web3/oneInchAPI.mjs +7 -20
- package/functions/web3/runContractFunction.cjs +1 -1
- package/functions/web3/runContractFunction.mjs +38 -56
- package/functions/web3/uniswapAPI.cjs +1 -1
- package/functions/web3/uniswapAPI.mjs +22 -34
- package/index.cjs +1 -1
- package/index.mjs +939 -970
- package/package.json +1 -1
- package/providers/EthersProviderAdapter.cjs +1 -1
- package/providers/EthersProviderAdapter.d.ts +10 -17
- package/providers/EthersProviderAdapter.mjs +48 -76
- package/providers/SolanaProviderAdapter.cjs +1 -1
- package/providers/SolanaProviderAdapter.d.ts +7 -11
- package/providers/SolanaProviderAdapter.mjs +16 -31
- package/providers/WagmiProviderAdapter.cjs +1 -1
- package/providers/WagmiProviderAdapter.d.ts +11 -17
- package/providers/WagmiProviderAdapter.mjs +86 -117
- package/providers/prepareEthersHinkal.cjs +1 -1
- package/providers/prepareEthersHinkal.mjs +6 -7
- package/providers/prepareWagmiHinkal.cjs +1 -1
- package/providers/prepareWagmiHinkal.mjs +5 -5
- package/types/TransactionSimulator.types.d.ts +2 -9
- package/types/admin.types.cjs +1 -1
- package/types/admin.types.d.ts +0 -6
- package/types/admin.types.mjs +2 -2
- package/types/balances.types.d.ts +0 -1
- package/types/cache.types.cjs +1 -1
- package/types/cache.types.d.ts +2 -3
- package/types/cache.types.mjs +1 -1
- package/types/coingecko.types.d.ts +5 -0
- package/types/ethereum-network.types.cjs +1 -1
- package/types/ethereum-network.types.d.ts +1 -8
- package/types/ethereum-network.types.mjs +1 -1
- package/types/external-action.types.cjs +1 -1
- package/types/external-action.types.d.ts +0 -1
- package/types/external-action.types.mjs +1 -1
- package/types/hinkal.types.cjs +1 -1
- package/types/hinkal.types.d.ts +1 -7
- package/types/hinkal.types.mjs +22 -23
- package/types/index.d.ts +1 -3
- package/types/onramp.types.cjs +1 -0
- package/types/onramp.types.d.ts +58 -0
- package/types/onramp.types.mjs +4 -0
- package/types/proxy.types.d.ts +1 -0
- package/types/sandbox.types.cjs +1 -1
- package/types/sandbox.types.d.ts +8 -39
- package/types/sandbox.types.mjs +2 -2
- package/types/session.types.d.ts +2 -0
- package/types/solana.types.d.ts +1 -0
- package/types/token-prices.types.cjs +1 -1
- package/types/token-prices.types.d.ts +7 -0
- package/types/token-prices.types.mjs +4 -2
- package/types/transactions.types.cjs +1 -1
- package/types/transactions.types.d.ts +2 -4
- package/types/transactions.types.mjs +3 -3
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.cjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.mjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.cjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.mjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +2 -2
- package/API/ai-calls.cjs +0 -1
- package/API/ai-calls.d.ts +0 -17
- package/API/ai-calls.mjs +0 -21
- package/API/duneAPI.cjs +0 -1
- package/API/duneAPI.d.ts +0 -11
- package/API/duneAPI.mjs +0 -25
- package/API/getBridgeProtocols.cjs +0 -1
- package/API/getBridgeProtocols.d.ts +0 -7
- package/API/getBridgeProtocols.mjs +0 -8
- package/API/getLifiStatus.cjs +0 -1
- package/API/getLifiStatus.d.ts +0 -24
- package/API/getLifiStatus.mjs +0 -15
- package/API/getRelayerURL.cjs +0 -1
- package/API/getRelayerURL.d.ts +0 -1
- package/API/getRelayerURL.mjs +0 -10
- package/API/passwordCalls.cjs +0 -1
- package/API/passwordCalls.d.ts +0 -9
- package/API/passwordCalls.mjs +0 -13
- package/API/restoreSnapshots.cjs +0 -1
- package/API/restoreSnapshots.d.ts +0 -1
- package/API/restoreSnapshots.mjs +0 -10
- package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.cjs +0 -1
- package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.d.ts +0 -7
- package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.mjs +0 -42
- package/data-structures/Hinkal/hinkalActionStake.d.ts +0 -3
- package/data-structures/Hinkal/hinkalApprove.cjs +0 -1
- package/data-structures/Hinkal/hinkalApprove.d.ts +0 -3
- package/data-structures/Hinkal/hinkalApprove.mjs +0 -115
- package/data-structures/Hinkal/hinkalInsideTransact.cjs +0 -1
- package/data-structures/Hinkal/hinkalInsideTransact.d.ts +0 -4
- package/data-structures/Hinkal/hinkalInsideTransact.mjs +0 -121
- package/error-handling/handleErrorRestore.cjs +0 -1
- package/error-handling/handleErrorRestore.d.ts +0 -2
- package/error-handling/handleErrorRestore.mjs +0 -11
- package/functions/staking/index.cjs +0 -1
- package/functions/staking/index.d.ts +0 -11
- package/functions/staking/index.mjs +0 -42
- package/functions/utils/replaceAddressInCalldata.cjs +0 -1
- package/functions/utils/replaceAddressInCalldata.d.ts +0 -1
- package/functions/utils/replaceAddressInCalldata.mjs +0 -7
- package/functions/web3/functionCalls/inHinkalApprovalCalls.cjs +0 -1
- package/functions/web3/functionCalls/inHinkalApprovalCalls.d.ts +0 -5
- package/functions/web3/functionCalls/inHinkalApprovalCalls.mjs +0 -32
- package/types/bridging.types.d.ts +0 -29
- package/types/duneAPI.types.d.ts +0 -9
- package/types/hinkal.stake.types.cjs +0 -1
- package/types/hinkal.stake.types.d.ts +0 -11
- package/types/hinkal.stake.types.mjs +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var O = /* @__PURE__ */ ((s) => (s.Transact = "Transact", s.Uniswap = "Uniswap", s.Odos = "Odos", s.OneInch = "OneInch", s.Lifi = "Lifi", s.Okx = "Okx", s.
|
|
1
|
+
var O = /* @__PURE__ */ ((s) => (s.Transact = "Transact", s.Uniswap = "Uniswap", s.Odos = "Odos", s.OneInch = "OneInch", s.Lifi = "Lifi", s.Okx = "Okx", s.Emporium = "Emporium", s.Wallet = "Wallet", s.DepositOnChainUtxos = "DepositOnChainUtxos", s))(O || {});
|
|
2
2
|
export {
|
|
3
3
|
O as ExternalActionId
|
|
4
4
|
};
|
package/types/hinkal.types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../constants/conversion.constants.cjs"),u=require("../constants/fees.constants.cjs"),l=require("../constants/protocol.constants.cjs");var r=(e=>(e.BalanceChange="BalanceChange",e.KycNeeded="KycNeeded",e.AccountChanged="AccountChanged",e.ShowConnect="ShowConnect",e.ShowNetworkPopup="ShowNetworkPopup",e.MerkleTreeUpdated="MerkleTreeUpdated",e.MerkleTreeResetStarted="MerkleTreeResetStarted",e.MerkleTreeResetFinished="MerkleTreeResetFinished",e))(r||{}),A=(e=>(e[e.UNISWAP=1]="UNISWAP",e[e.ODOS=2]="ODOS",e[e.ONEINCH=3]="ONEINCH",e[e.LIFI=4]="LIFI",e[e.OKX=5]="OKX",e[e.ALL=6]="ALL",e[e.NONE=7]="NONE",e))(A||{}),t=(e=>(e.WITHDRAW="WITHDRAW",e.SWAP="SWAP",e.CLAIMING="CLAIMING",e.EMPORIUM="EMPORIUM",e.NONE="NONE",e))(t||{}),E=(e=>(e[e.NONE=0]="NONE",e[e.APPROVE=1]="APPROVE",e[e.RELEASE_BUFFER=2]="RELEASE_BUFFER",e[e.EXECUTE=3]="EXECUTE",e))(E||{});const O=(e,a)=>({approvalChanges:Array.from({length:e}).fill(a),externalApprovalAddresses:Array.from({length:e}).fill(l.zeroAddress),conversionInHinkalAddress:Array.from({length:e}).fill(a)}),d=(e,a)=>({hinkalLogicAction:0,inHinkalAddress:a.getInHinkalAddress(l.zeroAddress),executeApprovalChanges:Array.from({length:e}).fill(0n),doPreTxApproval:!1,useApprovalUtxoData:Array.from({length:e}).map(()=>O(N.APPROVED_UTXO_CONVERSION_COUNT,0n)),interactionAddress:l.zeroAddress}),C={feeToken:u.defaultFeeToken,flatFee:0n,variableRate:0n};var s=(e=>(e[e.NOT_STARTED=0]="NOT_STARTED",e[e.CONNECTED=1]="CONNECTED",e[e.KYC=2]="KYC",e[e.COMPLETED=3]="COMPLETED",e))(s||{});exports.EventType=r;exports.HinkalLogicAction=E;exports.INTERACTION=t;exports.IntegrationProvider=A;exports.UserProgress=s;exports.defaultFeeStructure=C;exports.defaultHinkalLogicArgs=d;exports.defaultUseApprovalUTXOData=O;
|
package/types/hinkal.types.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ export type HinkalConfig = {
|
|
|
24
24
|
export type ProverVersion = 'v1x0' | 'v1x1';
|
|
25
25
|
export declare enum EventType {
|
|
26
26
|
BalanceChange = "BalanceChange",
|
|
27
|
-
NetworkChange = "NetworkChange",
|
|
28
27
|
KycNeeded = "KycNeeded",
|
|
29
28
|
AccountChanged = "AccountChanged",
|
|
30
29
|
ShowConnect = "ShowConnect",
|
|
@@ -42,15 +41,9 @@ export declare enum IntegrationProvider {
|
|
|
42
41
|
ALL = 6,
|
|
43
42
|
NONE = 7
|
|
44
43
|
}
|
|
45
|
-
export declare enum HinkalStakeAction {
|
|
46
|
-
DepositOrStake = 0,
|
|
47
|
-
Unstake = 1
|
|
48
|
-
}
|
|
49
44
|
export declare enum INTERACTION {
|
|
50
45
|
WITHDRAW = "WITHDRAW",
|
|
51
46
|
SWAP = "SWAP",
|
|
52
|
-
STAKING = "STAKING",
|
|
53
|
-
UNSTAKING = "UNSTAKING",
|
|
54
47
|
CLAIMING = "CLAIMING",
|
|
55
48
|
EMPORIUM = "EMPORIUM",
|
|
56
49
|
NONE = "NONE"
|
|
@@ -73,6 +66,7 @@ export type ApprovedUtxo<T = bigint> = {
|
|
|
73
66
|
};
|
|
74
67
|
export type ApprovedUtxoWithInteractionAddress<T = bigint> = ApprovedUtxo<T> & {
|
|
75
68
|
interactionAddress: string;
|
|
69
|
+
chainId: number;
|
|
76
70
|
};
|
|
77
71
|
export type HinkalLogicArgs<T = bigint> = {
|
|
78
72
|
hinkalLogicAction: HinkalLogicAction;
|
package/types/hinkal.types.mjs
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import { APPROVED_UTXO_CONVERSION_COUNT as
|
|
2
|
-
import { defaultFeeToken as
|
|
3
|
-
import { zeroAddress as
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
approvalChanges: Array.from({ length: e }).fill(
|
|
7
|
-
externalApprovalAddresses: Array.from({ length: e }).fill(
|
|
8
|
-
conversionInHinkalAddress: Array.from({ length: e }).fill(
|
|
9
|
-
}), d = (e,
|
|
1
|
+
import { APPROVED_UTXO_CONVERSION_COUNT as E } from "../constants/conversion.constants.mjs";
|
|
2
|
+
import { defaultFeeToken as A } from "../constants/fees.constants.mjs";
|
|
3
|
+
import { zeroAddress as a } from "../constants/protocol.constants.mjs";
|
|
4
|
+
var O = /* @__PURE__ */ ((e) => (e.BalanceChange = "BalanceChange", e.KycNeeded = "KycNeeded", e.AccountChanged = "AccountChanged", e.ShowConnect = "ShowConnect", e.ShowNetworkPopup = "ShowNetworkPopup", e.MerkleTreeUpdated = "MerkleTreeUpdated", e.MerkleTreeResetStarted = "MerkleTreeResetStarted", e.MerkleTreeResetFinished = "MerkleTreeResetFinished", e))(O || {}), N = /* @__PURE__ */ ((e) => (e[e.UNISWAP = 1] = "UNISWAP", e[e.ODOS = 2] = "ODOS", e[e.ONEINCH = 3] = "ONEINCH", e[e.LIFI = 4] = "LIFI", e[e.OKX = 5] = "OKX", e[e.ALL = 6] = "ALL", e[e.NONE = 7] = "NONE", e))(N || {}), C = /* @__PURE__ */ ((e) => (e.WITHDRAW = "WITHDRAW", e.SWAP = "SWAP", e.CLAIMING = "CLAIMING", e.EMPORIUM = "EMPORIUM", e.NONE = "NONE", e))(C || {}), f = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.APPROVE = 1] = "APPROVE", e[e.RELEASE_BUFFER = 2] = "RELEASE_BUFFER", e[e.EXECUTE = 3] = "EXECUTE", e))(f || {});
|
|
5
|
+
const h = (e, l) => ({
|
|
6
|
+
approvalChanges: Array.from({ length: e }).fill(l),
|
|
7
|
+
externalApprovalAddresses: Array.from({ length: e }).fill(a),
|
|
8
|
+
conversionInHinkalAddress: Array.from({ length: e }).fill(l)
|
|
9
|
+
}), d = (e, l) => ({
|
|
10
10
|
hinkalLogicAction: 0,
|
|
11
|
-
inHinkalAddress:
|
|
11
|
+
inHinkalAddress: l.getInHinkalAddress(a),
|
|
12
12
|
executeApprovalChanges: Array.from({ length: e }).fill(0n),
|
|
13
13
|
doPreTxApproval: !1,
|
|
14
14
|
useApprovalUtxoData: Array.from({ length: e }).map(
|
|
15
|
-
() =>
|
|
15
|
+
() => h(E, 0n)
|
|
16
16
|
),
|
|
17
|
-
interactionAddress:
|
|
18
|
-
}),
|
|
19
|
-
feeToken:
|
|
17
|
+
interactionAddress: a
|
|
18
|
+
}), r = {
|
|
19
|
+
feeToken: A,
|
|
20
20
|
flatFee: 0n,
|
|
21
21
|
variableRate: 0n
|
|
22
22
|
};
|
|
23
|
-
var
|
|
23
|
+
var S = /* @__PURE__ */ ((e) => (e[e.NOT_STARTED = 0] = "NOT_STARTED", e[e.CONNECTED = 1] = "CONNECTED", e[e.KYC = 2] = "KYC", e[e.COMPLETED = 3] = "COMPLETED", e))(S || {});
|
|
24
24
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
M as defaultFeeStructure,
|
|
25
|
+
O as EventType,
|
|
26
|
+
f as HinkalLogicAction,
|
|
27
|
+
C as INTERACTION,
|
|
28
|
+
N as IntegrationProvider,
|
|
29
|
+
S as UserProgress,
|
|
30
|
+
r as defaultFeeStructure,
|
|
32
31
|
d as defaultHinkalLogicArgs,
|
|
33
|
-
|
|
32
|
+
h as defaultUseApprovalUTXOData
|
|
34
33
|
};
|
package/types/index.d.ts
CHANGED
|
@@ -15,8 +15,6 @@ export * from './token.types';
|
|
|
15
15
|
export * from './slippage.types';
|
|
16
16
|
export * from './transactions.types';
|
|
17
17
|
export * from './rewards.types';
|
|
18
|
-
export * from './hinkal.stake.types';
|
|
19
|
-
export * from './duneAPI.types';
|
|
20
18
|
export * from './admin.types';
|
|
21
19
|
export * from './ICacheDevice';
|
|
22
20
|
export * from './activities.types';
|
|
@@ -32,7 +30,6 @@ export * from './message.types';
|
|
|
32
30
|
export * from './session.types';
|
|
33
31
|
export * from './token-prices.types';
|
|
34
32
|
export * from './presaleReferral.types';
|
|
35
|
-
export * from './bridging.types';
|
|
36
33
|
export * from './brotherhood-user.types';
|
|
37
34
|
export * from './WeeklyAnalytics.types';
|
|
38
35
|
export * from './referral.types';
|
|
@@ -51,3 +48,4 @@ export * from './okx.types';
|
|
|
51
48
|
export * from './http.types';
|
|
52
49
|
export * from './connector.types';
|
|
53
50
|
export * from './scheduled-transactions.types';
|
|
51
|
+
export * from './onramp.types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=(t=>(t.CRYPTO="crypto",t.FIAT="fiat",t))(e||{});exports.MoonPayCurrencyType=e;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare enum MoonPayCurrencyType {
|
|
2
|
+
CRYPTO = "crypto",
|
|
3
|
+
FIAT = "fiat"
|
|
4
|
+
}
|
|
5
|
+
export interface MoonPayCurrencyMetadata {
|
|
6
|
+
contractAddress: string | null;
|
|
7
|
+
coinType: string | null;
|
|
8
|
+
chainId: string | null;
|
|
9
|
+
networkCode: string;
|
|
10
|
+
}
|
|
11
|
+
export interface MoonPaySupportedCurrency {
|
|
12
|
+
id: string;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
type: MoonPayCurrencyType;
|
|
16
|
+
name: string;
|
|
17
|
+
code: string;
|
|
18
|
+
precision: number;
|
|
19
|
+
decimals: number;
|
|
20
|
+
icon: string;
|
|
21
|
+
maxAmount: number | null;
|
|
22
|
+
minAmount: number | null;
|
|
23
|
+
minBuyAmount: number | null;
|
|
24
|
+
maxBuyAmount: number | null;
|
|
25
|
+
minSellAmount: number | null;
|
|
26
|
+
maxSellAmount: number | null;
|
|
27
|
+
isSellSupported: boolean;
|
|
28
|
+
isUtxoCompatible: boolean;
|
|
29
|
+
notAllowedUSStates: string[];
|
|
30
|
+
notAllowedCountries: string[];
|
|
31
|
+
addressRegex: string;
|
|
32
|
+
testnetAddressRegex: string;
|
|
33
|
+
supportsAddressTag: boolean;
|
|
34
|
+
addressTagRegex: string | null;
|
|
35
|
+
supportsTestMode: boolean;
|
|
36
|
+
supportsLiveMode: boolean;
|
|
37
|
+
isSuspended: boolean;
|
|
38
|
+
isStableCoin: boolean;
|
|
39
|
+
isSwapBaseSupported: boolean;
|
|
40
|
+
isSwapQuoteSupported: boolean;
|
|
41
|
+
isBaseAsset: boolean;
|
|
42
|
+
isSupportedInUS: boolean;
|
|
43
|
+
metadata: MoonPayCurrencyMetadata;
|
|
44
|
+
}
|
|
45
|
+
export interface MoonPayQuote {
|
|
46
|
+
id: string;
|
|
47
|
+
baseCurrencyAmount: number;
|
|
48
|
+
baseCurrencyCode: string;
|
|
49
|
+
quoteCurrencyAmount: number;
|
|
50
|
+
quoteCurrencyCode: string;
|
|
51
|
+
totalFeesAmount: number;
|
|
52
|
+
totalFeesCurrencyCode: string;
|
|
53
|
+
paymentMethod: string;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
expiresAt: string;
|
|
56
|
+
totalAmount: number;
|
|
57
|
+
quoteCurrencyPrice: number;
|
|
58
|
+
}
|
package/types/proxy.types.d.ts
CHANGED
package/types/sandbox.types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var a=(n=>(n.ReceiveFromShieldedAccount="ReceiveFromShieldedAccount",n.SwapTokens="SwapTokens",n.ShieldTokens="ShieldTokens",n.SignMessage="SignMessage",n.PrivateTransactionFromProxy="PrivateTransactionFromProxy",n.ProxySend="ProxySend",n.Send="Send",n.Fund="Fund",n.ProxySwapTokens="ProxySwapTokens",n.BatchTransaction="BatchTransaction",n.SignSolanaTransaction="SignSolanaTransaction",n.SignAndSendSolanaTransaction="SignAndSendSolanaTransaction",n))(a||{});exports.SandboxRequestType=a;
|
package/types/sandbox.types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { TokenAmountInfo } from './activities.types';
|
|
|
3
3
|
import { type TypedData } from './circom-data.types';
|
|
4
4
|
import { EncryptedOutputWithSign } from './commitments.types';
|
|
5
5
|
import { ExternalActionId } from './external-action.types';
|
|
6
|
-
import { type ApprovedUtxo, type FeeStructure, IntegrationProvider
|
|
6
|
+
import { type ApprovedUtxo, type FeeStructure, IntegrationProvider } from './hinkal.types';
|
|
7
7
|
import { SubAccount } from './proxy.types';
|
|
8
8
|
import { RelayerTransaction } from './relayer.types';
|
|
9
9
|
import type { ERC20Token, TokenChanges } from './token.types';
|
|
@@ -15,11 +15,7 @@ export declare enum SandboxRequestType {
|
|
|
15
15
|
SwapTokens = "SwapTokens",
|
|
16
16
|
ShieldTokens = "ShieldTokens",
|
|
17
17
|
SignMessage = "SignMessage",
|
|
18
|
-
FundApproveAndTransact = "FundApproveAndTransact",
|
|
19
18
|
PrivateTransactionFromProxy = "PrivateTransactionFromProxy",
|
|
20
|
-
Approve = "Approve",
|
|
21
|
-
InsideTransact = "InsideTransact",
|
|
22
|
-
FundAndApprove = "FundAndApprove",
|
|
23
19
|
ProxySend = "ProxySend",
|
|
24
20
|
Send = "Send",
|
|
25
21
|
Fund = "Fund",
|
|
@@ -53,15 +49,6 @@ export interface PrivateTransactionBaseRequest {
|
|
|
53
49
|
ownerPublicAddress: string;
|
|
54
50
|
feeStructure?: FeeStructure;
|
|
55
51
|
}
|
|
56
|
-
export interface FundApproveAndTransactRequest extends PrivateTransactionBaseRequest {
|
|
57
|
-
type: SandboxRequestType.FundApproveAndTransact;
|
|
58
|
-
spenderAddress: string;
|
|
59
|
-
subAccount: SubAccount;
|
|
60
|
-
tokenChanges: TokenChanges<bigint>[];
|
|
61
|
-
txParams: WCTransactionParameters;
|
|
62
|
-
autoDepositBack: boolean;
|
|
63
|
-
maxGasInDollar?: string;
|
|
64
|
-
}
|
|
65
52
|
export interface PrivateTransactionFromProxyRequest extends PrivateTransactionBaseRequest {
|
|
66
53
|
type: SandboxRequestType.PrivateTransactionFromProxy;
|
|
67
54
|
subAccount: SubAccount;
|
|
@@ -74,25 +61,6 @@ export interface PrivateTransactionFromProxyRequest extends PrivateTransactionBa
|
|
|
74
61
|
autoDepositBack: boolean;
|
|
75
62
|
maxGasInDollar?: string;
|
|
76
63
|
}
|
|
77
|
-
export interface ApproveRequest extends PrivateTransactionBaseRequest {
|
|
78
|
-
type: SandboxRequestType.Approve;
|
|
79
|
-
approvalAmount: string;
|
|
80
|
-
approvalToken: ERC20Token;
|
|
81
|
-
txParams: WCTransactionParameters;
|
|
82
|
-
}
|
|
83
|
-
export interface InsideTransactRequest extends PrivateTransactionBaseRequest {
|
|
84
|
-
type: SandboxRequestType.InsideTransact;
|
|
85
|
-
tokenChanges: TokenChanges<bigint>[];
|
|
86
|
-
parsedInLogicMetadata: ParsedInLogicMetadata;
|
|
87
|
-
txParams: WCTransactionParameters;
|
|
88
|
-
}
|
|
89
|
-
export interface FundAndApproveRequest extends PrivateTransactionBaseRequest {
|
|
90
|
-
type: SandboxRequestType.FundAndApprove;
|
|
91
|
-
subAccount: SubAccount;
|
|
92
|
-
tokenChanges: TokenChanges<bigint>[];
|
|
93
|
-
txParams: WCTransactionParameters;
|
|
94
|
-
spenderAddress?: string;
|
|
95
|
-
}
|
|
96
64
|
export interface BatchTransactionRequest extends PrivateTransactionBaseRequest {
|
|
97
65
|
type: SandboxRequestType.BatchTransaction;
|
|
98
66
|
tokenChanges: TokenChanges<bigint>[];
|
|
@@ -165,6 +133,7 @@ export interface ProxySwapTokensRequest {
|
|
|
165
133
|
maxGasInDollar?: string;
|
|
166
134
|
}
|
|
167
135
|
export interface SignMessageRequest {
|
|
136
|
+
chainId: number;
|
|
168
137
|
type: SandboxRequestType.SignMessage;
|
|
169
138
|
messageToSign?: string;
|
|
170
139
|
typedData?: TypedData;
|
|
@@ -185,17 +154,17 @@ export interface PrepareHinkalFromSerializedArgs {
|
|
|
185
154
|
signature: string;
|
|
186
155
|
ethereumAddress: string;
|
|
187
156
|
chainId: number;
|
|
188
|
-
nullifiers: string[]
|
|
189
|
-
merkleTreeHinkal: MerkleTreeJson
|
|
190
|
-
merkleTreeAccessToken: MerkleTreeJson
|
|
191
|
-
encryptedOutputs: EncryptedOutputWithSign<boolean>[]
|
|
192
|
-
approvals: Record<string, ApprovedUtxo[]
|
|
157
|
+
nullifiers: Record<number, string[]>;
|
|
158
|
+
merkleTreeHinkal: Record<number, MerkleTreeJson>;
|
|
159
|
+
merkleTreeAccessToken: Record<number, MerkleTreeJson>;
|
|
160
|
+
encryptedOutputs: Record<number, EncryptedOutputWithSign<boolean>[]>;
|
|
161
|
+
approvals: Record<number, Record<string, ApprovedUtxo[]>>;
|
|
193
162
|
generateProofRemotely: boolean;
|
|
194
163
|
serializedCache: Record<string, string>;
|
|
195
164
|
stealthPairCache: Record<string, string>;
|
|
196
165
|
stealthAddressCache: Record<string, string>;
|
|
197
166
|
}
|
|
198
|
-
export type SandboxRequest = (TransferTokenRequest | ReceiveFromSubAccountRequest | SwapTokensRequest | ShieldTokensRequest | SignMessageRequest |
|
|
167
|
+
export type SandboxRequest = (TransferTokenRequest | ReceiveFromSubAccountRequest | SwapTokensRequest | ShieldTokensRequest | SignMessageRequest | PrivateTransactionFromProxyRequest | SendProxySendRequest | ProxySwapTokensRequest | BatchTransactionRequest | SignAndSendSolanaTransactionRequest) & {
|
|
199
168
|
prepareHinkalArgs: PrepareHinkalFromSerializedArgs;
|
|
200
169
|
isTorRoutingOn: boolean;
|
|
201
170
|
};
|
package/types/sandbox.types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a = /* @__PURE__ */ ((n) => (n.ReceiveFromShieldedAccount = "ReceiveFromShieldedAccount", n.SwapTokens = "SwapTokens", n.ShieldTokens = "ShieldTokens", n.SignMessage = "SignMessage", n.PrivateTransactionFromProxy = "PrivateTransactionFromProxy", n.ProxySend = "ProxySend", n.Send = "Send", n.Fund = "Fund", n.ProxySwapTokens = "ProxySwapTokens", n.BatchTransaction = "BatchTransaction", n.SignSolanaTransaction = "SignSolanaTransaction", n.SignAndSendSolanaTransaction = "SignAndSendSolanaTransaction", n))(a || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
a as SandboxRequestType
|
|
4
4
|
};
|
package/types/session.types.d.ts
CHANGED
package/types/solana.types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S={INITIAL:"initial",FETCHING:"fetching",ERROR:"error",SUCCESS:"success"};var t=(E=>(E.ONE_WEEK="1w",E.ONE_MONTH="1m",E.THREE_MONTHS="3m",E.ONE_YEAR="1y",E.ALL_TIME="allTime",E))(t||{});exports.TOKEN_PRICE_STATUS=S;exports.TokenPriceTimeframe=t;
|
|
@@ -5,3 +5,10 @@ export declare const TOKEN_PRICE_STATUS: {
|
|
|
5
5
|
readonly SUCCESS: "success";
|
|
6
6
|
};
|
|
7
7
|
export type TokenPriceStatus = (typeof TOKEN_PRICE_STATUS)[keyof typeof TOKEN_PRICE_STATUS];
|
|
8
|
+
export declare enum TokenPriceTimeframe {
|
|
9
|
+
ONE_WEEK = "1w",
|
|
10
|
+
ONE_MONTH = "1m",
|
|
11
|
+
THREE_MONTHS = "3m",
|
|
12
|
+
ONE_YEAR = "1y",
|
|
13
|
+
ALL_TIME = "allTime"
|
|
14
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const O = {
|
|
2
2
|
INITIAL: "initial",
|
|
3
3
|
FETCHING: "fetching",
|
|
4
4
|
ERROR: "error",
|
|
5
5
|
SUCCESS: "success"
|
|
6
6
|
};
|
|
7
|
+
var N = /* @__PURE__ */ ((E) => (E.ONE_WEEK = "1w", E.ONE_MONTH = "1m", E.THREE_MONTHS = "3m", E.ONE_YEAR = "1y", E.ALL_TIME = "allTime", E))(N || {});
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
+
O as TOKEN_PRICE_STATUS,
|
|
10
|
+
N as TokenPriceTimeframe
|
|
9
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("ethers"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("ethers"),u=d.BigNumber.from(0),p={blockNumber:0,timeStamp:0,methodId:"",input:"",decodedInput:{erc20TokenAddresses:[],amountChanges:[],flatFees:[0n,0n].map(e=>d.BigNumber.from(e)),externalActionId:u,externalActionMetadata:"",encryptedOutputs:[],hookData:{hookContract:"",preHookContract:"",preHookMetadata:"",postHookMetadata:""},stealthAddressStructure:{extraRandomization:0n,stealthAddress:0n,H0:0n,H1:0n}},logs:[],hash:"",gas:0,gasPrice:0,isError:"",status:""};var m=(e=>(e[e.NotStarted=0]="NotStarted",e[e.Loading=1]="Loading",e[e.Confirmed=2]="Confirmed",e[e.Failed=3]="Failed",e))(m||{}),r=(e=>(e[e.None=0]="None",e[e.Deposit=1]="Deposit",e[e.Mint=2]="Mint",e[e.PoolAdd=3]="PoolAdd",e[e.PoolRemove=4]="PoolRemove",e[e.Redeem=5]="Redeem",e[e.Swap=6]="Swap",e[e.Bridge=7]="Bridge",e[e.Transfer=8]="Transfer",e[e.Withdraw=9]="Withdraw",e[e.Send=10]="Send",e[e.Fund=11]="Fund",e[e.Receive=12]="Receive",e))(r||{}),l=(e=>(e[e.Failed=0]="Failed",e[e.Succeeded=1]="Succeeded",e))(l||{});exports.TransactionAction=r;exports.TransactionReceiptStatus=l;exports.TransactionStatus=m;exports.emptyDecodedTx=p;
|
|
@@ -70,10 +70,8 @@ export declare enum TransactionAction {
|
|
|
70
70
|
Transfer = 8,
|
|
71
71
|
Withdraw = 9,
|
|
72
72
|
Send = 10,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Fund = 13,
|
|
76
|
-
Receive = 14
|
|
73
|
+
Fund = 11,
|
|
74
|
+
Receive = 12
|
|
77
75
|
}
|
|
78
76
|
export declare enum TransactionReceiptStatus {
|
|
79
77
|
Failed = 0,
|
|
@@ -31,10 +31,10 @@ const m = d.from(0), h = {
|
|
|
31
31
|
isError: "",
|
|
32
32
|
status: ""
|
|
33
33
|
};
|
|
34
|
-
var l = /* @__PURE__ */ ((e) => (e[e.NotStarted = 0] = "NotStarted", e[e.Loading = 1] = "Loading", e[e.Confirmed = 2] = "Confirmed", e[e.Failed = 3] = "Failed", e))(l || {}),
|
|
34
|
+
var l = /* @__PURE__ */ ((e) => (e[e.NotStarted = 0] = "NotStarted", e[e.Loading = 1] = "Loading", e[e.Confirmed = 2] = "Confirmed", e[e.Failed = 3] = "Failed", e))(l || {}), p = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Deposit = 1] = "Deposit", e[e.Mint = 2] = "Mint", e[e.PoolAdd = 3] = "PoolAdd", e[e.PoolRemove = 4] = "PoolRemove", e[e.Redeem = 5] = "Redeem", e[e.Swap = 6] = "Swap", e[e.Bridge = 7] = "Bridge", e[e.Transfer = 8] = "Transfer", e[e.Withdraw = 9] = "Withdraw", e[e.Send = 10] = "Send", e[e.Fund = 11] = "Fund", e[e.Receive = 12] = "Receive", e))(p || {}), r = /* @__PURE__ */ ((e) => (e[e.Failed = 0] = "Failed", e[e.Succeeded = 1] = "Succeeded", e))(r || {});
|
|
35
35
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
p as TransactionAction,
|
|
37
|
+
r as TransactionReceiptStatus,
|
|
38
38
|
l as TransactionStatus,
|
|
39
39
|
h as emptyDecodedTx
|
|
40
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/snarkjsWorkerLauncher-
|
|
1
|
+
"use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/snarkjsWorkerLauncher-DIIlV4Nb.js").href:new URL("../../assets/snarkjsWorkerLauncher-DIIlV4Nb.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/utxoWorkerLauncher-
|
|
1
|
+
"use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/utxoWorkerLauncher-D1WDmcKc.js").href:new URL("../../assets/utxoWorkerLauncher-D1WDmcKc.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/zkProofWorkerLauncher-
|
|
1
|
+
"use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/zkProofWorkerLauncher-Bctpc1c6.js").href:new URL("../../assets/zkProofWorkerLauncher-Bctpc1c6.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
|
package/API/ai-calls.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../constants/server.constants.cjs"),o=require("./getServerURL.cjs"),s=require("../data-structures/http/HttpClient.cjs");require("axios");const u=async(e,t,r)=>s.httpClient.post(`${o.getServerURL(r)}${n.API_CONFIG.ROUTES.getTokenApprovalAmount}`,{html:e,tokenInfo:t}),p=async(e,t,r)=>s.httpClient.post(`${o.getServerURL(e)}${n.API_CONFIG.ROUTES.getTokenSpendsFromOrderMessage}`,{message:t,types:r});exports.getTokenApprovalAmountRequest=u;exports.getTokenSpendsFromOrderMessageRequest=p;
|
package/API/ai-calls.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
type TokenInfo = {
|
|
2
|
-
address?: string;
|
|
3
|
-
symbol?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
};
|
|
6
|
-
interface GetTokenApprovalAmountsResponse {
|
|
7
|
-
tokenAmount: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const getTokenApprovalAmountRequest: (html: string, tokenInfo: TokenInfo, chainId: number) => Promise<GetTokenApprovalAmountsResponse>;
|
|
10
|
-
interface GetTokenSpendsFromOrderMessageResponse {
|
|
11
|
-
tokenSpends: {
|
|
12
|
-
token: string;
|
|
13
|
-
amount: string;
|
|
14
|
-
}[];
|
|
15
|
-
}
|
|
16
|
-
export declare const getTokenSpendsFromOrderMessageRequest: (chainId: number, message: Record<string, unknown>, types: Record<string, unknown>) => Promise<GetTokenSpendsFromOrderMessageResponse>;
|
|
17
|
-
export {};
|
package/API/ai-calls.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { API_CONFIG as r } from "../constants/server.constants.mjs";
|
|
2
|
-
import { getServerURL as n } from "./getServerURL.mjs";
|
|
3
|
-
import { httpClient as p } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "axios";
|
|
5
|
-
const u = async (e, t, o) => p.post(
|
|
6
|
-
`${n(o)}${r.ROUTES.getTokenApprovalAmount}`,
|
|
7
|
-
{
|
|
8
|
-
html: e,
|
|
9
|
-
tokenInfo: t
|
|
10
|
-
}
|
|
11
|
-
), T = async (e, t, o) => p.post(
|
|
12
|
-
`${n(e)}${r.ROUTES.getTokenSpendsFromOrderMessage}`,
|
|
13
|
-
{
|
|
14
|
-
message: t,
|
|
15
|
-
types: o
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
export {
|
|
19
|
-
u as getTokenApprovalAmountRequest,
|
|
20
|
-
T as getTokenSpendsFromOrderMessageRequest
|
|
21
|
-
};
|
package/API/duneAPI.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("axios"),u=require("./getServerURL.cjs");require("../constants/token-data/index.cjs");require("../constants/chains.constants.cjs");require("../constants/contracts.constants.cjs");require("../constants/kyc.constants.cjs");const a=require("../constants/server.constants.cjs");require("../constants/vite.constants.cjs");require("../constants/coingecko.constants.cjs");require("../constants/reorg-depths.constants.cjs");require("../constants/addresses.constants.cjs");require("../constants/token.limits.constants.cjs");require("../constants/presale.constants.cjs");require("../constants/activity.constants.cjs");require("../constants/tasks.constants.cjs");require("../constants/events.constants.cjs");const n=async(e,r)=>{const{balances:t}=(await i.get(`${u.getServerURL(r)}${a.API_CONFIG.ROUTES.getPublicWalletInformation(e)}`)).data;return t};exports.getPublicWalletBalance=n;
|
package/API/duneAPI.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface WalletBalancesInfo {
|
|
2
|
-
amount: string;
|
|
3
|
-
decimals: number;
|
|
4
|
-
address: string;
|
|
5
|
-
chain: string;
|
|
6
|
-
chain_id: number;
|
|
7
|
-
symbol?: string;
|
|
8
|
-
value_usd?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const getPublicWalletBalance: (walletAddress: string, chainId: number) => Promise<WalletBalancesInfo[]>;
|
|
11
|
-
export {};
|
package/API/duneAPI.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import i from "axios";
|
|
2
|
-
import { getServerURL as m } from "./getServerURL.mjs";
|
|
3
|
-
import "../constants/token-data/index.mjs";
|
|
4
|
-
import "../constants/chains.constants.mjs";
|
|
5
|
-
import "../constants/contracts.constants.mjs";
|
|
6
|
-
import "../constants/kyc.constants.mjs";
|
|
7
|
-
import { API_CONFIG as p } from "../constants/server.constants.mjs";
|
|
8
|
-
import "../constants/vite.constants.mjs";
|
|
9
|
-
import "../constants/coingecko.constants.mjs";
|
|
10
|
-
import "../constants/reorg-depths.constants.mjs";
|
|
11
|
-
import "../constants/addresses.constants.mjs";
|
|
12
|
-
import "../constants/token.limits.constants.mjs";
|
|
13
|
-
import "../constants/presale.constants.mjs";
|
|
14
|
-
import "../constants/activity.constants.mjs";
|
|
15
|
-
import "../constants/tasks.constants.mjs";
|
|
16
|
-
import "../constants/events.constants.mjs";
|
|
17
|
-
const U = async (t, o) => {
|
|
18
|
-
const { balances: r } = (await i.get(
|
|
19
|
-
`${m(o)}${p.ROUTES.getPublicWalletInformation(t)}`
|
|
20
|
-
)).data;
|
|
21
|
-
return r;
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
U as getPublicWalletBalance
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./getServerURL.cjs"),o=require("../constants/server.constants.cjs"),s=require("../data-structures/http/HttpClient.cjs");require("axios");const n=async(e,t)=>await s.httpClient.post(`${r.getServerURL(e)}${o.API_CONFIG.ROUTES.getBridgeProtocols}`,t);exports.getBridgeProtocols=n;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BridgeProtocolQuery } from '../types/bridging.types';
|
|
2
|
-
export type BridgeProtocolMatchResult = BridgeProtocolQuery & {
|
|
3
|
-
matched: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare const getBridgeProtocols: (chainId: number, queries: BridgeProtocolQuery[]) => Promise<{
|
|
6
|
-
results: BridgeProtocolMatchResult[];
|
|
7
|
-
}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getServerURL as t } from "./getServerURL.mjs";
|
|
2
|
-
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
3
|
-
import { httpClient as s } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "axios";
|
|
5
|
-
const g = async (o, r) => await s.post(`${t(o)}${e.ROUTES.getBridgeProtocols}`, r);
|
|
6
|
-
export {
|
|
7
|
-
g as getBridgeProtocols
|
|
8
|
-
};
|
package/API/getLifiStatus.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./getServerURL.cjs"),a=require("../constants/server.constants.cjs"),c=require("../data-structures/http/HttpClient.cjs");require("axios");var t=(e=>(e.PENDING="PENDING",e.DONE="DONE",e.NOT_FOUND="NOT_FOUND",e.FAILED="FAILED",e))(t||{});const i=async(e,r)=>{const n=new URLSearchParams([["txHash",r]]);return c.httpClient.get(`${s.getServerURL(e)}${a.API_CONFIG.ROUTES.lifiStatus}?${n}`)};exports.LifiStatus=t;exports.getLifiStatus=i;
|
package/API/getLifiStatus.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
interface LifiTxStatus {
|
|
2
|
-
txHash: string;
|
|
3
|
-
amount: string;
|
|
4
|
-
token: {
|
|
5
|
-
address: string;
|
|
6
|
-
chainId: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export declare enum LifiStatus {
|
|
10
|
-
PENDING = "PENDING",
|
|
11
|
-
DONE = "DONE",
|
|
12
|
-
NOT_FOUND = "NOT_FOUND",
|
|
13
|
-
FAILED = "FAILED"
|
|
14
|
-
}
|
|
15
|
-
export interface LifiStatusResponse {
|
|
16
|
-
status: LifiStatus;
|
|
17
|
-
tool: string;
|
|
18
|
-
sending: LifiTxStatus;
|
|
19
|
-
receiving?: LifiTxStatus;
|
|
20
|
-
}
|
|
21
|
-
export declare const getLifiStatus: (chainId: number, txHash: string) => Promise<{
|
|
22
|
-
lifiResponse: LifiStatusResponse;
|
|
23
|
-
}>;
|
|
24
|
-
export {};
|
package/API/getLifiStatus.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { getServerURL as N } from "./getServerURL.mjs";
|
|
2
|
-
import { API_CONFIG as o } from "../constants/server.constants.mjs";
|
|
3
|
-
import { httpClient as m } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "axios";
|
|
5
|
-
var a = /* @__PURE__ */ ((r) => (r.PENDING = "PENDING", r.DONE = "DONE", r.NOT_FOUND = "NOT_FOUND", r.FAILED = "FAILED", r))(a || {});
|
|
6
|
-
const p = async (r, t) => {
|
|
7
|
-
const e = new URLSearchParams([["txHash", t]]);
|
|
8
|
-
return m.get(
|
|
9
|
-
`${N(r)}${o.ROUTES.lifiStatus}?${e}`
|
|
10
|
-
);
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
a as LifiStatus,
|
|
14
|
-
p as getLifiStatus
|
|
15
|
-
};
|
package/API/getRelayerURL.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../constants/server.constants.cjs"),t=require("../constants/chains.constants.cjs"),r=require("../constants/vite.constants.cjs"),s=n=>{let e;return r.deploymentMode===r.DEPLOYMENT_MODE.DEVELOPMENT?e=a.STAGING_RELAYER_URLS:r.deploymentMode===r.DEPLOYMENT_MODE.PLAYGROUND?e=a.PLAYGROUND_RELAYER_URLS:r.deploymentMode===r.DEPLOYMENT_MODE.STAGING?e=a.STAGING_RELAYER_URLS:(r.deploymentMode,r.DEPLOYMENT_MODE.PRODUCTION,e=a.PRODUCTION_RELAYER_URLS),n===t.chainIds.polygon?e.polygon:n===t.chainIds.arbMainnet?e.arbMainnet:n===t.chainIds.ethMainnet?e.ethMainnet:n===t.chainIds.bnbMainnet?e.bnbMainnet:n===t.chainIds.avalanche?e.avalanche:n===t.chainIds.optimism?e.optimism:n===t.chainIds.base?e.base:n===t.chainIds.arcTestnet?e.arcTestnet:n===t.chainIds.solanaMainnet?e.solanaMainnet:n===t.chainIds.solanaLocalnet?e.localhost:e.ethMainnet};exports.getRelayerURL=s;
|
package/API/getRelayerURL.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getRelayerURL: (chainId: number) => string;
|