@hinkal/common 0.2.29 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API/API.mjs +1 -1
- package/API/accessCodeCalls.mjs +1 -1
- package/API/admin-calls.mjs +1 -1
- package/API/brotherhoodCalls.mjs +1 -1
- package/API/callLifiAPI.mjs +1 -1
- package/API/callMonitor.mjs +1 -1
- package/API/callOdosAPI.mjs +1 -1
- package/API/callOkxAPI.mjs +1 -1
- package/API/callOneInchAPI.mjs +1 -1
- package/API/callRelayer.mjs +1 -1
- package/API/checkRisk.mjs +1 -1
- package/API/deposit-and-withdraw-status-calls.mjs +1 -1
- package/API/enclaveSignatureCalls.mjs +1 -1
- package/API/enclaveUtxoCalls.mjs +1 -1
- package/API/fetchCommitmentsCache.mjs +1 -1
- package/API/generate-trading-points.mjs +1 -1
- package/API/get-token-data.mjs +1 -1
- package/API/get-token-price-chart-data.mjs +1 -1
- package/API/getCoingeckoPrice.mjs +1 -1
- package/API/getGasEstimates.mjs +1 -1
- package/API/getServerURL.mjs +1 -1
- package/API/getTokenPrice.mjs +1 -1
- package/API/getWebsiteURL.mjs +1 -1
- package/API/kycCalls.mjs +1 -1
- package/API/leaderboardCalls.mjs +1 -1
- package/API/onrampCalls.mjs +1 -1
- package/API/privacy-score-calls.mjs +1 -1
- package/API/privateSendEmailNotificationsCalls.mjs +1 -1
- package/API/privateSendNonceCalls.mjs +1 -1
- package/API/privateSendRecipientInfoCalls.mjs +1 -1
- package/API/proxyAccountsCalls.mjs +1 -1
- package/API/referralsCalls.mjs +1 -1
- package/API/relayCalls.mjs +1 -1
- package/API/resolve-sns.mjs +1 -1
- package/API/rewardsUserCalls.mjs +1 -1
- package/API/scheduled-transactions-calls.mjs +1 -1
- package/API/seedless-calls.mjs +1 -1
- package/API/send-telegram-callback.mjs +1 -1
- package/API/simulate-batch-tx.mjs +1 -1
- package/API/simulate-transaction.mjs +1 -1
- package/API/snapshot-event-calls.mjs +1 -1
- package/API/solana-calls.mjs +1 -1
- package/API/temporaryWalletCalls.mjs +1 -1
- package/API/tenderly.api.mjs +1 -1
- package/API/token-calls.mjs +1 -1
- package/API/tronSubsidyCalls.mjs +1 -1
- package/API/weeklyAnalyticCalls.mjs +1 -1
- package/constants/activity.constants.mjs +1 -1
- package/constants/addresses.constants.mjs +1 -1
- package/constants/assets.constants.mjs +1 -1
- package/constants/backend.constants.mjs +1 -1
- package/constants/balance.constants.mjs +1 -1
- package/constants/bridging.constants.mjs +1 -1
- package/constants/chains.constants.mjs +1 -1
- package/constants/coingecko.constants.mjs +1 -1
- package/constants/contracts.constants.mjs +1 -1
- package/constants/conversion.constants.mjs +1 -1
- package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +0 -2068
- package/constants/deploy-data/deploy-data-arcTestnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-arcTestnet.json.mjs +0 -2246
- package/constants/deploy-data/deploy-data-base.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-base.json.mjs +0 -2068
- package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +0 -2265
- package/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-localhost.json.mjs +1 -2266
- package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-optimism.json.mjs +0 -2068
- package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-polygon.json.mjs +0 -2068
- package/constants/events.constants.mjs +1 -1
- package/constants/fees.constants.mjs +1 -1
- package/constants/function-signatures.constants.mjs +1 -1
- package/constants/images.constants.mjs +1 -1
- package/constants/kyc.constants.mjs +1 -1
- package/constants/lifi.constants.mjs +1 -1
- package/constants/link.constant.mjs +1 -1
- package/constants/mediaUrls.constants.mjs +1 -1
- package/constants/non-circular-tokens.constants.mjs +1 -1
- package/constants/oauthUrls.constants.mjs +1 -1
- package/constants/okx.constants.mjs +1 -1
- package/constants/pay.constants.mjs +1 -1
- package/constants/permit2.constants.mjs +1 -1
- package/constants/presale.constants.mjs +1 -1
- package/constants/protocol.constants.mjs +1 -1
- package/constants/reorg-depths.constants.mjs +1 -1
- package/constants/rewards.constants.mjs +1 -1
- package/constants/save-depths.mjs +1 -1
- package/constants/schedule.constants.mjs +1 -1
- package/constants/server.constants.mjs +1 -1
- package/constants/tasks.constants.mjs +1 -1
- package/constants/token-data/ERC20Registry.mjs +1 -1
- package/constants/token-data/index.mjs +1 -1
- package/constants/token.limits.constants.mjs +1 -1
- package/constants/tokens.constants.mjs +1 -1
- package/constants/tx-confirmation.constants.mjs +1 -1
- package/constants/vite.constants.mjs +1 -1
- package/constants/wallet.constants.mjs +1 -1
- package/crypto/preProcessing.mjs +1 -1
- package/data-structures/AccountActions/AccountActions.mjs +1 -1
- package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.mjs +1 -1
- package/data-structures/BlockchainEvent/BlockchainEvent.mjs +1 -1
- package/data-structures/Hinkal/Hinkal.mjs +1 -1
- package/data-structures/Hinkal/handleAutoDepositBack.mjs +1 -1
- package/data-structures/Hinkal/hinkalActionReceive.mjs +1 -1
- package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.mjs +1 -1
- package/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +1 -1
- package/data-structures/Hinkal/hinkalClaimUtxo.mjs +1 -1
- package/data-structures/Hinkal/hinkalDeposit.mjs +1 -1
- package/data-structures/Hinkal/hinkalDepositAndBridge.mjs +1 -1
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +1 -1
- package/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +1 -1
- package/data-structures/Hinkal/hinkalGetRecipientInfo.mjs +1 -1
- package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +1 -1
- package/data-structures/Hinkal/hinkalMultiSend.mjs +1 -1
- package/data-structures/Hinkal/hinkalPrivateWallet.mjs +1 -1
- package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +1 -1
- package/data-structures/Hinkal/hinkalProxySwap.mjs +1 -1
- package/data-structures/Hinkal/hinkalProxyToPrivate.mjs +1 -1
- package/data-structures/Hinkal/hinkalSignSubAccount.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaClaimUtxo.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaDeposit.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProoflessDeposit.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySend.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaSwap.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaTransfer.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +1 -1
- package/data-structures/Hinkal/hinkalSwap.mjs +1 -1
- package/data-structures/Hinkal/hinkalTransfer.mjs +1 -1
- package/data-structures/Hinkal/hinkalWithdraw.mjs +1 -1
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +2 -1
- package/data-structures/Hinkal/resetMerkleTrees.mjs +1 -1
- package/data-structures/IndexedDB/activity-db.mjs +1 -1
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +1 -1
- package/data-structures/TokenDBs/ArcPublicTokensDB.mjs +1 -1
- package/data-structures/TokenDBs/PrivateTokensDB.mjs +1 -1
- package/data-structures/TokenDBs/PublicTokensDB.mjs +1 -1
- package/data-structures/ValueCache/ValueCache.mjs +1 -1
- package/data-structures/cacheDevices/AttachableMemoryCacheDevice.mjs +1 -1
- package/data-structures/cacheDevices/BaseCacheDevice.mjs +1 -1
- package/data-structures/cacheDevices/FileCacheDevice.mjs +1 -1
- package/data-structures/cacheDevices/LocalStorageCacheDevice.mjs +1 -1
- package/data-structures/crypto-keys/decodeUTXO.mjs +1 -1
- package/data-structures/crypto-keys/encryptDecryptUtxo.mjs +1 -1
- package/data-structures/crypto-keys/keyUtils.mjs +1 -1
- package/data-structures/crypto-keys/keys.mjs +1 -1
- package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.mjs +1 -1
- package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.mjs +1 -1
- package/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.mjs +1 -1
- package/data-structures/event-service/evm/AbstractEventService.mjs +1 -1
- package/data-structures/event-service/evm/AbstractNullifierSnapshotService.mjs +1 -1
- package/data-structures/event-service/evm/AbstractSnapshotService.mjs +1 -1
- package/data-structures/event-service/evm/BlockchainEventEmitter.mjs +1 -1
- package/data-structures/event-service/evm/ClientBlockchainEventEmitter.mjs +1 -1
- package/data-structures/event-service/evm/PollingBlockchainEventEmitter.mjs +1 -1
- package/data-structures/event-service/helpers/ClientEventHelper.mjs +1 -1
- package/data-structures/event-service/helpers/PollingEventHelper.mjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaEventService.mjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.mjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaSnapshotService.mjs +1 -1
- package/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.mjs +1 -1
- package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.mjs +1 -1
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.mjs +1 -1
- package/data-structures/http/BasicHttpClient.mjs +1 -1
- package/data-structures/http/HttpClient.mjs +1 -1
- package/data-structures/merkle-tree/MerkleTree.mjs +1 -1
- package/data-structures/merkle-tree/MerkleTreeIncompleteError.mjs +1 -1
- package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs +1 -1
- package/data-structures/presale/PresaleContractWrapper.mjs +1 -1
- package/data-structures/snapshot/SnapshotFetcherService.mjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.mjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.mjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.mjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.mjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.mjs +1 -1
- package/data-structures/token-price-fetcher/TokenChecker.mjs +1 -1
- package/data-structures/transactions-manager/history/history.types.mjs +1 -1
- package/data-structures/utxo/Utxo.mjs +1 -1
- package/error-handling/customErrors/ErrorWithAmount.mjs +1 -1
- package/error-handling/customErrors/ErrorWithIndex.mjs +1 -1
- package/error-handling/customErrors/ErrorWithTx.mjs +1 -1
- package/error-handling/customErrors/FeeOverTransactionValueError.mjs +1 -1
- package/error-handling/customErrors/SimulationFailureError.mjs +1 -1
- package/error-handling/customErrors/customErrors.helpers.mjs +1 -1
- package/error-handling/error-codes.constants.mjs +1 -1
- package/error-handling/get-error.message.mjs +1 -1
- package/error-handling/isInsufficientFundsError.mjs +1 -1
- package/error-handling/logError.mjs +1 -1
- package/error-handling/logger.mjs +1 -1
- package/error-handling/types.mjs +1 -1
- package/externalABIs/BUSD.mjs +1 -1
- package/externalABIs/DAI.mjs +1 -1
- package/externalABIs/NodeInterfaceABI.json.mjs +1 -1
- package/externalABIs/OptimismGasPriceOracle.json.mjs +1 -1
- package/externalABIs/SanctionsList.mjs +1 -1
- package/externalABIs/USDC.mjs +1 -1
- package/externalABIs/USDR.mjs +1 -1
- package/externalABIs/USDR3CRV.mjs +1 -1
- package/externalABIs/USDT.mjs +1 -1
- package/externalABIs/WETH.mjs +1 -1
- package/externalABIs/amToken.mjs +1 -1
- package/externalABIs/index.mjs +1 -1
- package/externalABIs/swapAbi.mjs +1 -1
- package/functions/auto-deposit-back-helpers/get-gas-token-records.mjs +1 -1
- package/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.mjs +1 -1
- package/functions/auto-deposit-back-helpers/select-gas-token.mjs +1 -1
- package/functions/auto-deposit-back-helpers/update-hinkal.mjs +1 -1
- package/functions/kyc/checkTokenLimitsUSD.mjs +1 -1
- package/functions/kyc/openDefaultPassportWindow.mjs +1 -1
- package/functions/kyc/passportHelper.mjs +1 -1
- package/functions/kyc/zkMeHelper.mjs +1 -1
- package/functions/pre-transaction/addressTableLookup.mjs +1 -1
- package/functions/pre-transaction/constructAdminData.mjs +1 -1
- package/functions/pre-transaction/convert-okx-instructions.mjs +1 -1
- package/functions/pre-transaction/ensureAmountChanges.mjs +1 -1
- package/functions/pre-transaction/getExternalSwapAddress.mjs +1 -1
- package/functions/pre-transaction/getFeeStructure.mjs +1 -1
- package/functions/pre-transaction/getFlatFees.mjs +1 -1
- package/functions/pre-transaction/getKycAndSignatureData.mjs +1 -1
- package/functions/pre-transaction/getSignatureDataForTransact.mjs +1 -1
- package/functions/pre-transaction/getSolanaCalldataHash.mjs +1 -1
- package/functions/pre-transaction/getVolatileTransferAmount.mjs +1 -1
- package/functions/pre-transaction/initTokenLimitIfNeeded.mjs +1 -1
- package/functions/pre-transaction/interaction-to-action.mjs +1 -1
- package/functions/pre-transaction/merge-with-fee-structure-emporium.mjs +1 -1
- package/functions/pre-transaction/merge-with-fee-structure.mjs +1 -1
- package/functions/pre-transaction/outputApprovalDataProcessing.mjs +1 -1
- package/functions/pre-transaction/outputUtxoProcessing.mjs +1 -1
- package/functions/pre-transaction/process-gas-estimates.mjs +1 -1
- package/functions/pre-transaction/recipientUtxoProcessing.mjs +1 -1
- package/functions/pre-transaction/sendInitNullifiersTransaction.mjs +1 -1
- package/functions/pre-transaction/sendV0Transaction.mjs +1 -1
- package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.mjs +1 -1
- package/functions/pre-transaction/solana-public-signals.mjs +1 -1
- package/functions/pre-transaction/solana.mjs +1 -1
- package/functions/pre-transaction/solanaTransfer.utils.mjs +1 -1
- package/functions/pre-transaction/store-instructions.mjs +1 -1
- package/functions/pre-transaction/store-proof.mjs +1 -1
- package/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.mjs +1 -1
- package/functions/private-wallet/emporium.helpers.d.ts +1 -1
- package/functions/private-wallet/emporium.helpers.mjs +1 -1
- package/functions/private-wallet/emporium.swap.helpers.mjs +1 -1
- package/functions/private-wallet/opProducer.mjs +1 -1
- package/functions/snarkjs/common.snarkjs.mjs +1 -1
- package/functions/snarkjs/constant.mjs +1 -1
- package/functions/snarkjs/constructEmporiumProof.mjs +1 -1
- package/functions/snarkjs/constructGeneralZkProof.mjs +1 -1
- package/functions/snarkjs/constructSolanaZkProof.mjs +1 -1
- package/functions/snarkjs/fetchMerkleTreeSiblings.mjs +1 -1
- package/functions/snarkjs/fetchOnChainRootHashes.mjs +1 -1
- package/functions/snarkjs/generateCircomData.mjs +1 -1
- package/functions/snarkjs/generateZkProof.mjs +1 -1
- package/functions/snarkjs/generateZkProofEnclave.mjs +1 -1
- package/functions/snarkjs/generateZkProofSelf.mjs +1 -1
- package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +1 -1
- package/functions/snarkjs/getOriginalSender.mjs +1 -1
- package/functions/snarkjs/getZKFiles.mjs +1 -1
- package/functions/utils/addresses.mjs +1 -1
- package/functions/utils/amounts.utils.mjs +1 -1
- package/functions/utils/arraysMatch.mjs +1 -1
- package/functions/utils/buildClaimableDepositPlan.mjs +1 -1
- package/functions/utils/bytes32.utils.mjs +1 -1
- package/functions/utils/cacheDevice.utils.mjs +1 -1
- package/functions/utils/cacheFunctions.mjs +1 -1
- package/functions/utils/caseInsensitive.utils.mjs +1 -1
- package/functions/utils/convertEmporiumOpToCallInfo.mjs +1 -1
- package/functions/utils/convertIntegrationProviderToExternalActionId.mjs +1 -1
- package/functions/utils/create-provider.cjs +1 -1
- package/functions/utils/create-provider.d.ts +1 -1
- package/functions/utils/create-provider.mjs +5 -7
- package/functions/utils/enclave-signature-storage.mjs +1 -1
- package/functions/utils/enclave-utxo-storage.mjs +1 -1
- package/functions/utils/encodeTokenWithId.mjs +1 -1
- package/functions/utils/encryptInputForEnclave.mjs +1 -1
- package/functions/utils/erc20tokenFunctions.mjs +1 -1
- package/functions/utils/evmNetworkFunctions.mjs +1 -1
- package/functions/utils/external-action.utils.mjs +1 -1
- package/functions/utils/fees.utils.mjs +1 -1
- package/functions/utils/get-signature-header.mjs +1 -1
- package/functions/utils/getBlockExplorerUrl.mjs +1 -1
- package/functions/utils/getContractAddress.mjs +1 -1
- package/functions/utils/getDataFromTransaction.mjs +1 -1
- package/functions/utils/getRecipientInfoFromUserKeys.mjs +1 -1
- package/functions/utils/getSignerFromContract.mjs +1 -1
- package/functions/utils/getUtxosFromReceipt.utils.mjs +1 -1
- package/functions/utils/getUtxosFromReceiptSolana.mjs +1 -1
- package/functions/utils/getWalletGroupKey.utils.mjs +1 -1
- package/functions/utils/inLogicMetadata.mjs +1 -1
- package/functions/utils/involves-permit2-op.mjs +1 -1
- package/functions/utils/ipfs.mjs +1 -1
- package/functions/utils/is-valid-url.mjs +1 -1
- package/functions/utils/merkleTree.utils.mjs +1 -1
- package/functions/utils/mutexes.utils.mjs +1 -1
- package/functions/utils/networks.utils.mjs +1 -1
- package/functions/utils/nftTokenFunctions.mjs +1 -1
- package/functions/utils/nickname.utils.mjs +1 -1
- package/functions/utils/postToOffscreen.mjs +1 -1
- package/functions/utils/prepareHinkal.mjs +1 -1
- package/functions/utils/process.utils.mjs +1 -1
- package/functions/utils/processUseApprovalUtxoData.mjs +1 -1
- package/functions/utils/proxyAvatar.utils.mjs +1 -1
- package/functions/utils/publicBalance.utils.mjs +1 -1
- package/functions/utils/reloadPage.mjs +1 -1
- package/functions/utils/requireEnv.mjs +1 -1
- package/functions/utils/resolve-sync.utils.mjs +1 -1
- package/functions/utils/rpc-int-encode.mjs +1 -1
- package/functions/utils/serialize-utxos.utils.mjs +1 -1
- package/functions/utils/serialize.utils.mjs +1 -1
- package/functions/utils/solanaMint.utils.mjs +1 -1
- package/functions/utils/string.utils.mjs +1 -1
- package/functions/utils/time.utils.mjs +1 -1
- package/functions/utils/token-check.utils.mjs +1 -1
- package/functions/utils/trimFieldValues.mjs +1 -1
- package/functions/utils/tron.utils.mjs +1 -1
- package/functions/utils/tronSimulation.utils.mjs +1 -1
- package/functions/utils/tx-confirmation.utils.d.ts +1 -1
- package/functions/utils/tx-confirmation.utils.mjs +1 -1
- package/functions/utils/upToDateState.mjs +1 -1
- package/functions/utils/userAgent.mjs +1 -1
- package/functions/utils/validateUsername.mjs +1 -1
- package/functions/utils/walletBalances.utils.mjs +1 -1
- package/functions/web3/EIP-712.mjs +1 -1
- package/functions/web3/connectors.utils.mjs +1 -1
- package/functions/web3/crypto.mjs +1 -1
- package/functions/web3/etherFunctions.mjs +1 -1
- package/functions/web3/events/balanceChangedCustomHandler.mjs +1 -1
- package/functions/web3/events/balanceChangedHandler.mjs +1 -1
- package/functions/web3/events/getApprovedBalance.mjs +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.d.ts +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.mjs +16 -14
- package/functions/web3/events/getInputUtxosEnclave.mjs +1 -1
- package/functions/web3/events/getShieldedBalance.cjs +1 -1
- package/functions/web3/events/getShieldedBalance.mjs +2 -2
- package/functions/web3/events/getTransactionLogEvents.d.ts +5 -8
- package/functions/web3/events/getTransactionLogEvents.mjs +1 -1
- package/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +1 -1
- package/functions/web3/functionCalls/accessTokenCalls.mjs +1 -1
- package/functions/web3/functionCalls/approveToken.mjs +1 -1
- package/functions/web3/functionCalls/approveTokensToHinkal.mjs +1 -1
- package/functions/web3/functionCalls/constructBatchCall.mjs +1 -1
- package/functions/web3/functionCalls/recoverTransactionFromError.mjs +1 -1
- package/functions/web3/functionCalls/transactCallDirect.mjs +1 -1
- package/functions/web3/functionCalls/transactCallDirectTron.mjs +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.mjs +1 -1
- package/functions/web3/functionCalls/waitForErc20Approvals.mjs +1 -1
- package/functions/web3/getContractMetadata.mjs +1 -1
- package/functions/web3/getPublicAddressBalance.mjs +1 -1
- package/functions/web3/getSolanaPriorityFee.mjs +1 -1
- package/functions/web3/getTokenHolder.mjs +1 -1
- package/functions/web3/lifiAPI.mjs +1 -1
- package/functions/web3/odosAPI.mjs +1 -1
- package/functions/web3/okxAPI.mjs +1 -1
- package/functions/web3/oneInchAPI.mjs +1 -1
- package/functions/web3/runContractFunction.mjs +1 -1
- package/functions/web3/signAndSendSerializedTransaction.mjs +1 -1
- package/functions/web3/tron-wagmi-adapter.mjs +1 -1
- package/functions/web3/uniswapAPI.mjs +1 -1
- package/mutexes/mutex.mjs +1 -1
- package/package.json +1 -1
- package/providers/CustomSolanaConnection.mjs +1 -1
- package/providers/EthersProviderAdapter.mjs +1 -1
- package/providers/SolanaProviderAdapter.mjs +1 -1
- package/providers/TronProviderAdapter.mjs +1 -1
- package/providers/WagmiProviderAdapter.mjs +1 -1
- package/providers/prepareEthersHinkal.mjs +1 -1
- package/providers/prepareSolanaHinkal.mjs +1 -1
- package/providers/prepareTronHinkal.mjs +1 -1
- package/providers/prepareWagmiHinkal.mjs +1 -1
- package/types/RewardUserEnums.mjs +1 -1
- package/types/activities.types.mjs +1 -1
- package/types/admin.types.mjs +1 -1
- package/types/approvals.types.mjs +1 -1
- package/types/balances.types.mjs +1 -1
- package/types/cache.types.mjs +1 -1
- package/types/circom-data.types.mjs +1 -1
- package/types/confirmation-request.types.mjs +1 -1
- package/types/eip5792.types.mjs +1 -1
- package/types/ethereum-network.types.mjs +1 -1
- package/types/events.types.mjs +1 -1
- package/types/external-action.types.mjs +1 -1
- package/types/fee.types.mjs +1 -1
- package/types/generatePoints.mjs +1 -1
- package/types/hinkal.types.mjs +1 -1
- package/types/kyc.types.mjs +1 -1
- package/types/new-rewards.type.mjs +1 -1
- package/types/offscreen.types.mjs +1 -1
- package/types/onramp.types.mjs +1 -1
- package/types/pay-activities.types.mjs +1 -1
- package/types/rewards.types.mjs +1 -1
- package/types/schedule.types.mjs +1 -1
- package/types/scheduled-transactions.types.mjs +1 -1
- package/types/slippage.types.mjs +1 -1
- package/types/token-prices.types.mjs +1 -1
- package/types/token.types.mjs +1 -1
- package/types/transaction.types.mjs +1 -1
- package/webworker/performTaskWithWorker.mjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorker.types.mjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.mjs +2 -2
- package/webworker/snarkjsWorker/snarkjsWorkerLogic.mjs +1 -1
- package/webworker/utxoWorker/utxoWorker.types.mjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +2 -2
- package/webworker/utxoWorker/utxoWorkerLogic.mjs +1 -1
- package/webworker/worker.registry.mjs +1 -1
- package/webworker/workerFactory.mjs +1 -1
- package/webworker/workerProxy.mjs +1 -1
- package/webworker/zkProofWorker/zkProofWorker.types.mjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +2 -2
- package/webworker/zkProofWorker/zkProofWorkerLogic.mjs +1 -1
- package/providers/CustomEthersProvider.cjs +0 -1
- package/providers/CustomEthersProvider.mjs +0 -28
package/API/API.mjs
CHANGED
|
@@ -31,7 +31,7 @@ import { reservePrivateSendNonceRange as ge, syncPrivateSendNonce as _e } from "
|
|
|
31
31
|
import { getSnapshotServerEvents as ve } from "./snapshot-event-calls.mjs";
|
|
32
32
|
import { sendPrivateSendEmailNotifications as ye } from "./privateSendEmailNotificationsCalls.mjs";
|
|
33
33
|
import { checkTronSubsidyEligibility as be, recordTronSubsidyUsage as xe } from "./tronSubsidyCalls.mjs";
|
|
34
|
-
//#region
|
|
34
|
+
//#region libs/shared/common/src/API/API.ts
|
|
35
35
|
var Se = {
|
|
36
36
|
getUserKycStatus: o,
|
|
37
37
|
setAiPriseVerificationUrl: c,
|
package/API/accessCodeCalls.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
|
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
4
|
import "../data-structures/http/index.mjs";
|
|
5
5
|
import { getSignatureHeader as r } from "../functions/utils/get-signature-header.mjs";
|
|
6
|
-
//#region
|
|
6
|
+
//#region libs/shared/common/src/API/accessCodeCalls.ts
|
|
7
7
|
var i = async ({ accessCode: i, ethereumAddress: a, signature: o, proxyAddress: s }) => n.post(`${t}${e.submitAccessCode}`, {
|
|
8
8
|
accessCode: i,
|
|
9
9
|
ethereumAddress: a,
|
package/API/admin-calls.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/admin-calls.ts
|
|
6
6
|
var r = (r) => n.post(`${t}${e.emitTxPublicData}`, { adminData: r }), i = (r) => n.post(`${t}${e.emitReferralTx}`, r);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { i as emitReferralTx, r as emitTxPublicData };
|
package/API/brotherhoodCalls.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
|
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
4
|
import "../data-structures/http/index.mjs";
|
|
5
5
|
import { getSignatureHeader as r } from "../functions/utils/get-signature-header.mjs";
|
|
6
|
-
//#region
|
|
6
|
+
//#region libs/shared/common/src/API/brotherhoodCalls.ts
|
|
7
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)}`, {
|
|
8
8
|
transferEthereumAddress: a,
|
|
9
9
|
ethereumAddress: o,
|
package/API/callLifiAPI.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/callLifiAPI.ts
|
|
6
6
|
var r = async (r) => n.post(`${t}${e.ROUTES.callLifiAPI}`, r);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { r as callLifiAPI };
|
package/API/callMonitor.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/callMonitor.ts
|
|
6
6
|
var r = (r) => n.post(`${t}${e.ROUTES.monitor}`, { address: r });
|
|
7
7
|
//#endregion
|
|
8
8
|
export { r as monitor };
|
package/API/callOdosAPI.mjs
CHANGED
|
@@ -3,7 +3,7 @@ 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
5
|
import "../data-structures/http/index.mjs";
|
|
6
|
-
//#region
|
|
6
|
+
//#region libs/shared/common/src/API/callOdosAPI.ts
|
|
7
7
|
async function i(i, a) {
|
|
8
8
|
return [e.base, e.localhost].includes(i) || (a.referralCode = "702077826"), r.post(`${n}${t.ROUTES.callOdosAPI}`, a);
|
|
9
9
|
}
|
package/API/callOkxAPI.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/callOkxAPI.ts
|
|
6
6
|
async function r(r) {
|
|
7
7
|
return n.post(`${t}${e.ROUTES.callOkxAPI}`, r);
|
|
8
8
|
}
|
package/API/callOneInchAPI.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/callOneInchAPI.ts
|
|
6
6
|
var r = async (r, i) => {
|
|
7
7
|
let a = new URLSearchParams();
|
|
8
8
|
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}`);
|
package/API/callRelayer.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/callRelayer.ts
|
|
6
6
|
async function r(r) {
|
|
7
7
|
return n.post(`${t}${e.TRANSACT}`, r);
|
|
8
8
|
}
|
package/API/checkRisk.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/checkRisk.ts
|
|
6
6
|
var r = async (r) => n.get(`${t}${e.ROUTES.checkRisk(r)}`);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { r as checkRisk };
|
|
@@ -1,7 +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
|
-
//#region
|
|
4
|
+
//#region libs/shared/common/src/API/deposit-and-withdraw-status-calls.ts
|
|
5
5
|
var r = (r) => n.post(`${t}${e.updateDepositAndWithdrawStatus}`, r), i = async (e) => {
|
|
6
6
|
if (e.id) try {
|
|
7
7
|
return await r(e);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { httpClient as e } from "../data-structures/http/HttpClient.mjs";
|
|
2
2
|
import "../data-structures/http/index.mjs";
|
|
3
3
|
import { ENCLAVE_EC2_URL as t } from "../functions/snarkjs/constant.mjs";
|
|
4
|
-
//#region
|
|
4
|
+
//#region libs/shared/common/src/API/enclaveSignatureCalls.ts
|
|
5
5
|
var n = async (n, r, i) => e.post(`${t}/store-signature`, {
|
|
6
6
|
ethAddress: n,
|
|
7
7
|
encryptedSignature: r,
|
package/API/enclaveUtxoCalls.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { httpClient as e } from "../data-structures/http/HttpClient.mjs";
|
|
|
2
2
|
import "../data-structures/http/index.mjs";
|
|
3
3
|
import { ENCLAVE_EC2_URL as t } from "../functions/snarkjs/constant.mjs";
|
|
4
4
|
import { Mutex as n } from "async-mutex";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/enclaveUtxoCalls.ts
|
|
6
6
|
var r = new n(), i = async (n, i, a) => r.runExclusive(async () => await e.post(`${t}/decrypt-utxos`, {
|
|
7
7
|
chainId: n,
|
|
8
8
|
input: a,
|
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/fetchCommitmentsCache.ts
|
|
6
6
|
var r = async (r) => {
|
|
7
7
|
let { commitments: i, accessTokens: a, nullifiers: o, approvals: s } = await n.get(`${t}${e.ROUTES.getSnapshots(r)}`), [c, l, u, d] = await Promise.all([
|
|
8
8
|
n.get(i.url).then((e) => ({
|
|
@@ -3,7 +3,7 @@ import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
|
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
4
|
import "../data-structures/http/index.mjs";
|
|
5
5
|
import { getSignatureHeader as r } from "../functions/utils/get-signature-header.mjs";
|
|
6
|
-
//#region
|
|
6
|
+
//#region libs/shared/common/src/API/generate-trading-points.ts
|
|
7
7
|
var i = async ({ tokenChanges: i, ethereumAddress: a, type: o, signature: s, appMetaData: c, chainId: l, proxyAddress: u }) => n.patch(`${t}${e.generateTradingPoints}`, {
|
|
8
8
|
tokenChanges: i?.map(({ amount: e, ...t }) => ({
|
|
9
9
|
...t,
|
package/API/get-token-data.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/get-token-data.ts
|
|
6
6
|
var r = async (r) => n.get(`${t}${e.ROUTES.getTokenData(r)}`);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { r as getTokenData };
|
|
@@ -1,7 +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
|
-
//#region
|
|
4
|
+
//#region libs/shared/common/src/API/get-token-price-chart-data.ts
|
|
5
5
|
var r = async (r, i) => await n.post(`${t}${e.getTokenPriceChartData}`, {
|
|
6
6
|
chainId: r,
|
|
7
7
|
erc20Address: i
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { COINGECKO_API_KEY as e, coingeckoPriceUrl as t, coingeckoPriceUrl2 as n, coingeckoTokenListUrl as r, proHeader as i } from "../constants/coingecko.constants.mjs";
|
|
2
2
|
import a from "axios";
|
|
3
|
-
//#region
|
|
3
|
+
//#region libs/shared/common/src/API/getCoingeckoPrice.ts
|
|
4
4
|
async function o(n) {
|
|
5
5
|
return (await a.get(t(n), { headers: { [i]: e || "" } })).data[n];
|
|
6
6
|
}
|
package/API/getGasEstimates.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/getGasEstimates.ts
|
|
6
6
|
var r = async (r, i, a, o, s, c, l) => n.post(`${t}${e.getGasEstimate(i, a, o, c)}`, {
|
|
7
7
|
calls: s,
|
|
8
8
|
solanaTransactionParams: l,
|
package/API/getServerURL.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEPLOYMENT_MODE as e, deploymentMode as t } from "../constants/vite.constants.mjs";
|
|
2
2
|
import { DATA_SERVER_URL_ENDPOINT as n, PLAYGROUND_URL as r, PRODUCTION_URL as i, RELAYER_URL_ENDPOINT as a, SERVER_URL_ENDPOINT as o, SNAPSHOT_SERVER_URL_ENDPOINT as s, STAGING_URL as c } from "../constants/server.constants.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region libs/shared/common/src/API/getServerURL.ts
|
|
4
4
|
var l = () => {
|
|
5
5
|
switch (t) {
|
|
6
6
|
case e.DEVELOPMENT: return `${c}${o}`;
|
package/API/getTokenPrice.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/getTokenPrice.ts
|
|
6
6
|
var r = async (r, i) => await n.post(`${t}${e.getTokenPrices}`, {
|
|
7
7
|
erc20Addresses: i,
|
|
8
8
|
chainId: r
|
package/API/getWebsiteURL.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEPLOYMENT_MODE as e, deploymentMode as t } from "../constants/vite.constants.mjs";
|
|
2
2
|
import "../constants/index.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region libs/shared/common/src/API/getWebsiteURL.ts
|
|
4
4
|
var n = "http://localhost:4230", r = "https://hinkal-playground-landing.netlify.app", i = "https://staging-hinkal-landing.netlify.app", a = "https://hinkal.pro", o = "http://localhost:4118", s = "https://hinkal-playground-onboarding.netlify.app", c = "https://staging-hinkal-onboarding.netlify.app", l = "https://onboarding.hinkal.pro", u = "http://localhost:4117", d = "https://hinkal-playground.netlify.app", f = "https://staging-hinkal-rewards.netlify.app", p = "https://rewards.hinkal.pro", m = "http://localhost:4116", h = "https://hinkal-playground-pay.netlify.app", g = "https://staging-hinkal-pay.netlify.app", _ = "https://pay.hinkal.pro", v = () => {
|
|
5
5
|
switch (t) {
|
|
6
6
|
case e.DEVELOPMENT: return n;
|
package/API/kycCalls.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/kycCalls.ts
|
|
6
6
|
async function r(r) {
|
|
7
7
|
return n.post(`${t}${e.ROUTES.checkKycStatus}`, { ethereumAddress: r });
|
|
8
8
|
}
|
package/API/leaderboardCalls.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/leaderboardCalls.ts
|
|
6
6
|
var r = async ({ ethereumAddress: r }) => n.get(`${t}${e.getUserCurrentLeaderboard}`, { params: { ethereumAddress: r } }), i = async () => n.get(`${t}${e.getBrotherhoodsLeaderboard}`);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { i as getBrotherhoodsLeaderboard, r as getUserCurrentLeaderboard };
|
package/API/onrampCalls.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/onrampCalls.ts
|
|
6
6
|
var r = async (r) => {
|
|
7
7
|
let { url: i } = await n.post(`${t}${e.ROUTES.encodeMoonPayBuyUrl}`, r);
|
|
8
8
|
return i;
|
|
@@ -3,7 +3,7 @@ import { RELAYER_URL as t } from "./getServerURL.mjs";
|
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
4
|
import "../data-structures/http/index.mjs";
|
|
5
5
|
import { hashEthereumAddress as r } from "../functions/utils/addresses.mjs";
|
|
6
|
-
//#region
|
|
6
|
+
//#region libs/shared/common/src/API/privacy-score-calls.ts
|
|
7
7
|
var i = async ({ ethereumAddress: i }) => {
|
|
8
8
|
let a = r(i);
|
|
9
9
|
return n.get(`${t}${e.getPrivateTransactionsRatio(a)}`);
|
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/privateSendEmailNotificationsCalls.ts
|
|
6
6
|
var r = async (r) => n.post(`${t}${e.sendPrivateSendEmailNotifications}`, r);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { r as sendPrivateSendEmailNotifications };
|
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/privateSendNonceCalls.ts
|
|
6
6
|
var r = async (r, i) => n.post(`${t}${e.ROUTES.privateSendNonceSync}`, {
|
|
7
7
|
hashedEthereumAddress: r,
|
|
8
8
|
localNonce: i
|
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/privateSendRecipientInfoCalls.ts
|
|
6
6
|
var r = async (r) => n.post(`${t}${e.ROUTES.privateSendTopUpRecipientInfos}`, r), i = async (r) => n.post(`${t}${e.ROUTES.privateSendAllocateRecipientInfos}`, r);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { i as allocatePrivateSendRecipientInfos, r as topUpPrivateSendRecipientInfos };
|
|
@@ -4,7 +4,7 @@ import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
|
4
4
|
import "../data-structures/http/index.mjs";
|
|
5
5
|
import { hashEthereumAddress as r } from "../functions/utils/addresses.mjs";
|
|
6
6
|
import { ethers as i } from "ethers";
|
|
7
|
-
//#region
|
|
7
|
+
//#region libs/shared/common/src/API/proxyAccountsCalls.ts
|
|
8
8
|
var a = (e, t) => {
|
|
9
9
|
let n = t.getShieldedPrivateKey(), r = `HinkalProxyAccounts|${e.toLowerCase()}|${n}`;
|
|
10
10
|
return i.keccak256(i.toUtf8Bytes(r));
|
package/API/referralsCalls.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/referralsCalls.ts
|
|
6
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}`, {
|
|
7
7
|
referralCode: r,
|
|
8
8
|
ethereumAddress: i
|
package/API/relayCalls.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/relayCalls.ts
|
|
6
6
|
var r = async (r, i = !1) => await n.get(`${t}${e.getIdleRelay}?markAsPending=${i}&chainId=${r}`);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { r as getIdleRelay };
|
package/API/resolve-sns.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { httpClient as e } from "../data-structures/http/HttpClient.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region libs/shared/common/src/API/resolve-sns.ts
|
|
3
3
|
var t = "https://sns-sdk-proxy.bonfida.workers.dev/resolve", n = async (n) => {
|
|
4
4
|
try {
|
|
5
5
|
let { result: r } = await e.get(`${t}/${n}`);
|
package/API/rewardsUserCalls.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
|
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
4
|
import "../data-structures/http/index.mjs";
|
|
5
5
|
import { getSignatureHeader as r } from "../functions/utils/get-signature-header.mjs";
|
|
6
|
-
//#region
|
|
6
|
+
//#region libs/shared/common/src/API/rewardsUserCalls.ts
|
|
7
7
|
var i = async (r) => await n.get(`${t}${e.getRewardsUser(r)}`), a = async (i, a, o) => await n.post(`${t}${e.connectRewardsUser}`, {
|
|
8
8
|
ethereumAddress: i,
|
|
9
9
|
proxyAddress: o
|
|
@@ -1,7 +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
|
-
//#region
|
|
4
|
+
//#region libs/shared/common/src/API/scheduled-transactions-calls.ts
|
|
5
5
|
var r = (r, i) => n.post(`${t}${e.getScheduledTransactions}`, {
|
|
6
6
|
isSolana: r,
|
|
7
7
|
hashedEthereumAddress: i
|
package/API/seedless-calls.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/seedless-calls.ts
|
|
6
6
|
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
7
|
//#endregion
|
|
8
8
|
export { i as seedlessBackup, o as seedlessCheckPassword, r as seedlessInit, s as seedlessSalt, a as seedlessStatus };
|
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/send-telegram-callback.ts
|
|
6
6
|
var r = async ({ ethereumAddress: r, telegramUser: i }) => await n.post(`${t}${e.getTelegramCallback}`, {
|
|
7
7
|
ethereumAddress: r,
|
|
8
8
|
telegramUser: i
|
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/simulate-batch-tx.ts
|
|
6
6
|
var r = async (r, i) => await n.post(`${t}${e.ROUTES.simulateBatchTx}`, {
|
|
7
7
|
chainId: r,
|
|
8
8
|
batchCalls: i
|
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/simulate-transaction.ts
|
|
6
6
|
var r = async (r, i) => n.post(`${t}${e.ROUTES.simulateTransaction}`, {
|
|
7
7
|
chainId: r,
|
|
8
8
|
txParameters: i
|
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/snapshot-event-calls.ts
|
|
6
6
|
var r = async (r, i, a) => await n.get(`${t}${e.ROUTES.getSnapshotServerEvents}`, { params: {
|
|
7
7
|
chainId: r,
|
|
8
8
|
eventCategory: i,
|
package/API/solana-calls.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/solana-calls.ts
|
|
6
6
|
var r = async (r) => n.post(`${t}${e.ROUTES.generateProoflessDepositLimitless}`, r), i = async (r) => n.post(`${t}${e.ROUTES.generateMultiPaymentDepositLimitless}`, r), a = async (r) => n.post(`${t}${e.ROUTES.generateAddAccessToken}`, r);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { a as generateAddAccessToken, i as generateMultiPaymentDepositLimitless, r as generateProoflessDepositLimitless };
|
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/temporaryWalletCalls.ts
|
|
6
6
|
var r = async (r, i) => n.get(`${t}${e.ROUTES.getTemporaryWalletNonces(i, r)}`), i = async (r, i, a) => n.post(`${t}${e.ROUTES.addTemporaryWalletNonce}`, {
|
|
7
7
|
hashedEthereumAddress: i,
|
|
8
8
|
chainId: r,
|
package/API/tenderly.api.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { chainIds as e } from "../constants/chains.constants.mjs";
|
|
2
2
|
import { httpClient as t } from "../data-structures/http/HttpClient.mjs";
|
|
3
3
|
import "../data-structures/http/index.mjs";
|
|
4
|
-
//#region
|
|
4
|
+
//#region libs/shared/common/src/API/tenderly.api.ts
|
|
5
5
|
var n = "7o1iPUgCIjLI0rSxj2yuz9-Z3052uUc4", r = "https://api.tenderly.co/api/v1/account/hinkal-org/project/project", i = { "X-Access-Key": n }, a = async (e) => await t.post(`${r}/simulate`, { ...e }, { headers: i }), o = {
|
|
6
6
|
[e.optimism]: "https://optimism.gateway.tenderly.co/2A3r4RCMoAZVmQOpNqRO29",
|
|
7
7
|
[e.base]: "https://base.gateway.tenderly.co/73UtIBn1YiCyhqRJuKTkWl",
|
package/API/token-calls.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/token-calls.ts
|
|
6
6
|
var r = async (r, i, a = !1) => await n.post(`${t}${e.ROUTES.getTokensInfo}`, {
|
|
7
7
|
chainId: r,
|
|
8
8
|
tokenAddresses: i,
|
package/API/tronSubsidyCalls.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/tronSubsidyCalls.ts
|
|
6
6
|
var r = async (r) => n.get(`${t}${e.ROUTES.tronSubsidyEligibility}?ethereumAddress=${encodeURIComponent(r)}`), i = async (r) => n.post(`${t}${e.ROUTES.tronSubsidyRecord}`, r);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { r as checkTronSubsidyEligibility, i as recordTronSubsidyUsage };
|
|
@@ -2,7 +2,7 @@ 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
4
|
import "../data-structures/http/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region libs/shared/common/src/API/weeklyAnalyticCalls.ts
|
|
6
6
|
var r = async ({ ethereumAddress: r }) => await n.get(`${t}${e.getUserAnalytics}`, { params: { ethereumAddress: r } }), i = async ({ brotherhoodId: r, ethereumAddress: i }) => await n.get(`${t}${e.getBrotherhoodAnalytics}`, { params: {
|
|
7
7
|
brotherhoodId: r,
|
|
8
8
|
ethereumAddress: i
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExternalActionId as e } from "../types/external-action.types.mjs";
|
|
2
2
|
import { chainIds as t } from "./chains.constants.mjs";
|
|
3
3
|
import "../types/index.mjs";
|
|
4
|
-
//#region
|
|
4
|
+
//#region libs/shared/common/src/constants/addresses.constants.ts
|
|
5
5
|
var n = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", r = {
|
|
6
6
|
[e.Uniswap]: {
|
|
7
7
|
[t.ethMainnet]: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
|
|
@@ -9,7 +9,7 @@ import s from "./deploy-data/deploy-data-solana.json.mjs";
|
|
|
9
9
|
import c from "./deploy-data/deploy-data-tronNile.json.mjs";
|
|
10
10
|
import l from "./deploy-data/deploy-data-tronMainnet.json.mjs";
|
|
11
11
|
import { isDevelopment as u, isNotProduction as d } from "./vite.constants.mjs";
|
|
12
|
-
//#region
|
|
12
|
+
//#region libs/shared/common/src/constants/chains.constants.ts
|
|
13
13
|
var f = {
|
|
14
14
|
polygon: 137,
|
|
15
15
|
arbMainnet: 42161,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { chainIds as e, getNonLocalhostChainId as t } from "./chains.constants.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region libs/shared/common/src/constants/coingecko.constants.ts
|
|
3
3
|
var n = "https://api.coingecko.com/api/v3", r = "https://pro-api.coingecko.com/api/v3", i = typeof window < "u" ? "" : process.env.COINGECKO_API_KEY, a = "x-cg-pro-api-key", o = i ? r : n, s = (e) => `${o}/simple/price?ids=${e}&vs_currencies=USD,ETH`, c = (e, t) => `${o}/simple/token_price/${t}?contract_addresses=${e}&vs_currencies=USD`, l = (e) => `${o}/coins/${e}`, u = (e) => `${o}/search?query=${encodeURIComponent(e)}`, d = (e, t) => `${r}/coins/${e}/contract/${t}`, f = (e, t) => `${r}/coins/${e}/market_chart?vs_currency=usd&days=${t}&interval=daily`, p = `${r}/coins/list`, m = {
|
|
4
4
|
[e.arbMainnet]: "ethereum",
|
|
5
5
|
[e.localhost]: "ethereum",
|
|
@@ -8,7 +8,7 @@ import { ERC1155ABI as s, ERC721ABI as c } from "../externalABIs/index.mjs";
|
|
|
8
8
|
import l from "../externalABIs/IUniswapV3Pool.json.mjs";
|
|
9
9
|
import u from "../externalABIs/UniswapV2PoolAbi.json.mjs";
|
|
10
10
|
import { ethers as d } from "ethers";
|
|
11
|
-
//#region
|
|
11
|
+
//#region libs/shared/common/src/constants/contracts.constants.ts
|
|
12
12
|
var f = { abi: o.abi }, p = { abi: l.abi }, m = { abi: u.abi }, h = { abi: a.abi }, g = {
|
|
13
13
|
[e.HinkalContract]: (e) => ({
|
|
14
14
|
abi: e.hinkalABI,
|