h_test_1 0.0.46 → 0.0.48
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.cjs +1 -1
- package/constants/chains.constants.mjs +118 -120
- 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/index.d.ts +1 -3
- 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/index.cjs +1 -1
- package/constants/index.mjs +0 -2
- 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.cjs +1 -1
- package/constants/token-data/ERC20Registry.mjs +39 -51
- package/constants/token-data/index.cjs +1 -1
- package/constants/token-data/index.d.ts +1 -233
- package/constants/token-data/index.mjs +14 -18
- 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.cjs +1 -1
- package/data-structures/Hinkal/Hinkal.mjs +2 -2
- 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.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdraw.mjs +3 -9
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +1 -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.cjs +1 -1
- package/data-structures/event-service/evm/AbstractEventService.mjs +2 -2
- 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.cjs +1 -1
- package/error-handling/customErrors/customErrors.helpers.mjs +2 -2
- package/error-handling/error-codes.constants.mjs +1 -1
- package/error-handling/get-error.message.cjs +1 -1
- package/error-handling/get-error.message.mjs +2 -2
- 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.cjs +1 -1
- package/functions/pre-transaction/outputApprovalDataProcessing.mjs +3 -3
- package/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
- package/functions/pre-transaction/outputUtxoProcessing.mjs +2 -5
- 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.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.mjs +1 -1
- 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.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.mjs +13 -60
- package/functions/web3/events/getInputUtxosEnclave.mjs +1 -1
- package/functions/web3/events/getShieldedBalance.cjs +1 -1
- package/functions/web3/events/getShieldedBalance.mjs +3 -13
- 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/index.cjs +1 -1
- package/index.mjs +308 -310
- package/mutexes/mutex.mjs +1 -1
- package/package.json +1 -1
- package/providers/CustomEthersProvider.mjs +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/constants/deploy-data/deploy-data-avalanche.json.cjs +0 -1
- package/constants/deploy-data/deploy-data-avalanche.json.mjs +0 -5352
- package/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +0 -1
- package/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +0 -5352
- package/constants/token-data/avalancheRegistry.json.cjs +0 -1
- package/constants/token-data/avalancheRegistry.json.mjs +0 -729
- package/constants/token-data/avalancheRegistryFixed.json.cjs +0 -1
- package/constants/token-data/avalancheRegistryFixed.json.mjs +0 -729
- package/constants/token-data/bnbMainnetRegistry.json.cjs +0 -1
- package/constants/token-data/bnbMainnetRegistry.json.mjs +0 -900
- package/constants/token-data/bnbMainnetRegistryFixed.json.cjs +0 -1
- package/constants/token-data/bnbMainnetRegistryFixed.json.mjs +0 -900
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { API as e } from "../../../API/API.mjs";
|
|
2
2
|
import { Logger as t } from "../../../error-handling/logger.mjs";
|
|
3
3
|
import { BlockchainEvent as n } from "../../BlockchainEvent/BlockchainEvent.mjs";
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../shared/common/src/data-structures/event-service/helpers/ClientEventHelper.ts
|
|
5
5
|
var r = 5e3, i = class {
|
|
6
6
|
chainId;
|
|
7
7
|
eventCategory;
|
|
@@ -7,7 +7,7 @@ import "../../merkle-tree/index.mjs";
|
|
|
7
7
|
import { contructMerkleTreeFromSerialized as i } from "../../../functions/utils/merkleTree.utils.mjs";
|
|
8
8
|
import { AbstractSolanaSnapshotService as a } from "./AbstractSolanaSnapshotService.mjs";
|
|
9
9
|
import { PublicKey as o } from "@solana/web3.js";
|
|
10
|
-
//#region
|
|
10
|
+
//#region ../shared/common/src/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.ts
|
|
11
11
|
var s = class extends a {
|
|
12
12
|
constructor(e) {
|
|
13
13
|
super(e, "NewAccessKeyAdded");
|
|
@@ -6,7 +6,7 @@ import { MerkleTree as i } from "../../merkle-tree/MerkleTree.mjs";
|
|
|
6
6
|
import "../../merkle-tree/index.mjs";
|
|
7
7
|
import { contructMerkleTreeFromSerialized as a } from "../../../functions/utils/merkleTree.utils.mjs";
|
|
8
8
|
import { AbstractSolanaSnapshotService as o } from "./AbstractSolanaSnapshotService.mjs";
|
|
9
|
-
//#region
|
|
9
|
+
//#region ../shared/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.ts
|
|
10
10
|
var s = class extends o {
|
|
11
11
|
constructor(e) {
|
|
12
12
|
super(e, "NewCommitment");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { advancedToBigInt as e } from "../../../functions/utils/amounts.utils.mjs";
|
|
2
2
|
import { AbstractSolanaSnapshotService as t } from "./AbstractSolanaSnapshotService.mjs";
|
|
3
3
|
import { ethers as n } from "ethers";
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../shared/common/src/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.ts
|
|
5
5
|
var r = class extends t {
|
|
6
6
|
constructor(e) {
|
|
7
7
|
super(e, "Nullified");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { saveDepths as e } from "../../../constants/save-depths.mjs";
|
|
2
2
|
import { AbstractSolanaEventService as t } from "./AbstractSolanaEventService.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/event-service/solana/AbstractSolanaSnapshotService.ts
|
|
4
4
|
var n = class extends t {
|
|
5
5
|
savedLatestSlot = 0;
|
|
6
6
|
constructor(e, t) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventCategory as e } from "../../../types/events.types.mjs";
|
|
2
2
|
import { ClientEventHelper as t } from "../helpers/ClientEventHelper.mjs";
|
|
3
3
|
import { SolanaBlockchainEventEmitter as n } from "./SolanaBlockchainEventEmitter.mjs";
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../shared/common/src/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.ts
|
|
5
5
|
var r = class extends n {
|
|
6
6
|
clientEventHelper;
|
|
7
7
|
constructor(n, r, i, a, o, s, c) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PollingEventHelper as e } from "../helpers/PollingEventHelper.mjs";
|
|
2
2
|
import { SolanaBlockchainEventEmitter as t } from "./SolanaBlockchainEventEmitter.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.ts
|
|
4
4
|
var n = class extends t {
|
|
5
5
|
pollingEventHelper = new e();
|
|
6
6
|
clear() {
|
|
@@ -3,7 +3,7 @@ import { Logger as t } from "../../../error-handling/logger.mjs";
|
|
|
3
3
|
import { getSequence as n, resolveSync as r } from "../../../functions/utils/resolve-sync.utils.mjs";
|
|
4
4
|
import { BlockchainEvent as i } from "../../BlockchainEvent/BlockchainEvent.mjs";
|
|
5
5
|
import { BorshCoder as a, EventParser as o, utils as s } from "@coral-xyz/anchor";
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../shared/common/src/data-structures/event-service/solana/SolanaBlockchainEventEmitter.ts
|
|
7
7
|
var c = 1e3, l = 20, u = class {
|
|
8
8
|
_chainId;
|
|
9
9
|
connection;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MERKLE_LEVELS as e } from "../../constants/protocol.constants.mjs";
|
|
2
2
|
import { logError as t } from "../../error-handling/logError.mjs";
|
|
3
3
|
import { MerkleTreeIncompleteError as n } from "./MerkleTreeIncompleteError.mjs";
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../shared/common/src/data-structures/merkle-tree/MerkleTree.ts
|
|
5
5
|
var r = class r {
|
|
6
6
|
tree;
|
|
7
7
|
count;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../shared/common/src/data-structures/merkle-tree/MerkleTreeIncompleteError.ts
|
|
2
2
|
var e = class extends Error {
|
|
3
3
|
constructor() {
|
|
4
4
|
super("Merkle tree is incomplete"), this.name = "MerkleTreeIncompleteError";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { randomBigInt as e } from "../../functions/web3/etherFunctions.mjs";
|
|
2
2
|
import { poseidonFunction as t } from "../../crypto/poseidon.mjs";
|
|
3
3
|
import { MerkleTree as n } from "./MerkleTree.mjs";
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../shared/common/src/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.ts
|
|
5
5
|
var r = (r, i, a, o) => {
|
|
6
6
|
if (!o || a) {
|
|
7
7
|
let r = n.create(t, 0n);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { presaleABI as e, presaleContractInfoByChain as t } from "../../constants/presale.constants.mjs";
|
|
2
2
|
import { ethers as n } from "ethers";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/presale/PresaleContractWrapper.ts
|
|
4
4
|
var r = class {
|
|
5
5
|
contract;
|
|
6
6
|
eventsFrom;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { caseInsensitiveEqual as e } from "../../functions/utils/caseInsensitive.utils.mjs";
|
|
2
2
|
import { fetchSnapshots as t } from "../../API/fetchCommitmentsCache.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/snapshot/SnapshotFetcherService.ts
|
|
4
4
|
var n = 300 * 1e3, r = class {
|
|
5
5
|
chainId;
|
|
6
6
|
contractAddress;
|
|
@@ -3,7 +3,7 @@ import { getProviderFromContract as t } from "../../../functions/utils/getSigner
|
|
|
3
3
|
import { AbstractAccessTokenSnapshotService as n } from "../../event-service/evm/AbstractAccessTokenSnapshotService.mjs";
|
|
4
4
|
import "../../event-service/index.mjs";
|
|
5
5
|
import { SnapshotFetcherService as r } from "../SnapshotFetcherService.mjs";
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../shared/common/src/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.ts
|
|
7
7
|
var i = class extends n {
|
|
8
8
|
snapshotsService;
|
|
9
9
|
constructor(e, t) {
|
|
@@ -2,7 +2,7 @@ import { getContractAddress as e } from "../../../functions/utils/getContractAdd
|
|
|
2
2
|
import { getProviderFromContract as t } from "../../../functions/utils/getSignerFromContract.mjs";
|
|
3
3
|
import { AbstractApprovalsSnapshotService as n } from "../../event-service/evm/AbstractApprovalsSnapshotService.mjs";
|
|
4
4
|
import "../../event-service/index.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../shared/common/src/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.ts
|
|
6
6
|
var r = class extends n {
|
|
7
7
|
snapshotsService;
|
|
8
8
|
constructor(e, t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractCommitmentsSnapshotService as e } from "../../event-service/evm/AbstractCommitmentsSnapshotService.mjs";
|
|
2
2
|
import "../../event-service/index.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.ts
|
|
4
4
|
var t = class extends e {
|
|
5
5
|
snapshotsService;
|
|
6
6
|
constructor(e, t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractNullifierSnapshotService as e } from "../../event-service/evm/AbstractNullifierSnapshotService.mjs";
|
|
2
2
|
import "../../event-service/index.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.ts
|
|
4
4
|
var t = class extends e {
|
|
5
5
|
snapshotsService;
|
|
6
6
|
constructor(e, t) {
|
package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbstractSolanaAccessTokenSnapshotService as e } from "../../event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs";
|
|
2
2
|
import "../../event-service/index.mjs";
|
|
3
3
|
import { SnapshotFetcherService as t } from "../SnapshotFetcherService.mjs";
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../shared/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.ts
|
|
5
5
|
var n = class extends e {
|
|
6
6
|
snapshotsService;
|
|
7
7
|
constructor(e, t) {
|
package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractSolanaCommitmentsSnapshotService as e } from "../../event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs";
|
|
2
2
|
import "../../event-service/index.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.ts
|
|
4
4
|
var t = class extends e {
|
|
5
5
|
snapshotsService;
|
|
6
6
|
constructor(e, t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractSolanaNullifierSnapshotService as e } from "../../event-service/solana/AbstractSolanaNullifierSnapshotService.mjs";
|
|
2
2
|
import "../../event-service/index.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.ts
|
|
4
4
|
var t = class extends e {
|
|
5
5
|
snapshotsService;
|
|
6
6
|
constructor(e, t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isSolanaLike as e } from "../../constants/chains.constants.mjs";
|
|
2
2
|
import { zeroAddress as t } from "../../constants/protocol.constants.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/token-price-fetcher/TokenChecker.ts
|
|
4
4
|
var n = class {
|
|
5
5
|
static isBeefyStakeToken = (e) => e.name.includes("-Boost") && e.symbol.includes("-Boost");
|
|
6
6
|
static isStakeToken = (e) => this.isBeefyStakeToken(e);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../shared/common/src/data-structures/transactions-manager/history/history.types.ts
|
|
2
2
|
var e = /* @__PURE__ */ function(e) {
|
|
3
3
|
return e[e.DEPOSIT = 0] = "DEPOSIT", e[e.WITHDRAW = 1] = "WITHDRAW", e[e.SWAP = 2] = "SWAP", e[e.UNKNOWN = 3] = "UNKNOWN", e;
|
|
4
4
|
}({});
|
|
@@ -4,7 +4,7 @@ import { randomBigInt as n } from "../../functions/web3/etherFunctions.mjs";
|
|
|
4
4
|
import { poseidonHash as r } from "../../crypto/poseidon.mjs";
|
|
5
5
|
import { UserKeys as i } from "../crypto-keys/keys.mjs";
|
|
6
6
|
import { getCurrentTimeInSeconds as a } from "../../functions/utils/time.utils.mjs";
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../shared/common/src/data-structures/utxo/Utxo.ts
|
|
8
8
|
var o = class o {
|
|
9
9
|
amount;
|
|
10
10
|
erc20TokenAddress;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { transactionErrorCodes as e } from "../error-codes.constants.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../shared/common/src/error-handling/customErrors/FeeOverTransactionValueError.ts
|
|
3
3
|
var t = class extends Error {
|
|
4
4
|
constructor(t) {
|
|
5
5
|
super(e.FEES_OVER_TRANSACTION_VALUE), this.data = t, this.name = this.constructor.name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../error-codes.constants.cjs`),t=require(`../../functions/web3/etherFunctions.cjs`),n=require(`../../functions/utils/amounts.utils.cjs`),r=require(`./FeeOverTransactionValueError.cjs`),i=require(`../types.cjs`);var a=(e,r)=>{let{totalFeeWEI:a,feeUnit:o}=e.data;if(!o)return e.message;let s=t.getAmountInToken(o,a),c=`transact`,l=`an equivalent of `;return r===i.ErrorCategory.WITHDRAW&&(c=`withdraw`,l=``),`Fees are over transaction value. Please ${c} at least ${l} ${n.fixDecimalsAmount(Number(s))} of ${o?.symbol} (subject to real-time price)`},o=(t,n)=>{throw t instanceof r.FeeOverTransactionValueError||t?.message===e.transactionErrorCodes.INSUFFICIENT_FUNDS_TO_TRANSACT?
|
|
1
|
+
const e=require(`../error-codes.constants.cjs`),t=require(`../../functions/web3/etherFunctions.cjs`),n=require(`../../functions/utils/amounts.utils.cjs`),r=require(`./FeeOverTransactionValueError.cjs`),i=require(`../types.cjs`);var a=(e,r)=>{let{totalFeeWEI:a,feeUnit:o}=e.data;if(!o)return e.message;let s=t.getAmountInToken(o,a),c=`transact`,l=`an equivalent of `;return r===i.ErrorCategory.WITHDRAW&&(c=`withdraw`,l=``),`Fees are over transaction value. Please ${c} at least ${l} ${n.fixDecimalsAmount(Number(s))} of ${o?.symbol} (subject to real-time price)`},o=(t,n)=>{throw t instanceof r.FeeOverTransactionValueError||t?.message===e.transactionErrorCodes.INSUFFICIENT_FUNDS_TO_TRANSACT?t:Error(n)};exports.getGenericFeeOverTransactionValueErrorMessage=a,exports.rethrowKnownGasErrorIfPossible=o;
|
|
@@ -3,14 +3,14 @@ import { getAmountInToken as t } from "../../functions/web3/etherFunctions.mjs";
|
|
|
3
3
|
import { fixDecimalsAmount as n } from "../../functions/utils/amounts.utils.mjs";
|
|
4
4
|
import { FeeOverTransactionValueError as r } from "./FeeOverTransactionValueError.mjs";
|
|
5
5
|
import { ErrorCategory as i } from "../types.mjs";
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../shared/common/src/error-handling/customErrors/customErrors.helpers.ts
|
|
7
7
|
var a = (e, r) => {
|
|
8
8
|
let { totalFeeWEI: a, feeUnit: o } = e.data;
|
|
9
9
|
if (!o) return e.message;
|
|
10
10
|
let s = t(o, a), c = "transact", l = "an equivalent of ";
|
|
11
11
|
return r === i.WITHDRAW && (c = "withdraw", l = ""), `Fees are over transaction value. Please ${c} at least ${l} ${n(Number(s))} of ${o?.symbol} (subject to real-time price)`;
|
|
12
12
|
}, o = (t, n) => {
|
|
13
|
-
throw t instanceof r || t?.message === e.INSUFFICIENT_FUNDS_TO_TRANSACT ?
|
|
13
|
+
throw t instanceof r || t?.message === e.INSUFFICIENT_FUNDS_TO_TRANSACT ? t : Error(n);
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
export { a as getGenericFeeOverTransactionValueErrorMessage, o as rethrowKnownGasErrorIfPossible };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../shared/common/src/error-handling/error-codes.constants.ts
|
|
2
2
|
var e = {
|
|
3
3
|
CANNOT_CERTIFY_FOR_PAST_WEEK: "Certification for the past week is not available",
|
|
4
4
|
CYCLICAL_REFERRALS_FORBIDDEN: "Cyclical referrals are forbidden",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../types/transaction.types.cjs`);require(`../types/index.cjs`);const t=require(`./error-codes.constants.cjs`),n=require(`./customErrors/ErrorWithAmount.cjs`),r=require(`./customErrors/FeeOverTransactionValueError.cjs`),i=require(`./types.cjs`),a=require(`./customErrors/customErrors.helpers.cjs`);require(`./customErrors/index.cjs`);const o=require(`./isInsufficientFundsError.cjs`);var s=e=>{if(typeof e==`object`&&e){if(`response`in e&&typeof e.response==`object`&&e.response!==null&&`data`in e.response&&typeof e.response.data==`object`&&e.response.data!==null&&`message`in e.response.data&&typeof e.response.data.message==`string`)return e.response.data.message;if(`data`in e&&typeof e.data==`object`&&e.data!==null&&`message`in e.data&&typeof e.data.message==`string`)return e.data.message;if(`message`in e&&typeof e.message==`string`)return e.message}if(e instanceof Error)return e.message;if(typeof e==`string`)return e},c=e=>{switch(e){case i.ErrorCategory.DEPOSIT:return`Deposit failed`;case i.ErrorCategory.SWAP:return`Swap failed`;case i.ErrorCategory.BRIDGE:return`Bridge failed`;case i.ErrorCategory.WITHDRAW:return`Send failed`;case i.ErrorCategory.Fund:return`Unshield failed`;case i.ErrorCategory.Receive:return`Shield failed`;case i.ErrorCategory.DappTransaction:return`DApp transaction failed`;case i.ErrorCategory.Approve:return`Approval failed`;default:return t.transactionErrorCodes.UNKNOWN}},l=(e,i)=>{if(e instanceof r.FeeOverTransactionValueError)return a.getGenericFeeOverTransactionValueErrorMessage(e,i);if(e instanceof n.ErrorWithAmount){let{amount:t,message:n}=e;return`${n} ${t}`}let l=s(e);if(l&&o.isInsufficientFundsError(l))return
|
|
1
|
+
const e=require(`../types/transaction.types.cjs`);require(`../types/index.cjs`);const t=require(`./error-codes.constants.cjs`),n=require(`./customErrors/ErrorWithAmount.cjs`),r=require(`./customErrors/FeeOverTransactionValueError.cjs`),i=require(`./types.cjs`),a=require(`./customErrors/customErrors.helpers.cjs`);require(`./customErrors/index.cjs`);const o=require(`./isInsufficientFundsError.cjs`);var s=e=>{if(typeof e==`object`&&e){if(`response`in e&&typeof e.response==`object`&&e.response!==null&&`data`in e.response&&typeof e.response.data==`object`&&e.response.data!==null&&`message`in e.response.data&&typeof e.response.data.message==`string`)return e.response.data.message;if(`data`in e&&typeof e.data==`object`&&e.data!==null&&`message`in e.data&&typeof e.data.message==`string`)return e.data.message;if(`message`in e&&typeof e.message==`string`)return e.message}if(e instanceof Error)return e.message;if(typeof e==`string`)return e},c=e=>{switch(e){case i.ErrorCategory.DEPOSIT:return`Deposit failed`;case i.ErrorCategory.SWAP:return`Swap failed`;case i.ErrorCategory.BRIDGE:return`Bridge failed`;case i.ErrorCategory.WITHDRAW:return`Send failed`;case i.ErrorCategory.Fund:return`Unshield failed`;case i.ErrorCategory.Receive:return`Shield failed`;case i.ErrorCategory.DappTransaction:return`DApp transaction failed`;case i.ErrorCategory.Approve:return`Approval failed`;default:return t.transactionErrorCodes.UNKNOWN}},l=(e,i)=>{if(e instanceof r.FeeOverTransactionValueError)return a.getGenericFeeOverTransactionValueErrorMessage(e,i);if(e instanceof n.ErrorWithAmount){let{amount:t,message:n}=e;return`${n} ${t}`}let l=s(e);if(l&&o.isInsufficientFundsError(l))return t.insufficientResourcesErrorCodes.INSUFFICIENT_FUNDS;if(l){let e=l.toLowerCase(),n=Object.keys(t.transactionErrorCodes).find(n=>e===t.transactionErrorCodes[n].toLowerCase());if(n&&n in t.UserFriendlyErrorCodes)return t.UserFriendlyErrorCodes[n];let r=Object.entries(t.transactionErrorCodes).find(([t,n])=>e.includes(n.toLowerCase()));if(r)return t.UserFriendlyErrorCodes[r[0]]??r[1];if(Object.values(t.DIRECTLY_SHOW_MESSAGE_ERROR_CODES).find(t=>e.includes(t.toLowerCase())))return l}return i?c(i):t.transactionErrorCodes.UNKNOWN},u=(t,n)=>{let r;switch(n){case e.TransactionRequestType.Send:case e.TransactionRequestType.ProxySend:r=i.ErrorCategory.WITHDRAW;break;case e.TransactionRequestType.SwapTokens:case e.TransactionRequestType.ProxySwapTokens:r=i.ErrorCategory.SWAP;break;case e.TransactionRequestType.ReceiveFromShieldedAccount:r=i.ErrorCategory.Receive;break;case e.TransactionRequestType.Fund:r=i.ErrorCategory.Fund;break;case e.TransactionRequestType.PrivateTransactionFromProxy:r=i.ErrorCategory.DappTransaction;break;default:r=void 0;break}return l(t,r)};exports.extractMessage=s,exports.getErrorMessage=l,exports.getErrorMessageFromTransactionRequest=u;
|
|
@@ -7,7 +7,7 @@ import { ErrorCategory as s } from "./types.mjs";
|
|
|
7
7
|
import { getGenericFeeOverTransactionValueErrorMessage as c } from "./customErrors/customErrors.helpers.mjs";
|
|
8
8
|
import "./customErrors/index.mjs";
|
|
9
9
|
import { isInsufficientFundsError as l } from "./isInsufficientFundsError.mjs";
|
|
10
|
-
//#region
|
|
10
|
+
//#region ../shared/common/src/error-handling/get-error.message.ts
|
|
11
11
|
var u = (e) => {
|
|
12
12
|
if (typeof e == "object" && e) {
|
|
13
13
|
if ("response" in e && typeof e.response == "object" && e.response !== null && "data" in e.response && typeof e.response.data == "object" && e.response.data !== null && "message" in e.response.data && typeof e.response.data.message == "string") return e.response.data.message;
|
|
@@ -35,7 +35,7 @@ var u = (e) => {
|
|
|
35
35
|
return `${n} ${t}`;
|
|
36
36
|
}
|
|
37
37
|
let f = u(e);
|
|
38
|
-
if (f && l(f)) return
|
|
38
|
+
if (f && l(f)) return r.INSUFFICIENT_FUNDS;
|
|
39
39
|
if (f) {
|
|
40
40
|
let e = f.toLowerCase(), r = Object.keys(i).find((t) => e === i[t].toLowerCase());
|
|
41
41
|
if (r && r in n) return n[r];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { insufficientResourcesErrorCodes as e } from "./error-codes.constants.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../shared/common/src/error-handling/isInsufficientFundsError.ts
|
|
3
3
|
var t = (t) => {
|
|
4
4
|
let n = t.toLowerCase(), r = [
|
|
5
5
|
e.INSUFFICIENT_FUNDS,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isNotClientProduction as e } from "../constants/vite.constants.mjs";
|
|
2
2
|
import { logError as t } from "./logError.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/error-handling/logger.ts
|
|
4
4
|
var n = class {
|
|
5
5
|
static log(...t) {
|
|
6
6
|
e && console.log(...t);
|
package/error-handling/types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../shared/common/src/error-handling/types.ts
|
|
2
2
|
var e = /* @__PURE__ */ function(e) {
|
|
3
3
|
return e.DEPOSIT = "DEPOSIT", e.SWAP = "SWAP", e.BRIDGE = "BRIDGE", e.WITHDRAW = "WITHDRAW", e.Receive = "Receive", e.Fund = "Unshield", e.DappTransaction = "DappTransaction", e.Approve = "Approve", e;
|
|
4
4
|
}({});
|
package/externalABIs/BUSD.mjs
CHANGED
package/externalABIs/DAI.mjs
CHANGED
package/externalABIs/USDC.mjs
CHANGED
package/externalABIs/USDR.mjs
CHANGED
package/externalABIs/USDT.mjs
CHANGED
package/externalABIs/WETH.mjs
CHANGED
package/externalABIs/amToken.mjs
CHANGED
package/externalABIs/index.mjs
CHANGED
|
@@ -18,7 +18,7 @@ import s from "./BabPassport.json.mjs";
|
|
|
18
18
|
import c from "./GalxePassport.json.mjs";
|
|
19
19
|
import "./OptimismGasPriceOracle.json.mjs";
|
|
20
20
|
import "./NodeInterfaceABI.json.mjs";
|
|
21
|
-
//#region
|
|
21
|
+
//#region ../shared/common/src/externalABIs/index.ts
|
|
22
22
|
var l = e.abi, u = t.abi, d = n.abi, f = r.abi, p = i.abi, m = a.abi, h = o.abi, g = s.abi, _ = c.abi;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { g as BabABI, d as ERC1155ABI, l as ERC20ABI, u as ERC721ABI, _ as GalxeABI, m as ISwapRouterABI, p as factoryABI, f as quoterV2ABI, h as transactionProverABI };
|
package/externalABIs/swapAbi.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { Logger as t } from "../../error-handling/logger.mjs";
|
|
|
3
3
|
import { getPublicBalance as n } from "../utils/publicBalance.utils.mjs";
|
|
4
4
|
import "../utils/index.mjs";
|
|
5
5
|
import "../web3/index.mjs";
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../shared/common/src/functions/auto-deposit-back-helpers/get-gas-token-records.ts
|
|
7
7
|
var r = async (r, i, a, o, s, c) => {
|
|
8
8
|
try {
|
|
9
9
|
let t = await a.getEthereumAddressByChain(i), l = await a.getBalances(i, a.userKeys.getShieldedPrivateKey(), a.userKeys.getShieldedPublicKey(), t);
|
|
@@ -3,7 +3,7 @@ import { isNFTToken as t } from "../utils/erc20tokenFunctions.mjs";
|
|
|
3
3
|
import { Logger as n } from "../../error-handling/logger.mjs";
|
|
4
4
|
import { getPublicBalance as r } from "../utils/publicBalance.utils.mjs";
|
|
5
5
|
import "../utils/index.mjs";
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../shared/common/src/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.ts
|
|
7
7
|
var i = async (i, a, o, s) => {
|
|
8
8
|
try {
|
|
9
9
|
return (await Promise.all(i.filter((n) => !e(n.token.erc20TokenAddress, a) && !t(n.token)).map(async (e) => {
|
|
@@ -10,7 +10,7 @@ import "../pre-transaction/index.mjs";
|
|
|
10
10
|
import { convertEmporiumOpToCallInfo as o } from "../utils/convertEmporiumOpToCallInfo.mjs";
|
|
11
11
|
import { postToOffscreen as s } from "../utils/postToOffscreen.mjs";
|
|
12
12
|
import "../utils/index.mjs";
|
|
13
|
-
//#region
|
|
13
|
+
//#region ../shared/common/src/functions/auto-deposit-back-helpers/select-gas-token.ts
|
|
14
14
|
var c = async (c, l, u, d, f, p, m, h, g) => {
|
|
15
15
|
try {
|
|
16
16
|
if (!((p.find(({ erc20Token: e }) => n(e.erc20TokenAddress, c))?.totalUsdBalance ?? 0) >= l)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Logger as e } from "../../error-handling/logger.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../shared/common/src/functions/auto-deposit-back-helpers/update-hinkal.ts
|
|
3
3
|
var t = (t, n, r) => {
|
|
4
4
|
try {
|
|
5
5
|
let e = t.outCommitments?.flat(), i = t.encryptedOutputs?.flat(), a = t.inputNullifiers?.flat(), o = r.merkleTreeHinkalByChain[n].getStartIndex(), s = BigInt(r.merkleTreeHinkalByChain[n].toJSON().count);
|
|
@@ -8,7 +8,7 @@ import "../../API/index.mjs";
|
|
|
8
8
|
import "../../error-handling/index.mjs";
|
|
9
9
|
import "../utils/index.mjs";
|
|
10
10
|
import "../web3/index.mjs";
|
|
11
|
-
//#region
|
|
11
|
+
//#region ../shared/common/src/functions/kyc/checkTokenLimitsUSD.ts
|
|
12
12
|
var i = async (i, a, o) => {
|
|
13
13
|
if (!a.length || !o.length) return !1;
|
|
14
14
|
let s = a.map((e) => r(e, i)), c = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../shared/common/src/functions/kyc/openDefaultPassportWindow.ts
|
|
2
2
|
var e = (e, t, n = 650, r = 400) => {
|
|
3
3
|
let i = window.top.outerHeight / 2 + window.top.screenY - n / 2, a = window.top.outerWidth / 2 + window.top.screenX - r / 2;
|
|
4
4
|
window.open(e, t, `toolbar=no, menubar=no, width=${r}, height=${n}, top=${i}, left=${a}`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openDefaultPassportWindow as e } from "./openDefaultPassportWindow.mjs";
|
|
2
2
|
import { SupportedPassports as t } from "../../constants/kyc.constants.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/functions/kyc/passportHelper.ts
|
|
4
4
|
var n = (n, r, i = 650, a = 400) => {
|
|
5
5
|
let { onboardURL: o, shortName: s, customHandleKYC: c } = t[n];
|
|
6
6
|
c ? c(r, s, o) : e(o, s, i, a);
|
|
@@ -2,7 +2,7 @@ import { chainIds as e } from "../../constants/chains.constants.mjs";
|
|
|
2
2
|
import { getHinkalZkMeProvider as t } from "../../data-structures/Hinkal/hinkalGetZkMeProvider.mjs";
|
|
3
3
|
import { openDefaultPassportWindow as n } from "./openDefaultPassportWindow.mjs";
|
|
4
4
|
import { ethers as r } from "ethers";
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../shared/common/src/functions/kyc/zkMeHelper.ts
|
|
6
6
|
async function i(e, t) {
|
|
7
7
|
if (e.origin === "https://widget.zk.me") {
|
|
8
8
|
if (e.data.method === "getUserAccounts") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MAX_MICRO_LAMPORTS_PER_CU as e } from "../../constants/protocol.constants.mjs";
|
|
2
2
|
import { waitLittle as t } from "../utils/time.utils.mjs";
|
|
3
3
|
import { AddressLookupTableProgram as n, ComputeBudgetProgram as r, PublicKey as i, Transaction as a, sendAndConfirmTransaction as o } from "@solana/web3.js";
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../shared/common/src/functions/pre-transaction/addressTableLookup.ts
|
|
5
5
|
var s = async (e, t) => {
|
|
6
6
|
if (!t) return;
|
|
7
7
|
let n = [...new Set(t)];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hashEthereumAddress as e } from "../utils/addresses.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../shared/common/src/functions/pre-transaction/constructAdminData.ts
|
|
3
3
|
var t = (t, n, r, i, a, o) => {
|
|
4
4
|
if (!t) return;
|
|
5
5
|
let s;
|