@hinkal/common 0.2.29 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API/API.mjs +1 -1
- package/API/accessCodeCalls.mjs +1 -1
- package/API/admin-calls.mjs +1 -1
- package/API/brotherhoodCalls.mjs +1 -1
- package/API/callLifiAPI.mjs +1 -1
- package/API/callMonitor.mjs +1 -1
- package/API/callOdosAPI.mjs +1 -1
- package/API/callOkxAPI.mjs +1 -1
- package/API/callOneInchAPI.mjs +1 -1
- package/API/callRelayer.mjs +1 -1
- package/API/checkRisk.mjs +1 -1
- package/API/deposit-and-withdraw-status-calls.mjs +1 -1
- package/API/enclaveSignatureCalls.mjs +1 -1
- package/API/enclaveUtxoCalls.mjs +1 -1
- package/API/fetchCommitmentsCache.mjs +1 -1
- package/API/generate-trading-points.mjs +1 -1
- package/API/get-token-data.mjs +1 -1
- package/API/get-token-price-chart-data.mjs +1 -1
- package/API/getCoingeckoPrice.mjs +1 -1
- package/API/getGasEstimates.mjs +1 -1
- package/API/getServerURL.mjs +1 -1
- package/API/getTokenPrice.mjs +1 -1
- package/API/getWebsiteURL.mjs +1 -1
- package/API/kycCalls.mjs +1 -1
- package/API/leaderboardCalls.mjs +1 -1
- package/API/onrampCalls.mjs +1 -1
- package/API/privacy-score-calls.mjs +1 -1
- package/API/privateSendEmailNotificationsCalls.mjs +1 -1
- package/API/privateSendNonceCalls.mjs +1 -1
- package/API/privateSendRecipientInfoCalls.mjs +1 -1
- package/API/proxyAccountsCalls.mjs +1 -1
- package/API/referralsCalls.mjs +1 -1
- package/API/relayCalls.mjs +1 -1
- package/API/resolve-sns.mjs +1 -1
- package/API/rewardsUserCalls.mjs +1 -1
- package/API/scheduled-transactions-calls.mjs +1 -1
- package/API/seedless-calls.mjs +1 -1
- package/API/send-telegram-callback.mjs +1 -1
- package/API/simulate-batch-tx.mjs +1 -1
- package/API/simulate-transaction.mjs +1 -1
- package/API/snapshot-event-calls.mjs +1 -1
- package/API/solana-calls.mjs +1 -1
- package/API/temporaryWalletCalls.mjs +1 -1
- package/API/tenderly.api.mjs +1 -1
- package/API/token-calls.mjs +1 -1
- package/API/tronSubsidyCalls.mjs +1 -1
- package/API/weeklyAnalyticCalls.mjs +1 -1
- package/constants/activity.constants.mjs +1 -1
- package/constants/addresses.constants.mjs +1 -1
- package/constants/assets.constants.mjs +1 -1
- package/constants/backend.constants.mjs +1 -1
- package/constants/balance.constants.mjs +1 -1
- package/constants/bridging.constants.mjs +1 -1
- package/constants/chains.constants.mjs +1 -1
- package/constants/coingecko.constants.mjs +1 -1
- package/constants/contracts.constants.mjs +1 -1
- package/constants/conversion.constants.mjs +1 -1
- package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +0 -2068
- package/constants/deploy-data/deploy-data-arcTestnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-arcTestnet.json.mjs +0 -2246
- package/constants/deploy-data/deploy-data-base.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-base.json.mjs +0 -2068
- package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +0 -2265
- package/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-localhost.json.mjs +1 -2266
- package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-optimism.json.mjs +0 -2068
- package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-polygon.json.mjs +0 -2068
- package/constants/events.constants.mjs +1 -1
- package/constants/fees.constants.mjs +1 -1
- package/constants/function-signatures.constants.mjs +1 -1
- package/constants/images.constants.mjs +1 -1
- package/constants/kyc.constants.mjs +1 -1
- package/constants/lifi.constants.mjs +1 -1
- package/constants/link.constant.mjs +1 -1
- package/constants/mediaUrls.constants.mjs +1 -1
- package/constants/non-circular-tokens.constants.mjs +1 -1
- package/constants/oauthUrls.constants.mjs +1 -1
- package/constants/okx.constants.mjs +1 -1
- package/constants/pay.constants.mjs +1 -1
- package/constants/permit2.constants.mjs +1 -1
- package/constants/presale.constants.mjs +1 -1
- package/constants/protocol.constants.mjs +1 -1
- package/constants/reorg-depths.constants.mjs +1 -1
- package/constants/rewards.constants.mjs +1 -1
- package/constants/save-depths.mjs +1 -1
- package/constants/schedule.constants.mjs +1 -1
- package/constants/server.constants.mjs +1 -1
- package/constants/tasks.constants.mjs +1 -1
- package/constants/token-data/ERC20Registry.mjs +1 -1
- package/constants/token-data/index.mjs +1 -1
- package/constants/token.limits.constants.mjs +1 -1
- package/constants/tokens.constants.mjs +1 -1
- package/constants/tx-confirmation.constants.mjs +1 -1
- package/constants/vite.constants.mjs +1 -1
- package/constants/wallet.constants.mjs +1 -1
- package/crypto/preProcessing.mjs +1 -1
- package/data-structures/AccountActions/AccountActions.mjs +1 -1
- package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.mjs +1 -1
- package/data-structures/BlockchainEvent/BlockchainEvent.mjs +1 -1
- package/data-structures/Hinkal/Hinkal.mjs +1 -1
- package/data-structures/Hinkal/handleAutoDepositBack.mjs +1 -1
- package/data-structures/Hinkal/hinkalActionReceive.mjs +1 -1
- package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.mjs +1 -1
- package/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +1 -1
- package/data-structures/Hinkal/hinkalClaimUtxo.mjs +1 -1
- package/data-structures/Hinkal/hinkalDeposit.mjs +1 -1
- package/data-structures/Hinkal/hinkalDepositAndBridge.mjs +1 -1
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +1 -1
- package/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +1 -1
- package/data-structures/Hinkal/hinkalGetRecipientInfo.mjs +1 -1
- package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +1 -1
- package/data-structures/Hinkal/hinkalMultiSend.mjs +1 -1
- package/data-structures/Hinkal/hinkalPrivateWallet.mjs +1 -1
- package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +1 -1
- package/data-structures/Hinkal/hinkalProxySwap.mjs +1 -1
- package/data-structures/Hinkal/hinkalProxyToPrivate.mjs +1 -1
- package/data-structures/Hinkal/hinkalSignSubAccount.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaClaimUtxo.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaDeposit.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProoflessDeposit.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySend.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaSwap.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaTransfer.mjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +1 -1
- package/data-structures/Hinkal/hinkalSwap.mjs +1 -1
- package/data-structures/Hinkal/hinkalTransfer.mjs +1 -1
- package/data-structures/Hinkal/hinkalWithdraw.mjs +1 -1
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +2 -1
- package/data-structures/Hinkal/resetMerkleTrees.mjs +1 -1
- package/data-structures/IndexedDB/activity-db.mjs +1 -1
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +1 -1
- package/data-structures/TokenDBs/ArcPublicTokensDB.mjs +1 -1
- package/data-structures/TokenDBs/PrivateTokensDB.mjs +1 -1
- package/data-structures/TokenDBs/PublicTokensDB.mjs +1 -1
- package/data-structures/ValueCache/ValueCache.mjs +1 -1
- package/data-structures/cacheDevices/AttachableMemoryCacheDevice.mjs +1 -1
- package/data-structures/cacheDevices/BaseCacheDevice.mjs +1 -1
- package/data-structures/cacheDevices/FileCacheDevice.mjs +1 -1
- package/data-structures/cacheDevices/LocalStorageCacheDevice.mjs +1 -1
- package/data-structures/crypto-keys/decodeUTXO.mjs +1 -1
- package/data-structures/crypto-keys/encryptDecryptUtxo.mjs +1 -1
- package/data-structures/crypto-keys/keyUtils.mjs +1 -1
- package/data-structures/crypto-keys/keys.mjs +1 -1
- package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.mjs +1 -1
- package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.mjs +1 -1
- package/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.mjs +1 -1
- package/data-structures/event-service/evm/AbstractEventService.mjs +1 -1
- package/data-structures/event-service/evm/AbstractNullifierSnapshotService.mjs +1 -1
- package/data-structures/event-service/evm/AbstractSnapshotService.mjs +1 -1
- package/data-structures/event-service/evm/BlockchainEventEmitter.mjs +1 -1
- package/data-structures/event-service/evm/ClientBlockchainEventEmitter.mjs +1 -1
- package/data-structures/event-service/evm/PollingBlockchainEventEmitter.mjs +1 -1
- package/data-structures/event-service/helpers/ClientEventHelper.mjs +1 -1
- package/data-structures/event-service/helpers/PollingEventHelper.mjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaEventService.mjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.mjs +1 -1
- package/data-structures/event-service/solana/AbstractSolanaSnapshotService.mjs +1 -1
- package/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.mjs +1 -1
- package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.mjs +1 -1
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.mjs +1 -1
- package/data-structures/http/BasicHttpClient.mjs +1 -1
- package/data-structures/http/HttpClient.mjs +1 -1
- package/data-structures/merkle-tree/MerkleTree.mjs +1 -1
- package/data-structures/merkle-tree/MerkleTreeIncompleteError.mjs +1 -1
- package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs +1 -1
- package/data-structures/presale/PresaleContractWrapper.mjs +1 -1
- package/data-structures/snapshot/SnapshotFetcherService.mjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.mjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.mjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.mjs +1 -1
- package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.mjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs +1 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.mjs +1 -1
- package/data-structures/token-price-fetcher/TokenChecker.mjs +1 -1
- package/data-structures/transactions-manager/history/history.types.mjs +1 -1
- package/data-structures/utxo/Utxo.mjs +1 -1
- package/error-handling/customErrors/ErrorWithAmount.mjs +1 -1
- package/error-handling/customErrors/ErrorWithIndex.mjs +1 -1
- package/error-handling/customErrors/ErrorWithTx.mjs +1 -1
- package/error-handling/customErrors/FeeOverTransactionValueError.mjs +1 -1
- package/error-handling/customErrors/SimulationFailureError.mjs +1 -1
- package/error-handling/customErrors/customErrors.helpers.mjs +1 -1
- package/error-handling/error-codes.constants.mjs +1 -1
- package/error-handling/get-error.message.mjs +1 -1
- package/error-handling/isInsufficientFundsError.mjs +1 -1
- package/error-handling/logError.mjs +1 -1
- package/error-handling/logger.mjs +1 -1
- package/error-handling/types.mjs +1 -1
- package/externalABIs/BUSD.mjs +1 -1
- package/externalABIs/DAI.mjs +1 -1
- package/externalABIs/NodeInterfaceABI.json.mjs +1 -1
- package/externalABIs/OptimismGasPriceOracle.json.mjs +1 -1
- package/externalABIs/SanctionsList.mjs +1 -1
- package/externalABIs/USDC.mjs +1 -1
- package/externalABIs/USDR.mjs +1 -1
- package/externalABIs/USDR3CRV.mjs +1 -1
- package/externalABIs/USDT.mjs +1 -1
- package/externalABIs/WETH.mjs +1 -1
- package/externalABIs/amToken.mjs +1 -1
- package/externalABIs/index.mjs +1 -1
- package/externalABIs/swapAbi.mjs +1 -1
- package/functions/auto-deposit-back-helpers/get-gas-token-records.mjs +1 -1
- package/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.mjs +1 -1
- package/functions/auto-deposit-back-helpers/select-gas-token.mjs +1 -1
- package/functions/auto-deposit-back-helpers/update-hinkal.mjs +1 -1
- package/functions/kyc/checkTokenLimitsUSD.mjs +1 -1
- package/functions/kyc/openDefaultPassportWindow.mjs +1 -1
- package/functions/kyc/passportHelper.mjs +1 -1
- package/functions/kyc/zkMeHelper.mjs +1 -1
- package/functions/pre-transaction/addressTableLookup.mjs +1 -1
- package/functions/pre-transaction/constructAdminData.mjs +1 -1
- package/functions/pre-transaction/convert-okx-instructions.mjs +1 -1
- package/functions/pre-transaction/ensureAmountChanges.mjs +1 -1
- package/functions/pre-transaction/getExternalSwapAddress.mjs +1 -1
- package/functions/pre-transaction/getFeeStructure.mjs +1 -1
- package/functions/pre-transaction/getFlatFees.mjs +1 -1
- package/functions/pre-transaction/getKycAndSignatureData.mjs +1 -1
- package/functions/pre-transaction/getSignatureDataForTransact.mjs +1 -1
- package/functions/pre-transaction/getSolanaCalldataHash.mjs +1 -1
- package/functions/pre-transaction/getVolatileTransferAmount.mjs +1 -1
- package/functions/pre-transaction/initTokenLimitIfNeeded.mjs +1 -1
- package/functions/pre-transaction/interaction-to-action.mjs +1 -1
- package/functions/pre-transaction/merge-with-fee-structure-emporium.mjs +1 -1
- package/functions/pre-transaction/merge-with-fee-structure.mjs +1 -1
- package/functions/pre-transaction/outputApprovalDataProcessing.mjs +1 -1
- package/functions/pre-transaction/outputUtxoProcessing.mjs +1 -1
- package/functions/pre-transaction/process-gas-estimates.mjs +1 -1
- package/functions/pre-transaction/recipientUtxoProcessing.mjs +1 -1
- package/functions/pre-transaction/sendInitNullifiersTransaction.mjs +1 -1
- package/functions/pre-transaction/sendV0Transaction.mjs +1 -1
- package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.mjs +1 -1
- package/functions/pre-transaction/solana-public-signals.mjs +1 -1
- package/functions/pre-transaction/solana.mjs +1 -1
- package/functions/pre-transaction/solanaTransfer.utils.mjs +1 -1
- package/functions/pre-transaction/store-instructions.mjs +1 -1
- package/functions/pre-transaction/store-proof.mjs +1 -1
- package/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.mjs +1 -1
- package/functions/private-wallet/emporium.helpers.d.ts +1 -1
- package/functions/private-wallet/emporium.helpers.mjs +1 -1
- package/functions/private-wallet/emporium.swap.helpers.mjs +1 -1
- package/functions/private-wallet/opProducer.mjs +1 -1
- package/functions/snarkjs/common.snarkjs.mjs +1 -1
- package/functions/snarkjs/constant.mjs +1 -1
- package/functions/snarkjs/constructEmporiumProof.mjs +1 -1
- package/functions/snarkjs/constructGeneralZkProof.mjs +1 -1
- package/functions/snarkjs/constructSolanaZkProof.mjs +1 -1
- package/functions/snarkjs/fetchMerkleTreeSiblings.mjs +1 -1
- package/functions/snarkjs/fetchOnChainRootHashes.mjs +1 -1
- package/functions/snarkjs/generateCircomData.mjs +1 -1
- package/functions/snarkjs/generateZkProof.mjs +1 -1
- package/functions/snarkjs/generateZkProofEnclave.mjs +1 -1
- package/functions/snarkjs/generateZkProofSelf.mjs +1 -1
- package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +1 -1
- package/functions/snarkjs/getOriginalSender.mjs +1 -1
- package/functions/snarkjs/getZKFiles.mjs +1 -1
- package/functions/utils/addresses.mjs +1 -1
- package/functions/utils/amounts.utils.mjs +1 -1
- package/functions/utils/arraysMatch.mjs +1 -1
- package/functions/utils/buildClaimableDepositPlan.mjs +1 -1
- package/functions/utils/bytes32.utils.mjs +1 -1
- package/functions/utils/cacheDevice.utils.mjs +1 -1
- package/functions/utils/cacheFunctions.mjs +1 -1
- package/functions/utils/caseInsensitive.utils.mjs +1 -1
- package/functions/utils/convertEmporiumOpToCallInfo.mjs +1 -1
- package/functions/utils/convertIntegrationProviderToExternalActionId.mjs +1 -1
- package/functions/utils/create-provider.cjs +1 -1
- package/functions/utils/create-provider.d.ts +1 -1
- package/functions/utils/create-provider.mjs +5 -7
- package/functions/utils/enclave-signature-storage.mjs +1 -1
- package/functions/utils/enclave-utxo-storage.mjs +1 -1
- package/functions/utils/encodeTokenWithId.mjs +1 -1
- package/functions/utils/encryptInputForEnclave.mjs +1 -1
- package/functions/utils/erc20tokenFunctions.mjs +1 -1
- package/functions/utils/evmNetworkFunctions.mjs +1 -1
- package/functions/utils/external-action.utils.mjs +1 -1
- package/functions/utils/fees.utils.mjs +1 -1
- package/functions/utils/get-signature-header.mjs +1 -1
- package/functions/utils/getBlockExplorerUrl.mjs +1 -1
- package/functions/utils/getContractAddress.mjs +1 -1
- package/functions/utils/getDataFromTransaction.mjs +1 -1
- package/functions/utils/getRecipientInfoFromUserKeys.mjs +1 -1
- package/functions/utils/getSignerFromContract.mjs +1 -1
- package/functions/utils/getUtxosFromReceipt.utils.mjs +1 -1
- package/functions/utils/getUtxosFromReceiptSolana.mjs +1 -1
- package/functions/utils/getWalletGroupKey.utils.mjs +1 -1
- package/functions/utils/inLogicMetadata.mjs +1 -1
- package/functions/utils/involves-permit2-op.mjs +1 -1
- package/functions/utils/ipfs.mjs +1 -1
- package/functions/utils/is-valid-url.mjs +1 -1
- package/functions/utils/merkleTree.utils.mjs +1 -1
- package/functions/utils/mutexes.utils.mjs +1 -1
- package/functions/utils/networks.utils.mjs +1 -1
- package/functions/utils/nftTokenFunctions.mjs +1 -1
- package/functions/utils/nickname.utils.mjs +1 -1
- package/functions/utils/postToOffscreen.mjs +1 -1
- package/functions/utils/prepareHinkal.mjs +1 -1
- package/functions/utils/process.utils.mjs +1 -1
- package/functions/utils/processUseApprovalUtxoData.mjs +1 -1
- package/functions/utils/proxyAvatar.utils.mjs +1 -1
- package/functions/utils/publicBalance.utils.mjs +1 -1
- package/functions/utils/reloadPage.mjs +1 -1
- package/functions/utils/requireEnv.mjs +1 -1
- package/functions/utils/resolve-sync.utils.mjs +1 -1
- package/functions/utils/rpc-int-encode.mjs +1 -1
- package/functions/utils/serialize-utxos.utils.mjs +1 -1
- package/functions/utils/serialize.utils.mjs +1 -1
- package/functions/utils/solanaMint.utils.mjs +1 -1
- package/functions/utils/string.utils.mjs +1 -1
- package/functions/utils/time.utils.mjs +1 -1
- package/functions/utils/token-check.utils.mjs +1 -1
- package/functions/utils/trimFieldValues.mjs +1 -1
- package/functions/utils/tron.utils.mjs +1 -1
- package/functions/utils/tronSimulation.utils.mjs +1 -1
- package/functions/utils/tx-confirmation.utils.d.ts +1 -1
- package/functions/utils/tx-confirmation.utils.mjs +1 -1
- package/functions/utils/upToDateState.mjs +1 -1
- package/functions/utils/userAgent.mjs +1 -1
- package/functions/utils/validateUsername.mjs +1 -1
- package/functions/utils/walletBalances.utils.mjs +1 -1
- package/functions/web3/EIP-712.mjs +1 -1
- package/functions/web3/connectors.utils.mjs +1 -1
- package/functions/web3/crypto.mjs +1 -1
- package/functions/web3/etherFunctions.mjs +1 -1
- package/functions/web3/events/balanceChangedCustomHandler.mjs +1 -1
- package/functions/web3/events/balanceChangedHandler.mjs +1 -1
- package/functions/web3/events/getApprovedBalance.mjs +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.d.ts +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.mjs +16 -14
- package/functions/web3/events/getInputUtxosEnclave.mjs +1 -1
- package/functions/web3/events/getShieldedBalance.cjs +1 -1
- package/functions/web3/events/getShieldedBalance.mjs +2 -2
- package/functions/web3/events/getTransactionLogEvents.d.ts +5 -8
- package/functions/web3/events/getTransactionLogEvents.mjs +1 -1
- package/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +1 -1
- package/functions/web3/functionCalls/accessTokenCalls.mjs +1 -1
- package/functions/web3/functionCalls/approveToken.mjs +1 -1
- package/functions/web3/functionCalls/approveTokensToHinkal.mjs +1 -1
- package/functions/web3/functionCalls/constructBatchCall.mjs +1 -1
- package/functions/web3/functionCalls/recoverTransactionFromError.mjs +1 -1
- package/functions/web3/functionCalls/transactCallDirect.mjs +1 -1
- package/functions/web3/functionCalls/transactCallDirectTron.mjs +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.mjs +1 -1
- package/functions/web3/functionCalls/waitForErc20Approvals.mjs +1 -1
- package/functions/web3/getContractMetadata.mjs +1 -1
- package/functions/web3/getPublicAddressBalance.mjs +1 -1
- package/functions/web3/getSolanaPriorityFee.mjs +1 -1
- package/functions/web3/getTokenHolder.mjs +1 -1
- package/functions/web3/lifiAPI.mjs +1 -1
- package/functions/web3/odosAPI.mjs +1 -1
- package/functions/web3/okxAPI.mjs +1 -1
- package/functions/web3/oneInchAPI.mjs +1 -1
- package/functions/web3/runContractFunction.mjs +1 -1
- package/functions/web3/signAndSendSerializedTransaction.mjs +1 -1
- package/functions/web3/tron-wagmi-adapter.mjs +1 -1
- package/functions/web3/uniswapAPI.mjs +1 -1
- package/mutexes/mutex.mjs +1 -1
- package/package.json +1 -1
- package/providers/CustomSolanaConnection.mjs +1 -1
- package/providers/EthersProviderAdapter.mjs +1 -1
- package/providers/SolanaProviderAdapter.mjs +1 -1
- package/providers/TronProviderAdapter.mjs +1 -1
- package/providers/WagmiProviderAdapter.mjs +1 -1
- package/providers/prepareEthersHinkal.mjs +1 -1
- package/providers/prepareSolanaHinkal.mjs +1 -1
- package/providers/prepareTronHinkal.mjs +1 -1
- package/providers/prepareWagmiHinkal.mjs +1 -1
- package/types/RewardUserEnums.mjs +1 -1
- package/types/activities.types.mjs +1 -1
- package/types/admin.types.mjs +1 -1
- package/types/approvals.types.mjs +1 -1
- package/types/balances.types.mjs +1 -1
- package/types/cache.types.mjs +1 -1
- package/types/circom-data.types.mjs +1 -1
- package/types/confirmation-request.types.mjs +1 -1
- package/types/eip5792.types.mjs +1 -1
- package/types/ethereum-network.types.mjs +1 -1
- package/types/events.types.mjs +1 -1
- package/types/external-action.types.mjs +1 -1
- package/types/fee.types.mjs +1 -1
- package/types/generatePoints.mjs +1 -1
- package/types/hinkal.types.mjs +1 -1
- package/types/kyc.types.mjs +1 -1
- package/types/new-rewards.type.mjs +1 -1
- package/types/offscreen.types.mjs +1 -1
- package/types/onramp.types.mjs +1 -1
- package/types/pay-activities.types.mjs +1 -1
- package/types/rewards.types.mjs +1 -1
- package/types/schedule.types.mjs +1 -1
- package/types/scheduled-transactions.types.mjs +1 -1
- package/types/slippage.types.mjs +1 -1
- package/types/token-prices.types.mjs +1 -1
- package/types/token.types.mjs +1 -1
- package/types/transaction.types.mjs +1 -1
- package/webworker/performTaskWithWorker.mjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorker.types.mjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.mjs +2 -2
- package/webworker/snarkjsWorker/snarkjsWorkerLogic.mjs +1 -1
- package/webworker/utxoWorker/utxoWorker.types.mjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +2 -2
- package/webworker/utxoWorker/utxoWorkerLogic.mjs +1 -1
- package/webworker/worker.registry.mjs +1 -1
- package/webworker/workerFactory.mjs +1 -1
- package/webworker/workerProxy.mjs +1 -1
- package/webworker/zkProofWorker/zkProofWorker.types.mjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +2 -2
- package/webworker/zkProofWorker/zkProofWorkerLogic.mjs +1 -1
- package/providers/CustomEthersProvider.cjs +0 -1
- package/providers/CustomEthersProvider.mjs +0 -28
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isTronLike as e } from "./chains.constants.mjs";
|
|
2
2
|
import { zeroAddress as t } from "./protocol.constants.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region libs/shared/common/src/constants/fees.constants.ts
|
|
4
4
|
var n = t, r = [
|
|
5
5
|
"USDC",
|
|
6
6
|
"USDT",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region libs/shared/common/src/constants/function-signatures.constants.ts
|
|
2
2
|
var e = "function approve(address spender, uint256 amount) external returns (bool)", t = "function approve(address token, address spender, uint160 amount, uint48 expiration)", n = "function setApprovalForAll(address operator, bool _approved) public", r = "function approve(address to, uint256 tokenId) public";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as APPROVE_FUNCTION_SIGNATURE, n as NFT_APPROVE_FUNCTION_SIGNATURE, r as NFT_APPROVE_SINGLE_FUNCTION_SIGNATURE, t as PERMIT2_APPROVE_FUNCTION_SIGNATURE };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { chainIds as e } from "./chains.constants.mjs";
|
|
2
2
|
import { Passports as t } from "../types/kyc.types.mjs";
|
|
3
3
|
import { zkMeKycHandler as n } from "../functions/kyc/zkMeHelper.mjs";
|
|
4
|
-
//#region
|
|
4
|
+
//#region libs/shared/common/src/constants/kyc.constants.ts
|
|
5
5
|
var r = "https://onboard.aiprise.com", i = "https://onboard-sandbox.aiprise.com", a = {
|
|
6
6
|
[t.AiPriseKyc]: {
|
|
7
7
|
id: t.AiPriseKyc,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region libs/shared/common/src/constants/permit2.constants.ts
|
|
2
2
|
var e = "0x000000000022D473030F116dDEE9F6B43aC78BA3", t = "0x4A7b5Da61326A6379179b40d00F57E5bbDC962c2", n = "0xc36442b4a4522e871399cd717abdd847ab11fe88", r = "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768", i = "0x0000000000001fF3684f28c67538d4D072C22734", a = [
|
|
3
3
|
e,
|
|
4
4
|
r,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { chainIds as e } from "./chains.constants.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region libs/shared/common/src/constants/presale.constants.ts
|
|
3
3
|
var t = {
|
|
4
4
|
[e.ethMainnet]: {
|
|
5
5
|
address: "0xd5A7C59B14F0b8B4d0e88710961B6A2F07853Aec",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region libs/shared/common/src/constants/protocol.constants.ts
|
|
2
2
|
var e = `0x${"00".repeat(20)}`, t = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", n = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", r = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", i = "11111111111111111111111111111111", a = "So11111111111111111111111111111111111111112", o = "0xECa9bC828A3005B9a3b909f2cc5c2a54794DE05F", s = "0xa614f803B6FD780986A42c78Ec9c7f77e6DeD13C", c = 1e9, l = "Hinkal Stake KeyPair Generator", u = "0xa33e4e1672ffdc9a08d0d8b50c79a7dee400bb5493d054076ff01733d7646b32", d = "0x0a0e05B6375a61D345173d90Cf7c8bd81E76445c", f = "0xB8D5E90d8Baf0650e5b9D6bb988c6dd206F4BaaD", p = "0xE6bDF21Ecd55358aF595D3f5Eea912A8e82ECA5e", m = [
|
|
3
3
|
d,
|
|
4
4
|
f,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region libs/shared/common/src/constants/rewards.constants.ts
|
|
2
2
|
var e = ["USDC"], t = "https://hinkal-team.gitbook.io/hinkal/users/rebates/referral-program", n = "https://hinkal-team.gitbook.io/hinkal/users/rewards/points", r = "https://hinkal-team.gitbook.io/hinkal/users/rebates/lp-program", i = 3, a = 9, o = {
|
|
3
3
|
10: 2,
|
|
4
4
|
50: 1.6,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScheduleDelayOption as e } from "../types/schedule.types.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region libs/shared/common/src/constants/schedule.constants.ts
|
|
3
3
|
var t = {
|
|
4
4
|
[e.FIFTEEN_MINUTES]: 900,
|
|
5
5
|
[e.THIRTY_MINUTES]: 1800,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TaskTypes as e } from "../types/new-rewards.type.mjs";
|
|
2
2
|
import "../types/index.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region libs/shared/common/src/constants/server.constants.ts
|
|
4
4
|
var t = { ROUTES: {
|
|
5
5
|
checkKycStatus: "/check-kyc-status",
|
|
6
6
|
getUserSignature: "/signature-request",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AchievementTiers as e, TaskCategory as t, TaskTypes as n } from "../types/new-rewards.type.mjs";
|
|
2
2
|
import "../types/index.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region libs/shared/common/src/constants/tasks.constants.ts
|
|
4
4
|
var r = [
|
|
5
5
|
{
|
|
6
6
|
name: n.discord,
|
|
@@ -15,7 +15,7 @@ import p from "./solanaMainnetRegistry.json.mjs";
|
|
|
15
15
|
import m from "./solanaLocalnetRegistry.json.mjs";
|
|
16
16
|
import h from "./tronNileRegistry.json.mjs";
|
|
17
17
|
import g from "./tronMainnetRegistry.json.mjs";
|
|
18
|
-
//#region
|
|
18
|
+
//#region libs/shared/common/src/constants/token-data/ERC20Registry.ts
|
|
19
19
|
var _ = (n) => {
|
|
20
20
|
let r = f.networkRegistry.slice(0, 10);
|
|
21
21
|
switch (n) {
|
|
@@ -13,7 +13,7 @@ import d from "./localhostRegistry.json.mjs";
|
|
|
13
13
|
import f from "./solanaMainnetRegistry.json.mjs";
|
|
14
14
|
import p from "./solanaLocalnetRegistry.json.mjs";
|
|
15
15
|
import "./ERC20Registry.mjs";
|
|
16
|
-
//#region
|
|
16
|
+
//#region libs/shared/common/src/constants/token-data/index.ts
|
|
17
17
|
var m = t.networkRegistry, h = n.networkRegistry, g = r.networkRegistry, _ = i.networkRegistry, v = a.networkRegistry, y = o.networkRegistry, b = s.networkRegistry, x = c.networkRegistry, S = l.networkRegistry, C = u.networkRegistry, w = d.networkRegistry, T = e.networkRegistry, E = f.networkRegistry, D = p.networkRegistry;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { b as arbMainnetRegistry, h as arbMainnetRegistryFixed, T as arcTestnetRegistry, C as baseRegistry, v as baseRegistryFixed, y as ethMainnetRegistry, m as ethMainnetRegistryFixed, w as localhostRegistry, S as optimismRegistry, _ as optimismRegistryFixed, x as polygonRegistry, g as polygonRegistryFixed, D as solanaLocalnetRegistry, E as solanaMainnetRegistry };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { chainIds as e } from "./chains.constants.mjs";
|
|
2
2
|
import { getAmountInWei as t } from "../functions/web3/etherFunctions.mjs";
|
|
3
3
|
import { getERC20TokenBySymbol as n } from "../functions/utils/erc20tokenFunctions.mjs";
|
|
4
|
-
//#region
|
|
4
|
+
//#region libs/shared/common/src/constants/token.limits.constants.ts
|
|
5
5
|
var r = { [e.optimism]: {
|
|
6
6
|
ETH: "0.5",
|
|
7
7
|
WETH: "0.5",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region libs/shared/common/src/constants/tx-confirmation.constants.ts
|
|
2
2
|
var e = 30 * 1e3, t = 50 * 1e3, n = 120 * 1e3, r = 1;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { t as RELAYER_TX_CONFIRMATION_TIMEOUT, r as TX_CONFIRMATION_CONFIRMATIONS_COUNT, e as TX_CONFIRMATION_TIMEOUT, n as TX_CONFIRMATION_TIMEOUT_EXTENDED };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region libs/shared/common/src/constants/vite.constants.ts
|
|
2
2
|
var e = /* @__PURE__ */ function(e) {
|
|
3
3
|
return e.DEVELOPMENT = "development", e.PLAYGROUND = "playground", e.PRODUCTION = "production", e.STAGING = "staging", e;
|
|
4
4
|
}({});
|
package/crypto/preProcessing.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { jubHolder as t } from "./babyJub.mjs";
|
|
|
3
3
|
import n from "libsodium-wrappers";
|
|
4
4
|
import r from "process";
|
|
5
5
|
import { Buffer as i } from "buffer";
|
|
6
|
-
//#region
|
|
6
|
+
//#region libs/shared/common/src/crypto/preProcessing.ts
|
|
7
7
|
var a = async () => {
|
|
8
8
|
(typeof window < "u" || typeof self < "u") && (typeof window < "u" && (window.global = window), globalThis.Buffer = i, globalThis.process = r), await Promise.all([
|
|
9
9
|
n.ready,
|
|
@@ -3,7 +3,7 @@ import { ethers as n } from "ethers";
|
|
|
3
3
|
import { Keypair as r } from "@solana/web3.js";
|
|
4
4
|
import i from "bs58";
|
|
5
5
|
import a from "tweetnacl";
|
|
6
|
-
//#region
|
|
6
|
+
//#region libs/shared/common/src/data-structures/AccountActions/AccountActions.ts
|
|
7
7
|
var o = class {
|
|
8
8
|
static getEvmPrivateKeyFromSolanaPrivateKey = (e) => {
|
|
9
9
|
let t = i.decode(e).slice(0, 32);
|
|
@@ -13,7 +13,7 @@ import { createCustomRpcProvider as f } from "../../functions/utils/create-provi
|
|
|
13
13
|
import { Mutex as p } from "async-mutex";
|
|
14
14
|
import { ethers as m } from "ethers";
|
|
15
15
|
import { get as h, update as g } from "idb-keyval";
|
|
16
|
-
//#region
|
|
16
|
+
//#region libs/shared/common/src/data-structures/ApprovalDBs/EventsPublicApprovalsDB.ts
|
|
17
17
|
var _ = class {
|
|
18
18
|
updateMutexes = {};
|
|
19
19
|
approvalTopic = m.id("Approval(address,address,uint256)");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { safeJsonStringify as e } from "../../functions/utils/serialize.utils.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region libs/shared/common/src/data-structures/BlockchainEvent/BlockchainEvent.ts
|
|
3
3
|
var t = class t {
|
|
4
4
|
eventName;
|
|
5
5
|
transactionHash;
|
|
@@ -59,7 +59,7 @@ import { hinkalSolanaClaimUtxo as he } from "./hinkalSolanaClaimUtxo.mjs";
|
|
|
59
59
|
import { hinkalWithdrawStuckUtxos as ge } from "./hinkalWithdrawStuckUtxos.mjs";
|
|
60
60
|
import { ethers as Q } from "ethers";
|
|
61
61
|
import { PublicKey as $ } from "@solana/web3.js";
|
|
62
|
-
//#region
|
|
62
|
+
//#region libs/shared/common/src/data-structures/Hinkal/Hinkal.ts
|
|
63
63
|
var _e = class {
|
|
64
64
|
ethereumProviderAdapter;
|
|
65
65
|
solanaProviderAdapter;
|
|
@@ -30,7 +30,7 @@ import { updateHinkal as O } from "../../functions/auto-deposit-back-helpers/upd
|
|
|
30
30
|
import "../../functions/index.mjs";
|
|
31
31
|
import { activityStorage as k } from "../IndexedDB/activity-db.mjs";
|
|
32
32
|
import "../IndexedDB/index.mjs";
|
|
33
|
-
//#region
|
|
33
|
+
//#region libs/shared/common/src/data-structures/Hinkal/handleAutoDepositBack.ts
|
|
34
34
|
var te = 3 * 1e3, ne = 13 * 1e3, A = async (A, j, M, N, P, F, I, L) => {
|
|
35
35
|
if (!M || I.length === 0) return;
|
|
36
36
|
let R;
|
|
@@ -5,7 +5,7 @@ import { AccountActions as r } from "../AccountActions/AccountActions.mjs";
|
|
|
5
5
|
import { getFeeStructure as i } from "../../functions/pre-transaction/getFeeStructure.mjs";
|
|
6
6
|
import { convertEmporiumOpToCallInfo as a } from "../../functions/utils/convertEmporiumOpToCallInfo.mjs";
|
|
7
7
|
import { createTransaferEmporiumOpsBatch as o } from "../../functions/private-wallet/emporium.helpers.mjs";
|
|
8
|
-
//#region
|
|
8
|
+
//#region libs/shared/common/src/data-structures/Hinkal/hinkalActionReceive.ts
|
|
9
9
|
var s = async (s, c, l, u, d, f, p) => {
|
|
10
10
|
if (!f) throw Error("hinkalActionReceive: subAccount should be provided");
|
|
11
11
|
if (!u) throw Error("Fee token is required in hinkalActionReceive");
|
|
@@ -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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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 libs/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) {
|