@hinkal/common 0.2.20 → 0.2.22
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 +88 -87
- package/API/admin-calls.cjs +1 -1
- package/API/admin-calls.d.ts +1 -1
- package/API/admin-calls.mjs +4 -4
- package/API/ai-calls.cjs +1 -0
- package/API/ai-calls.d.ts +17 -0
- package/API/ai-calls.mjs +21 -0
- 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 +11 -10
- package/API/callRelayer.cjs +1 -1
- package/API/callRelayer.d.ts +5 -6
- 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/deposit-and-withdraw-status-calls.cjs +1 -0
- package/API/deposit-and-withdraw-status-calls.d.ts +20 -0
- package/API/deposit-and-withdraw-status-calls.mjs +18 -0
- package/API/duneAPI.cjs +1 -0
- package/API/duneAPI.d.ts +11 -0
- package/API/duneAPI.mjs +25 -0
- package/API/enclaveCalls.cjs +1 -1
- package/API/enclaveCalls.mjs +4 -5
- 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/getBridgeProtocols.cjs +1 -0
- package/API/getBridgeProtocols.d.ts +7 -0
- package/API/getBridgeProtocols.mjs +8 -0
- package/API/getGasEstimates.cjs +1 -1
- package/API/getGasEstimates.mjs +9 -9
- package/API/getLifiStatus.cjs +1 -0
- package/API/getLifiStatus.d.ts +24 -0
- package/API/getLifiStatus.mjs +15 -0
- package/API/getRelayerURL.cjs +1 -0
- package/API/getRelayerURL.d.ts +1 -0
- package/API/getRelayerURL.mjs +10 -0
- package/API/getServerURL.cjs +1 -1
- package/API/getServerURL.d.ts +3 -3
- package/API/getServerURL.mjs +67 -51
- package/API/getTokenPrice.cjs +1 -1
- package/API/getTokenPrice.d.ts +0 -5
- package/API/getTokenPrice.mjs +7 -14
- package/API/index.d.ts +3 -1
- package/API/is-tx-stateless.cjs +1 -1
- package/API/is-tx-stateless.d.ts +1 -1
- package/API/is-tx-stateless.mjs +12 -10
- package/API/kycCalls.cjs +1 -1
- package/API/kycCalls.d.ts +8 -4
- package/API/kycCalls.mjs +26 -23
- package/API/passwordCalls.cjs +1 -0
- package/API/passwordCalls.d.ts +9 -0
- package/API/passwordCalls.mjs +13 -0
- package/API/proxyAccountsCalls.cjs +1 -1
- package/API/proxyAccountsCalls.d.ts +2 -7
- package/API/proxyAccountsCalls.mjs +21 -27
- package/API/relayCalls.cjs +1 -1
- package/API/relayCalls.mjs +4 -4
- package/API/restoreSnapshots.cjs +1 -0
- package/API/restoreSnapshots.d.ts +1 -0
- package/API/restoreSnapshots.mjs +10 -0
- package/API/scheduled-transactions-calls.cjs +1 -1
- package/API/scheduled-transactions-calls.d.ts +9 -1
- package/API/scheduled-transactions-calls.mjs +9 -5
- package/API/simulate-batch-tx.cjs +1 -1
- package/API/simulate-batch-tx.d.ts +2 -2
- package/API/simulate-batch-tx.mjs +6 -7
- package/API/solana-calls.cjs +1 -1
- package/API/solana-calls.d.ts +3 -6
- package/API/solana-calls.mjs +15 -15
- package/API/temporaryWalletCalls.cjs +1 -1
- package/API/temporaryWalletCalls.mjs +19 -13
- package/API/token-calls.cjs +1 -1
- package/API/token-calls.mjs +5 -6
- package/README.md +61 -32
- package/constants/chains.constants.cjs +1 -1
- package/constants/chains.constants.d.ts +6 -0
- package/constants/chains.constants.mjs +52 -58
- package/constants/coingecko.constants.cjs +1 -1
- package/constants/coingecko.constants.d.ts +0 -1
- package/constants/coingecko.constants.mjs +10 -11
- package/constants/deploy-data/deploy-data-solana.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-solana.json.mjs +2 -28
- package/constants/function-signatures.constants.cjs +1 -1
- package/constants/function-signatures.constants.d.ts +1 -0
- package/constants/function-signatures.constants.mjs +4 -3
- package/constants/kyc.constants.cjs +1 -1
- package/constants/kyc.constants.mjs +40 -39
- package/constants/mediaUrls.constants.cjs +1 -1
- package/constants/mediaUrls.constants.d.ts +0 -1
- package/constants/mediaUrls.constants.mjs +1 -2
- package/constants/permit2.constants.cjs +1 -1
- package/constants/permit2.constants.d.ts +1 -0
- package/constants/permit2.constants.mjs +11 -10
- package/constants/server.constants.cjs +1 -1
- package/constants/server.constants.d.ts +123 -19
- package/constants/server.constants.mjs +142 -38
- package/constants/vite.constants.cjs +1 -1
- package/constants/vite.constants.mjs +13 -36
- package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.cjs +1 -1
- package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.mjs +71 -68
- package/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/data-structures/Hinkal/Hinkal.d.ts +56 -45
- package/data-structures/Hinkal/Hinkal.mjs +348 -314
- package/data-structures/Hinkal/IHinkal.d.ts +54 -40
- package/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
- package/data-structures/Hinkal/handleAutoDepositBack.d.ts +1 -1
- package/data-structures/Hinkal/handleAutoDepositBack.mjs +49 -48
- package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.cjs +1 -0
- package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.d.ts +7 -0
- package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.mjs +42 -0
- package/data-structures/Hinkal/hinkalActionReceive.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionReceive.mjs +24 -29
- package/data-structures/Hinkal/hinkalApprove.cjs +1 -0
- package/data-structures/Hinkal/hinkalApprove.d.ts +3 -0
- package/data-structures/Hinkal/hinkalApprove.mjs +114 -0
- 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 +84 -88
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +1 -1
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +96 -77
- package/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -1
- package/data-structures/Hinkal/hinkalDepositOnChainUtxos.d.ts +4 -1
- package/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +80 -75
- package/data-structures/Hinkal/hinkalDepostAndBridge.cjs +1 -1
- package/data-structures/Hinkal/hinkalDepostAndBridge.d.ts +1 -1
- package/data-structures/Hinkal/hinkalDepostAndBridge.mjs +150 -138
- package/data-structures/Hinkal/hinkalGetZkMeProvider.cjs +1 -1
- package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +5 -4
- package/data-structures/Hinkal/hinkalInsideTransact.cjs +1 -0
- package/data-structures/Hinkal/hinkalInsideTransact.d.ts +4 -0
- package/data-structures/Hinkal/hinkalInsideTransact.mjs +119 -0
- package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
- package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +2 -2
- package/data-structures/Hinkal/hinkalPrivateWallet.mjs +118 -114
- package/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +34 -36
- package/data-structures/Hinkal/hinkalProxySwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalProxySwap.mjs +36 -40
- package/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -1
- package/data-structures/Hinkal/hinkalProxyToPrivate.mjs +32 -37
- package/data-structures/Hinkal/hinkalSignSubAccount.cjs +1 -1
- package/data-structures/Hinkal/hinkalSignSubAccount.d.ts +2 -1
- package/data-structures/Hinkal/hinkalSignSubAccount.mjs +15 -17
- package/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +3 -4
- package/data-structures/Hinkal/hinkalSolanaDeposit.mjs +95 -84
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +1 -2
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +182 -155
- package/data-structures/Hinkal/hinkalSolanaProxySend.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySend.d.ts +3 -2
- package/data-structures/Hinkal/hinkalSolanaProxySend.mjs +40 -43
- package/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +67 -71
- package/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +59 -63
- package/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaSwap.mjs +45 -48
- package/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaTransfer.mjs +48 -49
- package/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaWithdraw.d.ts +1 -2
- package/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +68 -71
- package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSwap.mjs +78 -71
- package/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
- package/data-structures/Hinkal/hinkalTransfer.mjs +70 -71
- package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdraw.mjs +79 -81
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +103 -105
- package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
- package/data-structures/Hinkal/resetMerkleTrees.d.ts +1 -1
- package/data-structures/Hinkal/resetMerkleTrees.mjs +53 -107
- package/data-structures/IndexedDB/activity-db.cjs +1 -1
- package/data-structures/IndexedDB/activity-db.d.ts +0 -1
- package/data-structures/IndexedDB/activity-db.mjs +75 -91
- package/data-structures/IndexedDB/balances-db.cjs +1 -1
- package/data-structures/IndexedDB/balances-db.mjs +37 -40
- package/data-structures/IndexedDB/contact-db.cjs +1 -1
- package/data-structures/IndexedDB/contact-db.mjs +13 -16
- package/data-structures/IndexedDB/signatures-db.cjs +1 -1
- package/data-structures/IndexedDB/signatures-db.mjs +40 -25
- package/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -1
- package/data-structures/TokenDBs/EventsPublicTokensDB.mjs +84 -82
- package/data-structures/TokenDBs/token-visibility-db.cjs +1 -1
- package/data-structures/TokenDBs/token-visibility-db.mjs +36 -22
- package/data-structures/crypto-keys/keys.cjs +1 -1
- package/data-structures/crypto-keys/keys.d.ts +11 -0
- package/data-structures/crypto-keys/keys.mjs +107 -47
- package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.d.ts +2 -3
- 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 +2 -3
- 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 +2 -3
- 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 +2 -4
- 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 +5 -6
- package/data-structures/event-service/evm/AbstractSnapshotService.cjs +1 -1
- package/data-structures/event-service/evm/AbstractSnapshotService.d.ts +2 -1
- package/data-structures/event-service/evm/AbstractSnapshotService.mjs +4 -3
- package/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -1
- package/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +5 -10
- package/data-structures/event-service/evm/BlockchainEventEmitter.mjs +35 -39
- package/data-structures/event-service/index.d.ts +0 -4
- package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.d.ts +2 -3
- 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 +3 -4
- 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 +10 -4
- package/data-structures/event-service/solana/AbstractSolanaEventService.mjs +7 -10
- package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.cjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.d.ts +2 -3
- 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 +2 -1
- package/data-structures/event-service/solana/AbstractSolanaSnapshotService.mjs +2 -1
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.cjs +1 -1
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +16 -11
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.mjs +66 -64
- package/data-structures/index.d.ts +0 -3
- package/data-structures/provider-adapter/IProviderAdapter.d.ts +13 -8
- package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.mjs +4 -6
- package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.cjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.mjs +4 -6
- package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.mjs +4 -6
- package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.cjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.mjs +4 -6
- package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs +4 -6
- package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs +4 -5
- package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.cjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.mjs +4 -6
- package/error-handling/error-codes.constants.cjs +1 -1
- package/error-handling/error-codes.constants.d.ts +0 -1
- package/error-handling/error-codes.constants.mjs +3 -4
- package/error-handling/get-error.message.cjs +1 -1
- package/error-handling/get-error.message.mjs +27 -21
- package/error-handling/handleErrorRestore.cjs +1 -0
- package/error-handling/handleErrorRestore.d.ts +2 -0
- package/error-handling/handleErrorRestore.mjs +11 -0
- package/error-handling/index.d.ts +1 -0
- package/functions/kyc/authentoHelper.cjs +1 -0
- package/functions/kyc/authentoHelper.d.ts +12 -0
- package/functions/kyc/authentoHelper.mjs +30 -0
- package/functions/kyc/zkMeHelper.cjs +1 -1
- package/functions/kyc/zkMeHelper.mjs +17 -18
- package/functions/pre-transaction/constructAdminData.cjs +1 -1
- package/functions/pre-transaction/constructAdminData.d.ts +2 -2
- package/functions/pre-transaction/constructAdminData.mjs +18 -12
- package/functions/pre-transaction/getExternalSwapAddress.cjs +1 -1
- package/functions/pre-transaction/getExternalSwapAddress.d.ts +2 -1
- package/functions/pre-transaction/getExternalSwapAddress.mjs +8 -8
- package/functions/pre-transaction/getVolatileTransferAmount.cjs +1 -1
- package/functions/pre-transaction/getVolatileTransferAmount.mjs +36 -21
- 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 +9 -1
- package/functions/pre-transaction/outputApprovalDataProcessing.mjs +34 -19
- package/functions/pre-transaction/sendV0Transaction.cjs +1 -1
- package/functions/pre-transaction/sendV0Transaction.mjs +50 -53
- 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/private-wallet/emporium.helpers.cjs +1 -1
- package/functions/private-wallet/emporium.helpers.d.ts +6 -3
- package/functions/private-wallet/emporium.helpers.mjs +127 -89
- package/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
- package/functions/private-wallet/emporium.swap.helpers.d.ts +4 -1
- package/functions/private-wallet/emporium.swap.helpers.mjs +102 -100
- package/functions/snarkjs/constructEmporiumProof.cjs +1 -1
- package/functions/snarkjs/constructEmporiumProof.mjs +49 -49
- package/functions/snarkjs/constructSolanaZkProof.cjs +1 -1
- package/functions/snarkjs/constructSolanaZkProof.mjs +20 -18
- package/functions/snarkjs/fetchMerkleTreeSiblings.cjs +1 -1
- package/functions/snarkjs/fetchMerkleTreeSiblings.mjs +10 -11
- package/functions/utils/addresses.cjs +1 -1
- package/functions/utils/addresses.d.ts +0 -1
- package/functions/utils/addresses.mjs +12 -13
- 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 +9 -13
- package/functions/utils/get-hinkal-approvals.cjs +1 -0
- package/functions/utils/get-hinkal-approvals.d.ts +3 -0
- package/functions/utils/get-hinkal-approvals.mjs +38 -0
- 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 +1 -0
- package/functions/utils/involves-permit2-op.cjs +1 -1
- package/functions/utils/involves-permit2-op.d.ts +1 -0
- package/functions/utils/involves-permit2-op.mjs +6 -4
- 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 +23 -8
- package/functions/utils/prepareHinkal.cjs +1 -1
- package/functions/utils/prepareHinkal.d.ts +13 -6
- package/functions/utils/prepareHinkal.mjs +72 -45
- package/functions/utils/publicBalance.utils.cjs +1 -1
- package/functions/utils/publicBalance.utils.mjs +54 -49
- package/functions/utils/replaceAddressInCalldata.cjs +1 -0
- package/functions/utils/replaceAddressInCalldata.d.ts +1 -0
- package/functions/utils/replaceAddressInCalldata.mjs +7 -0
- package/functions/utils/string.utils.cjs +1 -1
- package/functions/utils/string.utils.d.ts +0 -1
- package/functions/utils/string.utils.mjs +14 -18
- package/functions/utils/token-check.utils.cjs +1 -1
- package/functions/utils/token-check.utils.d.ts +0 -3
- package/functions/utils/token-check.utils.mjs +7 -18
- 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 +17 -2
- package/functions/utils/walletBalances.utils.mjs +36 -5
- package/functions/web3/events/getApprovedBalance.cjs +1 -1
- package/functions/web3/events/getApprovedBalance.d.ts +4 -3
- package/functions/web3/events/getApprovedBalance.mjs +44 -39
- package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.d.ts +3 -3
- package/functions/web3/events/getInputUtxoAndBalance.mjs +150 -129
- package/functions/web3/events/getShieldedBalance.cjs +2 -2
- package/functions/web3/events/getShieldedBalance.d.ts +1 -1
- package/functions/web3/events/getShieldedBalance.mjs +75 -73
- 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 +10 -13
- package/functions/web3/functionCalls/accessTokenCalls.cjs +1 -1
- package/functions/web3/functionCalls/accessTokenCalls.d.ts +6 -1
- package/functions/web3/functionCalls/accessTokenCalls.mjs +21 -12
- package/functions/web3/functionCalls/approveToken.cjs +1 -1
- package/functions/web3/functionCalls/approveToken.d.ts +1 -1
- package/functions/web3/functionCalls/approveToken.mjs +46 -50
- 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 +2 -1
- package/functions/web3/functionCalls/estimateGasRelayer.mjs +10 -10
- package/functions/web3/functionCalls/inHinkalApprovalCalls.cjs +1 -0
- package/functions/web3/functionCalls/inHinkalApprovalCalls.d.ts +5 -0
- package/functions/web3/functionCalls/inHinkalApprovalCalls.mjs +32 -0
- package/functions/web3/functionCalls/transactCallDirect.cjs +1 -1
- package/functions/web3/functionCalls/transactCallDirect.d.ts +1 -1
- package/functions/web3/functionCalls/transactCallDirect.mjs +40 -36
- package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.d.ts +3 -3
- package/functions/web3/functionCalls/transactCallRelayer.mjs +54 -54
- package/functions/web3/getContractMetadata.cjs +1 -1
- package/functions/web3/getContractMetadata.mjs +22 -17
- 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 +0 -1
- 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 +19 -6
- package/functions/web3/okxAPI.cjs +1 -1
- package/functions/web3/okxAPI.mjs +13 -13
- package/functions/web3/oneInchAPI.cjs +1 -1
- package/functions/web3/oneInchAPI.mjs +20 -7
- package/functions/web3/runContractFunction.cjs +1 -1
- package/functions/web3/runContractFunction.mjs +56 -38
- package/functions/web3/uniswapAPI.cjs +1 -1
- package/functions/web3/uniswapAPI.mjs +34 -22
- package/index.cjs +1 -1
- package/index.mjs +922 -920
- package/package.json +2 -3
- package/providers/EthersProviderAdapter.cjs +1 -1
- package/providers/EthersProviderAdapter.d.ts +17 -10
- package/providers/EthersProviderAdapter.mjs +76 -45
- package/providers/SolanaProviderAdapter.cjs +1 -1
- package/providers/SolanaProviderAdapter.d.ts +11 -7
- package/providers/SolanaProviderAdapter.mjs +31 -16
- package/providers/WagmiProviderAdapter.cjs +1 -1
- package/providers/WagmiProviderAdapter.d.ts +17 -11
- package/providers/WagmiProviderAdapter.mjs +117 -86
- package/providers/prepareEthersHinkal.cjs +1 -1
- package/providers/prepareEthersHinkal.mjs +9 -14
- package/providers/prepareWagmiHinkal.cjs +1 -1
- package/providers/prepareWagmiHinkal.mjs +9 -15
- package/types/TransactionSimulator.types.d.ts +9 -2
- package/types/activities.types.d.ts +0 -2
- package/types/admin.types.cjs +1 -1
- package/types/admin.types.d.ts +6 -0
- package/types/admin.types.mjs +2 -2
- package/types/balances.types.d.ts +1 -0
- package/types/bridging.types.d.ts +29 -0
- package/types/cache.types.cjs +1 -1
- package/types/cache.types.d.ts +3 -6
- package/types/cache.types.mjs +1 -1
- package/types/coingecko.types.d.ts +0 -5
- package/types/duneAPI.types.d.ts +9 -0
- package/types/ethereum-network.types.d.ts +0 -1
- package/types/hinkal.types.cjs +1 -1
- package/types/hinkal.types.d.ts +1 -1
- package/types/hinkal.types.mjs +18 -18
- package/types/index.d.ts +2 -2
- package/types/proxy.types.d.ts +3 -6
- package/types/sandbox.types.cjs +1 -1
- package/types/sandbox.types.d.ts +39 -10
- package/types/sandbox.types.mjs +2 -2
- package/types/scheduled-transactions.types.cjs +1 -1
- package/types/scheduled-transactions.types.d.ts +6 -0
- package/types/scheduled-transactions.types.mjs +3 -2
- package/types/session.types.d.ts +0 -2
- package/types/solana.types.d.ts +0 -9
- package/types/token-prices.types.cjs +1 -1
- package/types/token-prices.types.d.ts +0 -7
- package/types/token-prices.types.mjs +2 -4
- 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/viteWorkerURL.constant.cjs +3 -3
- package/webworker/viteWorkerURL.constant.mjs +3 -3
- package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
- package/API/get-token-price-chart-data.cjs +0 -1
- package/API/get-token-price-chart-data.d.ts +0 -16
- package/API/get-token-price-chart-data.mjs +0 -13
- package/API/onrampCalls.cjs +0 -1
- package/API/onrampCalls.d.ts +0 -20
- package/API/onrampCalls.mjs +0 -15
- package/API/unspent-utxos-calls.cjs +0 -1
- package/API/unspent-utxos-calls.d.ts +0 -26
- package/API/unspent-utxos-calls.mjs +0 -26
- package/data-structures/AccountActions/AccountActions.cjs +0 -1
- package/data-structures/AccountActions/AccountActions.d.ts +0 -18
- package/data-structures/AccountActions/AccountActions.mjs +0 -78
- package/data-structures/AccountActions/index.d.ts +0 -1
- package/data-structures/BlockchainEvent/BlockchainEvent.cjs +0 -1
- package/data-structures/BlockchainEvent/BlockchainEvent.d.ts +0 -14
- package/data-structures/BlockchainEvent/BlockchainEvent.mjs +0 -41
- package/data-structures/PublicBalance/PublicBalanceWatcher.cjs +0 -1
- package/data-structures/PublicBalance/PublicBalanceWatcher.d.ts +0 -20
- package/data-structures/PublicBalance/PublicBalanceWatcher.mjs +0 -124
- package/data-structures/PublicBalance/SolanaPublicBalancerWatcher.cjs +0 -1
- package/data-structures/PublicBalance/SolanaPublicBalancerWatcher.d.ts +0 -15
- package/data-structures/PublicBalance/SolanaPublicBalancerWatcher.mjs +0 -64
- package/data-structures/PublicBalance/index.d.ts +0 -2
- package/data-structures/event-service/evm/ClientBlockchainEventEmitter.cjs +0 -1
- package/data-structures/event-service/evm/ClientBlockchainEventEmitter.d.ts +0 -11
- package/data-structures/event-service/evm/ClientBlockchainEventEmitter.mjs +0 -21
- package/data-structures/event-service/evm/PollingBlockchainEventEmitter.cjs +0 -1
- package/data-structures/event-service/evm/PollingBlockchainEventEmitter.d.ts +0 -6
- package/data-structures/event-service/evm/PollingBlockchainEventEmitter.mjs +0 -16
- package/data-structures/event-service/helpers/ClientEventHelper.cjs +0 -1
- package/data-structures/event-service/helpers/ClientEventHelper.d.ts +0 -11
- package/data-structures/event-service/helpers/ClientEventHelper.mjs +0 -26
- package/data-structures/event-service/helpers/PollingEventHelper.cjs +0 -1
- package/data-structures/event-service/helpers/PollingEventHelper.d.ts +0 -5
- package/data-structures/event-service/helpers/PollingEventHelper.mjs +0 -14
- package/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.cjs +0 -1
- package/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.d.ts +0 -11
- package/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.mjs +0 -22
- package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.cjs +0 -1
- package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.d.ts +0 -6
- package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.mjs +0 -16
- package/functions/utils/enum.utils.cjs +0 -1
- package/functions/utils/enum.utils.mjs +0 -14
- package/functions/utils/socket.utils.cjs +0 -1
- package/functions/utils/socket.utils.d.ts +0 -1
- package/functions/utils/socket.utils.mjs +0 -12
- package/functions/web3/crypto.cjs +0 -1
- package/functions/web3/crypto.d.ts +0 -1
- package/functions/web3/crypto.mjs +0 -7
- package/types/events.types.cjs +0 -1
- package/types/events.types.d.ts +0 -9
- package/types/events.types.mjs +0 -5
- package/types/onramp.types.cjs +0 -1
- package/types/onramp.types.d.ts +0 -58
- package/types/onramp.types.mjs +0 -4
package/API/API.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./relayCalls.cjs"),n=require("./passwordCalls.cjs"),T=require("./getTokenPrice.cjs"),r=require("./kycCalls.cjs"),P=require("./callOdosAPI.cjs"),c=require("./ai-calls.cjs"),k=require("./is-tx-stateless.cjs"),A=require("./simulate-batch-tx.cjs"),m=require("./token-calls.cjs"),p=require("./get-token-data.cjs"),y=require("./enclaveCalls.cjs"),q=require("./getBridgeProtocols.cjs"),B=require("./getLifiStatus.cjs"),i=require("./generate-trading-points.cjs"),e=require("./brotherhoodCalls.cjs"),d=require("./leaderboardCalls.cjs"),o=require("./referralsCalls.cjs"),g=require("./accessCodeCalls.cjs"),t=require("./rewardsUserCalls.cjs"),u=require("./weeklyAnalyticCalls.cjs"),S=require("./send-telegram-callback.cjs"),h=require("./proxyAccountsCalls.cjs"),U=require("./callMonitor.cjs"),a=require("./solana-calls.cjs"),R=require("./callRelayer.cjs"),s=require("./seedless-calls.cjs"),f=require("./scheduled-transactions-calls.cjs"),l=require("./temporaryWalletCalls.cjs"),b={getUserKycStatus:r.getUserKycStatus,setAiPriseVerificationUrl:r.setAiPriseVerificationUrl,getAccessTokenSignature:r.getAccessTokenSignature,getReclaimVerificationRequest:r.getReclaimVerificationRequest,getZkMeAccessToken:r.getZkMeAccessToken,userHasKyc:r.userHasKyc,getTokenPrices:T.getTokenPrices,getOdosPriceForToken:P.getOdosPriceForToken,getIdleRelay:C.getIdleRelay,userHasPassword:n.userHasPassword,userRegisterPassword:n.userRegisterPassword,generateTradingPoints:i.generateTradingPoints,generateAumPoints:i.generateAumPoints,getBrotherhoodUsers:e.getBrotherhoodUsers,getCurrentUserBrotherhoodUsers:e.getCurrentUserBrotherhoodUsers,getBrotherhood:e.getBrotherhood,editBrotherhood:e.editBrotherhood,createBrotherhood:e.createBrotherhood,getCurrentUserBrotherhood:e.getCurrentUserBrotherhood,getPublicBrotherhoods:e.getPublicBrotherhoods,leaveBrotherhood:e.leaveBrotherhood,joinBrotherhood:e.joinBrotherhood,getUserAnalytics:u.getUserAnalytics,getBrotherhoodAnalytics:u.getBrotherhoodAnalytics,connectRewardsUser:t.connectRewardsUser,updateRewardsUser:t.updateRewardsUser,disconnectSocialNetwork:t.disconnectSocialNetwork,getUserCurrentLeaderboard:d.getUserCurrentLeaderboard,getBrotherhoodsLeaderboard:d.getBrotherhoodsLeaderboard,getCurrentUserReferral:o.getCurrentUserReferral,submitReferralCode:o.submitReferralCode,getCurrentUserAppliedReferralCode:o.getCurrentUserAppliedReferralCode,submitAccessCode:g.submitAccessCode,getAccessCodeBenefits:g.getAccessCodeBenefits,getTokenApprovalAmountRequest:c.getTokenApprovalAmountRequest,getTokenSpendsFromOrderMessageRequest:c.getTokenSpendsFromOrderMessageRequest,isTxStateless:k.isTxStateless,simulateBatchTx:A.simulateBatchTx,tokensInfoCall:m.tokensInfoCall,getTokenData:p.getTokenData,decryptUtxoEnclaveCall:y.decryptUtxoEnclaveCall,getBridgeProtocols:q.getBridgeProtocols,getLifiStatus:B.getLifiStatus,sendTelegramCallback:S.sendTelegramCallback,getTasksProgress:t.getTasksProgress,getSwapStreak:t.getSwapStreak,getProxyAccounts:h.getProxyAccounts,updateProxyAccounts:h.updateProxyAccounts,getNftMultiplier:t.getNftMultiplier,monitor:U.monitor,generateProoflessDepositLimitless:a.generateProoflessDepositLimitless,generateMultiPaymentDepositLimitless:a.generateMultiPaymentDepositLimitless,generateAddAccessToken:a.generateAddAccessToken,callRelayerSolanaTransactBatchAPI:R.callRelayerSolanaTransactBatchAPI,seedlessInit:s.seedlessInit,seedlessBackup:s.seedlessBackup,seedlessCheckPassword:s.seedlessCheckPassword,seedlessStatus:s.seedlessStatus,seedlessSalt:s.seedlessSalt,getScheduledTransactions:f.getScheduledTransactions,getTemporaryWalletNonces:l.getTemporaryWalletNonces,addTemporaryWalletNonce:l.addTemporaryWalletNonce,removeTemporaryWalletNonce:l.removeTemporaryWalletNonce};exports.API=b;
|
package/API/API.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { getIdleRelay } from './relayCalls';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { userHasPassword, userRegisterPassword } from './passwordCalls';
|
|
3
|
+
import { getTokenPrices } from './getTokenPrice';
|
|
4
|
+
import { getAccessTokenSignature, getReclaimVerificationRequest, getUserKycStatus, getZkMeAccessToken, setAiPriseVerificationUrl, userHasKyc } from './kycCalls';
|
|
4
5
|
import { getOdosPriceForToken } from './callOdosAPI';
|
|
6
|
+
import { getTokenApprovalAmountRequest, getTokenSpendsFromOrderMessageRequest } from './ai-calls';
|
|
5
7
|
import { isTxStateless } from './is-tx-stateless';
|
|
6
8
|
import { simulateBatchTx } from './simulate-batch-tx';
|
|
7
9
|
import { tokensInfoCall } from './token-calls';
|
|
8
10
|
import { getTokenData } from './get-token-data';
|
|
9
11
|
import { decryptUtxoEnclaveCall } from './enclaveCalls';
|
|
12
|
+
import { getBridgeProtocols } from './getBridgeProtocols';
|
|
13
|
+
import { getLifiStatus } from './getLifiStatus';
|
|
10
14
|
import { generateAumPoints, generateTradingPoints } from './generate-trading-points';
|
|
11
15
|
import { createBrotherhood, editBrotherhood, getBrotherhood, getBrotherhoodUsers, getCurrentUserBrotherhood, getCurrentUserBrotherhoodUsers, getPublicBrotherhoods, joinBrotherhood, leaveBrotherhood } from './brotherhoodCalls';
|
|
12
16
|
import { getBrotherhoodsLeaderboard, getUserCurrentLeaderboard } from './leaderboardCalls';
|
|
@@ -15,16 +19,13 @@ import { getAccessCodeBenefits, submitAccessCode } from './accessCodeCalls';
|
|
|
15
19
|
import { connectRewardsUser, disconnectSocialNetwork, getNftMultiplier, getSwapStreak, getTasksProgress, updateRewardsUser } from './rewardsUserCalls';
|
|
16
20
|
import { getBrotherhoodAnalytics, getUserAnalytics } from './weeklyAnalyticCalls';
|
|
17
21
|
import { sendTelegramCallback } from './send-telegram-callback';
|
|
18
|
-
import { getProxyAccounts,
|
|
22
|
+
import { getProxyAccounts, updateProxyAccounts } from './proxyAccountsCalls';
|
|
19
23
|
import { monitor } from './callMonitor';
|
|
20
24
|
import { generateAddAccessToken, generateMultiPaymentDepositLimitless, generateProoflessDepositLimitless } from './solana-calls';
|
|
21
25
|
import { callRelayerSolanaTransactBatchAPI } from './callRelayer';
|
|
22
26
|
import { seedlessBackup, seedlessCheckPassword, seedlessInit, seedlessSalt, seedlessStatus } from './seedless-calls';
|
|
23
27
|
import { getScheduledTransactions } from './scheduled-transactions-calls';
|
|
24
|
-
import { deleteUnspentUtxos, getUnspentUtxos, storeUnspentUtxos } from './unspent-utxos-calls';
|
|
25
28
|
import { addTemporaryWalletNonce, getTemporaryWalletNonces, removeTemporaryWalletNonce } from './temporaryWalletCalls';
|
|
26
|
-
import { encodeMoonPayBuyUrl, generateMoonPayQuote } from './onrampCalls';
|
|
27
|
-
import { getTokenPriceChartData } from './get-token-price-chart-data';
|
|
28
29
|
export type IAPI = {
|
|
29
30
|
getUserKycStatus: typeof getUserKycStatus;
|
|
30
31
|
setAiPriseVerificationUrl: typeof setAiPriseVerificationUrl;
|
|
@@ -33,14 +34,19 @@ export type IAPI = {
|
|
|
33
34
|
getZkMeAccessToken: typeof getZkMeAccessToken;
|
|
34
35
|
getTokenPrices: typeof getTokenPrices;
|
|
35
36
|
getOdosPriceForToken: typeof getOdosPriceForToken;
|
|
36
|
-
getTokenPriceChartData: typeof getTokenPriceChartData;
|
|
37
|
-
getTokenPreviousDayPrices: typeof getTokenPreviousDayPrices;
|
|
38
37
|
getIdleRelay: typeof getIdleRelay;
|
|
38
|
+
userHasPassword: typeof userHasPassword;
|
|
39
|
+
userRegisterPassword: typeof userRegisterPassword;
|
|
40
|
+
getTokenApprovalAmountRequest: typeof getTokenApprovalAmountRequest;
|
|
41
|
+
getTokenSpendsFromOrderMessageRequest: typeof getTokenSpendsFromOrderMessageRequest;
|
|
39
42
|
isTxStateless: typeof isTxStateless;
|
|
40
43
|
simulateBatchTx: typeof simulateBatchTx;
|
|
41
44
|
tokensInfoCall: typeof tokensInfoCall;
|
|
42
45
|
getTokenData: typeof getTokenData;
|
|
43
46
|
decryptUtxoEnclaveCall: typeof decryptUtxoEnclaveCall;
|
|
47
|
+
getBridgeProtocols: typeof getBridgeProtocols;
|
|
48
|
+
getLifiStatus: typeof getLifiStatus;
|
|
49
|
+
userHasKyc: typeof userHasKyc;
|
|
44
50
|
generateTradingPoints: typeof generateTradingPoints;
|
|
45
51
|
getBrotherhoodUsers: typeof getBrotherhoodUsers;
|
|
46
52
|
getCurrentUserBrotherhoodUsers: typeof getCurrentUserBrotherhoodUsers;
|
|
@@ -81,14 +87,8 @@ export type IAPI = {
|
|
|
81
87
|
seedlessStatus: typeof seedlessStatus;
|
|
82
88
|
seedlessSalt: typeof seedlessSalt;
|
|
83
89
|
getScheduledTransactions: typeof getScheduledTransactions;
|
|
84
|
-
storeUnspentUtxos: typeof storeUnspentUtxos;
|
|
85
|
-
deleteUnspentUtxos: typeof deleteUnspentUtxos;
|
|
86
|
-
getUnspentUtxos: typeof getUnspentUtxos;
|
|
87
90
|
getTemporaryWalletNonces: typeof getTemporaryWalletNonces;
|
|
88
91
|
addTemporaryWalletNonce: typeof addTemporaryWalletNonce;
|
|
89
92
|
removeTemporaryWalletNonce: typeof removeTemporaryWalletNonce;
|
|
90
|
-
encodeMoonPayBuyUrl: typeof encodeMoonPayBuyUrl;
|
|
91
|
-
generateMoonPayQuote: typeof generateMoonPayQuote;
|
|
92
|
-
isVersion1Account: typeof isVersion1Account;
|
|
93
93
|
};
|
|
94
94
|
export declare const API: IAPI;
|
package/API/API.mjs
CHANGED
|
@@ -1,121 +1,122 @@
|
|
|
1
1
|
import { getIdleRelay as e } from "./relayCalls.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
2
|
+
import { userHasPassword as r, userRegisterPassword as o } from "./passwordCalls.mjs";
|
|
3
|
+
import { getTokenPrices as t } from "./getTokenPrice.mjs";
|
|
4
|
+
import { getUserKycStatus as s, setAiPriseVerificationUrl as i, getAccessTokenSignature as m, getReclaimVerificationRequest as a, getZkMeAccessToken as n, userHasKyc as d } from "./kycCalls.mjs";
|
|
5
|
+
import { getOdosPriceForToken as l } from "./callOdosAPI.mjs";
|
|
6
|
+
import { getTokenApprovalAmountRequest as c, getTokenSpendsFromOrderMessageRequest as p } from "./ai-calls.mjs";
|
|
7
|
+
import { isTxStateless as g } from "./is-tx-stateless.mjs";
|
|
8
|
+
import { simulateBatchTx as f } from "./simulate-batch-tx.mjs";
|
|
9
|
+
import { tokensInfoCall as u } from "./token-calls.mjs";
|
|
10
|
+
import { getTokenData as h } from "./get-token-data.mjs";
|
|
11
|
+
import { decryptUtxoEnclaveCall as T } from "./enclaveCalls.mjs";
|
|
12
|
+
import { getBridgeProtocols as A } from "./getBridgeProtocols.mjs";
|
|
13
|
+
import { getLifiStatus as P } from "./getLifiStatus.mjs";
|
|
14
|
+
import { generateTradingPoints as k, generateAumPoints as B } from "./generate-trading-points.mjs";
|
|
15
|
+
import { getBrotherhoodUsers as y, getCurrentUserBrotherhoodUsers as C, getBrotherhood as U, editBrotherhood as R, createBrotherhood as S, getCurrentUserBrotherhood as w, getPublicBrotherhoods as b, leaveBrotherhood as x, joinBrotherhood as I } from "./brotherhoodCalls.mjs";
|
|
16
|
+
import { getUserCurrentLeaderboard as L, getBrotherhoodsLeaderboard as N } from "./leaderboardCalls.mjs";
|
|
17
|
+
import { getCurrentUserReferral as v, submitReferralCode as M, getCurrentUserAppliedReferralCode as q } from "./referralsCalls.mjs";
|
|
18
|
+
import { submitAccessCode as D, getAccessCodeBenefits as W } from "./accessCodeCalls.mjs";
|
|
19
|
+
import { connectRewardsUser as F, updateRewardsUser as H, disconnectSocialNetwork as K, getTasksProgress as O, getSwapStreak as V, getNftMultiplier as j } from "./rewardsUserCalls.mjs";
|
|
20
|
+
import { getUserAnalytics as E, getBrotherhoodAnalytics as Z } from "./weeklyAnalyticCalls.mjs";
|
|
21
|
+
import { sendTelegramCallback as z } from "./send-telegram-callback.mjs";
|
|
22
|
+
import { getProxyAccounts as G, updateProxyAccounts as J } from "./proxyAccountsCalls.mjs";
|
|
19
23
|
import { monitor as Q } from "./callMonitor.mjs";
|
|
20
|
-
import { generateProoflessDepositLimitless as
|
|
21
|
-
import { callRelayerSolanaTransactBatchAPI as
|
|
22
|
-
import { seedlessInit as
|
|
23
|
-
import { getScheduledTransactions as
|
|
24
|
-
import {
|
|
25
|
-
import { getTemporaryWalletNonces as se, addTemporaryWalletNonce as ie, removeTemporaryWalletNonce as ae } from "./temporaryWalletCalls.mjs";
|
|
26
|
-
import { encodeMoonPayBuyUrl as me, generateMoonPayQuote as ne } from "./onrampCalls.mjs";
|
|
27
|
-
import { getTokenPriceChartData as ce } from "./get-token-price-chart-data.mjs";
|
|
24
|
+
import { generateProoflessDepositLimitless as X, generateMultiPaymentDepositLimitless as Y, generateAddAccessToken as _ } from "./solana-calls.mjs";
|
|
25
|
+
import { callRelayerSolanaTransactBatchAPI as $ } from "./callRelayer.mjs";
|
|
26
|
+
import { seedlessInit as ee, seedlessBackup as re, seedlessCheckPassword as oe, seedlessStatus as te, seedlessSalt as se } from "./seedless-calls.mjs";
|
|
27
|
+
import { getScheduledTransactions as ie } from "./scheduled-transactions-calls.mjs";
|
|
28
|
+
import { getTemporaryWalletNonces as me, addTemporaryWalletNonce as ae, removeTemporaryWalletNonce as ne } from "./temporaryWalletCalls.mjs";
|
|
28
29
|
const We = {
|
|
29
30
|
// KYC
|
|
30
|
-
getUserKycStatus:
|
|
31
|
-
setAiPriseVerificationUrl:
|
|
32
|
-
getAccessTokenSignature:
|
|
31
|
+
getUserKycStatus: s,
|
|
32
|
+
setAiPriseVerificationUrl: i,
|
|
33
|
+
getAccessTokenSignature: m,
|
|
33
34
|
getReclaimVerificationRequest: a,
|
|
34
|
-
getZkMeAccessToken:
|
|
35
|
+
getZkMeAccessToken: n,
|
|
36
|
+
userHasKyc: d,
|
|
35
37
|
// Prices
|
|
36
|
-
getTokenPrices:
|
|
37
|
-
getOdosPriceForToken:
|
|
38
|
-
getTokenPriceChartData: ce,
|
|
39
|
-
getTokenPreviousDayPrices: o,
|
|
38
|
+
getTokenPrices: t,
|
|
39
|
+
getOdosPriceForToken: l,
|
|
40
40
|
// relay
|
|
41
41
|
getIdleRelay: e,
|
|
42
|
+
// password
|
|
43
|
+
userHasPassword: r,
|
|
44
|
+
userRegisterPassword: o,
|
|
42
45
|
// points
|
|
43
|
-
generateTradingPoints:
|
|
44
|
-
generateAumPoints:
|
|
46
|
+
generateTradingPoints: k,
|
|
47
|
+
generateAumPoints: B,
|
|
45
48
|
// brotherhood
|
|
46
|
-
getBrotherhoodUsers:
|
|
47
|
-
getCurrentUserBrotherhoodUsers:
|
|
48
|
-
getBrotherhood:
|
|
49
|
-
editBrotherhood:
|
|
50
|
-
createBrotherhood:
|
|
51
|
-
getCurrentUserBrotherhood:
|
|
52
|
-
getPublicBrotherhoods:
|
|
53
|
-
leaveBrotherhood:
|
|
54
|
-
joinBrotherhood:
|
|
49
|
+
getBrotherhoodUsers: y,
|
|
50
|
+
getCurrentUserBrotherhoodUsers: C,
|
|
51
|
+
getBrotherhood: U,
|
|
52
|
+
editBrotherhood: R,
|
|
53
|
+
createBrotherhood: S,
|
|
54
|
+
getCurrentUserBrotherhood: w,
|
|
55
|
+
getPublicBrotherhoods: b,
|
|
56
|
+
leaveBrotherhood: x,
|
|
57
|
+
joinBrotherhood: I,
|
|
55
58
|
// weekly analytics
|
|
56
|
-
getUserAnalytics:
|
|
57
|
-
getBrotherhoodAnalytics:
|
|
59
|
+
getUserAnalytics: E,
|
|
60
|
+
getBrotherhoodAnalytics: Z,
|
|
58
61
|
// rewards user
|
|
59
|
-
connectRewardsUser:
|
|
60
|
-
updateRewardsUser:
|
|
61
|
-
disconnectSocialNetwork:
|
|
62
|
+
connectRewardsUser: F,
|
|
63
|
+
updateRewardsUser: H,
|
|
64
|
+
disconnectSocialNetwork: K,
|
|
62
65
|
// leaderboard
|
|
63
|
-
getUserCurrentLeaderboard:
|
|
64
|
-
getBrotherhoodsLeaderboard:
|
|
66
|
+
getUserCurrentLeaderboard: L,
|
|
67
|
+
getBrotherhoodsLeaderboard: N,
|
|
65
68
|
// referral
|
|
66
|
-
getCurrentUserReferral:
|
|
67
|
-
submitReferralCode:
|
|
68
|
-
getCurrentUserAppliedReferralCode:
|
|
69
|
+
getCurrentUserReferral: v,
|
|
70
|
+
submitReferralCode: M,
|
|
71
|
+
getCurrentUserAppliedReferralCode: q,
|
|
69
72
|
// access code
|
|
70
73
|
submitAccessCode: D,
|
|
71
|
-
getAccessCodeBenefits:
|
|
74
|
+
getAccessCodeBenefits: W,
|
|
75
|
+
// AI
|
|
76
|
+
getTokenApprovalAmountRequest: c,
|
|
77
|
+
getTokenSpendsFromOrderMessageRequest: p,
|
|
72
78
|
// tenderly
|
|
73
|
-
isTxStateless:
|
|
74
|
-
simulateBatchTx:
|
|
79
|
+
isTxStateless: g,
|
|
80
|
+
simulateBatchTx: f,
|
|
75
81
|
// token calls
|
|
76
|
-
tokensInfoCall:
|
|
77
|
-
getTokenData:
|
|
82
|
+
tokensInfoCall: u,
|
|
83
|
+
getTokenData: h,
|
|
78
84
|
// enclave
|
|
79
|
-
decryptUtxoEnclaveCall:
|
|
85
|
+
decryptUtxoEnclaveCall: T,
|
|
86
|
+
// bridge protocols
|
|
87
|
+
getBridgeProtocols: A,
|
|
88
|
+
// lifi
|
|
89
|
+
getLifiStatus: P,
|
|
80
90
|
// callbacks
|
|
81
|
-
sendTelegramCallback:
|
|
91
|
+
sendTelegramCallback: z,
|
|
82
92
|
// tasks
|
|
83
|
-
getTasksProgress:
|
|
93
|
+
getTasksProgress: O,
|
|
84
94
|
// swap streak
|
|
85
95
|
getSwapStreak: V,
|
|
86
96
|
// proxy accounts
|
|
87
|
-
getProxyAccounts:
|
|
88
|
-
updateProxyAccounts:
|
|
97
|
+
getProxyAccounts: G,
|
|
98
|
+
updateProxyAccounts: J,
|
|
89
99
|
// nft multiplier
|
|
90
|
-
getNftMultiplier:
|
|
100
|
+
getNftMultiplier: j,
|
|
91
101
|
// hexagate
|
|
92
102
|
monitor: Q,
|
|
93
103
|
// solana
|
|
94
|
-
generateProoflessDepositLimitless:
|
|
95
|
-
generateMultiPaymentDepositLimitless:
|
|
96
|
-
generateAddAccessToken:
|
|
97
|
-
callRelayerSolanaTransactBatchAPI:
|
|
104
|
+
generateProoflessDepositLimitless: X,
|
|
105
|
+
generateMultiPaymentDepositLimitless: Y,
|
|
106
|
+
generateAddAccessToken: _,
|
|
107
|
+
callRelayerSolanaTransactBatchAPI: $,
|
|
98
108
|
// seedless
|
|
99
|
-
seedlessInit:
|
|
100
|
-
seedlessBackup:
|
|
101
|
-
seedlessCheckPassword:
|
|
102
|
-
seedlessStatus:
|
|
103
|
-
seedlessSalt:
|
|
109
|
+
seedlessInit: ee,
|
|
110
|
+
seedlessBackup: re,
|
|
111
|
+
seedlessCheckPassword: oe,
|
|
112
|
+
seedlessStatus: te,
|
|
113
|
+
seedlessSalt: se,
|
|
104
114
|
// scheduled transactions
|
|
105
|
-
getScheduledTransactions:
|
|
106
|
-
// unspent utxos
|
|
107
|
-
storeUnspentUtxos: re,
|
|
108
|
-
deleteUnspentUtxos: oe,
|
|
109
|
-
getUnspentUtxos: te,
|
|
115
|
+
getScheduledTransactions: ie,
|
|
110
116
|
// temporary wallets
|
|
111
|
-
getTemporaryWalletNonces:
|
|
112
|
-
addTemporaryWalletNonce:
|
|
113
|
-
removeTemporaryWalletNonce:
|
|
114
|
-
// onramp
|
|
115
|
-
encodeMoonPayBuyUrl: me,
|
|
116
|
-
generateMoonPayQuote: ne,
|
|
117
|
-
// version1 account
|
|
118
|
-
isVersion1Account: O
|
|
117
|
+
getTemporaryWalletNonces: me,
|
|
118
|
+
addTemporaryWalletNonce: ae,
|
|
119
|
+
removeTemporaryWalletNonce: ne
|
|
119
120
|
};
|
|
120
121
|
export {
|
|
121
122
|
We as API
|
package/API/admin-calls.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../constants/server.constants.cjs"),i=require("./getRelayerURL.cjs"),a=require("../data-structures/http/HttpClient.cjs");require("axios");const n=(e,t)=>a.httpClient.post(`${i.getRelayerURL(e)}${r.RELAYER_CONFIG.emitTxPublicData}`,{adminData:t});exports.emitTxPublicData=n;
|
package/API/admin-calls.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AdminDataType } from '../types/admin.types';
|
|
2
|
-
export declare const emitTxPublicData: (adminData: AdminDataType | undefined) => Promise<any>;
|
|
2
|
+
export declare const emitTxPublicData: (chainId: number, adminData: AdminDataType | undefined) => Promise<any>;
|
package/API/admin-calls.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RELAYER_CONFIG as o } from "../constants/server.constants.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { httpClient as
|
|
2
|
+
import { getRelayerURL as i } from "./getRelayerURL.mjs";
|
|
3
|
+
import { httpClient as m } from "../data-structures/http/HttpClient.mjs";
|
|
4
4
|
import "axios";
|
|
5
|
-
const
|
|
5
|
+
const R = (t, r) => m.post(`${i(t)}${o.emitTxPublicData}`, { adminData: r });
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
R as emitTxPublicData
|
|
8
8
|
};
|
package/API/ai-calls.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../constants/server.constants.cjs"),o=require("./getServerURL.cjs"),s=require("../data-structures/http/HttpClient.cjs");require("axios");const u=async(e,t,r)=>s.httpClient.post(`${o.getServerURL(r)}${n.API_CONFIG.ROUTES.getTokenApprovalAmount}`,{html:e,tokenInfo:t}),p=async(e,t,r)=>s.httpClient.post(`${o.getServerURL(e)}${n.API_CONFIG.ROUTES.getTokenSpendsFromOrderMessage}`,{message:t,types:r});exports.getTokenApprovalAmountRequest=u;exports.getTokenSpendsFromOrderMessageRequest=p;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type TokenInfo = {
|
|
2
|
+
address?: string;
|
|
3
|
+
symbol?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
};
|
|
6
|
+
interface GetTokenApprovalAmountsResponse {
|
|
7
|
+
tokenAmount: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const getTokenApprovalAmountRequest: (html: string, tokenInfo: TokenInfo, chainId: number) => Promise<GetTokenApprovalAmountsResponse>;
|
|
10
|
+
interface GetTokenSpendsFromOrderMessageResponse {
|
|
11
|
+
tokenSpends: {
|
|
12
|
+
token: string;
|
|
13
|
+
amount: string;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
16
|
+
export declare const getTokenSpendsFromOrderMessageRequest: (chainId: number, message: Record<string, unknown>, types: Record<string, unknown>) => Promise<GetTokenSpendsFromOrderMessageResponse>;
|
|
17
|
+
export {};
|
package/API/ai-calls.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { API_CONFIG as r } from "../constants/server.constants.mjs";
|
|
2
|
+
import { getServerURL as n } from "./getServerURL.mjs";
|
|
3
|
+
import { httpClient as p } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
+
import "axios";
|
|
5
|
+
const u = async (e, t, o) => p.post(
|
|
6
|
+
`${n(o)}${r.ROUTES.getTokenApprovalAmount}`,
|
|
7
|
+
{
|
|
8
|
+
html: e,
|
|
9
|
+
tokenInfo: t
|
|
10
|
+
}
|
|
11
|
+
), T = async (e, t, o) => p.post(
|
|
12
|
+
`${n(e)}${r.ROUTES.getTokenSpendsFromOrderMessage}`,
|
|
13
|
+
{
|
|
14
|
+
message: t,
|
|
15
|
+
types: o
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
export {
|
|
19
|
+
u as getTokenApprovalAmountRequest,
|
|
20
|
+
T as getTokenSpendsFromOrderMessageRequest
|
|
21
|
+
};
|
package/API/callLifiAPI.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./getServerURL.cjs"),i=require("../constants/server.constants.cjs"),n=require("../data-structures/http/HttpClient.cjs");require("axios");const c=async(e,t)=>n.httpClient.post(`${r.getServerURL(e)}${i.API_CONFIG.ROUTES.callLifiAPI}`,t);exports.callLifiAPI=c;
|
package/API/callLifiAPI.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface LifiBridgeResponse {
|
|
|
27
27
|
toAmountMin: string;
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
export declare const callLifiAPI: (requestBody: LifiRequestData) => Promise<{
|
|
30
|
+
export declare const callLifiAPI: (chainId: number, requestBody: LifiRequestData) => Promise<{
|
|
31
31
|
status: 'success';
|
|
32
32
|
lifiResponse: LifiBridgeResponse;
|
|
33
33
|
}>;
|
package/API/callLifiAPI.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { API_CONFIG as
|
|
3
|
-
import { httpClient as
|
|
1
|
+
import { getServerURL as o } from "./getServerURL.mjs";
|
|
2
|
+
import { API_CONFIG as i } from "../constants/server.constants.mjs";
|
|
3
|
+
import { httpClient as m } from "../data-structures/http/HttpClient.mjs";
|
|
4
4
|
import "axios";
|
|
5
|
-
const c = async (t) =>
|
|
6
|
-
`${o}${
|
|
5
|
+
const c = async (r, t) => m.post(
|
|
6
|
+
`${o(r)}${i.ROUTES.callLifiAPI}`,
|
|
7
7
|
t
|
|
8
8
|
);
|
|
9
9
|
export {
|
package/API/callMonitor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("axios"),o=require("../constants/server.constants.cjs"),s=require("./getServerURL.cjs"),n=(r,e)=>t.post(`${s.getServerURL(e)}${o.API_CONFIG.ROUTES.monitor}`,{address:r,chainId:e});exports.monitor=n;
|
package/API/callMonitor.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const monitor: (address: string) => Promise<void
|
|
1
|
+
export declare const monitor: (address: string, chainId: number) => Promise<import("axios").AxiosResponse<void, any>>;
|
package/API/callMonitor.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import t from "axios";
|
|
2
|
+
import { API_CONFIG as m } from "../constants/server.constants.mjs";
|
|
3
|
+
import { getServerURL as i } from "./getServerURL.mjs";
|
|
4
|
+
const s = (r, o) => t.post(`${i(o)}${m.ROUTES.monitor}`, {
|
|
5
|
+
address: r,
|
|
6
|
+
chainId: o
|
|
7
7
|
});
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
s as monitor
|
|
10
10
|
};
|
package/API/callOdosAPI.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../constants/server.constants.cjs"),t=require("../constants/chains.constants.cjs"),s=require("./getServerURL.cjs"),n=require("../data-structures/http/HttpClient.cjs");require("axios");async function c(e,r){return[t.chainIds.base,t.chainIds.localhost].includes(e)||(r.referralCode="702077826"),n.httpClient.post(`${s.getServerURL(e)}${o.API_CONFIG.ROUTES.callOdosAPI}`,r)}const i=async(e,r)=>{try{return(await n.httpClient.get(`${s.getServerURL(e)}${o.API_CONFIG.ROUTES.getOdosPriceForToken(r)}`)).price}catch{return}};exports.callOdosAPI=c;exports.getOdosPriceForToken=i;
|
package/API/callOdosAPI.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { API_CONFIG as
|
|
2
|
-
import { chainIds as
|
|
3
|
-
import {
|
|
4
|
-
import { httpClient as
|
|
1
|
+
import { API_CONFIG as t } from "../constants/server.constants.mjs";
|
|
2
|
+
import { chainIds as e } from "../constants/chains.constants.mjs";
|
|
3
|
+
import { getServerURL as s } from "./getServerURL.mjs";
|
|
4
|
+
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
5
5
|
import "axios";
|
|
6
|
-
async function
|
|
7
|
-
return [
|
|
6
|
+
async function f(r, o) {
|
|
7
|
+
return [e.base, e.localhost].includes(r) || (o.referralCode = "702077826"), n.post(`${s(r)}${t.ROUTES.callOdosAPI}`, o);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const O = async (r, o) => {
|
|
10
10
|
try {
|
|
11
|
-
return (await
|
|
12
|
-
`${
|
|
11
|
+
return (await n.get(
|
|
12
|
+
`${s(r)}${t.ROUTES.getOdosPriceForToken(o)}`
|
|
13
13
|
)).price;
|
|
14
14
|
} catch {
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
f as callOdosAPI,
|
|
20
|
+
O as getOdosPriceForToken
|
|
21
21
|
};
|
package/API/callOkxAPI.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../constants/server.constants.cjs"),n=require("./getServerURL.cjs"),c=require("../data-structures/http/HttpClient.cjs");require("axios");async function l(e,t){return c.httpClient.post(`${n.getServerURL(e)}${r.API_CONFIG.ROUTES.callOkxAPI}`,t)}exports.callOkxAPI=l;
|
package/API/callOkxAPI.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { OKXQuote, OKXSwapResponse } from '../types/okx.types';
|
|
|
2
2
|
interface OKXSwapRequest {
|
|
3
3
|
quote: OKXQuote;
|
|
4
4
|
}
|
|
5
|
-
export declare function callOkxAPI(requestBody: OKXSwapRequest): Promise<{
|
|
5
|
+
export declare function callOkxAPI(chainId: number, requestBody: OKXSwapRequest): Promise<{
|
|
6
6
|
okxResponse: OKXSwapResponse;
|
|
7
7
|
status: string;
|
|
8
8
|
message?: string | undefined;
|
package/API/callOkxAPI.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { API_CONFIG as o } from "../constants/server.constants.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { httpClient as
|
|
2
|
+
import { getServerURL as m } from "./getServerURL.mjs";
|
|
3
|
+
import { httpClient as p } from "../data-structures/http/HttpClient.mjs";
|
|
4
4
|
import "axios";
|
|
5
|
-
async function c(t) {
|
|
6
|
-
return
|
|
7
|
-
`${r}${o.ROUTES.callOkxAPI}`,
|
|
5
|
+
async function c(r, t) {
|
|
6
|
+
return p.post(
|
|
7
|
+
`${m(r)}${o.ROUTES.callOkxAPI}`,
|
|
8
8
|
t
|
|
9
9
|
);
|
|
10
10
|
}
|
package/API/callOneInchAPI.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../constants/server.constants.cjs"),i=require("../constants/chains.constants.cjs"),l=require("./getServerURL.cjs"),r=require("../data-structures/http/HttpClient.cjs");require("axios");const d=async(n,e)=>{const t=i.getNonLocalhostChainId(n),a=new URLSearchParams;a.append("fromTokenAddress",e.fromTokenAddress),a.append("toTokenAddress",e.toTokenAddress),a.append("amount",`${e.amount}`),a.append("fromAddress",e.fromAddress),a.append("slippage",`${e.slippage}`),e.destReceiver&&a.append("destReceiver",e.destReceiver),e.disableEstimate&&a.append("disableEstimate",`${e.disableEstimate}`),e.allowPartialFill&&a.append("allowPartialFill",`${e.allowPartialFill}`);const o={url:`https://api.1inch.dev/swap/v5.2/${t}/swap?${a}`};return(await r.httpClient.post(`${l.getServerURL(n)}${s.API_CONFIG.ROUTES.callOneInchAPI}`,o)).oneInchResponse};exports.callOneInchAPI=d;
|
package/API/callOneInchAPI.mjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { API_CONFIG as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { API_CONFIG as t } from "../constants/server.constants.mjs";
|
|
2
|
+
import { getNonLocalhostChainId as s } from "../constants/chains.constants.mjs";
|
|
3
|
+
import { getServerURL as i } from "./getServerURL.mjs";
|
|
4
|
+
import { httpClient as d } from "../data-structures/http/HttpClient.mjs";
|
|
4
5
|
import "axios";
|
|
5
|
-
const
|
|
6
|
-
const e = new URLSearchParams();
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
url: `https://api.1inch.dev/swap/v5.2/${
|
|
6
|
+
const I = async (n, a) => {
|
|
7
|
+
const e = s(n), o = new URLSearchParams();
|
|
8
|
+
o.append("fromTokenAddress", a.fromTokenAddress), o.append("toTokenAddress", a.toTokenAddress), o.append("amount", `${a.amount}`), o.append("fromAddress", a.fromAddress), o.append("slippage", `${a.slippage}`), a.destReceiver && o.append("destReceiver", a.destReceiver), a.disableEstimate && o.append("disableEstimate", `${a.disableEstimate}`), a.allowPartialFill && o.append("allowPartialFill", `${a.allowPartialFill}`);
|
|
9
|
+
const p = {
|
|
10
|
+
url: `https://api.1inch.dev/swap/v5.2/${e}/swap?${o}`
|
|
10
11
|
};
|
|
11
|
-
return (await
|
|
12
|
+
return (await d.post(`${i(n)}${t.ROUTES.callOneInchAPI}`, p)).oneInchResponse;
|
|
12
13
|
};
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
I as callOneInchAPI
|
|
15
16
|
};
|
package/API/callRelayer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../constants/server.constants.cjs"),r=require("./getRelayerURL.cjs"),l=require("../data-structures/http/HttpClient.cjs");require("axios");async function n(e,t){return l.httpClient.post(`${r.getRelayerURL(e)}${a.RELAYER_CONFIG.TRANSACT}`,t)}async function c(e,t){return l.httpClient.post(`${r.getRelayerURL(e)}${a.RELAYER_CONFIG.TRANSACT_BATCH}`,t)}async function R(e,t){return l.httpClient.post(`${r.getRelayerURL(e)}${a.RELAYER_CONFIG.SOLANA_TRANSACT_BATCH}`,t)}exports.callRelayerSolanaTransactBatchAPI=R;exports.callRelayerTransactAPI=n;exports.callRelayerTransactBatchAPI=c;
|
package/API/callRelayer.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { AuthorizationData } from '../types/hinkal.types';
|
|
|
3
3
|
import { AdminDataType } from '../types/admin.types';
|
|
4
4
|
import { SolanaTransactionBody } from '../types/solana.types';
|
|
5
5
|
export interface HinkalTransactionRequestBody {
|
|
6
|
-
chainId: number;
|
|
7
6
|
a: [string, string];
|
|
8
7
|
b: [[string, string], [string, string]];
|
|
9
8
|
c: [string, string];
|
|
@@ -14,18 +13,18 @@ export interface HinkalTransactionRequestBody {
|
|
|
14
13
|
authorizationData?: AuthorizationData;
|
|
15
14
|
adminData?: AdminDataType;
|
|
16
15
|
}
|
|
17
|
-
export declare function callRelayerTransactAPI(requestBody: HinkalTransactionRequestBody): Promise<any>;
|
|
16
|
+
export declare function callRelayerTransactAPI(chainId: number, requestBody: HinkalTransactionRequestBody): Promise<any>;
|
|
18
17
|
export interface HinkalTransactionBatchRequestBody {
|
|
19
|
-
chainId: number;
|
|
20
18
|
transactions: HinkalTransactionRequestBody[];
|
|
21
19
|
hashedEthereumAddress: string;
|
|
22
20
|
txCompletionTime?: number;
|
|
21
|
+
ref?: string;
|
|
23
22
|
}
|
|
24
23
|
export interface SolanaTransactionBatchRequestBody {
|
|
25
|
-
chainId: number;
|
|
26
24
|
transactions: SolanaTransactionBody[];
|
|
27
25
|
hashedEthereumAddress: string;
|
|
28
26
|
txCompletionTime?: number;
|
|
27
|
+
ref?: string;
|
|
29
28
|
}
|
|
30
|
-
export declare function callRelayerTransactBatchAPI(requestBody: HinkalTransactionBatchRequestBody): Promise<any>;
|
|
31
|
-
export declare function callRelayerSolanaTransactBatchAPI(requestBody: SolanaTransactionBatchRequestBody): Promise<any>;
|
|
29
|
+
export declare function callRelayerTransactBatchAPI(chainId: number, requestBody: HinkalTransactionBatchRequestBody): Promise<any>;
|
|
30
|
+
export declare function callRelayerSolanaTransactBatchAPI(chainId: number, requestBody: SolanaTransactionBatchRequestBody): Promise<any>;
|