@gurge/sdk-react-native 0.3.136 → 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/HinkalProvider.cjs +1 -0
- package/{react-native/HinkalProvider.mjs → HinkalProvider.mjs} +2 -2
- package/{react-native/HinkalWebViewWorker.cjs → HinkalWebViewWorker.cjs} +1 -1
- package/{react-native/HinkalWebViewWorker.mjs → HinkalWebViewWorker.mjs} +5 -5
- package/README.md +427 -2
- package/bridge/HinkalRNWorker.cjs +1 -0
- package/{react-native/bridge → bridge}/HinkalRNWorker.d.ts +1 -1
- package/{react-native/bridge → bridge}/HinkalRNWorker.mjs +1 -1
- package/{react-native/bridge → bridge}/serialization.utils.mjs +1 -1
- package/common/src/functions/utils/index.cjs +1 -1
- package/common/src/functions/utils/index.mjs +0 -1
- 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/viteWorkerURL.constant.mjs +3 -3
- 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/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.mjs +1 -1
- package/package.json +5 -6
- package/scripts/patch-libsodium-for-rn.js +5 -3
- package/shims/crypto.cjs +1 -1
- 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/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 -1
- 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
- package/react-native/HinkalProvider.cjs +0 -1
- package/react-native/bridge/HinkalRNWorker.cjs +0 -1
- /package/{react-native/HinkalProvider.d.ts → HinkalProvider.d.ts} +0 -0
- /package/{react-native/HinkalWebViewWorker.d.ts → HinkalWebViewWorker.d.ts} +0 -0
- /package/{react-native/bridge → bridge}/serialization.utils.cjs +0 -0
- /package/{react-native/bridge → bridge}/serialization.utils.d.ts +0 -0
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { BigIntable } from './big-intable.types';
|
|
2
|
-
export interface EncryptedOutputWithSign<Sign = boolean> {
|
|
3
|
-
value: string;
|
|
4
|
-
isPositive: Sign;
|
|
5
|
-
isBlocked: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface EncryptedOutputWithCommitment {
|
|
8
|
-
commitment: string;
|
|
9
|
-
encryptedOutput: string;
|
|
10
|
-
}
|
|
11
|
-
export interface OutputsWithSignAndLast<Sign = boolean> {
|
|
12
|
-
additionalEncryptedOutputs: EncryptedOutputWithSign<Sign>[];
|
|
13
|
-
lastOutput: string;
|
|
14
|
-
}
|
|
15
|
-
export interface CommitmentEvent<BN = BigIntable> {
|
|
16
|
-
commitment: BN;
|
|
17
|
-
index: BN;
|
|
18
|
-
encryptedOutput: string;
|
|
19
|
-
}
|
|
20
|
-
export interface SolanaCommitmentEvent {
|
|
21
|
-
commitment: number[];
|
|
22
|
-
index: number[];
|
|
23
|
-
encrypted_output: number[];
|
|
24
|
-
on_chain_data: number[][];
|
|
25
|
-
}
|
|
26
|
-
export interface NullifierEvent<T> {
|
|
27
|
-
nullifier: T;
|
|
28
|
-
}
|
|
29
|
-
export interface RegisterEvent {
|
|
30
|
-
ethereumAddress: string;
|
|
31
|
-
shieldedAddressHash: string;
|
|
32
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare enum ConfirmationRequestType {
|
|
2
|
-
'CONNECT' = "CONNECT",
|
|
3
|
-
'PERSONAL_SIGN' = "PERSONAL_SIGN",
|
|
4
|
-
'SIGN_TYPE_V4' = "SIGN_TYPE_V4",
|
|
5
|
-
'SEND_TRANSACTION' = "SEND_TRANSACTION",
|
|
6
|
-
'SEND_BATCH_TRANSACTION' = "SEND_BATCH_TRANSACTION",
|
|
7
|
-
'UNSUPPORTED_NETWORK' = "UNSUPPORTED_NETWORK",
|
|
8
|
-
'UNSUPPORTED_METHOD' = "UNSUPPORTED_METHOD",
|
|
9
|
-
'BLACKLISTED_DAPP' = "BLACKLISTED_DAPP"
|
|
10
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { Contact } from './contacts.types';
|
|
2
|
-
export declare enum MemberRole {
|
|
3
|
-
OWNER = "Owner",
|
|
4
|
-
MEMBER = "Member"
|
|
5
|
-
}
|
|
6
|
-
export interface InvitedMemberInterface {
|
|
7
|
-
email: string;
|
|
8
|
-
username?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface InvitedMember {
|
|
11
|
-
email: string;
|
|
12
|
-
invitedAt: Date;
|
|
13
|
-
username: string;
|
|
14
|
-
}
|
|
15
|
-
export interface AccountMemberInterface {
|
|
16
|
-
email: string;
|
|
17
|
-
role: MemberRole;
|
|
18
|
-
username: string;
|
|
19
|
-
providerUserId: string;
|
|
20
|
-
profileImage?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface AccountMember {
|
|
23
|
-
email: string;
|
|
24
|
-
role: MemberRole;
|
|
25
|
-
username: string;
|
|
26
|
-
providerUserId: string;
|
|
27
|
-
profileImage?: string;
|
|
28
|
-
updatedAt: Date;
|
|
29
|
-
createdAt: Date;
|
|
30
|
-
}
|
|
31
|
-
export interface DashboardAccountInterface {
|
|
32
|
-
contacts: Contact[];
|
|
33
|
-
accessToken: string;
|
|
34
|
-
refreshToken: string;
|
|
35
|
-
updatedAt: Date;
|
|
36
|
-
createdAt: Date;
|
|
37
|
-
organizationName?: string;
|
|
38
|
-
defaultDeliveryMethod?: DeliveryMethod;
|
|
39
|
-
defaultNetworkChainId?: number;
|
|
40
|
-
organizationEmail?: string;
|
|
41
|
-
organizationImage?: string;
|
|
42
|
-
ethereumAddress?: string;
|
|
43
|
-
members?: AccountMember[];
|
|
44
|
-
invitedMembers?: InvitedMember[];
|
|
45
|
-
notifications?: {
|
|
46
|
-
payoutApprovalRequested: boolean;
|
|
47
|
-
largePayoutAlerts: boolean;
|
|
48
|
-
balanceLowWarning: boolean;
|
|
49
|
-
};
|
|
50
|
-
encryptedEvmBalances?: string;
|
|
51
|
-
encryptedSolanaBalances?: string;
|
|
52
|
-
encryptedTronBalances?: string;
|
|
53
|
-
balancesUpdatedAt?: Date;
|
|
54
|
-
id: string;
|
|
55
|
-
}
|
|
56
|
-
export interface DashboardDbBalance {
|
|
57
|
-
balance: string;
|
|
58
|
-
chainId: number;
|
|
59
|
-
erc20TokenAddress: string;
|
|
60
|
-
}
|
|
61
|
-
interface DashboardAccountBase {
|
|
62
|
-
contacts: Contact[];
|
|
63
|
-
members?: AccountMember[];
|
|
64
|
-
invitedMembers?: InvitedMember[];
|
|
65
|
-
organizationName?: string;
|
|
66
|
-
defaultDeliveryMethod?: DeliveryMethod;
|
|
67
|
-
defaultNetworkChainId?: number;
|
|
68
|
-
organizationEmail?: string;
|
|
69
|
-
organizationImage?: string;
|
|
70
|
-
ethereumAddress?: string;
|
|
71
|
-
tronAddress?: string;
|
|
72
|
-
solanaAddress?: string;
|
|
73
|
-
notifications?: {
|
|
74
|
-
payoutApprovalRequested: boolean;
|
|
75
|
-
largePayoutAlerts: boolean;
|
|
76
|
-
balanceLowWarning: boolean;
|
|
77
|
-
};
|
|
78
|
-
encryptedEvmBalances?: string;
|
|
79
|
-
encryptedSolanaBalances?: string;
|
|
80
|
-
encryptedTronBalances?: string;
|
|
81
|
-
id: string;
|
|
82
|
-
}
|
|
83
|
-
export interface DeserializedEncryptedBalances {
|
|
84
|
-
privateBalances: DashboardDbBalance[];
|
|
85
|
-
publicBalances: DashboardDbBalance[];
|
|
86
|
-
}
|
|
87
|
-
export interface DashboardAccount extends DashboardAccountBase {
|
|
88
|
-
balancesUpdatedAt?: Date;
|
|
89
|
-
updatedAt: Date;
|
|
90
|
-
createdAt: Date;
|
|
91
|
-
}
|
|
92
|
-
export interface DashboardAccountClient extends DashboardAccountBase {
|
|
93
|
-
balancesUpdatedAt?: string;
|
|
94
|
-
updatedAt: string;
|
|
95
|
-
createdAt: string;
|
|
96
|
-
}
|
|
97
|
-
export declare enum DeliveryMethod {
|
|
98
|
-
CONFIDENTIAL = "Confidential Settlement",
|
|
99
|
-
DIRECT = "Direct to wallet"
|
|
100
|
-
}
|
|
101
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare enum PayoutType {
|
|
2
|
-
SINGLE = "Single",
|
|
3
|
-
BATCH = "Batch"
|
|
4
|
-
}
|
|
5
|
-
export declare enum PayoutStatus {
|
|
6
|
-
PENDING = "Pending",
|
|
7
|
-
REJECTED = "Rejected",
|
|
8
|
-
COMPLETED = "Completed"
|
|
9
|
-
}
|
|
10
|
-
export interface PayoutItem {
|
|
11
|
-
payoutType: PayoutType;
|
|
12
|
-
payoutStatus: PayoutStatus;
|
|
13
|
-
usePrivateBalance: boolean;
|
|
14
|
-
recipient: string;
|
|
15
|
-
selectedTokenChainId: number;
|
|
16
|
-
selectedTokenAddress: string;
|
|
17
|
-
amount: string;
|
|
18
|
-
publicTransfer: boolean;
|
|
19
|
-
destinationChainId?: number;
|
|
20
|
-
}
|
|
21
|
-
export interface DashboardPayout {
|
|
22
|
-
id: string;
|
|
23
|
-
dashboardAccountId: string;
|
|
24
|
-
status: PayoutStatus;
|
|
25
|
-
payoutItems: PayoutItem[];
|
|
26
|
-
providerUserId: string;
|
|
27
|
-
createdAt: string;
|
|
28
|
-
updatedAt: string;
|
|
29
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PayActivityStatus, PayActivityTypes, TransferVisibility } from './pay-activities.types';
|
|
2
|
-
interface DashboardTransactionBase {
|
|
3
|
-
hashedDashboardAccountId: string;
|
|
4
|
-
activityType: PayActivityTypes;
|
|
5
|
-
amount: string;
|
|
6
|
-
amountInDollar: string;
|
|
7
|
-
from: string;
|
|
8
|
-
to: string;
|
|
9
|
-
sentFrom: TransferVisibility;
|
|
10
|
-
sentTo: TransferVisibility;
|
|
11
|
-
status: PayActivityStatus;
|
|
12
|
-
chainId: number;
|
|
13
|
-
erc20TokenAddress: string;
|
|
14
|
-
txHash: string;
|
|
15
|
-
}
|
|
16
|
-
export interface DashboardTransaction extends DashboardTransactionBase {
|
|
17
|
-
timestamp?: Date;
|
|
18
|
-
}
|
|
19
|
-
export interface DashboardTransactionClient extends DashboardTransactionBase {
|
|
20
|
-
timestamp?: string;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
type Capability = {
|
|
2
|
-
[key: string]: unknown;
|
|
3
|
-
optional?: boolean;
|
|
4
|
-
};
|
|
5
|
-
export type Call = {
|
|
6
|
-
to?: string;
|
|
7
|
-
data?: string;
|
|
8
|
-
value?: string;
|
|
9
|
-
capabilities?: Record<string, Capability>;
|
|
10
|
-
};
|
|
11
|
-
export type SendCallsParams = {
|
|
12
|
-
version: string;
|
|
13
|
-
id?: string;
|
|
14
|
-
from?: string;
|
|
15
|
-
chainId: string;
|
|
16
|
-
atomicRequired: boolean;
|
|
17
|
-
calls: Call[];
|
|
18
|
-
capabilities?: Record<string, Capability>;
|
|
19
|
-
};
|
|
20
|
-
export declare enum GetCallsStatusCode {
|
|
21
|
-
Pending = "pending",
|
|
22
|
-
Confirmed = "confirmed",
|
|
23
|
-
Failed = "failed",
|
|
24
|
-
NotFound = "not_found"
|
|
25
|
-
}
|
|
26
|
-
export declare enum CallsStatus {
|
|
27
|
-
Pending = 100,// Batch has been received but not completed execution onchain
|
|
28
|
-
Confirmed = 200,// Batch has been included onchain without reverts
|
|
29
|
-
OffchainFailure = 400,// Batch has not been included onchain and wallet will not retry
|
|
30
|
-
ChainFailure = 500,// Batch reverted completely onchain
|
|
31
|
-
PartialFailure = 600
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { InterfaceAbi } from 'ethers';
|
|
2
|
-
import { Idl } from '@coral-xyz/anchor';
|
|
3
|
-
export type ContractMetadata = {
|
|
4
|
-
abi?: InterfaceAbi;
|
|
5
|
-
address?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare enum ContractType {
|
|
8
|
-
HinkalContract = 0,
|
|
9
|
-
HinkalHelperContract = 1,
|
|
10
|
-
UniswapV3FactoryContract = 2,
|
|
11
|
-
UniswapV3PoolContract = 3,
|
|
12
|
-
UniswapV3QuoterContract = 4,
|
|
13
|
-
ERC20Contract = 5,
|
|
14
|
-
ERC721Contract = 6,
|
|
15
|
-
ERC1155Contract = 7,
|
|
16
|
-
WATokenContract = 8,
|
|
17
|
-
OneInchExternalActionContract = 9,
|
|
18
|
-
MerkleTreeContract = 10,
|
|
19
|
-
ContractWithNonces = 11,
|
|
20
|
-
PermitterContract = 12,
|
|
21
|
-
UniswapV2PoolContract = 13,
|
|
22
|
-
HinkalWrapper = 14,
|
|
23
|
-
HinkalWrapper2 = 15,
|
|
24
|
-
DepositOnChainUtxos = 16
|
|
25
|
-
}
|
|
26
|
-
export interface ContractData {
|
|
27
|
-
hinkalAddress: string;
|
|
28
|
-
hinkalABI?: InterfaceAbi;
|
|
29
|
-
hinkalIdl?: Idl;
|
|
30
|
-
hinkalHelperAddress?: string;
|
|
31
|
-
hinkalHelperABI?: InterfaceAbi;
|
|
32
|
-
permitterAddress?: string;
|
|
33
|
-
permitterABI?: InterfaceAbi;
|
|
34
|
-
uniswapExternalActionAddress?: string;
|
|
35
|
-
odosExternalActionInstanceAddress?: string;
|
|
36
|
-
oneInchExternalActionInstanceAddress?: string;
|
|
37
|
-
waTokenABI?: InterfaceAbi;
|
|
38
|
-
hinkalWrapperAddress?: string;
|
|
39
|
-
hinkalWrapper2Address?: string;
|
|
40
|
-
hinkalWrapperABI?: InterfaceAbi;
|
|
41
|
-
HinkalWrapper2ABI?: InterfaceAbi;
|
|
42
|
-
emporiumAddress?: string;
|
|
43
|
-
hinkalWalletAddress?: string;
|
|
44
|
-
originalDeployer?: string;
|
|
45
|
-
depositOnChainUtxosExternalActionAddress?: string;
|
|
46
|
-
depositOnChainUtxosExternalActionABI?: InterfaceAbi;
|
|
47
|
-
}
|
|
48
|
-
export interface EthereumNetwork {
|
|
49
|
-
name: string;
|
|
50
|
-
chainId: number;
|
|
51
|
-
rpcUrl: string;
|
|
52
|
-
maxPageSize?: number;
|
|
53
|
-
fetchRpcUrl?: string;
|
|
54
|
-
wsRpcUrl?: string;
|
|
55
|
-
contractData: ContractData;
|
|
56
|
-
supported?: boolean;
|
|
57
|
-
quoterV2Address?: string;
|
|
58
|
-
uniswapV3FactoryAddress?: string;
|
|
59
|
-
pollingInterval?: number;
|
|
60
|
-
gasStationUrl?: string;
|
|
61
|
-
priority?: number;
|
|
62
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BlockchainEvent } from '../data-structures/BlockchainEvent/BlockchainEvent';
|
|
2
|
-
export type EventProcessorFunction = (events: BlockchainEvent[], scannedToBlock?: number) => Promise<number> | number;
|
|
3
|
-
export declare enum EventCategory {
|
|
4
|
-
MainContractEvents = "MainContractEvents"
|
|
5
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare enum ExternalActionId {
|
|
2
|
-
Transact = "Transact",
|
|
3
|
-
Uniswap = "Uniswap",
|
|
4
|
-
Odos = "Odos",
|
|
5
|
-
OneInch = "OneInch",
|
|
6
|
-
Lifi = "Lifi",// Note: not an actual external action, added to handle lifi in hinkal.proxySwap
|
|
7
|
-
Okx = "Okx",// Note: not an actual external action
|
|
8
|
-
Emporium = "Emporium",
|
|
9
|
-
Wallet = "Wallet",
|
|
10
|
-
DepositOnChainUtxos = "DepositOnChainUtxos",
|
|
11
|
-
ProofLess = "ProofLess"
|
|
12
|
-
}
|
|
13
|
-
export interface ExternalActionData {
|
|
14
|
-
externalActionId: 0n | ExternalActionId;
|
|
15
|
-
externalAddress: string;
|
|
16
|
-
externalActionMetadata: string;
|
|
17
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ERC20Token } from './token.types';
|
|
2
|
-
export interface MinimalFeeInfo {
|
|
3
|
-
flatFees: bigint[];
|
|
4
|
-
feeUnit: ERC20Token | undefined;
|
|
5
|
-
}
|
|
6
|
-
export interface FeeInfo extends MinimalFeeInfo {
|
|
7
|
-
priceOfTransactionInToken: bigint | undefined;
|
|
8
|
-
priceOfTransactionInUSD: number | undefined;
|
|
9
|
-
}
|
|
10
|
-
export declare enum SolanaPriorityFeeMode {
|
|
11
|
-
RECOMMENDED = "RECOMMENDED",
|
|
12
|
-
HIGH = "HIGH"
|
|
13
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration options for the Hinkal system.
|
|
3
|
-
*/
|
|
4
|
-
export type HinkalConfig = {
|
|
5
|
-
/**
|
|
6
|
-
* Path to the cache file used for storing temporary data.
|
|
7
|
-
* It should be a valid file path string.
|
|
8
|
-
*/
|
|
9
|
-
cacheFilePath?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Indicator to use caching on a file level.
|
|
12
|
-
* Node only.
|
|
13
|
-
*/
|
|
14
|
-
useFileCache?: boolean;
|
|
15
|
-
disableCaching?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Indicator controlling wether the proof should be constructed remotely in secure enclave.
|
|
18
|
-
*/
|
|
19
|
-
generateProofRemotely?: boolean;
|
|
20
|
-
disableMerkleTreeUpdates?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Skip local decryption mutex in getInputUtxoAndBalance (e.g. enclave-api).
|
|
23
|
-
*/
|
|
24
|
-
allowParallelBalanceLocalDecryption?: boolean;
|
|
25
|
-
serializedCache?: Record<string, string>;
|
|
26
|
-
/**
|
|
27
|
-
* Override which Tron chain this Hinkal instance targets.
|
|
28
|
-
*/
|
|
29
|
-
tronChainOverride?: number;
|
|
30
|
-
};
|
|
31
|
-
export declare enum EventType {
|
|
32
|
-
BalanceChange = "BalanceChange",
|
|
33
|
-
AccountChanged = "AccountChanged",
|
|
34
|
-
ShowConnect = "ShowConnect",
|
|
35
|
-
ShowNetworkPopup = "ShowNetworkPopup",
|
|
36
|
-
MerkleTreeUpdated = "MerkleTreeUpdated",
|
|
37
|
-
MerkleTreeResetStarted = "MerkleTreeResetStarted",
|
|
38
|
-
MerkleTreeResetFinished = "MerkleTreeResetFinished"
|
|
39
|
-
}
|
|
40
|
-
export declare enum IntegrationProvider {
|
|
41
|
-
UNISWAP = 1,
|
|
42
|
-
ODOS = 2,
|
|
43
|
-
ONEINCH = 3,
|
|
44
|
-
LIFI = 4,
|
|
45
|
-
OKX = 5,
|
|
46
|
-
ALL = 6,
|
|
47
|
-
NONE = 7
|
|
48
|
-
}
|
|
49
|
-
export declare enum INTERACTION {
|
|
50
|
-
WITHDRAW = "WITHDRAW",
|
|
51
|
-
SWAP = "SWAP",
|
|
52
|
-
CLAIMING = "CLAIMING",
|
|
53
|
-
EMPORIUM = "EMPORIUM",
|
|
54
|
-
NONE = "NONE"
|
|
55
|
-
}
|
|
56
|
-
export declare enum HinkalLogicAction {
|
|
57
|
-
NONE = 0,// = 0
|
|
58
|
-
APPROVE = 1,// = 1
|
|
59
|
-
RELEASE_BUFFER = 2,// = 2
|
|
60
|
-
EXECUTE = 3
|
|
61
|
-
}
|
|
62
|
-
export interface UseApprovalUTXOData<T = bigint> {
|
|
63
|
-
approvalChanges: T[];
|
|
64
|
-
externalApprovalAddresses: string[];
|
|
65
|
-
conversionInHinkalAddress: T[];
|
|
66
|
-
}
|
|
67
|
-
export type HinkalLogicArgs<T = bigint> = {
|
|
68
|
-
hinkalLogicAction: HinkalLogicAction;
|
|
69
|
-
executeApprovalChanges: T[];
|
|
70
|
-
doPreTxApproval: boolean;
|
|
71
|
-
inHinkalAddress: T;
|
|
72
|
-
useApprovalUtxoData: UseApprovalUTXOData<T>[];
|
|
73
|
-
interactionAddress?: string;
|
|
74
|
-
};
|
|
75
|
-
export declare const defaultHinkalLogicArgs: (count: number) => HinkalLogicArgs<bigint>;
|
|
76
|
-
export type FeeStructure<T = bigint> = {
|
|
77
|
-
feeToken: string;
|
|
78
|
-
flatFee: T;
|
|
79
|
-
variableRate: T;
|
|
80
|
-
};
|
|
81
|
-
export declare const zeroFeeStructure: FeeStructure<bigint>;
|
|
82
|
-
export type AuthorizationData = {
|
|
83
|
-
v: string;
|
|
84
|
-
r: string;
|
|
85
|
-
s: string;
|
|
86
|
-
nonce: string;
|
|
87
|
-
address: string;
|
|
88
|
-
chainId: string;
|
|
89
|
-
};
|
|
90
|
-
export type ParsedInLogicMetadata = {
|
|
91
|
-
signature: string;
|
|
92
|
-
deadline: number;
|
|
93
|
-
erc20TokenAddresses: string[];
|
|
94
|
-
externalCallData: string;
|
|
95
|
-
};
|
|
96
|
-
export declare enum LoginMessageMode {
|
|
97
|
-
PROTOCOL = "protocol",
|
|
98
|
-
PRIVATE_TRANSFER = "privateTransfer"
|
|
99
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
export interface HttpClient {
|
|
3
|
-
get<T = any>(url: string, config?: AxiosRequestConfig): Promise<T>;
|
|
4
|
-
post<T = any>(url: string, data?: any, config?: AxiosRequestConfig): Promise<T>;
|
|
5
|
-
put<T = any>(url: string, data?: any, config?: AxiosRequestConfig): Promise<T>;
|
|
6
|
-
patch<T = any>(url: string, data?: any, config?: AxiosRequestConfig): Promise<T>;
|
|
7
|
-
delete<T = any>(url: string, config?: AxiosRequestConfig): Promise<T>;
|
|
8
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export * from './API.types';
|
|
2
|
-
export * from './approvals.types';
|
|
3
|
-
export * from './big-intable.types';
|
|
4
|
-
export * from './circom-data.types';
|
|
5
|
-
export * from './commitments.types';
|
|
6
|
-
export * from './IMultiThreadedUtxoUtils';
|
|
7
|
-
export * from './crypto.types';
|
|
8
|
-
export * from './ethereum-network.types';
|
|
9
|
-
export * from './external-action.types';
|
|
10
|
-
export * from './hinkal.types';
|
|
11
|
-
export * from './snark.types';
|
|
12
|
-
export * from './token.types';
|
|
13
|
-
export * from './slippage.types';
|
|
14
|
-
export * from './transactions.types';
|
|
15
|
-
export * from './rewards.types';
|
|
16
|
-
export * from './admin.types';
|
|
17
|
-
export * from './ICacheDevice';
|
|
18
|
-
export * from './activities.types';
|
|
19
|
-
export * from './wc.types';
|
|
20
|
-
export * from './transaction.types';
|
|
21
|
-
export * from './with-id.types';
|
|
22
|
-
export * from './balances.types';
|
|
23
|
-
export * from './cache.types';
|
|
24
|
-
export * from './tenderly.api.types';
|
|
25
|
-
export * from './TransactionSimulator.types';
|
|
26
|
-
export * from './coingecko.types';
|
|
27
|
-
export * from './message.types';
|
|
28
|
-
export * from './session.types';
|
|
29
|
-
export * from './token-prices.types';
|
|
30
|
-
export * from './presaleReferral.types';
|
|
31
|
-
export * from './brotherhood-user.types';
|
|
32
|
-
export * from './WeeklyAnalytics.types';
|
|
33
|
-
export * from './referral.types';
|
|
34
|
-
export * from './all-points.types';
|
|
35
|
-
export * from './new-rewards.type';
|
|
36
|
-
export * from './RewardUserEnums';
|
|
37
|
-
export * from './generatePoints';
|
|
38
|
-
export * from './eip5792.types';
|
|
39
|
-
export * from './proxy.types';
|
|
40
|
-
export * from './confirmation-request.types';
|
|
41
|
-
export * from './signature.types';
|
|
42
|
-
export * from './offscreen.types';
|
|
43
|
-
export * from './solana.types';
|
|
44
|
-
export * from './okx.types';
|
|
45
|
-
export * from './http.types';
|
|
46
|
-
export * from './connector.types';
|
|
47
|
-
export * from './scheduled-transactions.types';
|
|
48
|
-
export * from './bridging-tx.types';
|
|
49
|
-
export * from './near-intents.types';
|
|
50
|
-
export * from './onramp.types';
|
|
51
|
-
export * from './events.types';
|
|
52
|
-
export * from './tron.types';
|
|
53
|
-
export * from './pay-activities.types';
|
|
54
|
-
export * from './schedule.types';
|
|
55
|
-
export * from './dashboard-account';
|
|
56
|
-
export * from './pay-routing.types';
|
|
57
|
-
export * from './contacts.types';
|
|
58
|
-
export * from './dashboard-payout.types';
|
|
59
|
-
export * from './dashboard-transaction.types';
|
|
60
|
-
export * from './chains.types';
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { TokenBalanceWithUsdValue } from './token.types';
|
|
2
|
-
export type NearIntentsSwapType = 'EXACT_INPUT' | 'EXACT_OUTPUT';
|
|
3
|
-
export type NearIntentsDepositType = 'ORIGIN_CHAIN' | 'INTENTS';
|
|
4
|
-
export type NearIntentsRecipientType = 'DESTINATION_CHAIN' | 'INTENTS';
|
|
5
|
-
export type NearIntentsRefundType = 'ORIGIN_CHAIN' | 'INTENTS';
|
|
6
|
-
export interface NearIntentsQuoteRequest {
|
|
7
|
-
dry: boolean;
|
|
8
|
-
swapType: NearIntentsSwapType;
|
|
9
|
-
slippageTolerance: number;
|
|
10
|
-
originAsset: string;
|
|
11
|
-
depositType: NearIntentsDepositType;
|
|
12
|
-
destinationAsset: string;
|
|
13
|
-
amount: string;
|
|
14
|
-
recipient: string;
|
|
15
|
-
recipientType: NearIntentsRecipientType;
|
|
16
|
-
refundTo: string;
|
|
17
|
-
refundType: NearIntentsRefundType;
|
|
18
|
-
deadline: string;
|
|
19
|
-
}
|
|
20
|
-
export interface NearIntentsQuoteResponse {
|
|
21
|
-
quote: {
|
|
22
|
-
depositAddress: string;
|
|
23
|
-
amountOut: string;
|
|
24
|
-
deadline?: string;
|
|
25
|
-
timeWhenInactive?: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export interface NearIntentsToken {
|
|
29
|
-
assetId: string;
|
|
30
|
-
decimals: number;
|
|
31
|
-
blockchain: string;
|
|
32
|
-
symbol: string;
|
|
33
|
-
contractAddress?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface NearBridgeParams {
|
|
36
|
-
originAsset: string;
|
|
37
|
-
destinationChainId: number;
|
|
38
|
-
destinationAsset: string;
|
|
39
|
-
slippageBps?: number;
|
|
40
|
-
}
|
|
41
|
-
export interface NearIntentsRefundBalance extends TokenBalanceWithUsdValue {
|
|
42
|
-
assetId: string;
|
|
43
|
-
}
|
|
44
|
-
export interface NearBridgeLeg {
|
|
45
|
-
destinationRecipient: string;
|
|
46
|
-
amount: bigint;
|
|
47
|
-
depositAddress: string;
|
|
48
|
-
quote: NearIntentsQuoteResponse['quote'];
|
|
49
|
-
}
|
|
50
|
-
export interface NearBridgeResult {
|
|
51
|
-
depositTxHash: string;
|
|
52
|
-
legs: NearBridgeLeg[];
|
|
53
|
-
}
|
|
54
|
-
export interface NearBridgeQuoteResult {
|
|
55
|
-
totalOutputAmount: bigint;
|
|
56
|
-
outputAmounts: bigint[];
|
|
57
|
-
isLoading: boolean;
|
|
58
|
-
error: string;
|
|
59
|
-
hasRoute: boolean;
|
|
60
|
-
}
|