@gurge/sdk 0.3.122 → 0.3.142
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/README.md +183 -159
- package/common/src/crypto/babyJub.cjs +1 -1
- package/common/src/crypto/babyJub.mjs +2 -3
- package/common/src/crypto/eddsa.cjs +1 -1
- package/common/src/crypto/eddsa.mjs +2 -3
- package/common/src/crypto/poseidon.cjs +1 -1
- package/common/src/crypto/poseidon.mjs +8 -17
- package/common/src/functions/index.cjs +1 -1
- package/common/src/functions/index.mjs +0 -1
- package/common/src/functions/utils/index.cjs +1 -1
- package/common/src/functions/utils/index.mjs +0 -1
- package/common/src/webworker/logError-CZYZ3oyV.js +2 -0
- package/common/src/webworker/package.json +119 -0
- package/common/src/webworker/snarkjsWorkerNode.cjs +1 -0
- package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -1
- package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +1 -1
- package/common/src/webworker/utxoWorkerNode.cjs +1 -0
- package/common/src/webworker/viteWorkerURL.constant.cjs +3 -3
- package/common/src/webworker/viteWorkerURL.constant.mjs +3 -3
- package/common/src/webworker/workerProxy-DPeuP2Mg.js +1 -0
- package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -1
- package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +1 -1
- package/common/src/webworker/zkProofWorkerNode.cjs +1 -0
- package/package.json +2 -3
- package/common/src/API/API.d.ts +0 -122
- package/common/src/API/TokenCallsCachedHelper.d.ts +0 -15
- package/common/src/API/accessCodeCalls.d.ts +0 -23
- package/common/src/API/admin-calls.d.ts +0 -9
- package/common/src/API/brotherhoodCalls.d.ts +0 -82
- package/common/src/API/callLifiAPI.d.ts +0 -33
- package/common/src/API/callMonitor.d.ts +0 -9
- package/common/src/API/callNearIntentsAPI.d.ts +0 -3
- package/common/src/API/callOdosAPI.d.ts +0 -63
- package/common/src/API/callOkxAPI.d.ts +0 -10
- package/common/src/API/callOneInchAPI.d.ts +0 -18
- package/common/src/API/callRelayer.d.ts +0 -41
- package/common/src/API/checkRisk.d.ts +0 -1
- package/common/src/API/dashboardAccountCalls.d.ts +0 -24
- package/common/src/API/dashboardAccountMemberCalls.d.ts +0 -34
- package/common/src/API/dashboardBalanceCalls.d.ts +0 -12
- package/common/src/API/dashboardContactCalls.d.ts +0 -9
- package/common/src/API/dashboardPayoutCalls.d.ts +0 -14
- package/common/src/API/dashboardTransactionCalls.d.ts +0 -3
- package/common/src/API/deposit-and-withdraw-status-calls.d.ts +0 -21
- package/common/src/API/enclaveRecipientInfoCalls.d.ts +0 -14
- package/common/src/API/enclaveSignatureCalls.d.ts +0 -5
- package/common/src/API/enclaveUtxoCalls.d.ts +0 -46
- package/common/src/API/fetchCommitmentsCache.d.ts +0 -19
- package/common/src/API/generate-trading-points.d.ts +0 -27
- package/common/src/API/get-token-data.d.ts +0 -6
- package/common/src/API/get-token-price-chart-data.d.ts +0 -16
- package/common/src/API/getAnyRecipientInfo.d.ts +0 -1
- package/common/src/API/getCoingeckoPrice.d.ts +0 -21
- package/common/src/API/getGasEstimates.d.ts +0 -10
- package/common/src/API/getServerURL.d.ts +0 -7
- package/common/src/API/getTokenPrice.d.ts +0 -10
- package/common/src/API/getWebsiteURL.d.ts +0 -5
- package/common/src/API/index.d.ts +0 -25
- package/common/src/API/leaderboardCalls.d.ts +0 -14
- package/common/src/API/onrampCalls.d.ts +0 -20
- package/common/src/API/privacy-score-calls.d.ts +0 -17
- package/common/src/API/privateSendEmailNotificationsCalls.d.ts +0 -8
- package/common/src/API/privateSendNonceCalls.d.ts +0 -13
- package/common/src/API/privateSendRecipientInfoCalls.d.ts +0 -11
- package/common/src/API/proxyAccountsCalls.d.ts +0 -6
- package/common/src/API/referralsCalls.d.ts +0 -22
- package/common/src/API/relayCalls.d.ts +0 -5
- package/common/src/API/resolve-sns.d.ts +0 -1
- package/common/src/API/rewardsUserCalls.d.ts +0 -60
- package/common/src/API/scheduled-transactions-calls.d.ts +0 -20
- package/common/src/API/seedless-calls.d.ts +0 -53
- package/common/src/API/send-telegram-callback.d.ts +0 -7
- package/common/src/API/simulate-batch-tx.d.ts +0 -3
- package/common/src/API/simulate-transaction.d.ts +0 -5
- package/common/src/API/snapshot-event-calls.d.ts +0 -7
- package/common/src/API/temporaryWalletCalls.d.ts +0 -13
- package/common/src/API/tenderly.api.d.ts +0 -20
- package/common/src/API/token-calls.d.ts +0 -4
- package/common/src/API/tronSubsidyCalls.d.ts +0 -13
- package/common/src/API/weeklyAnalyticCalls.d.ts +0 -22
- package/common/src/constants/activity.constants.d.ts +0 -2
- package/common/src/constants/addresses.constants.d.ts +0 -70
- package/common/src/constants/auth.constants.d.ts +0 -2
- package/common/src/constants/backend.constants.d.ts +0 -12
- package/common/src/constants/balance.constants.d.ts +0 -1
- package/common/src/constants/bridging.constants.d.ts +0 -25
- package/common/src/constants/chains.constants.d.ts +0 -72
- package/common/src/constants/coingecko.constants.d.ts +0 -44
- package/common/src/constants/contracts.constants.d.ts +0 -119
- package/common/src/constants/conversion.constants.d.ts +0 -1
- package/common/src/constants/deploy-data/index.d.ts +0 -14
- package/common/src/constants/deploy-data/mergeDeployData.d.ts +0 -4
- package/common/src/constants/events.constants.d.ts +0 -1
- package/common/src/constants/fees.constants.d.ts +0 -9
- package/common/src/constants/function-signatures.constants.d.ts +0 -4
- package/common/src/constants/images.constants.d.ts +0 -1
- package/common/src/constants/index.d.ts +0 -34
- package/common/src/constants/lifi.constants.d.ts +0 -3
- package/common/src/constants/link.constant.d.ts +0 -1
- package/common/src/constants/mediaUrls.constants.d.ts +0 -44
- package/common/src/constants/mystery-boxes.constants.d.ts +0 -0
- package/common/src/constants/oauthUrls.constants.d.ts +0 -4
- package/common/src/constants/okx.constants.d.ts +0 -2
- package/common/src/constants/pay.constants.d.ts +0 -1
- package/common/src/constants/permit2.constants.d.ts +0 -7
- package/common/src/constants/presale.constants.d.ts +0 -87
- package/common/src/constants/price-impact.constants.d.ts +0 -2
- package/common/src/constants/protocol.constants.d.ts +0 -64
- package/common/src/constants/reorg-depths.constants.d.ts +0 -17
- package/common/src/constants/rewards.constants.d.ts +0 -15
- package/common/src/constants/save-depths.d.ts +0 -19
- package/common/src/constants/schedule.constants.d.ts +0 -2
- package/common/src/constants/server.constants.d.ts +0 -138
- package/common/src/constants/tasks.constants.d.ts +0 -9
- package/common/src/constants/tokens.constants.d.ts +0 -4
- package/common/src/constants/tx-confirmation.constants.d.ts +0 -4
- package/common/src/constants/vite.constants.d.ts +0 -16
- package/common/src/constants/wallet.constants.d.ts +0 -1
- package/common/src/crypto/BabyJubRN.cjs +0 -1
- package/common/src/crypto/BabyJubRN.d.ts +0 -20
- package/common/src/crypto/BabyJubRN.mjs +0 -66
- package/common/src/crypto/EddsaRN.cjs +0 -1
- package/common/src/crypto/EddsaRN.d.ts +0 -19
- package/common/src/crypto/EddsaRN.mjs +0 -41
- package/common/src/crypto/babyJub.d.ts +0 -16
- package/common/src/crypto/ecdh-dual-path.d.ts +0 -13
- package/common/src/crypto/ecdh-sealed-keys.d.ts +0 -22
- package/common/src/crypto/ecdh.d.ts +0 -2
- package/common/src/crypto/eddsa.d.ts +0 -8
- package/common/src/crypto/index.d.ts +0 -7
- package/common/src/crypto/poseidon.d.ts +0 -15
- package/common/src/crypto/preProcessing.d.ts +0 -1
- package/common/src/data-structures/AccountActions/AccountActions.d.ts +0 -17
- package/common/src/data-structures/AccountActions/index.d.ts +0 -1
- package/common/src/data-structures/ApprovalDBs/EventsPublicApprovalsDB.d.ts +0 -18
- package/common/src/data-structures/ApprovalDBs/index.d.ts +0 -1
- package/common/src/data-structures/BlockchainEvent/BlockchainEvent.d.ts +0 -14
- package/common/src/data-structures/Hinkal/Hinkal.d.ts +0 -125
- package/common/src/data-structures/Hinkal/IHinkal.d.ts +0 -112
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.d.ts +0 -3
- package/common/src/data-structures/Hinkal/hinkalActionReceive.d.ts +0 -7
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.d.ts +0 -5
- package/common/src/data-structures/Hinkal/hinkalDeposit.d.ts +0 -6
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.d.ts +0 -4
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +0 -6
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.d.ts +0 -8
- package/common/src/data-structures/Hinkal/hinkalGetRecipientInfo.d.ts +0 -2
- package/common/src/data-structures/Hinkal/hinkalMultiSend.d.ts +0 -3
- package/common/src/data-structures/Hinkal/hinkalNearDepositAndBridge.d.ts +0 -6
- package/common/src/data-structures/Hinkal/hinkalPalEvmDeposit.d.ts +0 -9
- package/common/src/data-structures/Hinkal/hinkalPalSolanaDepositPrepare.d.ts +0 -9
- package/common/src/data-structures/Hinkal/hinkalPalTronDepositPrepare.d.ts +0 -9
- package/common/src/data-structures/Hinkal/hinkalPrivateWallet.d.ts +0 -6
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +0 -8
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.d.ts +0 -7
- package/common/src/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.d.ts +0 -6
- package/common/src/data-structures/Hinkal/hinkalProxySwap.d.ts +0 -7
- package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.d.ts +0 -6
- package/common/src/data-structures/Hinkal/hinkalSignSubAccount.d.ts +0 -4
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.d.ts +0 -5
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +0 -8
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +0 -24
- package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.d.ts +0 -5
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySend.d.ts +0 -6
- package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.d.ts +0 -6
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +0 -6
- package/common/src/data-structures/Hinkal/hinkalSolanaSwap.d.ts +0 -4
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.d.ts +0 -31
- package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.d.ts +0 -4
- package/common/src/data-structures/Hinkal/hinkalSwap.d.ts +0 -7
- package/common/src/data-structures/Hinkal/hinkalTransfer.d.ts +0 -4
- package/common/src/data-structures/Hinkal/hinkalWithdraw.d.ts +0 -7
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.d.ts +0 -3
- package/common/src/data-structures/Hinkal/index.d.ts +0 -24
- package/common/src/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.d.ts +0 -22
- package/common/src/data-structures/Hinkal/resetMerkleTrees.d.ts +0 -2
- package/common/src/data-structures/IndexedDB/activity-db.d.ts +0 -14
- package/common/src/data-structures/IndexedDB/balances-db.d.ts +0 -13
- package/common/src/data-structures/IndexedDB/contact-db.d.ts +0 -12
- package/common/src/data-structures/IndexedDB/index.d.ts +0 -8
- package/common/src/data-structures/IndexedDB/key-val-store.d.ts +0 -6
- package/common/src/data-structures/IndexedDB/pay-activity-db.d.ts +0 -9
- package/common/src/data-structures/IndexedDB/prices-db.d.ts +0 -9
- package/common/src/data-structures/IndexedDB/private-balances-db.d.ts +0 -9
- package/common/src/data-structures/IndexedDB/signatures-db.d.ts +0 -10
- package/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +0 -20
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.d.ts +0 -19
- package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.d.ts +0 -11
- package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.d.ts +0 -18
- package/common/src/data-structures/TokenDBs/IPublicTokensDB.d.ts +0 -6
- package/common/src/data-structures/TokenDBs/PrivateTokensDB.d.ts +0 -11
- package/common/src/data-structures/TokenDBs/PublicTokensDB.d.ts +0 -9
- package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.d.ts +0 -9
- package/common/src/data-structures/TokenDBs/TronPublicTokensDB.d.ts +0 -9
- package/common/src/data-structures/TokenDBs/index.d.ts +0 -6
- package/common/src/data-structures/TokenDBs/token-visibility-db.d.ts +0 -17
- package/common/src/data-structures/ValueCache/ValueCache.d.ts +0 -10
- package/common/src/data-structures/ValueCache/index.d.ts +0 -1
- package/common/src/data-structures/WalletManager/WalletManager.d.ts +0 -51
- package/common/src/data-structures/WalletManager/index.d.ts +0 -1
- package/common/src/data-structures/cacheDevices/AttachableMemoryCacheDevice.d.ts +0 -8
- package/common/src/data-structures/cacheDevices/BaseCacheDevice.d.ts +0 -11
- package/common/src/data-structures/cacheDevices/FileCacheDevice.d.ts +0 -10
- package/common/src/data-structures/cacheDevices/LocalStorageCacheDevice.d.ts +0 -8
- package/common/src/data-structures/cacheDevices/index.d.ts +0 -2
- package/common/src/data-structures/crypto-keys/decodeUTXO.d.ts +0 -28
- package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.d.ts +0 -18
- package/common/src/data-structures/crypto-keys/index.d.ts +0 -4
- package/common/src/data-structures/crypto-keys/keyUtils.d.ts +0 -2
- package/common/src/data-structures/crypto-keys/keys.d.ts +0 -131
- package/common/src/data-structures/custom-token-registry/CustomTokenRegistry.d.ts +0 -12
- package/common/src/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.d.ts +0 -34
- package/common/src/data-structures/event-service/evm/AbstractEventService.d.ts +0 -14
- package/common/src/data-structures/event-service/evm/AbstractNullifierSnapshotService.d.ts +0 -22
- package/common/src/data-structures/event-service/evm/AbstractSnapshotService.d.ts +0 -22
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +0 -37
- package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.d.ts +0 -11
- package/common/src/data-structures/event-service/evm/PollingBlockchainEventEmitter.d.ts +0 -6
- package/common/src/data-structures/event-service/helpers/ClientEventHelper.d.ts +0 -10
- package/common/src/data-structures/event-service/helpers/PollingEventHelper.d.ts +0 -7
- package/common/src/data-structures/event-service/index.d.ts +0 -14
- package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.d.ts +0 -34
- package/common/src/data-structures/event-service/solana/AbstractSolanaEventService.d.ts +0 -17
- package/common/src/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.d.ts +0 -22
- package/common/src/data-structures/event-service/solana/AbstractSolanaSnapshotService.d.ts +0 -21
- package/common/src/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.d.ts +0 -11
- package/common/src/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.d.ts +0 -6
- package/common/src/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +0 -42
- package/common/src/data-structures/http/BasicHttpClient.d.ts +0 -11
- package/common/src/data-structures/http/HttpClient.d.ts +0 -10
- package/common/src/data-structures/http/index.d.ts +0 -2
- package/common/src/data-structures/index.d.ts +0 -22
- package/common/src/data-structures/merkle-tree/MerkleTree.d.ts +0 -82
- package/common/src/data-structures/merkle-tree/MerkleTreeIncompleteError.d.ts +0 -3
- package/common/src/data-structures/merkle-tree/index.d.ts +0 -2
- package/common/src/data-structures/presale/PresaleContractWrapper.d.ts +0 -23
- package/common/src/data-structures/presale/index.d.ts +0 -1
- package/common/src/data-structures/private-balances/BalanceChangedHandler.d.ts +0 -9
- package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.d.ts +0 -21
- package/common/src/data-structures/private-balances/index.d.ts +0 -3
- package/common/src/data-structures/private-balances/privateBalancesReducer.d.ts +0 -2
- package/common/src/data-structures/provider-adapter/IProviderAdapter.d.ts +0 -40
- package/common/src/data-structures/snapshot/SnapshotFetcherService.d.ts +0 -14
- package/common/src/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.d.ts +0 -8
- package/common/src/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.d.ts +0 -8
- package/common/src/data-structures/snapshot/index.d.ts +0 -5
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.d.ts +0 -8
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.d.ts +0 -8
- package/common/src/data-structures/token-price-fetcher/TokenChecker.d.ts +0 -9
- package/common/src/data-structures/token-price-fetcher/index.d.ts +0 -1
- package/common/src/data-structures/transactions-manager/history/history.types.d.ts +0 -16
- package/common/src/data-structures/transactions-manager/index.d.ts +0 -1
- package/common/src/data-structures/utxo/Utxo.d.ts +0 -69
- package/common/src/error-handling/customErrors/ErrorWithAmount.d.ts +0 -4
- package/common/src/error-handling/customErrors/ErrorWithIndex.d.ts +0 -4
- package/common/src/error-handling/customErrors/ErrorWithTx.d.ts +0 -4
- package/common/src/error-handling/customErrors/FeeOverTransactionValueError.d.ts +0 -9
- package/common/src/error-handling/customErrors/HttpError.d.ts +0 -4
- package/common/src/error-handling/customErrors/SimulationFailureError.d.ts +0 -10
- package/common/src/error-handling/customErrors/customErrors.helpers.d.ts +0 -5
- package/common/src/error-handling/customErrors/index.d.ts +0 -7
- package/common/src/error-handling/error-codes.constants.d.ts +0 -249
- package/common/src/error-handling/get-error.message.d.ts +0 -5
- package/common/src/error-handling/index.d.ts +0 -6
- package/common/src/error-handling/isInsufficientFundsError.d.ts +0 -1
- package/common/src/error-handling/logError.d.ts +0 -1
- package/common/src/error-handling/logger.d.ts +0 -5
- package/common/src/error-handling/retrySolanaError.d.ts +0 -1
- package/common/src/error-handling/types.d.ts +0 -10
- package/common/src/externalABIs/BUSD.d.ts +0 -38
- package/common/src/externalABIs/DAI.d.ts +0 -45
- package/common/src/externalABIs/SanctionsList.d.ts +0 -35
- package/common/src/externalABIs/USDC.d.ts +0 -28
- package/common/src/externalABIs/USDR.d.ts +0 -28
- package/common/src/externalABIs/USDR3CRV.d.ts +0 -49
- package/common/src/externalABIs/USDT.d.ts +0 -41
- package/common/src/externalABIs/WETH.d.ts +0 -38
- package/common/src/externalABIs/amToken.d.ts +0 -28
- package/common/src/externalABIs/index.d.ts +0 -219
- package/common/src/externalABIs/swapAbi.d.ts +0 -77
- package/common/src/functions/auto-deposit-back-helpers/get-gas-token-records.d.ts +0 -9
- package/common/src/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.d.ts +0 -3
- package/common/src/functions/auto-deposit-back-helpers/index.d.ts +0 -4
- package/common/src/functions/auto-deposit-back-helpers/select-gas-token.d.ts +0 -13
- package/common/src/functions/auto-deposit-back-helpers/update-hinkal.d.ts +0 -2
- package/common/src/functions/connectors.types.d.ts +0 -22
- package/common/src/functions/index.d.ts +0 -12
- package/common/src/functions/pre-transaction/addressTableLookup.d.ts +0 -4
- package/common/src/functions/pre-transaction/buildCommitmentValidationData.d.ts +0 -14
- package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.d.ts +0 -2
- package/common/src/functions/pre-transaction/constructAdminData.d.ts +0 -3
- package/common/src/functions/pre-transaction/convert-okx-instructions.d.ts +0 -11
- package/common/src/functions/pre-transaction/ensureAmountChanges.d.ts +0 -2
- package/common/src/functions/pre-transaction/getExternalSwapAddress.d.ts +0 -2
- package/common/src/functions/pre-transaction/getFeeStructure.d.ts +0 -5
- package/common/src/functions/pre-transaction/getSolanaCalldataHash.d.ts +0 -4
- package/common/src/functions/pre-transaction/getVolatileTransferAmount.d.ts +0 -9
- package/common/src/functions/pre-transaction/index.d.ts +0 -19
- package/common/src/functions/pre-transaction/interaction-to-action.d.ts +0 -2
- package/common/src/functions/pre-transaction/merge-with-fee-structure-emporium.d.ts +0 -3
- package/common/src/functions/pre-transaction/merge-with-fee-structure.d.ts +0 -2
- package/common/src/functions/pre-transaction/outputUtxoProcessing.d.ts +0 -5
- package/common/src/functions/pre-transaction/process-gas-estimates.d.ts +0 -5
- package/common/src/functions/pre-transaction/recipientUtxoProcessing.d.ts +0 -3
- package/common/src/functions/pre-transaction/sendInitNullifiersTransaction.d.ts +0 -11
- package/common/src/functions/pre-transaction/sendV0Transaction.d.ts +0 -18
- package/common/src/functions/pre-transaction/solana-public-signals.d.ts +0 -21
- package/common/src/functions/pre-transaction/solana.d.ts +0 -14
- package/common/src/functions/pre-transaction/solanaTransfer.utils.d.ts +0 -6
- package/common/src/functions/pre-transaction/store-instructions.d.ts +0 -4
- package/common/src/functions/pre-transaction/store-proof.d.ts +0 -7
- package/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.d.ts +0 -3
- package/common/src/functions/private-wallet/emporium.helpers.d.ts +0 -47
- package/common/src/functions/private-wallet/emporium.swap.helpers.d.ts +0 -4
- package/common/src/functions/private-wallet/index.d.ts +0 -3
- package/common/src/functions/private-wallet/opProducer.d.ts +0 -5
- package/common/src/functions/snarkjs/common.snarkjs.d.ts +0 -32
- package/common/src/functions/snarkjs/constant.d.ts +0 -149
- package/common/src/functions/snarkjs/constructGeneralZkProof.d.ts +0 -13
- package/common/src/functions/snarkjs/constructSolanaZkProof.d.ts +0 -13
- package/common/src/functions/snarkjs/fetchMerkleTreeSiblings.d.ts +0 -11
- package/common/src/functions/snarkjs/fetchOnChainRootHashes.d.ts +0 -3
- package/common/src/functions/snarkjs/generateCircomData.d.ts +0 -5
- package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.d.ts +0 -11
- package/common/src/functions/snarkjs/generateZkProof.d.ts +0 -5
- package/common/src/functions/snarkjs/generateZkProofEnclave.d.ts +0 -5
- package/common/src/functions/snarkjs/generateZkProofSelf.d.ts +0 -5
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.d.ts +0 -15
- package/common/src/functions/snarkjs/getOriginalSender.d.ts +0 -1
- package/common/src/functions/snarkjs/getZKFiles.d.ts +0 -3
- package/common/src/functions/snarkjs/index.d.ts +0 -8
- package/common/src/functions/snarkjs/signedMessageHash.d.ts +0 -31
- package/common/src/functions/snarkjs/verifyCommitmentValidationData.d.ts +0 -4
- package/common/src/functions/utils/abi.utils.d.ts +0 -3
- package/common/src/functions/utils/addresses.d.ts +0 -11
- package/common/src/functions/utils/aggregateTokenAmounts.d.ts +0 -2
- package/common/src/functions/utils/amounts.utils.d.ts +0 -25
- package/common/src/functions/utils/arraysMatch.d.ts +0 -1
- package/common/src/functions/utils/auth.utils.d.ts +0 -5
- package/common/src/functions/utils/bigint-math.utils.cjs +0 -1
- package/common/src/functions/utils/bigint-math.utils.d.ts +0 -2
- package/common/src/functions/utils/bigint-math.utils.mjs +0 -18
- package/common/src/functions/utils/bit.operations.d.ts +0 -3
- package/common/src/functions/utils/buildClaimableDepositPlan.d.ts +0 -16
- package/common/src/functions/utils/bytes32.utils.d.ts +0 -2
- package/common/src/functions/utils/cacheDevice.utils.d.ts +0 -3
- package/common/src/functions/utils/cacheFunctions.d.ts +0 -16
- package/common/src/functions/utils/caseInsensitive.utils.d.ts +0 -3
- package/common/src/functions/utils/convertEmporiumOpToCallInfo.d.ts +0 -2
- package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.d.ts +0 -3
- package/common/src/functions/utils/create-provider.d.ts +0 -4
- package/common/src/functions/utils/customEnclaveFunctionsRegister.d.ts +0 -18
- package/common/src/functions/utils/deposit-claimable.utils.d.ts +0 -6
- package/common/src/functions/utils/dispatchBalanceRefreshes.d.ts +0 -4
- package/common/src/functions/utils/enclave-recipient-info-storage.d.ts +0 -2
- package/common/src/functions/utils/enclave-signature-storage.d.ts +0 -1
- package/common/src/functions/utils/enclave-utxo-storage.d.ts +0 -7
- package/common/src/functions/utils/enclaveHandshakeService.d.ts +0 -10
- package/common/src/functions/utils/encodeTokenWithId.d.ts +0 -2
- package/common/src/functions/utils/encryptInputForEnclave.d.ts +0 -8
- package/common/src/functions/utils/enum.utils.d.ts +0 -9
- package/common/src/functions/utils/erc20tokenFunctions.d.ts +0 -20
- package/common/src/functions/utils/evmNetworkFunctions.d.ts +0 -4
- package/common/src/functions/utils/external-action.utils.d.ts +0 -3
- package/common/src/functions/utils/fees.utils.d.ts +0 -6
- package/common/src/functions/utils/formatter.d.ts +0 -1
- package/common/src/functions/utils/get-signature-header.d.ts +0 -5
- package/common/src/functions/utils/getBlockExplorerUrl.d.ts +0 -1
- package/common/src/functions/utils/getContractAddress.d.ts +0 -2
- package/common/src/functions/utils/getDataFromTransaction.d.ts +0 -33
- package/common/src/functions/utils/getRecipientInfoFromUserKeys.d.ts +0 -4
- package/common/src/functions/utils/getSignerFromContract.d.ts +0 -3
- package/common/src/functions/utils/getUtxosFromReceipt.utils.d.ts +0 -6
- package/common/src/functions/utils/getUtxosFromReceiptSolana.d.ts +0 -7
- package/common/src/functions/utils/getWalletGroupKey.utils.d.ts +0 -1
- package/common/src/functions/utils/inLogicMetadata.d.ts +0 -2
- package/common/src/functions/utils/index.d.ts +0 -76
- package/common/src/functions/utils/involves-permit2-op.d.ts +0 -7
- package/common/src/functions/utils/ipfs.d.ts +0 -8
- package/common/src/functions/utils/is-valid-url.d.ts +0 -1
- package/common/src/functions/utils/lifi.utils.d.ts +0 -4
- package/common/src/functions/utils/map.utils.d.ts +0 -1
- package/common/src/functions/utils/memoize.utils.d.ts +0 -1
- package/common/src/functions/utils/merkleTree.utils.d.ts +0 -2
- package/common/src/functions/utils/mnemonics.d.ts +0 -1
- package/common/src/functions/utils/mutexes.utils.d.ts +0 -2
- package/common/src/functions/utils/nearIntents.utils.d.ts +0 -11
- package/common/src/functions/utils/networks.utils.d.ts +0 -1
- package/common/src/functions/utils/nftTokenFunctions.d.ts +0 -2
- package/common/src/functions/utils/nickname.utils.d.ts +0 -1
- package/common/src/functions/utils/pay-routing.utils.d.ts +0 -4
- package/common/src/functions/utils/postToOffscreen.d.ts +0 -2
- package/common/src/functions/utils/prepareHinkal.d.ts +0 -11
- package/common/src/functions/utils/process.utils.d.ts +0 -14
- package/common/src/functions/utils/proxyAvatar.utils.d.ts +0 -2
- package/common/src/functions/utils/publicBalance.utils.d.ts +0 -7
- package/common/src/functions/utils/reloadPage.d.ts +0 -1
- package/common/src/functions/utils/requireEnv.d.ts +0 -1
- package/common/src/functions/utils/resolve-sync.utils.d.ts +0 -6
- package/common/src/functions/utils/rpc-int-encode.d.ts +0 -1
- package/common/src/functions/utils/serialize-utxos.utils.d.ts +0 -3
- package/common/src/functions/utils/serialize.utils.d.ts +0 -10
- package/common/src/functions/utils/solana-memo.d.ts +0 -3
- package/common/src/functions/utils/solanaMint.utils.d.ts +0 -10
- package/common/src/functions/utils/solanaSendPreflight.utils.d.ts +0 -6
- package/common/src/functions/utils/string.utils.d.ts +0 -16
- package/common/src/functions/utils/time.utils.d.ts +0 -20
- package/common/src/functions/utils/token-check.utils.d.ts +0 -4
- package/common/src/functions/utils/transfer-claimable.utils.d.ts +0 -9
- package/common/src/functions/utils/trimFieldValues.d.ts +0 -4
- package/common/src/functions/utils/tron.utils.d.ts +0 -44
- package/common/src/functions/utils/tronSimulation.utils.d.ts +0 -1
- package/common/src/functions/utils/tx-confirmation.utils.d.ts +0 -10
- package/common/src/functions/utils/upToDateState.d.ts +0 -2
- package/common/src/functions/utils/userAgent.d.ts +0 -2
- package/common/src/functions/utils/validateUsername.d.ts +0 -5
- package/common/src/functions/utils/walletBalances.utils.d.ts +0 -2
- package/common/src/functions/web3/EIP-712.d.ts +0 -23
- package/common/src/functions/web3/connectors.utils.d.ts +0 -8
- package/common/src/functions/web3/crypto.d.ts +0 -1
- package/common/src/functions/web3/etherFunctions.d.ts +0 -20
- package/common/src/functions/web3/events/getInputUtxoAndBalance.d.ts +0 -38
- package/common/src/functions/web3/events/getInputUtxosEnclave.d.ts +0 -9
- package/common/src/functions/web3/events/getShieldedBalance.d.ts +0 -18
- package/common/src/functions/web3/events/getTransactionLogEvents.d.ts +0 -13
- package/common/src/functions/web3/events/index.d.ts +0 -3
- package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.d.ts +0 -3
- package/common/src/functions/web3/functionCalls/approveToken.d.ts +0 -4
- package/common/src/functions/web3/functionCalls/approveTokensToHinkal.d.ts +0 -4
- package/common/src/functions/web3/functionCalls/constructBatchCall.d.ts +0 -7
- package/common/src/functions/web3/functionCalls/estimateGasRelayer.d.ts +0 -4
- package/common/src/functions/web3/functionCalls/getRootHash.d.ts +0 -2
- package/common/src/functions/web3/functionCalls/recoverTransactionFromError.d.ts +0 -2
- package/common/src/functions/web3/functionCalls/relayFunctions.d.ts +0 -3
- package/common/src/functions/web3/functionCalls/transactCallDirect.d.ts +0 -6
- package/common/src/functions/web3/functionCalls/transactCallDirectTron.d.ts +0 -12
- package/common/src/functions/web3/functionCalls/transactCallRelayer.d.ts +0 -37
- package/common/src/functions/web3/functionCalls/waitForErc20Approvals.d.ts +0 -11
- package/common/src/functions/web3/getContractMetadata.d.ts +0 -5
- package/common/src/functions/web3/getPublicAddressBalance.d.ts +0 -2
- package/common/src/functions/web3/getSolanaPriorityFee.d.ts +0 -3
- package/common/src/functions/web3/getTokenHolder.d.ts +0 -1
- package/common/src/functions/web3/index.d.ts +0 -14
- package/common/src/functions/web3/lifiAPI.d.ts +0 -6
- package/common/src/functions/web3/odosAPI.d.ts +0 -5
- package/common/src/functions/web3/okxAPI.d.ts +0 -8
- package/common/src/functions/web3/oneInchAPI.d.ts +0 -5
- package/common/src/functions/web3/runContractFunction.d.ts +0 -16
- package/common/src/functions/web3/signAndSendSerializedTransaction.d.ts +0 -2
- package/common/src/functions/web3/uniswapAPI.d.ts +0 -16
- package/common/src/index.d.ts +0 -9
- package/common/src/mutexes/chainBalanceRwLock.d.ts +0 -18
- package/common/src/mutexes/index.d.ts +0 -2
- package/common/src/mutexes/mutex.d.ts +0 -2
- package/common/src/providers/EthersProviderAdapter.d.ts +0 -36
- package/common/src/providers/SolanaProviderAdapter.d.ts +0 -52
- package/common/src/providers/TronProviderAdapter.d.ts +0 -39
- package/common/src/providers/WagmiProviderAdapter.d.ts +0 -48
- package/common/src/providers/exportProviers.d.ts +0 -3
- package/common/src/types/API.types.d.ts +0 -25
- package/common/src/types/ICacheDevice.d.ts +0 -5
- package/common/src/types/IMultiThreadedUtxoUtils.d.ts +0 -8
- package/common/src/types/RewardUserEnums.d.ts +0 -11
- package/common/src/types/TransactionSimulator.types.d.ts +0 -16
- package/common/src/types/WeeklyAnalytics.types.d.ts +0 -37
- package/common/src/types/activities.types.d.ts +0 -77
- package/common/src/types/admin.types.d.ts +0 -42
- package/common/src/types/all-points.types.d.ts +0 -7
- package/common/src/types/approvals.types.d.ts +0 -41
- package/common/src/types/balances.types.d.ts +0 -39
- package/common/src/types/big-intable.types.d.ts +0 -3
- package/common/src/types/bridging-tx.types.d.ts +0 -17
- package/common/src/types/brotherhood-user.types.d.ts +0 -11
- package/common/src/types/cache.types.d.ts +0 -60
- package/common/src/types/chains.types.d.ts +0 -11
- package/common/src/types/circom-data.types.d.ts +0 -107
- package/common/src/types/coingecko.types.d.ts +0 -220
- package/common/src/types/commitments.types.d.ts +0 -32
- package/common/src/types/confirmation-request.types.d.ts +0 -10
- package/common/src/types/connector.types.d.ts +0 -5
- package/common/src/types/contacts.types.d.ts +0 -7
- package/common/src/types/crypto.types.d.ts +0 -8
- package/common/src/types/dashboard-account.d.ts +0 -101
- package/common/src/types/dashboard-payout.types.d.ts +0 -29
- package/common/src/types/dashboard-transaction.types.d.ts +0 -22
- package/common/src/types/eip5792.types.d.ts +0 -33
- package/common/src/types/ethereum-network.types.d.ts +0 -62
- package/common/src/types/events.types.d.ts +0 -5
- package/common/src/types/external-action.types.d.ts +0 -17
- package/common/src/types/fee.types.d.ts +0 -13
- package/common/src/types/generatePoints.d.ts +0 -14
- package/common/src/types/hinkal.types.d.ts +0 -99
- package/common/src/types/http.types.d.ts +0 -8
- package/common/src/types/index.d.ts +0 -60
- package/common/src/types/message.types.d.ts +0 -5
- package/common/src/types/near-intents.types.d.ts +0 -60
- package/common/src/types/new-rewards.type.d.ts +0 -152
- package/common/src/types/offscreen.types.d.ts +0 -9
- package/common/src/types/okx.types.d.ts +0 -57
- package/common/src/types/onramp.types.d.ts +0 -58
- package/common/src/types/pay-activities.types.d.ts +0 -32
- package/common/src/types/pay-routing.types.d.ts +0 -9
- package/common/src/types/presaleReferral.types.d.ts +0 -4
- package/common/src/types/proxy.types.d.ts +0 -19
- package/common/src/types/referral.types.d.ts +0 -12
- package/common/src/types/remote-proof.types.d.ts +0 -15
- package/common/src/types/rewards.types.d.ts +0 -34
- package/common/src/types/schedule.types.d.ts +0 -7
- package/common/src/types/scheduled-transactions.types.d.ts +0 -54
- package/common/src/types/session.types.d.ts +0 -13
- package/common/src/types/signature.types.d.ts +0 -10
- package/common/src/types/slippage.types.d.ts +0 -3
- package/common/src/types/snark.types.d.ts +0 -40
- package/common/src/types/solana.types.d.ts +0 -87
- package/common/src/types/tenderly.api.types.d.ts +0 -196
- package/common/src/types/token-prices.types.d.ts +0 -18
- package/common/src/types/token-with-id.types.d.ts +0 -4
- package/common/src/types/token.types.d.ts +0 -88
- package/common/src/types/transaction.types.d.ts +0 -160
- package/common/src/types/transactions.types.d.ts +0 -79
- package/common/src/types/tron.types.d.ts +0 -15
- package/common/src/types/wc.types.d.ts +0 -78
- package/common/src/types/with-id.types.d.ts +0 -3
- package/common/src/webworker/WorkerWrapper.d.ts +0 -9
- package/common/src/webworker/performTaskWithWorker.d.ts +0 -5
- package/common/src/webworker/snarkjsWorker/snarkjsWorker.types.d.ts +0 -14
- package/common/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.d.ts +0 -1
- package/common/src/webworker/snarkjsWorker/snarkjsWorkerLogic.d.ts +0 -2
- package/common/src/webworker/snarkjsWorker/snarkjsWorkerNode.d.ts +0 -1
- package/common/src/webworker/utxoWorker/utxoWorker.types.d.ts +0 -31
- package/common/src/webworker/utxoWorker/utxoWorkerLauncher.d.ts +0 -1
- package/common/src/webworker/utxoWorker/utxoWorkerLogic.d.ts +0 -5
- package/common/src/webworker/utxoWorker/utxoWorkerNode.d.ts +0 -1
- package/common/src/webworker/viteWorkerURL.constant.d.ts +0 -10
- package/common/src/webworker/viteWorkerURL.constant.fallback.d.ts +0 -4
- package/common/src/webworker/worker.registry.d.ts +0 -10
- package/common/src/webworker/worker.types.d.ts +0 -33
- package/common/src/webworker/workerErrorHandler.d.ts +0 -1
- package/common/src/webworker/workerFactory.d.ts +0 -11
- package/common/src/webworker/workerProxy.d.ts +0 -39
- package/common/src/webworker/zkProofWorker/zkProofWorker.types.d.ts +0 -26
- package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.d.ts +0 -1
- package/common/src/webworker/zkProofWorker/zkProofWorkerLogic.d.ts +0 -4
- package/common/src/webworker/zkProofWorker/zkProofWorkerNode.d.ts +0 -1
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { TaskTypes } from '../types';
|
|
2
|
-
export declare const API_CONFIG: {
|
|
3
|
-
ROUTES: {
|
|
4
|
-
getSnapshots: (chainId: number) => string;
|
|
5
|
-
getMerkleTreeSiblings: string;
|
|
6
|
-
getSnapshotServerEvents: string;
|
|
7
|
-
callOdosAPI: string;
|
|
8
|
-
callOneInchAPI: string;
|
|
9
|
-
callLifiAPI: string;
|
|
10
|
-
callOkxAPI: string;
|
|
11
|
-
callNearIntentsQuote: string;
|
|
12
|
-
callNearIntentsTokens: string;
|
|
13
|
-
getOdosPriceForToken: (chainId: number, tokenAddress: string) => string;
|
|
14
|
-
monitor: string;
|
|
15
|
-
monitorBatch: string;
|
|
16
|
-
checkRisk: (address: string) => string;
|
|
17
|
-
simulateTransaction: string;
|
|
18
|
-
simulateBatchTx: string;
|
|
19
|
-
simulateVolatileTokenTransfer: string;
|
|
20
|
-
getTokensInfo: string;
|
|
21
|
-
getTokensForChain: string;
|
|
22
|
-
getTokensBySymbols: string;
|
|
23
|
-
getTokenData: (tokenSymbol: string) => string;
|
|
24
|
-
getProxyAccounts: (secureKey: string) => string;
|
|
25
|
-
updateProxyAccounts: string;
|
|
26
|
-
getTemporaryWalletNonces: (hashedEthereumAddress: string, chainId: number) => string;
|
|
27
|
-
addTemporaryWalletNonce: string;
|
|
28
|
-
removeTemporaryWalletNonce: string;
|
|
29
|
-
encodeMoonPayBuyUrl: string;
|
|
30
|
-
getMoonPayQuote: string;
|
|
31
|
-
privateSendTopUpRecipientInfos: string;
|
|
32
|
-
privateSendAllocateRecipientInfos: string;
|
|
33
|
-
privateSendNonceSync: string;
|
|
34
|
-
privateSendNonceReserve: string;
|
|
35
|
-
getDashboardAccount: string;
|
|
36
|
-
updateDashboardAccount: string;
|
|
37
|
-
deleteDashboardAccount: string;
|
|
38
|
-
updateUserProfile: string;
|
|
39
|
-
addDashboardContact: string;
|
|
40
|
-
deleteDashboardContact: string;
|
|
41
|
-
updateDashboardContact: string;
|
|
42
|
-
getDashboardContacts: string;
|
|
43
|
-
sendDashboardInvitationEmail: string;
|
|
44
|
-
removeMember: string;
|
|
45
|
-
editMember: string;
|
|
46
|
-
createDashboardPayout: string;
|
|
47
|
-
getDashboardPayouts: string;
|
|
48
|
-
syncDashboardBalances: string;
|
|
49
|
-
getDashboardBalances: string;
|
|
50
|
-
changePayoutStatus: string;
|
|
51
|
-
getDashboardTransactions: string;
|
|
52
|
-
createDashboardTransactions: string;
|
|
53
|
-
tronSubsidyEligibility: string;
|
|
54
|
-
tronSubsidyRecord: string;
|
|
55
|
-
privateSendRecipientInfoGetAny: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
export declare const RELAYER_CONFIG: {
|
|
59
|
-
getGasEstimate: (tokenAddress: string, externalActionId: string, erc20TokenAddressLength: number, gasAmount?: number) => string;
|
|
60
|
-
getTokenPrices: string;
|
|
61
|
-
TRANSACT: string;
|
|
62
|
-
TRANSACT_BATCH: string;
|
|
63
|
-
SOLANA_TRANSACT: string;
|
|
64
|
-
SOLANA_TRANSACT_BATCH: string;
|
|
65
|
-
getIdleRelay: string;
|
|
66
|
-
emitTxPublicData: string;
|
|
67
|
-
emitReferralTx: string;
|
|
68
|
-
getScheduledTransactions: string;
|
|
69
|
-
getScheduledTransactionById: (scheduleId: string) => string;
|
|
70
|
-
getScheduledTransactionsNullifierIndexes: string;
|
|
71
|
-
updateDepositAndWithdrawStatus: string;
|
|
72
|
-
getTokenPriceChartData: string;
|
|
73
|
-
getTokenPreviousDayPrices: string;
|
|
74
|
-
getPrivateTransactionsRatio: (hashedOwner: string) => string;
|
|
75
|
-
savePrivacyScoreAndGetPrivacyRank: string;
|
|
76
|
-
};
|
|
77
|
-
export declare const WALLET_TASK_VERIFICATION_TYPES: TaskTypes[];
|
|
78
|
-
export declare const VERIFICATION_ROUTES: Partial<Record<TaskTypes, (ethereumAddress: string) => string>>;
|
|
79
|
-
export declare const DATA_SERVER_CONFIG: {
|
|
80
|
-
createPresaleReferral: string;
|
|
81
|
-
updatePresaleReferralList: string;
|
|
82
|
-
generateTradingPoints: string;
|
|
83
|
-
getBrotherhoodUsers: (brotherhoodId: number) => string;
|
|
84
|
-
getCurrentUserBrotherhoodUsers: (ethereumAddress: string) => string;
|
|
85
|
-
editBrotherhood: string;
|
|
86
|
-
createBrotherhood: string;
|
|
87
|
-
getCurrentUserBrotherhood: string;
|
|
88
|
-
getPublicBrotherhoods: string;
|
|
89
|
-
getBrotherhood: (brotherhoodId: number) => string;
|
|
90
|
-
leaveBrotherhood: (brotherhoodId: number) => string;
|
|
91
|
-
joinBrotherhood: (brotherhoodId: number) => string;
|
|
92
|
-
getUserAnalytics: string;
|
|
93
|
-
getBrotherhoodAnalytics: string;
|
|
94
|
-
connectRewardsUser: string;
|
|
95
|
-
updateRewardsUser: string;
|
|
96
|
-
getRewardsUser: (ethereumAddress: string) => string;
|
|
97
|
-
checkUsernameAvailability: (username: string) => string;
|
|
98
|
-
getSwapStreak: string;
|
|
99
|
-
getUserCurrentLeaderboard: string;
|
|
100
|
-
getBrotherhoodsLeaderboard: string;
|
|
101
|
-
getCurrentUserReferral: string;
|
|
102
|
-
submitReferralCode: string;
|
|
103
|
-
getCurrentUserAppliedReferralCode: string;
|
|
104
|
-
submitAccessCode: string;
|
|
105
|
-
getAccessCodeBenefits: string;
|
|
106
|
-
getTelegramCallback: string;
|
|
107
|
-
generateAumPoints: string;
|
|
108
|
-
getTasksProgress: (ethereumAddress: string) => string;
|
|
109
|
-
disconnectSocialNetwork: string;
|
|
110
|
-
getNftMultiplier: (ethereumAddress: string) => string;
|
|
111
|
-
seedlessInit: string;
|
|
112
|
-
seedlessBackup: string;
|
|
113
|
-
seedlessCheckPassword: string;
|
|
114
|
-
seedlessStatus: string;
|
|
115
|
-
seedlessSalt: string;
|
|
116
|
-
sendPrivateSendEmailNotifications: string;
|
|
117
|
-
webflowBlogPosts: string;
|
|
118
|
-
brevoSubscribe: string;
|
|
119
|
-
versionChecker: (version: string) => string;
|
|
120
|
-
};
|
|
121
|
-
export declare const backendVersion = "v12";
|
|
122
|
-
export declare const deploymentModeWithVersion: string | undefined;
|
|
123
|
-
export declare const PLAYGROUND_URL = "https://wallet-playground.hinkal.io";
|
|
124
|
-
export declare const STAGING_URL = "https://wallet-staging-v2.hinkal.io";
|
|
125
|
-
export declare const PRODUCTION_URL = "https://wallet-prodv12.hinkal.io";
|
|
126
|
-
export declare const SERVER_URL_LOCAL = "http://localhost:7072";
|
|
127
|
-
export declare const SERVER_URL_ENDPOINT = "/server";
|
|
128
|
-
export declare const RELAYER_URL_LOCAL = "http://localhost:7073";
|
|
129
|
-
export declare const RELAYER_URL_ENDPOINT = "/relayer";
|
|
130
|
-
export declare const SNAPSHOT_SERVER_URL_LOCAL = "http://localhost:7074";
|
|
131
|
-
export declare const SNAPSHOT_SERVER_URL_ENDPOINT = "/snapshot-server";
|
|
132
|
-
export declare const DATA_SERVER_URL_LOCAL = "http://localhost:7090";
|
|
133
|
-
export declare const DATA_SERVER_URL_ENDPOINT = "/data-server";
|
|
134
|
-
export declare const FUND_COMPLIANCE_URL_LOCAL = "http://localhost:7075";
|
|
135
|
-
export declare const FUND_COMPLIANCE_URL_ENDPOINT = "/compliance-server";
|
|
136
|
-
export declare const ENCLAVE_API_URL_LOCAL = "http://localhost:7077";
|
|
137
|
-
export declare const ENCLAVE_API_STAGING_URL = "https://api-staging.hinkal.io";
|
|
138
|
-
export declare const ENCLAVE_API_PRODUCTION_URL = "https://api.hinkal.io";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Task } from '../types';
|
|
2
|
-
import { Achievement } from '../types/new-rewards.type';
|
|
3
|
-
export declare const WELCOME_TASKS: Task[];
|
|
4
|
-
export declare const BROTHERHOOD_TASKS: Task[];
|
|
5
|
-
export declare const DAILY_TASKS: Task[];
|
|
6
|
-
export declare const POINTS_BOOST_TASKS: Task[];
|
|
7
|
-
export declare const REFERRAL_BONUS_TASK: Task;
|
|
8
|
-
export declare const REWARDS_TASKS: Task[];
|
|
9
|
-
export declare const ACHIEVEMENTS: Achievement[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare enum DEPLOYMENT_MODE {
|
|
2
|
-
DEVELOPMENT = "development",
|
|
3
|
-
PLAYGROUND = "playground",
|
|
4
|
-
PRODUCTION = "production",
|
|
5
|
-
STAGING = "staging"
|
|
6
|
-
}
|
|
7
|
-
export declare const isNode: boolean;
|
|
8
|
-
export declare const isWebpack: boolean;
|
|
9
|
-
export declare const isExtension: boolean;
|
|
10
|
-
export declare const deploymentMode: DEPLOYMENT_MODE | undefined;
|
|
11
|
-
export declare const isDevelopment: boolean;
|
|
12
|
-
export declare const isPlayground: boolean;
|
|
13
|
-
export declare const isStaging: boolean;
|
|
14
|
-
export declare const isNotProduction: boolean;
|
|
15
|
-
export declare const isReactNative: boolean;
|
|
16
|
-
export declare const isNotClientProduction: boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SOLANA_LEDGER_WALLET_ID = "solana-ledger";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`../constants/protocol.constants.cjs`),t=require(`../functions/utils/bigint-math.utils.cjs`);var n={p:e.CIRCOM_P,zero:0n,one:1n,e:e=>t.mod(BigInt(e)),add:(e,n)=>t.mod(e+n),sub:(e,n)=>t.mod(e-n),mul:(e,n)=>t.mod(e*n),div:(e,n)=>{if(n===0n)throw Error(`Division by zero in BabyJub field`);return t.mod(e*t.modInverse(n))},toString:e=>t.mod(e).toString()},r={X:n.zero,Y:n.one,Z:n.one,T:n.zero},i=e=>{let t=n.e(e[0]),r=n.e(e[1]);return{X:t,Y:r,Z:n.one,T:n.mul(t,r)}},a=e=>{let r=t.modInverse(e.Z);return[n.mul(e.X,r),n.mul(e.Y,r)]},o=n.e(`168700`),s=n.e(`168696`),c=(e,t)=>{let r=n.mul(e.X,t.X),i=n.mul(e.Y,t.Y),a=n.mul(n.mul(e.T,t.T),s),c=n.mul(e.Z,t.Z),l=n.sub(n.mul(n.add(e.X,e.Y),n.add(t.X,t.Y)),n.add(r,i)),u=n.sub(c,a),d=n.add(c,a),f=n.sub(i,n.mul(o,r));return{X:n.mul(l,u),Y:n.mul(d,f),T:n.mul(l,f),Z:n.mul(u,d)}},l=e=>{let t=n.mul(e.X,e.X),r=n.mul(e.Y,e.Y),i=n.mul(n.mul(e.Z,e.Z),2n),a=n.mul(o,t),s=n.sub(n.mul(n.add(e.X,e.Y),n.add(e.X,e.Y)),n.add(t,r)),c=n.add(a,r),l=n.sub(c,i),u=n.sub(a,r);return{X:n.mul(s,l),Y:n.mul(c,u),T:n.mul(s,u),Z:n.mul(l,c)}},u=class{static A=o;static D=s;F=n;A=o;D=s;Base8=[n.e(`5299619240641551281634865583518297030282874472190772894086521144482721001553`),n.e(`16950150798460657717958625567821834550301663161624707787222815936182638968203`)];addPoint(e,t){return a(c(i(e),i(t)))}mulPointEscalar(e,t){let n=r,o=i(e),s=BigInt(t);for(;s!==0n;)s%2n==1n&&(n=c(n,o)),o=l(o),s/=2n;return a(n)}};exports.BabyJubRN=u;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare class BabyJubRN {
|
|
2
|
-
static readonly A: bigint;
|
|
3
|
-
static readonly D: bigint;
|
|
4
|
-
F: {
|
|
5
|
-
p: bigint;
|
|
6
|
-
zero: bigint;
|
|
7
|
-
one: bigint;
|
|
8
|
-
e: (v: bigint | number | string) => bigint;
|
|
9
|
-
add: (a: bigint, b: bigint) => bigint;
|
|
10
|
-
sub: (a: bigint, b: bigint) => bigint;
|
|
11
|
-
mul: (a: bigint, b: bigint) => bigint;
|
|
12
|
-
div: (a: bigint, b: bigint) => bigint;
|
|
13
|
-
toString: (a: bigint) => string;
|
|
14
|
-
};
|
|
15
|
-
A: bigint;
|
|
16
|
-
D: bigint;
|
|
17
|
-
Base8: [bigint, bigint];
|
|
18
|
-
addPoint(a: [bigint, bigint], b: [bigint, bigint]): [bigint, bigint];
|
|
19
|
-
mulPointEscalar(base: [bigint, bigint], e: bigint | number | string): [bigint, bigint];
|
|
20
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { CIRCOM_P as e } from "../constants/protocol.constants.mjs";
|
|
2
|
-
import { mod as t, modInverse as n } from "../functions/utils/bigint-math.utils.mjs";
|
|
3
|
-
//#region libs/shared/common/src/crypto/BabyJubRN.ts
|
|
4
|
-
var r = {
|
|
5
|
-
p: e,
|
|
6
|
-
zero: 0n,
|
|
7
|
-
one: 1n,
|
|
8
|
-
e: (e) => t(BigInt(e)),
|
|
9
|
-
add: (e, n) => t(e + n),
|
|
10
|
-
sub: (e, n) => t(e - n),
|
|
11
|
-
mul: (e, n) => t(e * n),
|
|
12
|
-
div: (e, r) => {
|
|
13
|
-
if (r === 0n) throw Error("Division by zero in BabyJub field");
|
|
14
|
-
return t(e * n(r));
|
|
15
|
-
},
|
|
16
|
-
toString: (e) => t(e).toString()
|
|
17
|
-
}, i = {
|
|
18
|
-
X: r.zero,
|
|
19
|
-
Y: r.one,
|
|
20
|
-
Z: r.one,
|
|
21
|
-
T: r.zero
|
|
22
|
-
}, a = (e) => {
|
|
23
|
-
let t = r.e(e[0]), n = r.e(e[1]);
|
|
24
|
-
return {
|
|
25
|
-
X: t,
|
|
26
|
-
Y: n,
|
|
27
|
-
Z: r.one,
|
|
28
|
-
T: r.mul(t, n)
|
|
29
|
-
};
|
|
30
|
-
}, o = (e) => {
|
|
31
|
-
let t = n(e.Z);
|
|
32
|
-
return [r.mul(e.X, t), r.mul(e.Y, t)];
|
|
33
|
-
}, s = r.e("168700"), c = r.e("168696"), l = (e, t) => {
|
|
34
|
-
let n = r.mul(e.X, t.X), i = r.mul(e.Y, t.Y), a = r.mul(r.mul(e.T, t.T), c), o = r.mul(e.Z, t.Z), l = r.sub(r.mul(r.add(e.X, e.Y), r.add(t.X, t.Y)), r.add(n, i)), u = r.sub(o, a), d = r.add(o, a), f = r.sub(i, r.mul(s, n));
|
|
35
|
-
return {
|
|
36
|
-
X: r.mul(l, u),
|
|
37
|
-
Y: r.mul(d, f),
|
|
38
|
-
T: r.mul(l, f),
|
|
39
|
-
Z: r.mul(u, d)
|
|
40
|
-
};
|
|
41
|
-
}, u = (e) => {
|
|
42
|
-
let t = r.mul(e.X, e.X), n = r.mul(e.Y, e.Y), i = r.mul(r.mul(e.Z, e.Z), 2n), a = r.mul(s, t), o = r.sub(r.mul(r.add(e.X, e.Y), r.add(e.X, e.Y)), r.add(t, n)), c = r.add(a, n), l = r.sub(c, i), u = r.sub(a, n);
|
|
43
|
-
return {
|
|
44
|
-
X: r.mul(o, l),
|
|
45
|
-
Y: r.mul(c, u),
|
|
46
|
-
T: r.mul(o, u),
|
|
47
|
-
Z: r.mul(l, c)
|
|
48
|
-
};
|
|
49
|
-
}, d = class {
|
|
50
|
-
static A = s;
|
|
51
|
-
static D = c;
|
|
52
|
-
F = r;
|
|
53
|
-
A = s;
|
|
54
|
-
D = c;
|
|
55
|
-
Base8 = [r.e("5299619240641551281634865583518297030282874472190772894086521144482721001553"), r.e("16950150798460657717958625567821834550301663161624707787222815936182638968203")];
|
|
56
|
-
addPoint(e, t) {
|
|
57
|
-
return o(l(a(e), a(t)));
|
|
58
|
-
}
|
|
59
|
-
mulPointEscalar(e, t) {
|
|
60
|
-
let n = i, r = a(e), s = BigInt(t);
|
|
61
|
-
for (; s !== 0n;) s % 2n == 1n && (n = l(n, r)), r = u(r), s /= 2n;
|
|
62
|
-
return o(n);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
//#endregion
|
|
66
|
-
export { d as BabyJubRN };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`./poseidon.cjs`),t=require(`../functions/utils/bigint-math.utils.cjs`),n=require(`./babyJub.cjs`);let r=require(`@noble/hashes/blake1.js`);var i=21888242871839275222246405745257275088614511777268538073601725287587578984328n/8n,a=(e,t=0,n=e.length-t)=>{let r=0n;for(let i=n-1;i>=0;--i)r=(r<<8n)+BigInt(e[t+i]);return r},o=(e,n,r,i)=>{let a=t.mod(r);for(let t=0;t<i;t+=1)e[n+t]=Number(a&255n),a>>=8n},s=e=>t.mod(e,i),c=e=>{let t=new Uint8Array(e);return t[0]&=248,t[31]&=127,t[31]|=64,t},l=class{constructor(e,t){this.babyJub=e,this.poseidon=t}prv2pub(e){let t=a(c((0,r.blake512)(e).slice(0,32)),0,32);return this.babyJub.mulPointEscalar(this.babyJub.Base8,t/8n)}signPoseidon(e,n){let i=c((0,r.blake512)(e)),l=a(i,0,32),u=this.babyJub.mulPointEscalar(this.babyJub.Base8,l/8n),d=new Uint8Array(64);d.set(i.slice(32),0),o(d,32,n,32);let f=s(a((0,r.blake512)(d),0,64)),p=this.babyJub.mulPointEscalar(this.babyJub.Base8,f),m=this.poseidon([p[0],p[1],u[0],u[1],n]);return{R8:p,S:s(f+s(t.mod(BigInt(this.poseidon.F.toString(m)))*l))}}},u=async()=>(await e.poseidonHolder.init(),await n.jubHolder.init(),new l(n.jubHolder.getJub(),e.poseidonHolder.getPoseidon()));exports.buildEddsaRN=u;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BabyJubRN } from './BabyJubRN';
|
|
2
|
-
type PoseidonFn = {
|
|
3
|
-
(inputs: bigint[]): bigint;
|
|
4
|
-
F: {
|
|
5
|
-
toString: (v: bigint | number | string) => string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export declare class EddsaRN {
|
|
9
|
-
private readonly babyJub;
|
|
10
|
-
private readonly poseidon;
|
|
11
|
-
constructor(babyJub: BabyJubRN, poseidon: PoseidonFn);
|
|
12
|
-
prv2pub(prv: Uint8Array): [bigint, bigint];
|
|
13
|
-
signPoseidon(prv: Uint8Array, msg: bigint): {
|
|
14
|
-
R8: [bigint, bigint];
|
|
15
|
-
S: bigint;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export declare const buildEddsaRN: () => Promise<EddsaRN>;
|
|
19
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { poseidonHolder as e } from "./poseidon.mjs";
|
|
2
|
-
import { mod as t } from "../functions/utils/bigint-math.utils.mjs";
|
|
3
|
-
import { jubHolder as n } from "./babyJub.mjs";
|
|
4
|
-
import { blake512 as r } from "@noble/hashes/blake1.js";
|
|
5
|
-
//#region libs/shared/common/src/crypto/EddsaRN.ts
|
|
6
|
-
var i = 21888242871839275222246405745257275088614511777268538073601725287587578984328n / 8n, a = (e, t = 0, n = e.length - t) => {
|
|
7
|
-
let r = 0n;
|
|
8
|
-
for (let i = n - 1; i >= 0; --i) r = (r << 8n) + BigInt(e[t + i]);
|
|
9
|
-
return r;
|
|
10
|
-
}, o = (e, n, r, i) => {
|
|
11
|
-
let a = t(r);
|
|
12
|
-
for (let t = 0; t < i; t += 1) e[n + t] = Number(a & 255n), a >>= 8n;
|
|
13
|
-
}, s = (e) => t(e, i), c = (e) => {
|
|
14
|
-
let t = new Uint8Array(e);
|
|
15
|
-
return t[0] &= 248, t[31] &= 127, t[31] |= 64, t;
|
|
16
|
-
}, l = class {
|
|
17
|
-
constructor(e, t) {
|
|
18
|
-
this.babyJub = e, this.poseidon = t;
|
|
19
|
-
}
|
|
20
|
-
prv2pub(e) {
|
|
21
|
-
let t = a(c(r(e).slice(0, 32)), 0, 32);
|
|
22
|
-
return this.babyJub.mulPointEscalar(this.babyJub.Base8, t / 8n);
|
|
23
|
-
}
|
|
24
|
-
signPoseidon(e, n) {
|
|
25
|
-
let i = c(r(e)), l = a(i, 0, 32), u = this.babyJub.mulPointEscalar(this.babyJub.Base8, l / 8n), d = new Uint8Array(64);
|
|
26
|
-
d.set(i.slice(32), 0), o(d, 32, n, 32);
|
|
27
|
-
let f = s(a(r(d), 0, 64)), p = this.babyJub.mulPointEscalar(this.babyJub.Base8, f), m = this.poseidon([
|
|
28
|
-
p[0],
|
|
29
|
-
p[1],
|
|
30
|
-
u[0],
|
|
31
|
-
u[1],
|
|
32
|
-
n
|
|
33
|
-
]);
|
|
34
|
-
return {
|
|
35
|
-
R8: p,
|
|
36
|
-
S: s(f + s(t(BigInt(this.poseidon.F.toString(m))) * l))
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
}, u = async () => (await e.init(), await n.init(), new l(n.getJub(), e.getPoseidon()));
|
|
40
|
-
//#endregion
|
|
41
|
-
export { u as buildEddsaRN };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare class JubHolder {
|
|
2
|
-
private babyjub;
|
|
3
|
-
init(): Promise<void>;
|
|
4
|
-
getJub(): any;
|
|
5
|
-
}
|
|
6
|
-
export declare const jubHolder: JubHolder;
|
|
7
|
-
export declare const babyJubInstance: () => any;
|
|
8
|
-
export type JubPoint<T = bigint> = [T, T];
|
|
9
|
-
export interface BabyJubType {
|
|
10
|
-
mulPointEscalar: (point: [Uint8Array, Uint8Array], s: bigint) => [Uint8Array, Uint8Array];
|
|
11
|
-
F: {
|
|
12
|
-
toString: (arr: Uint8Array) => string;
|
|
13
|
-
};
|
|
14
|
-
Base8: [Uint8Array, Uint8Array];
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
interface KeyPair {
|
|
2
|
-
privateKey: Uint8Array;
|
|
3
|
-
publicKey: Uint8Array;
|
|
4
|
-
}
|
|
5
|
-
export declare const encryptDualPath: (msgBytes: Uint8Array, senderViewingKey: KeyPair, receiver1PublicKey: Uint8Array, receiver2PublicKey: Uint8Array) => Promise<{
|
|
6
|
-
blindedSenderKey: Uint8Array<ArrayBufferLike>;
|
|
7
|
-
wrapKeyReceiver1: Uint8Array<ArrayBufferLike>;
|
|
8
|
-
wrapKeyReceiver2: Uint8Array<ArrayBufferLike>;
|
|
9
|
-
ciphertext: Uint8Array<ArrayBufferLike>;
|
|
10
|
-
nonce: Uint8Array<ArrayBufferLike>;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const decryptDualPath: (ciphertext: Uint8Array, privateKey: Uint8Array, blindedSenderKey: Uint8Array, wrapKey: Uint8Array, nonce: Uint8Array) => Promise<string>;
|
|
13
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Multi-recipient encryption: encrypt the body ONCE with a random content key
|
|
3
|
-
* (XSalsa20-Poly1305 via crypto_secretbox), then crypto_box_seal that 32-byte
|
|
4
|
-
* content key once per recipient. Each recipient opens its sealed key and decrypts
|
|
5
|
-
* the shared body, so message size does not scale with the number of recipients.
|
|
6
|
-
*
|
|
7
|
-
* Everything is packed into a single Uint8Array:
|
|
8
|
-
* [ count (1 byte) ][ nonce (NONCEBYTES) ][ sealedKey_0 ]...[ sealedKey_n ][ ciphertext ]
|
|
9
|
-
* Each sealed key has a fixed length (crypto_box_SEALBYTES + content-key size).
|
|
10
|
-
*
|
|
11
|
-
* Public/private keys are X25519 (libsodium crypto_box) keys in hex, matching ecdh.ts.
|
|
12
|
-
*/
|
|
13
|
-
interface SealedParts {
|
|
14
|
-
nonce: Uint8Array;
|
|
15
|
-
sealedKeys: Uint8Array[];
|
|
16
|
-
ciphertext: Uint8Array;
|
|
17
|
-
}
|
|
18
|
-
export declare const pack: ({ nonce, sealedKeys, ciphertext }: SealedParts) => Uint8Array;
|
|
19
|
-
export declare const unpack: (packed: Uint8Array) => SealedParts;
|
|
20
|
-
export declare const encryptSealedKeys: (msgBytes: Uint8Array, recipientPublicKeys: string[]) => Uint8Array;
|
|
21
|
-
export declare const decryptSealedKeys: (packed: Uint8Array, privateKey: string, publicKey: string, recipientIndex: number) => Buffer;
|
|
22
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare class PoseidonHolder {
|
|
2
|
-
private poseidon;
|
|
3
|
-
init(): Promise<void>;
|
|
4
|
-
getPoseidon(): any;
|
|
5
|
-
}
|
|
6
|
-
export declare const poseidonHolder: PoseidonHolder;
|
|
7
|
-
export declare function poseidonFunction<T = any>(...args: T[]): bigint;
|
|
8
|
-
/**
|
|
9
|
-
* hashing algorithm implementation
|
|
10
|
-
* @param args rest parameter to take unlimited number of arguments
|
|
11
|
-
* @returns poseidon hash in base 16
|
|
12
|
-
*/
|
|
13
|
-
export declare const poseidonHash: (...args: unknown[]) => string;
|
|
14
|
-
export type PoseidonHasher = (...args: unknown[]) => string;
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const preProcessing: (forWorker?: boolean) => Promise<void>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Connection, Keypair, VersionedTransaction } from '@solana/web3.js';
|
|
2
|
-
import { ethers } from 'ethers';
|
|
3
|
-
import { SubAccount } from '../../types/proxy.types';
|
|
4
|
-
export declare class AccountActions {
|
|
5
|
-
static getEvmPrivateKeyFromSolanaPrivateKey: (solanaPrivateKey: string) => string;
|
|
6
|
-
static getSolanaPrivateKeyFromEvmPrivateKey: (evmPrivateKey: string) => string;
|
|
7
|
-
static getSolanaSignerFromPrivateKey: (secretKeyBase58: string) => Keypair;
|
|
8
|
-
static getSignerAddressFromPrivateKey(chainId: number, privateKey: string): string;
|
|
9
|
-
static signMessageFromPrivateKey: (chainId: number, privateKey: string, message: string) => Promise<string>;
|
|
10
|
-
static signSolanaTransactionFromPrivateKey: (chainId: number, privateKey: string, transaction: VersionedTransaction) => void;
|
|
11
|
-
static sendAndSignSolanaTransactionFromPrivateKey: (connection: Connection, privateKey: string, transaction: VersionedTransaction, skipPreflight?: boolean) => Promise<string>;
|
|
12
|
-
static signTypedDataFromPrivateKey: (chainId: number, privateKey: string, domain: ethers.TypedDataDomain, types: Record<string, Array<ethers.TypedDataField>>, value: Record<string, any>) => Promise<string>;
|
|
13
|
-
static authorizeDelegation: (chainId: number, privateKey: string, implementation: string, nonce?: number) => Promise<ethers.Authorization>;
|
|
14
|
-
static getAddressFromSubAccount: (chainId: number, subAccount: SubAccount) => string | undefined;
|
|
15
|
-
static getPrivateKeyFromSubAccount: (chainId: number, subAccount: SubAccount) => string | undefined;
|
|
16
|
-
static getAvailableAddressFromSubAccount: (subAccount: SubAccount) => string;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AccountActions';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TokenApproval } from '../../types/approvals.types';
|
|
2
|
-
export declare class EventsPublicApprovalsDB {
|
|
3
|
-
private updateMutexes;
|
|
4
|
-
private readonly approvalTopic;
|
|
5
|
-
private readonly approvalForAllTopic;
|
|
6
|
-
private readonly getApprovedSelector;
|
|
7
|
-
private readonly isApprovedForAllSelector;
|
|
8
|
-
private readonly ALCHEMY_URLS;
|
|
9
|
-
private getMutex;
|
|
10
|
-
private getAlchemyUrl;
|
|
11
|
-
getApprovals(chainId: number, walletAddress: string): Promise<TokenApproval[]>;
|
|
12
|
-
private getLastProcessedBlock;
|
|
13
|
-
private updateLastProcessedBlock;
|
|
14
|
-
private getApprovalEvents;
|
|
15
|
-
private checkCurrentAllowances;
|
|
16
|
-
fetchAndUpdatePublicApprovals(walletAddress: string, chainId: number): Promise<void>;
|
|
17
|
-
}
|
|
18
|
-
export declare const eventsPublicApprovalsDB: EventsPublicApprovalsDB;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './EventsPublicApprovalsDB';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SolanaEvent } from '../../types/solana.types';
|
|
2
|
-
import { ethers } from 'ethers';
|
|
3
|
-
export declare class BlockchainEvent {
|
|
4
|
-
eventName: string;
|
|
5
|
-
transactionHash: string;
|
|
6
|
-
blockNumber: number;
|
|
7
|
-
private args;
|
|
8
|
-
constructor(eventName: string, transactionHash: string, blockNumber: number, args: string);
|
|
9
|
-
static fromSerialized(serialized: string): BlockchainEvent;
|
|
10
|
-
static fromEthers(event: ethers.EventLog): BlockchainEvent;
|
|
11
|
-
static fromSolanaEvent(event: SolanaEvent): BlockchainEvent;
|
|
12
|
-
getArg<T>(key: string): T;
|
|
13
|
-
serialize(): string;
|
|
14
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { ethers } from 'ethers';
|
|
2
|
-
import { Types as TronWebTypes } from 'tronweb';
|
|
3
|
-
import { FeeStructure, HinkalConfig, LoginMessageMode } from '../../types/hinkal.types';
|
|
4
|
-
import { ContractType, EthereumNetwork } from '../../types/ethereum-network.types';
|
|
5
|
-
import { EncryptedOutputWithSign } from '../../types/commitments.types';
|
|
6
|
-
import { ExternalActionId } from '../../types/external-action.types';
|
|
7
|
-
import { IMultiThreadedUtxoUtils } from '../../types/IMultiThreadedUtxoUtils';
|
|
8
|
-
import { ERC20Token, PrivateRecipientInfo, TokenBalance, TokenChanges } from '../../types/token.types';
|
|
9
|
-
import { UserKeys } from '../crypto-keys/keys';
|
|
10
|
-
import { IProviderAdapter } from '../provider-adapter/IProviderAdapter';
|
|
11
|
-
import { IHinkal } from './IHinkal';
|
|
12
|
-
import { MerkleTree } from '../merkle-tree';
|
|
13
|
-
import { IAPI } from '../../API';
|
|
14
|
-
import { ICacheDevice } from '../../types/ICacheDevice';
|
|
15
|
-
import { StealthAddressStructure, TypedData } from '../../types/circom-data.types';
|
|
16
|
-
import { SubAccount } from '../../types/proxy.types';
|
|
17
|
-
import { AdminTransactionType } from '../../types/admin.types';
|
|
18
|
-
import { ClientCommitmentsSnapshotService, ClientNullifierSnapshotService, ClientSolanaCommitmentsSnapshotService, ClientSolanaNullifierSnapshotService } from '../snapshot';
|
|
19
|
-
import { Idl, Program } from '@coral-xyz/anchor';
|
|
20
|
-
import { PublicKey } from '@solana/web3.js';
|
|
21
|
-
import { BridgeRecipient } from '../../types/bridging-tx.types';
|
|
22
|
-
import { NearBridgeParams, NearBridgeResult } from '../../types/near-intents.types';
|
|
23
|
-
import { Utxo } from '../utxo/Utxo';
|
|
24
|
-
import { PrivateBalancesState } from '../../types/balances.types';
|
|
25
|
-
import { ScheduledTransactionByIdResponse } from '../../API/scheduled-transactions-calls';
|
|
26
|
-
import { DepositAndSendExtendedResult } from '../../types';
|
|
27
|
-
import { Mutex } from 'async-mutex';
|
|
28
|
-
export declare class Hinkal<ConnectorType> implements IHinkal {
|
|
29
|
-
private ethereumProviderAdapter?;
|
|
30
|
-
private solanaProviderAdapter?;
|
|
31
|
-
private tronProviderAdapter?;
|
|
32
|
-
userKeys: UserKeys;
|
|
33
|
-
readonly signingMessage: string;
|
|
34
|
-
readonly privateTransferSigningMessage: string;
|
|
35
|
-
merkleTreeHinkalByChain: Record<number, MerkleTree<bigint>>;
|
|
36
|
-
nullifiersByChain: Record<number, Set<string>>;
|
|
37
|
-
encryptedOutputsByChain: Record<number, EncryptedOutputWithSign[]>;
|
|
38
|
-
commitmentsSnapshotServiceByChain: Record<number, ClientCommitmentsSnapshotService | ClientSolanaCommitmentsSnapshotService | undefined>;
|
|
39
|
-
nullifierSnapshotServiceByChain: Record<number, ClientNullifierSnapshotService | ClientSolanaNullifierSnapshotService | undefined>;
|
|
40
|
-
utxoUtils: IMultiThreadedUtxoUtils;
|
|
41
|
-
private lastCallState;
|
|
42
|
-
cacheDevice: ICacheDevice;
|
|
43
|
-
balanceFetchingMutexByChain: Map<number, Mutex>;
|
|
44
|
-
generateProofRemotely: boolean;
|
|
45
|
-
private disableMerkleTreeUpdates;
|
|
46
|
-
readonly allowParallelBalanceLocalDecryption: boolean;
|
|
47
|
-
private readonly privateBalances;
|
|
48
|
-
constructor(hinkalConfig?: HinkalConfig);
|
|
49
|
-
private enforceRateLimit;
|
|
50
|
-
getProviderAdapter(chainId?: number): IProviderAdapter<ConnectorType>;
|
|
51
|
-
initProviderAdapter(connector: ConnectorType, providerAdapter: IProviderAdapter<ConnectorType>): Promise<void>;
|
|
52
|
-
getSigningMessage(mode?: LoginMessageMode): string;
|
|
53
|
-
signHinkalMessage(mode?: LoginMessageMode): Promise<string>;
|
|
54
|
-
signSolanaLedgerMessage(): Promise<{
|
|
55
|
-
signature: string;
|
|
56
|
-
txMessageForSolanaLedger: string;
|
|
57
|
-
}>;
|
|
58
|
-
initUserKeys(mode?: LoginMessageMode): Promise<void>;
|
|
59
|
-
initUserKeysWithSignature(signature: string): void;
|
|
60
|
-
initUserKeysFromSeedPhrases(seedPhrases: string[]): Promise<void>;
|
|
61
|
-
initUserKeysWithEnclaveSignature(signInMode?: LoginMessageMode): Promise<string | undefined>;
|
|
62
|
-
storeAndGetInitialSignature(authSignature: string, isSolanaLedger?: boolean, txMessageForSolanaLedger?: string): Promise<string>;
|
|
63
|
-
resetMerkle(chains?: number[]): Promise<void>;
|
|
64
|
-
getTronWeb(): import('tronweb').TronWeb;
|
|
65
|
-
getSupportedChains(): number[];
|
|
66
|
-
waitForTransaction(chainId: number, transactionHash: string, confirmations?: number): Promise<boolean>;
|
|
67
|
-
getContract(chainId: number, contractType: ContractType, contractAddress?: undefined): ethers.Contract;
|
|
68
|
-
getContractWithFetcherByChainId(chainId: number, contractType: ContractType, contractAddress?: undefined): ethers.Contract;
|
|
69
|
-
signMessage(message: string): Promise<string>;
|
|
70
|
-
signTypedData(domain: ethers.TypedDataDomain, types: Record<string, ethers.TypedDataField[]>, value: Record<string, unknown>): Promise<string>;
|
|
71
|
-
signWithSubAccount(chainId: number, messageToSign: string | undefined, typedData: TypedData | undefined, subAccount: SubAccount): Promise<string>;
|
|
72
|
-
getContractWithSigner(chainId: number, contractType: ContractType, contractAddress?: string): ethers.Contract;
|
|
73
|
-
getContractWithFetcher(chainId: number, contractType: ContractType, contractAddress?: string): ethers.Contract;
|
|
74
|
-
isSelectedNetworkSupported(chainId: number): boolean;
|
|
75
|
-
switchNetwork(network: EthereumNetwork): Promise<void>;
|
|
76
|
-
isPermitterAvailable(chainId: number): boolean;
|
|
77
|
-
disconnectFromConnector(): Promise<void>;
|
|
78
|
-
resetProviderAdapters(): Promise<void>;
|
|
79
|
-
private updateProviderAdapter;
|
|
80
|
-
setListeners(): Promise<void>;
|
|
81
|
-
private onAccountChanged;
|
|
82
|
-
private onChainChanged;
|
|
83
|
-
monitorConnectedAddress(chainId: number): Promise<void>;
|
|
84
|
-
getBalances(chainId: number, passedShieldedPrivateKey: string, passedShieldedPublicKey: string, ethAddress: string, resetCacheBefore?: boolean, updateTokensListBefore?: boolean, useBlockedUtxos?: boolean): Promise<Map<string, TokenBalance>>;
|
|
85
|
-
getTotalBalance(chainId: number, _userKeys?: UserKeys, _ethAddress?: string, resetCacheBefore?: boolean, updateTokensListBefore?: boolean, useBlockedUtxos?: boolean): Promise<TokenBalance[]>;
|
|
86
|
-
getStuckShieldedBalances(chainId: number, _userKeys?: UserKeys, _ethAddress?: string, resetCacheBefore?: boolean, updateTokensListBefore?: boolean): Promise<TokenBalance[]>;
|
|
87
|
-
get privateBalancesWithUSD(): PrivateBalancesState;
|
|
88
|
-
onPrivateBalancesWithUSDChange(callback: (state: PrivateBalancesState) => void): () => void;
|
|
89
|
-
getHinkalTreeRootHash(chainId: number): Promise<bigint>;
|
|
90
|
-
resetMerkleTreesIfNecessary(chainIdsToCheck?: number[]): Promise<void>;
|
|
91
|
-
getEthereumAddress(): Promise<string>;
|
|
92
|
-
getEthereumAddressByChain(chainId: number): Promise<string>;
|
|
93
|
-
getRandomRelay(chainId: number, markAsPending?: boolean): Promise<string | undefined>;
|
|
94
|
-
getGasPrice(chainId: number): Promise<bigint>;
|
|
95
|
-
getAPI(): IAPI;
|
|
96
|
-
snapshotsClearInterval(): void;
|
|
97
|
-
destroy(): Promise<void>;
|
|
98
|
-
getRecipientInfo(): string;
|
|
99
|
-
deposit(erc20Tokens: ERC20Token[], amountChanges: bigint[], preEstimateGas?: boolean, returnTxData?: boolean): Promise<ethers.TransactionResponse | ethers.TransactionRequest | string | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
|
|
100
|
-
depositSolana(amount: bigint, token: ERC20Token, returnTxData?: boolean): Promise<string>;
|
|
101
|
-
depositForOther(erc20Tokens: ERC20Token[], amountChanges: bigint[], recipientInfo: string, preEstimateGas?: boolean, returnTxData?: boolean, action?: AdminTransactionType): Promise<ethers.TransactionResponse | ethers.TransactionRequest | string | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
|
|
102
|
-
depositSolanaForOther(amount: bigint, token: ERC20Token, recipientInfo: string, returnTxData?: boolean, action?: AdminTransactionType): Promise<string>;
|
|
103
|
-
depositAndWithdraw(erc20Token: ERC20Token, recipientAmounts: bigint[], recipientAddresses: string[], txCompletionTime?: number, feeStructureOverride?: FeeStructure, ref?: string, action?: AdminTransactionType, dashboardAccountId?: string, preEstimateGas?: boolean): Promise<DepositAndSendExtendedResult>;
|
|
104
|
-
claimUtxo(erc20Token: ERC20Token, utxo: Utxo, feeStructureOverride?: FeeStructure, claimableSignature?: string): Promise<string>;
|
|
105
|
-
depositAndBridge(erc20Token: ERC20Token, recipientBridges: BridgeRecipient[], txCompletionTime?: number, feeStructureOverride?: FeeStructure, ref?: string, action?: AdminTransactionType, dashboardAccountId?: string, preEstimateGas?: boolean): Promise<DepositAndSendExtendedResult>;
|
|
106
|
-
checkSendTransactionStatus(scheduleId: string): Promise<ScheduledTransactionByIdResponse>;
|
|
107
|
-
nearDepositAndBridge(erc20Token: ERC20Token, recipientAmounts: bigint[], recipientAddresses: string[], params: NearBridgeParams, txCompletionTime?: number, feeStructureOverride?: FeeStructure, ref?: string, action?: AdminTransactionType, dashboardAccountId?: string): Promise<NearBridgeResult>;
|
|
108
|
-
prooflessDeposit(erc20Tokens: ERC20Token[], amountChanges: bigint[], stealthAddressStructures?: StealthAddressStructure[], action?: AdminTransactionType, returnTxData?: boolean): Promise<string | ethers.TransactionRequest | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract>>;
|
|
109
|
-
prooflessDepositWithPublicFee(erc20Token: ERC20Token, amounts: bigint[], stealthAddressStructures: StealthAddressStructure[], feeAmount: bigint, action?: AdminTransactionType): Promise<string>;
|
|
110
|
-
getSolanaProgram(idl: Idl): Program;
|
|
111
|
-
getSolanaPublicKey(): PublicKey;
|
|
112
|
-
transfer(erc20Tokens: ERC20Token[], amountChanges: bigint[], recipientAddress: string, feeToken?: string, feeStructureOverride?: FeeStructure, action?: AdminTransactionType): Promise<string>;
|
|
113
|
-
withdraw(erc20Tokens: ERC20Token[], deltaAmounts: bigint[], recipientAddress: string, isRelayerOff: boolean, feeToken?: string, feeStructureOverride?: FeeStructure, action?: AdminTransactionType): Promise<ethers.TransactionResponse | string>;
|
|
114
|
-
withdrawStuckUtxos(erc20Token: ERC20Token, recipientAddress: string): Promise<string[]>;
|
|
115
|
-
swap(erc20Tokens: ERC20Token[], deltaAmounts: bigint[], externalActionId: ExternalActionId, swapData: string, feeToken?: string, feeStructureOverride?: FeeStructure, action?: AdminTransactionType): Promise<string>;
|
|
116
|
-
swapSolana(erc20Tokens: ERC20Token[], deltaAmounts: bigint[], swapData: string, feeToken?: string, feeStructureOverride?: FeeStructure, action?: AdminTransactionType): Promise<string>;
|
|
117
|
-
actionReceive(erc20Tokens: ERC20Token[], deltaAmounts: bigint[], feeToken?: string, feeStructureOverride?: FeeStructure, subAccount?: SubAccount, action?: AdminTransactionType): Promise<string>;
|
|
118
|
-
actionPrivateWallet(chainId: number, erc20Tokens: ERC20Token[], deltaAmounts: bigint[], onChainCreation: boolean[], ops: string[], emporiumTokenChanges: TokenChanges<bigint>[], subAccount?: SubAccount, feeToken?: string, feeStructureOverride?: FeeStructure, relayOverride?: string, autoDepositBack?: boolean, maxGasInDollar?: string, action?: AdminTransactionType, privateRecipientInfo?: PrivateRecipientInfo): Promise<string>;
|
|
119
|
-
proxySwap(erc20Tokens: ERC20Token[], deltaAmounts: bigint[], externalActionId: ExternalActionId, swapData: string, isTheSameChainSwap: boolean, subAccount: SubAccount, feeToken?: string, feeStructureOverride?: FeeStructure, autoDepositBack?: boolean, maxGasInDollar?: string, action?: AdminTransactionType): Promise<string>;
|
|
120
|
-
proxyToPrivate(erc20Tokens: ERC20Token[], deltaAmountsBase: bigint[], subAccount: SubAccount, recipientInfo: string, feeToken?: string, feeStructureOverride?: FeeStructure, action?: AdminTransactionType): Promise<string>;
|
|
121
|
-
proxySend(erc20Tokens: ERC20Token[], amounts: bigint[], subAccount: SubAccount, recipientAddress: string, feeToken?: string, feeStructureOverride?: FeeStructure, action?: AdminTransactionType): Promise<string>;
|
|
122
|
-
multiSendPrivateRecipients(erc20Tokens: ERC20Token[], amounts: bigint[], extendedRecipientInfos?: string[]): Promise<string>;
|
|
123
|
-
areMerkleTreeUpdatesDisabled(): boolean;
|
|
124
|
-
updateMerkleTreeUpdates(value: boolean): void;
|
|
125
|
-
}
|