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 { absBigInt as e } from "../../functions/utils/amounts.utils.mjs";
|
|
2
2
|
import { getTokenLimitStorageAccountPublicKey as t } from "../../functions/pre-transaction/solana.mjs";
|
|
3
3
|
import { PublicKey as n } from "@solana/web3.js";
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.ts
|
|
5
5
|
var r = async (r, i, a, o) => {
|
|
6
6
|
for (let s = 0; s < a.length; s += 1) {
|
|
7
7
|
let c = t(r.programId, i, new n(a[s]));
|
|
@@ -3,7 +3,7 @@ import { createTronWeb as t, evmHexToTronBase58Address as n } from "../../functi
|
|
|
3
3
|
import { createCustomRpcProvider as r } from "../../functions/utils/create-provider.mjs";
|
|
4
4
|
import "../../functions/utils/index.mjs";
|
|
5
5
|
import { ethers as i } from "ethers";
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalCheckTokenRegistry.ts
|
|
7
7
|
var a = async (e, t, n) => await e.checkTokenRegistry(t, n), o = (t) => {
|
|
8
8
|
let n = e[t].contractData, a = r(t);
|
|
9
9
|
if (!n.hinkalHelperAddress || !n.hinkalHelperABI) throw Error("hinkal helpercontract data not found");
|
|
@@ -18,7 +18,7 @@ import { shouldPatchAccessTokenMerkleTree as _ } from "../../functions/pre-trans
|
|
|
18
18
|
import { getSignatureDataForTransact as ee } from "../../functions/pre-transaction/getSignatureDataForTransact.mjs";
|
|
19
19
|
import { constructZkProof as v } from "../../functions/snarkjs/constructGeneralZkProof.mjs";
|
|
20
20
|
import { transactCallRelayer as y } from "../../functions/web3/functionCalls/transactCallRelayer.mjs";
|
|
21
|
-
//#region
|
|
21
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalClaimUtxo.ts
|
|
22
22
|
var b = async (b, x, S, te, ne) => {
|
|
23
23
|
let C = p([x]), w = n(C), T = x.erc20TokenAddress, E = d(await b.getEthereumAddressByChain(C));
|
|
24
24
|
if (!o(T, S.erc20TokenAddress)) throw Error("Off-chain UTXO token mismatch");
|
|
@@ -14,7 +14,7 @@ import { constructAdminData as d } from "../../functions/pre-transaction/constru
|
|
|
14
14
|
import { getKycAndSignatureData as f } from "../../functions/pre-transaction/getKycAndSignatureData.mjs";
|
|
15
15
|
import { constructZkProof as p } from "../../functions/snarkjs/constructGeneralZkProof.mjs";
|
|
16
16
|
import { transactCallDirect as m } from "../../functions/web3/functionCalls/transactCallDirect.mjs";
|
|
17
|
-
//#region
|
|
17
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalDeposit.ts
|
|
18
18
|
var h = async (e, t, n, r) => {
|
|
19
19
|
let i = await e.getEthereumAddressByChain(t), { patchAccessTokenMerkleTree: a, signatureData: o } = await f(e, t, n, r, i);
|
|
20
20
|
return {
|
|
@@ -26,7 +26,7 @@ import { transactCallRelayerBatch as C } from "../../functions/web3/functionCall
|
|
|
26
26
|
import { safeUpdateDepositAndWithdrawStatus as w } from "../../API/deposit-and-withdraw-status-calls.mjs";
|
|
27
27
|
import { hinkalDepositOnChainUtxos as T } from "./hinkalDepositOnChainUtxos.mjs";
|
|
28
28
|
import "../../functions/index.mjs";
|
|
29
|
-
//#region
|
|
29
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalDepositAndBridge.ts
|
|
30
30
|
var E = async (r, s, d, m, _, y, b, T, E, D) => {
|
|
31
31
|
if (m.length === 0) throw Error("No recipients to bridge");
|
|
32
32
|
let O = d.erc20TokenAddress, { contractData: k } = n[s], { emporiumAddress: A } = k;
|
|
@@ -21,7 +21,7 @@ import { transactCallRelayerBatch as y } from "../../functions/web3/functionCall
|
|
|
21
21
|
import { safeUpdateDepositAndWithdrawStatus as b } from "../../API/deposit-and-withdraw-status-calls.mjs";
|
|
22
22
|
import { hinkalDepositOnChainUtxos as x } from "./hinkalDepositOnChainUtxos.mjs";
|
|
23
23
|
import "../../functions/index.mjs";
|
|
24
|
-
//#region
|
|
24
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.ts
|
|
25
25
|
var S = async (t, o, f, h, _, x, S, C, w, T, E) => {
|
|
26
26
|
let D = n(o);
|
|
27
27
|
if (h.length === 0) throw Error("userDepositedUtxos must not be empty");
|
|
@@ -19,7 +19,7 @@ import { transactCallDirect as _ } from "../../functions/web3/functionCalls/tran
|
|
|
19
19
|
import { transactCallDirectTron as v } from "../../functions/web3/functionCalls/transactCallDirectTron.mjs";
|
|
20
20
|
import { safeUpdateDepositAndWithdrawStatus as y, updateDepositAndWithdrawStatus as b } from "../../API/deposit-and-withdraw-status-calls.mjs";
|
|
21
21
|
import { ethers as te } from "ethers";
|
|
22
|
-
//#region
|
|
22
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.ts
|
|
23
23
|
var x = async (e, t, n, r) => {
|
|
24
24
|
let i = [...await u(e, t, n, r)], a = [];
|
|
25
25
|
for (let t = 0; t < i.length; t += 1) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getRecipientInfoFromUserKeys as e } from "../../functions/utils/getRecipientInfoFromUserKeys.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalGetRecipientInfo.ts
|
|
3
3
|
var t = (t) => {
|
|
4
4
|
if (!t) throw Error("No hinkal provided");
|
|
5
5
|
let { userKeys: n } = t;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as e } from "../../API/API.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalGetZkMeProvider.ts
|
|
3
3
|
var t = (t) => ({
|
|
4
4
|
async getAccessToken() {
|
|
5
5
|
return e.getZkMeAccessToken();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { constructStealthAddressStructure as e, isValidPrivateAddress as t } from "../../functions/utils/addresses.mjs";
|
|
2
2
|
import { transactionErrorCodes as n } from "../../error-handling/error-codes.constants.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalMultiSend.ts
|
|
4
4
|
var r = async (r, i, a, o) => {
|
|
5
5
|
let s;
|
|
6
6
|
return o && (s = o.map((r) => {
|
|
@@ -24,7 +24,7 @@ import { transactCallRelayer as b } from "../../functions/web3/functionCalls/tra
|
|
|
24
24
|
import { mergeWithFeeStructure as x } from "../../functions/pre-transaction/merge-with-fee-structure.mjs";
|
|
25
25
|
import { mergeWithFeeStructureEmporium as S } from "../../functions/pre-transaction/merge-with-fee-structure-emporium.mjs";
|
|
26
26
|
import { handleAutoDepositBack as C } from "./handleAutoDepositBack.mjs";
|
|
27
|
-
//#region
|
|
27
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalPrivateWallet.ts
|
|
28
28
|
var w = async (e, t, n, r, i, a, o) => {
|
|
29
29
|
let s = [...await l(e, t, n, r)], f = [], p = c().toString();
|
|
30
30
|
for (let o = 0; o < n.length; o += 1) {
|
|
@@ -17,7 +17,7 @@ import { waitForEthereumTransactionConfirmation as b } from "../../functions/uti
|
|
|
17
17
|
import { simulateTronTransaction as x } from "../../functions/utils/tronSimulation.utils.mjs";
|
|
18
18
|
import { buildApproveAndProoflessDepositCalls as S } from "../../functions/web3/functionCalls/constructBatchCall.mjs";
|
|
19
19
|
import { waitForErc20Approvals as C, waitForTronErc20Approvals as w } from "../../functions/web3/functionCalls/waitForErc20Approvals.mjs";
|
|
20
|
-
//#region
|
|
20
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalProoflessDeposit.ts
|
|
21
21
|
var T = (e, t) => {
|
|
22
22
|
let n = [], r = 0;
|
|
23
23
|
for (let i = 0; i < e.length; i += 1) {
|
|
@@ -7,7 +7,7 @@ import { AccountActions as i } from "../AccountActions/AccountActions.mjs";
|
|
|
7
7
|
import { getFeeStructure as a } from "../../functions/pre-transaction/getFeeStructure.mjs";
|
|
8
8
|
import { convertEmporiumOpToCallInfo as o } from "../../functions/utils/convertEmporiumOpToCallInfo.mjs";
|
|
9
9
|
import { createSwapToEmporiumOps as s } from "../../functions/private-wallet/emporium.swap.helpers.mjs";
|
|
10
|
-
//#region
|
|
10
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalProxySwap.ts
|
|
11
11
|
var c = async (c, l, u, d, f, p, m, h, g, _ = !1, v, y) => {
|
|
12
12
|
if (!h) throw Error("Fee token is required in hinkalProxySwap");
|
|
13
13
|
let b = r(l), x = i.getAddressFromSubAccount(b, m);
|
|
@@ -7,7 +7,7 @@ import { AccountActions as a } from "../AccountActions/AccountActions.mjs";
|
|
|
7
7
|
import { getFeeStructure as o } from "../../functions/pre-transaction/getFeeStructure.mjs";
|
|
8
8
|
import { convertEmporiumOpToCallInfo as s } from "../../functions/utils/convertEmporiumOpToCallInfo.mjs";
|
|
9
9
|
import { createTransaferEmporiumOpsBatch as c } from "../../functions/private-wallet/emporium.helpers.mjs";
|
|
10
|
-
//#region
|
|
10
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalProxyToPrivate.ts
|
|
11
11
|
var l = async (l, u, d, f, p, m, h, g) => {
|
|
12
12
|
if (!h) throw Error("hinkalProxyToPrivate: subAccount should be provided");
|
|
13
13
|
if (!p) throw Error("Fee token is required in hinkalProxyToPrivate");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccountActions as e } from "../AccountActions/AccountActions.mjs";
|
|
2
2
|
import "../AccountActions/index.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalSignSubAccount.ts
|
|
4
4
|
var t = async (t, n, r, i) => {
|
|
5
5
|
let a, o = e.getPrivateKeyFromSubAccount(t, i);
|
|
6
6
|
if (!o) throw Error("Private key is not available");
|
|
@@ -15,7 +15,7 @@ import { getFeeStructure as p } from "../../functions/pre-transaction/getFeeStru
|
|
|
15
15
|
import { constructSolanaZkProof as m } from "../../functions/snarkjs/constructSolanaZkProof.mjs";
|
|
16
16
|
import { solanaTransactCallRelayer as h } from "../../functions/web3/functionCalls/transactCallRelayer.mjs";
|
|
17
17
|
import { ethers as g } from "ethers";
|
|
18
|
-
//#region
|
|
18
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.ts
|
|
19
19
|
var _ = async (_, v, y, b, x) => {
|
|
20
20
|
let S = u([v]), C = v.erc20TokenAddress;
|
|
21
21
|
if (y.getTokenAddress(S) !== C) throw Error("Off-chain UTXO token mismatch");
|
|
@@ -17,7 +17,7 @@ import { constructAdminData as v } from "../../functions/pre-transaction/constru
|
|
|
17
17
|
import { signAndSendSerializedTransaction as y } from "../../functions/web3/signAndSendSerializedTransaction.mjs";
|
|
18
18
|
import { PublicKey as b } from "@solana/web3.js";
|
|
19
19
|
import { BN as x } from "@coral-xyz/anchor";
|
|
20
|
-
//#region
|
|
20
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalSolanaDeposit.ts
|
|
21
21
|
var S = async (t, n, r, a, o) => {
|
|
22
22
|
if (r.length === 0) throw Error("amounts must not be empty");
|
|
23
23
|
if (r.length !== a.length) throw Error("amounts and stealthAddressStructures length mismatch");
|
|
@@ -30,7 +30,7 @@ import "../../functions/index.mjs";
|
|
|
30
30
|
import { ethers as j } from "ethers";
|
|
31
31
|
import { PublicKey as M } from "@solana/web3.js";
|
|
32
32
|
import { BN as N } from "@coral-xyz/anchor";
|
|
33
|
-
//#region
|
|
33
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.ts
|
|
34
34
|
var P = async (e, n, i, o, c, _, v) => {
|
|
35
35
|
let x = i.erc20TokenAddress, C = o.map((e) => e + b(e, _)), { hinkalIdl: w, hinkalAddress: E, originalDeployer: D } = t[n].contractData;
|
|
36
36
|
if (!w) throw Error("No IDL configured for Solana program on this network");
|
|
@@ -4,7 +4,7 @@ import { Utxo as n } from "../utxo/Utxo.mjs";
|
|
|
4
4
|
import { validateAndGetChainId as r } from "../../functions/utils/token-check.utils.mjs";
|
|
5
5
|
import { calcStealthAddressStructure as i } from "../../functions/snarkjs/common.snarkjs.mjs";
|
|
6
6
|
import { submitSolanaProoflessDeposit as a } from "./hinkalSolanaDeposit.mjs";
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.ts
|
|
8
8
|
var o = async (o, s, c, l, u) => {
|
|
9
9
|
if (s.length === 0) throw Error("erc20Tokens must not be empty");
|
|
10
10
|
if (s.length !== c.length) throw Error("erc20Tokens and amountChanges length mismatch");
|
|
@@ -7,7 +7,7 @@ import { AccountActions as a } from "../AccountActions/AccountActions.mjs";
|
|
|
7
7
|
import { sendProxyV0Transaction as o, serializeProxyV0Transaction as s } from "../../functions/pre-transaction/sendV0Transaction.mjs";
|
|
8
8
|
import { buildSolanaTransferInstructions as c } from "../../functions/pre-transaction/solanaTransfer.utils.mjs";
|
|
9
9
|
import { PublicKey as l } from "@solana/web3.js";
|
|
10
|
-
//#region
|
|
10
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalSolanaProxySend.ts
|
|
11
11
|
var u = async (t, i, o, s) => {
|
|
12
12
|
let u = n([t]), d = a.getAddressFromSubAccount(u, o);
|
|
13
13
|
if (!d) throw Error("Public account address is not available");
|
|
@@ -13,7 +13,7 @@ import { sendProxyV0Transaction as m, serializeProxyV0Transaction as h } from ".
|
|
|
13
13
|
import { PublicKey as g } from "@solana/web3.js";
|
|
14
14
|
import { BN as _ } from "@coral-xyz/anchor";
|
|
15
15
|
import { TOKEN_2022_PROGRAM_ID as v, TOKEN_PROGRAM_ID as y } from "@solana/spl-token";
|
|
16
|
-
//#region
|
|
16
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.ts
|
|
17
17
|
var b = async ({ program: e, mintPublicKey: t, mintAddressString: n, tokenAmount: r, anchorStealthStructure: i, senderPublickey: a, originalDeployer: o, storageAccount: s, storageVault: l }) => {
|
|
18
18
|
let u = new _(r.toString()), d = c(e.programId, o, t), f = n === "11111111111111111111111111111111" ? null : t, p = n === "11111111111111111111111111111111" ? null : void 0;
|
|
19
19
|
return e.methods.prooflessDeposit(u, i).accounts({
|
|
@@ -14,7 +14,7 @@ import { getFeeStructure as d } from "../../functions/pre-transaction/getFeeStru
|
|
|
14
14
|
import "../AccountActions/index.mjs";
|
|
15
15
|
import { buildSolanaTransferInstructions as f } from "../../functions/pre-transaction/solanaTransfer.utils.mjs";
|
|
16
16
|
import { PublicKey as p, TransactionInstruction as m } from "@solana/web3.js";
|
|
17
|
-
//#region
|
|
17
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.ts
|
|
18
18
|
var h = async (e, n, r) => {
|
|
19
19
|
let i = c.getAddressFromSubAccount(e, r);
|
|
20
20
|
if (!i) throw Error("Public account address is not available");
|
|
@@ -22,7 +22,7 @@ import { constructSolanaZkProof as b } from "../../functions/snarkjs/constructSo
|
|
|
22
22
|
import { solanaTransactCallRelayer as x } from "../../functions/web3/functionCalls/transactCallRelayer.mjs";
|
|
23
23
|
import { ethers as re } from "ethers";
|
|
24
24
|
import { PublicKey as S } from "@solana/web3.js";
|
|
25
|
-
//#region
|
|
25
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalSolanaSwap.ts
|
|
26
26
|
var ie = async (e, t, n, r) => {
|
|
27
27
|
let i = [...await f(e, t, n, r, 6)], a = s().toString(), o = [];
|
|
28
28
|
for (let t = 0; t < n.length; t += 1) {
|
|
@@ -19,7 +19,7 @@ import "../../functions/pre-transaction/index.mjs";
|
|
|
19
19
|
import { constructSolanaZkProof as _ } from "../../functions/snarkjs/constructSolanaZkProof.mjs";
|
|
20
20
|
import { solanaTransactCallRelayer as v } from "../../functions/web3/functionCalls/transactCallRelayer.mjs";
|
|
21
21
|
import { ethers as y } from "ethers";
|
|
22
|
-
//#region
|
|
22
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalSolanaTransfer.ts
|
|
23
23
|
var b = async (e, t, n, r, i, a) => {
|
|
24
24
|
let o = (await u(e, t, n, r, 6))[0], l = s().toString(), { outputUtxos: f } = d(e.userKeys, o, r[0], l, void 0, !1), [p, m, h] = i.split(",");
|
|
25
25
|
return {
|
|
@@ -20,7 +20,7 @@ import "../../functions/pre-transaction/index.mjs";
|
|
|
20
20
|
import { constructSolanaZkProof as h } from "../../functions/snarkjs/constructSolanaZkProof.mjs";
|
|
21
21
|
import { solanaTransactCallRelayer as g } from "../../functions/web3/functionCalls/transactCallRelayer.mjs";
|
|
22
22
|
import { ethers as _ } from "ethers";
|
|
23
|
-
//#region
|
|
23
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.ts
|
|
24
24
|
var v = async (e, t, n, r) => {
|
|
25
25
|
let a = [...await s(e, t, n, r, 6)][0], o = i().toString(), { outputUtxos: l } = c(e.userKeys, a, r[0], o, void 0, !1);
|
|
26
26
|
return {
|
|
@@ -15,7 +15,7 @@ import { constructZkProof as d } from "../../functions/snarkjs/constructGeneralZ
|
|
|
15
15
|
import { transactCallRelayer as f } from "../../functions/web3/functionCalls/transactCallRelayer.mjs";
|
|
16
16
|
import { getExternalSwapAddress as p } from "../../functions/pre-transaction/getExternalSwapAddress.mjs";
|
|
17
17
|
import { mergeWithFeeStructure as m } from "../../functions/pre-transaction/merge-with-fee-structure.mjs";
|
|
18
|
-
//#region
|
|
18
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalSwap.ts
|
|
19
19
|
var h = async (e, n, i, c) => {
|
|
20
20
|
let l = [...await a(e, n, i, c)], u = [], d = t(c.length, e.userKeys), f = r().toString();
|
|
21
21
|
for (let t = 0; t < i.length; t += 1) {
|
|
@@ -21,7 +21,7 @@ import "../../functions/pre-transaction/index.mjs";
|
|
|
21
21
|
import { constructZkProof as y } from "../../functions/snarkjs/constructGeneralZkProof.mjs";
|
|
22
22
|
import { transactCallRelayer as b } from "../../functions/web3/functionCalls/transactCallRelayer.mjs";
|
|
23
23
|
import { mergeWithFeeStructure as x } from "../../functions/pre-transaction/merge-with-fee-structure.mjs";
|
|
24
|
-
//#region
|
|
24
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalTransfer.ts
|
|
25
25
|
var S = async (e, t, n, r, a, o) => {
|
|
26
26
|
let c = [...await d(e, t, n, r)], l = [], u = i(r.length, e.userKeys), p = s().toString();
|
|
27
27
|
for (let i = 0; i < n.length; i += 1) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../../types/ethereum-network.types.cjs`),t=require(`../../types/external-action.types.cjs`),n=require(`../../constants/chains.constants.cjs`),r=require(`../../constants/protocol.constants.cjs`),i=require(`../../types/hinkal.types.cjs`);require(`../../types/index.cjs`);const a=require(`../../error-handling/error-codes.constants.cjs`),o=require(`../../functions/utils/time.utils.cjs`),s=require(`../../functions/utils/tron.utils.cjs`),c=require(`../../functions/utils/token-check.utils.cjs`),l=require(`../../functions/web3/events/getShieldedBalance.cjs`),u=require(`../../functions/pre-transaction/outputUtxoProcessing.cjs`),d=require(`../../functions/utils/fees.utils.cjs`),f=require(`../../functions/pre-transaction/outputApprovalDataProcessing.cjs`),p=require(`../../functions/pre-transaction/getVolatileTransferAmount.cjs`),m=require(`../../functions/pre-transaction/constructAdminData.cjs`),h=require(`../../functions/pre-transaction/getFeeStructure.cjs`),g=require(`../../functions/pre-transaction/getKycAndSignatureData.cjs`);require(`../../functions/pre-transaction/index.cjs`);const _=require(`../../functions/snarkjs/constructGeneralZkProof.cjs`),v=require(`../../functions/web3/functionCalls/transactCallDirect.cjs`),y=require(`../../functions/web3/functionCalls/transactCallRelayer.cjs`),b=require(`../../functions/pre-transaction/merge-with-fee-structure.cjs`);var x=async(e,t,n,r)=>{
|
|
1
|
+
const e=require(`../../types/ethereum-network.types.cjs`),t=require(`../../types/external-action.types.cjs`),n=require(`../../constants/chains.constants.cjs`),r=require(`../../constants/protocol.constants.cjs`),i=require(`../../types/hinkal.types.cjs`);require(`../../types/index.cjs`);const a=require(`../../error-handling/error-codes.constants.cjs`),o=require(`../../functions/utils/time.utils.cjs`),s=require(`../../functions/utils/tron.utils.cjs`),c=require(`../../functions/utils/token-check.utils.cjs`),l=require(`../../functions/web3/events/getShieldedBalance.cjs`),u=require(`../../functions/pre-transaction/outputUtxoProcessing.cjs`),d=require(`../../functions/utils/fees.utils.cjs`),f=require(`../../functions/pre-transaction/outputApprovalDataProcessing.cjs`),p=require(`../../functions/pre-transaction/getVolatileTransferAmount.cjs`),m=require(`../../functions/pre-transaction/constructAdminData.cjs`),h=require(`../../functions/pre-transaction/getFeeStructure.cjs`),g=require(`../../functions/pre-transaction/getKycAndSignatureData.cjs`);require(`../../functions/pre-transaction/index.cjs`);const _=require(`../../functions/snarkjs/constructGeneralZkProof.cjs`),v=require(`../../functions/web3/functionCalls/transactCallDirect.cjs`),y=require(`../../functions/web3/functionCalls/transactCallRelayer.cjs`),b=require(`../../functions/pre-transaction/merge-with-fee-structure.cjs`);var x=async(e,t,n,r)=>{let a=[...await l.addPaddingToUtxos(e,t,n,r)],s=[],c=i.defaultHinkalLogicArgs(r.length,e.userKeys),d=o.getCurrentTimeInSeconds().toString();for(let i=0;i<n.length;i+=1){let{outputUtxos:n}=u.outputUtxoProcessing(e.userKeys,a[i],r[i],d,void 0,!1);s.push(n);let{useApprovalUtxoData:o}=f.outputApprovalDataProcessing(e,t,a[i],r[i]);o&&(c.useApprovalUtxoData[i]=o,c.doPreTxApproval=!0)}return{inputUtxosArray:a,outputUtxosArray:s,hinkalLogicArgs:c}},S=async(i,o,l,u,f,S,C,w)=>{let T=c.validateAndGetChainId(o),E=n.isTronLike(T),D=s.addressToHexFormat(await i.getEthereumAddressByChain(T)),O=o.map(e=>e.erc20TokenAddress),k=await p.modifyVolatileTokenAmountChanges(T,o,l),A;if(!f){let e=C??await h.getFeeStructure(T,S,O,t.ExternalActionId.Transact),n=d.calculateTotalFee(-k[0],e);A={feeToken:e.feeToken,flatFee:n,variableRate:0n},b.mergeWithFeeStructure(T,O,k,A)}let j=o[0];if(!j)throw Error(`Deposit Action: No Token Found`);let M={externalActionId:0n,externalAddress:s.addressToHexFormat(u),externalActionMetadata:`0x00`},[N,{patchAccessTokenMerkleTree:P,signatureData:F},{inputUtxosArray:I,outputUtxosArray:L,hinkalLogicArgs:R}]=await Promise.all([i.getRandomRelay(T,!0),g.getKycAndSignatureData(i,T,O,k,D),x(i,T,O,k)]);if(!f&&!N)throw Error(a.transactionErrorCodes.RELAYER_NOT_AVAILABLE);let z=`swapperM${k.length.toString()}x${I[0].length}x1`,{zkCallData:B,circomData:V,dimData:H}=await _.constructZkProof(i.merkleTreeHinkalByChain[T],i.merkleTreeAccessTokenByChain[T],I,L,i.userKeys,z,M.externalActionId,M.externalAddress,M.externalActionMetadata,i.generateProofRemotely,f?r.zeroAddress:N,T,void 0,void 0,void 0,P,R,void 0,A,i.getContractWithFetcher(T,e.ContractType.HinkalHelperContract),F,f?D:void 0),U=await s.reorderZkCallData(E,B,H,V);if(f){if(!j)throw Error(`Withdraw Action: No Token Found`);return await v.transactCallDirect(i,T,k[0],j,B,V,H)}return await y.transactCallRelayer(T,B,H,V,void 0,void 0,m.constructAdminData(w,T,O,k,D),U)};exports.hinkalWithdraw=S;
|
|
@@ -21,18 +21,12 @@ import { constructZkProof as v } from "../../functions/snarkjs/constructGeneralZ
|
|
|
21
21
|
import { transactCallDirect as y } from "../../functions/web3/functionCalls/transactCallDirect.mjs";
|
|
22
22
|
import { transactCallRelayer as b } from "../../functions/web3/functionCalls/transactCallRelayer.mjs";
|
|
23
23
|
import { mergeWithFeeStructure as x } from "../../functions/pre-transaction/merge-with-fee-structure.mjs";
|
|
24
|
-
//#region
|
|
24
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalWithdraw.ts
|
|
25
25
|
var S = async (e, t, n, r) => {
|
|
26
|
-
|
|
27
|
-
deltaAmounts: r,
|
|
28
|
-
erc20Addresses: n
|
|
29
|
-
});
|
|
30
|
-
let a = [...await u(e, t, n, r)];
|
|
31
|
-
console.log("hinkalWithdraw 1 inputUtxosArray", a);
|
|
32
|
-
let s = [], c = i(r.length, e.userKeys), l = o().toString();
|
|
26
|
+
let a = [...await u(e, t, n, r)], s = [], c = i(r.length, e.userKeys), l = o().toString();
|
|
33
27
|
for (let i = 0; i < n.length; i += 1) {
|
|
34
28
|
let { outputUtxos: n } = d(e.userKeys, a[i], r[i], l, void 0, !1);
|
|
35
|
-
s.push(n)
|
|
29
|
+
s.push(n);
|
|
36
30
|
let { useApprovalUtxoData: o } = p(e, t, a[i], r[i]);
|
|
37
31
|
o && (c.useApprovalUtxoData[i] = o, c.doPreTxApproval = !0);
|
|
38
32
|
}
|
|
@@ -30,7 +30,7 @@ import { constructSolanaZkProof as O } from "../../functions/snarkjs/constructSo
|
|
|
30
30
|
import { solanaTransactCallRelayer as k, transactCallRelayer as A } from "../../functions/web3/functionCalls/transactCallRelayer.mjs";
|
|
31
31
|
import { mergeWithFeeStructure as j } from "../../functions/pre-transaction/merge-with-fee-structure.mjs";
|
|
32
32
|
import { ethers as M } from "ethers";
|
|
33
|
-
//#region
|
|
33
|
+
//#region ../shared/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.ts
|
|
34
34
|
var N = async (e, t, n, r) => {
|
|
35
35
|
let i = [...await v(e, t, n, r, void 0, void 0, !1, !0)], o = [], s = a(r.length, e.userKeys), c = d().toString();
|
|
36
36
|
for (let a = 0; a < n.length; a += 1) {
|
|
@@ -20,7 +20,7 @@ import { ClientNullifierSnapshotService as _ } from "../snapshot/evm-snapshots/C
|
|
|
20
20
|
import { ClientApprovalsSnapshotService as v } from "../snapshot/evm-snapshots/ClientApprovalsSnapshotService.mjs";
|
|
21
21
|
import "../snapshot/index.mjs";
|
|
22
22
|
import { PublicKey as y } from "@solana/web3.js";
|
|
23
|
-
//#region
|
|
23
|
+
//#region ../shared/common/src/data-structures/Hinkal/resetMerkleTrees.ts
|
|
24
24
|
var b = async (b, x) => {
|
|
25
25
|
let S = x ?? b.getSupportedChains();
|
|
26
26
|
S.forEach((e) => {
|
|
@@ -8,7 +8,7 @@ import "../../error-handling/index.mjs";
|
|
|
8
8
|
import { waitForTransactionConfirmation as a } from "../../functions/utils/tx-confirmation.utils.mjs";
|
|
9
9
|
import "../../functions/index.mjs";
|
|
10
10
|
import { get as o, update as s } from "idb-keyval";
|
|
11
|
-
//#region
|
|
11
|
+
//#region ../shared/common/src/data-structures/IndexedDB/activity-db.ts
|
|
12
12
|
var c = class {
|
|
13
13
|
generateTxId() {
|
|
14
14
|
return `tx_${(/* @__PURE__ */ new Date()).getTime()}_${Math.random().toString(36).substring(2, 15)}`;
|
|
@@ -4,7 +4,7 @@ import { Utxo as r } from "../utxo/Utxo.mjs";
|
|
|
4
4
|
import { WorkerVariant as i } from "../../webworker/worker.registry.mjs";
|
|
5
5
|
import { performTaskWithWorker as a } from "../../webworker/performTaskWithWorker.mjs";
|
|
6
6
|
import { UtxoWorkerActionType as o } from "../../webworker/utxoWorker/utxoWorker.types.mjs";
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../shared/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.ts
|
|
8
8
|
var s = class {
|
|
9
9
|
NUM_WORKERS;
|
|
10
10
|
NUM_WORKERS_BATCH_PROCESS;
|
|
@@ -10,7 +10,7 @@ import { tokenVisibilityStorage as l } from "./token-visibility-db.mjs";
|
|
|
10
10
|
import { getContractWithFetcherByChainId as u } from "../../functions/web3/getContractMetadata.mjs";
|
|
11
11
|
import d from "axios";
|
|
12
12
|
import { get as f, update as p } from "idb-keyval";
|
|
13
|
-
//#region
|
|
13
|
+
//#region ../shared/common/src/data-structures/TokenDBs/ArcPublicTokensDB.ts
|
|
14
14
|
var m = class {
|
|
15
15
|
API_BASE = "https://testnet.arcscan.app/api";
|
|
16
16
|
fetchedTokens = {};
|
|
@@ -5,7 +5,7 @@ import { Logger as r } from "../../error-handling/logger.mjs";
|
|
|
5
5
|
import { getStateKey as i } from "../../functions/utils/string.utils.mjs";
|
|
6
6
|
import { tokenVisibilityStorage as a } from "./token-visibility-db.mjs";
|
|
7
7
|
import { get as o, update as s } from "idb-keyval";
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../shared/common/src/data-structures/TokenDBs/PrivateTokensDB.ts
|
|
9
9
|
var c = class {
|
|
10
10
|
fetchedTokens = {};
|
|
11
11
|
initalFetched = !1;
|
|
@@ -3,7 +3,7 @@ import { getStateKey as n } from "../../functions/utils/string.utils.mjs";
|
|
|
3
3
|
import { alchemyPublicTokensDB as r } from "./AlchemyPublicTokensDB.mjs";
|
|
4
4
|
import { eventsPublicTokensDB as i } from "./EventsPublicTokensDB.mjs";
|
|
5
5
|
import { arcPublicTokensDB as a } from "./ArcPublicTokensDB.mjs";
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../shared/common/src/data-structures/TokenDBs/PublicTokensDB.ts
|
|
7
7
|
var o = class {
|
|
8
8
|
useAlternativeDB = {};
|
|
9
9
|
async getPublicTokens(t, o) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomJSONStringify as e } from "../../functions/utils/serialize.utils.mjs";
|
|
2
2
|
import { BaseCacheDevice as t } from "./BaseCacheDevice.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/cacheDevices/AttachableMemoryCacheDevice.ts
|
|
4
4
|
var n = class extends t {
|
|
5
5
|
isAttached = !1;
|
|
6
6
|
get(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomJSONParse as e } from "../../functions/utils/serialize.utils.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../shared/common/src/data-structures/cacheDevices/BaseCacheDevice.ts
|
|
3
3
|
var t = class {
|
|
4
4
|
inMemoryCache = /* @__PURE__ */ new Map();
|
|
5
5
|
constructor(e) {
|
|
@@ -2,7 +2,7 @@ import { __require as e } from "../../_virtual/_rolldown/runtime.mjs";
|
|
|
2
2
|
import { CustomJSONStringify as t, safeJsonStringify as n } from "../../functions/utils/serialize.utils.mjs";
|
|
3
3
|
import { BaseCacheDevice as r } from "./BaseCacheDevice.mjs";
|
|
4
4
|
import { logError as i } from "../../error-handling/logError.mjs";
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../shared/common/src/data-structures/cacheDevices/FileCacheDevice.ts
|
|
6
6
|
var a = class extends r {
|
|
7
7
|
filePath;
|
|
8
8
|
useFileCache;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomJSONStringify as e } from "../../functions/utils/serialize.utils.mjs";
|
|
2
2
|
import { BaseCacheDevice as t } from "./BaseCacheDevice.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/cacheDevices/LocalStorageCacheDevice.ts
|
|
4
4
|
var n = class extends t {
|
|
5
5
|
localDataStorage;
|
|
6
6
|
constructor(e, t) {
|
|
@@ -4,7 +4,7 @@ import { UserKeys as n } from "./keys.mjs";
|
|
|
4
4
|
import { Utxo as r } from "../utxo/Utxo.mjs";
|
|
5
5
|
import { ethers as i } from "ethers";
|
|
6
6
|
import { PublicKey as a } from "@solana/web3.js";
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../shared/common/src/data-structures/crypto-keys/decodeUTXO.ts
|
|
8
8
|
var o = "solana-on-chain-utxo:", s = 8, c = (e) => {
|
|
9
9
|
if (e.length !== s) throw Error(`Expected ${s} on-chain fields, received ${e.length}`);
|
|
10
10
|
let t = e.map((e, t) => {
|
|
@@ -3,7 +3,7 @@ import { Utxo as t } from "../utxo/Utxo.mjs";
|
|
|
3
3
|
import { ethers as n } from "ethers";
|
|
4
4
|
import { PublicKey as r } from "@solana/web3.js";
|
|
5
5
|
import i from "libsodium-wrappers";
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../shared/common/src/data-structures/crypto-keys/encryptDecryptUtxo.ts
|
|
7
7
|
var a = (e) => e.startsWith("0x") ? e : `0x${e}`, o = (e) => {
|
|
8
8
|
let t = [
|
|
9
9
|
Buffer.from(n.toBeHex(e.amount)),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CIRCOM_P_HALF as e } from "../../constants/protocol.constants.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../shared/common/src/data-structures/crypto-keys/keyUtils.ts
|
|
3
3
|
var t = (t) => {
|
|
4
4
|
if (t < 0n || t >= 21888242871839275222246405745257275088548364400416034343698204186575808495617n) throw RangeError();
|
|
5
5
|
return t > e;
|
|
@@ -7,7 +7,7 @@ import { ethers as a } from "ethers";
|
|
|
7
7
|
import { Keypair as o } from "@solana/web3.js";
|
|
8
8
|
import s from "libsodium-wrappers";
|
|
9
9
|
import c from "bs58";
|
|
10
|
-
//#region
|
|
10
|
+
//#region ../shared/common/src/data-structures/crypto-keys/keys.ts
|
|
11
11
|
var l = new r(), u = new r(), d = {
|
|
12
12
|
privateKey: "",
|
|
13
13
|
publicKey: ""
|
|
@@ -6,7 +6,7 @@ import { MerkleTree as r } from "../../merkle-tree/MerkleTree.mjs";
|
|
|
6
6
|
import "../../merkle-tree/index.mjs";
|
|
7
7
|
import { AbstractSnapshotService as i } from "./AbstractSnapshotService.mjs";
|
|
8
8
|
import { contructMerkleTreeFromSerialized as a } from "../../../functions/utils/merkleTree.utils.mjs";
|
|
9
|
-
//#region
|
|
9
|
+
//#region ../shared/common/src/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.ts
|
|
10
10
|
var o = class extends i {
|
|
11
11
|
constructor(e) {
|
|
12
12
|
super(e, "NewAccessKeyAdded");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { caseInsensitiveEqual as e } from "../../../functions/utils/caseInsensitive.utils.mjs";
|
|
2
2
|
import { toBigInt as t } from "../../../functions/utils/amounts.utils.mjs";
|
|
3
3
|
import { AbstractSnapshotService as n } from "./AbstractSnapshotService.mjs";
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../shared/common/src/data-structures/event-service/evm/AbstractApprovalsSnapshotService.ts
|
|
5
5
|
var r = class extends n {
|
|
6
6
|
constructor(e) {
|
|
7
7
|
super(e, "NewApprovedUtxo");
|
|
@@ -5,7 +5,7 @@ import { MerkleTree as n } from "../../merkle-tree/MerkleTree.mjs";
|
|
|
5
5
|
import "../../merkle-tree/index.mjs";
|
|
6
6
|
import { AbstractSnapshotService as r } from "./AbstractSnapshotService.mjs";
|
|
7
7
|
import { contructMerkleTreeFromSerialized as i } from "../../../functions/utils/merkleTree.utils.mjs";
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../shared/common/src/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.ts
|
|
9
9
|
var a = class extends r {
|
|
10
10
|
constructor(e) {
|
|
11
11
|
super(e, "NewCommitment");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../../../functions/utils/resolve-sync.utils.cjs`);var t=class{blockchainEventEmitter;eventName;constructor(e,t){this.blockchainEventEmitter=e,this.eventName=t,e.addEventProcessorFunction(this.processEventsPage.bind(this))}get latestBlockNumber(){return this.blockchainEventEmitter.latestBlockNumber}get chainId(){return this.blockchainEventEmitter.chainId}intervalClear(){this.blockchainEventEmitter.intervalClear()}async processEventsPage(t){let n=new Set;t.forEach(({eventName:e,transactionHash:t})=>{e===`BlockedUtxosCreated`&&n.add(t)});let r=[];await e.resolveSync(t.map(e=>async()=>{if(e.eventName!==this.eventName)return;let{blockNumber:t,transactionHash:i}=e,a=this.mapEvent(e),o=n.has(i);await this.acceptEvent(a,t,i,o)&&r.push(a)
|
|
1
|
+
const e=require(`../../../functions/utils/resolve-sync.utils.cjs`);var t=class{blockchainEventEmitter;eventName;constructor(e,t){this.blockchainEventEmitter=e,this.eventName=t,e.addEventProcessorFunction(this.processEventsPage.bind(this))}get latestBlockNumber(){return this.blockchainEventEmitter.latestBlockNumber}get chainId(){return this.blockchainEventEmitter.chainId}intervalClear(){this.blockchainEventEmitter.intervalClear()}async processEventsPage(t){let n=new Set;t.forEach(({eventName:e,transactionHash:t})=>{e===`BlockedUtxosCreated`&&n.add(t)});let r=[];await e.resolveSync(t.map(e=>async()=>{if(e.eventName!==this.eventName)return;let{blockNumber:t,transactionHash:i}=e,a=this.mapEvent(e),o=n.has(i);await this.acceptEvent(a,t,i,o)&&r.push(a)}));let i=r.length;return await this.afterEventsAccepted(i),r.length}};exports.AbstractEventService=t;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveSync as e } from "../../../functions/utils/resolve-sync.utils.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../shared/common/src/data-structures/event-service/evm/AbstractEventService.ts
|
|
3
3
|
var t = class {
|
|
4
4
|
blockchainEventEmitter;
|
|
5
5
|
eventName;
|
|
@@ -24,7 +24,7 @@ var t = class {
|
|
|
24
24
|
await e(t.map((e) => async () => {
|
|
25
25
|
if (e.eventName !== this.eventName) return;
|
|
26
26
|
let { blockNumber: t, transactionHash: i } = e, a = this.mapEvent(e), o = n.has(i);
|
|
27
|
-
await this.acceptEvent(a, t, i, o) && r.push(a)
|
|
27
|
+
await this.acceptEvent(a, t, i, o) && r.push(a);
|
|
28
28
|
}));
|
|
29
29
|
let i = r.length;
|
|
30
30
|
return await this.afterEventsAccepted(i), r.length;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractSnapshotService as e } from "./AbstractSnapshotService.mjs";
|
|
2
2
|
import { ethers as t } from "ethers";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/event-service/evm/AbstractNullifierSnapshotService.ts
|
|
4
4
|
var n = class extends e {
|
|
5
5
|
constructor(e) {
|
|
6
6
|
super(e, "Nullified");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { saveDepths as e } from "../../../constants/save-depths.mjs";
|
|
2
2
|
import { AbstractEventService as t } from "./AbstractEventService.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/event-service/evm/AbstractSnapshotService.ts
|
|
4
4
|
var n = class extends t {
|
|
5
5
|
savedLatestBlockNumber = 0;
|
|
6
6
|
constructor(e, t) {
|
|
@@ -4,7 +4,7 @@ import { getSequence as n, resolveSync as r } from "../../../functions/utils/res
|
|
|
4
4
|
import { getProviderFromContract as i } from "../../../functions/utils/getSignerFromContract.mjs";
|
|
5
5
|
import { BlockchainEvent as a } from "../../BlockchainEvent/BlockchainEvent.mjs";
|
|
6
6
|
import { ethers as o } from "ethers";
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../shared/common/src/data-structures/event-service/evm/BlockchainEventEmitter.ts
|
|
8
8
|
var s = class {
|
|
9
9
|
RETRY_MIN_PAGE_SIZE = 100;
|
|
10
10
|
MAX_RETRIES = 20;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BlockchainEventEmitter as e } from "./BlockchainEventEmitter.mjs";
|
|
2
2
|
import { ClientEventHelper as t } from "../helpers/ClientEventHelper.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.ts
|
|
4
4
|
var n = class extends e {
|
|
5
5
|
clientEventHelper;
|
|
6
6
|
constructor(e, n, r, i, a, o, s) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BlockchainEventEmitter as e } from "./BlockchainEventEmitter.mjs";
|
|
2
2
|
import { PollingEventHelper as t } from "../helpers/PollingEventHelper.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../shared/common/src/data-structures/event-service/evm/PollingBlockchainEventEmitter.ts
|
|
4
4
|
var n = class extends e {
|
|
5
5
|
pollingEventHelper = new t();
|
|
6
6
|
clear() {
|