@hinkal/common 0.2.17 → 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/getWebsiteURL.d.ts +1 -1
- 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 +237 -61
- 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 +21 -26
- 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/mediaUrls.constants.cjs +1 -1
- package/constants/mediaUrls.constants.d.ts +2 -0
- package/constants/mediaUrls.constants.mjs +3 -1
- 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/constants/vite.constants.cjs +1 -1
- package/constants/vite.constants.mjs +36 -13
- package/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/data-structures/Hinkal/Hinkal.d.ts +34 -49
- package/data-structures/Hinkal/Hinkal.mjs +238 -301
- package/data-structures/Hinkal/IHinkal.d.ts +33 -48
- 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 +147 -133
- 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.d.ts +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.d.ts +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.d.ts +1 -1
- package/data-structures/Hinkal/hinkalSwap.mjs +75 -87
- package/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
- package/data-structures/Hinkal/hinkalTransfer.d.ts +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.d.ts +2 -2
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +87 -90
- 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 +3 -0
- package/error-handling/error-codes.constants.mjs +5 -2
- 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.d.ts +2 -2
- package/functions/snarkjs/constructEmporiumProof.mjs +1 -1
- package/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
- package/functions/snarkjs/constructGeneralZkProof.d.ts +2 -3
- 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/snarkjs/generateCircomData.d.ts +1 -1
- 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/enum.utils.cjs +1 -0
- package/functions/utils/enum.utils.mjs +14 -0
- 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/getDataFromTransaction.d.ts +3 -3
- 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/getInputUtxosEnclave.d.ts +1 -1
- 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 +71 -63
- 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/recoverTransactionFromError.cjs +1 -0
- package/functions/web3/functionCalls/recoverTransactionFromError.d.ts +2 -0
- package/functions/web3/functionCalls/recoverTransactionFromError.mjs +23 -0
- package/functions/web3/functionCalls/transactCallDirect.cjs +1 -1
- package/functions/web3/functionCalls/transactCallDirect.d.ts +1 -1
- package/functions/web3/functionCalls/transactCallDirect.mjs +45 -36
- package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.d.ts +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.mjs +44 -43
- 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 +937 -967
- package/package.json +2 -2
- 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 +3 -7
- 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 +3 -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 +6 -4
- package/types/transactions.types.mjs +4 -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 +1 -1
- 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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./chains.constants.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./chains.constants.cjs"),s="https://api.coingecko.com/api/v3",o="https://pro-api.coingecko.com/api/v3",i=typeof window<"u"?"":process.env.COINGECKO_API_KEY,t="x-cg-pro-api-key",c=i?o:s,r=e=>`${c}/simple/price?ids=${e}&vs_currencies=USD,ETH`,h=(e,a)=>`${c}/simple/token_price/${a}?contract_addresses=${e}&vs_currencies=USD`,d=e=>`${c}/coins/${e}`,l=e=>`${c}/search?query=${encodeURIComponent(e)}`,I=(e,a)=>`${o}/coins/${e}/contract/${a}`,g=(e,a)=>`${o}/coins/${e}/market_chart?vs_currency=usd&days=${a}&interval=daily`,m=`${o}/coins/list`,u={[n.chainIds.arbMainnet]:"ethereum",[n.chainIds.localhost]:"ethereum",[n.chainIds.ethMainnet]:"ethereum",[n.chainIds.optimism]:"ethereum",[n.chainIds.avalanche]:"avalanche-2",[n.chainIds.polygon]:"matic-network",[n.chainIds.bnbMainnet]:"binancecoin",[n.chainIds.base]:"ethereum",[n.chainIds.solanaMainnet]:"solana",[n.chainIds.solanaLocalnet]:"solana"},p=e=>{switch(n.getNonLocalhostChainId(e)){case n.chainIds.ethMainnet:return"ethereum";case n.chainIds.polygon:return"polygon-pos";case n.chainIds.bnbMainnet:return"binance-smart-chain";case n.chainIds.optimism:return"optimistic-ethereum";case n.chainIds.arbMainnet:return"arbitrum-one";case n.chainIds.avalanche:return"avalanche";case n.chainIds.base:return"base";case n.chainIds.solanaMainnet:case n.chainIds.solanaLocalnet:return"solana";default:return"ethereum"}},k={[n.chainIds.polygon]:"polygon-pos",[n.chainIds.arbMainnet]:"arbitrum-one",[n.chainIds.ethMainnet]:"ethereum",[n.chainIds.avalanche]:"avalanche",[n.chainIds.bnbMainnet]:"binance-smart-chain",[n.chainIds.optimism]:"optimistic-ethereum",[n.chainIds.base]:"base",[n.chainIds.solanaMainnet]:"solana",[n.chainIds.solanaLocalnet]:"solana"};exports.COINGECKO_API_KEY=i;exports.CoinGeckoChainLabels=k;exports.coingeckoPriceUrl=r;exports.coingeckoPriceUrl2=h;exports.coingeckoTokenListUrl=m;exports.getCoinByAddress=I;exports.getCoinById=d;exports.getCoinMarketChartByTokenId=g;exports.getCoingeckoIdForNativeTokens=u;exports.getCoingeckoPlatform=p;exports.proCoingeckoUrl=o;exports.proHeader=t;exports.searchBySymbol=l;
|
|
@@ -6,6 +6,7 @@ export declare const coingeckoPriceUrl2: (tokenAddress: string, platform: string
|
|
|
6
6
|
export declare const getCoinById: (tokenId: string) => string;
|
|
7
7
|
export declare const searchBySymbol: (tokenSymbol: string) => string;
|
|
8
8
|
export declare const getCoinByAddress: (currentNetwork: string, tokenAddress: string) => string;
|
|
9
|
+
export declare const getCoinMarketChartByTokenId: (tokenId: string, days: string) => string;
|
|
9
10
|
export declare const coingeckoTokenListUrl = "https://pro-api.coingecko.com/api/v3/coins/list";
|
|
10
11
|
export declare const getCoingeckoIdForNativeTokens: {
|
|
11
12
|
[x: number]: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { chainIds as e, getNonLocalhostChainId as
|
|
2
|
-
const
|
|
1
|
+
import { chainIds as e, getNonLocalhostChainId as c } from "./chains.constants.mjs";
|
|
2
|
+
const s = "https://api.coingecko.com/api/v3", o = "https://pro-api.coingecko.com/api/v3", r = typeof window < "u" ? "" : process.env.COINGECKO_API_KEY, l = "x-cg-pro-api-key", t = r ? o : s, h = (n) => `${t}/simple/price?ids=${n}&vs_currencies=USD,ETH`, m = (n, a) => `${t}/simple/token_price/${a}?contract_addresses=${n}&vs_currencies=USD`, p = (n) => `${t}/coins/${n}`, u = (n) => `${t}/search?query=${encodeURIComponent(n)}`, b = (n, a) => `${o}/coins/${n}/contract/${a}`, d = (n, a) => `${o}/coins/${n}/market_chart?vs_currency=usd&days=${a}&interval=daily`, g = `${o}/coins/list`, k = {
|
|
3
3
|
[e.arbMainnet]: "ethereum",
|
|
4
4
|
[e.localhost]: "ethereum",
|
|
5
5
|
[e.ethMainnet]: "ethereum",
|
|
@@ -10,8 +10,8 @@ const t = "https://api.coingecko.com/api/v3", c = "https://pro-api.coingecko.com
|
|
|
10
10
|
[e.base]: "ethereum",
|
|
11
11
|
[e.solanaMainnet]: "solana",
|
|
12
12
|
[e.solanaLocalnet]: "solana"
|
|
13
|
-
},
|
|
14
|
-
switch (
|
|
13
|
+
}, C = (n) => {
|
|
14
|
+
switch (c(n)) {
|
|
15
15
|
case e.ethMainnet:
|
|
16
16
|
return "ethereum";
|
|
17
17
|
case e.polygon:
|
|
@@ -32,7 +32,7 @@ const t = "https://api.coingecko.com/api/v3", c = "https://pro-api.coingecko.com
|
|
|
32
32
|
default:
|
|
33
33
|
return "ethereum";
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, y = {
|
|
36
36
|
[e.polygon]: "polygon-pos",
|
|
37
37
|
[e.arbMainnet]: "arbitrum-one",
|
|
38
38
|
[e.ethMainnet]: "ethereum",
|
|
@@ -44,16 +44,17 @@ const t = "https://api.coingecko.com/api/v3", c = "https://pro-api.coingecko.com
|
|
|
44
44
|
[e.solanaLocalnet]: "solana"
|
|
45
45
|
};
|
|
46
46
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
r as COINGECKO_API_KEY,
|
|
48
|
+
y as CoinGeckoChainLabels,
|
|
49
49
|
h as coingeckoPriceUrl,
|
|
50
50
|
m as coingeckoPriceUrl2,
|
|
51
51
|
g as coingeckoTokenListUrl,
|
|
52
52
|
b as getCoinByAddress,
|
|
53
53
|
p as getCoinById,
|
|
54
|
-
d as
|
|
55
|
-
k as
|
|
56
|
-
|
|
54
|
+
d as getCoinMarketChartByTokenId,
|
|
55
|
+
k as getCoingeckoIdForNativeTokens,
|
|
56
|
+
C as getCoingeckoPlatform,
|
|
57
|
+
o as proCoingeckoUrl,
|
|
57
58
|
l as proHeader,
|
|
58
59
|
u as searchBySymbol
|
|
59
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("ethers"),r=require("../externalABIs/index.cjs"),b=require("../externalABIs/ERC20.json.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("ethers"),r=require("../externalABIs/index.cjs"),b=require("../externalABIs/ERC20.json.cjs"),h=require("../externalABIs/IQuoterV2.json.cjs"),A=require("../externalABIs/IUniswapV3Factory.json.cjs"),w=require("../externalABIs/IUniswapV3Pool.json.cjs"),k=require("../externalABIs/UniswapV2PoolAbi.json.cjs"),i=require("./chains.constants.cjs"),e=require("../types/ethereum-network.types.cjs"),o={abi:A.default.abi},s={abi:w.default.abi},c={abi:k.default.abi},p={abi:h.default.abi},y={[e.ContractType.HinkalContract]:t=>({abi:t.hinkalABI,address:t.hinkalAddress}),[e.ContractType.HinkalHelperContract]:t=>({abi:t.hinkalHelperABI,address:t.hinkalHelperAddress}),[e.ContractType.AccessTokenContract]:t=>({abi:t.accessTokenABI,address:t.accessTokenAddress}),[e.ContractType.MerkleTreeContract]:()=>({abi:new n.ethers.utils.Interface(["function getRootHash() public view returns (uint256)"])}),[e.ContractType.UniswapV3FactoryContract]:()=>({abi:o.abi}),[e.ContractType.UniswapV3PoolContract]:()=>({abi:s.abi}),[e.ContractType.UniswapV2PoolContract]:()=>({abi:c.abi}),[e.ContractType.UniswapV3QuoterContract]:()=>({abi:p.abi}),[e.ContractType.ERC20Contract]:()=>({abi:b.default.abi}),[e.ContractType.ERC721Contract]:()=>({abi:r.ERC721ABI}),[e.ContractType.ERC1155Contract]:()=>({abi:r.ERC1155ABI}),[e.ContractType.WATokenContract]:t=>({abi:t.waTokenABI}),[e.ContractType.ContractWithNonces]:()=>({abi:new n.ethers.utils.Interface(["function nonces(address owner) external view returns (uint)"])}),[e.ContractType.PermitterContract]:t=>({abi:t.permitterABI,address:t.permitterAddress}),[e.ContractType.OneInchExternalActionContract]:t=>({address:t.oneInchExternalActionInstanceAddress}),[e.ContractType.HinkalWrapper]:t=>({abi:t.hinkalWrapperABI,address:t.hinkalWrapperAddress}),[e.ContractType.HinkalWrapper2]:t=>({abi:t.HinkalWrapper2ABI??t.hinkalWrapperABI,address:t.hinkalWrapper2Address??t.hinkalWrapperAddress}),[e.ContractType.DepositOnChainUtxos]:t=>({abi:t.depositOnChainUtxosExternalActionABI,address:t.depositOnChainUtxosExternalActionAddress})},T=t=>{const{contractData:d}=i.networkRegistry[i.getNonLocalhostChainId(t)],l=JSON.stringify(d.hinkalABI),a=new n.utils.Interface(l),C=a.getSighash("transact"),u=a.getSighash("transactWithExternalAction");return{hinkalInterface:a,transactMethodId:C,transactWithExternalActionMethodId:u,NewCommitment:"NewCommitment",NewCommitmentTopic:"0xc2e3bd2d00c3cf4d09298e5a0cfd317cf7a6e5bf15d467cfa805a91e1a4a221d"}};exports.contractMetadataMapping=y;exports.getHinkalParameters=T;exports.uniswapV2PoolData=c;exports.uniswapV3FactoryData=o;exports.uniswapV3PoolData=s;exports.uniswapV3QuoterData=p;
|
|
@@ -1,99 +1,92 @@
|
|
|
1
1
|
import { ethers as n, utils as c } from "ethers";
|
|
2
|
-
import { ERC721ABI as
|
|
2
|
+
import { ERC721ABI as p, ERC1155ABI as d } from "../externalABIs/index.mjs";
|
|
3
3
|
import l from "../externalABIs/ERC20.json.mjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import m from "../externalABIs/IQuoterV2.json.mjs";
|
|
5
|
+
import A from "../externalABIs/IUniswapV3Factory.json.mjs";
|
|
6
6
|
import b from "../externalABIs/IUniswapV3Pool.json.mjs";
|
|
7
|
-
import
|
|
8
|
-
import { networkRegistry as h, getNonLocalhostChainId as
|
|
9
|
-
import { ContractType as
|
|
10
|
-
const
|
|
11
|
-
abi:
|
|
7
|
+
import C from "../externalABIs/UniswapV2PoolAbi.json.mjs";
|
|
8
|
+
import { networkRegistry as h, getNonLocalhostChainId as I } from "./chains.constants.mjs";
|
|
9
|
+
import { ContractType as t } from "../types/ethereum-network.types.mjs";
|
|
10
|
+
const k = {
|
|
11
|
+
abi: A.abi
|
|
12
12
|
}, w = {
|
|
13
13
|
abi: b.abi
|
|
14
14
|
}, f = {
|
|
15
|
-
abi:
|
|
15
|
+
abi: C.abi
|
|
16
16
|
}, u = {
|
|
17
|
-
abi:
|
|
17
|
+
abi: m.abi
|
|
18
18
|
}, U = {
|
|
19
|
-
[
|
|
19
|
+
[t.HinkalContract]: (a) => ({
|
|
20
20
|
abi: a.hinkalABI,
|
|
21
21
|
address: a.hinkalAddress
|
|
22
22
|
}),
|
|
23
|
-
[
|
|
23
|
+
[t.HinkalHelperContract]: (a) => ({
|
|
24
24
|
abi: a.hinkalHelperABI,
|
|
25
25
|
address: a.hinkalHelperAddress
|
|
26
26
|
}),
|
|
27
|
-
[
|
|
27
|
+
[t.AccessTokenContract]: (a) => ({
|
|
28
28
|
abi: a.accessTokenABI,
|
|
29
29
|
address: a.accessTokenAddress
|
|
30
30
|
}),
|
|
31
|
-
[
|
|
31
|
+
[t.MerkleTreeContract]: () => ({
|
|
32
32
|
abi: new n.utils.Interface(["function getRootHash() public view returns (uint256)"])
|
|
33
33
|
}),
|
|
34
|
-
[
|
|
35
|
-
abi:
|
|
34
|
+
[t.UniswapV3FactoryContract]: () => ({
|
|
35
|
+
abi: k.abi
|
|
36
36
|
}),
|
|
37
|
-
[
|
|
37
|
+
[t.UniswapV3PoolContract]: () => ({
|
|
38
38
|
abi: w.abi
|
|
39
39
|
}),
|
|
40
|
-
[
|
|
40
|
+
[t.UniswapV2PoolContract]: () => ({
|
|
41
41
|
abi: f.abi
|
|
42
42
|
}),
|
|
43
|
-
[
|
|
43
|
+
[t.UniswapV3QuoterContract]: () => ({
|
|
44
44
|
abi: u.abi
|
|
45
45
|
}),
|
|
46
|
-
[
|
|
46
|
+
[t.ERC20Contract]: () => ({
|
|
47
47
|
abi: l.abi
|
|
48
48
|
}),
|
|
49
|
-
[
|
|
50
|
-
abi: d
|
|
51
|
-
}),
|
|
52
|
-
[e.ERC1155Contract]: () => ({
|
|
49
|
+
[t.ERC721Contract]: () => ({
|
|
53
50
|
abi: p
|
|
54
51
|
}),
|
|
55
|
-
[
|
|
52
|
+
[t.ERC1155Contract]: () => ({
|
|
53
|
+
abi: d
|
|
54
|
+
}),
|
|
55
|
+
[t.WATokenContract]: (a) => ({
|
|
56
56
|
abi: a.waTokenABI
|
|
57
57
|
}),
|
|
58
|
-
[
|
|
58
|
+
[t.ContractWithNonces]: () => ({
|
|
59
59
|
abi: new n.utils.Interface(["function nonces(address owner) external view returns (uint)"])
|
|
60
60
|
}),
|
|
61
|
-
[
|
|
61
|
+
[t.PermitterContract]: (a) => ({
|
|
62
62
|
abi: a.permitterABI,
|
|
63
63
|
address: a.permitterAddress
|
|
64
64
|
}),
|
|
65
|
-
[
|
|
65
|
+
[t.OneInchExternalActionContract]: (a) => ({
|
|
66
66
|
address: a.oneInchExternalActionInstanceAddress
|
|
67
67
|
}),
|
|
68
|
-
[
|
|
68
|
+
[t.HinkalWrapper]: (a) => ({
|
|
69
69
|
abi: a.hinkalWrapperABI,
|
|
70
70
|
address: a.hinkalWrapperAddress
|
|
71
71
|
}),
|
|
72
|
-
[
|
|
72
|
+
[t.HinkalWrapper2]: (a) => ({
|
|
73
73
|
// return old one if new one isn't available
|
|
74
74
|
abi: a.HinkalWrapper2ABI ?? a.hinkalWrapperABI,
|
|
75
75
|
address: a.hinkalWrapper2Address ?? a.hinkalWrapperAddress
|
|
76
76
|
}),
|
|
77
|
-
[
|
|
78
|
-
abi: a.HinkalStakeExternalActionABI,
|
|
79
|
-
address: a.hinkalStakeExternalActionAddress
|
|
80
|
-
}),
|
|
81
|
-
[e.HToken]: (a) => ({
|
|
82
|
-
abi: a.HTokenABI
|
|
83
|
-
}),
|
|
84
|
-
[e.DepositOnChainUtxos]: (a) => ({
|
|
77
|
+
[t.DepositOnChainUtxos]: (a) => ({
|
|
85
78
|
abi: a.depositOnChainUtxosExternalActionABI,
|
|
86
79
|
address: a.depositOnChainUtxosExternalActionAddress
|
|
87
80
|
})
|
|
88
81
|
}, y = (a) => {
|
|
89
|
-
const { contractData: i } = h[
|
|
90
|
-
return { hinkalInterface:
|
|
82
|
+
const { contractData: i } = h[I(a)], r = JSON.stringify(i.hinkalABI), e = new c.Interface(r), o = e.getSighash("transact"), s = e.getSighash("transactWithExternalAction");
|
|
83
|
+
return { hinkalInterface: e, transactMethodId: o, transactWithExternalActionMethodId: s, NewCommitment: "NewCommitment", NewCommitmentTopic: "0xc2e3bd2d00c3cf4d09298e5a0cfd317cf7a6e5bf15d467cfa805a91e1a4a221d" };
|
|
91
84
|
};
|
|
92
85
|
export {
|
|
93
86
|
U as contractMetadataMapping,
|
|
94
87
|
y as getHinkalParameters,
|
|
95
88
|
f as uniswapV2PoolData,
|
|
96
|
-
|
|
89
|
+
k as uniswapV3FactoryData,
|
|
97
90
|
w as uniswapV3PoolData,
|
|
98
91
|
u as uniswapV3QuoterData
|
|
99
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o="function approve(address spender, uint256 amount) external returns (bool)",N="function approve(address token, address spender, uint160 amount, uint48 expiration)",e="function setApprovalForAll(address operator, bool _approved) public",t="function approve(address to, uint256 tokenId) public";exports.APPROVE_FUNCTION_SIGNATURE=o;exports.NFT_APPROVE_FUNCTION_SIGNATURE=e;exports.NFT_APPROVE_SINGLE_FUNCTION_SIGNATURE=t;exports.PERMIT2_APPROVE_FUNCTION_SIGNATURE=N;
|
|
@@ -2,4 +2,3 @@ export declare const APPROVE_FUNCTION_SIGNATURE = "function approve(address spen
|
|
|
2
2
|
export declare const PERMIT2_APPROVE_FUNCTION_SIGNATURE = "function approve(address token, address spender, uint160 amount, uint48 expiration)";
|
|
3
3
|
export declare const NFT_APPROVE_FUNCTION_SIGNATURE = "function setApprovalForAll(address operator, bool _approved) public";
|
|
4
4
|
export declare const NFT_APPROVE_SINGLE_FUNCTION_SIGNATURE = "function approve(address to, uint256 tokenId) public";
|
|
5
|
-
export declare const TRANSFER_FUNCTION_SIGNATURE = "function transfer(address to, uint256 amount)";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = "function approve(address spender, uint256 amount) external returns (bool)", n = "function approve(address token, address spender, uint160 amount, uint48 expiration)", t = "function setApprovalForAll(address operator, bool _approved) public", e = "function approve(address to, uint256 tokenId) public";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
o as APPROVE_FUNCTION_SIGNATURE,
|
|
4
4
|
t as NFT_APPROVE_FUNCTION_SIGNATURE,
|
|
5
5
|
e as NFT_APPROVE_SINGLE_FUNCTION_SIGNATURE,
|
|
6
|
-
|
|
7
|
-
r as TRANSFER_FUNCTION_SIGNATURE
|
|
6
|
+
n as PERMIT2_APPROVE_FUNCTION_SIGNATURE
|
|
8
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={GITHUB:"https://github.com/Novelty-Today/privacy-first-mixer",TWITTER:"https://x.com/hinkal_protocol/",TELEGRAM:"https://t.me/hinkal_protocol/",DOCS:"/Whitepaper.pdf",AUDIT:"/Hinkal_final_Secure3_Audit_Report.pdf",AIPRISE:"https://aiprise.com/",DEMO:"https://www.loom.com/share/a03b147d930d4efdbb993b6bf72746ca",POLY_SCAN:"https://polygonscan.com/",ETH_SCAN:"https://etherscan.io/",BSC_SCAN:"https://bscscan.com/",ARB_SCAN:"https://arbiscan.io/",SNOW_TRACE:"https://snowtrace.io/",OPTIMISM_SCAN:"https://optimistic.etherscan.io/",ETHER_SCAN:"https://etherscan.io/",AVAX_SCAN:"https://snowtrace.io/",BASE_SCAN:"https://basescan.org/",MUMBAI_SCAN:"https://mumbai.polygonscan.com/",SOL_SCAN:"https://solscan.io/",OPENSEA_TEST:"https://testnets.opensea.io/",LINKTREE:"https://linktr.ee/hinkal_protocol",DISCORD:"https://discord.gg/xYGJTJbZy7",LINKEDIN:"https://www.linkedin.com/company/hinkal-protocol/",ARC_TESTNET_EXPLORER:"https://testnet.arcscan.app/",BLOG_WHITE:"https://x.com/hinkal_protocol/articles",DEFILAMA_WHITE:"https://defillama.com/protocol/hinkal",SOCIOGRAM_WHITE:"https://sociogram.org/Hinkal",HINKAL_DAPP:"https://app.hinkal.pro/",HINKAL_REWARDS:"https://rewards.hinkal.pro/",HINKAL_DOCS:"https://hinkal-team.gitbook.io/hinkal-protocol/",HINKAL_MEDIA_KIT:"https://hinkal.notion.site/Hinkal-Brand-Media-Kit-1bacbfea03a98051af40c8122158fa7a?pvs=73",LANDING_PAGE_URL:"https://hinkal.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={GITHUB:"https://github.com/Novelty-Today/privacy-first-mixer",TWITTER:"https://x.com/hinkal_protocol/",TELEGRAM:"https://t.me/hinkal_protocol/",DOCS:"/Whitepaper.pdf",AUDIT:"/Hinkal_final_Secure3_Audit_Report.pdf",AIPRISE:"https://aiprise.com/",DEMO:"https://www.loom.com/share/a03b147d930d4efdbb993b6bf72746ca",POLY_SCAN:"https://polygonscan.com/",ETH_SCAN:"https://etherscan.io/",BSC_SCAN:"https://bscscan.com/",ARB_SCAN:"https://arbiscan.io/",SNOW_TRACE:"https://snowtrace.io/",OPTIMISM_SCAN:"https://optimistic.etherscan.io/",ETHER_SCAN:"https://etherscan.io/",AVAX_SCAN:"https://snowtrace.io/",BASE_SCAN:"https://basescan.org/",MUMBAI_SCAN:"https://mumbai.polygonscan.com/",SOL_SCAN:"https://solscan.io/",OPENSEA_TEST:"https://testnets.opensea.io/",LINKTREE:"https://linktr.ee/hinkal_protocol",DISCORD:"https://discord.gg/xYGJTJbZy7",LINKEDIN:"https://www.linkedin.com/company/hinkal-protocol/",ARC_TESTNET_EXPLORER:"https://testnet.arcscan.app/",BLOG_WHITE:"https://x.com/hinkal_protocol/articles",DEFILAMA_WHITE:"https://defillama.com/protocol/hinkal",SOCIOGRAM_WHITE:"https://sociogram.org/Hinkal",HINKAL_DAPP:"https://app.hinkal.pro/",HINKAL_PRIVATE_SEND:"https://send.hinkal.io",HINKAL_REWARDS:"https://rewards.hinkal.pro/",HINKAL_DOCS:"https://hinkal-team.gitbook.io/hinkal-protocol/",HINKAL_MEDIA_KIT:"https://hinkal.notion.site/Hinkal-Brand-Media-Kit-1bacbfea03a98051af40c8122158fa7a?pvs=73",LANDING_PAGE_URL:"https://hinkal.io",HINKAL_SDK:"https://www.npmjs.com/package/@hinkal/common"};exports.mediaUrls=t;
|
|
@@ -26,8 +26,10 @@ export declare const mediaUrls: {
|
|
|
26
26
|
DEFILAMA_WHITE: string;
|
|
27
27
|
SOCIOGRAM_WHITE: string;
|
|
28
28
|
HINKAL_DAPP: string;
|
|
29
|
+
HINKAL_PRIVATE_SEND: string;
|
|
29
30
|
HINKAL_REWARDS: string;
|
|
30
31
|
HINKAL_DOCS: string;
|
|
31
32
|
HINKAL_MEDIA_KIT: string;
|
|
32
33
|
LANDING_PAGE_URL: string;
|
|
34
|
+
HINKAL_SDK: string;
|
|
33
35
|
};
|
|
@@ -26,10 +26,12 @@ const t = {
|
|
|
26
26
|
DEFILAMA_WHITE: "https://defillama.com/protocol/hinkal",
|
|
27
27
|
SOCIOGRAM_WHITE: "https://sociogram.org/Hinkal",
|
|
28
28
|
HINKAL_DAPP: "https://app.hinkal.pro/",
|
|
29
|
+
HINKAL_PRIVATE_SEND: "https://send.hinkal.io",
|
|
29
30
|
HINKAL_REWARDS: "https://rewards.hinkal.pro/",
|
|
30
31
|
HINKAL_DOCS: "https://hinkal-team.gitbook.io/hinkal-protocol/",
|
|
31
32
|
HINKAL_MEDIA_KIT: "https://hinkal.notion.site/Hinkal-Brand-Media-Kit-1bacbfea03a98051af40c8122158fa7a?pvs=73",
|
|
32
|
-
LANDING_PAGE_URL: "https://hinkal.
|
|
33
|
+
LANDING_PAGE_URL: "https://hinkal.io",
|
|
34
|
+
HINKAL_SDK: "https://www.npmjs.com/package/@hinkal/common"
|
|
33
35
|
};
|
|
34
36
|
export {
|
|
35
37
|
t as mediaUrls
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f="0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f="0x000000000022D473030F116dDEE9F6B43aC78BA3",a="0x4A7b5Da61326A6379179b40d00F57E5bbDC962c2",e="0xc36442b4a4522e871399cd717abdd847ab11fe88",s="0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768",d="0x0000000000001fF3684f28c67538d4D072C22734",r=[f,s,d,e,a],n="000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff";exports.allowanceHolder=d;exports.pancaceSwapPermit2Address=s;exports.permit2Address=f;exports.uniswap2Manager=a;exports.uniswap3Manager=e;exports.uniswapApprovalExtraCallData=n;exports.uniswapWorkaroundAddresses=r;
|
|
@@ -3,6 +3,5 @@ export declare const uniswap2Manager = "0x4A7b5Da61326A6379179b40d00F57E5bbDC962
|
|
|
3
3
|
export declare const uniswap3Manager = "0xc36442b4a4522e871399cd717abdd847ab11fe88";
|
|
4
4
|
export declare const pancaceSwapPermit2Address = "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768";
|
|
5
5
|
export declare const allowanceHolder = "0x0000000000001fF3684f28c67538d4D072C22734";
|
|
6
|
-
export declare const permit2Addresses: string[];
|
|
7
6
|
export declare const uniswapWorkaroundAddresses: string[];
|
|
8
7
|
export declare const uniswapApprovalExtraCallData = "000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff";
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
const f = "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
1
|
+
const f = "0x000000000022D473030F116dDEE9F6B43aC78BA3", a = "0x4A7b5Da61326A6379179b40d00F57E5bbDC962c2", c = "0xc36442b4a4522e871399cd717abdd847ab11fe88", d = "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768", s = "0x0000000000001fF3684f28c67538d4D072C22734", e = [
|
|
2
2
|
f,
|
|
3
|
-
|
|
3
|
+
d,
|
|
4
4
|
s,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
],
|
|
5
|
+
c,
|
|
6
|
+
a
|
|
7
|
+
], n = "000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff";
|
|
8
8
|
export {
|
|
9
9
|
s as allowanceHolder,
|
|
10
|
-
|
|
10
|
+
d as pancaceSwapPermit2Address,
|
|
11
11
|
f as permit2Address,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
n as uniswapWorkaroundAddresses
|
|
12
|
+
a as uniswap2Manager,
|
|
13
|
+
c as uniswap3Manager,
|
|
14
|
+
n as uniswapApprovalExtraCallData,
|
|
15
|
+
e as uniswapWorkaroundAddresses
|
|
17
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../types/circom-data.types.cjs");require("../types/transactions.types.cjs");require("../types/activities.types.cjs");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../types/circom-data.types.cjs");require("../types/transactions.types.cjs");require("../types/activities.types.cjs");const t=require("../types/new-rewards.type.cjs"),n={ROUTES:{checkKycStatus:"/check-kyc-status",getUserSignature:"/signature-request",startReclaimVerification:"/start-reclaim-verification",startUserVerification:"/start-aiprise-verification",zkMeAccessToken:"/zkMeAccessToken",getSnapshots:e=>`/snapshots/${e}`,getMerkleTreeSiblings:"/merkle-tree-siblings",callOdosAPI:"/OdosSwapData",callOneInchAPI:"/OneInchSwapData",callLifiAPI:"/LifiBridgeData",callOkxAPI:"/OkxSwapData",getOdosPriceForToken:(e,s)=>`/getOdosPriceForToken/${e}/${s}`,monitor:"/monitor",checkRisk:e=>`/check-risk/${e}`,isTxStateless:"/is-tx-stateless",simulateBatchTx:"/simulate-batch-tx",simulateVolatileTokenTransfer:"/simulate-volatile-token-transfer",getTokensInfo:"/get-tokens-info",getTokenData:e=>`/get-token-data/${e}`,getProxyAccounts:e=>`/get-proxy-accounts/${e}`,updateProxyAccounts:"/update-proxy-accounts",generateProoflessDepositLimitless:"/generate-proofless-deposit-limitless",generateMultiPaymentDepositLimitless:"/generate-multi-payment-deposit",generateAddAccessToken:"/generate-add-access-token",encodeMoonPayBuyUrl:"/moonpay-buy-url",getMoonPayQuote:"/moonpay-quote"}},c={getGasEstimate:(e,s,a,o)=>`/gas-estimation/${e}/${a}/${s}/${o}`,getTokenPrices:"/get-token-prices",TRANSACT:"/general-transact",TRANSACT_BATCH:"/general-transact-batch",SOLANA_TRANSACT:"/solana-transact",SOLANA_TRANSACT_BATCH:"/solana-transact-batch",getIdleRelay:"/get-idle-relay",emitTxPublicData:"/emit-tx-public-data",getScheduledTransactions:e=>`/scheduled-transactions/${e}`,storeUnspentUtxos:"/store-unspent-utxos",getUnspentUtxos:(e,s)=>`/get-unspent-utxos/${e}/${s}`,deleteUnspentUtxos:"/delete-unspent-utxos",getTokenPriceChartData:"/get-token-price-chart-data",getTokenPreviousDayPrices:"/get-token-previous-day-prices"},r=[t.TaskTypes.firstSwap,t.TaskTypes.reclaim,t.TaskTypes.dailySwap,t.TaskTypes.dailyDappTx,t.TaskTypes.createOrJoinBH,t.TaskTypes.shieldUnshield,t.TaskTypes.moneyComes],i={[t.TaskTypes.discord]:e=>`/verify/discord/${e}`,[t.TaskTypes.x]:e=>`/verify/x/${e}`,[t.TaskTypes.xReferral]:e=>`/verify/x-referral/${e}`,[t.TaskTypes.telegram]:e=>`/verify/telegram/${e}`,...Object.fromEntries(r.map(e=>[e,s=>`/verify/wallet-task/${s}`]))},l={createPresaleReferral:"/create-presale-referral",updatePresaleReferralList:"/update-presale-referral-list",generateTradingPoints:"/generate-trading-points",getBrotherhoodUsers:e=>`/brotherhoods/${e}/users`,getCurrentUserBrotherhoodUsers:e=>`/get-current-user-brotherhood-users/${e}`,editBrotherhood:"/edit-brotherhood",createBrotherhood:"/create-brotherhood",getCurrentUserBrotherhood:"/get-current-user-brotherhood",getPublicBrotherhoods:"/get-public-brotherhoods",getBrotherhood:e=>`/brotherhoods/${e}`,leaveBrotherhood:e=>`/brotherhoods/${e}/leave`,joinBrotherhood:e=>`/brotherhoods/${e}/join`,getUserAnalytics:"/get-user-analytics",getBrotherhoodAnalytics:"/brotherhood/analytics",connectRewardsUser:"/connect-user",updateRewardsUser:"/update-rewards-user",getSwapStreak:"/swap-streak",getUserCurrentLeaderboard:"/current-users-leaderboard",getBrotherhoodsLeaderboard:"/brotherhoods-leaderboard",getCurrentUserReferral:"/current-user-referral",submitReferralCode:"/refer-user",getCurrentUserAppliedReferralCode:"/current-user-applied-referral-code",submitAccessCode:"/submit-access-code",getAccessCodeBenefits:"/get-access-code-benefits",getTelegramCallback:"/auth/telegram/callback",generateAumPoints:"/generate-aum-points",getTasksProgress:e=>`/get-tasks-progress/${e}`,disconnectSocialNetwork:"/disconnect-social-network",getNftMultiplier:e=>`/get-nft-multiplier/${e}`,seedlessInit:"/seedless/init",seedlessBackup:"/seedless/backup",seedlessCheckPassword:"/seedless/check-password",seedlessStatus:"/seedless/status",seedlessSalt:"/seedless/salt"},d="https://wallet-playground.hinkal.pro",R="https://wallet-staging.hinkal.pro",T="https://wallet-prod.hinkal.pro",p="http://localhost:7072",u="/server",h="http://localhost:7073",g="/relayer",A="http://localhost:7074",_="/snapshot-server",E="http://localhost:7090",L="/data-server";exports.API_CONFIG=n;exports.DATA_SERVER_CONFIG=l;exports.DATA_SERVER_URL_ENDPOINT=L;exports.DATA_SERVER_URL_LOCAL=E;exports.PLAYGROUND_URL=d;exports.PRODUCTION_URL=T;exports.RELAYER_CONFIG=c;exports.RELAYER_URL_ENDPOINT=g;exports.RELAYER_URL_LOCAL=h;exports.SERVER_URL_ENDPOINT=u;exports.SERVER_URL_LOCAL=p;exports.SNAPSHOT_SERVER_URL_ENDPOINT=_;exports.SNAPSHOT_SERVER_URL_LOCAL=A;exports.STAGING_URL=R;exports.VERIFICATION_ROUTES=i;exports.WALLET_TASK_VERIFICATION_TYPES=r;
|
|
@@ -6,35 +6,27 @@ export declare const API_CONFIG: {
|
|
|
6
6
|
startReclaimVerification: string;
|
|
7
7
|
startUserVerification: string;
|
|
8
8
|
zkMeAccessToken: string;
|
|
9
|
-
getSnapshots: string;
|
|
9
|
+
getSnapshots: (chainId: number) => string;
|
|
10
10
|
getMerkleTreeSiblings: string;
|
|
11
11
|
callOdosAPI: string;
|
|
12
12
|
callOneInchAPI: string;
|
|
13
13
|
callLifiAPI: string;
|
|
14
14
|
callOkxAPI: string;
|
|
15
|
-
getOdosPriceForToken: (tokenAddress: string) => string;
|
|
16
|
-
userHasKyc: string;
|
|
17
|
-
restoreSnapshots: string;
|
|
15
|
+
getOdosPriceForToken: (chainId: number, tokenAddress: string) => string;
|
|
18
16
|
monitor: string;
|
|
19
17
|
checkRisk: (address: string) => string;
|
|
20
|
-
userHasPassword: (ethereumAddress: string) => string;
|
|
21
|
-
userRegisterPassword: string;
|
|
22
|
-
stakedYield: string;
|
|
23
|
-
getPublicWalletInformation: (ethereumAddress: string) => string;
|
|
24
|
-
getTokenApprovalAmount: string;
|
|
25
|
-
getTokenSpendsFromOrderMessage: string;
|
|
26
18
|
isTxStateless: string;
|
|
27
19
|
simulateBatchTx: string;
|
|
28
20
|
simulateVolatileTokenTransfer: string;
|
|
29
21
|
getTokensInfo: string;
|
|
30
22
|
getTokenData: (tokenSymbol: string) => string;
|
|
31
|
-
getBridgeProtocols: string;
|
|
32
|
-
lifiStatus: string;
|
|
33
23
|
getProxyAccounts: (secureKey: string) => string;
|
|
34
24
|
updateProxyAccounts: string;
|
|
35
25
|
generateProoflessDepositLimitless: string;
|
|
36
26
|
generateMultiPaymentDepositLimitless: string;
|
|
37
27
|
generateAddAccessToken: string;
|
|
28
|
+
encodeMoonPayBuyUrl: string;
|
|
29
|
+
getMoonPayQuote: string;
|
|
38
30
|
};
|
|
39
31
|
};
|
|
40
32
|
export declare const RELAYER_CONFIG: {
|
|
@@ -48,8 +40,10 @@ export declare const RELAYER_CONFIG: {
|
|
|
48
40
|
emitTxPublicData: string;
|
|
49
41
|
getScheduledTransactions: (hashedEthereumAddress: string) => string;
|
|
50
42
|
storeUnspentUtxos: string;
|
|
51
|
-
getUnspentUtxos: (hashedEthereumAddress: string) => string;
|
|
43
|
+
getUnspentUtxos: (chainId: number, hashedEthereumAddress: string) => string;
|
|
52
44
|
deleteUnspentUtxos: string;
|
|
45
|
+
getTokenPriceChartData: string;
|
|
46
|
+
getTokenPreviousDayPrices: string;
|
|
53
47
|
};
|
|
54
48
|
export declare const WALLET_TASK_VERIFICATION_TYPES: TaskTypes[];
|
|
55
49
|
export declare const VERIFICATION_ROUTES: Partial<Record<TaskTypes, (ethereumAddress: string) => string>>;
|
|
@@ -92,113 +86,11 @@ export declare const DATA_SERVER_CONFIG: {
|
|
|
92
86
|
export declare const PLAYGROUND_URL = "https://wallet-playground.hinkal.pro";
|
|
93
87
|
export declare const STAGING_URL = "https://wallet-staging.hinkal.pro";
|
|
94
88
|
export declare const PRODUCTION_URL = "https://wallet-prod.hinkal.pro";
|
|
89
|
+
export declare const SERVER_URL_LOCAL = "http://localhost:7072";
|
|
90
|
+
export declare const SERVER_URL_ENDPOINT = "/server";
|
|
91
|
+
export declare const RELAYER_URL_LOCAL = "http://localhost:7073";
|
|
92
|
+
export declare const RELAYER_URL_ENDPOINT = "/relayer";
|
|
93
|
+
export declare const SNAPSHOT_SERVER_URL_LOCAL = "http://localhost:7074";
|
|
94
|
+
export declare const SNAPSHOT_SERVER_URL_ENDPOINT = "/snapshot-server";
|
|
95
95
|
export declare const DATA_SERVER_URL_LOCAL = "http://localhost:7090";
|
|
96
|
-
export declare const DATA_SERVER_URL_ENDPOINT = "/
|
|
97
|
-
export declare const STAGING_SERVER_URLS: {
|
|
98
|
-
polygon: string;
|
|
99
|
-
arbMainnet: string;
|
|
100
|
-
ethMainnet: string;
|
|
101
|
-
bnbMainnet: string;
|
|
102
|
-
avalanche: string;
|
|
103
|
-
optimism: string;
|
|
104
|
-
base: string;
|
|
105
|
-
arcTestnet: string;
|
|
106
|
-
solanaMainnet: string;
|
|
107
|
-
localhost: string;
|
|
108
|
-
};
|
|
109
|
-
export declare const PLAYGROUND_SERVER_URLS: {
|
|
110
|
-
polygon: string;
|
|
111
|
-
arbMainnet: string;
|
|
112
|
-
ethMainnet: string;
|
|
113
|
-
bnbMainnet: string;
|
|
114
|
-
avalanche: string;
|
|
115
|
-
optimism: string;
|
|
116
|
-
base: string;
|
|
117
|
-
arcTestnet: string;
|
|
118
|
-
solanaMainnet: string;
|
|
119
|
-
localhost: string;
|
|
120
|
-
};
|
|
121
|
-
export declare const PRODUCTION_SERVER_URLS: {
|
|
122
|
-
polygon: string;
|
|
123
|
-
arbMainnet: string;
|
|
124
|
-
ethMainnet: string;
|
|
125
|
-
bnbMainnet: string;
|
|
126
|
-
avalanche: string;
|
|
127
|
-
optimism: string;
|
|
128
|
-
base: string;
|
|
129
|
-
arcTestnet: string;
|
|
130
|
-
solanaMainnet: string;
|
|
131
|
-
localhost: string;
|
|
132
|
-
};
|
|
133
|
-
export declare const STAGING_RELAYER_URLS: {
|
|
134
|
-
polygon: string;
|
|
135
|
-
arbMainnet: string;
|
|
136
|
-
ethMainnet: string;
|
|
137
|
-
bnbMainnet: string;
|
|
138
|
-
avalanche: string;
|
|
139
|
-
optimism: string;
|
|
140
|
-
base: string;
|
|
141
|
-
arcTestnet: string;
|
|
142
|
-
solanaMainnet: string;
|
|
143
|
-
localhost: string;
|
|
144
|
-
};
|
|
145
|
-
export declare const PLAYGROUND_RELAYER_URLS: {
|
|
146
|
-
polygon: string;
|
|
147
|
-
arbMainnet: string;
|
|
148
|
-
ethMainnet: string;
|
|
149
|
-
bnbMainnet: string;
|
|
150
|
-
avalanche: string;
|
|
151
|
-
optimism: string;
|
|
152
|
-
base: string;
|
|
153
|
-
arcTestnet: string;
|
|
154
|
-
solanaMainnet: string;
|
|
155
|
-
localhost: string;
|
|
156
|
-
};
|
|
157
|
-
export declare const PRODUCTION_RELAYER_URLS: {
|
|
158
|
-
polygon: string;
|
|
159
|
-
arbMainnet: string;
|
|
160
|
-
ethMainnet: string;
|
|
161
|
-
bnbMainnet: string;
|
|
162
|
-
avalanche: string;
|
|
163
|
-
optimism: string;
|
|
164
|
-
base: string;
|
|
165
|
-
arcTestnet: string;
|
|
166
|
-
solanaMainnet: string;
|
|
167
|
-
localhost: string;
|
|
168
|
-
};
|
|
169
|
-
export declare const PLAYGROUND_SNAPSHOT_SERVER_URLS: {
|
|
170
|
-
polygon: string;
|
|
171
|
-
arbMainnet: string;
|
|
172
|
-
ethMainnet: string;
|
|
173
|
-
bnbMainnet: string;
|
|
174
|
-
avalanche: string;
|
|
175
|
-
optimism: string;
|
|
176
|
-
base: string;
|
|
177
|
-
arcTestnet: string;
|
|
178
|
-
solanaMainnet: string;
|
|
179
|
-
localhost: string;
|
|
180
|
-
};
|
|
181
|
-
export declare const STAGING_SNAPSHOT_SERVER_URLS: {
|
|
182
|
-
polygon: string;
|
|
183
|
-
arbMainnet: string;
|
|
184
|
-
ethMainnet: string;
|
|
185
|
-
bnbMainnet: string;
|
|
186
|
-
avalanche: string;
|
|
187
|
-
optimism: string;
|
|
188
|
-
base: string;
|
|
189
|
-
arcTestnet: string;
|
|
190
|
-
solanaMainnet: string;
|
|
191
|
-
localhost: string;
|
|
192
|
-
};
|
|
193
|
-
export declare const PRODUCTION_SNAPSHOT_SERVER_URLS: {
|
|
194
|
-
polygon: string;
|
|
195
|
-
arbMainnet: string;
|
|
196
|
-
ethMainnet: string;
|
|
197
|
-
bnbMainnet: string;
|
|
198
|
-
avalanche: string;
|
|
199
|
-
optimism: string;
|
|
200
|
-
base: string;
|
|
201
|
-
arcTestnet: string;
|
|
202
|
-
solanaMainnet: string;
|
|
203
|
-
localhost: string;
|
|
204
|
-
};
|
|
96
|
+
export declare const DATA_SERVER_URL_ENDPOINT = "/data-server";
|