@hinkal/common 0.2.18 → 0.2.20
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 +14 -14
- package/API/API.mjs +92 -93
- 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/enclaveCalls.cjs +1 -1
- package/API/enclaveCalls.mjs +5 -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 +1 -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 +7 -2
- package/API/proxyAccountsCalls.mjs +27 -21
- 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/temporaryWalletCalls.cjs +1 -0
- package/API/temporaryWalletCalls.d.ts +13 -0
- package/API/temporaryWalletCalls.mjs +20 -0
- 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 +2 -2
- package/API/unspent-utxos-calls.mjs +17 -18
- package/README.md +239 -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 +1 -6
- package/constants/chains.constants.mjs +63 -50
- 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/deploy-data/deploy-data-solana.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-solana.json.mjs +28 -2
- 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/kyc.constants.cjs +1 -1
- package/constants/kyc.constants.mjs +39 -40
- package/constants/mediaUrls.constants.cjs +1 -1
- package/constants/mediaUrls.constants.d.ts +1 -0
- package/constants/mediaUrls.constants.mjs +2 -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 +20 -123
- package/constants/server.constants.mjs +39 -142
- 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/polygonRegistry.json.cjs +1 -1
- package/constants/token-data/polygonRegistry.json.mjs +4 -4
- package/constants/token-data/polygonRegistryFixed.json.cjs +1 -1
- package/constants/token-data/polygonRegistryFixed.json.mjs +4 -4
- package/constants/token-data/popularTokens.constants.cjs +1 -1
- package/constants/token-data/popularTokens.constants.mjs +0 -1
- package/data-structures/AccountActions/AccountActions.cjs +1 -0
- package/data-structures/AccountActions/AccountActions.d.ts +18 -0
- package/data-structures/AccountActions/AccountActions.mjs +78 -0
- package/data-structures/AccountActions/index.d.ts +1 -0
- package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.cjs +1 -1
- package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.mjs +68 -71
- package/data-structures/BlockchainEvent/BlockchainEvent.cjs +1 -0
- package/data-structures/BlockchainEvent/BlockchainEvent.d.ts +14 -0
- package/data-structures/BlockchainEvent/BlockchainEvent.mjs +41 -0
- package/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/data-structures/Hinkal/Hinkal.d.ts +45 -54
- package/data-structures/Hinkal/Hinkal.mjs +314 -341
- package/data-structures/Hinkal/IHinkal.d.ts +40 -52
- package/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
- package/data-structures/Hinkal/handleAutoDepositBack.d.ts +1 -1
- package/data-structures/Hinkal/handleAutoDepositBack.mjs +49 -50
- package/data-structures/Hinkal/hinkalActionReceive.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionReceive.mjs +29 -24
- package/data-structures/Hinkal/hinkalCheckTokenRegistry.cjs +1 -1
- package/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +20 -20
- package/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalDeposit.mjs +87 -85
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +78 -169
- package/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -0
- package/data-structures/Hinkal/hinkalDepositOnChainUtxos.d.ts +4 -0
- package/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +103 -0
- package/data-structures/Hinkal/hinkalDepostAndBridge.cjs +1 -0
- package/data-structures/Hinkal/hinkalDepostAndBridge.d.ts +4 -0
- package/data-structures/Hinkal/hinkalDepostAndBridge.mjs +214 -0
- package/data-structures/Hinkal/hinkalGetZkMeProvider.cjs +1 -1
- package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +4 -5
- package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
- package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +2 -2
- package/data-structures/Hinkal/hinkalPrivateWallet.mjs +113 -117
- 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 +40 -36
- package/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -1
- package/data-structures/Hinkal/hinkalProxyToPrivate.mjs +37 -32
- package/data-structures/Hinkal/hinkalSignSubAccount.cjs +1 -1
- package/data-structures/Hinkal/hinkalSignSubAccount.d.ts +1 -2
- package/data-structures/Hinkal/hinkalSignSubAccount.mjs +17 -15
- package/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +4 -3
- package/data-structures/Hinkal/hinkalSolanaDeposit.mjs +84 -95
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +2 -1
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +157 -155
- package/data-structures/Hinkal/hinkalSolanaProxySend.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySend.d.ts +2 -3
- package/data-structures/Hinkal/hinkalSolanaProxySend.mjs +43 -40
- package/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +71 -67
- package/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +63 -59
- package/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaSwap.d.ts +1 -1
- package/data-structures/Hinkal/hinkalSolanaSwap.mjs +81 -77
- 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 +71 -68
- package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSwap.mjs +71 -79
- package/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
- package/data-structures/Hinkal/hinkalTransfer.mjs +72 -71
- package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdraw.mjs +81 -79
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +108 -108
- package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
- package/data-structures/Hinkal/resetMerkleTrees.d.ts +1 -1
- package/data-structures/Hinkal/resetMerkleTrees.mjs +107 -53
- package/data-structures/IndexedDB/activity-db.cjs +1 -1
- package/data-structures/IndexedDB/activity-db.d.ts +1 -0
- package/data-structures/IndexedDB/activity-db.mjs +92 -76
- package/data-structures/IndexedDB/balances-db.cjs +1 -1
- package/data-structures/IndexedDB/balances-db.mjs +40 -37
- package/data-structures/IndexedDB/contact-db.cjs +1 -1
- package/data-structures/IndexedDB/contact-db.mjs +18 -15
- package/data-structures/IndexedDB/signatures-db.cjs +1 -1
- package/data-structures/IndexedDB/signatures-db.mjs +25 -40
- package/data-structures/PublicBalance/PublicBalanceWatcher.cjs +1 -0
- package/data-structures/PublicBalance/PublicBalanceWatcher.d.ts +20 -0
- package/data-structures/PublicBalance/PublicBalanceWatcher.mjs +124 -0
- package/data-structures/PublicBalance/SolanaPublicBalancerWatcher.cjs +1 -0
- package/data-structures/PublicBalance/SolanaPublicBalancerWatcher.d.ts +15 -0
- package/data-structures/PublicBalance/SolanaPublicBalancerWatcher.mjs +64 -0
- package/data-structures/PublicBalance/index.d.ts +2 -0
- package/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -1
- package/data-structures/TokenDBs/EventsPublicTokensDB.mjs +83 -85
- 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/crypto-keys/keys.cjs +1 -1
- package/data-structures/crypto-keys/keys.d.ts +0 -11
- package/data-structures/crypto-keys/keys.mjs +47 -107
- package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.d.ts +3 -2
- package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.mjs +9 -9
- package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.cjs +1 -1
- package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.d.ts +3 -2
- package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.mjs +5 -5
- package/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.d.ts +3 -2
- package/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.mjs +6 -6
- package/data-structures/event-service/evm/AbstractEventService.cjs +1 -1
- package/data-structures/event-service/evm/AbstractEventService.d.ts +4 -2
- package/data-structures/event-service/evm/AbstractEventService.mjs +19 -19
- package/data-structures/event-service/evm/AbstractNullifierSnapshotService.cjs +1 -1
- package/data-structures/event-service/evm/AbstractNullifierSnapshotService.d.ts +3 -3
- package/data-structures/event-service/evm/AbstractNullifierSnapshotService.mjs +6 -5
- package/data-structures/event-service/evm/AbstractSnapshotService.cjs +1 -1
- package/data-structures/event-service/evm/AbstractSnapshotService.d.ts +1 -2
- 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 +10 -5
- package/data-structures/event-service/evm/BlockchainEventEmitter.mjs +39 -35
- package/data-structures/event-service/evm/ClientBlockchainEventEmitter.cjs +1 -0
- package/data-structures/event-service/evm/ClientBlockchainEventEmitter.d.ts +11 -0
- package/data-structures/event-service/evm/ClientBlockchainEventEmitter.mjs +21 -0
- package/data-structures/event-service/evm/PollingBlockchainEventEmitter.cjs +1 -0
- package/data-structures/event-service/evm/PollingBlockchainEventEmitter.d.ts +6 -0
- package/data-structures/event-service/evm/PollingBlockchainEventEmitter.mjs +16 -0
- package/data-structures/event-service/helpers/ClientEventHelper.cjs +1 -0
- package/data-structures/event-service/helpers/ClientEventHelper.d.ts +11 -0
- package/data-structures/event-service/helpers/ClientEventHelper.mjs +26 -0
- package/data-structures/event-service/helpers/PollingEventHelper.cjs +1 -0
- package/data-structures/event-service/helpers/PollingEventHelper.d.ts +5 -0
- package/data-structures/event-service/helpers/PollingEventHelper.mjs +14 -0
- package/data-structures/event-service/index.d.ts +4 -0
- package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.d.ts +3 -2
- package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs +6 -6
- package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.d.ts +4 -3
- package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +8 -8
- package/data-structures/event-service/solana/AbstractSolanaEventService.cjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaEventService.d.ts +4 -10
- package/data-structures/event-service/solana/AbstractSolanaEventService.mjs +10 -7
- package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.cjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.d.ts +3 -2
- package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.mjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaSnapshotService.cjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaSnapshotService.d.ts +1 -2
- package/data-structures/event-service/solana/AbstractSolanaSnapshotService.mjs +1 -2
- package/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.cjs +1 -0
- package/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.d.ts +11 -0
- package/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.mjs +22 -0
- package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.cjs +1 -0
- package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.d.ts +6 -0
- package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.mjs +16 -0
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.cjs +1 -1
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +11 -16
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.mjs +64 -66
- package/data-structures/index.d.ts +3 -0
- 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 +6 -4
- package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.cjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.mjs +6 -4
- package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.mjs +6 -4
- package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.cjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.mjs +6 -4
- package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs +6 -4
- package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs +5 -4
- package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.cjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.mjs +6 -4
- package/data-structures/utxo/Utxo.cjs +1 -1
- package/data-structures/utxo/Utxo.d.ts +2 -7
- package/data-structures/utxo/Utxo.mjs +40 -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 +4 -3
- 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/getSolanaCalldataHash.cjs +1 -1
- package/functions/pre-transaction/getSolanaCalldataHash.mjs +22 -22
- 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/sendV0Transaction.cjs +1 -1
- package/functions/pre-transaction/sendV0Transaction.mjs +53 -50
- 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 +89 -80
- package/functions/private-wallet/emporium.helpers.cjs +1 -1
- package/functions/private-wallet/emporium.helpers.d.ts +4 -5
- package/functions/private-wallet/emporium.helpers.mjs +94 -109
- 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 +1 -2
- package/functions/snarkjs/constructEmporiumProof.mjs +89 -89
- 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 +58 -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/bytes32.utils.cjs +1 -1
- package/functions/utils/bytes32.utils.mjs +8 -7
- package/functions/utils/cacheFunctions.cjs +1 -1
- package/functions/utils/cacheFunctions.mjs +2 -2
- package/functions/utils/create-provider.cjs +1 -1
- package/functions/utils/create-provider.d.ts +1 -1
- package/functions/utils/create-provider.mjs +13 -9
- 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/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/index.d.ts +0 -1
- 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 +6 -13
- package/functions/utils/prepareHinkal.mjs +45 -72
- package/functions/utils/publicBalance.utils.cjs +1 -1
- package/functions/utils/publicBalance.utils.mjs +49 -54
- package/functions/utils/socket.utils.cjs +1 -0
- package/functions/utils/socket.utils.d.ts +1 -0
- package/functions/utils/socket.utils.mjs +12 -0
- package/functions/utils/string.utils.cjs +1 -1
- package/functions/utils/string.utils.d.ts +1 -0
- package/functions/utils/string.utils.mjs +18 -14
- 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 +2 -17
- package/functions/utils/walletBalances.utils.mjs +5 -36
- package/functions/web3/crypto.cjs +1 -0
- package/functions/web3/crypto.d.ts +1 -0
- package/functions/web3/crypto.mjs +7 -0
- 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 +107 -112
- 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 +38 -38
- package/functions/web3/fetchSolanaMerkleTreeRootHash.cjs +1 -1
- package/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +13 -10
- 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 +36 -40
- package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.d.ts +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.mjs +36 -34
- package/functions/web3/getContractMetadata.cjs +1 -1
- package/functions/web3/getContractMetadata.mjs +17 -22
- 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 +27 -27
- package/functions/web3/index.d.ts +1 -0
- 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 +941 -949
- package/package.json +3 -2
- package/providers/EthersProviderAdapter.cjs +1 -1
- package/providers/EthersProviderAdapter.d.ts +10 -17
- package/providers/EthersProviderAdapter.mjs +45 -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 +15 -9
- package/providers/prepareWagmiHinkal.cjs +1 -1
- package/providers/prepareWagmiHinkal.mjs +16 -9
- package/types/TransactionSimulator.types.d.ts +2 -9
- package/types/activities.types.d.ts +2 -0
- 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/bridging-tx.types.d.ts +17 -0
- package/types/cache.types.cjs +1 -1
- package/types/cache.types.d.ts +6 -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 +2 -8
- package/types/ethereum-network.types.mjs +1 -1
- package/types/events.types.cjs +1 -0
- package/types/events.types.d.ts +9 -0
- package/types/events.types.mjs +5 -0
- 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 +3 -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 +11 -3
- package/types/sandbox.types.cjs +1 -1
- package/types/sandbox.types.d.ts +10 -39
- package/types/sandbox.types.mjs +2 -2
- package/types/session.types.d.ts +2 -0
- package/types/solana.types.d.ts +9 -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/token.types.d.ts +5 -0
- 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/kyc/authentoHelper.cjs +0 -1
- package/functions/kyc/authentoHelper.d.ts +0 -12
- package/functions/kyc/authentoHelper.mjs +0 -30
- 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/get-hinkal-approvals.cjs +0 -1
- package/functions/utils/get-hinkal-approvals.d.ts +0 -3
- package/functions/utils/get-hinkal-approvals.mjs +0 -38
- 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
|
-
import { TaskTypes } from '../types';
|
|
1
|
+
import { EventCategory, TaskTypes } from '../types';
|
|
2
2
|
export declare const API_CONFIG: {
|
|
3
3
|
ROUTES: {
|
|
4
4
|
checkKycStatus: string;
|
|
@@ -6,35 +6,32 @@ 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
|
+
getSnapshotServerNamespace: (chainId: number, eventCategory: EventCategory) => string;
|
|
11
12
|
callOdosAPI: string;
|
|
12
13
|
callOneInchAPI: string;
|
|
13
14
|
callLifiAPI: string;
|
|
14
15
|
callOkxAPI: string;
|
|
15
|
-
getOdosPriceForToken: (tokenAddress: string) => string;
|
|
16
|
-
userHasKyc: string;
|
|
17
|
-
restoreSnapshots: string;
|
|
16
|
+
getOdosPriceForToken: (chainId: number, tokenAddress: string) => string;
|
|
18
17
|
monitor: string;
|
|
19
18
|
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
19
|
isTxStateless: string;
|
|
27
20
|
simulateBatchTx: string;
|
|
28
21
|
simulateVolatileTokenTransfer: string;
|
|
29
22
|
getTokensInfo: string;
|
|
30
23
|
getTokenData: (tokenSymbol: string) => string;
|
|
31
|
-
getBridgeProtocols: string;
|
|
32
|
-
lifiStatus: string;
|
|
33
24
|
getProxyAccounts: (secureKey: string) => string;
|
|
34
25
|
updateProxyAccounts: string;
|
|
26
|
+
isVersion1Account: (secureKey: string) => string;
|
|
35
27
|
generateProoflessDepositLimitless: string;
|
|
36
28
|
generateMultiPaymentDepositLimitless: string;
|
|
37
29
|
generateAddAccessToken: string;
|
|
30
|
+
getTemporaryWalletNonces: (hashedEthereumAddress: string, chainId: number) => string;
|
|
31
|
+
addTemporaryWalletNonce: string;
|
|
32
|
+
removeTemporaryWalletNonce: string;
|
|
33
|
+
encodeMoonPayBuyUrl: string;
|
|
34
|
+
getMoonPayQuote: string;
|
|
38
35
|
};
|
|
39
36
|
};
|
|
40
37
|
export declare const RELAYER_CONFIG: {
|
|
@@ -48,8 +45,10 @@ export declare const RELAYER_CONFIG: {
|
|
|
48
45
|
emitTxPublicData: string;
|
|
49
46
|
getScheduledTransactions: (hashedEthereumAddress: string) => string;
|
|
50
47
|
storeUnspentUtxos: string;
|
|
51
|
-
getUnspentUtxos: (hashedEthereumAddress: string) => string;
|
|
48
|
+
getUnspentUtxos: (chainId: number, hashedEthereumAddress: string) => string;
|
|
52
49
|
deleteUnspentUtxos: string;
|
|
50
|
+
getTokenPriceChartData: string;
|
|
51
|
+
getTokenPreviousDayPrices: string;
|
|
53
52
|
};
|
|
54
53
|
export declare const WALLET_TASK_VERIFICATION_TYPES: TaskTypes[];
|
|
55
54
|
export declare const VERIFICATION_ROUTES: Partial<Record<TaskTypes, (ethereumAddress: string) => string>>;
|
|
@@ -92,113 +91,11 @@ export declare const DATA_SERVER_CONFIG: {
|
|
|
92
91
|
export declare const PLAYGROUND_URL = "https://wallet-playground.hinkal.pro";
|
|
93
92
|
export declare const STAGING_URL = "https://wallet-staging.hinkal.pro";
|
|
94
93
|
export declare const PRODUCTION_URL = "https://wallet-prod.hinkal.pro";
|
|
94
|
+
export declare const SERVER_URL_LOCAL = "http://localhost:7072";
|
|
95
|
+
export declare const SERVER_URL_ENDPOINT = "/server";
|
|
96
|
+
export declare const RELAYER_URL_LOCAL = "http://localhost:7073";
|
|
97
|
+
export declare const RELAYER_URL_ENDPOINT = "/relayer";
|
|
98
|
+
export declare const SNAPSHOT_SERVER_URL_LOCAL = "http://localhost:7074";
|
|
99
|
+
export declare const SNAPSHOT_SERVER_URL_ENDPOINT = "/snapshot-server";
|
|
95
100
|
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
|
-
};
|
|
101
|
+
export declare const DATA_SERVER_URL_ENDPOINT = "/data-server";
|
|
@@ -2,45 +2,42 @@ import "../types/circom-data.types.mjs";
|
|
|
2
2
|
import "../types/transactions.types.mjs";
|
|
3
3
|
import "../types/activities.types.mjs";
|
|
4
4
|
import { TaskTypes as r } from "../types/new-rewards.type.mjs";
|
|
5
|
-
const
|
|
5
|
+
const d = {
|
|
6
6
|
ROUTES: {
|
|
7
7
|
checkKycStatus: "/check-kyc-status",
|
|
8
8
|
getUserSignature: "/signature-request",
|
|
9
9
|
startReclaimVerification: "/start-reclaim-verification",
|
|
10
10
|
startUserVerification: "/start-aiprise-verification",
|
|
11
11
|
zkMeAccessToken: "/zkMeAccessToken",
|
|
12
|
-
getSnapshots:
|
|
12
|
+
getSnapshots: (e) => `/snapshots/${e}`,
|
|
13
13
|
getMerkleTreeSiblings: "/merkle-tree-siblings",
|
|
14
|
+
getSnapshotServerNamespace: (e, t) => `/events-${e}-${t}`,
|
|
14
15
|
callOdosAPI: "/OdosSwapData",
|
|
15
16
|
callOneInchAPI: "/OneInchSwapData",
|
|
16
17
|
callLifiAPI: "/LifiBridgeData",
|
|
17
18
|
callOkxAPI: "/OkxSwapData",
|
|
18
|
-
getOdosPriceForToken: (e) => `/getOdosPriceForToken/${e}`,
|
|
19
|
-
userHasKyc: "/user-has-kyc",
|
|
20
|
-
restoreSnapshots: "/snapshots/restore",
|
|
19
|
+
getOdosPriceForToken: (e, t) => `/getOdosPriceForToken/${e}/${t}`,
|
|
21
20
|
monitor: "/monitor",
|
|
22
21
|
checkRisk: (e) => `/check-risk/${e}`,
|
|
23
|
-
userHasPassword: (e) => `/user-has-password/${e}`,
|
|
24
|
-
userRegisterPassword: "/user-register-password",
|
|
25
|
-
stakedYield: "/staked-yield",
|
|
26
|
-
getPublicWalletInformation: (e) => `/get-public-wallet-data/${e}`,
|
|
27
|
-
getTokenApprovalAmount: "/get-token-approval-amount-from-html",
|
|
28
|
-
getTokenSpendsFromOrderMessage: "/get-token-spends-from-order-message",
|
|
29
22
|
isTxStateless: "/is-tx-stateless",
|
|
30
23
|
simulateBatchTx: "/simulate-batch-tx",
|
|
31
24
|
simulateVolatileTokenTransfer: "/simulate-volatile-token-transfer",
|
|
32
25
|
getTokensInfo: "/get-tokens-info",
|
|
33
26
|
getTokenData: (e) => `/get-token-data/${e}`,
|
|
34
|
-
getBridgeProtocols: "/get-bridge-protocols",
|
|
35
|
-
lifiStatus: "/LifiStatus",
|
|
36
27
|
getProxyAccounts: (e) => `/get-proxy-accounts/${e}`,
|
|
37
28
|
updateProxyAccounts: "/update-proxy-accounts",
|
|
29
|
+
isVersion1Account: (e) => `/is-version1-account/${e}`,
|
|
38
30
|
generateProoflessDepositLimitless: "/generate-proofless-deposit-limitless",
|
|
39
31
|
generateMultiPaymentDepositLimitless: "/generate-multi-payment-deposit",
|
|
40
|
-
generateAddAccessToken: "/generate-add-access-token"
|
|
32
|
+
generateAddAccessToken: "/generate-add-access-token",
|
|
33
|
+
getTemporaryWalletNonces: (e, t) => `/temporary-wallets/nonces/${e}/${t}`,
|
|
34
|
+
addTemporaryWalletNonce: "/temporary-wallets/add-nonce",
|
|
35
|
+
removeTemporaryWalletNonce: "/temporary-wallets/remove-nonce",
|
|
36
|
+
encodeMoonPayBuyUrl: "/moonpay-buy-url",
|
|
37
|
+
getMoonPayQuote: "/moonpay-quote"
|
|
41
38
|
}
|
|
42
|
-
},
|
|
43
|
-
getGasEstimate: (e,
|
|
39
|
+
}, p = {
|
|
40
|
+
getGasEstimate: (e, t, s, o) => `/gas-estimation/${e}/${s}/${t}/${o}`,
|
|
44
41
|
getTokenPrices: "/get-token-prices",
|
|
45
42
|
TRANSACT: "/general-transact",
|
|
46
43
|
TRANSACT_BATCH: "/general-transact-batch",
|
|
@@ -50,9 +47,11 @@ const b = {
|
|
|
50
47
|
emitTxPublicData: "/emit-tx-public-data",
|
|
51
48
|
getScheduledTransactions: (e) => `/scheduled-transactions/${e}`,
|
|
52
49
|
storeUnspentUtxos: "/store-unspent-utxos",
|
|
53
|
-
getUnspentUtxos: (e) => `/get-unspent-utxos/${e}`,
|
|
54
|
-
deleteUnspentUtxos: "/delete-unspent-utxos"
|
|
55
|
-
|
|
50
|
+
getUnspentUtxos: (e, t) => `/get-unspent-utxos/${e}/${t}`,
|
|
51
|
+
deleteUnspentUtxos: "/delete-unspent-utxos",
|
|
52
|
+
getTokenPriceChartData: "/get-token-price-chart-data",
|
|
53
|
+
getTokenPreviousDayPrices: "/get-token-previous-day-prices"
|
|
54
|
+
}, a = [
|
|
56
55
|
r.firstSwap,
|
|
57
56
|
r.reclaim,
|
|
58
57
|
r.dailySwap,
|
|
@@ -60,18 +59,18 @@ const b = {
|
|
|
60
59
|
r.createOrJoinBH,
|
|
61
60
|
r.shieldUnshield,
|
|
62
61
|
r.moneyComes
|
|
63
|
-
],
|
|
62
|
+
], h = {
|
|
64
63
|
[r.discord]: (e) => `/verify/discord/${e}`,
|
|
65
64
|
[r.x]: (e) => `/verify/x/${e}`,
|
|
66
65
|
[r.xReferral]: (e) => `/verify/x-referral/${e}`,
|
|
67
66
|
[r.telegram]: (e) => `/verify/telegram/${e}`,
|
|
68
67
|
...Object.fromEntries(
|
|
69
|
-
|
|
68
|
+
a.map((e) => [
|
|
70
69
|
e,
|
|
71
|
-
(
|
|
70
|
+
(t) => `/verify/wallet-task/${t}`
|
|
72
71
|
])
|
|
73
72
|
)
|
|
74
|
-
},
|
|
73
|
+
}, g = {
|
|
75
74
|
createPresaleReferral: "/create-presale-referral",
|
|
76
75
|
updatePresaleReferralList: "/update-presale-referral-list",
|
|
77
76
|
generateTradingPoints: "/generate-trading-points",
|
|
@@ -106,124 +105,22 @@ const b = {
|
|
|
106
105
|
seedlessCheckPassword: "/seedless/check-password",
|
|
107
106
|
seedlessStatus: "/seedless/status",
|
|
108
107
|
seedlessSalt: "/seedless/salt"
|
|
109
|
-
},
|
|
110
|
-
polygon: `${a}/polygon-server`,
|
|
111
|
-
arbMainnet: `${a}/arbMainnet-server`,
|
|
112
|
-
ethMainnet: `${a}/ethMainnet-server`,
|
|
113
|
-
bnbMainnet: `${a}/bnbMainnet-server`,
|
|
114
|
-
avalanche: `${a}/avalanche-server`,
|
|
115
|
-
optimism: `${a}/optimism-server`,
|
|
116
|
-
base: `${a}/base-server`,
|
|
117
|
-
arcTestnet: `${a}/arcTestnet-server`,
|
|
118
|
-
solanaMainnet: `${a}/solanaMainnet-server`,
|
|
119
|
-
localhost: "http://localhost:7072"
|
|
120
|
-
}, T = {
|
|
121
|
-
polygon: `${t}/polygon-server`,
|
|
122
|
-
arbMainnet: `${t}/arbMainnet-server`,
|
|
123
|
-
ethMainnet: `${t}/ethMainnet-server`,
|
|
124
|
-
bnbMainnet: `${t}/bnbMainnet-server`,
|
|
125
|
-
avalanche: `${t}/avalanche-server`,
|
|
126
|
-
optimism: `${t}/optimism-server`,
|
|
127
|
-
base: `${t}/base-server`,
|
|
128
|
-
arcTestnet: `${t}/arcTestnet-server`,
|
|
129
|
-
solanaMainnet: `${t}/solanaMainnet-server`,
|
|
130
|
-
localhost: "http://localhost:7072"
|
|
131
|
-
}, y = {
|
|
132
|
-
polygon: `${s}/polygon-server`,
|
|
133
|
-
arbMainnet: `${s}/arbMainnet-server`,
|
|
134
|
-
ethMainnet: `${s}/ethMainnet-server`,
|
|
135
|
-
bnbMainnet: `${s}/bnbMainnet-server`,
|
|
136
|
-
avalanche: `${s}/avalanche-server`,
|
|
137
|
-
optimism: `${s}/optimism-server`,
|
|
138
|
-
base: `${s}/base-server`,
|
|
139
|
-
arcTestnet: `${s}/arcTestnet-server`,
|
|
140
|
-
solanaMainnet: `${s}/solanaMainnet-server`,
|
|
141
|
-
localhost: "http://localhost:7072"
|
|
142
|
-
}, R = {
|
|
143
|
-
polygon: `${a}/polygon-relayer`,
|
|
144
|
-
arbMainnet: `${a}/arbMainnet-relayer`,
|
|
145
|
-
ethMainnet: `${a}/ethMainnet-relayer`,
|
|
146
|
-
bnbMainnet: `${a}/bnbMainnet-relayer`,
|
|
147
|
-
avalanche: `${a}/avalanche-relayer`,
|
|
148
|
-
optimism: `${a}/optimism-relayer`,
|
|
149
|
-
base: `${a}/base-relayer`,
|
|
150
|
-
arcTestnet: `${a}/arcTestnet-relayer`,
|
|
151
|
-
solanaMainnet: `${a}/solanaMainnet-relayer`,
|
|
152
|
-
localhost: "http://localhost:7073"
|
|
153
|
-
}, A = {
|
|
154
|
-
polygon: `${t}/polygon-relayer`,
|
|
155
|
-
arbMainnet: `${t}/arbMainnet-relayer`,
|
|
156
|
-
ethMainnet: `${t}/ethMainnet-relayer`,
|
|
157
|
-
bnbMainnet: `${t}/bnbMainnet-relayer`,
|
|
158
|
-
avalanche: `${t}/avalanche-relayer`,
|
|
159
|
-
optimism: `${t}/optimism-relayer`,
|
|
160
|
-
base: `${t}/base-relayer`,
|
|
161
|
-
arcTestnet: `${t}/arcTestnet-relayer`,
|
|
162
|
-
solanaMainnet: `${t}/solanaMainnet-relayer`,
|
|
163
|
-
localhost: "http://localhost:7073"
|
|
164
|
-
}, S = {
|
|
165
|
-
polygon: `${s}/polygon-relayer`,
|
|
166
|
-
arbMainnet: `${s}/arbMainnet-relayer`,
|
|
167
|
-
ethMainnet: `${s}/ethMainnet-relayer`,
|
|
168
|
-
bnbMainnet: `${s}/bnbMainnet-relayer`,
|
|
169
|
-
avalanche: `${s}/avalanche-relayer`,
|
|
170
|
-
optimism: `${s}/optimism-relayer`,
|
|
171
|
-
base: `${s}/base-relayer`,
|
|
172
|
-
arcTestnet: `${s}/arcTestnet-relayer`,
|
|
173
|
-
solanaMainnet: `${s}/solanaMainnet-relayer`,
|
|
174
|
-
localhost: "http://localhost:7073"
|
|
175
|
-
}, k = {
|
|
176
|
-
polygon: `${t}/polygon-snapshot-server`,
|
|
177
|
-
arbMainnet: `${t}/arbMainnet-snapshot-server`,
|
|
178
|
-
ethMainnet: `${t}/ethMainnet-snapshot-server`,
|
|
179
|
-
bnbMainnet: `${t}/bnbMainnet-snapshot-server`,
|
|
180
|
-
avalanche: `${t}/avalanche-snapshot-server`,
|
|
181
|
-
optimism: `${t}/optimism-snapshot-server`,
|
|
182
|
-
base: `${t}/base-snapshot-server`,
|
|
183
|
-
arcTestnet: `${t}/arcTestnet-snapshot-server`,
|
|
184
|
-
solanaMainnet: `${t}/solanaMainnet-snapshot-server`,
|
|
185
|
-
localhost: "http://localhost:7074"
|
|
186
|
-
}, U = {
|
|
187
|
-
polygon: `${a}/polygon-snapshot-server`,
|
|
188
|
-
arbMainnet: `${a}/arbMainnet-snapshot-server`,
|
|
189
|
-
ethMainnet: `${a}/ethMainnet-snapshot-server`,
|
|
190
|
-
bnbMainnet: `${a}/bnbMainnet-snapshot-server`,
|
|
191
|
-
avalanche: `${a}/avalanche-snapshot-server`,
|
|
192
|
-
optimism: `${a}/optimism-snapshot-server`,
|
|
193
|
-
base: `${a}/base-snapshot-server`,
|
|
194
|
-
arcTestnet: `${a}/arcTestnet-snapshot-server`,
|
|
195
|
-
solanaMainnet: `${a}/solanaMainnet-snapshot-server`,
|
|
196
|
-
localhost: "http://localhost:7074"
|
|
197
|
-
}, _ = {
|
|
198
|
-
polygon: `${s}/polygon-snapshot-server`,
|
|
199
|
-
arbMainnet: `${s}/arbMainnet-snapshot-server`,
|
|
200
|
-
ethMainnet: `${s}/ethMainnet-snapshot-server`,
|
|
201
|
-
bnbMainnet: `${s}/bnbMainnet-snapshot-server`,
|
|
202
|
-
avalanche: `${s}/avalanche-snapshot-server`,
|
|
203
|
-
optimism: `${s}/optimism-snapshot-server`,
|
|
204
|
-
base: `${s}/base-snapshot-server`,
|
|
205
|
-
arcTestnet: `${s}/arcTestnet-snapshot-server`,
|
|
206
|
-
solanaMainnet: `${s}/solanaMainnet-snapshot-server`,
|
|
207
|
-
localhost: "http://localhost:7074"
|
|
208
|
-
};
|
|
108
|
+
}, u = "https://wallet-playground.hinkal.pro", T = "https://wallet-staging.hinkal.pro", A = "https://wallet-prod.hinkal.pro", R = "http://localhost:7072", m = "/server", k = "http://localhost:7073", S = "/relayer", y = "http://localhost:7074", f = "/snapshot-server", U = "http://localhost:7090", _ = "/data-server";
|
|
209
109
|
export {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
a as STAGING_URL,
|
|
227
|
-
g as VERIFICATION_ROUTES,
|
|
228
|
-
i as WALLET_TASK_VERIFICATION_TYPES
|
|
110
|
+
d as API_CONFIG,
|
|
111
|
+
g as DATA_SERVER_CONFIG,
|
|
112
|
+
_ as DATA_SERVER_URL_ENDPOINT,
|
|
113
|
+
U as DATA_SERVER_URL_LOCAL,
|
|
114
|
+
u as PLAYGROUND_URL,
|
|
115
|
+
A as PRODUCTION_URL,
|
|
116
|
+
p as RELAYER_CONFIG,
|
|
117
|
+
S as RELAYER_URL_ENDPOINT,
|
|
118
|
+
k as RELAYER_URL_LOCAL,
|
|
119
|
+
m as SERVER_URL_ENDPOINT,
|
|
120
|
+
R as SERVER_URL_LOCAL,
|
|
121
|
+
f as SNAPSHOT_SERVER_URL_ENDPOINT,
|
|
122
|
+
y as SNAPSHOT_SERVER_URL_LOCAL,
|
|
123
|
+
T as STAGING_URL,
|
|
124
|
+
h as VERIFICATION_ROUTES,
|
|
125
|
+
a as WALLET_TASK_VERIFICATION_TYPES
|
|
229
126
|
};
|