@kapa123456789/sdk 0.0.25 → 0.0.36
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/common/src/API/accessCodeCalls.cjs +1 -1
- package/common/src/API/accessCodeCalls.mjs +0 -1
- package/common/src/API/admin-calls.cjs +1 -1
- package/common/src/API/admin-calls.mjs +0 -1
- package/common/src/API/brotherhoodCalls.cjs +1 -1
- package/common/src/API/brotherhoodCalls.mjs +0 -1
- package/common/src/API/callLifiAPI.cjs +1 -1
- package/common/src/API/callLifiAPI.mjs +0 -1
- package/common/src/API/callMonitor.cjs +1 -1
- package/common/src/API/callMonitor.mjs +0 -1
- package/common/src/API/callOdosAPI.cjs +1 -1
- package/common/src/API/callOdosAPI.mjs +0 -1
- package/common/src/API/callOkxAPI.cjs +1 -1
- package/common/src/API/callOkxAPI.mjs +0 -1
- package/common/src/API/callOneInchAPI.cjs +1 -1
- package/common/src/API/callOneInchAPI.mjs +0 -1
- package/common/src/API/callRelayer.cjs +1 -1
- package/common/src/API/callRelayer.mjs +0 -1
- package/common/src/API/dashboardAccountCalls.cjs +1 -1
- package/common/src/API/dashboardAccountCalls.mjs +0 -1
- package/common/src/API/dashboardAccountMemberCalls.cjs +1 -1
- package/common/src/API/dashboardAccountMemberCalls.mjs +0 -1
- package/common/src/API/dashboardBalanceCalls.cjs +1 -1
- package/common/src/API/dashboardBalanceCalls.mjs +0 -1
- package/common/src/API/dashboardContactCalls.cjs +1 -1
- package/common/src/API/dashboardContactCalls.mjs +0 -1
- package/common/src/API/dashboardPayoutCalls.cjs +1 -1
- package/common/src/API/dashboardPayoutCalls.mjs +0 -1
- package/common/src/API/dashboardTransactionCalls.cjs +1 -1
- package/common/src/API/dashboardTransactionCalls.mjs +0 -1
- package/common/src/API/enclaveSignatureCalls.cjs +1 -1
- package/common/src/API/enclaveSignatureCalls.mjs +0 -1
- package/common/src/API/enclaveUtxoCalls.cjs +1 -1
- package/common/src/API/enclaveUtxoCalls.mjs +0 -1
- package/common/src/API/fetchCommitmentsCache.cjs +1 -1
- package/common/src/API/fetchCommitmentsCache.mjs +0 -1
- package/common/src/API/generate-trading-points.cjs +1 -1
- package/common/src/API/generate-trading-points.mjs +0 -1
- package/common/src/API/get-token-data.cjs +1 -1
- package/common/src/API/get-token-data.mjs +0 -1
- package/common/src/API/getGasEstimates.cjs +1 -1
- package/common/src/API/getGasEstimates.mjs +0 -1
- package/common/src/API/getTokenPrice.cjs +1 -1
- package/common/src/API/getTokenPrice.mjs +0 -1
- package/common/src/API/kycCalls.cjs +1 -1
- package/common/src/API/kycCalls.mjs +0 -1
- package/common/src/API/leaderboardCalls.cjs +1 -1
- package/common/src/API/leaderboardCalls.mjs +0 -1
- package/common/src/API/onrampCalls.cjs +1 -1
- package/common/src/API/onrampCalls.mjs +0 -1
- package/common/src/API/privacy-score-calls.cjs +1 -1
- package/common/src/API/privacy-score-calls.mjs +0 -1
- package/common/src/API/privateSendEmailNotificationsCalls.cjs +1 -1
- package/common/src/API/privateSendEmailNotificationsCalls.mjs +0 -1
- package/common/src/API/privateSendNonceCalls.cjs +1 -1
- package/common/src/API/privateSendNonceCalls.mjs +0 -1
- package/common/src/API/privateSendRecipientInfoCalls.cjs +1 -1
- package/common/src/API/privateSendRecipientInfoCalls.mjs +0 -1
- package/common/src/API/proxyAccountsCalls.cjs +1 -1
- package/common/src/API/proxyAccountsCalls.mjs +0 -1
- package/common/src/API/referralsCalls.cjs +1 -1
- package/common/src/API/referralsCalls.mjs +0 -1
- package/common/src/API/relayCalls.cjs +1 -1
- package/common/src/API/relayCalls.mjs +0 -1
- package/common/src/API/rewardsUserCalls.cjs +1 -1
- package/common/src/API/rewardsUserCalls.mjs +0 -1
- package/common/src/API/seedless-calls.cjs +1 -1
- package/common/src/API/seedless-calls.mjs +0 -1
- package/common/src/API/send-telegram-callback.cjs +1 -1
- package/common/src/API/send-telegram-callback.mjs +0 -1
- package/common/src/API/simulate-batch-tx.cjs +1 -1
- package/common/src/API/simulate-batch-tx.mjs +0 -1
- package/common/src/API/simulate-transaction.cjs +1 -1
- package/common/src/API/simulate-transaction.mjs +0 -1
- package/common/src/API/snapshot-event-calls.cjs +1 -1
- package/common/src/API/snapshot-event-calls.mjs +0 -1
- package/common/src/API/solana-calls.cjs +1 -1
- package/common/src/API/solana-calls.mjs +0 -1
- package/common/src/API/temporaryWalletCalls.cjs +1 -1
- package/common/src/API/temporaryWalletCalls.mjs +0 -1
- package/common/src/API/token-calls.cjs +1 -1
- package/common/src/API/token-calls.mjs +0 -1
- package/common/src/API/tronSubsidyCalls.cjs +1 -1
- package/common/src/API/tronSubsidyCalls.mjs +0 -1
- package/common/src/API/weeklyAnalyticCalls.cjs +1 -1
- package/common/src/API/weeklyAnalyticCalls.mjs +0 -1
- package/common/src/constants/addresses.constants.cjs +1 -1
- package/common/src/constants/addresses.constants.mjs +0 -1
- package/common/src/constants/chains.constants.cjs +1 -1
- package/common/src/constants/chains.constants.mjs +30 -30
- package/common/src/constants/contracts.constants.cjs +1 -1
- package/common/src/constants/contracts.constants.mjs +1 -1
- package/common/src/constants/kyc.constants.cjs +1 -1
- package/common/src/constants/kyc.constants.mjs +1 -1
- package/common/src/constants/lifi.constants.cjs +1 -1
- package/common/src/constants/lifi.constants.mjs +1 -1
- package/common/src/constants/permit2.constants.cjs +1 -1
- package/common/src/constants/permit2.constants.mjs +7 -8
- package/common/src/constants/protocol.constants.cjs +1 -1
- package/common/src/constants/protocol.constants.mjs +3 -8
- package/common/src/constants/server.constants.cjs +1 -1
- package/common/src/constants/server.constants.mjs +1 -2
- package/common/src/constants/vite.constants.cjs +1 -1
- package/common/src/constants/vite.constants.mjs +2 -2
- package/common/src/crypto/babyJub.cjs +1 -1
- package/common/src/crypto/babyJub.mjs +6 -5
- package/common/src/crypto/poseidon.cjs +1 -1
- package/common/src/crypto/poseidon.mjs +11 -10
- package/common/src/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/common/src/data-structures/Hinkal/Hinkal.d.ts +0 -4
- package/common/src/data-structures/Hinkal/Hinkal.mjs +2 -13
- package/common/src/data-structures/Hinkal/IHinkal.d.ts +0 -3
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.mjs +0 -4
- package/common/src/data-structures/Hinkal/hinkalCheckTokenRegistry.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +0 -1
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.mjs +0 -1
- package/common/src/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDeposit.mjs +0 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.mjs +0 -4
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +0 -3
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +0 -1
- package/common/src/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalPrivateWallet.mjs +0 -2
- package/common/src/data-structures/Hinkal/hinkalSignSubAccount.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSignSubAccount.mjs +0 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.mjs +0 -2
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.mjs +0 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +0 -4
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +0 -3
- package/common/src/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaSwap.mjs +0 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.mjs +0 -2
- package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +0 -3
- package/common/src/data-structures/Hinkal/hinkalSwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSwap.mjs +0 -1
- package/common/src/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalTransfer.mjs +0 -2
- package/common/src/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalWithdraw.mjs +0 -2
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +0 -2
- package/common/src/data-structures/Hinkal/index.d.ts +0 -1
- package/common/src/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
- package/common/src/data-structures/Hinkal/resetMerkleTrees.mjs +0 -3
- package/common/src/data-structures/IndexedDB/activity-db.cjs +1 -1
- package/common/src/data-structures/IndexedDB/activity-db.mjs +3 -7
- package/common/src/data-structures/IndexedDB/index.d.ts +0 -1
- package/common/src/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -1
- package/common/src/data-structures/TokenDBs/PrivateTokensDB.mjs +3 -4
- package/common/src/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
- package/common/src/data-structures/crypto-keys/decodeUTXO.mjs +1 -2
- package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -1
- package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.mjs +0 -2
- package/common/src/data-structures/crypto-keys/keyUtils.cjs +1 -1
- package/common/src/data-structures/crypto-keys/keyUtils.mjs +1 -1
- package/common/src/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.cjs +1 -1
- package/common/src/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.mjs +0 -2
- package/common/src/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.cjs +1 -1
- package/common/src/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.mjs +0 -2
- package/common/src/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.cjs +1 -1
- package/common/src/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs +0 -2
- package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs +1 -1
- package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +0 -2
- package/common/src/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.cjs +1 -1
- package/common/src/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.mjs +0 -1
- package/common/src/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.cjs +1 -1
- package/common/src/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.mjs +0 -1
- package/common/src/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.cjs +1 -1
- package/common/src/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.mjs +0 -1
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.cjs +1 -1
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs +0 -1
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.cjs +1 -1
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs +0 -1
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.cjs +1 -1
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.mjs +0 -1
- package/common/src/error-handling/customErrors/customErrors.helpers.cjs +1 -1
- package/common/src/error-handling/customErrors/customErrors.helpers.mjs +0 -2
- package/common/src/error-handling/get-error.message.cjs +1 -1
- package/common/src/error-handling/get-error.message.mjs +1 -3
- package/common/src/functions/auto-deposit-back-helpers/get-gas-token-records.cjs +1 -1
- package/common/src/functions/auto-deposit-back-helpers/get-gas-token-records.mjs +0 -2
- package/common/src/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.cjs +1 -1
- package/common/src/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.mjs +0 -1
- package/common/src/functions/auto-deposit-back-helpers/select-gas-token.cjs +1 -1
- package/common/src/functions/auto-deposit-back-helpers/select-gas-token.mjs +0 -4
- package/common/src/functions/kyc/checkTokenLimitsUSD.cjs +1 -1
- package/common/src/functions/kyc/checkTokenLimitsUSD.mjs +0 -5
- package/common/src/functions/pre-transaction/getVolatileTransferAmount.cjs +1 -1
- package/common/src/functions/pre-transaction/getVolatileTransferAmount.mjs +0 -1
- package/common/src/functions/pre-transaction/sendV0Transaction.cjs +1 -1
- package/common/src/functions/pre-transaction/sendV0Transaction.mjs +1 -1
- package/common/src/functions/pre-transaction/solana.cjs +1 -1
- package/common/src/functions/pre-transaction/solana.mjs +1 -1
- package/common/src/functions/private-wallet/emporium.helpers.cjs +1 -1
- package/common/src/functions/private-wallet/emporium.helpers.mjs +1 -2
- package/common/src/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
- package/common/src/functions/private-wallet/emporium.swap.helpers.mjs +1 -2
- package/common/src/functions/snarkjs/constructEmporiumProof.cjs +1 -1
- package/common/src/functions/snarkjs/constructEmporiumProof.mjs +0 -1
- package/common/src/functions/snarkjs/constructSolanaZkProof.cjs +1 -1
- package/common/src/functions/snarkjs/constructSolanaZkProof.mjs +0 -1
- package/common/src/functions/snarkjs/generateZkProofEnclave.cjs +1 -1
- package/common/src/functions/snarkjs/generateZkProofEnclave.mjs +0 -1
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.cjs +1 -1
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +0 -1
- package/common/src/functions/utils/addresses.cjs +1 -1
- package/common/src/functions/utils/addresses.mjs +0 -1
- package/common/src/functions/utils/cacheDevice.utils.cjs +1 -1
- package/common/src/functions/utils/cacheDevice.utils.mjs +0 -2
- package/common/src/functions/utils/cacheFunctions.cjs +1 -1
- package/common/src/functions/utils/cacheFunctions.mjs +1 -1
- package/common/src/functions/utils/encryptInputForEnclave.cjs +1 -1
- package/common/src/functions/utils/encryptInputForEnclave.mjs +0 -1
- package/common/src/functions/utils/erc20tokenFunctions.cjs +1 -1
- package/common/src/functions/utils/erc20tokenFunctions.mjs +2 -14
- package/common/src/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -1
- package/common/src/functions/utils/getRecipientInfoFromUserKeys.mjs +0 -1
- package/common/src/functions/utils/getUtxosFromReceipt.utils.cjs +1 -1
- package/common/src/functions/utils/getUtxosFromReceipt.utils.mjs +0 -3
- package/common/src/functions/utils/getUtxosFromReceiptSolana.cjs +1 -1
- package/common/src/functions/utils/getUtxosFromReceiptSolana.mjs +0 -1
- package/common/src/functions/utils/process.utils.cjs +1 -1
- package/common/src/functions/utils/process.utils.mjs +1 -1
- package/common/src/functions/utils/publicBalance.utils.cjs +1 -1
- package/common/src/functions/utils/publicBalance.utils.mjs +6 -20
- package/common/src/functions/utils/solanaMint.utils.cjs +1 -1
- package/common/src/functions/utils/solanaMint.utils.mjs +1 -1
- package/common/src/functions/utils/string.utils.cjs +1 -1
- package/common/src/functions/utils/string.utils.mjs +7 -10
- package/common/src/functions/utils/token-check.utils.cjs +1 -1
- package/common/src/functions/utils/token-check.utils.mjs +0 -2
- package/common/src/functions/utils/tron.utils.cjs +1 -1
- package/common/src/functions/utils/tron.utils.mjs +1 -1
- package/common/src/functions/utils/tx-confirmation.utils.cjs +1 -1
- package/common/src/functions/utils/tx-confirmation.utils.mjs +1 -2
- package/common/src/functions/web3/events/balanceChangedHandler.cjs +1 -1
- package/common/src/functions/web3/events/balanceChangedHandler.d.ts +1 -1
- package/common/src/functions/web3/events/balanceChangedHandler.mjs +0 -1
- package/common/src/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
- package/common/src/functions/web3/events/getInputUtxoAndBalance.mjs +1 -1
- package/common/src/functions/web3/events/getShieldedBalance.cjs +1 -1
- package/common/src/functions/web3/events/getShieldedBalance.mjs +0 -1
- package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.cjs +1 -1
- package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +0 -1
- package/common/src/functions/web3/functionCalls/accessTokenCalls.cjs +1 -1
- package/common/src/functions/web3/functionCalls/accessTokenCalls.mjs +0 -1
- package/common/src/functions/web3/functionCalls/recoverTransactionFromError.cjs +1 -1
- package/common/src/functions/web3/functionCalls/recoverTransactionFromError.mjs +0 -1
- package/common/src/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/common/src/functions/web3/functionCalls/transactCallRelayer.mjs +0 -2
- package/common/src/functions/web3/getSolanaPriorityFee.cjs +1 -1
- package/common/src/functions/web3/getSolanaPriorityFee.mjs +0 -1
- package/common/src/functions/web3/odosAPI.cjs +1 -1
- package/common/src/functions/web3/odosAPI.mjs +0 -2
- package/common/src/functions/web3/okxAPI.cjs +1 -1
- package/common/src/functions/web3/okxAPI.mjs +1 -1
- package/common/src/functions/web3/oneInchAPI.cjs +1 -1
- package/common/src/functions/web3/oneInchAPI.mjs +0 -3
- package/common/src/functions/web3/uniswapAPI.cjs +1 -1
- package/common/src/functions/web3/uniswapAPI.mjs +1 -4
- package/common/src/providers/TronProviderAdapter.cjs +1 -1
- package/common/src/providers/TronProviderAdapter.mjs +0 -1
- package/common/src/types/balances.types.d.ts +0 -22
- package/common/src/types/hinkal.types.cjs +1 -1
- package/common/src/types/hinkal.types.mjs +1 -1
- package/common/src/types/kyc.types.cjs +1 -1
- package/common/src/types/kyc.types.mjs +1 -1
- package/common/src/types/new-rewards.type.cjs +1 -1
- package/common/src/types/new-rewards.type.mjs +1 -5
- package/common/src/webworker/logError-FeCdVeea.js +1 -0
- package/common/src/webworker/package.json +1 -1
- package/common/src/webworker/snarkjsWorker/snarkjsWorkerNode.d.ts +1 -0
- package/common/src/webworker/snarkjsWorkerNode.cjs +122 -11
- package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -1
- package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +1 -1
- package/common/src/webworker/utxoWorker/utxoWorkerNode.d.ts +1 -0
- package/common/src/webworker/utxoWorkerNode.cjs +1 -1
- package/common/src/webworker/workerProxy-5NFtWSKK.js +1 -0
- package/common/src/webworker/workerThreadsPatch.d.ts +2 -1
- package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -1
- package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +1 -1
- package/common/src/webworker/zkProofWorker/zkProofWorkerNode.d.ts +1 -0
- package/common/src/webworker/zkProofWorkerNode.cjs +1 -1
- package/functions/index.mjs +0 -1
- package/functions/utils/index.mjs +0 -1
- package/index.cjs +1 -1
- package/index.mjs +0 -1
- package/package.json +1 -1
- package/services/Hinkal.cjs +1 -1
- package/services/Hinkal.d.ts +3 -3
- package/services/Hinkal.mjs +7 -10
- package/types/IHinkal.d.ts +3 -4
- package/types/balances.types.d.ts +1 -1
- package/common/src/API/checkRisk.cjs +0 -1
- package/common/src/API/checkRisk.mjs +0 -3
- package/common/src/API/enclaveRecipientInfoCalls.cjs +0 -1
- package/common/src/API/enclaveRecipientInfoCalls.mjs +0 -2
- package/common/src/API/getCoingeckoPrice.cjs +0 -1
- package/common/src/API/getCoingeckoPrice.mjs +0 -2
- package/common/src/API/getWebsiteURL.cjs +0 -1
- package/common/src/API/getWebsiteURL.mjs +0 -1
- package/common/src/API/index.cjs +0 -1
- package/common/src/API/index.mjs +0 -24
- package/common/src/API/resolve-sns.cjs +0 -1
- package/common/src/API/resolve-sns.mjs +0 -1
- package/common/src/API/tenderly.api.cjs +0 -1
- package/common/src/API/tenderly.api.mjs +0 -4
- package/common/src/constants/activity.constants.cjs +0 -1
- package/common/src/constants/activity.constants.mjs +0 -4
- package/common/src/constants/assets.constants.cjs +0 -1
- package/common/src/constants/assets.constants.mjs +0 -4
- package/common/src/constants/coingecko.constants.cjs +0 -1
- package/common/src/constants/coingecko.constants.mjs +0 -6
- package/common/src/constants/events.constants.cjs +0 -1
- package/common/src/constants/events.constants.mjs +0 -12
- package/common/src/constants/index.cjs +0 -1
- package/common/src/constants/index.mjs +0 -34
- package/common/src/constants/presale.constants.cjs +0 -1
- package/common/src/constants/presale.constants.mjs +0 -3
- package/common/src/constants/schedule.constants.cjs +0 -1
- package/common/src/constants/schedule.constants.mjs +0 -3
- package/common/src/constants/tasks.constants.cjs +0 -1
- package/common/src/constants/tasks.constants.mjs +0 -124
- package/common/src/constants/token-data/arbMainnetRegistryFixed.json.cjs +0 -1
- package/common/src/constants/token-data/arbMainnetRegistryFixed.json.mjs +0 -1841
- package/common/src/constants/token-data/baseRegistryFixed.json.cjs +0 -1
- package/common/src/constants/token-data/baseRegistryFixed.json.mjs +0 -1142
- package/common/src/constants/token-data/ethMainnetRegistryFixed.json.cjs +0 -1
- package/common/src/constants/token-data/ethMainnetRegistryFixed.json.mjs +0 -4274
- package/common/src/constants/token-data/index.cjs +0 -1
- package/common/src/constants/token-data/index.mjs +0 -17
- package/common/src/constants/token-data/optimismRegistryFixed.json.cjs +0 -1
- package/common/src/constants/token-data/optimismRegistryFixed.json.mjs +0 -709
- package/common/src/constants/token-data/polygonRegistryFixed.json.cjs +0 -1
- package/common/src/constants/token-data/polygonRegistryFixed.json.mjs +0 -2317
- package/common/src/constants/token.limits.constants.cjs +0 -1
- package/common/src/constants/token.limits.constants.mjs +0 -5
- package/common/src/constants/tokens.constants.cjs +0 -1
- package/common/src/constants/tokens.constants.mjs +0 -3
- package/common/src/crypto/index.cjs +0 -1
- package/common/src/crypto/index.mjs +0 -3
- package/common/src/data-structures/AccountActions/index.cjs +0 -1
- package/common/src/data-structures/AccountActions/index.mjs +0 -1
- package/common/src/data-structures/Hinkal/HinkalPrivateBalanceController.cjs +0 -1
- package/common/src/data-structures/Hinkal/HinkalPrivateBalanceController.d.ts +0 -19
- package/common/src/data-structures/Hinkal/HinkalPrivateBalanceController.mjs +0 -239
- package/common/src/data-structures/IndexedDB/balances-db.cjs +0 -1
- package/common/src/data-structures/IndexedDB/balances-db.mjs +0 -47
- package/common/src/data-structures/IndexedDB/contact-db.cjs +0 -1
- package/common/src/data-structures/IndexedDB/contact-db.mjs +0 -45
- package/common/src/data-structures/IndexedDB/index.cjs +0 -1
- package/common/src/data-structures/IndexedDB/index.mjs +0 -8
- package/common/src/data-structures/IndexedDB/key-val-store.cjs +0 -1
- package/common/src/data-structures/IndexedDB/key-val-store.d.ts +0 -6
- package/common/src/data-structures/IndexedDB/key-val-store.mjs +0 -41
- package/common/src/data-structures/IndexedDB/pay-activity-db.cjs +0 -1
- package/common/src/data-structures/IndexedDB/pay-activity-db.mjs +0 -21
- package/common/src/data-structures/IndexedDB/prices-db.cjs +0 -1
- package/common/src/data-structures/IndexedDB/prices-db.mjs +0 -54
- package/common/src/data-structures/IndexedDB/private-balances-db.cjs +0 -1
- package/common/src/data-structures/IndexedDB/private-balances-db.mjs +0 -21
- package/common/src/data-structures/IndexedDB/signatures-db.cjs +0 -1
- package/common/src/data-structures/IndexedDB/signatures-db.mjs +0 -40
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +0 -168
- package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.mjs +0 -94
- package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.mjs +0 -144
- package/common/src/data-structures/TokenDBs/PublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/PublicTokensDB.mjs +0 -29
- package/common/src/data-structures/TokenDBs/index.cjs +0 -1
- package/common/src/data-structures/TokenDBs/index.mjs +0 -4
- package/common/src/data-structures/cacheDevices/index.cjs +0 -1
- package/common/src/data-structures/cacheDevices/index.mjs +0 -2
- package/common/src/data-structures/crypto-keys/index.cjs +0 -1
- package/common/src/data-structures/crypto-keys/index.mjs +0 -4
- package/common/src/data-structures/event-service/evm/PollingBlockchainEventEmitter.cjs +0 -1
- package/common/src/data-structures/event-service/evm/PollingBlockchainEventEmitter.mjs +0 -1
- package/common/src/data-structures/event-service/index.cjs +0 -1
- package/common/src/data-structures/event-service/index.mjs +0 -16
- package/common/src/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.cjs +0 -1
- package/common/src/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.mjs +0 -1
- package/common/src/data-structures/http/index.cjs +0 -1
- package/common/src/data-structures/http/index.mjs +0 -2
- package/common/src/data-structures/merkle-tree/index.cjs +0 -1
- package/common/src/data-structures/merkle-tree/index.mjs +0 -3
- package/common/src/data-structures/snapshot/index.cjs +0 -1
- package/common/src/data-structures/snapshot/index.mjs +0 -7
- package/common/src/error-handling/customErrors/index.cjs +0 -1
- package/common/src/error-handling/customErrors/index.mjs +0 -4
- package/common/src/error-handling/index.cjs +0 -1
- package/common/src/error-handling/index.mjs +0 -10
- package/common/src/functions/auto-deposit-back-helpers/index.cjs +0 -1
- package/common/src/functions/auto-deposit-back-helpers/index.mjs +0 -4
- package/common/src/functions/index.cjs +0 -1
- package/common/src/functions/index.mjs +0 -82
- package/common/src/functions/kyc/index.cjs +0 -1
- package/common/src/functions/kyc/index.mjs +0 -4
- package/common/src/functions/kyc/passportHelper.cjs +0 -1
- package/common/src/functions/kyc/passportHelper.mjs +0 -1
- package/common/src/functions/pre-transaction/addressTableLookup.cjs +0 -1
- package/common/src/functions/pre-transaction/addressTableLookup.mjs +0 -2
- package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.cjs +0 -1
- package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.mjs +0 -5
- package/common/src/functions/pre-transaction/getFlatFees.cjs +0 -1
- package/common/src/functions/pre-transaction/getFlatFees.mjs +0 -4
- package/common/src/functions/pre-transaction/index.cjs +0 -1
- package/common/src/functions/pre-transaction/index.mjs +0 -21
- package/common/src/functions/pre-transaction/initTokenLimitIfNeeded.cjs +0 -1
- package/common/src/functions/pre-transaction/initTokenLimitIfNeeded.mjs +0 -3
- package/common/src/functions/pre-transaction/interaction-to-action.cjs +0 -1
- package/common/src/functions/pre-transaction/interaction-to-action.mjs +0 -1
- package/common/src/functions/pre-transaction/sendInitNullifiersTransaction.cjs +0 -1
- package/common/src/functions/pre-transaction/sendInitNullifiersTransaction.mjs +0 -3
- package/common/src/functions/pre-transaction/store-instructions.cjs +0 -1
- package/common/src/functions/pre-transaction/store-instructions.mjs +0 -2
- package/common/src/functions/pre-transaction/store-proof.cjs +0 -1
- package/common/src/functions/pre-transaction/store-proof.mjs +0 -3
- package/common/src/functions/private-wallet/index.cjs +0 -1
- package/common/src/functions/private-wallet/index.mjs +0 -3
- package/common/src/functions/private-wallet/opProducer.cjs +0 -1
- package/common/src/functions/private-wallet/opProducer.mjs +0 -3
- package/common/src/functions/snarkjs/index.cjs +0 -1
- package/common/src/functions/snarkjs/index.mjs +0 -7
- package/common/src/functions/snarkjs/verifyCommitmentValidationData.cjs +0 -1
- package/common/src/functions/snarkjs/verifyCommitmentValidationData.mjs +0 -6
- package/common/src/functions/utils/buildClaimableDepositPlan.cjs +0 -1
- package/common/src/functions/utils/buildClaimableDepositPlan.mjs +0 -3
- package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.cjs +0 -1
- package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.mjs +0 -4
- package/common/src/functions/utils/deposit-claimable.utils.cjs +0 -1
- package/common/src/functions/utils/deposit-claimable.utils.mjs +0 -12
- package/common/src/functions/utils/dispatchBalanceRefreshes.cjs +0 -1
- package/common/src/functions/utils/dispatchBalanceRefreshes.mjs +0 -4
- package/common/src/functions/utils/enclave-recipient-info-storage.cjs +0 -1
- package/common/src/functions/utils/enclave-recipient-info-storage.mjs +0 -2
- package/common/src/functions/utils/enclave-signature-storage.cjs +0 -1
- package/common/src/functions/utils/enclave-signature-storage.mjs +0 -2
- package/common/src/functions/utils/enclave-utxo-storage.cjs +0 -1
- package/common/src/functions/utils/enclave-utxo-storage.mjs +0 -4
- package/common/src/functions/utils/evmNetworkFunctions.cjs +0 -1
- package/common/src/functions/utils/evmNetworkFunctions.mjs +0 -1
- package/common/src/functions/utils/formatter.cjs +0 -1
- package/common/src/functions/utils/formatter.mjs +0 -1
- package/common/src/functions/utils/getBlockExplorerUrl.cjs +0 -1
- package/common/src/functions/utils/getBlockExplorerUrl.mjs +0 -1
- package/common/src/functions/utils/inLogicMetadata.cjs +0 -1
- package/common/src/functions/utils/inLogicMetadata.mjs +0 -1
- package/common/src/functions/utils/index.cjs +0 -1
- package/common/src/functions/utils/index.mjs +0 -68
- package/common/src/functions/utils/ipfs.cjs +0 -1
- package/common/src/functions/utils/ipfs.mjs +0 -1
- package/common/src/functions/utils/lifi.utils.cjs +0 -1
- package/common/src/functions/utils/lifi.utils.mjs +0 -4
- package/common/src/functions/utils/networks.utils.cjs +0 -1
- package/common/src/functions/utils/networks.utils.mjs +0 -1
- package/common/src/functions/utils/nftTokenFunctions.cjs +0 -1
- package/common/src/functions/utils/nftTokenFunctions.mjs +0 -2
- package/common/src/functions/utils/prepareHinkal.cjs +0 -1
- package/common/src/functions/utils/prepareHinkal.mjs +0 -7
- package/common/src/functions/utils/rpc-int-encode.cjs +0 -1
- package/common/src/functions/utils/rpc-int-encode.mjs +0 -1
- package/common/src/functions/utils/transfer-claimable.utils.cjs +0 -1
- package/common/src/functions/utils/transfer-claimable.utils.mjs +0 -12
- package/common/src/functions/utils/userAgent.cjs +0 -1
- package/common/src/functions/utils/userAgent.mjs +0 -3
- package/common/src/functions/utils/walletBalances.utils.cjs +0 -1
- package/common/src/functions/utils/walletBalances.utils.mjs +0 -1
- package/common/src/functions/web3/EIP-712.cjs +0 -1
- package/common/src/functions/web3/EIP-712.mjs +0 -1
- package/common/src/functions/web3/connectors.utils.cjs +0 -1
- package/common/src/functions/web3/connectors.utils.mjs +0 -1
- package/common/src/functions/web3/events/getTransactionLogEvents.cjs +0 -1
- package/common/src/functions/web3/events/getTransactionLogEvents.mjs +0 -2
- package/common/src/functions/web3/events/index.cjs +0 -1
- package/common/src/functions/web3/events/index.mjs +0 -4
- package/common/src/functions/web3/getTokenHolder.cjs +0 -1
- package/common/src/functions/web3/getTokenHolder.mjs +0 -7
- package/common/src/functions/web3/index.cjs +0 -1
- package/common/src/functions/web3/index.mjs +0 -16
- package/common/src/functions/web3/runContractFunction.cjs +0 -1
- package/common/src/functions/web3/runContractFunction.mjs +0 -1
- package/common/src/mutexes/mutex.cjs +0 -1
- package/common/src/mutexes/mutex.mjs +0 -3
- package/common/src/types/index.cjs +0 -1
- package/common/src/types/index.mjs +0 -19
- package/common/src/types/schedule.types.cjs +0 -1
- package/common/src/types/schedule.types.mjs +0 -6
- package/common/src/webworker/workerProxy-DPSmXOIl.js +0 -122
- package/functions/integrations/index.mjs +0 -5
- package/functions/utils/getFeeStructure.mjs +0 -1
- package/types/balances.types.cjs +0 -1
- package/types/balances.types.mjs +0 -2
- package/types/external-action.types.cjs +0 -1
- package/types/external-action.types.mjs +0 -2
- package/types/index.cjs +0 -1
- package/types/index.mjs +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`)
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`),r=require(`../functions/utils/get-signature-header.cjs`);var i=async({accessCode:i,ethereumAddress:a,signature:o,proxyAddress:s})=>n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.submitAccessCode}`,{accessCode:i,ethereumAddress:a,proxyAddress:s},r.getSignatureHeader(o)),a=async r=>n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getAccessCodeBenefits}/${r}`);exports.getAccessCodeBenefits=a,exports.submitAccessCode=i;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DATA_SERVER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
import { getSignatureHeader as r } from "../functions/utils/get-signature-header.mjs";
|
|
6
5
|
//#region libs/shared/common/src/API/accessCodeCalls.ts
|
|
7
6
|
var i = async ({ accessCode: i, ethereumAddress: a, signature: o, proxyAddress: s }) => n.post(`${t}${e.submitAccessCode}`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=r=>n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.emitTxPublicData}`,{adminData:r});exports.emitTxPublicData=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RELAYER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { RELAYER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/admin-calls.ts
|
|
6
5
|
var r = (r) => n.post(`${t}${e.emitTxPublicData}`, { adminData: r });
|
|
7
6
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`)
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`),r=require(`../functions/utils/get-signature-header.cjs`);var i=async({brotherhoodId:r})=>await n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getBrotherhood(r)}`),a=async r=>await n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getBrotherhoodUsers(r)}`),o=async r=>await n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getCurrentUserBrotherhoodUsers(r)}`),s=async i=>await n.httpClient.patch(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.editBrotherhood}`,i,r.getSignatureHeader(i.signature)),c=async i=>await n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.createBrotherhood}`,i,r.getSignatureHeader(i.signature)),l=async({ethereumAddress:r})=>await n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getCurrentUserBrotherhood}`,{ethereumAddress:r}),u=async()=>await n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getPublicBrotherhoods}`),d=async({brotherhoodId:i,transferEthereumAddress:a,ethereumAddress:o,signature:s,proxyAddress:c})=>await n.httpClient.patch(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.leaveBrotherhood(i)}`,{transferEthereumAddress:a,ethereumAddress:o,proxyAddress:c},r.getSignatureHeader(s)),f=async({brotherhoodId:i,ethereumAddress:a,signature:o,invitationToken:s,proxyAddress:c})=>await n.httpClient.patch(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.joinBrotherhood(i)}`,{ethereumAddress:a,invitationToken:s,proxyAddress:c},r.getSignatureHeader(o));exports.createBrotherhood=c,exports.editBrotherhood=s,exports.getBrotherhood=i,exports.getBrotherhoodUsers=a,exports.getCurrentUserBrotherhood=l,exports.getCurrentUserBrotherhoodUsers=o,exports.getPublicBrotherhoods=u,exports.joinBrotherhood=f,exports.leaveBrotherhood=d;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DATA_SERVER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
import { getSignatureHeader as r } from "../functions/utils/get-signature-header.mjs";
|
|
6
5
|
//#region libs/shared/common/src/API/brotherhoodCalls.ts
|
|
7
6
|
var i = async ({ brotherhoodId: r }) => await n.get(`${t}${e.getBrotherhood(r)}`), a = async (r) => await n.get(`${t}${e.getBrotherhoodUsers(r)}`), o = async (r) => await n.get(`${t}${e.getCurrentUserBrotherhoodUsers(r)}`), s = async (i) => await n.patch(`${t}${e.editBrotherhood}`, i, r(i.signature)), c = async (i) => await n.post(`${t}${e.createBrotherhood}`, i, r(i.signature)), l = async ({ ethereumAddress: r }) => await n.post(`${t}${e.getCurrentUserBrotherhood}`, { ethereumAddress: r }), u = async () => await n.get(`${t}${e.getPublicBrotherhoods}`), d = async ({ brotherhoodId: i, transferEthereumAddress: a, ethereumAddress: o, signature: s, proxyAddress: c }) => await n.patch(`${t}${e.leaveBrotherhood(i)}`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.callLifiAPI}`,r);exports.callLifiAPI=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/callLifiAPI.ts
|
|
6
5
|
var r = async (r) => n.post(`${t}${e.ROUTES.callLifiAPI}`, r);
|
|
7
6
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.monitor}`,{address:r});exports.monitor=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/callMonitor.ts
|
|
6
5
|
var r = (r) => n.post(`${t}${e.ROUTES.monitor}`, { address: r });
|
|
7
6
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/chains.constants.cjs`),t=require(`../constants/server.constants.cjs`),n=require(`./getServerURL.cjs`),r=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/chains.constants.cjs`),t=require(`../constants/server.constants.cjs`),n=require(`./getServerURL.cjs`),r=require(`../data-structures/http/HttpClient.cjs`);async function i(i,a){return[e.chainIds.base,e.chainIds.localhost].includes(i)||(a.referralCode=`702077826`),r.httpClient.post(`${n.SERVER_URL}${t.API_CONFIG.ROUTES.callOdosAPI}`,a)}var a=async(e,i)=>{try{return(await r.httpClient.get(`${n.SERVER_URL}${t.API_CONFIG.ROUTES.getOdosPriceForToken(e,i)}`)).price}catch{return}};exports.callOdosAPI=i,exports.getOdosPriceForToken=a;
|
|
@@ -2,7 +2,6 @@ import { chainIds as e } from "../constants/chains.constants.mjs";
|
|
|
2
2
|
import { API_CONFIG as t } from "../constants/server.constants.mjs";
|
|
3
3
|
import { SERVER_URL as n } from "./getServerURL.mjs";
|
|
4
4
|
import { httpClient as r } from "../data-structures/http/HttpClient.mjs";
|
|
5
|
-
import "../data-structures/http/index.mjs";
|
|
6
5
|
//#region libs/shared/common/src/API/callOdosAPI.ts
|
|
7
6
|
async function i(i, a) {
|
|
8
7
|
return [e.base, e.localhost].includes(i) || (a.referralCode = "702077826"), r.post(`${n}${t.ROUTES.callOdosAPI}`, a);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);async function r(r){return n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.callOkxAPI}`,r)}exports.callOkxAPI=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/callOkxAPI.ts
|
|
6
5
|
async function r(r) {
|
|
7
6
|
return n.post(`${t}${e.ROUTES.callOkxAPI}`, r);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async(r,i)=>{let a=new URLSearchParams;a.append(`fromTokenAddress`,i.fromTokenAddress),a.append(`toTokenAddress`,i.toTokenAddress),a.append(`amount`,`${i.amount}`),a.append(`fromAddress`,i.fromAddress),a.append(`slippage`,`${i.slippage}`),i.destReceiver&&a.append(`destReceiver`,i.destReceiver),i.disableEstimate&&a.append(`disableEstimate`,`${i.disableEstimate}`),i.allowPartialFill&&a.append(`allowPartialFill`,`${i.allowPartialFill}`);let o={url:`https://api.1inch.dev/swap/v5.2/${r}/swap?${a}`};return(await n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.callOneInchAPI}`,o)).oneInchResponse};exports.callOneInchAPI=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/callOneInchAPI.ts
|
|
6
5
|
var r = async (r, i) => {
|
|
7
6
|
let a = new URLSearchParams();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);async function r(r){return n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.TRANSACT}`,r)}async function i(r){return n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.TRANSACT_BATCH}`,r)}async function a(r){return n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.SOLANA_TRANSACT_BATCH}`,r)}exports.callRelayerSolanaTransactBatchAPI=a,exports.callRelayerTransactAPI=r,exports.callRelayerTransactBatchAPI=i;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RELAYER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { RELAYER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/callRelayer.ts
|
|
6
5
|
async function r(r) {
|
|
7
6
|
return n.post(`${t}${e.TRANSACT}`, r);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`)
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`),r=require(`../constants/auth.constants.cjs`),i=require(`../functions/utils/auth.utils.cjs`);var a=async()=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getDashboardAccount}`,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),o=async a=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.updateDashboardAccount}`,a,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),s=async()=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.deleteDashboardAccount}`,{},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)});exports.deleteDashboardAccount=s,exports.getDashboardAccount=a,exports.updateDashboardAccount=o;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
import { HINKAL_DASHBOARD_TOKEN as r } from "../constants/auth.constants.mjs";
|
|
6
5
|
import { getAuthHeaders as i } from "../functions/utils/auth.utils.mjs";
|
|
7
6
|
//#region libs/shared/common/src/API/dashboardAccountCalls.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`)
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`),r=require(`../constants/auth.constants.cjs`),i=require(`../functions/utils/auth.utils.cjs`);var a=async a=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.updateUserProfile}`,a,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),o=async({email:a,username:o})=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.sendDashboardInvitationEmail}`,{email:a,username:o},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),s=async({email:a})=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.removeMember}`,{email:a},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),c=async({email:a,newUsername:o})=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.editMember}`,{email:a,newUsername:o},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)});exports.editMember=c,exports.removeMember=s,exports.sendDashboardInvitationEmail=o,exports.updateUserProfile=a;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
import { HINKAL_DASHBOARD_TOKEN as r } from "../constants/auth.constants.mjs";
|
|
6
5
|
import { getAuthHeaders as i } from "../functions/utils/auth.utils.mjs";
|
|
7
6
|
//#region libs/shared/common/src/API/dashboardAccountMemberCalls.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`)
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`),r=require(`../constants/auth.constants.cjs`),i=require(`../functions/utils/auth.utils.cjs`);var a=async({privateBalances:a,publicBalances:o})=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.syncDashboardBalances}`,{privateBalances:a,publicBalances:o},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),o=async()=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getDashboardBalances}`,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)});exports.getDashboardBalances=o,exports.syncDashboardBalances=a;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
import { HINKAL_DASHBOARD_TOKEN as r } from "../constants/auth.constants.mjs";
|
|
6
5
|
import { getAuthHeaders as i } from "../functions/utils/auth.utils.mjs";
|
|
7
6
|
//#region libs/shared/common/src/API/dashboardBalanceCalls.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`)
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`),r=require(`../constants/auth.constants.cjs`),i=require(`../functions/utils/auth.utils.cjs`);var a=async a=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.addDashboardContact}`,{contact:a},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),o=async a=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.deleteDashboardContact}`,{contact:a},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),s=async(a,o)=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.updateDashboardContact}`,{contact:a,contactToEditAddress:o},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),c=async()=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getDashboardContacts}`,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)});exports.addDashboardContact=a,exports.deleteDashboardContact=o,exports.getDashboardContacts=c,exports.updateDashboardContact=s;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
import { HINKAL_DASHBOARD_TOKEN as r } from "../constants/auth.constants.mjs";
|
|
6
5
|
import { getAuthHeaders as i } from "../functions/utils/auth.utils.mjs";
|
|
7
6
|
//#region libs/shared/common/src/API/dashboardContactCalls.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`)
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`),r=require(`../constants/auth.constants.cjs`),i=require(`../functions/utils/auth.utils.cjs`);var a=async({payoutItems:a})=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.createDashboardPayout}`,{payoutItems:a},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),o=async()=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getDashboardPayouts}`,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),s=async({payoutId:a,status:o})=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.changePayoutStatus}`,{payoutId:a,status:o},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)});exports.changePayoutStatus=s,exports.createDashboardPayout=a,exports.getDashboardPayouts=o;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
import { HINKAL_DASHBOARD_TOKEN as r } from "../constants/auth.constants.mjs";
|
|
6
5
|
import { getAuthHeaders as i } from "../functions/utils/auth.utils.mjs";
|
|
7
6
|
//#region libs/shared/common/src/API/dashboardPayoutCalls.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`)
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`),r=require(`../constants/auth.constants.cjs`),i=require(`../functions/utils/auth.utils.cjs`);var a=async a=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.createDashboardTransactions}`,{transactions:a},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),o=async()=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getDashboardTransactions}`,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)});exports.createDashboardTransactions=a,exports.getDashboardTransactions=o;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
import { HINKAL_DASHBOARD_TOKEN as r } from "../constants/auth.constants.mjs";
|
|
6
5
|
import { getAuthHeaders as i } from "../functions/utils/auth.utils.mjs";
|
|
7
6
|
//#region libs/shared/common/src/API/dashboardTransactionCalls.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../functions/snarkjs/constant.cjs`),t=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../functions/snarkjs/constant.cjs`),t=require(`../data-structures/http/HttpClient.cjs`);var n=async(n,r,i)=>t.httpClient.post(`${e.ENCLAVE_URL}/store-signature`,{ethAddress:n,encryptedSignature:r,key:i}),r=async(n,r,i)=>t.httpClient.post(`${e.ENCLAVE_URL}/get-signature`,{ethAddress:n,encryptedAuthSignature:r,key:i});exports.getSignatureEnclaveCall=r,exports.storeSignatureEnclaveCall=n;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ENCLAVE_URL as e } from "../functions/snarkjs/constant.mjs";
|
|
2
2
|
import { httpClient as t } from "../data-structures/http/HttpClient.mjs";
|
|
3
|
-
import "../data-structures/http/index.mjs";
|
|
4
3
|
//#region libs/shared/common/src/API/enclaveSignatureCalls.ts
|
|
5
4
|
var n = async (n, r, i) => t.post(`${e}/store-signature`, {
|
|
6
5
|
ethAddress: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../functions/snarkjs/constant.cjs`),t=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../functions/snarkjs/constant.cjs`),t=require(`../data-structures/http/HttpClient.cjs`);var n=new(require(`async-mutex`)).Mutex,r=async(r,i,a)=>n.runExclusive(async()=>await t.httpClient.post(`${e.ENCLAVE_URL}/decrypt-utxos`,{chainId:r,input:a,key:i})),i=async(n,r,i,a)=>await t.httpClient.post(`${e.ENCLAVE_URL}/store-utxo`,{recipientEthAddress:n,encryptedUtxo:r,key:i,chainId:a}),a=async(n,r,i,a,o,s)=>await t.httpClient.post(`${e.ENCLAVE_URL}/get-utxos`,{ethAddress:n,encryptedSignature:r,key:i,chainId:a,isSolanaLedger:o,txMessageForSolanaLedger:s});exports.decryptUtxoEnclaveCall=r,exports.getUtxosEnclaveCall=a,exports.storeUtxoEnclaveCall=i;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ENCLAVE_URL as e } from "../functions/snarkjs/constant.mjs";
|
|
2
2
|
import { httpClient as t } from "../data-structures/http/HttpClient.mjs";
|
|
3
|
-
import "../data-structures/http/index.mjs";
|
|
4
3
|
import { Mutex as n } from "async-mutex";
|
|
5
4
|
//#region libs/shared/common/src/API/enclaveUtxoCalls.ts
|
|
6
5
|
var r = new n(), i = async (n, i, a) => r.runExclusive(async () => await t.post(`${e}/decrypt-utxos`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async r=>{let{commitments:i,accessTokens:a,nullifiers:o}=await n.httpClient.get(`${t.SNAPSHOT_SERVER_URL}${e.API_CONFIG.ROUTES.getSnapshots(r)}`),[s,c,l]=await Promise.all([n.httpClient.get(i.url).then(e=>({...e,...i})),n.httpClient.get(a.url).then(e=>({...e,...a})),n.httpClient.get(o.url).then(e=>({...e,...o}))]);return{commitments:s,accessTokens:c,nullifiers:l}};exports.fetchSnapshots=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SNAPSHOT_SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/fetchCommitmentsCache.ts
|
|
6
5
|
var r = async (r) => {
|
|
7
6
|
let { commitments: i, accessTokens: a, nullifiers: o } = await n.get(`${t}${e.ROUTES.getSnapshots(r)}`), [s, c, l] = await Promise.all([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`)
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`),r=require(`../functions/utils/get-signature-header.cjs`);var i=async({tokenChanges:i,ethereumAddress:a,type:o,signature:s,appMetaData:c,chainId:l,proxyAddress:u})=>n.httpClient.patch(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.generateTradingPoints}`,{tokenChanges:i?.map(({amount:e,...t})=>({...t,amount:e.toString()})),ethereumAddress:a,type:o,appMetaData:c,chainId:l,proxyAddress:u},r.getSignatureHeader(s)),a=async({ethereumAddress:i,activity:a,signature:o,proxyAddress:s})=>await n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.generateAumPoints}`,{ethereumAddress:i,activity:a,proxyAddress:s},r.getSignatureHeader(o));exports.generateAumPoints=a,exports.generateTradingPoints=i;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DATA_SERVER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
import { getSignatureHeader as r } from "../functions/utils/get-signature-header.mjs";
|
|
6
5
|
//#region libs/shared/common/src/API/generate-trading-points.ts
|
|
7
6
|
var i = async ({ tokenChanges: i, ethereumAddress: a, type: o, signature: s, appMetaData: c, chainId: l, proxyAddress: u }) => n.patch(`${t}${e.generateTradingPoints}`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async r=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getTokenData(r)}`);exports.getTokenData=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/get-token-data.ts
|
|
6
5
|
var r = async (r) => n.get(`${t}${e.ROUTES.getTokenData(r)}`);
|
|
7
6
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async(r,i,a,o,s,c,l)=>n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.getGasEstimate(i,a,o,c)}`,{calls:s,solanaTransactionParams:l,chainId:r});exports.getGasEstimates=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RELAYER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { RELAYER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/getGasEstimates.ts
|
|
6
5
|
var r = async (r, i, a, o, s, c, l) => n.post(`${t}${e.getGasEstimate(i, a, o, c)}`, {
|
|
7
6
|
calls: s,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async(r,i)=>await n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.getTokenPrices}`,{erc20Addresses:i,chainId:r}),i=async r=>await n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.getTokenPreviousDayPrices}`,{uniqueErc20TokensByChain:r});exports.getTokenPreviousDayPrices=i,exports.getTokenPrices=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RELAYER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { RELAYER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/getTokenPrice.ts
|
|
6
5
|
var r = async (r, i) => await n.post(`${t}${e.getTokenPrices}`, {
|
|
7
6
|
erc20Addresses: i,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);async function r(r){return n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.checkKycStatus}`,{ethereumAddress:r})}async function i(r,i,a){return n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.startUserVerification}`,{ethereumAddress:r,verificationSessionId:i,verificationType:a})}async function a(r,i,a){return n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getUserSignature}`,{chainId:r,ethereumAddress:i,accessKey:a})}async function o(r,i,a,o){return n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.startReclaimVerification}`,{ethereumAddress:i,providerId:r,userSignature:a,withSignature:o})}var s=async()=>(await n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.zkMeAccessToken}`)).accessToken;exports.getAccessTokenSignature=a,exports.getReclaimVerificationRequest=o,exports.getUserKycStatus=r,exports.getZkMeAccessToken=s,exports.setAiPriseVerificationUrl=i;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/kycCalls.ts
|
|
6
5
|
async function r(r) {
|
|
7
6
|
return n.post(`${t}${e.ROUTES.checkKycStatus}`, { ethereumAddress: r });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async({ethereumAddress:r})=>n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getUserCurrentLeaderboard}`,{params:{ethereumAddress:r}}),i=async()=>n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getBrotherhoodsLeaderboard}`);exports.getBrotherhoodsLeaderboard=i,exports.getUserCurrentLeaderboard=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DATA_SERVER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/leaderboardCalls.ts
|
|
6
5
|
var r = async ({ ethereumAddress: r }) => n.get(`${t}${e.getUserCurrentLeaderboard}`, { params: { ethereumAddress: r } }), i = async () => n.get(`${t}${e.getBrotherhoodsLeaderboard}`);
|
|
7
6
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async r=>{let{url:i}=await n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.encodeMoonPayBuyUrl}`,r);return i},i=async r=>await n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getMoonPayQuote}`,r);exports.encodeMoonPayBuyUrl=r,exports.generateMoonPayQuote=i;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/onrampCalls.ts
|
|
6
5
|
var r = async (r) => {
|
|
7
6
|
let { url: i } = await n.post(`${t}${e.ROUTES.encodeMoonPayBuyUrl}`, r);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`)
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`),r=require(`../functions/utils/addresses.cjs`);var i=async({ethereumAddress:i})=>{let a=r.hashEthereumAddress(i);return n.httpClient.get(`${t.RELAYER_URL}${e.RELAYER_CONFIG.getPrivateTransactionsRatio(a)}`)},a=async({ethereumAddress:i,privacyScore:a})=>{let o=r.hashEthereumAddress(i);return n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.savePrivacyScoreAndGetPrivacyRank}`,{hashedOwner:o,privacyScore:a})};exports.getPrivateTransactionRatio=i,exports.savePrivacyScoreAndGetPrivacyRank=a;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RELAYER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { RELAYER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
import { hashEthereumAddress as r } from "../functions/utils/addresses.mjs";
|
|
6
5
|
//#region libs/shared/common/src/API/privacy-score-calls.ts
|
|
7
6
|
var i = async ({ ethereumAddress: i }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async r=>n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.sendPrivateSendEmailNotifications}`,r);exports.sendPrivateSendEmailNotifications=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DATA_SERVER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/privateSendEmailNotificationsCalls.ts
|
|
6
5
|
var r = async (r) => n.post(`${t}${e.sendPrivateSendEmailNotifications}`, r);
|
|
7
6
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async(r,i)=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.privateSendNonceSync}`,{hashedEthereumAddress:r,localNonce:i}),i=async(r,i,a)=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.privateSendNonceReserve}`,{hashedEthereumAddress:r,localNonce:i,count:a});exports.reservePrivateSendNonceRange=i,exports.syncPrivateSendNonce=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/privateSendNonceCalls.ts
|
|
6
5
|
var r = async (r, i) => n.post(`${t}${e.ROUTES.privateSendNonceSync}`, {
|
|
7
6
|
hashedEthereumAddress: r,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.privateSendAllocateRecipientInfos}`,r);exports.allocatePrivateSendRecipientInfos=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/privateSendRecipientInfoCalls.ts
|
|
6
5
|
var r = async (r) => n.post(`${t}${e.ROUTES.privateSendAllocateRecipientInfos}`, r);
|
|
7
6
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`)
|
|
1
|
+
require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`),r=require(`../functions/utils/addresses.cjs`);let i=require(`ethers`);var a=(e,t)=>{let n=t.getShieldedPrivateKey(),r=`HinkalProxyAccounts|${e.toLowerCase()}|${n}`;return i.ethers.keccak256(i.ethers.toUtf8Bytes(r))},o=async(r,i)=>{let o=a(r,i);return await n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getProxyAccounts(o)}`)},s=async(i,o,s)=>{let c=a(i,o),l=r.hashEthereumAddress(i);return await n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.updateProxyAccounts}`,{secureKey:c,hashedEthereumAddress:l,proxyAccounts:s})};exports.getProxyAccounts=o,exports.updateProxyAccounts=s;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
import { hashEthereumAddress as r } from "../functions/utils/addresses.mjs";
|
|
6
5
|
import { ethers as i } from "ethers";
|
|
7
6
|
//#region libs/shared/common/src/API/proxyAccountsCalls.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async({ethereumAddress:r})=>n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getCurrentUserReferral}`,{params:{ethereumAddress:r}}),i=async({referralCode:r,ethereumAddress:i})=>n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.submitReferralCode}`,{referralCode:r,ethereumAddress:i}),a=async r=>n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getCurrentUserAppliedReferralCode}`,{params:{ethereumAddress:r}});exports.getCurrentUserAppliedReferralCode=a,exports.getCurrentUserReferral=r,exports.submitReferralCode=i;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DATA_SERVER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/referralsCalls.ts
|
|
6
5
|
var r = async ({ ethereumAddress: r }) => n.get(`${t}${e.getCurrentUserReferral}`, { params: { ethereumAddress: r } }), i = async ({ referralCode: r, ethereumAddress: i }) => n.post(`${t}${e.submitReferralCode}`, {
|
|
7
6
|
referralCode: r,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async(r,i=!1)=>await n.httpClient.get(`${t.RELAYER_URL}${e.RELAYER_CONFIG.getIdleRelay}?markAsPending=${i}&chainId=${r}`);exports.getIdleRelay=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RELAYER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { RELAYER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/relayCalls.ts
|
|
6
5
|
var r = async (r, i = !1) => await n.get(`${t}${e.getIdleRelay}?markAsPending=${i}&chainId=${r}`);
|
|
7
6
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`)
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`),r=require(`../functions/utils/get-signature-header.cjs`);var i=async r=>await n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getRewardsUser(r)}`),a=async(i,a,o)=>await n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.connectRewardsUser}`,{ethereumAddress:i,proxyAddress:o},r.getSignatureHeader(a)),o=async i=>await n.httpClient.patch(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.updateRewardsUser}`,i,r.getSignatureHeader(i.signature)),s=async r=>await n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.checkUsernameAvailability(r)}`),c=async r=>await n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getSwapStreak}`,{params:{ethereumAddress:r}}),l=async r=>await n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getTasksProgress(r)}`),u=async({ethereumAddress:i,socialWebsiteId:a,signature:o,proxyAddress:s})=>await n.httpClient.patch(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.disconnectSocialNetwork}`,{ethereumAddress:i,socialWebsiteId:a,proxyAddress:s},r.getSignatureHeader(o)),d=async r=>await n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getNftMultiplier(r)}`);exports.checkUsernameAvailability=s,exports.connectRewardsUser=a,exports.disconnectSocialNetwork=u,exports.getNftMultiplier=d,exports.getRewardsUser=i,exports.getSwapStreak=c,exports.getTasksProgress=l,exports.updateRewardsUser=o;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DATA_SERVER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
import { getSignatureHeader as r } from "../functions/utils/get-signature-header.mjs";
|
|
6
5
|
//#region libs/shared/common/src/API/rewardsUserCalls.ts
|
|
7
6
|
var i = async (r) => await n.get(`${t}${e.getRewardsUser(r)}`), a = async (i, a, o) => await n.post(`${t}${e.connectRewardsUser}`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async r=>n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.seedlessInit}`,r),i=async r=>n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.seedlessBackup}`,r),a=async r=>n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.seedlessStatus}`,r),o=async r=>n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.seedlessCheckPassword}`,r),s=async r=>n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.seedlessSalt}`,r);exports.seedlessBackup=i,exports.seedlessCheckPassword=o,exports.seedlessInit=r,exports.seedlessSalt=s,exports.seedlessStatus=a;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DATA_SERVER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/seedless-calls.ts
|
|
6
5
|
var r = async (r) => n.post(`${t}${e.seedlessInit}`, r), i = async (r) => n.post(`${t}${e.seedlessBackup}`, r), a = async (r) => n.post(`${t}${e.seedlessStatus}`, r), o = async (r) => n.post(`${t}${e.seedlessCheckPassword}`, r), s = async (r) => n.post(`${t}${e.seedlessSalt}`, r);
|
|
7
6
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async({ethereumAddress:r,telegramUser:i})=>await n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getTelegramCallback}`,{ethereumAddress:r,telegramUser:i});exports.sendTelegramCallback=r;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DATA_SERVER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
2
|
import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
-
import "../data-structures/http/index.mjs";
|
|
5
4
|
//#region libs/shared/common/src/API/send-telegram-callback.ts
|
|
6
5
|
var r = async ({ ethereumAddress: r, telegramUser: i }) => await n.post(`${t}${e.getTelegramCallback}`, {
|
|
7
6
|
ethereumAddress: r,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=async(r,i)=>await n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.simulateBatchTx}`,{chainId:r,batchCalls:i});exports.simulateBatchTx=r;
|