@kapa123456789/sdk 0.0.42 → 0.0.43
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 +1 -0
- package/common/src/API/admin-calls.cjs +1 -1
- package/common/src/API/admin-calls.mjs +1 -0
- package/common/src/API/brotherhoodCalls.cjs +1 -1
- package/common/src/API/brotherhoodCalls.mjs +1 -0
- package/common/src/API/callLifiAPI.cjs +1 -1
- package/common/src/API/callLifiAPI.mjs +1 -0
- package/common/src/API/callMonitor.cjs +1 -1
- package/common/src/API/callMonitor.mjs +1 -0
- package/common/src/API/callOdosAPI.cjs +1 -1
- package/common/src/API/callOdosAPI.mjs +1 -0
- package/common/src/API/callOkxAPI.cjs +1 -1
- package/common/src/API/callOkxAPI.mjs +1 -0
- package/common/src/API/callOneInchAPI.cjs +1 -1
- package/common/src/API/callOneInchAPI.mjs +1 -0
- package/common/src/API/callRelayer.cjs +1 -1
- package/common/src/API/callRelayer.mjs +1 -0
- package/common/src/API/checkRisk.cjs +1 -0
- package/common/src/API/checkRisk.mjs +3 -0
- package/common/src/API/dashboardAccountCalls.cjs +1 -1
- package/common/src/API/dashboardAccountCalls.mjs +1 -0
- package/common/src/API/dashboardAccountMemberCalls.cjs +1 -1
- package/common/src/API/dashboardAccountMemberCalls.mjs +1 -0
- package/common/src/API/dashboardBalanceCalls.cjs +1 -1
- package/common/src/API/dashboardBalanceCalls.mjs +1 -0
- package/common/src/API/dashboardContactCalls.cjs +1 -1
- package/common/src/API/dashboardContactCalls.mjs +1 -0
- package/common/src/API/dashboardPayoutCalls.cjs +1 -1
- package/common/src/API/dashboardPayoutCalls.mjs +1 -0
- package/common/src/API/dashboardTransactionCalls.cjs +1 -1
- package/common/src/API/dashboardTransactionCalls.mjs +1 -0
- package/common/src/API/enclaveRecipientInfoCalls.cjs +1 -0
- package/common/src/API/enclaveRecipientInfoCalls.mjs +2 -0
- package/common/src/API/enclaveSignatureCalls.cjs +1 -1
- package/common/src/API/enclaveSignatureCalls.mjs +1 -0
- package/common/src/API/enclaveUtxoCalls.cjs +1 -1
- package/common/src/API/enclaveUtxoCalls.mjs +1 -0
- package/common/src/API/fetchCommitmentsCache.cjs +1 -1
- package/common/src/API/fetchCommitmentsCache.mjs +1 -0
- package/common/src/API/generate-trading-points.cjs +1 -1
- package/common/src/API/generate-trading-points.mjs +1 -0
- package/common/src/API/get-token-data.cjs +1 -1
- package/common/src/API/get-token-data.mjs +1 -0
- package/common/src/API/getCoingeckoPrice.cjs +1 -0
- package/common/src/API/getCoingeckoPrice.mjs +2 -0
- package/common/src/API/getGasEstimates.cjs +1 -1
- package/common/src/API/getGasEstimates.mjs +1 -0
- package/common/src/API/getTokenPrice.cjs +1 -1
- package/common/src/API/getTokenPrice.mjs +1 -0
- package/common/src/API/getWebsiteURL.cjs +1 -0
- package/common/src/API/getWebsiteURL.mjs +1 -0
- package/common/src/API/index.cjs +1 -0
- package/common/src/API/index.mjs +24 -0
- package/common/src/API/kycCalls.cjs +1 -1
- package/common/src/API/kycCalls.mjs +1 -0
- package/common/src/API/leaderboardCalls.cjs +1 -1
- package/common/src/API/leaderboardCalls.mjs +1 -0
- package/common/src/API/onrampCalls.cjs +1 -1
- package/common/src/API/onrampCalls.mjs +1 -0
- package/common/src/API/privacy-score-calls.cjs +1 -1
- package/common/src/API/privacy-score-calls.mjs +1 -0
- package/common/src/API/privateSendEmailNotificationsCalls.cjs +1 -1
- package/common/src/API/privateSendEmailNotificationsCalls.mjs +1 -0
- package/common/src/API/privateSendNonceCalls.cjs +1 -1
- package/common/src/API/privateSendNonceCalls.mjs +1 -0
- package/common/src/API/privateSendRecipientInfoCalls.cjs +1 -1
- package/common/src/API/privateSendRecipientInfoCalls.mjs +1 -0
- package/common/src/API/proxyAccountsCalls.cjs +1 -1
- package/common/src/API/proxyAccountsCalls.mjs +1 -0
- package/common/src/API/referralsCalls.cjs +1 -1
- package/common/src/API/referralsCalls.mjs +1 -0
- package/common/src/API/relayCalls.cjs +1 -1
- package/common/src/API/relayCalls.mjs +1 -0
- package/common/src/API/resolve-sns.cjs +1 -0
- package/common/src/API/resolve-sns.mjs +1 -0
- package/common/src/API/rewardsUserCalls.cjs +1 -1
- package/common/src/API/rewardsUserCalls.mjs +1 -0
- package/common/src/API/seedless-calls.cjs +1 -1
- package/common/src/API/seedless-calls.mjs +1 -0
- package/common/src/API/send-telegram-callback.cjs +1 -1
- package/common/src/API/send-telegram-callback.mjs +1 -0
- package/common/src/API/simulate-batch-tx.cjs +1 -1
- package/common/src/API/simulate-batch-tx.mjs +1 -0
- package/common/src/API/simulate-transaction.cjs +1 -1
- package/common/src/API/simulate-transaction.mjs +1 -0
- package/common/src/API/snapshot-event-calls.cjs +1 -1
- package/common/src/API/snapshot-event-calls.mjs +1 -0
- package/common/src/API/solana-calls.cjs +1 -1
- package/common/src/API/solana-calls.mjs +1 -0
- package/common/src/API/temporaryWalletCalls.cjs +1 -1
- package/common/src/API/temporaryWalletCalls.mjs +1 -0
- package/common/src/API/tenderly.api.cjs +1 -0
- package/common/src/API/tenderly.api.mjs +4 -0
- package/common/src/API/token-calls.cjs +1 -1
- package/common/src/API/token-calls.mjs +1 -0
- package/common/src/API/tronSubsidyCalls.cjs +1 -1
- package/common/src/API/tronSubsidyCalls.mjs +1 -0
- package/common/src/API/weeklyAnalyticCalls.cjs +1 -1
- package/common/src/API/weeklyAnalyticCalls.mjs +1 -0
- package/common/src/constants/activity.constants.cjs +1 -0
- package/common/src/constants/activity.constants.mjs +4 -0
- package/common/src/constants/addresses.constants.cjs +1 -1
- package/common/src/constants/addresses.constants.mjs +1 -0
- package/common/src/constants/assets.constants.cjs +1 -0
- package/common/src/constants/assets.constants.mjs +4 -0
- package/common/src/constants/chains.constants.cjs +1 -1
- package/common/src/constants/chains.constants.mjs +30 -30
- package/common/src/constants/coingecko.constants.cjs +1 -0
- package/common/src/constants/coingecko.constants.mjs +6 -0
- package/common/src/constants/contracts.constants.cjs +1 -1
- package/common/src/constants/contracts.constants.mjs +1 -1
- package/common/src/constants/events.constants.cjs +1 -0
- package/common/src/constants/events.constants.mjs +12 -0
- package/common/src/constants/index.cjs +1 -0
- package/common/src/constants/index.mjs +34 -0
- 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 +8 -7
- package/common/src/constants/presale.constants.cjs +1 -0
- package/common/src/constants/presale.constants.mjs +3 -0
- package/common/src/constants/protocol.constants.cjs +1 -1
- package/common/src/constants/protocol.constants.mjs +8 -3
- package/common/src/constants/schedule.constants.cjs +1 -0
- package/common/src/constants/schedule.constants.mjs +3 -0
- package/common/src/constants/server.constants.cjs +1 -1
- package/common/src/constants/server.constants.mjs +2 -1
- package/common/src/constants/tasks.constants.cjs +1 -0
- package/common/src/constants/tasks.constants.mjs +124 -0
- package/common/src/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -0
- package/common/src/constants/token-data/arbMainnetRegistryFixed.json.mjs +1841 -0
- package/common/src/constants/token-data/baseRegistryFixed.json.cjs +1 -0
- package/common/src/constants/token-data/baseRegistryFixed.json.mjs +1142 -0
- package/common/src/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -0
- package/common/src/constants/token-data/ethMainnetRegistryFixed.json.mjs +4274 -0
- package/common/src/constants/token-data/index.cjs +1 -0
- package/common/src/constants/token-data/index.mjs +17 -0
- package/common/src/constants/token-data/optimismRegistryFixed.json.cjs +1 -0
- package/common/src/constants/token-data/optimismRegistryFixed.json.mjs +709 -0
- package/common/src/constants/token-data/polygonRegistryFixed.json.cjs +1 -0
- package/common/src/constants/token-data/polygonRegistryFixed.json.mjs +2317 -0
- package/common/src/constants/token.limits.constants.cjs +1 -0
- package/common/src/constants/token.limits.constants.mjs +5 -0
- package/common/src/constants/tokens.constants.cjs +1 -0
- package/common/src/constants/tokens.constants.mjs +3 -0
- 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 +5 -6
- package/common/src/crypto/index.cjs +1 -0
- package/common/src/crypto/index.mjs +3 -0
- package/common/src/crypto/poseidon.cjs +1 -1
- package/common/src/crypto/poseidon.mjs +10 -11
- package/common/src/data-structures/AccountActions/index.cjs +1 -0
- package/common/src/data-structures/AccountActions/index.mjs +1 -0
- package/common/src/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/common/src/data-structures/Hinkal/Hinkal.mjs +3 -0
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.mjs +4 -0
- package/common/src/data-structures/Hinkal/hinkalCheckTokenRegistry.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.mjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDeposit.mjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.mjs +4 -0
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +3 -0
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalPrivateWallet.mjs +2 -0
- package/common/src/data-structures/Hinkal/hinkalSignSubAccount.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSignSubAccount.mjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.mjs +2 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.mjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +4 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +3 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaSwap.mjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.mjs +2 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +3 -0
- package/common/src/data-structures/Hinkal/hinkalSwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSwap.mjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalTransfer.mjs +2 -0
- package/common/src/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalWithdraw.mjs +2 -0
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +2 -0
- package/common/src/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
- package/common/src/data-structures/Hinkal/resetMerkleTrees.mjs +3 -0
- package/common/src/data-structures/IndexedDB/activity-db.cjs +1 -1
- package/common/src/data-structures/IndexedDB/activity-db.mjs +7 -3
- package/common/src/data-structures/IndexedDB/balances-db.cjs +1 -0
- package/common/src/data-structures/IndexedDB/balances-db.mjs +47 -0
- package/common/src/data-structures/IndexedDB/contact-db.cjs +1 -0
- package/common/src/data-structures/IndexedDB/contact-db.mjs +45 -0
- package/common/src/data-structures/IndexedDB/index.cjs +1 -0
- package/common/src/data-structures/IndexedDB/index.mjs +8 -0
- package/common/src/data-structures/IndexedDB/pay-activity-db.cjs +1 -0
- package/common/src/data-structures/IndexedDB/pay-activity-db.mjs +21 -0
- package/common/src/data-structures/IndexedDB/signatures-db.cjs +1 -0
- package/common/src/data-structures/IndexedDB/signatures-db.mjs +40 -0
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +1 -0
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +168 -0
- package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.cjs +1 -0
- package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.mjs +94 -0
- package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -0
- package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.mjs +144 -0
- package/common/src/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -1
- package/common/src/data-structures/TokenDBs/PrivateTokensDB.mjs +4 -3
- package/common/src/data-structures/TokenDBs/PublicTokensDB.cjs +1 -0
- package/common/src/data-structures/TokenDBs/PublicTokensDB.mjs +29 -0
- package/common/src/data-structures/TokenDBs/index.cjs +1 -0
- package/common/src/data-structures/TokenDBs/index.mjs +4 -0
- package/common/src/data-structures/cacheDevices/index.cjs +1 -0
- package/common/src/data-structures/cacheDevices/index.mjs +2 -0
- package/common/src/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
- package/common/src/data-structures/crypto-keys/decodeUTXO.mjs +2 -1
- package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -1
- package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.mjs +2 -0
- package/common/src/data-structures/crypto-keys/index.cjs +1 -0
- package/common/src/data-structures/crypto-keys/index.mjs +4 -0
- 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 +2 -0
- package/common/src/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.cjs +1 -1
- package/common/src/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.mjs +2 -0
- package/common/src/data-structures/event-service/evm/PollingBlockchainEventEmitter.cjs +1 -0
- package/common/src/data-structures/event-service/evm/PollingBlockchainEventEmitter.mjs +1 -0
- package/common/src/data-structures/event-service/index.cjs +1 -0
- package/common/src/data-structures/event-service/index.mjs +16 -0
- package/common/src/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.cjs +1 -1
- package/common/src/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs +2 -0
- package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs +1 -1
- package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +2 -0
- package/common/src/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.cjs +1 -0
- package/common/src/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.mjs +1 -0
- package/common/src/data-structures/http/index.cjs +1 -0
- package/common/src/data-structures/http/index.mjs +2 -0
- package/common/src/data-structures/merkle-tree/index.cjs +1 -0
- package/common/src/data-structures/merkle-tree/index.mjs +3 -0
- package/common/src/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.cjs +1 -1
- package/common/src/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.mjs +1 -0
- package/common/src/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.cjs +1 -1
- package/common/src/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.mjs +1 -0
- package/common/src/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.cjs +1 -1
- package/common/src/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.mjs +1 -0
- package/common/src/data-structures/snapshot/index.cjs +1 -0
- package/common/src/data-structures/snapshot/index.mjs +7 -0
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.cjs +1 -1
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs +1 -0
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.cjs +1 -1
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs +1 -0
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.cjs +1 -1
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.mjs +1 -0
- package/common/src/error-handling/customErrors/customErrors.helpers.cjs +1 -1
- package/common/src/error-handling/customErrors/customErrors.helpers.mjs +2 -0
- package/common/src/error-handling/customErrors/index.cjs +1 -0
- package/common/src/error-handling/customErrors/index.mjs +4 -0
- package/common/src/error-handling/get-error.message.cjs +1 -1
- package/common/src/error-handling/get-error.message.mjs +3 -1
- package/common/src/error-handling/index.cjs +1 -0
- package/common/src/error-handling/index.mjs +10 -0
- 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 +2 -0
- 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 +1 -0
- package/common/src/functions/auto-deposit-back-helpers/index.cjs +1 -0
- package/common/src/functions/auto-deposit-back-helpers/index.mjs +4 -0
- 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 +4 -0
- package/common/src/functions/index.cjs +1 -0
- package/common/src/functions/index.mjs +82 -0
- package/common/src/functions/kyc/checkTokenLimitsUSD.cjs +1 -1
- package/common/src/functions/kyc/checkTokenLimitsUSD.mjs +5 -0
- package/common/src/functions/kyc/index.cjs +1 -0
- package/common/src/functions/kyc/index.mjs +4 -0
- package/common/src/functions/kyc/passportHelper.cjs +1 -0
- package/common/src/functions/kyc/passportHelper.mjs +1 -0
- package/common/src/functions/pre-transaction/addressTableLookup.cjs +1 -0
- package/common/src/functions/pre-transaction/addressTableLookup.mjs +2 -0
- package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.cjs +1 -0
- package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.mjs +5 -0
- package/common/src/functions/pre-transaction/getFlatFees.cjs +1 -0
- package/common/src/functions/pre-transaction/getFlatFees.mjs +4 -0
- package/common/src/functions/pre-transaction/getVolatileTransferAmount.cjs +1 -1
- package/common/src/functions/pre-transaction/getVolatileTransferAmount.mjs +1 -0
- package/common/src/functions/pre-transaction/index.cjs +1 -0
- package/common/src/functions/pre-transaction/index.mjs +21 -0
- package/common/src/functions/pre-transaction/initTokenLimitIfNeeded.cjs +1 -0
- package/common/src/functions/pre-transaction/initTokenLimitIfNeeded.mjs +3 -0
- package/common/src/functions/pre-transaction/interaction-to-action.cjs +1 -0
- package/common/src/functions/pre-transaction/interaction-to-action.mjs +1 -0
- package/common/src/functions/pre-transaction/sendInitNullifiersTransaction.cjs +1 -0
- package/common/src/functions/pre-transaction/sendInitNullifiersTransaction.mjs +3 -0
- 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/pre-transaction/store-instructions.cjs +1 -0
- package/common/src/functions/pre-transaction/store-instructions.mjs +2 -0
- package/common/src/functions/pre-transaction/store-proof.cjs +1 -0
- package/common/src/functions/pre-transaction/store-proof.mjs +3 -0
- package/common/src/functions/private-wallet/emporium.helpers.cjs +1 -1
- package/common/src/functions/private-wallet/emporium.helpers.mjs +2 -1
- package/common/src/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
- package/common/src/functions/private-wallet/emporium.swap.helpers.mjs +2 -1
- package/common/src/functions/private-wallet/index.cjs +1 -0
- package/common/src/functions/private-wallet/index.mjs +3 -0
- package/common/src/functions/private-wallet/opProducer.cjs +1 -0
- package/common/src/functions/private-wallet/opProducer.mjs +3 -0
- package/common/src/functions/snarkjs/constructEmporiumProof.cjs +1 -1
- package/common/src/functions/snarkjs/constructEmporiumProof.mjs +1 -0
- package/common/src/functions/snarkjs/constructSolanaZkProof.cjs +1 -1
- package/common/src/functions/snarkjs/constructSolanaZkProof.mjs +1 -0
- package/common/src/functions/snarkjs/generateZkProofEnclave.cjs +1 -1
- package/common/src/functions/snarkjs/generateZkProofEnclave.mjs +1 -0
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.cjs +1 -1
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +1 -0
- package/common/src/functions/snarkjs/index.cjs +1 -0
- package/common/src/functions/snarkjs/index.mjs +7 -0
- package/common/src/functions/snarkjs/verifyCommitmentValidationData.cjs +1 -0
- package/common/src/functions/snarkjs/verifyCommitmentValidationData.mjs +6 -0
- package/common/src/functions/utils/addresses.cjs +1 -1
- package/common/src/functions/utils/addresses.mjs +1 -0
- package/common/src/functions/utils/buildClaimableDepositPlan.cjs +1 -0
- package/common/src/functions/utils/buildClaimableDepositPlan.mjs +3 -0
- package/common/src/functions/utils/cacheDevice.utils.cjs +1 -1
- package/common/src/functions/utils/cacheDevice.utils.mjs +2 -0
- package/common/src/functions/utils/cacheFunctions.cjs +1 -1
- package/common/src/functions/utils/cacheFunctions.mjs +1 -1
- package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.cjs +1 -0
- package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.mjs +4 -0
- package/common/src/functions/utils/deposit-claimable.utils.cjs +1 -0
- package/common/src/functions/utils/deposit-claimable.utils.mjs +12 -0
- package/common/src/functions/utils/dispatchBalanceRefreshes.cjs +1 -0
- package/common/src/functions/utils/dispatchBalanceRefreshes.mjs +4 -0
- package/common/src/functions/utils/enclave-recipient-info-storage.cjs +1 -0
- package/common/src/functions/utils/enclave-recipient-info-storage.mjs +2 -0
- package/common/src/functions/utils/enclave-signature-storage.cjs +1 -0
- package/common/src/functions/utils/enclave-signature-storage.mjs +2 -0
- package/common/src/functions/utils/enclave-utxo-storage.cjs +1 -0
- package/common/src/functions/utils/enclave-utxo-storage.mjs +4 -0
- package/common/src/functions/utils/encryptInputForEnclave.cjs +1 -1
- package/common/src/functions/utils/encryptInputForEnclave.mjs +1 -0
- package/common/src/functions/utils/erc20tokenFunctions.cjs +1 -1
- package/common/src/functions/utils/erc20tokenFunctions.mjs +14 -2
- package/common/src/functions/utils/evmNetworkFunctions.cjs +1 -0
- package/common/src/functions/utils/evmNetworkFunctions.mjs +1 -0
- package/common/src/functions/utils/formatter.cjs +1 -0
- package/common/src/functions/utils/formatter.mjs +1 -0
- package/common/src/functions/utils/getBlockExplorerUrl.cjs +1 -0
- package/common/src/functions/utils/getBlockExplorerUrl.mjs +1 -0
- package/common/src/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -1
- package/common/src/functions/utils/getRecipientInfoFromUserKeys.mjs +1 -0
- package/common/src/functions/utils/getUtxosFromReceipt.utils.cjs +1 -1
- package/common/src/functions/utils/getUtxosFromReceipt.utils.mjs +3 -0
- package/common/src/functions/utils/getUtxosFromReceiptSolana.cjs +1 -1
- package/common/src/functions/utils/getUtxosFromReceiptSolana.mjs +1 -0
- package/common/src/functions/utils/inLogicMetadata.cjs +1 -0
- package/common/src/functions/utils/inLogicMetadata.mjs +1 -0
- package/common/src/functions/utils/index.cjs +1 -0
- package/common/src/functions/utils/index.mjs +68 -0
- package/common/src/functions/utils/ipfs.cjs +1 -0
- package/common/src/functions/utils/ipfs.mjs +1 -0
- package/common/src/functions/utils/lifi.utils.cjs +1 -0
- package/common/src/functions/utils/lifi.utils.mjs +4 -0
- package/common/src/functions/utils/networks.utils.cjs +1 -0
- package/common/src/functions/utils/networks.utils.mjs +1 -0
- package/common/src/functions/utils/nftTokenFunctions.cjs +1 -0
- package/common/src/functions/utils/nftTokenFunctions.mjs +2 -0
- package/common/src/functions/utils/prepareHinkal.cjs +1 -0
- package/common/src/functions/utils/prepareHinkal.mjs +7 -0
- 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 +19 -6
- package/common/src/functions/utils/rpc-int-encode.cjs +1 -0
- package/common/src/functions/utils/rpc-int-encode.mjs +1 -0
- 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/token-check.utils.cjs +1 -1
- package/common/src/functions/utils/token-check.utils.mjs +2 -0
- package/common/src/functions/utils/transfer-claimable.utils.cjs +1 -0
- package/common/src/functions/utils/transfer-claimable.utils.mjs +12 -0
- 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 +2 -1
- package/common/src/functions/utils/userAgent.cjs +1 -0
- package/common/src/functions/utils/userAgent.mjs +3 -0
- package/common/src/functions/utils/walletBalances.utils.cjs +1 -0
- package/common/src/functions/utils/walletBalances.utils.mjs +1 -0
- package/common/src/functions/web3/EIP-712.cjs +1 -0
- package/common/src/functions/web3/EIP-712.mjs +1 -0
- package/common/src/functions/web3/connectors.utils.cjs +1 -0
- package/common/src/functions/web3/connectors.utils.mjs +1 -0
- package/common/src/functions/web3/events/balanceChangedHandler.cjs +1 -1
- package/common/src/functions/web3/events/balanceChangedHandler.mjs +1 -0
- 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 +1 -0
- package/common/src/functions/web3/events/getTransactionLogEvents.cjs +1 -0
- package/common/src/functions/web3/events/getTransactionLogEvents.mjs +2 -0
- package/common/src/functions/web3/events/index.cjs +1 -0
- package/common/src/functions/web3/events/index.mjs +4 -0
- package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.cjs +1 -1
- package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +1 -0
- package/common/src/functions/web3/functionCalls/accessTokenCalls.cjs +1 -1
- package/common/src/functions/web3/functionCalls/accessTokenCalls.mjs +1 -0
- package/common/src/functions/web3/functionCalls/recoverTransactionFromError.cjs +1 -1
- package/common/src/functions/web3/functionCalls/recoverTransactionFromError.mjs +1 -0
- package/common/src/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/common/src/functions/web3/functionCalls/transactCallRelayer.mjs +2 -0
- package/common/src/functions/web3/getSolanaPriorityFee.cjs +1 -1
- package/common/src/functions/web3/getSolanaPriorityFee.mjs +1 -0
- package/common/src/functions/web3/getTokenHolder.cjs +1 -0
- package/common/src/functions/web3/getTokenHolder.mjs +7 -0
- package/common/src/functions/web3/index.cjs +1 -0
- package/common/src/functions/web3/index.mjs +16 -0
- package/common/src/functions/web3/odosAPI.cjs +1 -1
- package/common/src/functions/web3/odosAPI.mjs +2 -0
- 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 +3 -0
- package/common/src/functions/web3/runContractFunction.cjs +1 -0
- package/common/src/functions/web3/runContractFunction.mjs +1 -0
- package/common/src/functions/web3/uniswapAPI.cjs +1 -1
- package/common/src/functions/web3/uniswapAPI.mjs +4 -1
- package/common/src/mutexes/mutex.cjs +1 -0
- package/common/src/mutexes/mutex.mjs +3 -0
- package/common/src/providers/TronProviderAdapter.cjs +1 -1
- package/common/src/providers/TronProviderAdapter.mjs +1 -0
- package/common/src/types/hinkal.types.cjs +1 -1
- package/common/src/types/hinkal.types.mjs +1 -1
- package/common/src/types/index.cjs +1 -0
- package/common/src/types/index.mjs +19 -0
- 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 +5 -1
- package/common/src/types/schedule.types.cjs +1 -0
- package/common/src/types/schedule.types.mjs +6 -0
- package/common/src/webworker/logError-D6lww9H-.js +2 -0
- package/common/src/webworker/package.json +1 -1
- package/common/src/webworker/snarkjsWorker/snarkjsWorkerNode.d.ts +0 -1
- package/common/src/webworker/snarkjsWorkerNode.cjs +1 -1
- 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 +0 -1
- package/common/src/webworker/utxoWorkerNode.cjs +1 -1
- package/common/src/webworker/workerProxy-36ykh-KW.js +1 -0
- package/common/src/webworker/workerThreadsPatch.d.ts +1 -2
- 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 +0 -1
- package/common/src/webworker/zkProofWorkerNode.cjs +1 -1
- package/functions/utils/getFeeStructure.cjs +1 -0
- package/functions/utils/index.cjs +1 -1
- package/index.cjs +1 -1
- package/index.mjs +1 -0
- package/package.json +1 -1
- package/services/Hinkal.cjs +1 -1
- package/services/Hinkal.mjs +1 -0
- package/types/balances.types.cjs +1 -0
- package/types/balances.types.mjs +2 -0
- package/types/external-action.types.cjs +1 -0
- package/types/external-action.types.mjs +2 -0
- package/types/index.cjs +1 -0
- package/types/index.mjs +4 -0
- package/common/src/webworker/logError-eAC3f213.js +0 -1
- package/common/src/webworker/workerProxy-zOnSaekD.js +0 -1
- package/common/src/webworker/workerThreadsPatch-ndTPmqlp.js +0 -1
- package/common/src/webworker/workerThreadsPatch.cjs +0 -1
|
@@ -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`);require(`../data-structures/http/index.cjs`);const 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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { getSignatureHeader as r } from "../functions/utils/get-signature-header.mjs";
|
|
5
6
|
//#region libs/shared/common/src/API/accessCodeCalls.ts
|
|
6
7
|
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`);var r=r=>n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.emitTxPublicData}`,{adminData:r});exports.emitTxPublicData=r;
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=r=>n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.emitTxPublicData}`,{adminData:r});exports.emitTxPublicData=r;
|
|
@@ -1,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/admin-calls.ts
|
|
5
6
|
var r = (r) => n.post(`${t}${e.emitTxPublicData}`, { adminData: r });
|
|
6
7
|
//#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`);require(`../data-structures/http/index.cjs`);const 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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { getSignatureHeader as r } from "../functions/utils/get-signature-header.mjs";
|
|
5
6
|
//#region libs/shared/common/src/API/brotherhoodCalls.ts
|
|
6
7
|
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`);var r=async r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.callLifiAPI}`,r);exports.callLifiAPI=r;
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=async r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.callLifiAPI}`,r);exports.callLifiAPI=r;
|
|
@@ -1,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/callLifiAPI.ts
|
|
5
6
|
var r = async (r) => n.post(`${t}${e.ROUTES.callLifiAPI}`, r);
|
|
6
7
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.monitor}`,{address:r});exports.monitor=r;
|
|
@@ -1,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/callMonitor.ts
|
|
5
6
|
var r = (r) => n.post(`${t}${e.ROUTES.monitor}`, { address: r });
|
|
6
7
|
//#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`);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;
|
|
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`);require(`../data-structures/http/index.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,6 +2,7 @@ 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";
|
|
5
6
|
//#region libs/shared/common/src/API/callOdosAPI.ts
|
|
6
7
|
async function i(i, a) {
|
|
7
8
|
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`);async function r(r){return n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.callOkxAPI}`,r)}exports.callOkxAPI=r;
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);async function r(r){return n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.callOkxAPI}`,r)}exports.callOkxAPI=r;
|
|
@@ -1,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/callOkxAPI.ts
|
|
5
6
|
async function r(r) {
|
|
6
7
|
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`);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
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/callOneInchAPI.ts
|
|
5
6
|
var r = async (r, i) => {
|
|
6
7
|
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`);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
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/callRelayer.ts
|
|
5
6
|
async function r(r) {
|
|
6
7
|
return n.post(`${t}${e.TRANSACT}`, r);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../constants/server.constants.cjs`),require(`./getServerURL.cjs`),require(`../data-structures/http/index.cjs`);
|
|
@@ -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`);require(`../data-structures/http/index.cjs`);const 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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { HINKAL_DASHBOARD_TOKEN as r } from "../constants/auth.constants.mjs";
|
|
5
6
|
import { getAuthHeaders as i } from "../functions/utils/auth.utils.mjs";
|
|
6
7
|
//#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`);require(`../data-structures/http/index.cjs`);const 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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { HINKAL_DASHBOARD_TOKEN as r } from "../constants/auth.constants.mjs";
|
|
5
6
|
import { getAuthHeaders as i } from "../functions/utils/auth.utils.mjs";
|
|
6
7
|
//#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`);require(`../data-structures/http/index.cjs`);const 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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { HINKAL_DASHBOARD_TOKEN as r } from "../constants/auth.constants.mjs";
|
|
5
6
|
import { getAuthHeaders as i } from "../functions/utils/auth.utils.mjs";
|
|
6
7
|
//#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`);require(`../data-structures/http/index.cjs`);const 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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { HINKAL_DASHBOARD_TOKEN as r } from "../constants/auth.constants.mjs";
|
|
5
6
|
import { getAuthHeaders as i } from "../functions/utils/auth.utils.mjs";
|
|
6
7
|
//#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`);require(`../data-structures/http/index.cjs`);const 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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { HINKAL_DASHBOARD_TOKEN as r } from "../constants/auth.constants.mjs";
|
|
5
6
|
import { getAuthHeaders as i } from "../functions/utils/auth.utils.mjs";
|
|
6
7
|
//#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`);require(`../data-structures/http/index.cjs`);const 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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { HINKAL_DASHBOARD_TOKEN as r } from "../constants/auth.constants.mjs";
|
|
5
6
|
import { getAuthHeaders as i } from "../functions/utils/auth.utils.mjs";
|
|
6
7
|
//#region libs/shared/common/src/API/dashboardTransactionCalls.ts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../functions/snarkjs/constant.cjs`),require(`../data-structures/http/index.cjs`);
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const e=require(`../functions/snarkjs/constant.cjs`),t=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.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,5 +1,6 @@
|
|
|
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";
|
|
3
4
|
//#region libs/shared/common/src/API/enclaveSignatureCalls.ts
|
|
4
5
|
var n = async (n, r, i) => t.post(`${e}/store-signature`, {
|
|
5
6
|
ethAddress: n,
|
|
@@ -1 +1 @@
|
|
|
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
|
+
require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../functions/snarkjs/constant.cjs`),t=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.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,5 +1,6 @@
|
|
|
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";
|
|
3
4
|
import { Mutex as n } from "async-mutex";
|
|
4
5
|
//#region libs/shared/common/src/API/enclaveUtxoCalls.ts
|
|
5
6
|
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`);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
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/fetchCommitmentsCache.ts
|
|
5
6
|
var r = async (r) => {
|
|
6
7
|
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`);require(`../data-structures/http/index.cjs`);const 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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { getSignatureHeader as r } from "../functions/utils/get-signature-header.mjs";
|
|
5
6
|
//#region libs/shared/common/src/API/generate-trading-points.ts
|
|
6
7
|
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`);var r=async r=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getTokenData(r)}`);exports.getTokenData=r;
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=async r=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getTokenData(r)}`);exports.getTokenData=r;
|
|
@@ -1,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/get-token-data.ts
|
|
5
6
|
var r = async (r) => n.get(`${t}${e.ROUTES.getTokenData(r)}`);
|
|
6
7
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../../_virtual/_rolldown/runtime.cjs`);require(`../constants/coingecko.constants.cjs`);let t=require(`axios`);t=e.__toESM(t);
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/getGasEstimates.ts
|
|
5
6
|
var r = async (r, i, a, o, s, c, l) => n.post(`${t}${e.getGasEstimate(i, a, o, c)}`, {
|
|
6
7
|
calls: s,
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/getTokenPrice.ts
|
|
5
6
|
var r = async (r, i) => await n.post(`${t}${e.getTokenPrices}`, {
|
|
6
7
|
erc20Addresses: i,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../constants/index.cjs`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../constants/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./getServerURL.cjs`),require(`./scheduled-transactions-calls.cjs`),require(`./relayCalls.cjs`),require(`./getTokenPrice.cjs`),require(`./token-calls.cjs`),require(`./generate-trading-points.cjs`),require(`./brotherhoodCalls.cjs`),require(`./callMonitor.cjs`),require(`./callRelayer.cjs`),require(`./seedless-calls.cjs`),require(`./temporaryWalletCalls.cjs`),require(`./privateSendRecipientInfoCalls.cjs`),require(`./privateSendEmailNotificationsCalls.cjs`),require(`./API.cjs`),require(`./getGasEstimates.cjs`),require(`./enclaveRecipientInfoCalls.cjs`),require(`./admin-calls.cjs`),require(`./getCoingeckoPrice.cjs`),require(`./callOneInchAPI.cjs`),require(`./checkRisk.cjs`),require(`./tenderly.api.cjs`),require(`./callLifiAPI.cjs`),require(`./getWebsiteURL.cjs`),require(`./resolve-sns.cjs`);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import "./getServerURL.mjs";
|
|
2
|
+
import "./scheduled-transactions-calls.mjs";
|
|
3
|
+
import "./relayCalls.mjs";
|
|
4
|
+
import "./getTokenPrice.mjs";
|
|
5
|
+
import "./token-calls.mjs";
|
|
6
|
+
import "./generate-trading-points.mjs";
|
|
7
|
+
import "./brotherhoodCalls.mjs";
|
|
8
|
+
import "./callMonitor.mjs";
|
|
9
|
+
import "./callRelayer.mjs";
|
|
10
|
+
import "./seedless-calls.mjs";
|
|
11
|
+
import "./temporaryWalletCalls.mjs";
|
|
12
|
+
import "./privateSendRecipientInfoCalls.mjs";
|
|
13
|
+
import "./privateSendEmailNotificationsCalls.mjs";
|
|
14
|
+
import "./API.mjs";
|
|
15
|
+
import "./getGasEstimates.mjs";
|
|
16
|
+
import "./enclaveRecipientInfoCalls.mjs";
|
|
17
|
+
import "./admin-calls.mjs";
|
|
18
|
+
import "./getCoingeckoPrice.mjs";
|
|
19
|
+
import "./callOneInchAPI.mjs";
|
|
20
|
+
import "./checkRisk.mjs";
|
|
21
|
+
import "./tenderly.api.mjs";
|
|
22
|
+
import "./callLifiAPI.mjs";
|
|
23
|
+
import "./getWebsiteURL.mjs";
|
|
24
|
+
import "./resolve-sns.mjs";
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/kycCalls.ts
|
|
5
6
|
async function r(r) {
|
|
6
7
|
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`);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
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/leaderboardCalls.ts
|
|
5
6
|
var r = async ({ ethereumAddress: r }) => n.get(`${t}${e.getUserCurrentLeaderboard}`, { params: { ethereumAddress: r } }), i = async () => n.get(`${t}${e.getBrotherhoodsLeaderboard}`);
|
|
6
7
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/onrampCalls.ts
|
|
5
6
|
var r = async (r) => {
|
|
6
7
|
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`);require(`../data-structures/http/index.cjs`);const 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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { hashEthereumAddress as r } from "../functions/utils/addresses.mjs";
|
|
5
6
|
//#region libs/shared/common/src/API/privacy-score-calls.ts
|
|
6
7
|
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`);var r=async r=>n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.sendPrivateSendEmailNotifications}`,r);exports.sendPrivateSendEmailNotifications=r;
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=async r=>n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.sendPrivateSendEmailNotifications}`,r);exports.sendPrivateSendEmailNotifications=r;
|
|
@@ -1,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/privateSendEmailNotificationsCalls.ts
|
|
5
6
|
var r = async (r) => n.post(`${t}${e.sendPrivateSendEmailNotifications}`, r);
|
|
6
7
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/privateSendNonceCalls.ts
|
|
5
6
|
var r = async (r, i) => n.post(`${t}${e.ROUTES.privateSendNonceSync}`, {
|
|
6
7
|
hashedEthereumAddress: r,
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=async r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.privateSendAllocateRecipientInfos}`,r);exports.allocatePrivateSendRecipientInfos=r;
|
|
@@ -1,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/privateSendRecipientInfoCalls.ts
|
|
5
6
|
var r = async (r) => n.post(`${t}${e.ROUTES.privateSendAllocateRecipientInfos}`, r);
|
|
6
7
|
//#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`);require(`../data-structures/http/index.cjs`);const 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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { hashEthereumAddress as r } from "../functions/utils/addresses.mjs";
|
|
5
6
|
import { ethers as i } from "ethers";
|
|
6
7
|
//#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`);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
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/referralsCalls.ts
|
|
5
6
|
var r = async ({ ethereumAddress: r }) => n.get(`${t}${e.getCurrentUserReferral}`, { params: { ethereumAddress: r } }), i = async ({ referralCode: r, ethereumAddress: i }) => n.post(`${t}${e.submitReferralCode}`, {
|
|
6
7
|
referralCode: r,
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
//#region libs/shared/common/src/API/relayCalls.ts
|
|
5
6
|
var r = async (r, i = !1) => await n.get(`${t}${e.getIdleRelay}?markAsPending=${i}&chainId=${r}`);
|
|
6
7
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../data-structures/http/HttpClient.cjs`);
|