@yaswap/wallet-core 2.0.0
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/CHANGELOG.md +804 -0
- package/README.md +163 -0
- package/dist/package.json +76 -0
- package/dist/src/build.config.d.ts +46 -0
- package/dist/src/build.config.js +237 -0
- package/dist/src/build.config.js.map +1 -0
- package/dist/src/factory/client/clients.d.ts +11 -0
- package/dist/src/factory/client/clients.js +119 -0
- package/dist/src/factory/client/clients.js.map +1 -0
- package/dist/src/factory/client/evm.d.ts +6 -0
- package/dist/src/factory/client/evm.js +71 -0
- package/dist/src/factory/client/evm.js.map +1 -0
- package/dist/src/factory/client/index.d.ts +11 -0
- package/dist/src/factory/client/index.js +38 -0
- package/dist/src/factory/client/index.js.map +1 -0
- package/dist/src/factory/client/nft.d.ts +4 -0
- package/dist/src/factory/client/nft.js +26 -0
- package/dist/src/factory/client/nft.js.map +1 -0
- package/dist/src/factory/index.d.ts +3 -0
- package/dist/src/factory/index.js +7 -0
- package/dist/src/factory/index.js.map +1 -0
- package/dist/src/factory/settings.d.ts +4 -0
- package/dist/src/factory/settings.js +27 -0
- package/dist/src/factory/settings.js.map +1 -0
- package/dist/src/factory/swap/index.d.ts +4 -0
- package/dist/src/factory/swap/index.js +66 -0
- package/dist/src/factory/swap/index.js.map +1 -0
- package/dist/src/index.d.ts +1619 -0
- package/dist/src/index.js +38 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/index.test.d.ts +1 -0
- package/dist/src/index.test.js +187 -0
- package/dist/src/index.test.js.map +1 -0
- package/dist/src/nameResolvers/nameResolver.d.ts +7 -0
- package/dist/src/nameResolvers/nameResolver.js +3 -0
- package/dist/src/nameResolvers/nameResolver.js.map +1 -0
- package/dist/src/nameResolvers/uns.d.ts +12 -0
- package/dist/src/nameResolvers/uns.js +83 -0
- package/dist/src/nameResolvers/uns.js.map +1 -0
- package/dist/src/nameResolvers/uns.test.d.ts +1 -0
- package/dist/src/nameResolvers/uns.test.js +29 -0
- package/dist/src/nameResolvers/uns.test.js.map +1 -0
- package/dist/src/store/actions/acceptTermsAndConditions.d.ts +4 -0
- package/dist/src/store/actions/acceptTermsAndConditions.js +17 -0
- package/dist/src/store/actions/acceptTermsAndConditions.js.map +1 -0
- package/dist/src/store/actions/acceptTermsAndConditions.test.d.ts +1 -0
- package/dist/src/store/actions/acceptTermsAndConditions.test.js +22 -0
- package/dist/src/store/actions/acceptTermsAndConditions.test.js.map +1 -0
- package/dist/src/store/actions/accounts/createAccount.d.ts +7 -0
- package/dist/src/store/actions/accounts/createAccount.js +27 -0
- package/dist/src/store/actions/accounts/createAccount.js.map +1 -0
- package/dist/src/store/actions/accounts/createAccount.test.d.ts +1 -0
- package/dist/src/store/actions/accounts/createAccount.test.js +29 -0
- package/dist/src/store/actions/accounts/createAccount.test.js.map +1 -0
- package/dist/src/store/actions/accounts/index.d.ts +5 -0
- package/dist/src/store/actions/accounts/index.js +9 -0
- package/dist/src/store/actions/accounts/index.js.map +1 -0
- package/dist/src/store/actions/accounts/removeAccount.d.ts +7 -0
- package/dist/src/store/actions/accounts/removeAccount.js +12 -0
- package/dist/src/store/actions/accounts/removeAccount.js.map +1 -0
- package/dist/src/store/actions/accounts/removeAccount.test.d.ts +1 -0
- package/dist/src/store/actions/accounts/removeAccount.test.js +53 -0
- package/dist/src/store/actions/accounts/removeAccount.test.js.map +1 -0
- package/dist/src/store/actions/accounts/toggleAccount.d.ts +8 -0
- package/dist/src/store/actions/accounts/toggleAccount.js +19 -0
- package/dist/src/store/actions/accounts/toggleAccount.js.map +1 -0
- package/dist/src/store/actions/accounts/toggleAccount.test.d.ts +1 -0
- package/dist/src/store/actions/accounts/toggleAccount.test.js +44 -0
- package/dist/src/store/actions/accounts/toggleAccount.test.js.map +1 -0
- package/dist/src/store/actions/accounts/toggleBlockchain.d.ts +9 -0
- package/dist/src/store/actions/accounts/toggleBlockchain.js +14 -0
- package/dist/src/store/actions/accounts/toggleBlockchain.js.map +1 -0
- package/dist/src/store/actions/accounts/updateAccount.d.ts +26 -0
- package/dist/src/store/actions/accounts/updateAccount.js +14 -0
- package/dist/src/store/actions/accounts/updateAccount.js.map +1 -0
- package/dist/src/store/actions/addCustomToken.d.ts +12 -0
- package/dist/src/store/actions/addCustomToken.js +12 -0
- package/dist/src/store/actions/addCustomToken.js.map +1 -0
- package/dist/src/store/actions/addCustomToken.test.d.ts +1 -0
- package/dist/src/store/actions/addCustomToken.test.js +59 -0
- package/dist/src/store/actions/addCustomToken.test.js.map +1 -0
- package/dist/src/store/actions/addExternalConnection.d.ts +9 -0
- package/dist/src/store/actions/addExternalConnection.js +13 -0
- package/dist/src/store/actions/addExternalConnection.js.map +1 -0
- package/dist/src/store/actions/addExternalConnection.test.d.ts +1 -0
- package/dist/src/store/actions/addExternalConnection.test.js +100 -0
- package/dist/src/store/actions/addExternalConnection.test.js.map +1 -0
- package/dist/src/store/actions/analytics.d.ts +21 -0
- package/dist/src/store/actions/analytics.js +58 -0
- package/dist/src/store/actions/analytics.js.map +1 -0
- package/dist/src/store/actions/analytics.test.d.ts +1 -0
- package/dist/src/store/actions/analytics.test.js +33 -0
- package/dist/src/store/actions/analytics.test.js.map +1 -0
- package/dist/src/store/actions/changeActiveNetwork.d.ts +5 -0
- package/dist/src/store/actions/changeActiveNetwork.js +13 -0
- package/dist/src/store/actions/changeActiveNetwork.js.map +1 -0
- package/dist/src/store/actions/changeActiveWalletId.d.ts +5 -0
- package/dist/src/store/actions/changeActiveWalletId.js +11 -0
- package/dist/src/store/actions/changeActiveWalletId.js.map +1 -0
- package/dist/src/store/actions/changeActiveWalletId.test.d.ts +1 -0
- package/dist/src/store/actions/changeActiveWalletId.test.js +40 -0
- package/dist/src/store/actions/changeActiveWalletId.test.js.map +1 -0
- package/dist/src/store/actions/changePassword.d.ts +4 -0
- package/dist/src/store/actions/changePassword.js +13 -0
- package/dist/src/store/actions/changePassword.js.map +1 -0
- package/dist/src/store/actions/changePassword.test.d.ts +1 -0
- package/dist/src/store/actions/changePassword.test.js +22 -0
- package/dist/src/store/actions/changePassword.test.js.map +1 -0
- package/dist/src/store/actions/checkPendingActions.d.ts +5 -0
- package/dist/src/store/actions/checkPendingActions.js +25 -0
- package/dist/src/store/actions/checkPendingActions.js.map +1 -0
- package/dist/src/store/actions/clearErrorLog.d.ts +2 -0
- package/dist/src/store/actions/clearErrorLog.js +10 -0
- package/dist/src/store/actions/clearErrorLog.js.map +1 -0
- package/dist/src/store/actions/createWallet.d.ts +7 -0
- package/dist/src/store/actions/createWallet.js +90 -0
- package/dist/src/store/actions/createWallet.js.map +1 -0
- package/dist/src/store/actions/createWallet.test.d.ts +1 -0
- package/dist/src/store/actions/createWallet.test.js +41 -0
- package/dist/src/store/actions/createWallet.test.js.map +1 -0
- package/dist/src/store/actions/customChainSettings.d.ts +15 -0
- package/dist/src/store/actions/customChainSettings.js +37 -0
- package/dist/src/store/actions/customChainSettings.js.map +1 -0
- package/dist/src/store/actions/disableAssets.d.ts +7 -0
- package/dist/src/store/actions/disableAssets.js +28 -0
- package/dist/src/store/actions/disableAssets.js.map +1 -0
- package/dist/src/store/actions/disableEthereumInjection.d.ts +2 -0
- package/dist/src/store/actions/disableEthereumInjection.js +11 -0
- package/dist/src/store/actions/disableEthereumInjection.js.map +1 -0
- package/dist/src/store/actions/disableEthereumInjection.test.d.ts +1 -0
- package/dist/src/store/actions/disableEthereumInjection.test.js +24 -0
- package/dist/src/store/actions/disableEthereumInjection.test.js.map +1 -0
- package/dist/src/store/actions/enableAssets.d.ts +7 -0
- package/dist/src/store/actions/enableAssets.js +65 -0
- package/dist/src/store/actions/enableAssets.js.map +1 -0
- package/dist/src/store/actions/enableAssets.test.d.ts +1 -0
- package/dist/src/store/actions/enableAssets.test.js +37 -0
- package/dist/src/store/actions/enableAssets.test.js.map +1 -0
- package/dist/src/store/actions/enableDisableAssets.test.d.ts +1 -0
- package/dist/src/store/actions/enableDisableAssets.test.js +79 -0
- package/dist/src/store/actions/enableDisableAssets.test.js.map +1 -0
- package/dist/src/store/actions/enableEthereumInjection.d.ts +2 -0
- package/dist/src/store/actions/enableEthereumInjection.js +11 -0
- package/dist/src/store/actions/enableEthereumInjection.js.map +1 -0
- package/dist/src/store/actions/exportPrivateKey.d.ts +9 -0
- package/dist/src/store/actions/exportPrivateKey.js +12 -0
- package/dist/src/store/actions/exportPrivateKey.js.map +1 -0
- package/dist/src/store/actions/exportPrivateKey.test.d.ts +1 -0
- package/dist/src/store/actions/exportPrivateKey.test.js +36 -0
- package/dist/src/store/actions/exportPrivateKey.test.js.map +1 -0
- package/dist/src/store/actions/fetchTokenDetails.d.ts +11 -0
- package/dist/src/store/actions/fetchTokenDetails.js +22 -0
- package/dist/src/store/actions/fetchTokenDetails.js.map +1 -0
- package/dist/src/store/actions/forgetDappConnections.d.ts +2 -0
- package/dist/src/store/actions/forgetDappConnections.js +11 -0
- package/dist/src/store/actions/forgetDappConnections.js.map +1 -0
- package/dist/src/store/actions/getLockForAsset.d.ts +8 -0
- package/dist/src/store/actions/getLockForAsset.js +34 -0
- package/dist/src/store/actions/getLockForAsset.js.map +1 -0
- package/dist/src/store/actions/getQuotes.d.ts +13 -0
- package/dist/src/store/actions/getQuotes.js +70 -0
- package/dist/src/store/actions/getQuotes.js.map +1 -0
- package/dist/src/store/actions/getQuotes.test.d.ts +1 -0
- package/dist/src/store/actions/getQuotes.test.js +30 -0
- package/dist/src/store/actions/getQuotes.test.js.map +1 -0
- package/dist/src/store/actions/getUnusedAddresses.d.ts +8 -0
- package/dist/src/store/actions/getUnusedAddresses.js +51 -0
- package/dist/src/store/actions/getUnusedAddresses.js.map +1 -0
- package/dist/src/store/actions/hardware-wallet/getLedgerAccounts.d.ts +16 -0
- package/dist/src/store/actions/hardware-wallet/getLedgerAccounts.js +57 -0
- package/dist/src/store/actions/hardware-wallet/getLedgerAccounts.js.map +1 -0
- package/dist/src/store/actions/hardware-wallet/index.d.ts +1 -0
- package/dist/src/store/actions/hardware-wallet/index.js +5 -0
- package/dist/src/store/actions/hardware-wallet/index.js.map +1 -0
- package/dist/src/store/actions/index.d.ts +47 -0
- package/dist/src/store/actions/index.js +51 -0
- package/dist/src/store/actions/index.js.map +1 -0
- package/dist/src/store/actions/initializeAddresses.d.ts +6 -0
- package/dist/src/store/actions/initializeAddresses.js +26 -0
- package/dist/src/store/actions/initializeAddresses.js.map +1 -0
- package/dist/src/store/actions/initializeAddresses.test.d.ts +1 -0
- package/dist/src/store/actions/initializeAddresses.test.js +58 -0
- package/dist/src/store/actions/initializeAddresses.test.js.map +1 -0
- package/dist/src/store/actions/lockWallet.d.ts +2 -0
- package/dist/src/store/actions/lockWallet.js +11 -0
- package/dist/src/store/actions/lockWallet.js.map +1 -0
- package/dist/src/store/actions/lockWallet.test.d.ts +1 -0
- package/dist/src/store/actions/lockWallet.test.js +24 -0
- package/dist/src/store/actions/lockWallet.test.js.map +1 -0
- package/dist/src/store/actions/logError.d.ts +3 -0
- package/dist/src/store/actions/logError.js +10 -0
- package/dist/src/store/actions/logError.js.map +1 -0
- package/dist/src/store/actions/logError.test.d.ts +1 -0
- package/dist/src/store/actions/logError.test.js +27 -0
- package/dist/src/store/actions/logError.test.js.map +1 -0
- package/dist/src/store/actions/newSwap.d.ts +12 -0
- package/dist/src/store/actions/newSwap.js +34 -0
- package/dist/src/store/actions/newSwap.js.map +1 -0
- package/dist/src/store/actions/performNextAction/index.d.ts +7 -0
- package/dist/src/store/actions/performNextAction/index.js +65 -0
- package/dist/src/store/actions/performNextAction/index.js.map +1 -0
- package/dist/src/store/actions/performNextAction/send.d.ts +7 -0
- package/dist/src/store/actions/performNextAction/send.js +54 -0
- package/dist/src/store/actions/performNextAction/send.js.map +1 -0
- package/dist/src/store/actions/performNextAction/sendNFT.d.ts +7 -0
- package/dist/src/store/actions/performNextAction/sendNFT.js +50 -0
- package/dist/src/store/actions/performNextAction/sendNFT.js.map +1 -0
- package/dist/src/store/actions/performNextAction/utils.d.ts +11 -0
- package/dist/src/store/actions/performNextAction/utils.js +42 -0
- package/dist/src/store/actions/performNextAction/utils.js.map +1 -0
- package/dist/src/store/actions/proxyMutation.d.ts +5 -0
- package/dist/src/store/actions/proxyMutation.js +9 -0
- package/dist/src/store/actions/proxyMutation.js.map +1 -0
- package/dist/src/store/actions/removeCustomToken.d.ts +7 -0
- package/dist/src/store/actions/removeCustomToken.js +11 -0
- package/dist/src/store/actions/removeCustomToken.js.map +1 -0
- package/dist/src/store/actions/retrySwap.d.ts +5 -0
- package/dist/src/store/actions/retrySwap.js +23 -0
- package/dist/src/store/actions/retrySwap.js.map +1 -0
- package/dist/src/store/actions/sendNFTTransaction.d.ts +4 -0
- package/dist/src/store/actions/sendNFTTransaction.js +47 -0
- package/dist/src/store/actions/sendNFTTransaction.js.map +1 -0
- package/dist/src/store/actions/sendTransaction.d.ts +17 -0
- package/dist/src/store/actions/sendTransaction.js +51 -0
- package/dist/src/store/actions/sendTransaction.js.map +1 -0
- package/dist/src/store/actions/sendTransaction.test.d.ts +1 -0
- package/dist/src/store/actions/sendTransaction.test.js +80 -0
- package/dist/src/store/actions/sendTransaction.test.js.map +1 -0
- package/dist/src/store/actions/setEthereumInjectionChain.d.ts +5 -0
- package/dist/src/store/actions/setEthereumInjectionChain.js +11 -0
- package/dist/src/store/actions/setEthereumInjectionChain.js.map +1 -0
- package/dist/src/store/actions/setEthereumInjectionChain.test.d.ts +1 -0
- package/dist/src/store/actions/setEthereumInjectionChain.test.js +20 -0
- package/dist/src/store/actions/setEthereumInjectionChain.test.js.map +1 -0
- package/dist/src/store/actions/setWhatsNewModalVersion.d.ts +4 -0
- package/dist/src/store/actions/setWhatsNewModalVersion.js +10 -0
- package/dist/src/store/actions/setWhatsNewModalVersion.js.map +1 -0
- package/dist/src/store/actions/setWhatsNewModalVersion.test.d.ts +1 -0
- package/dist/src/store/actions/setWhatsNewModalVersion.test.js +24 -0
- package/dist/src/store/actions/setWhatsNewModalVersion.test.js.map +1 -0
- package/dist/src/store/actions/showNotification.d.ts +2 -0
- package/dist/src/store/actions/showNotification.js +10 -0
- package/dist/src/store/actions/showNotification.js.map +1 -0
- package/dist/src/store/actions/toggleExperiment.d.ts +5 -0
- package/dist/src/store/actions/toggleExperiment.js +10 -0
- package/dist/src/store/actions/toggleExperiment.js.map +1 -0
- package/dist/src/store/actions/toggleExperiment.test.d.ts +1 -0
- package/dist/src/store/actions/toggleExperiment.test.js +34 -0
- package/dist/src/store/actions/toggleExperiment.test.js.map +1 -0
- package/dist/src/store/actions/toggleNFTStarred.d.ts +8 -0
- package/dist/src/store/actions/toggleNFTStarred.js +10 -0
- package/dist/src/store/actions/toggleNFTStarred.js.map +1 -0
- package/dist/src/store/actions/unlockWallet.d.ts +4 -0
- package/dist/src/store/actions/unlockWallet.js +22 -0
- package/dist/src/store/actions/unlockWallet.js.map +1 -0
- package/dist/src/store/actions/updateAccountBalance.d.ts +7 -0
- package/dist/src/store/actions/updateAccountBalance.js +29 -0
- package/dist/src/store/actions/updateAccountBalance.js.map +1 -0
- package/dist/src/store/actions/updateBalances.d.ts +9 -0
- package/dist/src/store/actions/updateBalances.js +169 -0
- package/dist/src/store/actions/updateBalances.js.map +1 -0
- package/dist/src/store/actions/updateBalances.test.d.ts +1 -0
- package/dist/src/store/actions/updateBalances.test.js +43 -0
- package/dist/src/store/actions/updateBalances.test.js.map +1 -0
- package/dist/src/store/actions/updateCurrenciesInfo.d.ts +5 -0
- package/dist/src/store/actions/updateCurrenciesInfo.js +14 -0
- package/dist/src/store/actions/updateCurrenciesInfo.js.map +1 -0
- package/dist/src/store/actions/updateFees.d.ts +6 -0
- package/dist/src/store/actions/updateFees.js +16 -0
- package/dist/src/store/actions/updateFees.js.map +1 -0
- package/dist/src/store/actions/updateFees.test.d.ts +1 -0
- package/dist/src/store/actions/updateFees.test.js +86 -0
- package/dist/src/store/actions/updateFees.test.js.map +1 -0
- package/dist/src/store/actions/updateFiatRates.d.ts +5 -0
- package/dist/src/store/actions/updateFiatRates.js +15 -0
- package/dist/src/store/actions/updateFiatRates.js.map +1 -0
- package/dist/src/store/actions/updateFiatRates.test.d.ts +1 -0
- package/dist/src/store/actions/updateFiatRates.test.js +43 -0
- package/dist/src/store/actions/updateFiatRates.test.js.map +1 -0
- package/dist/src/store/actions/updateMarketData.d.ts +8 -0
- package/dist/src/store/actions/updateMarketData.js +28 -0
- package/dist/src/store/actions/updateMarketData.js.map +1 -0
- package/dist/src/store/actions/updateMarketData.test.d.ts +1 -0
- package/dist/src/store/actions/updateMarketData.test.js +49 -0
- package/dist/src/store/actions/updateMarketData.test.js.map +1 -0
- package/dist/src/store/actions/updateNFTs.d.ts +7 -0
- package/dist/src/store/actions/updateNFTs.js +39 -0
- package/dist/src/store/actions/updateNFTs.js.map +1 -0
- package/dist/src/store/actions/updateNFTs.test.d.ts +1 -0
- package/dist/src/store/actions/updateNFTs.test.js +32 -0
- package/dist/src/store/actions/updateNFTs.test.js.map +1 -0
- package/dist/src/store/actions/updateTransactionFee.d.ts +11 -0
- package/dist/src/store/actions/updateTransactionFee.js +81 -0
- package/dist/src/store/actions/updateTransactionFee.js.map +1 -0
- package/dist/src/store/broker/notification.d.ts +4 -0
- package/dist/src/store/broker/notification.js +84 -0
- package/dist/src/store/broker/notification.js.map +1 -0
- package/dist/src/store/getters.d.ts +59 -0
- package/dist/src/store/getters.js +350 -0
- package/dist/src/store/getters.js.map +1 -0
- package/dist/src/store/index.d.ts +3524 -0
- package/dist/src/store/index.js +24 -0
- package/dist/src/store/index.js.map +1 -0
- package/dist/src/store/migrations/10_analytics_settings.d.ts +4 -0
- package/dist/src/store/migrations/10_analytics_settings.js +19 -0
- package/dist/src/store/migrations/10_analytics_settings.js.map +1 -0
- package/dist/src/store/migrations/11_12_rsk_legacy_derivation_path.d.ts +8 -0
- package/dist/src/store/migrations/11_12_rsk_legacy_derivation_path.js +22 -0
- package/dist/src/store/migrations/11_12_rsk_legacy_derivation_path.js.map +1 -0
- package/dist/src/store/migrations/13_rsk_fish_token.d.ts +4 -0
- package/dist/src/store/migrations/13_rsk_fish_token.js +19 -0
- package/dist/src/store/migrations/13_rsk_fish_token.js.map +1 -0
- package/dist/src/store/migrations/14_account_set_derivation_path.d.ts +4 -0
- package/dist/src/store/migrations/14_account_set_derivation_path.js +56 -0
- package/dist/src/store/migrations/14_account_set_derivation_path.js.map +1 -0
- package/dist/src/store/migrations/15_accounts_chains_set_enabled.d.ts +4 -0
- package/dist/src/store/migrations/15_accounts_chains_set_enabled.js +25 -0
- package/dist/src/store/migrations/15_accounts_chains_set_enabled.js.map +1 -0
- package/dist/src/store/migrations/16_enable_terra_chain.d.ts +4 -0
- package/dist/src/store/migrations/16_enable_terra_chain.js +10 -0
- package/dist/src/store/migrations/16_enable_terra_chain.js.map +1 -0
- package/dist/src/store/migrations/17_remove_injection_enabled.d.ts +4 -0
- package/dist/src/store/migrations/17_remove_injection_enabled.js +12 -0
- package/dist/src/store/migrations/17_remove_injection_enabled.js.map +1 -0
- package/dist/src/store/migrations/18_enable_avalanche_chain.d.ts +4 -0
- package/dist/src/store/migrations/18_enable_avalanche_chain.js +10 -0
- package/dist/src/store/migrations/18_enable_avalanche_chain.js.map +1 -0
- package/dist/src/store/migrations/19_remove_existing_ledger_accounts.d.ts +4 -0
- package/dist/src/store/migrations/19_remove_existing_ledger_accounts.js +25 -0
- package/dist/src/store/migrations/19_remove_existing_ledger_accounts.js.map +1 -0
- package/dist/src/store/migrations/19_remove_existing_ledger_accounts.state.pre.json +1944 -0
- package/dist/src/store/migrations/19_remove_existing_ledger_accounts_test.d.ts +1 -0
- package/dist/src/store/migrations/19_remove_existing_ledger_accounts_test.js +7 -0
- package/dist/src/store/migrations/19_remove_existing_ledger_accounts_test.js.map +1 -0
- package/dist/src/store/migrations/1_first_migration.d.ts +4 -0
- package/dist/src/store/migrations/1_first_migration.js +11 -0
- package/dist/src/store/migrations/1_first_migration.js.map +1 -0
- package/dist/src/store/migrations/20_fix_accounts.d.ts +4 -0
- package/dist/src/store/migrations/20_fix_accounts.js +68 -0
- package/dist/src/store/migrations/20_fix_accounts.js.map +1 -0
- package/dist/src/store/migrations/21_enable_solana_chain.d.ts +4 -0
- package/dist/src/store/migrations/21_enable_solana_chain.js +10 -0
- package/dist/src/store/migrations/21_enable_solana_chain.js.map +1 -0
- package/dist/src/store/migrations/22_enable_optimism_chain.d.ts +4 -0
- package/dist/src/store/migrations/22_enable_optimism_chain.js +10 -0
- package/dist/src/store/migrations/22_enable_optimism_chain.js.map +1 -0
- package/dist/src/store/migrations/2_set_default_assets.d.ts +4 -0
- package/dist/src/store/migrations/2_set_default_assets.js +20 -0
- package/dist/src/store/migrations/2_set_default_assets.js.map +1 -0
- package/dist/src/store/migrations/3_add_network_custom_tokens.d.ts +4 -0
- package/dist/src/store/migrations/3_add_network_custom_tokens.js +21 -0
- package/dist/src/store/migrations/3_add_network_custom_tokens.js.map +1 -0
- package/dist/src/store/migrations/4_fix_rsk_token_injected_asset.d.ts +4 -0
- package/dist/src/store/migrations/4_fix_rsk_token_injected_asset.js +15 -0
- package/dist/src/store/migrations/4_fix_rsk_token_injected_asset.js.map +1 -0
- package/dist/src/store/migrations/5_multiple_account_support.d.ts +4 -0
- package/dist/src/store/migrations/5_multiple_account_support.js +96 -0
- package/dist/src/store/migrations/5_multiple_account_support.js.map +1 -0
- package/dist/src/store/migrations/6_use_ledger_live_default.d.ts +4 -0
- package/dist/src/store/migrations/6_use_ledger_live_default.js +11 -0
- package/dist/src/store/migrations/6_use_ledger_live_default.js.map +1 -0
- package/dist/src/store/migrations/7_multi_provider_swaps.d.ts +4 -0
- package/dist/src/store/migrations/7_multi_provider_swaps.js +27 -0
- package/dist/src/store/migrations/7_multi_provider_swaps.js.map +1 -0
- package/dist/src/store/migrations/8_remove_use_ledger_live.d.ts +4 -0
- package/dist/src/store/migrations/8_remove_use_ledger_live.js +12 -0
- package/dist/src/store/migrations/8_remove_use_ledger_live.js.map +1 -0
- package/dist/src/store/migrations/9_inject_ethereum_asset_chain.d.ts +4 -0
- package/dist/src/store/migrations/9_inject_ethereum_asset_chain.js +14 -0
- package/dist/src/store/migrations/9_inject_ethereum_asset_chain.js.map +1 -0
- package/dist/src/store/migrations/before_after_migration_script.test.d.ts +1 -0
- package/dist/src/store/migrations/before_after_migration_script.test.js +92 -0
- package/dist/src/store/migrations/before_after_migration_script.test.js.map +1 -0
- package/dist/src/store/migrations/enable_chain.d.ts +3 -0
- package/dist/src/store/migrations/enable_chain.js +71 -0
- package/dist/src/store/migrations/enable_chain.js.map +1 -0
- package/dist/src/store/migrations/index.d.ts +5 -0
- package/dist/src/store/migrations/index.js +78 -0
- package/dist/src/store/migrations/index.js.map +1 -0
- package/dist/src/store/migrations/migration_script.test.d.ts +1 -0
- package/dist/src/store/migrations/migration_script.test.js +59 -0
- package/dist/src/store/migrations/migration_script.test.js.map +1 -0
- package/dist/src/store/mutations.d.ts +209 -0
- package/dist/src/store/mutations.js +348 -0
- package/dist/src/store/mutations.js.map +1 -0
- package/dist/src/store/state.d.ts +3 -0
- package/dist/src/store/state.js +46 -0
- package/dist/src/store/state.js.map +1 -0
- package/dist/src/store/types.d.ts +249 -0
- package/dist/src/store/types.js +64 -0
- package/dist/src/store/types.js.map +1 -0
- package/dist/src/store/utils.d.ts +38 -0
- package/dist/src/store/utils.js +194 -0
- package/dist/src/store/utils.js.map +1 -0
- package/dist/src/swaps/EvmSwapProvider.d.ts +32 -0
- package/dist/src/swaps/EvmSwapProvider.js +118 -0
- package/dist/src/swaps/EvmSwapProvider.js.map +1 -0
- package/dist/src/swaps/SwapProvider.d.ts +35 -0
- package/dist/src/swaps/SwapProvider.js +89 -0
- package/dist/src/swaps/SwapProvider.js.map +1 -0
- package/dist/src/swaps/astroport/AstroportSwapProvider.d.ts +67 -0
- package/dist/src/swaps/astroport/AstroportSwapProvider.js +251 -0
- package/dist/src/swaps/astroport/AstroportSwapProvider.js.map +1 -0
- package/dist/src/swaps/astroport/info.json +7 -0
- package/dist/src/swaps/astroport/queries.d.ts +108 -0
- package/dist/src/swaps/astroport/queries.js +227 -0
- package/dist/src/swaps/astroport/queries.js.map +1 -0
- package/dist/src/swaps/debridge/DeBridgeSwapProvider.d.ts +98 -0
- package/dist/src/swaps/debridge/DeBridgeSwapProvider.js +553 -0
- package/dist/src/swaps/debridge/DeBridgeSwapProvider.js.map +1 -0
- package/dist/src/swaps/debridge/abi/DeBridgeGate.json +1958 -0
- package/dist/src/swaps/debridge/abi/SignatureVerifier.json +925 -0
- package/dist/src/swaps/debridge/info.json +13 -0
- package/dist/src/swaps/fastbtc/FastBTCDepositSwapProvider.d.ts +103 -0
- package/dist/src/swaps/fastbtc/FastBTCDepositSwapProvider.js +292 -0
- package/dist/src/swaps/fastbtc/FastBTCDepositSwapProvider.js.map +1 -0
- package/dist/src/swaps/fastbtc/FastBTCWithdrawSwapProvider.d.ts +108 -0
- package/dist/src/swaps/fastbtc/FastBTCWithdrawSwapProvider.js +306 -0
- package/dist/src/swaps/fastbtc/FastBTCWithdrawSwapProvider.js.map +1 -0
- package/dist/src/swaps/fastbtc/fastBtcBridgeContract.d.ts +19 -0
- package/dist/src/swaps/fastbtc/fastBtcBridgeContract.js +24 -0
- package/dist/src/swaps/fastbtc/fastBtcBridgeContract.js.map +1 -0
- package/dist/src/swaps/fastbtc/info.json +7 -0
- package/dist/src/swaps/hop/HopSwapProvider.d.ts +124 -0
- package/dist/src/swaps/hop/HopSwapProvider.js +479 -0
- package/dist/src/swaps/hop/HopSwapProvider.js.map +1 -0
- package/dist/src/swaps/hop/info.json +12 -0
- package/dist/src/swaps/hop/queries.d.ts +2 -0
- package/dist/src/swaps/hop/queries.js +61 -0
- package/dist/src/swaps/hop/queries.js.map +1 -0
- package/dist/src/swaps/jupiter/JupiterSwapProvider.d.ts +46 -0
- package/dist/src/swaps/jupiter/JupiterSwapProvider.js +189 -0
- package/dist/src/swaps/jupiter/JupiterSwapProvider.js.map +1 -0
- package/dist/src/swaps/jupiter/info.json +7 -0
- package/dist/src/swaps/lifi/LifiSwapProvider.d.ts +76 -0
- package/dist/src/swaps/lifi/LifiSwapProvider.js +313 -0
- package/dist/src/swaps/lifi/LifiSwapProvider.js.map +1 -0
- package/dist/src/swaps/lifi/info.json +7 -0
- package/dist/src/swaps/liquality/LiqualitySwapProvider.d.ts +104 -0
- package/dist/src/swaps/liquality/LiqualitySwapProvider.js +704 -0
- package/dist/src/swaps/liquality/LiqualitySwapProvider.js.map +1 -0
- package/dist/src/swaps/liquality/info.json +7 -0
- package/dist/src/swaps/liqualityboost/liqualityBoostERC20toNative/LiqualityBoostERC20toNative.d.ts +124 -0
- package/dist/src/swaps/liqualityboost/liqualityBoostERC20toNative/LiqualityBoostERC20toNative.js +239 -0
- package/dist/src/swaps/liqualityboost/liqualityBoostERC20toNative/LiqualityBoostERC20toNative.js.map +1 -0
- package/dist/src/swaps/liqualityboost/liqualityBoostERC20toNative/info.json +7 -0
- package/dist/src/swaps/liqualityboost/liqualityBoostNativeToERC20/LiqualityBoostNativeToERC20.d.ts +52 -0
- package/dist/src/swaps/liqualityboost/liqualityBoostNativeToERC20/LiqualityBoostNativeToERC20.js +213 -0
- package/dist/src/swaps/liqualityboost/liqualityBoostNativeToERC20/LiqualityBoostNativeToERC20.js.map +1 -0
- package/dist/src/swaps/liqualityboost/liqualityBoostNativeToERC20/info.json +7 -0
- package/dist/src/swaps/liqualityboost/types.d.ts +17 -0
- package/dist/src/swaps/liqualityboost/types.js +3 -0
- package/dist/src/swaps/liqualityboost/types.js.map +1 -0
- package/dist/src/swaps/oneinch/OneinchSwapProvider.d.ts +86 -0
- package/dist/src/swaps/oneinch/OneinchSwapProvider.js +369 -0
- package/dist/src/swaps/oneinch/OneinchSwapProvider.js.map +1 -0
- package/dist/src/swaps/oneinch/info.json +13 -0
- package/dist/src/swaps/sovryn/SovrynSwapProvider.d.ts +110 -0
- package/dist/src/swaps/sovryn/SovrynSwapProvider.js +369 -0
- package/dist/src/swaps/sovryn/SovrynSwapProvider.js.map +1 -0
- package/dist/src/swaps/sovryn/info.json +7 -0
- package/dist/src/swaps/teleswap/TeleSwapSwapProvider.d.ts +167 -0
- package/dist/src/swaps/teleswap/TeleSwapSwapProvider.js +874 -0
- package/dist/src/swaps/teleswap/TeleSwapSwapProvider.js.map +1 -0
- package/dist/src/swaps/teleswap/info.json +7 -0
- package/dist/src/swaps/thorchain/ThorchainSwapProvider.d.ts +194 -0
- package/dist/src/swaps/thorchain/ThorchainSwapProvider.js +534 -0
- package/dist/src/swaps/thorchain/ThorchainSwapProvider.js.map +1 -0
- package/dist/src/swaps/thorchain/info.json +7 -0
- package/dist/src/swaps/types.d.ts +87 -0
- package/dist/src/swaps/types.js +9 -0
- package/dist/src/swaps/types.js.map +1 -0
- package/dist/src/swaps/uniswap/UniswapSwapProvider.d.ts +117 -0
- package/dist/src/swaps/uniswap/UniswapSwapProvider.js +438 -0
- package/dist/src/swaps/uniswap/UniswapSwapProvider.js.map +1 -0
- package/dist/src/swaps/uniswap/info.json +7 -0
- package/dist/src/swaps/utils.d.ts +92 -0
- package/dist/src/swaps/utils.js +57 -0
- package/dist/src/swaps/utils.js.map +1 -0
- package/dist/src/tsconfig.json +30 -0
- package/dist/src/types.d.ts +29 -0
- package/dist/src/types.js +3 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/utils/accounts.d.ts +16 -0
- package/dist/src/utils/accounts.js +89 -0
- package/dist/src/utils/accounts.js.map +1 -0
- package/dist/src/utils/address.d.ts +8 -0
- package/dist/src/utils/address.js +17 -0
- package/dist/src/utils/address.js.map +1 -0
- package/dist/src/utils/address.test.d.ts +1 -0
- package/dist/src/utils/address.test.js +12 -0
- package/dist/src/utils/address.test.js.map +1 -0
- package/dist/src/utils/asset.d.ts +22 -0
- package/dist/src/utils/asset.js +198 -0
- package/dist/src/utils/asset.js.map +1 -0
- package/dist/src/utils/asset.test.d.ts +1 -0
- package/dist/src/utils/asset.test.js +42 -0
- package/dist/src/utils/asset.test.js.map +1 -0
- package/dist/src/utils/chainify.d.ts +3 -0
- package/dist/src/utils/chainify.js +41 -0
- package/dist/src/utils/chainify.js.map +1 -0
- package/dist/src/utils/coinFormatter.d.ts +13 -0
- package/dist/src/utils/coinFormatter.js +58 -0
- package/dist/src/utils/coinFormatter.js.map +1 -0
- package/dist/src/utils/crypto.d.ts +6 -0
- package/dist/src/utils/crypto.js +70 -0
- package/dist/src/utils/crypto.js.map +1 -0
- package/dist/src/utils/cryptoassets.d.ts +5 -0
- package/dist/src/utils/cryptoassets.js +26 -0
- package/dist/src/utils/cryptoassets.js.map +1 -0
- package/dist/src/utils/derivationPath.d.ts +6 -0
- package/dist/src/utils/derivationPath.js +75 -0
- package/dist/src/utils/derivationPath.js.map +1 -0
- package/dist/src/utils/derivationPath.spec.d.ts +1 -0
- package/dist/src/utils/derivationPath.spec.js +37 -0
- package/dist/src/utils/derivationPath.spec.js.map +1 -0
- package/dist/src/utils/export.d.ts +5 -0
- package/dist/src/utils/export.js +24 -0
- package/dist/src/utils/export.js.map +1 -0
- package/dist/src/utils/fees.d.ts +43 -0
- package/dist/src/utils/fees.js +222 -0
- package/dist/src/utils/fees.js.map +1 -0
- package/dist/src/utils/fees.test.d.ts +1 -0
- package/dist/src/utils/fees.test.js +40 -0
- package/dist/src/utils/fees.test.js.map +1 -0
- package/dist/src/utils/fetchTokenDetails.d.ts +1 -0
- package/dist/src/utils/fetchTokenDetails.js +19 -0
- package/dist/src/utils/fetchTokenDetails.js.map +1 -0
- package/dist/src/utils/history.d.ts +66 -0
- package/dist/src/utils/history.js +135 -0
- package/dist/src/utils/history.js.map +1 -0
- package/dist/src/utils/isTransactionNotFoundError.d.ts +1 -0
- package/dist/src/utils/isTransactionNotFoundError.js +16 -0
- package/dist/src/utils/isTransactionNotFoundError.js.map +1 -0
- package/dist/src/utils/ledger.d.ts +12 -0
- package/dist/src/utils/ledger.js +38 -0
- package/dist/src/utils/ledger.js.map +1 -0
- package/dist/src/utils/moment.d.ts +2 -0
- package/dist/src/utils/moment.js +8 -0
- package/dist/src/utils/moment.js.map +1 -0
- package/dist/src/utils/networks.d.ts +10 -0
- package/dist/src/utils/networks.js +43 -0
- package/dist/src/utils/networks.js.map +1 -0
- package/dist/src/utils/parseTokenTx.d.ts +2 -0
- package/dist/src/utils/parseTokenTx.js +10 -0
- package/dist/src/utils/parseTokenTx.js.map +1 -0
- package/dist/src/utils/quotes.d.ts +5 -0
- package/dist/src/utils/quotes.js +20 -0
- package/dist/src/utils/quotes.js.map +1 -0
- package/dist/src/utils/quotes.test.d.ts +1 -0
- package/dist/src/utils/quotes.test.js +85 -0
- package/dist/src/utils/quotes.test.js.map +1 -0
- package/dist/src/utils/timeline.d.ts +71 -0
- package/dist/src/utils/timeline.js +176 -0
- package/dist/src/utils/timeline.js.map +1 -0
- package/dist/src/walletOptions/defaultOptions.d.ts +3 -0
- package/dist/src/walletOptions/defaultOptions.js +36 -0
- package/dist/src/walletOptions/defaultOptions.js.map +1 -0
- package/dist/src/walletOptions/index.d.ts +7 -0
- package/dist/src/walletOptions/index.js +11 -0
- package/dist/src/walletOptions/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,3524 @@
|
|
|
1
|
+
import { ActionContext as _ActionContext } from 'vuex';
|
|
2
|
+
import * as actions from './actions';
|
|
3
|
+
import { RootState } from './types';
|
|
4
|
+
declare const store: {
|
|
5
|
+
readonly state: {
|
|
6
|
+
readonly version: number;
|
|
7
|
+
readonly key: string;
|
|
8
|
+
readonly wallets: import("./types").Wallet[];
|
|
9
|
+
readonly unlockedAt: number;
|
|
10
|
+
readonly brokerReady: boolean;
|
|
11
|
+
readonly encryptedWallets: string;
|
|
12
|
+
readonly enabledAssets: {
|
|
13
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
14
|
+
testnet?: Record<string, string[]> | undefined;
|
|
15
|
+
};
|
|
16
|
+
readonly customTokens: {
|
|
17
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
18
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
19
|
+
};
|
|
20
|
+
readonly accounts: {
|
|
21
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
22
|
+
};
|
|
23
|
+
readonly fiatRates: {
|
|
24
|
+
[x: string]: number;
|
|
25
|
+
};
|
|
26
|
+
readonly currenciesInfo: {
|
|
27
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
28
|
+
};
|
|
29
|
+
readonly fees: {
|
|
30
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
31
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
32
|
+
};
|
|
33
|
+
readonly history: {
|
|
34
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
35
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
36
|
+
};
|
|
37
|
+
readonly marketData: {
|
|
38
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
39
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
40
|
+
};
|
|
41
|
+
readonly activeNetwork: import("./types").Network;
|
|
42
|
+
readonly activeWalletId: string;
|
|
43
|
+
readonly keyUpdatedAt: number;
|
|
44
|
+
readonly keySalt: string;
|
|
45
|
+
readonly termsAcceptedAt: number;
|
|
46
|
+
readonly setupAt: number;
|
|
47
|
+
readonly injectEthereum: boolean;
|
|
48
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
49
|
+
readonly usbBridgeWindowsId: number;
|
|
50
|
+
readonly externalConnections: {
|
|
51
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
52
|
+
};
|
|
53
|
+
readonly rskLegacyDerivation: boolean;
|
|
54
|
+
readonly analytics: {
|
|
55
|
+
userId: string;
|
|
56
|
+
acceptedDate: number;
|
|
57
|
+
askedDate: number;
|
|
58
|
+
askedTimes: number;
|
|
59
|
+
notAskAgain: boolean;
|
|
60
|
+
};
|
|
61
|
+
readonly experiments: {
|
|
62
|
+
manageAccounts?: boolean | undefined;
|
|
63
|
+
reportErrors?: boolean | undefined;
|
|
64
|
+
};
|
|
65
|
+
readonly whatsNewModalVersion: string;
|
|
66
|
+
readonly enabledChains: {
|
|
67
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
68
|
+
};
|
|
69
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
70
|
+
readonly customChainSeetings: {
|
|
71
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
72
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
getters: {
|
|
76
|
+
readonly client: ({ network, walletId, chainId, accountId, useCache, accountType, accountIndex, }: {
|
|
77
|
+
network: import("./types").Network;
|
|
78
|
+
walletId: string;
|
|
79
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
80
|
+
accountId?: string | undefined;
|
|
81
|
+
useCache?: boolean | undefined;
|
|
82
|
+
accountType?: import("./types").AccountType | undefined;
|
|
83
|
+
accountIndex?: number | undefined;
|
|
84
|
+
}) => import("@yaswap/client").Client<import("@yaswap/client").Chain<any, import("@yaswap/types").Network>, import("@yaswap/client").Wallet<any, any>, import("@yaswap/client").Swap<any, any, import("@yaswap/client").Wallet<any, any>>, import("@yaswap/client").Nft<any, any>>;
|
|
85
|
+
readonly historyItemById: (network: import("./types").Network, walletId: string, id: string) => import("./types").HistoryItem | undefined;
|
|
86
|
+
readonly cryptoassets: {
|
|
87
|
+
[x: string]: import("@yaswap/cryptoassets").IAsset;
|
|
88
|
+
};
|
|
89
|
+
readonly networkAccounts: readonly import("./types").Account[];
|
|
90
|
+
readonly networkAssets: readonly string[];
|
|
91
|
+
readonly allNetworkAssets: readonly string[];
|
|
92
|
+
readonly activity: readonly import("./types").HistoryItem[];
|
|
93
|
+
readonly totalFiatBalance: {
|
|
94
|
+
readonly c: number[] | null;
|
|
95
|
+
readonly e: number | null;
|
|
96
|
+
readonly s: number | null;
|
|
97
|
+
readonly absoluteValue: () => import("bignumber.js").BigNumber;
|
|
98
|
+
readonly abs: () => import("bignumber.js").BigNumber;
|
|
99
|
+
readonly comparedTo: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => number;
|
|
100
|
+
readonly decimalPlaces: {
|
|
101
|
+
(): number | null;
|
|
102
|
+
(decimalPlaces: number, roundingMode?: import("bignumber.js").BigNumber.RoundingMode | undefined): import("bignumber.js").BigNumber;
|
|
103
|
+
};
|
|
104
|
+
readonly dp: {
|
|
105
|
+
(): number | null;
|
|
106
|
+
(decimalPlaces: number, roundingMode?: import("bignumber.js").BigNumber.RoundingMode | undefined): import("bignumber.js").BigNumber;
|
|
107
|
+
};
|
|
108
|
+
readonly dividedBy: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => import("bignumber.js").BigNumber;
|
|
109
|
+
readonly div: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => import("bignumber.js").BigNumber;
|
|
110
|
+
readonly dividedToIntegerBy: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => import("bignumber.js").BigNumber;
|
|
111
|
+
readonly idiv: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => import("bignumber.js").BigNumber;
|
|
112
|
+
readonly exponentiatedBy: {
|
|
113
|
+
(n: import("bignumber.js").BigNumber.Value, m?: import("bignumber.js").BigNumber.Value | undefined): import("bignumber.js").BigNumber;
|
|
114
|
+
(n: number, m?: import("bignumber.js").BigNumber.Value | undefined): import("bignumber.js").BigNumber;
|
|
115
|
+
};
|
|
116
|
+
readonly pow: {
|
|
117
|
+
(n: import("bignumber.js").BigNumber.Value, m?: import("bignumber.js").BigNumber.Value | undefined): import("bignumber.js").BigNumber;
|
|
118
|
+
(n: number, m?: import("bignumber.js").BigNumber.Value | undefined): import("bignumber.js").BigNumber;
|
|
119
|
+
};
|
|
120
|
+
readonly integerValue: (rm?: import("bignumber.js").BigNumber.RoundingMode | undefined) => import("bignumber.js").BigNumber;
|
|
121
|
+
readonly isEqualTo: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => boolean;
|
|
122
|
+
readonly eq: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => boolean;
|
|
123
|
+
readonly isFinite: () => boolean;
|
|
124
|
+
readonly isGreaterThan: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => boolean;
|
|
125
|
+
readonly gt: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => boolean;
|
|
126
|
+
readonly isGreaterThanOrEqualTo: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => boolean;
|
|
127
|
+
readonly gte: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => boolean;
|
|
128
|
+
readonly isInteger: () => boolean;
|
|
129
|
+
readonly isLessThan: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => boolean;
|
|
130
|
+
readonly lt: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => boolean;
|
|
131
|
+
readonly isLessThanOrEqualTo: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => boolean;
|
|
132
|
+
readonly lte: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => boolean;
|
|
133
|
+
readonly isNaN: () => boolean;
|
|
134
|
+
readonly isNegative: () => boolean;
|
|
135
|
+
readonly isPositive: () => boolean;
|
|
136
|
+
readonly isZero: () => boolean;
|
|
137
|
+
readonly minus: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => import("bignumber.js").BigNumber;
|
|
138
|
+
readonly modulo: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => import("bignumber.js").BigNumber;
|
|
139
|
+
readonly mod: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => import("bignumber.js").BigNumber;
|
|
140
|
+
readonly multipliedBy: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => import("bignumber.js").BigNumber;
|
|
141
|
+
readonly times: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => import("bignumber.js").BigNumber;
|
|
142
|
+
readonly negated: () => import("bignumber.js").BigNumber;
|
|
143
|
+
readonly plus: (n: import("bignumber.js").BigNumber.Value, base?: number | undefined) => import("bignumber.js").BigNumber;
|
|
144
|
+
readonly precision: {
|
|
145
|
+
(includeZeros?: boolean | undefined): number;
|
|
146
|
+
(significantDigits: number, roundingMode?: import("bignumber.js").BigNumber.RoundingMode | undefined): import("bignumber.js").BigNumber;
|
|
147
|
+
};
|
|
148
|
+
readonly sd: {
|
|
149
|
+
(includeZeros?: boolean | undefined): number;
|
|
150
|
+
(significantDigits: number, roundingMode?: import("bignumber.js").BigNumber.RoundingMode | undefined): import("bignumber.js").BigNumber;
|
|
151
|
+
};
|
|
152
|
+
readonly shiftedBy: (n: number) => import("bignumber.js").BigNumber;
|
|
153
|
+
readonly squareRoot: () => import("bignumber.js").BigNumber;
|
|
154
|
+
readonly sqrt: () => import("bignumber.js").BigNumber;
|
|
155
|
+
readonly toExponential: {
|
|
156
|
+
(decimalPlaces: number, roundingMode?: import("bignumber.js").BigNumber.RoundingMode | undefined): string;
|
|
157
|
+
(): string;
|
|
158
|
+
};
|
|
159
|
+
readonly toFixed: {
|
|
160
|
+
(decimalPlaces: number, roundingMode?: import("bignumber.js").BigNumber.RoundingMode | undefined): string;
|
|
161
|
+
(): string;
|
|
162
|
+
};
|
|
163
|
+
readonly toFormat: {
|
|
164
|
+
(decimalPlaces: number, roundingMode: import("bignumber.js").BigNumber.RoundingMode, format?: import("bignumber.js").BigNumber.Format | undefined): string;
|
|
165
|
+
(decimalPlaces: number, roundingMode?: import("bignumber.js").BigNumber.RoundingMode | undefined): string;
|
|
166
|
+
(decimalPlaces?: number | undefined): string;
|
|
167
|
+
(decimalPlaces: number, format: import("bignumber.js").BigNumber.Format): string;
|
|
168
|
+
(format: import("bignumber.js").BigNumber.Format): string;
|
|
169
|
+
};
|
|
170
|
+
readonly toFraction: (max_denominator?: import("bignumber.js").BigNumber.Value | undefined) => [import("bignumber.js").BigNumber, import("bignumber.js").BigNumber];
|
|
171
|
+
readonly toJSON: () => string;
|
|
172
|
+
readonly toNumber: () => number;
|
|
173
|
+
readonly toPrecision: {
|
|
174
|
+
(significantDigits: number, roundingMode?: import("bignumber.js").BigNumber.RoundingMode | undefined): string;
|
|
175
|
+
(): string;
|
|
176
|
+
};
|
|
177
|
+
readonly toString: (base?: number | undefined) => string;
|
|
178
|
+
readonly valueOf: () => string;
|
|
179
|
+
};
|
|
180
|
+
readonly accountItem: (accountId: string) => import("./types").Account | undefined;
|
|
181
|
+
readonly suggestedFeePrices: (asset: string) => import("@yaswap/types").FeeDetails | undefined;
|
|
182
|
+
readonly accountsWithBalance: readonly import("./types").Account[];
|
|
183
|
+
readonly accountsData: readonly import("./types").Account[];
|
|
184
|
+
readonly accountFiatBalance: (walletId: string, network: import("./types").Network, accountId: string) => import("bignumber.js").BigNumber;
|
|
185
|
+
readonly assetFiatBalance: (asset: string, balance: import("bignumber.js").BigNumber) => import("bignumber.js").BigNumber | null;
|
|
186
|
+
readonly assetMarketCap: (asset: string) => import("@yaswap/types").Nullable<import("bignumber.js").BigNumber>;
|
|
187
|
+
readonly chainAssets: {
|
|
188
|
+
readonly yacoin?: string[] | undefined;
|
|
189
|
+
readonly bitcoin?: string[] | undefined;
|
|
190
|
+
readonly ethereum?: string[] | undefined;
|
|
191
|
+
readonly rsk?: string[] | undefined;
|
|
192
|
+
readonly bsc?: string[] | undefined;
|
|
193
|
+
readonly near?: string[] | undefined;
|
|
194
|
+
readonly polygon?: string[] | undefined;
|
|
195
|
+
readonly arbitrum?: string[] | undefined;
|
|
196
|
+
readonly solana?: string[] | undefined;
|
|
197
|
+
readonly fuse?: string[] | undefined;
|
|
198
|
+
readonly terra?: string[] | undefined;
|
|
199
|
+
readonly avalanche?: string[] | undefined;
|
|
200
|
+
readonly optimism?: string[] | undefined;
|
|
201
|
+
};
|
|
202
|
+
readonly analyticsEnabled: Readonly<boolean>;
|
|
203
|
+
readonly allNftCollections: {
|
|
204
|
+
[x: string]: import("./types").NFTWithAccount[];
|
|
205
|
+
};
|
|
206
|
+
readonly accountNftCollections: (accountId: string) => import("./types").NFTCollections<import("./types").NFT>;
|
|
207
|
+
readonly mergedChainSettings: {
|
|
208
|
+
readonly yacoin: import("../types").ChainifyNetwork;
|
|
209
|
+
readonly bitcoin: import("../types").ChainifyNetwork;
|
|
210
|
+
readonly ethereum: import("../types").ChainifyNetwork;
|
|
211
|
+
readonly rsk: import("../types").ChainifyNetwork;
|
|
212
|
+
readonly bsc: import("../types").ChainifyNetwork;
|
|
213
|
+
readonly near: import("../types").ChainifyNetwork;
|
|
214
|
+
readonly polygon: import("../types").ChainifyNetwork;
|
|
215
|
+
readonly arbitrum: import("../types").ChainifyNetwork;
|
|
216
|
+
readonly solana: import("../types").ChainifyNetwork;
|
|
217
|
+
readonly fuse: import("../types").ChainifyNetwork;
|
|
218
|
+
readonly terra: import("../types").ChainifyNetwork;
|
|
219
|
+
readonly avalanche: import("../types").ChainifyNetwork;
|
|
220
|
+
readonly optimism: import("../types").ChainifyNetwork;
|
|
221
|
+
};
|
|
222
|
+
readonly chainSettings: readonly {
|
|
223
|
+
chain: string;
|
|
224
|
+
asset: string;
|
|
225
|
+
network: import("../types").ChainifyNetwork;
|
|
226
|
+
}[];
|
|
227
|
+
};
|
|
228
|
+
commit: {
|
|
229
|
+
SET_STATE: (payload: {
|
|
230
|
+
newState: RootState;
|
|
231
|
+
}) => void;
|
|
232
|
+
CREATE_WALLET: (payload: {
|
|
233
|
+
key: string;
|
|
234
|
+
keySalt: string;
|
|
235
|
+
encryptedWallets: string;
|
|
236
|
+
wallet: import("./types").Wallet;
|
|
237
|
+
}) => void;
|
|
238
|
+
ACCEPT_TNC: () => void;
|
|
239
|
+
CHANGE_ACTIVE_WALLETID: (payload: {
|
|
240
|
+
walletId: string;
|
|
241
|
+
}) => void;
|
|
242
|
+
CHANGE_ACTIVE_NETWORK: (payload: {
|
|
243
|
+
network: import("./types").Network;
|
|
244
|
+
}) => void;
|
|
245
|
+
CHANGE_PASSWORD: (payload: {
|
|
246
|
+
key: string;
|
|
247
|
+
keySalt: string;
|
|
248
|
+
encryptedWallets: string;
|
|
249
|
+
}) => void;
|
|
250
|
+
LOCK_WALLET: () => void;
|
|
251
|
+
UNLOCK_WALLET: (payload: {
|
|
252
|
+
key: string;
|
|
253
|
+
wallets: import("./types").Wallet[];
|
|
254
|
+
unlockedAt: number;
|
|
255
|
+
}) => void;
|
|
256
|
+
NEW_SWAP: (payload: {
|
|
257
|
+
network: import("./types").Network;
|
|
258
|
+
walletId: string;
|
|
259
|
+
swap: import("./types").SwapHistoryItem;
|
|
260
|
+
}) => void;
|
|
261
|
+
NEW_TRASACTION: (payload: {
|
|
262
|
+
network: import("./types").Network;
|
|
263
|
+
walletId: string;
|
|
264
|
+
transaction: import("./types").SendHistoryItem;
|
|
265
|
+
}) => void;
|
|
266
|
+
NEW_NFT_TRASACTION: (payload: {
|
|
267
|
+
network: import("./types").Network;
|
|
268
|
+
walletId: string;
|
|
269
|
+
transaction: import("./types").NFTSendHistoryItem;
|
|
270
|
+
}) => void;
|
|
271
|
+
UPDATE_HISTORY: (payload: {
|
|
272
|
+
network: import("./types").Network;
|
|
273
|
+
walletId: string;
|
|
274
|
+
id: string;
|
|
275
|
+
updates: Partial<import("./types").HistoryItem>;
|
|
276
|
+
}) => void;
|
|
277
|
+
REMOVE_ORDER: (payload: {
|
|
278
|
+
network: import("./types").Network;
|
|
279
|
+
walletId: string;
|
|
280
|
+
id: string;
|
|
281
|
+
}) => void;
|
|
282
|
+
UPDATE_BALANCE: (payload: {
|
|
283
|
+
network: import("./types").Network;
|
|
284
|
+
accountId: string;
|
|
285
|
+
walletId: string;
|
|
286
|
+
asset: string;
|
|
287
|
+
balance: string;
|
|
288
|
+
}) => void;
|
|
289
|
+
UPDATE_MULTIPLE_BALANCES: (payload: {
|
|
290
|
+
network: import("./types").Network;
|
|
291
|
+
accountId: string;
|
|
292
|
+
walletId: string;
|
|
293
|
+
assets: string[];
|
|
294
|
+
balances: import("@yaswap/types").Nullable<string>[];
|
|
295
|
+
}) => void;
|
|
296
|
+
UPDATE_FEES: (payload: {
|
|
297
|
+
network: import("./types").Network;
|
|
298
|
+
walletId: string;
|
|
299
|
+
asset: string;
|
|
300
|
+
fees: import("@yaswap/types").FeeDetails;
|
|
301
|
+
}) => void;
|
|
302
|
+
UPDATE_FIAT_RATES: (payload: {
|
|
303
|
+
fiatRates: import("./types").FiatRates;
|
|
304
|
+
}) => void;
|
|
305
|
+
UPDATE_CURRENCIES_INFO: (payload: {
|
|
306
|
+
currenciesInfo: import("./types").CurrenciesInfo;
|
|
307
|
+
}) => void;
|
|
308
|
+
UPDATE_MARKET_DATA: (payload: {
|
|
309
|
+
network: import("./types").Network;
|
|
310
|
+
marketData: import("./types").MarketData[];
|
|
311
|
+
}) => void;
|
|
312
|
+
SET_ETHEREUM_INJECTION_CHAIN: (payload: {
|
|
313
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
314
|
+
}) => void;
|
|
315
|
+
ENABLE_ETHEREUM_INJECTION: () => void;
|
|
316
|
+
DISABLE_ETHEREUM_INJECTION: () => void;
|
|
317
|
+
ENABLE_ASSETS: (payload: {
|
|
318
|
+
network: import("./types").Network;
|
|
319
|
+
walletId: string;
|
|
320
|
+
assets: string[];
|
|
321
|
+
}) => void;
|
|
322
|
+
DISABLE_ASSETS: (payload: {
|
|
323
|
+
network: import("./types").Network;
|
|
324
|
+
walletId: string;
|
|
325
|
+
assets: string[];
|
|
326
|
+
}) => void;
|
|
327
|
+
DISABLE_ACCOUNT_ASSETS: (payload: {
|
|
328
|
+
network: import("./types").Network;
|
|
329
|
+
walletId: string;
|
|
330
|
+
accountId: string;
|
|
331
|
+
assets: string[];
|
|
332
|
+
}) => void;
|
|
333
|
+
ENABLE_ACCOUNT_ASSETS: (payload: {
|
|
334
|
+
network: import("./types").Network;
|
|
335
|
+
walletId: string;
|
|
336
|
+
accountId: string;
|
|
337
|
+
assets: string[];
|
|
338
|
+
}) => void;
|
|
339
|
+
ADD_CUSTOM_TOKEN: (payload: {
|
|
340
|
+
network: import("./types").Network;
|
|
341
|
+
walletId: string;
|
|
342
|
+
customToken: import("./types").CustomToken;
|
|
343
|
+
}) => void;
|
|
344
|
+
REMOVE_CUSTOM_TOKEN: (payload: {
|
|
345
|
+
network: import("./types").Network;
|
|
346
|
+
walletId: string;
|
|
347
|
+
symbol: string;
|
|
348
|
+
}) => void;
|
|
349
|
+
CREATE_ACCOUNT: (payload: {
|
|
350
|
+
network: import("./types").Network;
|
|
351
|
+
walletId: string;
|
|
352
|
+
account: import("./types").Account;
|
|
353
|
+
}) => void;
|
|
354
|
+
UPDATE_ACCOUNT: (payload: {
|
|
355
|
+
network: import("./types").Network;
|
|
356
|
+
walletId: string;
|
|
357
|
+
account: import("./types").Account;
|
|
358
|
+
}) => void;
|
|
359
|
+
REMOVE_ACCOUNT: (payload: {
|
|
360
|
+
walletId: string;
|
|
361
|
+
id: string;
|
|
362
|
+
network: import("./types").Network;
|
|
363
|
+
}) => void;
|
|
364
|
+
UPDATE_ACCOUNT_ADDRESSES: (payload: {
|
|
365
|
+
network: import("./types").Network;
|
|
366
|
+
accountId: string;
|
|
367
|
+
walletId: string;
|
|
368
|
+
addresses: string[];
|
|
369
|
+
}) => void;
|
|
370
|
+
SET_USB_BRIDGE_WINDOWS_ID: (payload: {
|
|
371
|
+
id: number;
|
|
372
|
+
}) => void;
|
|
373
|
+
SET_EXTERNAL_CONNECTION_DEFAULT: (payload: {
|
|
374
|
+
origin: string;
|
|
375
|
+
activeWalletId: string;
|
|
376
|
+
accountId: string;
|
|
377
|
+
}) => void;
|
|
378
|
+
ADD_EXTERNAL_CONNECTION: (payload: {
|
|
379
|
+
origin: string;
|
|
380
|
+
activeWalletId: string;
|
|
381
|
+
accountId: string;
|
|
382
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
383
|
+
}) => void;
|
|
384
|
+
REMOVE_EXTERNAL_CONNECTIONS: (payload: {
|
|
385
|
+
activeWalletId: string;
|
|
386
|
+
}) => void;
|
|
387
|
+
SET_ANALYTICS_PREFERENCES: (payload: Partial<import("./types").AnalyticsState>) => void;
|
|
388
|
+
UPDATE_NFTS: (payload: {
|
|
389
|
+
network: import("./types").Network;
|
|
390
|
+
walletId: string;
|
|
391
|
+
accountId: string;
|
|
392
|
+
nfts: import("./types").NFT[];
|
|
393
|
+
}) => void;
|
|
394
|
+
NFT_TOGGLE_STARRED: (payload: {
|
|
395
|
+
network: import("./types").Network;
|
|
396
|
+
walletId: string;
|
|
397
|
+
accountId: string;
|
|
398
|
+
nft: import("./types").NFT;
|
|
399
|
+
}) => void;
|
|
400
|
+
TOGGLE_EXPERIMENT: (payload: {
|
|
401
|
+
name: import("./types").ExperimentType;
|
|
402
|
+
}) => void;
|
|
403
|
+
SET_WHATS_NEW_MODAL_VERSION: (payload: {
|
|
404
|
+
version: string;
|
|
405
|
+
}) => void;
|
|
406
|
+
TOGGLE_BLOCKCHAIN: (payload: {
|
|
407
|
+
network: import("./types").Network;
|
|
408
|
+
walletId: string;
|
|
409
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
410
|
+
enable: boolean;
|
|
411
|
+
}) => void;
|
|
412
|
+
TOGGLE_ACCOUNT: (payload: {
|
|
413
|
+
network: import("./types").Network;
|
|
414
|
+
walletId: string;
|
|
415
|
+
accountId: string;
|
|
416
|
+
enable: boolean;
|
|
417
|
+
}) => void;
|
|
418
|
+
LOG_ERROR: (payload: import("@yaswap/error-parser").LiqualityErrorJSON) => void;
|
|
419
|
+
CLEAR_ERROR_LOG: () => void;
|
|
420
|
+
SET_CUSTOM_CHAIN_SETTINGS: (payload: {
|
|
421
|
+
network: import("./types").Network;
|
|
422
|
+
walletId: string;
|
|
423
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
424
|
+
chanifyNetwork: import("@yaswap/types").Network;
|
|
425
|
+
}) => void;
|
|
426
|
+
REMOVE_CUSTOM_CHAIN_SETTINGS: (payload: {
|
|
427
|
+
network: import("./types").Network;
|
|
428
|
+
walletId: string;
|
|
429
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
430
|
+
}) => void;
|
|
431
|
+
};
|
|
432
|
+
dispatch: {
|
|
433
|
+
readonly acceptTermsAndConditions: (payload: {
|
|
434
|
+
analyticsAccepted: boolean;
|
|
435
|
+
}) => Promise<void>;
|
|
436
|
+
readonly createAccount: (payload: {
|
|
437
|
+
walletId: string;
|
|
438
|
+
network: import("./types").Network;
|
|
439
|
+
account: import("./types").Account;
|
|
440
|
+
}) => Promise<import("./types").Account>;
|
|
441
|
+
readonly removeAccount: (payload: {
|
|
442
|
+
network: import("./types").Network;
|
|
443
|
+
walletId: string;
|
|
444
|
+
id: string;
|
|
445
|
+
}) => Promise<string>;
|
|
446
|
+
readonly toggleAccount: (payload: {
|
|
447
|
+
network: import("./types").Network;
|
|
448
|
+
walletId: string;
|
|
449
|
+
accounts: string[];
|
|
450
|
+
enable: boolean;
|
|
451
|
+
}) => Promise<void>;
|
|
452
|
+
readonly toggleBlockchain: (payload: {
|
|
453
|
+
network: import("./types").Network;
|
|
454
|
+
walletId: string;
|
|
455
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
456
|
+
enable: boolean;
|
|
457
|
+
}) => Promise<void>;
|
|
458
|
+
readonly updateAccount: (payload: {
|
|
459
|
+
network: import("./types").Network;
|
|
460
|
+
walletId: string;
|
|
461
|
+
account: import("./types").Account;
|
|
462
|
+
}) => Promise<{
|
|
463
|
+
updatedAt: number;
|
|
464
|
+
id: string;
|
|
465
|
+
walletId: string;
|
|
466
|
+
createdAt: number;
|
|
467
|
+
enabled: boolean;
|
|
468
|
+
derivationPath: string;
|
|
469
|
+
chainCode?: string | undefined;
|
|
470
|
+
publicKey?: string | undefined;
|
|
471
|
+
nfts?: import("./types").NFT[] | undefined;
|
|
472
|
+
type: import("./types").AccountType;
|
|
473
|
+
name: string;
|
|
474
|
+
alias?: string | undefined;
|
|
475
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
476
|
+
index: number;
|
|
477
|
+
addresses: string[];
|
|
478
|
+
assets: string[];
|
|
479
|
+
balances: Record<string, string>;
|
|
480
|
+
color: string;
|
|
481
|
+
}>;
|
|
482
|
+
readonly addCustomToken: (payload: {
|
|
483
|
+
network: import("./types").Network;
|
|
484
|
+
walletId: string;
|
|
485
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
486
|
+
symbol: string;
|
|
487
|
+
name: string;
|
|
488
|
+
contractAddress: string;
|
|
489
|
+
decimals: number;
|
|
490
|
+
}) => Promise<void>;
|
|
491
|
+
readonly addExternalConnection: (payload: {
|
|
492
|
+
origin: string;
|
|
493
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
494
|
+
accountId: string;
|
|
495
|
+
setDefaultEthereum: boolean;
|
|
496
|
+
}) => Promise<void>;
|
|
497
|
+
readonly initializeAnalyticsPreferences: (payload: {
|
|
498
|
+
accepted: boolean;
|
|
499
|
+
}) => Promise<void>;
|
|
500
|
+
readonly updateAnalyticsPreferences: (payload: import("./types").AnalyticsState) => Promise<void>;
|
|
501
|
+
readonly setAnalyticsResponse: (payload: {
|
|
502
|
+
accepted: boolean;
|
|
503
|
+
}) => Promise<void>;
|
|
504
|
+
readonly initializeAnalytics: () => Promise<boolean>;
|
|
505
|
+
readonly trackAnalytics: (payload: {
|
|
506
|
+
event: string;
|
|
507
|
+
properties: actions.AmplitudeProperties;
|
|
508
|
+
}) => Promise<number> | Promise<undefined>;
|
|
509
|
+
readonly changeActiveNetwork: (payload: {
|
|
510
|
+
network: import("./types").Network;
|
|
511
|
+
}) => Promise<void>;
|
|
512
|
+
readonly changeActiveWalletId: (payload: {
|
|
513
|
+
walletId: string;
|
|
514
|
+
}) => Promise<void>;
|
|
515
|
+
readonly changePassword: (payload: {
|
|
516
|
+
key: string;
|
|
517
|
+
}) => Promise<void>;
|
|
518
|
+
readonly checkPendingActions: (payload: {
|
|
519
|
+
walletId: string;
|
|
520
|
+
}) => Promise<void>;
|
|
521
|
+
readonly createWallet: (payload: {
|
|
522
|
+
key: string;
|
|
523
|
+
mnemonic: string;
|
|
524
|
+
imported?: boolean | undefined;
|
|
525
|
+
}) => Promise<import("./types").Wallet>;
|
|
526
|
+
readonly disableAssets: (payload: {
|
|
527
|
+
network: import("./types").Network;
|
|
528
|
+
walletId: string;
|
|
529
|
+
assets: string[];
|
|
530
|
+
}) => Promise<void>;
|
|
531
|
+
readonly disableEthereumInjection: () => Promise<void>;
|
|
532
|
+
readonly enableAssets: (payload: {
|
|
533
|
+
network: import("./types").Network;
|
|
534
|
+
walletId: string;
|
|
535
|
+
assets: string[];
|
|
536
|
+
}) => Promise<void>;
|
|
537
|
+
readonly enableEthereumInjection: () => Promise<void>;
|
|
538
|
+
readonly exportPrivateKey: (payload: {
|
|
539
|
+
network: import("./types").Network;
|
|
540
|
+
walletId: string;
|
|
541
|
+
accountId: string;
|
|
542
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
543
|
+
}) => Promise<string>;
|
|
544
|
+
readonly fetchTokenDetails: (payload: actions.FetchTokenDetailsRequest) => Promise<import("@yaswap/types").Nullable<import("@yaswap/types").TokenDetails>>;
|
|
545
|
+
readonly forgetDappConnections: () => Promise<void>;
|
|
546
|
+
readonly getLockForAsset: (payload: {
|
|
547
|
+
network: import("./types").Network;
|
|
548
|
+
walletId: string;
|
|
549
|
+
asset: string;
|
|
550
|
+
item: import("./types").BaseHistoryItem;
|
|
551
|
+
}) => Promise<string>;
|
|
552
|
+
readonly getQuotes: (payload: import("../swaps/types").GetQuotesRequest) => Promise<actions.GetQuotesResult>;
|
|
553
|
+
readonly getSlowQuotes: (payload: {
|
|
554
|
+
requestId: string;
|
|
555
|
+
}) => Promise<import("../swaps/types").SwapQuote[]>;
|
|
556
|
+
readonly getUnusedAddresses: (payload: {
|
|
557
|
+
network: import("./types").Network;
|
|
558
|
+
walletId: string;
|
|
559
|
+
assets: string[];
|
|
560
|
+
accountId: string;
|
|
561
|
+
}) => Promise<string[]>;
|
|
562
|
+
readonly getLedgerAccounts: (payload: {
|
|
563
|
+
network: import("./types").Network;
|
|
564
|
+
walletId: string;
|
|
565
|
+
asset: string;
|
|
566
|
+
accountType: import("./types").AccountType;
|
|
567
|
+
startingIndex: number;
|
|
568
|
+
numAccounts: number;
|
|
569
|
+
}) => Promise<{
|
|
570
|
+
account: string;
|
|
571
|
+
index: number;
|
|
572
|
+
exists: boolean;
|
|
573
|
+
}[]>;
|
|
574
|
+
readonly initializeAddresses: (payload: {
|
|
575
|
+
network: import("./types").Network;
|
|
576
|
+
walletId: string;
|
|
577
|
+
}) => Promise<void>;
|
|
578
|
+
readonly lockWallet: () => Promise<void>;
|
|
579
|
+
readonly newSwap: (payload: {
|
|
580
|
+
network: import("./types").Network;
|
|
581
|
+
walletId: string;
|
|
582
|
+
quote: import("../swaps/types").SwapQuote;
|
|
583
|
+
fee: number;
|
|
584
|
+
claimFee: number;
|
|
585
|
+
feeLabel: import("./types").FeeLabel;
|
|
586
|
+
claimFeeLabel: import("./types").FeeLabel;
|
|
587
|
+
}) => Promise<import("./types").SwapHistoryItem>;
|
|
588
|
+
readonly performNextAction: (payload: {
|
|
589
|
+
network: import("./types").Network;
|
|
590
|
+
walletId: string;
|
|
591
|
+
id: string;
|
|
592
|
+
}) => Promise<Partial<import("./types").HistoryItem> | undefined>;
|
|
593
|
+
readonly proxyMutation: (payload: {
|
|
594
|
+
type: string;
|
|
595
|
+
payload: any;
|
|
596
|
+
}) => Promise<void>;
|
|
597
|
+
readonly removeCustomToken: (payload: {
|
|
598
|
+
network: import("./types").Network;
|
|
599
|
+
walletId: string;
|
|
600
|
+
symbol: string;
|
|
601
|
+
}) => Promise<void>;
|
|
602
|
+
readonly retrySwap: (payload: {
|
|
603
|
+
swap: import("./types").SwapHistoryItem;
|
|
604
|
+
}) => Promise<Partial<import("./types").SwapHistoryItem> | undefined>;
|
|
605
|
+
readonly sendNFTTransaction: (payload: import("./types").NFTSendTransactionParams) => Promise<import("@yaswap/types").Transaction<any>>;
|
|
606
|
+
readonly sendTransaction: (payload: {
|
|
607
|
+
network: import("./types").Network;
|
|
608
|
+
walletId: string;
|
|
609
|
+
accountId: string;
|
|
610
|
+
asset: string;
|
|
611
|
+
to: string;
|
|
612
|
+
amount: import("bignumber.js").BigNumber;
|
|
613
|
+
data: string;
|
|
614
|
+
fee: number;
|
|
615
|
+
feeAsset: string;
|
|
616
|
+
gas: number;
|
|
617
|
+
feeLabel: import("./types").FeeLabel;
|
|
618
|
+
fiatRate: number;
|
|
619
|
+
}) => Promise<import("./types").SendHistoryItem>;
|
|
620
|
+
readonly setEthereumInjectionChain: (payload: {
|
|
621
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
622
|
+
}) => Promise<void>;
|
|
623
|
+
readonly setWhatsNewModalVersion: (payload: {
|
|
624
|
+
version: string;
|
|
625
|
+
}) => Promise<void>;
|
|
626
|
+
readonly showNotification: (payload: import("../types").Notification) => Promise<void>;
|
|
627
|
+
readonly toggleExperiment: (payload: {
|
|
628
|
+
name: import("./types").ExperimentType;
|
|
629
|
+
}) => Promise<void>;
|
|
630
|
+
readonly toggleNFTStarred: (payload: {
|
|
631
|
+
network: import("./types").Network;
|
|
632
|
+
walletId: string;
|
|
633
|
+
accountId: string;
|
|
634
|
+
nft: import("./types").NFT;
|
|
635
|
+
}) => Promise<void>;
|
|
636
|
+
readonly unlockWallet: (payload: {
|
|
637
|
+
key: string;
|
|
638
|
+
}) => Promise<void>;
|
|
639
|
+
readonly updateAccountBalance: (payload: {
|
|
640
|
+
network: import("./types").Network;
|
|
641
|
+
walletId: string;
|
|
642
|
+
accountId: string;
|
|
643
|
+
}) => Promise<void>;
|
|
644
|
+
readonly updateBalances: (payload: {
|
|
645
|
+
walletId: string;
|
|
646
|
+
network: import("./types").Network;
|
|
647
|
+
accountIds?: string[] | undefined;
|
|
648
|
+
}) => Promise<void>;
|
|
649
|
+
readonly updateCurrenciesInfo: (payload: {
|
|
650
|
+
assets: string[];
|
|
651
|
+
}) => Promise<import("./types").CurrenciesInfo>;
|
|
652
|
+
readonly updateFees: (payload: {
|
|
653
|
+
asset: string;
|
|
654
|
+
}) => Promise<import("@yaswap/types").FeeDetails>;
|
|
655
|
+
readonly updateFiatRates: (payload: {
|
|
656
|
+
assets: string[];
|
|
657
|
+
}) => Promise<import("./types").FiatRates>;
|
|
658
|
+
readonly updateMarketData: (payload: {
|
|
659
|
+
network: import("./types").Network;
|
|
660
|
+
}) => Promise<{
|
|
661
|
+
network: import("./types").Network;
|
|
662
|
+
marketData: import("./types").MarketData[];
|
|
663
|
+
}>;
|
|
664
|
+
readonly updateNFTs: (payload: {
|
|
665
|
+
walletId: string;
|
|
666
|
+
network: import("./types").Network;
|
|
667
|
+
accountIds: string[];
|
|
668
|
+
}) => Promise<import("./types").NFT[][]>;
|
|
669
|
+
readonly updateTransactionFee: (payload: {
|
|
670
|
+
network: import("./types").Network;
|
|
671
|
+
walletId: string;
|
|
672
|
+
asset: string;
|
|
673
|
+
id: string;
|
|
674
|
+
hash: string;
|
|
675
|
+
newFee: number;
|
|
676
|
+
}) => Promise<import("@yaswap/types").Transaction<any>>;
|
|
677
|
+
readonly logError: (payload: import("@yaswap/error-parser").LiqualityErrorJSON) => Promise<void>;
|
|
678
|
+
readonly clearErrorLog: () => Promise<void>;
|
|
679
|
+
readonly saveCustomChainSettings: (payload: {
|
|
680
|
+
network: import("./types").Network;
|
|
681
|
+
walletId: string;
|
|
682
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
683
|
+
chanifyNetwork: import("@yaswap/types").Network;
|
|
684
|
+
}) => Promise<void>;
|
|
685
|
+
readonly removeCustomChainSettings: (payload: {
|
|
686
|
+
network: import("./types").Network;
|
|
687
|
+
walletId: string;
|
|
688
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
689
|
+
}) => Promise<void>;
|
|
690
|
+
};
|
|
691
|
+
original: {
|
|
692
|
+
readonly state: {
|
|
693
|
+
readonly version: number;
|
|
694
|
+
readonly key: string;
|
|
695
|
+
readonly wallets: import("./types").Wallet[];
|
|
696
|
+
readonly unlockedAt: number;
|
|
697
|
+
readonly brokerReady: boolean;
|
|
698
|
+
readonly encryptedWallets: string;
|
|
699
|
+
readonly enabledAssets: {
|
|
700
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
701
|
+
testnet?: Record<string, string[]> | undefined;
|
|
702
|
+
};
|
|
703
|
+
readonly customTokens: {
|
|
704
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
705
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
706
|
+
};
|
|
707
|
+
readonly accounts: {
|
|
708
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
709
|
+
};
|
|
710
|
+
readonly fiatRates: {
|
|
711
|
+
[x: string]: number;
|
|
712
|
+
};
|
|
713
|
+
readonly currenciesInfo: {
|
|
714
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
715
|
+
};
|
|
716
|
+
readonly fees: {
|
|
717
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
718
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
719
|
+
};
|
|
720
|
+
readonly history: {
|
|
721
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
722
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
723
|
+
};
|
|
724
|
+
readonly marketData: {
|
|
725
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
726
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
727
|
+
};
|
|
728
|
+
readonly activeNetwork: import("./types").Network;
|
|
729
|
+
readonly activeWalletId: string;
|
|
730
|
+
readonly keyUpdatedAt: number;
|
|
731
|
+
readonly keySalt: string;
|
|
732
|
+
readonly termsAcceptedAt: number;
|
|
733
|
+
readonly setupAt: number;
|
|
734
|
+
readonly injectEthereum: boolean;
|
|
735
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
736
|
+
readonly usbBridgeWindowsId: number;
|
|
737
|
+
readonly externalConnections: {
|
|
738
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
739
|
+
};
|
|
740
|
+
readonly rskLegacyDerivation: boolean;
|
|
741
|
+
readonly analytics: {
|
|
742
|
+
userId: string;
|
|
743
|
+
acceptedDate: number;
|
|
744
|
+
askedDate: number;
|
|
745
|
+
askedTimes: number;
|
|
746
|
+
notAskAgain: boolean;
|
|
747
|
+
};
|
|
748
|
+
readonly experiments: {
|
|
749
|
+
manageAccounts?: boolean | undefined;
|
|
750
|
+
reportErrors?: boolean | undefined;
|
|
751
|
+
};
|
|
752
|
+
readonly whatsNewModalVersion: string;
|
|
753
|
+
readonly enabledChains: {
|
|
754
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
755
|
+
};
|
|
756
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
757
|
+
readonly customChainSeetings: {
|
|
758
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
759
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
760
|
+
};
|
|
761
|
+
};
|
|
762
|
+
readonly getters: any;
|
|
763
|
+
replaceState: (state: {
|
|
764
|
+
readonly version: number;
|
|
765
|
+
readonly key: string;
|
|
766
|
+
readonly wallets: import("./types").Wallet[];
|
|
767
|
+
readonly unlockedAt: number;
|
|
768
|
+
readonly brokerReady: boolean;
|
|
769
|
+
readonly encryptedWallets: string;
|
|
770
|
+
readonly enabledAssets: {
|
|
771
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
772
|
+
testnet?: Record<string, string[]> | undefined;
|
|
773
|
+
};
|
|
774
|
+
readonly customTokens: {
|
|
775
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
776
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
777
|
+
};
|
|
778
|
+
readonly accounts: {
|
|
779
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
780
|
+
};
|
|
781
|
+
readonly fiatRates: {
|
|
782
|
+
[x: string]: number;
|
|
783
|
+
};
|
|
784
|
+
readonly currenciesInfo: {
|
|
785
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
786
|
+
};
|
|
787
|
+
readonly fees: {
|
|
788
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
789
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
790
|
+
};
|
|
791
|
+
readonly history: {
|
|
792
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
793
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
794
|
+
};
|
|
795
|
+
readonly marketData: {
|
|
796
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
797
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
798
|
+
};
|
|
799
|
+
readonly activeNetwork: import("./types").Network;
|
|
800
|
+
readonly activeWalletId: string;
|
|
801
|
+
readonly keyUpdatedAt: number;
|
|
802
|
+
readonly keySalt: string;
|
|
803
|
+
readonly termsAcceptedAt: number;
|
|
804
|
+
readonly setupAt: number;
|
|
805
|
+
readonly injectEthereum: boolean;
|
|
806
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
807
|
+
readonly usbBridgeWindowsId: number;
|
|
808
|
+
readonly externalConnections: {
|
|
809
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
810
|
+
};
|
|
811
|
+
readonly rskLegacyDerivation: boolean;
|
|
812
|
+
readonly analytics: {
|
|
813
|
+
userId: string;
|
|
814
|
+
acceptedDate: number;
|
|
815
|
+
askedDate: number;
|
|
816
|
+
askedTimes: number;
|
|
817
|
+
notAskAgain: boolean;
|
|
818
|
+
};
|
|
819
|
+
readonly experiments: {
|
|
820
|
+
manageAccounts?: boolean | undefined;
|
|
821
|
+
reportErrors?: boolean | undefined;
|
|
822
|
+
};
|
|
823
|
+
readonly whatsNewModalVersion: string;
|
|
824
|
+
readonly enabledChains: {
|
|
825
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
826
|
+
};
|
|
827
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
828
|
+
readonly customChainSeetings: {
|
|
829
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
830
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
831
|
+
};
|
|
832
|
+
}) => void;
|
|
833
|
+
dispatch: import("vuex").Dispatch;
|
|
834
|
+
commit: import("vuex").Commit;
|
|
835
|
+
subscribe: <P extends import("vuex").MutationPayload>(fn: (mutation: P, state: {
|
|
836
|
+
readonly version: number;
|
|
837
|
+
readonly key: string;
|
|
838
|
+
readonly wallets: import("./types").Wallet[];
|
|
839
|
+
readonly unlockedAt: number;
|
|
840
|
+
readonly brokerReady: boolean;
|
|
841
|
+
readonly encryptedWallets: string;
|
|
842
|
+
readonly enabledAssets: {
|
|
843
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
844
|
+
testnet?: Record<string, string[]> | undefined;
|
|
845
|
+
};
|
|
846
|
+
readonly customTokens: {
|
|
847
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
848
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
849
|
+
};
|
|
850
|
+
readonly accounts: {
|
|
851
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
852
|
+
};
|
|
853
|
+
readonly fiatRates: {
|
|
854
|
+
[x: string]: number;
|
|
855
|
+
};
|
|
856
|
+
readonly currenciesInfo: {
|
|
857
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
858
|
+
};
|
|
859
|
+
readonly fees: {
|
|
860
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
861
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
862
|
+
};
|
|
863
|
+
readonly history: {
|
|
864
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
865
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
866
|
+
};
|
|
867
|
+
readonly marketData: {
|
|
868
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
869
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
870
|
+
};
|
|
871
|
+
readonly activeNetwork: import("./types").Network;
|
|
872
|
+
readonly activeWalletId: string;
|
|
873
|
+
readonly keyUpdatedAt: number;
|
|
874
|
+
readonly keySalt: string;
|
|
875
|
+
readonly termsAcceptedAt: number;
|
|
876
|
+
readonly setupAt: number;
|
|
877
|
+
readonly injectEthereum: boolean;
|
|
878
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
879
|
+
readonly usbBridgeWindowsId: number;
|
|
880
|
+
readonly externalConnections: {
|
|
881
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
882
|
+
};
|
|
883
|
+
readonly rskLegacyDerivation: boolean;
|
|
884
|
+
readonly analytics: {
|
|
885
|
+
userId: string;
|
|
886
|
+
acceptedDate: number;
|
|
887
|
+
askedDate: number;
|
|
888
|
+
askedTimes: number;
|
|
889
|
+
notAskAgain: boolean;
|
|
890
|
+
};
|
|
891
|
+
readonly experiments: {
|
|
892
|
+
manageAccounts?: boolean | undefined;
|
|
893
|
+
reportErrors?: boolean | undefined;
|
|
894
|
+
};
|
|
895
|
+
readonly whatsNewModalVersion: string;
|
|
896
|
+
readonly enabledChains: {
|
|
897
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
898
|
+
};
|
|
899
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
900
|
+
readonly customChainSeetings: {
|
|
901
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
902
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
903
|
+
};
|
|
904
|
+
}) => any, options?: import("vuex").SubscribeOptions | undefined) => () => void;
|
|
905
|
+
subscribeAction: <P_1 extends import("vuex").ActionPayload>(fn: import("vuex").SubscribeActionOptions<P_1, {
|
|
906
|
+
readonly version: number;
|
|
907
|
+
readonly key: string;
|
|
908
|
+
readonly wallets: import("./types").Wallet[];
|
|
909
|
+
readonly unlockedAt: number;
|
|
910
|
+
readonly brokerReady: boolean;
|
|
911
|
+
readonly encryptedWallets: string;
|
|
912
|
+
readonly enabledAssets: {
|
|
913
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
914
|
+
testnet?: Record<string, string[]> | undefined;
|
|
915
|
+
};
|
|
916
|
+
readonly customTokens: {
|
|
917
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
918
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
919
|
+
};
|
|
920
|
+
readonly accounts: {
|
|
921
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
922
|
+
};
|
|
923
|
+
readonly fiatRates: {
|
|
924
|
+
[x: string]: number;
|
|
925
|
+
};
|
|
926
|
+
readonly currenciesInfo: {
|
|
927
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
928
|
+
};
|
|
929
|
+
readonly fees: {
|
|
930
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
931
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
932
|
+
};
|
|
933
|
+
readonly history: {
|
|
934
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
935
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
936
|
+
};
|
|
937
|
+
readonly marketData: {
|
|
938
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
939
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
940
|
+
};
|
|
941
|
+
readonly activeNetwork: import("./types").Network;
|
|
942
|
+
readonly activeWalletId: string;
|
|
943
|
+
readonly keyUpdatedAt: number;
|
|
944
|
+
readonly keySalt: string;
|
|
945
|
+
readonly termsAcceptedAt: number;
|
|
946
|
+
readonly setupAt: number;
|
|
947
|
+
readonly injectEthereum: boolean;
|
|
948
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
949
|
+
readonly usbBridgeWindowsId: number;
|
|
950
|
+
readonly externalConnections: {
|
|
951
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
952
|
+
};
|
|
953
|
+
readonly rskLegacyDerivation: boolean;
|
|
954
|
+
readonly analytics: {
|
|
955
|
+
userId: string;
|
|
956
|
+
acceptedDate: number;
|
|
957
|
+
askedDate: number;
|
|
958
|
+
askedTimes: number;
|
|
959
|
+
notAskAgain: boolean;
|
|
960
|
+
};
|
|
961
|
+
readonly experiments: {
|
|
962
|
+
manageAccounts?: boolean | undefined;
|
|
963
|
+
reportErrors?: boolean | undefined;
|
|
964
|
+
};
|
|
965
|
+
readonly whatsNewModalVersion: string;
|
|
966
|
+
readonly enabledChains: {
|
|
967
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
968
|
+
};
|
|
969
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
970
|
+
readonly customChainSeetings: {
|
|
971
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
972
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
973
|
+
};
|
|
974
|
+
}>, options?: import("vuex").SubscribeOptions | undefined) => () => void;
|
|
975
|
+
watch: <T>(getter: (state: {
|
|
976
|
+
readonly version: number;
|
|
977
|
+
readonly key: string;
|
|
978
|
+
readonly wallets: import("./types").Wallet[];
|
|
979
|
+
readonly unlockedAt: number;
|
|
980
|
+
readonly brokerReady: boolean;
|
|
981
|
+
readonly encryptedWallets: string;
|
|
982
|
+
readonly enabledAssets: {
|
|
983
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
984
|
+
testnet?: Record<string, string[]> | undefined;
|
|
985
|
+
};
|
|
986
|
+
readonly customTokens: {
|
|
987
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
988
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
989
|
+
};
|
|
990
|
+
readonly accounts: {
|
|
991
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
992
|
+
};
|
|
993
|
+
readonly fiatRates: {
|
|
994
|
+
[x: string]: number;
|
|
995
|
+
};
|
|
996
|
+
readonly currenciesInfo: {
|
|
997
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
998
|
+
};
|
|
999
|
+
readonly fees: {
|
|
1000
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1001
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1002
|
+
};
|
|
1003
|
+
readonly history: {
|
|
1004
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1005
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1006
|
+
};
|
|
1007
|
+
readonly marketData: {
|
|
1008
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
1009
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
1010
|
+
};
|
|
1011
|
+
readonly activeNetwork: import("./types").Network;
|
|
1012
|
+
readonly activeWalletId: string;
|
|
1013
|
+
readonly keyUpdatedAt: number;
|
|
1014
|
+
readonly keySalt: string;
|
|
1015
|
+
readonly termsAcceptedAt: number;
|
|
1016
|
+
readonly setupAt: number;
|
|
1017
|
+
readonly injectEthereum: boolean;
|
|
1018
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
1019
|
+
readonly usbBridgeWindowsId: number;
|
|
1020
|
+
readonly externalConnections: {
|
|
1021
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
1022
|
+
};
|
|
1023
|
+
readonly rskLegacyDerivation: boolean;
|
|
1024
|
+
readonly analytics: {
|
|
1025
|
+
userId: string;
|
|
1026
|
+
acceptedDate: number;
|
|
1027
|
+
askedDate: number;
|
|
1028
|
+
askedTimes: number;
|
|
1029
|
+
notAskAgain: boolean;
|
|
1030
|
+
};
|
|
1031
|
+
readonly experiments: {
|
|
1032
|
+
manageAccounts?: boolean | undefined;
|
|
1033
|
+
reportErrors?: boolean | undefined;
|
|
1034
|
+
};
|
|
1035
|
+
readonly whatsNewModalVersion: string;
|
|
1036
|
+
readonly enabledChains: {
|
|
1037
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
1038
|
+
};
|
|
1039
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
1040
|
+
readonly customChainSeetings: {
|
|
1041
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1042
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1043
|
+
};
|
|
1044
|
+
}, getters: any) => T, cb: (value: T, oldValue: T) => void, options?: import("vue").WatchOptions | undefined) => () => void;
|
|
1045
|
+
registerModule: {
|
|
1046
|
+
<T_1>(path: string, module: import("vuex").Module<T_1, {
|
|
1047
|
+
readonly version: number;
|
|
1048
|
+
readonly key: string;
|
|
1049
|
+
readonly wallets: import("./types").Wallet[];
|
|
1050
|
+
readonly unlockedAt: number;
|
|
1051
|
+
readonly brokerReady: boolean;
|
|
1052
|
+
readonly encryptedWallets: string;
|
|
1053
|
+
readonly enabledAssets: {
|
|
1054
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
1055
|
+
testnet?: Record<string, string[]> | undefined;
|
|
1056
|
+
};
|
|
1057
|
+
readonly customTokens: {
|
|
1058
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1059
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1060
|
+
};
|
|
1061
|
+
readonly accounts: {
|
|
1062
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
1063
|
+
};
|
|
1064
|
+
readonly fiatRates: {
|
|
1065
|
+
[x: string]: number;
|
|
1066
|
+
};
|
|
1067
|
+
readonly currenciesInfo: {
|
|
1068
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
1069
|
+
};
|
|
1070
|
+
readonly fees: {
|
|
1071
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1072
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1073
|
+
};
|
|
1074
|
+
readonly history: {
|
|
1075
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1076
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1077
|
+
};
|
|
1078
|
+
readonly marketData: {
|
|
1079
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
1080
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
1081
|
+
};
|
|
1082
|
+
readonly activeNetwork: import("./types").Network;
|
|
1083
|
+
readonly activeWalletId: string;
|
|
1084
|
+
readonly keyUpdatedAt: number;
|
|
1085
|
+
readonly keySalt: string;
|
|
1086
|
+
readonly termsAcceptedAt: number;
|
|
1087
|
+
readonly setupAt: number;
|
|
1088
|
+
readonly injectEthereum: boolean;
|
|
1089
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
1090
|
+
readonly usbBridgeWindowsId: number;
|
|
1091
|
+
readonly externalConnections: {
|
|
1092
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
1093
|
+
};
|
|
1094
|
+
readonly rskLegacyDerivation: boolean;
|
|
1095
|
+
readonly analytics: {
|
|
1096
|
+
userId: string;
|
|
1097
|
+
acceptedDate: number;
|
|
1098
|
+
askedDate: number;
|
|
1099
|
+
askedTimes: number;
|
|
1100
|
+
notAskAgain: boolean;
|
|
1101
|
+
};
|
|
1102
|
+
readonly experiments: {
|
|
1103
|
+
manageAccounts?: boolean | undefined;
|
|
1104
|
+
reportErrors?: boolean | undefined;
|
|
1105
|
+
};
|
|
1106
|
+
readonly whatsNewModalVersion: string;
|
|
1107
|
+
readonly enabledChains: {
|
|
1108
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
1109
|
+
};
|
|
1110
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
1111
|
+
readonly customChainSeetings: {
|
|
1112
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1113
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1114
|
+
};
|
|
1115
|
+
}>, options?: import("vuex").ModuleOptions | undefined): void;
|
|
1116
|
+
<T_2>(path: string[], module: import("vuex").Module<T_2, {
|
|
1117
|
+
readonly version: number;
|
|
1118
|
+
readonly key: string;
|
|
1119
|
+
readonly wallets: import("./types").Wallet[];
|
|
1120
|
+
readonly unlockedAt: number;
|
|
1121
|
+
readonly brokerReady: boolean;
|
|
1122
|
+
readonly encryptedWallets: string;
|
|
1123
|
+
readonly enabledAssets: {
|
|
1124
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
1125
|
+
testnet?: Record<string, string[]> | undefined;
|
|
1126
|
+
};
|
|
1127
|
+
readonly customTokens: {
|
|
1128
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1129
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1130
|
+
};
|
|
1131
|
+
readonly accounts: {
|
|
1132
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
1133
|
+
};
|
|
1134
|
+
readonly fiatRates: {
|
|
1135
|
+
[x: string]: number;
|
|
1136
|
+
};
|
|
1137
|
+
readonly currenciesInfo: {
|
|
1138
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
1139
|
+
};
|
|
1140
|
+
readonly fees: {
|
|
1141
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1142
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1143
|
+
};
|
|
1144
|
+
readonly history: {
|
|
1145
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1146
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1147
|
+
};
|
|
1148
|
+
readonly marketData: {
|
|
1149
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
1150
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
1151
|
+
};
|
|
1152
|
+
readonly activeNetwork: import("./types").Network;
|
|
1153
|
+
readonly activeWalletId: string;
|
|
1154
|
+
readonly keyUpdatedAt: number;
|
|
1155
|
+
readonly keySalt: string;
|
|
1156
|
+
readonly termsAcceptedAt: number;
|
|
1157
|
+
readonly setupAt: number;
|
|
1158
|
+
readonly injectEthereum: boolean;
|
|
1159
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
1160
|
+
readonly usbBridgeWindowsId: number;
|
|
1161
|
+
readonly externalConnections: {
|
|
1162
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
1163
|
+
};
|
|
1164
|
+
readonly rskLegacyDerivation: boolean;
|
|
1165
|
+
readonly analytics: {
|
|
1166
|
+
userId: string;
|
|
1167
|
+
acceptedDate: number;
|
|
1168
|
+
askedDate: number;
|
|
1169
|
+
askedTimes: number;
|
|
1170
|
+
notAskAgain: boolean;
|
|
1171
|
+
};
|
|
1172
|
+
readonly experiments: {
|
|
1173
|
+
manageAccounts?: boolean | undefined;
|
|
1174
|
+
reportErrors?: boolean | undefined;
|
|
1175
|
+
};
|
|
1176
|
+
readonly whatsNewModalVersion: string;
|
|
1177
|
+
readonly enabledChains: {
|
|
1178
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
1179
|
+
};
|
|
1180
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
1181
|
+
readonly customChainSeetings: {
|
|
1182
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1183
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1184
|
+
};
|
|
1185
|
+
}>, options?: import("vuex").ModuleOptions | undefined): void;
|
|
1186
|
+
};
|
|
1187
|
+
unregisterModule: {
|
|
1188
|
+
(path: string): void;
|
|
1189
|
+
(path: string[]): void;
|
|
1190
|
+
};
|
|
1191
|
+
hasModule: {
|
|
1192
|
+
(path: string): boolean;
|
|
1193
|
+
(path: string[]): boolean;
|
|
1194
|
+
};
|
|
1195
|
+
hotUpdate: (options: {
|
|
1196
|
+
actions?: import("vuex").ActionTree<{
|
|
1197
|
+
readonly version: number;
|
|
1198
|
+
readonly key: string;
|
|
1199
|
+
readonly wallets: import("./types").Wallet[];
|
|
1200
|
+
readonly unlockedAt: number;
|
|
1201
|
+
readonly brokerReady: boolean;
|
|
1202
|
+
readonly encryptedWallets: string;
|
|
1203
|
+
readonly enabledAssets: {
|
|
1204
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
1205
|
+
testnet?: Record<string, string[]> | undefined;
|
|
1206
|
+
};
|
|
1207
|
+
readonly customTokens: {
|
|
1208
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1209
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1210
|
+
};
|
|
1211
|
+
readonly accounts: {
|
|
1212
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
1213
|
+
};
|
|
1214
|
+
readonly fiatRates: {
|
|
1215
|
+
[x: string]: number;
|
|
1216
|
+
};
|
|
1217
|
+
readonly currenciesInfo: {
|
|
1218
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
1219
|
+
};
|
|
1220
|
+
readonly fees: {
|
|
1221
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1222
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1223
|
+
};
|
|
1224
|
+
readonly history: {
|
|
1225
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1226
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1227
|
+
};
|
|
1228
|
+
readonly marketData: {
|
|
1229
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
1230
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
1231
|
+
};
|
|
1232
|
+
readonly activeNetwork: import("./types").Network;
|
|
1233
|
+
readonly activeWalletId: string;
|
|
1234
|
+
readonly keyUpdatedAt: number;
|
|
1235
|
+
readonly keySalt: string;
|
|
1236
|
+
readonly termsAcceptedAt: number;
|
|
1237
|
+
readonly setupAt: number;
|
|
1238
|
+
readonly injectEthereum: boolean;
|
|
1239
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
1240
|
+
readonly usbBridgeWindowsId: number;
|
|
1241
|
+
readonly externalConnections: {
|
|
1242
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
1243
|
+
};
|
|
1244
|
+
readonly rskLegacyDerivation: boolean;
|
|
1245
|
+
readonly analytics: {
|
|
1246
|
+
userId: string;
|
|
1247
|
+
acceptedDate: number;
|
|
1248
|
+
askedDate: number;
|
|
1249
|
+
askedTimes: number;
|
|
1250
|
+
notAskAgain: boolean;
|
|
1251
|
+
};
|
|
1252
|
+
readonly experiments: {
|
|
1253
|
+
manageAccounts?: boolean | undefined;
|
|
1254
|
+
reportErrors?: boolean | undefined;
|
|
1255
|
+
};
|
|
1256
|
+
readonly whatsNewModalVersion: string;
|
|
1257
|
+
readonly enabledChains: {
|
|
1258
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
1259
|
+
};
|
|
1260
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
1261
|
+
readonly customChainSeetings: {
|
|
1262
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1263
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1264
|
+
};
|
|
1265
|
+
}, {
|
|
1266
|
+
readonly version: number;
|
|
1267
|
+
readonly key: string;
|
|
1268
|
+
readonly wallets: import("./types").Wallet[];
|
|
1269
|
+
readonly unlockedAt: number;
|
|
1270
|
+
readonly brokerReady: boolean;
|
|
1271
|
+
readonly encryptedWallets: string;
|
|
1272
|
+
readonly enabledAssets: {
|
|
1273
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
1274
|
+
testnet?: Record<string, string[]> | undefined;
|
|
1275
|
+
};
|
|
1276
|
+
readonly customTokens: {
|
|
1277
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1278
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1279
|
+
};
|
|
1280
|
+
readonly accounts: {
|
|
1281
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
1282
|
+
};
|
|
1283
|
+
readonly fiatRates: {
|
|
1284
|
+
[x: string]: number;
|
|
1285
|
+
};
|
|
1286
|
+
readonly currenciesInfo: {
|
|
1287
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
1288
|
+
};
|
|
1289
|
+
readonly fees: {
|
|
1290
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1291
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1292
|
+
};
|
|
1293
|
+
readonly history: {
|
|
1294
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1295
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1296
|
+
};
|
|
1297
|
+
readonly marketData: {
|
|
1298
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
1299
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
1300
|
+
};
|
|
1301
|
+
readonly activeNetwork: import("./types").Network;
|
|
1302
|
+
readonly activeWalletId: string;
|
|
1303
|
+
readonly keyUpdatedAt: number;
|
|
1304
|
+
readonly keySalt: string;
|
|
1305
|
+
readonly termsAcceptedAt: number;
|
|
1306
|
+
readonly setupAt: number;
|
|
1307
|
+
readonly injectEthereum: boolean;
|
|
1308
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
1309
|
+
readonly usbBridgeWindowsId: number;
|
|
1310
|
+
readonly externalConnections: {
|
|
1311
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
1312
|
+
};
|
|
1313
|
+
readonly rskLegacyDerivation: boolean;
|
|
1314
|
+
readonly analytics: {
|
|
1315
|
+
userId: string;
|
|
1316
|
+
acceptedDate: number;
|
|
1317
|
+
askedDate: number;
|
|
1318
|
+
askedTimes: number;
|
|
1319
|
+
notAskAgain: boolean;
|
|
1320
|
+
};
|
|
1321
|
+
readonly experiments: {
|
|
1322
|
+
manageAccounts?: boolean | undefined;
|
|
1323
|
+
reportErrors?: boolean | undefined;
|
|
1324
|
+
};
|
|
1325
|
+
readonly whatsNewModalVersion: string;
|
|
1326
|
+
readonly enabledChains: {
|
|
1327
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
1328
|
+
};
|
|
1329
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
1330
|
+
readonly customChainSeetings: {
|
|
1331
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1332
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1333
|
+
};
|
|
1334
|
+
}> | undefined;
|
|
1335
|
+
mutations?: import("vuex").MutationTree<{
|
|
1336
|
+
readonly version: number;
|
|
1337
|
+
readonly key: string;
|
|
1338
|
+
readonly wallets: import("./types").Wallet[];
|
|
1339
|
+
readonly unlockedAt: number;
|
|
1340
|
+
readonly brokerReady: boolean;
|
|
1341
|
+
readonly encryptedWallets: string;
|
|
1342
|
+
readonly enabledAssets: {
|
|
1343
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
1344
|
+
testnet?: Record<string, string[]> | undefined;
|
|
1345
|
+
};
|
|
1346
|
+
readonly customTokens: {
|
|
1347
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1348
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1349
|
+
};
|
|
1350
|
+
readonly accounts: {
|
|
1351
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
1352
|
+
};
|
|
1353
|
+
readonly fiatRates: {
|
|
1354
|
+
[x: string]: number;
|
|
1355
|
+
};
|
|
1356
|
+
readonly currenciesInfo: {
|
|
1357
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
1358
|
+
};
|
|
1359
|
+
readonly fees: {
|
|
1360
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1361
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1362
|
+
};
|
|
1363
|
+
readonly history: {
|
|
1364
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1365
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1366
|
+
};
|
|
1367
|
+
readonly marketData: {
|
|
1368
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
1369
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
1370
|
+
};
|
|
1371
|
+
readonly activeNetwork: import("./types").Network;
|
|
1372
|
+
readonly activeWalletId: string;
|
|
1373
|
+
readonly keyUpdatedAt: number;
|
|
1374
|
+
readonly keySalt: string;
|
|
1375
|
+
readonly termsAcceptedAt: number;
|
|
1376
|
+
readonly setupAt: number;
|
|
1377
|
+
readonly injectEthereum: boolean;
|
|
1378
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
1379
|
+
readonly usbBridgeWindowsId: number;
|
|
1380
|
+
readonly externalConnections: {
|
|
1381
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
1382
|
+
};
|
|
1383
|
+
readonly rskLegacyDerivation: boolean;
|
|
1384
|
+
readonly analytics: {
|
|
1385
|
+
userId: string;
|
|
1386
|
+
acceptedDate: number;
|
|
1387
|
+
askedDate: number;
|
|
1388
|
+
askedTimes: number;
|
|
1389
|
+
notAskAgain: boolean;
|
|
1390
|
+
};
|
|
1391
|
+
readonly experiments: {
|
|
1392
|
+
manageAccounts?: boolean | undefined;
|
|
1393
|
+
reportErrors?: boolean | undefined;
|
|
1394
|
+
};
|
|
1395
|
+
readonly whatsNewModalVersion: string;
|
|
1396
|
+
readonly enabledChains: {
|
|
1397
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
1398
|
+
};
|
|
1399
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
1400
|
+
readonly customChainSeetings: {
|
|
1401
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1402
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1403
|
+
};
|
|
1404
|
+
}> | undefined;
|
|
1405
|
+
getters?: import("vuex").GetterTree<{
|
|
1406
|
+
readonly version: number;
|
|
1407
|
+
readonly key: string;
|
|
1408
|
+
readonly wallets: import("./types").Wallet[];
|
|
1409
|
+
readonly unlockedAt: number;
|
|
1410
|
+
readonly brokerReady: boolean;
|
|
1411
|
+
readonly encryptedWallets: string;
|
|
1412
|
+
readonly enabledAssets: {
|
|
1413
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
1414
|
+
testnet?: Record<string, string[]> | undefined;
|
|
1415
|
+
};
|
|
1416
|
+
readonly customTokens: {
|
|
1417
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1418
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1419
|
+
};
|
|
1420
|
+
readonly accounts: {
|
|
1421
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
1422
|
+
};
|
|
1423
|
+
readonly fiatRates: {
|
|
1424
|
+
[x: string]: number;
|
|
1425
|
+
};
|
|
1426
|
+
readonly currenciesInfo: {
|
|
1427
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
1428
|
+
};
|
|
1429
|
+
readonly fees: {
|
|
1430
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1431
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1432
|
+
};
|
|
1433
|
+
readonly history: {
|
|
1434
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1435
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1436
|
+
};
|
|
1437
|
+
readonly marketData: {
|
|
1438
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
1439
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
1440
|
+
};
|
|
1441
|
+
readonly activeNetwork: import("./types").Network;
|
|
1442
|
+
readonly activeWalletId: string;
|
|
1443
|
+
readonly keyUpdatedAt: number;
|
|
1444
|
+
readonly keySalt: string;
|
|
1445
|
+
readonly termsAcceptedAt: number;
|
|
1446
|
+
readonly setupAt: number;
|
|
1447
|
+
readonly injectEthereum: boolean;
|
|
1448
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
1449
|
+
readonly usbBridgeWindowsId: number;
|
|
1450
|
+
readonly externalConnections: {
|
|
1451
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
1452
|
+
};
|
|
1453
|
+
readonly rskLegacyDerivation: boolean;
|
|
1454
|
+
readonly analytics: {
|
|
1455
|
+
userId: string;
|
|
1456
|
+
acceptedDate: number;
|
|
1457
|
+
askedDate: number;
|
|
1458
|
+
askedTimes: number;
|
|
1459
|
+
notAskAgain: boolean;
|
|
1460
|
+
};
|
|
1461
|
+
readonly experiments: {
|
|
1462
|
+
manageAccounts?: boolean | undefined;
|
|
1463
|
+
reportErrors?: boolean | undefined;
|
|
1464
|
+
};
|
|
1465
|
+
readonly whatsNewModalVersion: string;
|
|
1466
|
+
readonly enabledChains: {
|
|
1467
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
1468
|
+
};
|
|
1469
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
1470
|
+
readonly customChainSeetings: {
|
|
1471
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1472
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1473
|
+
};
|
|
1474
|
+
}, {
|
|
1475
|
+
readonly version: number;
|
|
1476
|
+
readonly key: string;
|
|
1477
|
+
readonly wallets: import("./types").Wallet[];
|
|
1478
|
+
readonly unlockedAt: number;
|
|
1479
|
+
readonly brokerReady: boolean;
|
|
1480
|
+
readonly encryptedWallets: string;
|
|
1481
|
+
readonly enabledAssets: {
|
|
1482
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
1483
|
+
testnet?: Record<string, string[]> | undefined;
|
|
1484
|
+
};
|
|
1485
|
+
readonly customTokens: {
|
|
1486
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1487
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1488
|
+
};
|
|
1489
|
+
readonly accounts: {
|
|
1490
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
1491
|
+
};
|
|
1492
|
+
readonly fiatRates: {
|
|
1493
|
+
[x: string]: number;
|
|
1494
|
+
};
|
|
1495
|
+
readonly currenciesInfo: {
|
|
1496
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
1497
|
+
};
|
|
1498
|
+
readonly fees: {
|
|
1499
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1500
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1501
|
+
};
|
|
1502
|
+
readonly history: {
|
|
1503
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1504
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1505
|
+
};
|
|
1506
|
+
readonly marketData: {
|
|
1507
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
1508
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
1509
|
+
};
|
|
1510
|
+
readonly activeNetwork: import("./types").Network;
|
|
1511
|
+
readonly activeWalletId: string;
|
|
1512
|
+
readonly keyUpdatedAt: number;
|
|
1513
|
+
readonly keySalt: string;
|
|
1514
|
+
readonly termsAcceptedAt: number;
|
|
1515
|
+
readonly setupAt: number;
|
|
1516
|
+
readonly injectEthereum: boolean;
|
|
1517
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
1518
|
+
readonly usbBridgeWindowsId: number;
|
|
1519
|
+
readonly externalConnections: {
|
|
1520
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
1521
|
+
};
|
|
1522
|
+
readonly rskLegacyDerivation: boolean;
|
|
1523
|
+
readonly analytics: {
|
|
1524
|
+
userId: string;
|
|
1525
|
+
acceptedDate: number;
|
|
1526
|
+
askedDate: number;
|
|
1527
|
+
askedTimes: number;
|
|
1528
|
+
notAskAgain: boolean;
|
|
1529
|
+
};
|
|
1530
|
+
readonly experiments: {
|
|
1531
|
+
manageAccounts?: boolean | undefined;
|
|
1532
|
+
reportErrors?: boolean | undefined;
|
|
1533
|
+
};
|
|
1534
|
+
readonly whatsNewModalVersion: string;
|
|
1535
|
+
readonly enabledChains: {
|
|
1536
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
1537
|
+
};
|
|
1538
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
1539
|
+
readonly customChainSeetings: {
|
|
1540
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1541
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1542
|
+
};
|
|
1543
|
+
}> | undefined;
|
|
1544
|
+
modules?: import("vuex").ModuleTree<{
|
|
1545
|
+
readonly version: number;
|
|
1546
|
+
readonly key: string;
|
|
1547
|
+
readonly wallets: import("./types").Wallet[];
|
|
1548
|
+
readonly unlockedAt: number;
|
|
1549
|
+
readonly brokerReady: boolean;
|
|
1550
|
+
readonly encryptedWallets: string;
|
|
1551
|
+
readonly enabledAssets: {
|
|
1552
|
+
mainnet?: Record<string, string[]> | undefined;
|
|
1553
|
+
testnet?: Record<string, string[]> | undefined;
|
|
1554
|
+
};
|
|
1555
|
+
readonly customTokens: {
|
|
1556
|
+
mainnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1557
|
+
testnet?: Record<string, import("./types").CustomToken[]> | undefined;
|
|
1558
|
+
};
|
|
1559
|
+
readonly accounts: {
|
|
1560
|
+
[x: string]: Record<import("./types").Network, import("./types").Account[]> | undefined;
|
|
1561
|
+
};
|
|
1562
|
+
readonly fiatRates: {
|
|
1563
|
+
[x: string]: number;
|
|
1564
|
+
};
|
|
1565
|
+
readonly currenciesInfo: {
|
|
1566
|
+
[x: string]: import("bignumber.js").BigNumber;
|
|
1567
|
+
};
|
|
1568
|
+
readonly fees: {
|
|
1569
|
+
mainnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1570
|
+
testnet?: Record<string, Record<string, import("@yaswap/types").FeeDetails>> | undefined;
|
|
1571
|
+
};
|
|
1572
|
+
readonly history: {
|
|
1573
|
+
mainnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1574
|
+
testnet?: Record<string, import("./types").HistoryItem[]> | undefined;
|
|
1575
|
+
};
|
|
1576
|
+
readonly marketData: {
|
|
1577
|
+
mainnet?: import("./types").MarketData[] | undefined;
|
|
1578
|
+
testnet?: import("./types").MarketData[] | undefined;
|
|
1579
|
+
};
|
|
1580
|
+
readonly activeNetwork: import("./types").Network;
|
|
1581
|
+
readonly activeWalletId: string;
|
|
1582
|
+
readonly keyUpdatedAt: number;
|
|
1583
|
+
readonly keySalt: string;
|
|
1584
|
+
readonly termsAcceptedAt: number;
|
|
1585
|
+
readonly setupAt: number;
|
|
1586
|
+
readonly injectEthereum: boolean;
|
|
1587
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
1588
|
+
readonly usbBridgeWindowsId: number;
|
|
1589
|
+
readonly externalConnections: {
|
|
1590
|
+
[x: string]: Record<string, import("./types").Connections>;
|
|
1591
|
+
};
|
|
1592
|
+
readonly rskLegacyDerivation: boolean;
|
|
1593
|
+
readonly analytics: {
|
|
1594
|
+
userId: string;
|
|
1595
|
+
acceptedDate: number;
|
|
1596
|
+
askedDate: number;
|
|
1597
|
+
askedTimes: number;
|
|
1598
|
+
notAskAgain: boolean;
|
|
1599
|
+
};
|
|
1600
|
+
readonly experiments: {
|
|
1601
|
+
manageAccounts?: boolean | undefined;
|
|
1602
|
+
reportErrors?: boolean | undefined;
|
|
1603
|
+
};
|
|
1604
|
+
readonly whatsNewModalVersion: string;
|
|
1605
|
+
readonly enabledChains: {
|
|
1606
|
+
[x: string]: Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]> | undefined;
|
|
1607
|
+
};
|
|
1608
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
1609
|
+
readonly customChainSeetings: {
|
|
1610
|
+
mainnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1611
|
+
testnet?: Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>> | undefined;
|
|
1612
|
+
};
|
|
1613
|
+
}> | undefined;
|
|
1614
|
+
}) => void;
|
|
1615
|
+
direct: any;
|
|
1616
|
+
};
|
|
1617
|
+
}, rootActionContext: (originalContext: _ActionContext<any, any>) => {
|
|
1618
|
+
rootState: {
|
|
1619
|
+
readonly version: number;
|
|
1620
|
+
readonly key: string;
|
|
1621
|
+
readonly wallets: import("./types").Wallet[];
|
|
1622
|
+
readonly unlockedAt: number;
|
|
1623
|
+
readonly brokerReady: boolean;
|
|
1624
|
+
readonly encryptedWallets: string;
|
|
1625
|
+
readonly enabledAssets: Partial<Record<import("./types").Network, Record<string, string[]>>>;
|
|
1626
|
+
readonly customTokens: Partial<Record<import("./types").Network, Record<string, import("./types").CustomToken[]>>>;
|
|
1627
|
+
readonly accounts: Partial<Record<string, Record<import("./types").Network, import("./types").Account[]>>>;
|
|
1628
|
+
readonly fiatRates: import("./types").FiatRates;
|
|
1629
|
+
readonly currenciesInfo: import("./types").CurrenciesInfo;
|
|
1630
|
+
readonly fees: Partial<Record<import("./types").Network, Record<string, Record<string, import("@yaswap/types").FeeDetails>>>>;
|
|
1631
|
+
readonly history: Partial<Record<import("./types").Network, Record<string, import("./types").HistoryItem[]>>>;
|
|
1632
|
+
readonly marketData: Partial<Record<import("./types").Network, import("./types").MarketData[]>>;
|
|
1633
|
+
readonly activeNetwork: import("./types").Network;
|
|
1634
|
+
readonly activeWalletId: string;
|
|
1635
|
+
readonly keyUpdatedAt: number;
|
|
1636
|
+
readonly keySalt: string;
|
|
1637
|
+
readonly termsAcceptedAt: number;
|
|
1638
|
+
readonly setupAt: number;
|
|
1639
|
+
readonly injectEthereum: boolean;
|
|
1640
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
1641
|
+
readonly usbBridgeWindowsId: number;
|
|
1642
|
+
readonly externalConnections: import("./types").ExternalConnections;
|
|
1643
|
+
readonly rskLegacyDerivation: boolean;
|
|
1644
|
+
readonly analytics: import("./types").AnalyticsState;
|
|
1645
|
+
readonly experiments: Partial<Record<import("./types").ExperimentType, boolean>>;
|
|
1646
|
+
readonly whatsNewModalVersion: string;
|
|
1647
|
+
readonly enabledChains: Partial<Record<string, Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]>>>;
|
|
1648
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
1649
|
+
readonly customChainSeetings: Partial<Record<import("./types").Network, Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>>>>;
|
|
1650
|
+
};
|
|
1651
|
+
rootGetters: {
|
|
1652
|
+
readonly client: ({ network, walletId, chainId, accountId, useCache, accountType, accountIndex, }: {
|
|
1653
|
+
network: import("./types").Network;
|
|
1654
|
+
walletId: string;
|
|
1655
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
1656
|
+
accountId?: string | undefined;
|
|
1657
|
+
useCache?: boolean | undefined;
|
|
1658
|
+
accountType?: import("./types").AccountType | undefined;
|
|
1659
|
+
accountIndex?: number | undefined;
|
|
1660
|
+
}) => import("@yaswap/client").Client<import("@yaswap/client").Chain<any, import("@yaswap/types").Network>, import("@yaswap/client").Wallet<any, any>, import("@yaswap/client").Swap<any, any, import("@yaswap/client").Wallet<any, any>>, import("@yaswap/client").Nft<any, any>>;
|
|
1661
|
+
readonly historyItemById: (network: import("./types").Network, walletId: string, id: string) => import("./types").HistoryItem | undefined;
|
|
1662
|
+
readonly cryptoassets: Readonly<{
|
|
1663
|
+
[asset: string]: import("@yaswap/cryptoassets").IAsset;
|
|
1664
|
+
}>;
|
|
1665
|
+
readonly networkAccounts: readonly import("./types").Account[];
|
|
1666
|
+
readonly networkAssets: readonly string[];
|
|
1667
|
+
readonly allNetworkAssets: readonly string[];
|
|
1668
|
+
readonly activity: readonly import("./types").HistoryItem[];
|
|
1669
|
+
readonly totalFiatBalance: Readonly<import("bignumber.js").BigNumber>;
|
|
1670
|
+
readonly accountItem: (accountId: string) => import("./types").Account | undefined;
|
|
1671
|
+
readonly suggestedFeePrices: (asset: string) => import("@yaswap/types").FeeDetails | undefined;
|
|
1672
|
+
readonly accountsWithBalance: readonly import("./types").Account[];
|
|
1673
|
+
readonly accountsData: readonly import("./types").Account[];
|
|
1674
|
+
readonly accountFiatBalance: (walletId: string, network: import("./types").Network, accountId: string) => import("bignumber.js").BigNumber;
|
|
1675
|
+
readonly assetFiatBalance: (asset: string, balance: import("bignumber.js").BigNumber) => import("bignumber.js").BigNumber | null;
|
|
1676
|
+
readonly assetMarketCap: (asset: string) => import("@yaswap/types").Nullable<import("bignumber.js").BigNumber>;
|
|
1677
|
+
readonly chainAssets: Readonly<{
|
|
1678
|
+
yacoin?: string[] | undefined;
|
|
1679
|
+
bitcoin?: string[] | undefined;
|
|
1680
|
+
ethereum?: string[] | undefined;
|
|
1681
|
+
rsk?: string[] | undefined;
|
|
1682
|
+
bsc?: string[] | undefined;
|
|
1683
|
+
near?: string[] | undefined;
|
|
1684
|
+
polygon?: string[] | undefined;
|
|
1685
|
+
arbitrum?: string[] | undefined;
|
|
1686
|
+
solana?: string[] | undefined;
|
|
1687
|
+
fuse?: string[] | undefined;
|
|
1688
|
+
terra?: string[] | undefined;
|
|
1689
|
+
avalanche?: string[] | undefined;
|
|
1690
|
+
optimism?: string[] | undefined;
|
|
1691
|
+
}>;
|
|
1692
|
+
readonly analyticsEnabled: Readonly<boolean>;
|
|
1693
|
+
readonly allNftCollections: Readonly<import("./types").NFTCollections<import("./types").NFTWithAccount>>;
|
|
1694
|
+
readonly accountNftCollections: (accountId: string) => import("./types").NFTCollections<import("./types").NFT>;
|
|
1695
|
+
readonly mergedChainSettings: Readonly<Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>>;
|
|
1696
|
+
readonly chainSettings: readonly {
|
|
1697
|
+
chain: string;
|
|
1698
|
+
asset: string;
|
|
1699
|
+
network: import("../types").ChainifyNetwork;
|
|
1700
|
+
}[];
|
|
1701
|
+
};
|
|
1702
|
+
rootCommit: {
|
|
1703
|
+
SET_STATE: (payload: {
|
|
1704
|
+
newState: RootState;
|
|
1705
|
+
}) => void;
|
|
1706
|
+
CREATE_WALLET: (payload: {
|
|
1707
|
+
key: string;
|
|
1708
|
+
keySalt: string;
|
|
1709
|
+
encryptedWallets: string;
|
|
1710
|
+
wallet: import("./types").Wallet;
|
|
1711
|
+
}) => void;
|
|
1712
|
+
ACCEPT_TNC: () => void;
|
|
1713
|
+
CHANGE_ACTIVE_WALLETID: (payload: {
|
|
1714
|
+
walletId: string;
|
|
1715
|
+
}) => void;
|
|
1716
|
+
CHANGE_ACTIVE_NETWORK: (payload: {
|
|
1717
|
+
network: import("./types").Network;
|
|
1718
|
+
}) => void;
|
|
1719
|
+
CHANGE_PASSWORD: (payload: {
|
|
1720
|
+
key: string;
|
|
1721
|
+
keySalt: string;
|
|
1722
|
+
encryptedWallets: string;
|
|
1723
|
+
}) => void;
|
|
1724
|
+
LOCK_WALLET: () => void;
|
|
1725
|
+
UNLOCK_WALLET: (payload: {
|
|
1726
|
+
key: string;
|
|
1727
|
+
wallets: import("./types").Wallet[];
|
|
1728
|
+
unlockedAt: number;
|
|
1729
|
+
}) => void;
|
|
1730
|
+
NEW_SWAP: (payload: {
|
|
1731
|
+
network: import("./types").Network;
|
|
1732
|
+
walletId: string;
|
|
1733
|
+
swap: import("./types").SwapHistoryItem;
|
|
1734
|
+
}) => void;
|
|
1735
|
+
NEW_TRASACTION: (payload: {
|
|
1736
|
+
network: import("./types").Network;
|
|
1737
|
+
walletId: string;
|
|
1738
|
+
transaction: import("./types").SendHistoryItem;
|
|
1739
|
+
}) => void;
|
|
1740
|
+
NEW_NFT_TRASACTION: (payload: {
|
|
1741
|
+
network: import("./types").Network;
|
|
1742
|
+
walletId: string;
|
|
1743
|
+
transaction: import("./types").NFTSendHistoryItem;
|
|
1744
|
+
}) => void;
|
|
1745
|
+
UPDATE_HISTORY: (payload: {
|
|
1746
|
+
network: import("./types").Network;
|
|
1747
|
+
walletId: string;
|
|
1748
|
+
id: string;
|
|
1749
|
+
updates: Partial<import("./types").HistoryItem>;
|
|
1750
|
+
}) => void;
|
|
1751
|
+
REMOVE_ORDER: (payload: {
|
|
1752
|
+
network: import("./types").Network;
|
|
1753
|
+
walletId: string;
|
|
1754
|
+
id: string;
|
|
1755
|
+
}) => void;
|
|
1756
|
+
UPDATE_BALANCE: (payload: {
|
|
1757
|
+
network: import("./types").Network;
|
|
1758
|
+
accountId: string;
|
|
1759
|
+
walletId: string;
|
|
1760
|
+
asset: string;
|
|
1761
|
+
balance: string;
|
|
1762
|
+
}) => void;
|
|
1763
|
+
UPDATE_MULTIPLE_BALANCES: (payload: {
|
|
1764
|
+
network: import("./types").Network;
|
|
1765
|
+
accountId: string;
|
|
1766
|
+
walletId: string;
|
|
1767
|
+
assets: string[];
|
|
1768
|
+
balances: import("@yaswap/types").Nullable<string>[];
|
|
1769
|
+
}) => void;
|
|
1770
|
+
UPDATE_FEES: (payload: {
|
|
1771
|
+
network: import("./types").Network;
|
|
1772
|
+
walletId: string;
|
|
1773
|
+
asset: string;
|
|
1774
|
+
fees: import("@yaswap/types").FeeDetails;
|
|
1775
|
+
}) => void;
|
|
1776
|
+
UPDATE_FIAT_RATES: (payload: {
|
|
1777
|
+
fiatRates: import("./types").FiatRates;
|
|
1778
|
+
}) => void;
|
|
1779
|
+
UPDATE_CURRENCIES_INFO: (payload: {
|
|
1780
|
+
currenciesInfo: import("./types").CurrenciesInfo;
|
|
1781
|
+
}) => void;
|
|
1782
|
+
UPDATE_MARKET_DATA: (payload: {
|
|
1783
|
+
network: import("./types").Network;
|
|
1784
|
+
marketData: import("./types").MarketData[];
|
|
1785
|
+
}) => void;
|
|
1786
|
+
SET_ETHEREUM_INJECTION_CHAIN: (payload: {
|
|
1787
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
1788
|
+
}) => void;
|
|
1789
|
+
ENABLE_ETHEREUM_INJECTION: () => void;
|
|
1790
|
+
DISABLE_ETHEREUM_INJECTION: () => void;
|
|
1791
|
+
ENABLE_ASSETS: (payload: {
|
|
1792
|
+
network: import("./types").Network;
|
|
1793
|
+
walletId: string;
|
|
1794
|
+
assets: string[];
|
|
1795
|
+
}) => void;
|
|
1796
|
+
DISABLE_ASSETS: (payload: {
|
|
1797
|
+
network: import("./types").Network;
|
|
1798
|
+
walletId: string;
|
|
1799
|
+
assets: string[];
|
|
1800
|
+
}) => void;
|
|
1801
|
+
DISABLE_ACCOUNT_ASSETS: (payload: {
|
|
1802
|
+
network: import("./types").Network;
|
|
1803
|
+
walletId: string;
|
|
1804
|
+
accountId: string;
|
|
1805
|
+
assets: string[];
|
|
1806
|
+
}) => void;
|
|
1807
|
+
ENABLE_ACCOUNT_ASSETS: (payload: {
|
|
1808
|
+
network: import("./types").Network;
|
|
1809
|
+
walletId: string;
|
|
1810
|
+
accountId: string;
|
|
1811
|
+
assets: string[];
|
|
1812
|
+
}) => void;
|
|
1813
|
+
ADD_CUSTOM_TOKEN: (payload: {
|
|
1814
|
+
network: import("./types").Network;
|
|
1815
|
+
walletId: string;
|
|
1816
|
+
customToken: import("./types").CustomToken;
|
|
1817
|
+
}) => void;
|
|
1818
|
+
REMOVE_CUSTOM_TOKEN: (payload: {
|
|
1819
|
+
network: import("./types").Network;
|
|
1820
|
+
walletId: string;
|
|
1821
|
+
symbol: string;
|
|
1822
|
+
}) => void;
|
|
1823
|
+
CREATE_ACCOUNT: (payload: {
|
|
1824
|
+
network: import("./types").Network;
|
|
1825
|
+
walletId: string;
|
|
1826
|
+
account: import("./types").Account;
|
|
1827
|
+
}) => void;
|
|
1828
|
+
UPDATE_ACCOUNT: (payload: {
|
|
1829
|
+
network: import("./types").Network;
|
|
1830
|
+
walletId: string;
|
|
1831
|
+
account: import("./types").Account;
|
|
1832
|
+
}) => void;
|
|
1833
|
+
REMOVE_ACCOUNT: (payload: {
|
|
1834
|
+
walletId: string;
|
|
1835
|
+
id: string;
|
|
1836
|
+
network: import("./types").Network;
|
|
1837
|
+
}) => void;
|
|
1838
|
+
UPDATE_ACCOUNT_ADDRESSES: (payload: {
|
|
1839
|
+
network: import("./types").Network;
|
|
1840
|
+
accountId: string;
|
|
1841
|
+
walletId: string;
|
|
1842
|
+
addresses: string[];
|
|
1843
|
+
}) => void;
|
|
1844
|
+
SET_USB_BRIDGE_WINDOWS_ID: (payload: {
|
|
1845
|
+
id: number;
|
|
1846
|
+
}) => void;
|
|
1847
|
+
SET_EXTERNAL_CONNECTION_DEFAULT: (payload: {
|
|
1848
|
+
origin: string;
|
|
1849
|
+
activeWalletId: string;
|
|
1850
|
+
accountId: string;
|
|
1851
|
+
}) => void;
|
|
1852
|
+
ADD_EXTERNAL_CONNECTION: (payload: {
|
|
1853
|
+
origin: string;
|
|
1854
|
+
activeWalletId: string;
|
|
1855
|
+
accountId: string;
|
|
1856
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
1857
|
+
}) => void;
|
|
1858
|
+
REMOVE_EXTERNAL_CONNECTIONS: (payload: {
|
|
1859
|
+
activeWalletId: string;
|
|
1860
|
+
}) => void;
|
|
1861
|
+
SET_ANALYTICS_PREFERENCES: (payload: Partial<import("./types").AnalyticsState>) => void;
|
|
1862
|
+
UPDATE_NFTS: (payload: {
|
|
1863
|
+
network: import("./types").Network;
|
|
1864
|
+
walletId: string;
|
|
1865
|
+
accountId: string;
|
|
1866
|
+
nfts: import("./types").NFT[];
|
|
1867
|
+
}) => void;
|
|
1868
|
+
NFT_TOGGLE_STARRED: (payload: {
|
|
1869
|
+
network: import("./types").Network;
|
|
1870
|
+
walletId: string;
|
|
1871
|
+
accountId: string;
|
|
1872
|
+
nft: import("./types").NFT;
|
|
1873
|
+
}) => void;
|
|
1874
|
+
TOGGLE_EXPERIMENT: (payload: {
|
|
1875
|
+
name: import("./types").ExperimentType;
|
|
1876
|
+
}) => void;
|
|
1877
|
+
SET_WHATS_NEW_MODAL_VERSION: (payload: {
|
|
1878
|
+
version: string;
|
|
1879
|
+
}) => void;
|
|
1880
|
+
TOGGLE_BLOCKCHAIN: (payload: {
|
|
1881
|
+
network: import("./types").Network;
|
|
1882
|
+
walletId: string;
|
|
1883
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
1884
|
+
enable: boolean;
|
|
1885
|
+
}) => void;
|
|
1886
|
+
TOGGLE_ACCOUNT: (payload: {
|
|
1887
|
+
network: import("./types").Network;
|
|
1888
|
+
walletId: string;
|
|
1889
|
+
accountId: string;
|
|
1890
|
+
enable: boolean;
|
|
1891
|
+
}) => void;
|
|
1892
|
+
LOG_ERROR: (payload: import("@yaswap/error-parser").LiqualityErrorJSON) => void;
|
|
1893
|
+
CLEAR_ERROR_LOG: () => void;
|
|
1894
|
+
SET_CUSTOM_CHAIN_SETTINGS: (payload: {
|
|
1895
|
+
network: import("./types").Network;
|
|
1896
|
+
walletId: string;
|
|
1897
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
1898
|
+
chanifyNetwork: import("@yaswap/types").Network;
|
|
1899
|
+
}) => void;
|
|
1900
|
+
REMOVE_CUSTOM_CHAIN_SETTINGS: (payload: {
|
|
1901
|
+
network: import("./types").Network;
|
|
1902
|
+
walletId: string;
|
|
1903
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
1904
|
+
}) => void;
|
|
1905
|
+
};
|
|
1906
|
+
rootDispatch: {
|
|
1907
|
+
readonly acceptTermsAndConditions: (payload: {
|
|
1908
|
+
analyticsAccepted: boolean;
|
|
1909
|
+
}) => Promise<void>;
|
|
1910
|
+
readonly createAccount: (payload: {
|
|
1911
|
+
walletId: string;
|
|
1912
|
+
network: import("./types").Network;
|
|
1913
|
+
account: import("./types").Account;
|
|
1914
|
+
}) => Promise<import("./types").Account>;
|
|
1915
|
+
readonly removeAccount: (payload: {
|
|
1916
|
+
network: import("./types").Network;
|
|
1917
|
+
walletId: string;
|
|
1918
|
+
id: string;
|
|
1919
|
+
}) => Promise<string>;
|
|
1920
|
+
readonly toggleAccount: (payload: {
|
|
1921
|
+
network: import("./types").Network;
|
|
1922
|
+
walletId: string;
|
|
1923
|
+
accounts: string[];
|
|
1924
|
+
enable: boolean;
|
|
1925
|
+
}) => Promise<void>;
|
|
1926
|
+
readonly toggleBlockchain: (payload: {
|
|
1927
|
+
network: import("./types").Network;
|
|
1928
|
+
walletId: string;
|
|
1929
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
1930
|
+
enable: boolean;
|
|
1931
|
+
}) => Promise<void>;
|
|
1932
|
+
readonly updateAccount: (payload: {
|
|
1933
|
+
network: import("./types").Network;
|
|
1934
|
+
walletId: string;
|
|
1935
|
+
account: import("./types").Account;
|
|
1936
|
+
}) => Promise<{
|
|
1937
|
+
updatedAt: number;
|
|
1938
|
+
id: string;
|
|
1939
|
+
walletId: string;
|
|
1940
|
+
createdAt: number;
|
|
1941
|
+
enabled: boolean;
|
|
1942
|
+
derivationPath: string;
|
|
1943
|
+
chainCode?: string | undefined;
|
|
1944
|
+
publicKey?: string | undefined;
|
|
1945
|
+
nfts?: import("./types").NFT[] | undefined;
|
|
1946
|
+
type: import("./types").AccountType;
|
|
1947
|
+
name: string;
|
|
1948
|
+
alias?: string | undefined;
|
|
1949
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
1950
|
+
index: number;
|
|
1951
|
+
addresses: string[];
|
|
1952
|
+
assets: string[];
|
|
1953
|
+
balances: Record<string, string>;
|
|
1954
|
+
color: string;
|
|
1955
|
+
}>;
|
|
1956
|
+
readonly addCustomToken: (payload: {
|
|
1957
|
+
network: import("./types").Network;
|
|
1958
|
+
walletId: string;
|
|
1959
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
1960
|
+
symbol: string;
|
|
1961
|
+
name: string;
|
|
1962
|
+
contractAddress: string;
|
|
1963
|
+
decimals: number;
|
|
1964
|
+
}) => Promise<void>;
|
|
1965
|
+
readonly addExternalConnection: (payload: {
|
|
1966
|
+
origin: string;
|
|
1967
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
1968
|
+
accountId: string;
|
|
1969
|
+
setDefaultEthereum: boolean;
|
|
1970
|
+
}) => Promise<void>;
|
|
1971
|
+
readonly initializeAnalyticsPreferences: (payload: {
|
|
1972
|
+
accepted: boolean;
|
|
1973
|
+
}) => Promise<void>;
|
|
1974
|
+
readonly updateAnalyticsPreferences: (payload: import("./types").AnalyticsState) => Promise<void>;
|
|
1975
|
+
readonly setAnalyticsResponse: (payload: {
|
|
1976
|
+
accepted: boolean;
|
|
1977
|
+
}) => Promise<void>;
|
|
1978
|
+
readonly initializeAnalytics: () => Promise<boolean>;
|
|
1979
|
+
readonly trackAnalytics: (payload: {
|
|
1980
|
+
event: string;
|
|
1981
|
+
properties: actions.AmplitudeProperties;
|
|
1982
|
+
}) => Promise<number> | Promise<undefined>;
|
|
1983
|
+
readonly changeActiveNetwork: (payload: {
|
|
1984
|
+
network: import("./types").Network;
|
|
1985
|
+
}) => Promise<void>;
|
|
1986
|
+
readonly changeActiveWalletId: (payload: {
|
|
1987
|
+
walletId: string;
|
|
1988
|
+
}) => Promise<void>;
|
|
1989
|
+
readonly changePassword: (payload: {
|
|
1990
|
+
key: string;
|
|
1991
|
+
}) => Promise<void>;
|
|
1992
|
+
readonly checkPendingActions: (payload: {
|
|
1993
|
+
walletId: string;
|
|
1994
|
+
}) => Promise<void>;
|
|
1995
|
+
readonly createWallet: (payload: {
|
|
1996
|
+
key: string;
|
|
1997
|
+
mnemonic: string;
|
|
1998
|
+
imported?: boolean | undefined;
|
|
1999
|
+
}) => Promise<import("./types").Wallet>;
|
|
2000
|
+
readonly disableAssets: (payload: {
|
|
2001
|
+
network: import("./types").Network;
|
|
2002
|
+
walletId: string;
|
|
2003
|
+
assets: string[];
|
|
2004
|
+
}) => Promise<void>;
|
|
2005
|
+
readonly disableEthereumInjection: () => Promise<void>;
|
|
2006
|
+
readonly enableAssets: (payload: {
|
|
2007
|
+
network: import("./types").Network;
|
|
2008
|
+
walletId: string;
|
|
2009
|
+
assets: string[];
|
|
2010
|
+
}) => Promise<void>;
|
|
2011
|
+
readonly enableEthereumInjection: () => Promise<void>;
|
|
2012
|
+
readonly exportPrivateKey: (payload: {
|
|
2013
|
+
network: import("./types").Network;
|
|
2014
|
+
walletId: string;
|
|
2015
|
+
accountId: string;
|
|
2016
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2017
|
+
}) => Promise<string>;
|
|
2018
|
+
readonly fetchTokenDetails: (payload: actions.FetchTokenDetailsRequest) => Promise<import("@yaswap/types").Nullable<import("@yaswap/types").TokenDetails>>;
|
|
2019
|
+
readonly forgetDappConnections: () => Promise<void>;
|
|
2020
|
+
readonly getLockForAsset: (payload: {
|
|
2021
|
+
network: import("./types").Network;
|
|
2022
|
+
walletId: string;
|
|
2023
|
+
asset: string;
|
|
2024
|
+
item: import("./types").BaseHistoryItem;
|
|
2025
|
+
}) => Promise<string>;
|
|
2026
|
+
readonly getQuotes: (payload: import("../swaps/types").GetQuotesRequest) => Promise<actions.GetQuotesResult>;
|
|
2027
|
+
readonly getSlowQuotes: (payload: {
|
|
2028
|
+
requestId: string;
|
|
2029
|
+
}) => Promise<import("../swaps/types").SwapQuote[]>;
|
|
2030
|
+
readonly getUnusedAddresses: (payload: {
|
|
2031
|
+
network: import("./types").Network;
|
|
2032
|
+
walletId: string;
|
|
2033
|
+
assets: string[];
|
|
2034
|
+
accountId: string;
|
|
2035
|
+
}) => Promise<string[]>;
|
|
2036
|
+
readonly getLedgerAccounts: (payload: {
|
|
2037
|
+
network: import("./types").Network;
|
|
2038
|
+
walletId: string;
|
|
2039
|
+
asset: string;
|
|
2040
|
+
accountType: import("./types").AccountType;
|
|
2041
|
+
startingIndex: number;
|
|
2042
|
+
numAccounts: number;
|
|
2043
|
+
}) => Promise<{
|
|
2044
|
+
account: string;
|
|
2045
|
+
index: number;
|
|
2046
|
+
exists: boolean;
|
|
2047
|
+
}[]>;
|
|
2048
|
+
readonly initializeAddresses: (payload: {
|
|
2049
|
+
network: import("./types").Network;
|
|
2050
|
+
walletId: string;
|
|
2051
|
+
}) => Promise<void>;
|
|
2052
|
+
readonly lockWallet: () => Promise<void>;
|
|
2053
|
+
readonly newSwap: (payload: {
|
|
2054
|
+
network: import("./types").Network;
|
|
2055
|
+
walletId: string;
|
|
2056
|
+
quote: import("../swaps/types").SwapQuote;
|
|
2057
|
+
fee: number;
|
|
2058
|
+
claimFee: number;
|
|
2059
|
+
feeLabel: import("./types").FeeLabel;
|
|
2060
|
+
claimFeeLabel: import("./types").FeeLabel;
|
|
2061
|
+
}) => Promise<import("./types").SwapHistoryItem>;
|
|
2062
|
+
readonly performNextAction: (payload: {
|
|
2063
|
+
network: import("./types").Network;
|
|
2064
|
+
walletId: string;
|
|
2065
|
+
id: string;
|
|
2066
|
+
}) => Promise<Partial<import("./types").HistoryItem> | undefined>;
|
|
2067
|
+
readonly proxyMutation: (payload: {
|
|
2068
|
+
type: string;
|
|
2069
|
+
payload: any;
|
|
2070
|
+
}) => Promise<void>;
|
|
2071
|
+
readonly removeCustomToken: (payload: {
|
|
2072
|
+
network: import("./types").Network;
|
|
2073
|
+
walletId: string;
|
|
2074
|
+
symbol: string;
|
|
2075
|
+
}) => Promise<void>;
|
|
2076
|
+
readonly retrySwap: (payload: {
|
|
2077
|
+
swap: import("./types").SwapHistoryItem;
|
|
2078
|
+
}) => Promise<Partial<import("./types").SwapHistoryItem> | undefined>;
|
|
2079
|
+
readonly sendNFTTransaction: (payload: import("./types").NFTSendTransactionParams) => Promise<import("@yaswap/types").Transaction<any>>;
|
|
2080
|
+
readonly sendTransaction: (payload: {
|
|
2081
|
+
network: import("./types").Network;
|
|
2082
|
+
walletId: string;
|
|
2083
|
+
accountId: string;
|
|
2084
|
+
asset: string;
|
|
2085
|
+
to: string;
|
|
2086
|
+
amount: import("bignumber.js").BigNumber;
|
|
2087
|
+
data: string;
|
|
2088
|
+
fee: number;
|
|
2089
|
+
feeAsset: string;
|
|
2090
|
+
gas: number;
|
|
2091
|
+
feeLabel: import("./types").FeeLabel;
|
|
2092
|
+
fiatRate: number;
|
|
2093
|
+
}) => Promise<import("./types").SendHistoryItem>;
|
|
2094
|
+
readonly setEthereumInjectionChain: (payload: {
|
|
2095
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
2096
|
+
}) => Promise<void>;
|
|
2097
|
+
readonly setWhatsNewModalVersion: (payload: {
|
|
2098
|
+
version: string;
|
|
2099
|
+
}) => Promise<void>;
|
|
2100
|
+
readonly showNotification: (payload: import("../types").Notification) => Promise<void>;
|
|
2101
|
+
readonly toggleExperiment: (payload: {
|
|
2102
|
+
name: import("./types").ExperimentType;
|
|
2103
|
+
}) => Promise<void>;
|
|
2104
|
+
readonly toggleNFTStarred: (payload: {
|
|
2105
|
+
network: import("./types").Network;
|
|
2106
|
+
walletId: string;
|
|
2107
|
+
accountId: string;
|
|
2108
|
+
nft: import("./types").NFT;
|
|
2109
|
+
}) => Promise<void>;
|
|
2110
|
+
readonly unlockWallet: (payload: {
|
|
2111
|
+
key: string;
|
|
2112
|
+
}) => Promise<void>;
|
|
2113
|
+
readonly updateAccountBalance: (payload: {
|
|
2114
|
+
network: import("./types").Network;
|
|
2115
|
+
walletId: string;
|
|
2116
|
+
accountId: string;
|
|
2117
|
+
}) => Promise<void>;
|
|
2118
|
+
readonly updateBalances: (payload: {
|
|
2119
|
+
walletId: string;
|
|
2120
|
+
network: import("./types").Network;
|
|
2121
|
+
accountIds?: string[] | undefined;
|
|
2122
|
+
}) => Promise<void>;
|
|
2123
|
+
readonly updateCurrenciesInfo: (payload: {
|
|
2124
|
+
assets: string[];
|
|
2125
|
+
}) => Promise<import("./types").CurrenciesInfo>;
|
|
2126
|
+
readonly updateFees: (payload: {
|
|
2127
|
+
asset: string;
|
|
2128
|
+
}) => Promise<import("@yaswap/types").FeeDetails>;
|
|
2129
|
+
readonly updateFiatRates: (payload: {
|
|
2130
|
+
assets: string[];
|
|
2131
|
+
}) => Promise<import("./types").FiatRates>;
|
|
2132
|
+
readonly updateMarketData: (payload: {
|
|
2133
|
+
network: import("./types").Network;
|
|
2134
|
+
}) => Promise<{
|
|
2135
|
+
network: import("./types").Network;
|
|
2136
|
+
marketData: import("./types").MarketData[];
|
|
2137
|
+
}>;
|
|
2138
|
+
readonly updateNFTs: (payload: {
|
|
2139
|
+
walletId: string;
|
|
2140
|
+
network: import("./types").Network;
|
|
2141
|
+
accountIds: string[];
|
|
2142
|
+
}) => Promise<import("./types").NFT[][]>;
|
|
2143
|
+
readonly updateTransactionFee: (payload: {
|
|
2144
|
+
network: import("./types").Network;
|
|
2145
|
+
walletId: string;
|
|
2146
|
+
asset: string;
|
|
2147
|
+
id: string;
|
|
2148
|
+
hash: string;
|
|
2149
|
+
newFee: number;
|
|
2150
|
+
}) => Promise<import("@yaswap/types").Transaction<any>>;
|
|
2151
|
+
readonly logError: (payload: import("@yaswap/error-parser").LiqualityErrorJSON) => Promise<void>;
|
|
2152
|
+
readonly clearErrorLog: () => Promise<void>;
|
|
2153
|
+
readonly saveCustomChainSettings: (payload: {
|
|
2154
|
+
network: import("./types").Network;
|
|
2155
|
+
walletId: string;
|
|
2156
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2157
|
+
chanifyNetwork: import("@yaswap/types").Network;
|
|
2158
|
+
}) => Promise<void>;
|
|
2159
|
+
readonly removeCustomChainSettings: (payload: {
|
|
2160
|
+
network: import("./types").Network;
|
|
2161
|
+
walletId: string;
|
|
2162
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2163
|
+
}) => Promise<void>;
|
|
2164
|
+
};
|
|
2165
|
+
state: {
|
|
2166
|
+
readonly version: number;
|
|
2167
|
+
readonly key: string;
|
|
2168
|
+
readonly wallets: import("./types").Wallet[];
|
|
2169
|
+
readonly unlockedAt: number;
|
|
2170
|
+
readonly brokerReady: boolean;
|
|
2171
|
+
readonly encryptedWallets: string;
|
|
2172
|
+
readonly enabledAssets: Partial<Record<import("./types").Network, Record<string, string[]>>>;
|
|
2173
|
+
readonly customTokens: Partial<Record<import("./types").Network, Record<string, import("./types").CustomToken[]>>>;
|
|
2174
|
+
readonly accounts: Partial<Record<string, Record<import("./types").Network, import("./types").Account[]>>>;
|
|
2175
|
+
readonly fiatRates: import("./types").FiatRates;
|
|
2176
|
+
readonly currenciesInfo: import("./types").CurrenciesInfo;
|
|
2177
|
+
readonly fees: Partial<Record<import("./types").Network, Record<string, Record<string, import("@yaswap/types").FeeDetails>>>>;
|
|
2178
|
+
readonly history: Partial<Record<import("./types").Network, Record<string, import("./types").HistoryItem[]>>>;
|
|
2179
|
+
readonly marketData: Partial<Record<import("./types").Network, import("./types").MarketData[]>>;
|
|
2180
|
+
readonly activeNetwork: import("./types").Network;
|
|
2181
|
+
readonly activeWalletId: string;
|
|
2182
|
+
readonly keyUpdatedAt: number;
|
|
2183
|
+
readonly keySalt: string;
|
|
2184
|
+
readonly termsAcceptedAt: number;
|
|
2185
|
+
readonly setupAt: number;
|
|
2186
|
+
readonly injectEthereum: boolean;
|
|
2187
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
2188
|
+
readonly usbBridgeWindowsId: number;
|
|
2189
|
+
readonly externalConnections: import("./types").ExternalConnections;
|
|
2190
|
+
readonly rskLegacyDerivation: boolean;
|
|
2191
|
+
readonly analytics: import("./types").AnalyticsState;
|
|
2192
|
+
readonly experiments: Partial<Record<import("./types").ExperimentType, boolean>>;
|
|
2193
|
+
readonly whatsNewModalVersion: string;
|
|
2194
|
+
readonly enabledChains: Partial<Record<string, Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]>>>;
|
|
2195
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
2196
|
+
readonly customChainSeetings: Partial<Record<import("./types").Network, Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>>>>;
|
|
2197
|
+
};
|
|
2198
|
+
getters: {
|
|
2199
|
+
readonly client: ({ network, walletId, chainId, accountId, useCache, accountType, accountIndex, }: {
|
|
2200
|
+
network: import("./types").Network;
|
|
2201
|
+
walletId: string;
|
|
2202
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2203
|
+
accountId?: string | undefined;
|
|
2204
|
+
useCache?: boolean | undefined;
|
|
2205
|
+
accountType?: import("./types").AccountType | undefined;
|
|
2206
|
+
accountIndex?: number | undefined;
|
|
2207
|
+
}) => import("@yaswap/client").Client<import("@yaswap/client").Chain<any, import("@yaswap/types").Network>, import("@yaswap/client").Wallet<any, any>, import("@yaswap/client").Swap<any, any, import("@yaswap/client").Wallet<any, any>>, import("@yaswap/client").Nft<any, any>>;
|
|
2208
|
+
readonly historyItemById: (network: import("./types").Network, walletId: string, id: string) => import("./types").HistoryItem | undefined;
|
|
2209
|
+
readonly cryptoassets: Readonly<{
|
|
2210
|
+
[asset: string]: import("@yaswap/cryptoassets").IAsset;
|
|
2211
|
+
}>;
|
|
2212
|
+
readonly networkAccounts: readonly import("./types").Account[];
|
|
2213
|
+
readonly networkAssets: readonly string[];
|
|
2214
|
+
readonly allNetworkAssets: readonly string[];
|
|
2215
|
+
readonly activity: readonly import("./types").HistoryItem[];
|
|
2216
|
+
readonly totalFiatBalance: Readonly<import("bignumber.js").BigNumber>;
|
|
2217
|
+
readonly accountItem: (accountId: string) => import("./types").Account | undefined;
|
|
2218
|
+
readonly suggestedFeePrices: (asset: string) => import("@yaswap/types").FeeDetails | undefined;
|
|
2219
|
+
readonly accountsWithBalance: readonly import("./types").Account[];
|
|
2220
|
+
readonly accountsData: readonly import("./types").Account[];
|
|
2221
|
+
readonly accountFiatBalance: (walletId: string, network: import("./types").Network, accountId: string) => import("bignumber.js").BigNumber;
|
|
2222
|
+
readonly assetFiatBalance: (asset: string, balance: import("bignumber.js").BigNumber) => import("bignumber.js").BigNumber | null;
|
|
2223
|
+
readonly assetMarketCap: (asset: string) => import("@yaswap/types").Nullable<import("bignumber.js").BigNumber>;
|
|
2224
|
+
readonly chainAssets: Readonly<{
|
|
2225
|
+
yacoin?: string[] | undefined;
|
|
2226
|
+
bitcoin?: string[] | undefined;
|
|
2227
|
+
ethereum?: string[] | undefined;
|
|
2228
|
+
rsk?: string[] | undefined;
|
|
2229
|
+
bsc?: string[] | undefined;
|
|
2230
|
+
near?: string[] | undefined;
|
|
2231
|
+
polygon?: string[] | undefined;
|
|
2232
|
+
arbitrum?: string[] | undefined;
|
|
2233
|
+
solana?: string[] | undefined;
|
|
2234
|
+
fuse?: string[] | undefined;
|
|
2235
|
+
terra?: string[] | undefined;
|
|
2236
|
+
avalanche?: string[] | undefined;
|
|
2237
|
+
optimism?: string[] | undefined;
|
|
2238
|
+
}>;
|
|
2239
|
+
readonly analyticsEnabled: Readonly<boolean>;
|
|
2240
|
+
readonly allNftCollections: Readonly<import("./types").NFTCollections<import("./types").NFTWithAccount>>;
|
|
2241
|
+
readonly accountNftCollections: (accountId: string) => import("./types").NFTCollections<import("./types").NFT>;
|
|
2242
|
+
readonly mergedChainSettings: Readonly<Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>>;
|
|
2243
|
+
readonly chainSettings: readonly {
|
|
2244
|
+
chain: string;
|
|
2245
|
+
asset: string;
|
|
2246
|
+
network: import("../types").ChainifyNetwork;
|
|
2247
|
+
}[];
|
|
2248
|
+
};
|
|
2249
|
+
commit: {
|
|
2250
|
+
SET_STATE: (payload: {
|
|
2251
|
+
newState: RootState;
|
|
2252
|
+
}) => void;
|
|
2253
|
+
CREATE_WALLET: (payload: {
|
|
2254
|
+
key: string;
|
|
2255
|
+
keySalt: string;
|
|
2256
|
+
encryptedWallets: string;
|
|
2257
|
+
wallet: import("./types").Wallet;
|
|
2258
|
+
}) => void;
|
|
2259
|
+
ACCEPT_TNC: () => void;
|
|
2260
|
+
CHANGE_ACTIVE_WALLETID: (payload: {
|
|
2261
|
+
walletId: string;
|
|
2262
|
+
}) => void;
|
|
2263
|
+
CHANGE_ACTIVE_NETWORK: (payload: {
|
|
2264
|
+
network: import("./types").Network;
|
|
2265
|
+
}) => void;
|
|
2266
|
+
CHANGE_PASSWORD: (payload: {
|
|
2267
|
+
key: string;
|
|
2268
|
+
keySalt: string;
|
|
2269
|
+
encryptedWallets: string;
|
|
2270
|
+
}) => void;
|
|
2271
|
+
LOCK_WALLET: () => void;
|
|
2272
|
+
UNLOCK_WALLET: (payload: {
|
|
2273
|
+
key: string;
|
|
2274
|
+
wallets: import("./types").Wallet[];
|
|
2275
|
+
unlockedAt: number;
|
|
2276
|
+
}) => void;
|
|
2277
|
+
NEW_SWAP: (payload: {
|
|
2278
|
+
network: import("./types").Network;
|
|
2279
|
+
walletId: string;
|
|
2280
|
+
swap: import("./types").SwapHistoryItem;
|
|
2281
|
+
}) => void;
|
|
2282
|
+
NEW_TRASACTION: (payload: {
|
|
2283
|
+
network: import("./types").Network;
|
|
2284
|
+
walletId: string;
|
|
2285
|
+
transaction: import("./types").SendHistoryItem;
|
|
2286
|
+
}) => void;
|
|
2287
|
+
NEW_NFT_TRASACTION: (payload: {
|
|
2288
|
+
network: import("./types").Network;
|
|
2289
|
+
walletId: string;
|
|
2290
|
+
transaction: import("./types").NFTSendHistoryItem;
|
|
2291
|
+
}) => void;
|
|
2292
|
+
UPDATE_HISTORY: (payload: {
|
|
2293
|
+
network: import("./types").Network;
|
|
2294
|
+
walletId: string;
|
|
2295
|
+
id: string;
|
|
2296
|
+
updates: Partial<import("./types").HistoryItem>;
|
|
2297
|
+
}) => void;
|
|
2298
|
+
REMOVE_ORDER: (payload: {
|
|
2299
|
+
network: import("./types").Network;
|
|
2300
|
+
walletId: string;
|
|
2301
|
+
id: string;
|
|
2302
|
+
}) => void;
|
|
2303
|
+
UPDATE_BALANCE: (payload: {
|
|
2304
|
+
network: import("./types").Network;
|
|
2305
|
+
accountId: string;
|
|
2306
|
+
walletId: string;
|
|
2307
|
+
asset: string;
|
|
2308
|
+
balance: string;
|
|
2309
|
+
}) => void;
|
|
2310
|
+
UPDATE_MULTIPLE_BALANCES: (payload: {
|
|
2311
|
+
network: import("./types").Network;
|
|
2312
|
+
accountId: string;
|
|
2313
|
+
walletId: string;
|
|
2314
|
+
assets: string[];
|
|
2315
|
+
balances: import("@yaswap/types").Nullable<string>[];
|
|
2316
|
+
}) => void;
|
|
2317
|
+
UPDATE_FEES: (payload: {
|
|
2318
|
+
network: import("./types").Network;
|
|
2319
|
+
walletId: string;
|
|
2320
|
+
asset: string;
|
|
2321
|
+
fees: import("@yaswap/types").FeeDetails;
|
|
2322
|
+
}) => void;
|
|
2323
|
+
UPDATE_FIAT_RATES: (payload: {
|
|
2324
|
+
fiatRates: import("./types").FiatRates;
|
|
2325
|
+
}) => void;
|
|
2326
|
+
UPDATE_CURRENCIES_INFO: (payload: {
|
|
2327
|
+
currenciesInfo: import("./types").CurrenciesInfo;
|
|
2328
|
+
}) => void;
|
|
2329
|
+
UPDATE_MARKET_DATA: (payload: {
|
|
2330
|
+
network: import("./types").Network;
|
|
2331
|
+
marketData: import("./types").MarketData[];
|
|
2332
|
+
}) => void;
|
|
2333
|
+
SET_ETHEREUM_INJECTION_CHAIN: (payload: {
|
|
2334
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
2335
|
+
}) => void;
|
|
2336
|
+
ENABLE_ETHEREUM_INJECTION: () => void;
|
|
2337
|
+
DISABLE_ETHEREUM_INJECTION: () => void;
|
|
2338
|
+
ENABLE_ASSETS: (payload: {
|
|
2339
|
+
network: import("./types").Network;
|
|
2340
|
+
walletId: string;
|
|
2341
|
+
assets: string[];
|
|
2342
|
+
}) => void;
|
|
2343
|
+
DISABLE_ASSETS: (payload: {
|
|
2344
|
+
network: import("./types").Network;
|
|
2345
|
+
walletId: string;
|
|
2346
|
+
assets: string[];
|
|
2347
|
+
}) => void;
|
|
2348
|
+
DISABLE_ACCOUNT_ASSETS: (payload: {
|
|
2349
|
+
network: import("./types").Network;
|
|
2350
|
+
walletId: string;
|
|
2351
|
+
accountId: string;
|
|
2352
|
+
assets: string[];
|
|
2353
|
+
}) => void;
|
|
2354
|
+
ENABLE_ACCOUNT_ASSETS: (payload: {
|
|
2355
|
+
network: import("./types").Network;
|
|
2356
|
+
walletId: string;
|
|
2357
|
+
accountId: string;
|
|
2358
|
+
assets: string[];
|
|
2359
|
+
}) => void;
|
|
2360
|
+
ADD_CUSTOM_TOKEN: (payload: {
|
|
2361
|
+
network: import("./types").Network;
|
|
2362
|
+
walletId: string;
|
|
2363
|
+
customToken: import("./types").CustomToken;
|
|
2364
|
+
}) => void;
|
|
2365
|
+
REMOVE_CUSTOM_TOKEN: (payload: {
|
|
2366
|
+
network: import("./types").Network;
|
|
2367
|
+
walletId: string;
|
|
2368
|
+
symbol: string;
|
|
2369
|
+
}) => void;
|
|
2370
|
+
CREATE_ACCOUNT: (payload: {
|
|
2371
|
+
network: import("./types").Network;
|
|
2372
|
+
walletId: string;
|
|
2373
|
+
account: import("./types").Account;
|
|
2374
|
+
}) => void;
|
|
2375
|
+
UPDATE_ACCOUNT: (payload: {
|
|
2376
|
+
network: import("./types").Network;
|
|
2377
|
+
walletId: string;
|
|
2378
|
+
account: import("./types").Account;
|
|
2379
|
+
}) => void;
|
|
2380
|
+
REMOVE_ACCOUNT: (payload: {
|
|
2381
|
+
walletId: string;
|
|
2382
|
+
id: string;
|
|
2383
|
+
network: import("./types").Network;
|
|
2384
|
+
}) => void;
|
|
2385
|
+
UPDATE_ACCOUNT_ADDRESSES: (payload: {
|
|
2386
|
+
network: import("./types").Network;
|
|
2387
|
+
accountId: string;
|
|
2388
|
+
walletId: string;
|
|
2389
|
+
addresses: string[];
|
|
2390
|
+
}) => void;
|
|
2391
|
+
SET_USB_BRIDGE_WINDOWS_ID: (payload: {
|
|
2392
|
+
id: number;
|
|
2393
|
+
}) => void;
|
|
2394
|
+
SET_EXTERNAL_CONNECTION_DEFAULT: (payload: {
|
|
2395
|
+
origin: string;
|
|
2396
|
+
activeWalletId: string;
|
|
2397
|
+
accountId: string;
|
|
2398
|
+
}) => void;
|
|
2399
|
+
ADD_EXTERNAL_CONNECTION: (payload: {
|
|
2400
|
+
origin: string;
|
|
2401
|
+
activeWalletId: string;
|
|
2402
|
+
accountId: string;
|
|
2403
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
2404
|
+
}) => void;
|
|
2405
|
+
REMOVE_EXTERNAL_CONNECTIONS: (payload: {
|
|
2406
|
+
activeWalletId: string;
|
|
2407
|
+
}) => void;
|
|
2408
|
+
SET_ANALYTICS_PREFERENCES: (payload: Partial<import("./types").AnalyticsState>) => void;
|
|
2409
|
+
UPDATE_NFTS: (payload: {
|
|
2410
|
+
network: import("./types").Network;
|
|
2411
|
+
walletId: string;
|
|
2412
|
+
accountId: string;
|
|
2413
|
+
nfts: import("./types").NFT[];
|
|
2414
|
+
}) => void;
|
|
2415
|
+
NFT_TOGGLE_STARRED: (payload: {
|
|
2416
|
+
network: import("./types").Network;
|
|
2417
|
+
walletId: string;
|
|
2418
|
+
accountId: string;
|
|
2419
|
+
nft: import("./types").NFT;
|
|
2420
|
+
}) => void;
|
|
2421
|
+
TOGGLE_EXPERIMENT: (payload: {
|
|
2422
|
+
name: import("./types").ExperimentType;
|
|
2423
|
+
}) => void;
|
|
2424
|
+
SET_WHATS_NEW_MODAL_VERSION: (payload: {
|
|
2425
|
+
version: string;
|
|
2426
|
+
}) => void;
|
|
2427
|
+
TOGGLE_BLOCKCHAIN: (payload: {
|
|
2428
|
+
network: import("./types").Network;
|
|
2429
|
+
walletId: string;
|
|
2430
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2431
|
+
enable: boolean;
|
|
2432
|
+
}) => void;
|
|
2433
|
+
TOGGLE_ACCOUNT: (payload: {
|
|
2434
|
+
network: import("./types").Network;
|
|
2435
|
+
walletId: string;
|
|
2436
|
+
accountId: string;
|
|
2437
|
+
enable: boolean;
|
|
2438
|
+
}) => void;
|
|
2439
|
+
LOG_ERROR: (payload: import("@yaswap/error-parser").LiqualityErrorJSON) => void;
|
|
2440
|
+
CLEAR_ERROR_LOG: () => void;
|
|
2441
|
+
SET_CUSTOM_CHAIN_SETTINGS: (payload: {
|
|
2442
|
+
network: import("./types").Network;
|
|
2443
|
+
walletId: string;
|
|
2444
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2445
|
+
chanifyNetwork: import("@yaswap/types").Network;
|
|
2446
|
+
}) => void;
|
|
2447
|
+
REMOVE_CUSTOM_CHAIN_SETTINGS: (payload: {
|
|
2448
|
+
network: import("./types").Network;
|
|
2449
|
+
walletId: string;
|
|
2450
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2451
|
+
}) => void;
|
|
2452
|
+
};
|
|
2453
|
+
dispatch: {
|
|
2454
|
+
readonly acceptTermsAndConditions: (payload: {
|
|
2455
|
+
analyticsAccepted: boolean;
|
|
2456
|
+
}) => Promise<void>;
|
|
2457
|
+
readonly createAccount: (payload: {
|
|
2458
|
+
walletId: string;
|
|
2459
|
+
network: import("./types").Network;
|
|
2460
|
+
account: import("./types").Account;
|
|
2461
|
+
}) => Promise<import("./types").Account>;
|
|
2462
|
+
readonly removeAccount: (payload: {
|
|
2463
|
+
network: import("./types").Network;
|
|
2464
|
+
walletId: string;
|
|
2465
|
+
id: string;
|
|
2466
|
+
}) => Promise<string>;
|
|
2467
|
+
readonly toggleAccount: (payload: {
|
|
2468
|
+
network: import("./types").Network;
|
|
2469
|
+
walletId: string;
|
|
2470
|
+
accounts: string[];
|
|
2471
|
+
enable: boolean;
|
|
2472
|
+
}) => Promise<void>;
|
|
2473
|
+
readonly toggleBlockchain: (payload: {
|
|
2474
|
+
network: import("./types").Network;
|
|
2475
|
+
walletId: string;
|
|
2476
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2477
|
+
enable: boolean;
|
|
2478
|
+
}) => Promise<void>;
|
|
2479
|
+
readonly updateAccount: (payload: {
|
|
2480
|
+
network: import("./types").Network;
|
|
2481
|
+
walletId: string;
|
|
2482
|
+
account: import("./types").Account;
|
|
2483
|
+
}) => Promise<{
|
|
2484
|
+
updatedAt: number;
|
|
2485
|
+
id: string;
|
|
2486
|
+
walletId: string;
|
|
2487
|
+
createdAt: number;
|
|
2488
|
+
enabled: boolean;
|
|
2489
|
+
derivationPath: string;
|
|
2490
|
+
chainCode?: string | undefined;
|
|
2491
|
+
publicKey?: string | undefined;
|
|
2492
|
+
nfts?: import("./types").NFT[] | undefined;
|
|
2493
|
+
type: import("./types").AccountType;
|
|
2494
|
+
name: string;
|
|
2495
|
+
alias?: string | undefined;
|
|
2496
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
2497
|
+
index: number;
|
|
2498
|
+
addresses: string[];
|
|
2499
|
+
assets: string[];
|
|
2500
|
+
balances: Record<string, string>;
|
|
2501
|
+
color: string;
|
|
2502
|
+
}>;
|
|
2503
|
+
readonly addCustomToken: (payload: {
|
|
2504
|
+
network: import("./types").Network;
|
|
2505
|
+
walletId: string;
|
|
2506
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
2507
|
+
symbol: string;
|
|
2508
|
+
name: string;
|
|
2509
|
+
contractAddress: string;
|
|
2510
|
+
decimals: number;
|
|
2511
|
+
}) => Promise<void>;
|
|
2512
|
+
readonly addExternalConnection: (payload: {
|
|
2513
|
+
origin: string;
|
|
2514
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
2515
|
+
accountId: string;
|
|
2516
|
+
setDefaultEthereum: boolean;
|
|
2517
|
+
}) => Promise<void>;
|
|
2518
|
+
readonly initializeAnalyticsPreferences: (payload: {
|
|
2519
|
+
accepted: boolean;
|
|
2520
|
+
}) => Promise<void>;
|
|
2521
|
+
readonly updateAnalyticsPreferences: (payload: import("./types").AnalyticsState) => Promise<void>;
|
|
2522
|
+
readonly setAnalyticsResponse: (payload: {
|
|
2523
|
+
accepted: boolean;
|
|
2524
|
+
}) => Promise<void>;
|
|
2525
|
+
readonly initializeAnalytics: () => Promise<boolean>;
|
|
2526
|
+
readonly trackAnalytics: (payload: {
|
|
2527
|
+
event: string;
|
|
2528
|
+
properties: actions.AmplitudeProperties;
|
|
2529
|
+
}) => Promise<number> | Promise<undefined>;
|
|
2530
|
+
readonly changeActiveNetwork: (payload: {
|
|
2531
|
+
network: import("./types").Network;
|
|
2532
|
+
}) => Promise<void>;
|
|
2533
|
+
readonly changeActiveWalletId: (payload: {
|
|
2534
|
+
walletId: string;
|
|
2535
|
+
}) => Promise<void>;
|
|
2536
|
+
readonly changePassword: (payload: {
|
|
2537
|
+
key: string;
|
|
2538
|
+
}) => Promise<void>;
|
|
2539
|
+
readonly checkPendingActions: (payload: {
|
|
2540
|
+
walletId: string;
|
|
2541
|
+
}) => Promise<void>;
|
|
2542
|
+
readonly createWallet: (payload: {
|
|
2543
|
+
key: string;
|
|
2544
|
+
mnemonic: string;
|
|
2545
|
+
imported?: boolean | undefined;
|
|
2546
|
+
}) => Promise<import("./types").Wallet>;
|
|
2547
|
+
readonly disableAssets: (payload: {
|
|
2548
|
+
network: import("./types").Network;
|
|
2549
|
+
walletId: string;
|
|
2550
|
+
assets: string[];
|
|
2551
|
+
}) => Promise<void>;
|
|
2552
|
+
readonly disableEthereumInjection: () => Promise<void>;
|
|
2553
|
+
readonly enableAssets: (payload: {
|
|
2554
|
+
network: import("./types").Network;
|
|
2555
|
+
walletId: string;
|
|
2556
|
+
assets: string[];
|
|
2557
|
+
}) => Promise<void>;
|
|
2558
|
+
readonly enableEthereumInjection: () => Promise<void>;
|
|
2559
|
+
readonly exportPrivateKey: (payload: {
|
|
2560
|
+
network: import("./types").Network;
|
|
2561
|
+
walletId: string;
|
|
2562
|
+
accountId: string;
|
|
2563
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2564
|
+
}) => Promise<string>;
|
|
2565
|
+
readonly fetchTokenDetails: (payload: actions.FetchTokenDetailsRequest) => Promise<import("@yaswap/types").Nullable<import("@yaswap/types").TokenDetails>>;
|
|
2566
|
+
readonly forgetDappConnections: () => Promise<void>;
|
|
2567
|
+
readonly getLockForAsset: (payload: {
|
|
2568
|
+
network: import("./types").Network;
|
|
2569
|
+
walletId: string;
|
|
2570
|
+
asset: string;
|
|
2571
|
+
item: import("./types").BaseHistoryItem;
|
|
2572
|
+
}) => Promise<string>;
|
|
2573
|
+
readonly getQuotes: (payload: import("../swaps/types").GetQuotesRequest) => Promise<actions.GetQuotesResult>;
|
|
2574
|
+
readonly getSlowQuotes: (payload: {
|
|
2575
|
+
requestId: string;
|
|
2576
|
+
}) => Promise<import("../swaps/types").SwapQuote[]>;
|
|
2577
|
+
readonly getUnusedAddresses: (payload: {
|
|
2578
|
+
network: import("./types").Network;
|
|
2579
|
+
walletId: string;
|
|
2580
|
+
assets: string[];
|
|
2581
|
+
accountId: string;
|
|
2582
|
+
}) => Promise<string[]>;
|
|
2583
|
+
readonly getLedgerAccounts: (payload: {
|
|
2584
|
+
network: import("./types").Network;
|
|
2585
|
+
walletId: string;
|
|
2586
|
+
asset: string;
|
|
2587
|
+
accountType: import("./types").AccountType;
|
|
2588
|
+
startingIndex: number;
|
|
2589
|
+
numAccounts: number;
|
|
2590
|
+
}) => Promise<{
|
|
2591
|
+
account: string;
|
|
2592
|
+
index: number;
|
|
2593
|
+
exists: boolean;
|
|
2594
|
+
}[]>;
|
|
2595
|
+
readonly initializeAddresses: (payload: {
|
|
2596
|
+
network: import("./types").Network;
|
|
2597
|
+
walletId: string;
|
|
2598
|
+
}) => Promise<void>;
|
|
2599
|
+
readonly lockWallet: () => Promise<void>;
|
|
2600
|
+
readonly newSwap: (payload: {
|
|
2601
|
+
network: import("./types").Network;
|
|
2602
|
+
walletId: string;
|
|
2603
|
+
quote: import("../swaps/types").SwapQuote;
|
|
2604
|
+
fee: number;
|
|
2605
|
+
claimFee: number;
|
|
2606
|
+
feeLabel: import("./types").FeeLabel;
|
|
2607
|
+
claimFeeLabel: import("./types").FeeLabel;
|
|
2608
|
+
}) => Promise<import("./types").SwapHistoryItem>;
|
|
2609
|
+
readonly performNextAction: (payload: {
|
|
2610
|
+
network: import("./types").Network;
|
|
2611
|
+
walletId: string;
|
|
2612
|
+
id: string;
|
|
2613
|
+
}) => Promise<Partial<import("./types").HistoryItem> | undefined>;
|
|
2614
|
+
readonly proxyMutation: (payload: {
|
|
2615
|
+
type: string;
|
|
2616
|
+
payload: any;
|
|
2617
|
+
}) => Promise<void>;
|
|
2618
|
+
readonly removeCustomToken: (payload: {
|
|
2619
|
+
network: import("./types").Network;
|
|
2620
|
+
walletId: string;
|
|
2621
|
+
symbol: string;
|
|
2622
|
+
}) => Promise<void>;
|
|
2623
|
+
readonly retrySwap: (payload: {
|
|
2624
|
+
swap: import("./types").SwapHistoryItem;
|
|
2625
|
+
}) => Promise<Partial<import("./types").SwapHistoryItem> | undefined>;
|
|
2626
|
+
readonly sendNFTTransaction: (payload: import("./types").NFTSendTransactionParams) => Promise<import("@yaswap/types").Transaction<any>>;
|
|
2627
|
+
readonly sendTransaction: (payload: {
|
|
2628
|
+
network: import("./types").Network;
|
|
2629
|
+
walletId: string;
|
|
2630
|
+
accountId: string;
|
|
2631
|
+
asset: string;
|
|
2632
|
+
to: string;
|
|
2633
|
+
amount: import("bignumber.js").BigNumber;
|
|
2634
|
+
data: string;
|
|
2635
|
+
fee: number;
|
|
2636
|
+
feeAsset: string;
|
|
2637
|
+
gas: number;
|
|
2638
|
+
feeLabel: import("./types").FeeLabel;
|
|
2639
|
+
fiatRate: number;
|
|
2640
|
+
}) => Promise<import("./types").SendHistoryItem>;
|
|
2641
|
+
readonly setEthereumInjectionChain: (payload: {
|
|
2642
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
2643
|
+
}) => Promise<void>;
|
|
2644
|
+
readonly setWhatsNewModalVersion: (payload: {
|
|
2645
|
+
version: string;
|
|
2646
|
+
}) => Promise<void>;
|
|
2647
|
+
readonly showNotification: (payload: import("../types").Notification) => Promise<void>;
|
|
2648
|
+
readonly toggleExperiment: (payload: {
|
|
2649
|
+
name: import("./types").ExperimentType;
|
|
2650
|
+
}) => Promise<void>;
|
|
2651
|
+
readonly toggleNFTStarred: (payload: {
|
|
2652
|
+
network: import("./types").Network;
|
|
2653
|
+
walletId: string;
|
|
2654
|
+
accountId: string;
|
|
2655
|
+
nft: import("./types").NFT;
|
|
2656
|
+
}) => Promise<void>;
|
|
2657
|
+
readonly unlockWallet: (payload: {
|
|
2658
|
+
key: string;
|
|
2659
|
+
}) => Promise<void>;
|
|
2660
|
+
readonly updateAccountBalance: (payload: {
|
|
2661
|
+
network: import("./types").Network;
|
|
2662
|
+
walletId: string;
|
|
2663
|
+
accountId: string;
|
|
2664
|
+
}) => Promise<void>;
|
|
2665
|
+
readonly updateBalances: (payload: {
|
|
2666
|
+
walletId: string;
|
|
2667
|
+
network: import("./types").Network;
|
|
2668
|
+
accountIds?: string[] | undefined;
|
|
2669
|
+
}) => Promise<void>;
|
|
2670
|
+
readonly updateCurrenciesInfo: (payload: {
|
|
2671
|
+
assets: string[];
|
|
2672
|
+
}) => Promise<import("./types").CurrenciesInfo>;
|
|
2673
|
+
readonly updateFees: (payload: {
|
|
2674
|
+
asset: string;
|
|
2675
|
+
}) => Promise<import("@yaswap/types").FeeDetails>;
|
|
2676
|
+
readonly updateFiatRates: (payload: {
|
|
2677
|
+
assets: string[];
|
|
2678
|
+
}) => Promise<import("./types").FiatRates>;
|
|
2679
|
+
readonly updateMarketData: (payload: {
|
|
2680
|
+
network: import("./types").Network;
|
|
2681
|
+
}) => Promise<{
|
|
2682
|
+
network: import("./types").Network;
|
|
2683
|
+
marketData: import("./types").MarketData[];
|
|
2684
|
+
}>;
|
|
2685
|
+
readonly updateNFTs: (payload: {
|
|
2686
|
+
walletId: string;
|
|
2687
|
+
network: import("./types").Network;
|
|
2688
|
+
accountIds: string[];
|
|
2689
|
+
}) => Promise<import("./types").NFT[][]>;
|
|
2690
|
+
readonly updateTransactionFee: (payload: {
|
|
2691
|
+
network: import("./types").Network;
|
|
2692
|
+
walletId: string;
|
|
2693
|
+
asset: string;
|
|
2694
|
+
id: string;
|
|
2695
|
+
hash: string;
|
|
2696
|
+
newFee: number;
|
|
2697
|
+
}) => Promise<import("@yaswap/types").Transaction<any>>;
|
|
2698
|
+
readonly logError: (payload: import("@yaswap/error-parser").LiqualityErrorJSON) => Promise<void>;
|
|
2699
|
+
readonly clearErrorLog: () => Promise<void>;
|
|
2700
|
+
readonly saveCustomChainSettings: (payload: {
|
|
2701
|
+
network: import("./types").Network;
|
|
2702
|
+
walletId: string;
|
|
2703
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2704
|
+
chanifyNetwork: import("@yaswap/types").Network;
|
|
2705
|
+
}) => Promise<void>;
|
|
2706
|
+
readonly removeCustomChainSettings: (payload: {
|
|
2707
|
+
network: import("./types").Network;
|
|
2708
|
+
walletId: string;
|
|
2709
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2710
|
+
}) => Promise<void>;
|
|
2711
|
+
};
|
|
2712
|
+
}, rootGetterContext: (args: [any, any]) => {
|
|
2713
|
+
rootState: {
|
|
2714
|
+
readonly version: number;
|
|
2715
|
+
readonly key: string;
|
|
2716
|
+
readonly wallets: import("./types").Wallet[];
|
|
2717
|
+
readonly unlockedAt: number;
|
|
2718
|
+
readonly brokerReady: boolean;
|
|
2719
|
+
readonly encryptedWallets: string;
|
|
2720
|
+
readonly enabledAssets: Partial<Record<import("./types").Network, Record<string, string[]>>>;
|
|
2721
|
+
readonly customTokens: Partial<Record<import("./types").Network, Record<string, import("./types").CustomToken[]>>>;
|
|
2722
|
+
readonly accounts: Partial<Record<string, Record<import("./types").Network, import("./types").Account[]>>>;
|
|
2723
|
+
readonly fiatRates: import("./types").FiatRates;
|
|
2724
|
+
readonly currenciesInfo: import("./types").CurrenciesInfo;
|
|
2725
|
+
readonly fees: Partial<Record<import("./types").Network, Record<string, Record<string, import("@yaswap/types").FeeDetails>>>>;
|
|
2726
|
+
readonly history: Partial<Record<import("./types").Network, Record<string, import("./types").HistoryItem[]>>>;
|
|
2727
|
+
readonly marketData: Partial<Record<import("./types").Network, import("./types").MarketData[]>>;
|
|
2728
|
+
readonly activeNetwork: import("./types").Network;
|
|
2729
|
+
readonly activeWalletId: string;
|
|
2730
|
+
readonly keyUpdatedAt: number;
|
|
2731
|
+
readonly keySalt: string;
|
|
2732
|
+
readonly termsAcceptedAt: number;
|
|
2733
|
+
readonly setupAt: number;
|
|
2734
|
+
readonly injectEthereum: boolean;
|
|
2735
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
2736
|
+
readonly usbBridgeWindowsId: number;
|
|
2737
|
+
readonly externalConnections: import("./types").ExternalConnections;
|
|
2738
|
+
readonly rskLegacyDerivation: boolean;
|
|
2739
|
+
readonly analytics: import("./types").AnalyticsState;
|
|
2740
|
+
readonly experiments: Partial<Record<import("./types").ExperimentType, boolean>>;
|
|
2741
|
+
readonly whatsNewModalVersion: string;
|
|
2742
|
+
readonly enabledChains: Partial<Record<string, Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]>>>;
|
|
2743
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
2744
|
+
readonly customChainSeetings: Partial<Record<import("./types").Network, Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>>>>;
|
|
2745
|
+
};
|
|
2746
|
+
rootGetters: {
|
|
2747
|
+
readonly client: ({ network, walletId, chainId, accountId, useCache, accountType, accountIndex, }: {
|
|
2748
|
+
network: import("./types").Network;
|
|
2749
|
+
walletId: string;
|
|
2750
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2751
|
+
accountId?: string | undefined;
|
|
2752
|
+
useCache?: boolean | undefined;
|
|
2753
|
+
accountType?: import("./types").AccountType | undefined;
|
|
2754
|
+
accountIndex?: number | undefined;
|
|
2755
|
+
}) => import("@yaswap/client").Client<import("@yaswap/client").Chain<any, import("@yaswap/types").Network>, import("@yaswap/client").Wallet<any, any>, import("@yaswap/client").Swap<any, any, import("@yaswap/client").Wallet<any, any>>, import("@yaswap/client").Nft<any, any>>;
|
|
2756
|
+
readonly historyItemById: (network: import("./types").Network, walletId: string, id: string) => import("./types").HistoryItem | undefined;
|
|
2757
|
+
readonly cryptoassets: Readonly<{
|
|
2758
|
+
[asset: string]: import("@yaswap/cryptoassets").IAsset;
|
|
2759
|
+
}>;
|
|
2760
|
+
readonly networkAccounts: readonly import("./types").Account[];
|
|
2761
|
+
readonly networkAssets: readonly string[];
|
|
2762
|
+
readonly allNetworkAssets: readonly string[];
|
|
2763
|
+
readonly activity: readonly import("./types").HistoryItem[];
|
|
2764
|
+
readonly totalFiatBalance: Readonly<import("bignumber.js").BigNumber>;
|
|
2765
|
+
readonly accountItem: (accountId: string) => import("./types").Account | undefined;
|
|
2766
|
+
readonly suggestedFeePrices: (asset: string) => import("@yaswap/types").FeeDetails | undefined;
|
|
2767
|
+
readonly accountsWithBalance: readonly import("./types").Account[];
|
|
2768
|
+
readonly accountsData: readonly import("./types").Account[];
|
|
2769
|
+
readonly accountFiatBalance: (walletId: string, network: import("./types").Network, accountId: string) => import("bignumber.js").BigNumber;
|
|
2770
|
+
readonly assetFiatBalance: (asset: string, balance: import("bignumber.js").BigNumber) => import("bignumber.js").BigNumber | null;
|
|
2771
|
+
readonly assetMarketCap: (asset: string) => import("@yaswap/types").Nullable<import("bignumber.js").BigNumber>;
|
|
2772
|
+
readonly chainAssets: Readonly<{
|
|
2773
|
+
yacoin?: string[] | undefined;
|
|
2774
|
+
bitcoin?: string[] | undefined;
|
|
2775
|
+
ethereum?: string[] | undefined;
|
|
2776
|
+
rsk?: string[] | undefined;
|
|
2777
|
+
bsc?: string[] | undefined;
|
|
2778
|
+
near?: string[] | undefined;
|
|
2779
|
+
polygon?: string[] | undefined;
|
|
2780
|
+
arbitrum?: string[] | undefined;
|
|
2781
|
+
solana?: string[] | undefined;
|
|
2782
|
+
fuse?: string[] | undefined;
|
|
2783
|
+
terra?: string[] | undefined;
|
|
2784
|
+
avalanche?: string[] | undefined;
|
|
2785
|
+
optimism?: string[] | undefined;
|
|
2786
|
+
}>;
|
|
2787
|
+
readonly analyticsEnabled: Readonly<boolean>;
|
|
2788
|
+
readonly allNftCollections: Readonly<import("./types").NFTCollections<import("./types").NFTWithAccount>>;
|
|
2789
|
+
readonly accountNftCollections: (accountId: string) => import("./types").NFTCollections<import("./types").NFT>;
|
|
2790
|
+
readonly mergedChainSettings: Readonly<Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>>;
|
|
2791
|
+
readonly chainSettings: readonly {
|
|
2792
|
+
chain: string;
|
|
2793
|
+
asset: string;
|
|
2794
|
+
network: import("../types").ChainifyNetwork;
|
|
2795
|
+
}[];
|
|
2796
|
+
};
|
|
2797
|
+
state: {
|
|
2798
|
+
readonly version: number;
|
|
2799
|
+
readonly key: string;
|
|
2800
|
+
readonly wallets: import("./types").Wallet[];
|
|
2801
|
+
readonly unlockedAt: number;
|
|
2802
|
+
readonly brokerReady: boolean;
|
|
2803
|
+
readonly encryptedWallets: string;
|
|
2804
|
+
readonly enabledAssets: Partial<Record<import("./types").Network, Record<string, string[]>>>;
|
|
2805
|
+
readonly customTokens: Partial<Record<import("./types").Network, Record<string, import("./types").CustomToken[]>>>;
|
|
2806
|
+
readonly accounts: Partial<Record<string, Record<import("./types").Network, import("./types").Account[]>>>;
|
|
2807
|
+
readonly fiatRates: import("./types").FiatRates;
|
|
2808
|
+
readonly currenciesInfo: import("./types").CurrenciesInfo;
|
|
2809
|
+
readonly fees: Partial<Record<import("./types").Network, Record<string, Record<string, import("@yaswap/types").FeeDetails>>>>;
|
|
2810
|
+
readonly history: Partial<Record<import("./types").Network, Record<string, import("./types").HistoryItem[]>>>;
|
|
2811
|
+
readonly marketData: Partial<Record<import("./types").Network, import("./types").MarketData[]>>;
|
|
2812
|
+
readonly activeNetwork: import("./types").Network;
|
|
2813
|
+
readonly activeWalletId: string;
|
|
2814
|
+
readonly keyUpdatedAt: number;
|
|
2815
|
+
readonly keySalt: string;
|
|
2816
|
+
readonly termsAcceptedAt: number;
|
|
2817
|
+
readonly setupAt: number;
|
|
2818
|
+
readonly injectEthereum: boolean;
|
|
2819
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
2820
|
+
readonly usbBridgeWindowsId: number;
|
|
2821
|
+
readonly externalConnections: import("./types").ExternalConnections;
|
|
2822
|
+
readonly rskLegacyDerivation: boolean;
|
|
2823
|
+
readonly analytics: import("./types").AnalyticsState;
|
|
2824
|
+
readonly experiments: Partial<Record<import("./types").ExperimentType, boolean>>;
|
|
2825
|
+
readonly whatsNewModalVersion: string;
|
|
2826
|
+
readonly enabledChains: Partial<Record<string, Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]>>>;
|
|
2827
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
2828
|
+
readonly customChainSeetings: Partial<Record<import("./types").Network, Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>>>>;
|
|
2829
|
+
};
|
|
2830
|
+
getters: {
|
|
2831
|
+
readonly client: ({ network, walletId, chainId, accountId, useCache, accountType, accountIndex, }: {
|
|
2832
|
+
network: import("./types").Network;
|
|
2833
|
+
walletId: string;
|
|
2834
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2835
|
+
accountId?: string | undefined;
|
|
2836
|
+
useCache?: boolean | undefined;
|
|
2837
|
+
accountType?: import("./types").AccountType | undefined;
|
|
2838
|
+
accountIndex?: number | undefined;
|
|
2839
|
+
}) => import("@yaswap/client").Client<import("@yaswap/client").Chain<any, import("@yaswap/types").Network>, import("@yaswap/client").Wallet<any, any>, import("@yaswap/client").Swap<any, any, import("@yaswap/client").Wallet<any, any>>, import("@yaswap/client").Nft<any, any>>;
|
|
2840
|
+
readonly historyItemById: (network: import("./types").Network, walletId: string, id: string) => import("./types").HistoryItem | undefined;
|
|
2841
|
+
readonly cryptoassets: Readonly<{
|
|
2842
|
+
[asset: string]: import("@yaswap/cryptoassets").IAsset;
|
|
2843
|
+
}>;
|
|
2844
|
+
readonly networkAccounts: readonly import("./types").Account[];
|
|
2845
|
+
readonly networkAssets: readonly string[];
|
|
2846
|
+
readonly allNetworkAssets: readonly string[];
|
|
2847
|
+
readonly activity: readonly import("./types").HistoryItem[];
|
|
2848
|
+
readonly totalFiatBalance: Readonly<import("bignumber.js").BigNumber>;
|
|
2849
|
+
readonly accountItem: (accountId: string) => import("./types").Account | undefined;
|
|
2850
|
+
readonly suggestedFeePrices: (asset: string) => import("@yaswap/types").FeeDetails | undefined;
|
|
2851
|
+
readonly accountsWithBalance: readonly import("./types").Account[];
|
|
2852
|
+
readonly accountsData: readonly import("./types").Account[];
|
|
2853
|
+
readonly accountFiatBalance: (walletId: string, network: import("./types").Network, accountId: string) => import("bignumber.js").BigNumber;
|
|
2854
|
+
readonly assetFiatBalance: (asset: string, balance: import("bignumber.js").BigNumber) => import("bignumber.js").BigNumber | null;
|
|
2855
|
+
readonly assetMarketCap: (asset: string) => import("@yaswap/types").Nullable<import("bignumber.js").BigNumber>;
|
|
2856
|
+
readonly chainAssets: Readonly<{
|
|
2857
|
+
yacoin?: string[] | undefined;
|
|
2858
|
+
bitcoin?: string[] | undefined;
|
|
2859
|
+
ethereum?: string[] | undefined;
|
|
2860
|
+
rsk?: string[] | undefined;
|
|
2861
|
+
bsc?: string[] | undefined;
|
|
2862
|
+
near?: string[] | undefined;
|
|
2863
|
+
polygon?: string[] | undefined;
|
|
2864
|
+
arbitrum?: string[] | undefined;
|
|
2865
|
+
solana?: string[] | undefined;
|
|
2866
|
+
fuse?: string[] | undefined;
|
|
2867
|
+
terra?: string[] | undefined;
|
|
2868
|
+
avalanche?: string[] | undefined;
|
|
2869
|
+
optimism?: string[] | undefined;
|
|
2870
|
+
}>;
|
|
2871
|
+
readonly analyticsEnabled: Readonly<boolean>;
|
|
2872
|
+
readonly allNftCollections: Readonly<import("./types").NFTCollections<import("./types").NFTWithAccount>>;
|
|
2873
|
+
readonly accountNftCollections: (accountId: string) => import("./types").NFTCollections<import("./types").NFT>;
|
|
2874
|
+
readonly mergedChainSettings: Readonly<Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>>;
|
|
2875
|
+
readonly chainSettings: readonly {
|
|
2876
|
+
chain: string;
|
|
2877
|
+
asset: string;
|
|
2878
|
+
network: import("../types").ChainifyNetwork;
|
|
2879
|
+
}[];
|
|
2880
|
+
};
|
|
2881
|
+
}, moduleActionContext: <O extends import("direct-vuex").ModuleOptions<any>>(originalContext: _ActionContext<any, any>, module: O) => {
|
|
2882
|
+
rootState: {
|
|
2883
|
+
readonly version: number;
|
|
2884
|
+
readonly key: string;
|
|
2885
|
+
readonly wallets: import("./types").Wallet[];
|
|
2886
|
+
readonly unlockedAt: number;
|
|
2887
|
+
readonly brokerReady: boolean;
|
|
2888
|
+
readonly encryptedWallets: string;
|
|
2889
|
+
readonly enabledAssets: Partial<Record<import("./types").Network, Record<string, string[]>>>;
|
|
2890
|
+
readonly customTokens: Partial<Record<import("./types").Network, Record<string, import("./types").CustomToken[]>>>;
|
|
2891
|
+
readonly accounts: Partial<Record<string, Record<import("./types").Network, import("./types").Account[]>>>;
|
|
2892
|
+
readonly fiatRates: import("./types").FiatRates;
|
|
2893
|
+
readonly currenciesInfo: import("./types").CurrenciesInfo;
|
|
2894
|
+
readonly fees: Partial<Record<import("./types").Network, Record<string, Record<string, import("@yaswap/types").FeeDetails>>>>;
|
|
2895
|
+
readonly history: Partial<Record<import("./types").Network, Record<string, import("./types").HistoryItem[]>>>;
|
|
2896
|
+
readonly marketData: Partial<Record<import("./types").Network, import("./types").MarketData[]>>;
|
|
2897
|
+
readonly activeNetwork: import("./types").Network;
|
|
2898
|
+
readonly activeWalletId: string;
|
|
2899
|
+
readonly keyUpdatedAt: number;
|
|
2900
|
+
readonly keySalt: string;
|
|
2901
|
+
readonly termsAcceptedAt: number;
|
|
2902
|
+
readonly setupAt: number;
|
|
2903
|
+
readonly injectEthereum: boolean;
|
|
2904
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
2905
|
+
readonly usbBridgeWindowsId: number;
|
|
2906
|
+
readonly externalConnections: import("./types").ExternalConnections;
|
|
2907
|
+
readonly rskLegacyDerivation: boolean;
|
|
2908
|
+
readonly analytics: import("./types").AnalyticsState;
|
|
2909
|
+
readonly experiments: Partial<Record<import("./types").ExperimentType, boolean>>;
|
|
2910
|
+
readonly whatsNewModalVersion: string;
|
|
2911
|
+
readonly enabledChains: Partial<Record<string, Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]>>>;
|
|
2912
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
2913
|
+
readonly customChainSeetings: Partial<Record<import("./types").Network, Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>>>>;
|
|
2914
|
+
};
|
|
2915
|
+
rootGetters: {
|
|
2916
|
+
readonly client: ({ network, walletId, chainId, accountId, useCache, accountType, accountIndex, }: {
|
|
2917
|
+
network: import("./types").Network;
|
|
2918
|
+
walletId: string;
|
|
2919
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
2920
|
+
accountId?: string | undefined;
|
|
2921
|
+
useCache?: boolean | undefined;
|
|
2922
|
+
accountType?: import("./types").AccountType | undefined;
|
|
2923
|
+
accountIndex?: number | undefined;
|
|
2924
|
+
}) => import("@yaswap/client").Client<import("@yaswap/client").Chain<any, import("@yaswap/types").Network>, import("@yaswap/client").Wallet<any, any>, import("@yaswap/client").Swap<any, any, import("@yaswap/client").Wallet<any, any>>, import("@yaswap/client").Nft<any, any>>;
|
|
2925
|
+
readonly historyItemById: (network: import("./types").Network, walletId: string, id: string) => import("./types").HistoryItem | undefined;
|
|
2926
|
+
readonly cryptoassets: Readonly<{
|
|
2927
|
+
[asset: string]: import("@yaswap/cryptoassets").IAsset;
|
|
2928
|
+
}>;
|
|
2929
|
+
readonly networkAccounts: readonly import("./types").Account[];
|
|
2930
|
+
readonly networkAssets: readonly string[];
|
|
2931
|
+
readonly allNetworkAssets: readonly string[];
|
|
2932
|
+
readonly activity: readonly import("./types").HistoryItem[];
|
|
2933
|
+
readonly totalFiatBalance: Readonly<import("bignumber.js").BigNumber>;
|
|
2934
|
+
readonly accountItem: (accountId: string) => import("./types").Account | undefined;
|
|
2935
|
+
readonly suggestedFeePrices: (asset: string) => import("@yaswap/types").FeeDetails | undefined;
|
|
2936
|
+
readonly accountsWithBalance: readonly import("./types").Account[];
|
|
2937
|
+
readonly accountsData: readonly import("./types").Account[];
|
|
2938
|
+
readonly accountFiatBalance: (walletId: string, network: import("./types").Network, accountId: string) => import("bignumber.js").BigNumber;
|
|
2939
|
+
readonly assetFiatBalance: (asset: string, balance: import("bignumber.js").BigNumber) => import("bignumber.js").BigNumber | null;
|
|
2940
|
+
readonly assetMarketCap: (asset: string) => import("@yaswap/types").Nullable<import("bignumber.js").BigNumber>;
|
|
2941
|
+
readonly chainAssets: Readonly<{
|
|
2942
|
+
yacoin?: string[] | undefined;
|
|
2943
|
+
bitcoin?: string[] | undefined;
|
|
2944
|
+
ethereum?: string[] | undefined;
|
|
2945
|
+
rsk?: string[] | undefined;
|
|
2946
|
+
bsc?: string[] | undefined;
|
|
2947
|
+
near?: string[] | undefined;
|
|
2948
|
+
polygon?: string[] | undefined;
|
|
2949
|
+
arbitrum?: string[] | undefined;
|
|
2950
|
+
solana?: string[] | undefined;
|
|
2951
|
+
fuse?: string[] | undefined;
|
|
2952
|
+
terra?: string[] | undefined;
|
|
2953
|
+
avalanche?: string[] | undefined;
|
|
2954
|
+
optimism?: string[] | undefined;
|
|
2955
|
+
}>;
|
|
2956
|
+
readonly analyticsEnabled: Readonly<boolean>;
|
|
2957
|
+
readonly allNftCollections: Readonly<import("./types").NFTCollections<import("./types").NFTWithAccount>>;
|
|
2958
|
+
readonly accountNftCollections: (accountId: string) => import("./types").NFTCollections<import("./types").NFT>;
|
|
2959
|
+
readonly mergedChainSettings: Readonly<Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>>;
|
|
2960
|
+
readonly chainSettings: readonly {
|
|
2961
|
+
chain: string;
|
|
2962
|
+
asset: string;
|
|
2963
|
+
network: import("../types").ChainifyNetwork;
|
|
2964
|
+
}[];
|
|
2965
|
+
};
|
|
2966
|
+
rootCommit: {
|
|
2967
|
+
SET_STATE: (payload: {
|
|
2968
|
+
newState: RootState;
|
|
2969
|
+
}) => void;
|
|
2970
|
+
CREATE_WALLET: (payload: {
|
|
2971
|
+
key: string;
|
|
2972
|
+
keySalt: string;
|
|
2973
|
+
encryptedWallets: string;
|
|
2974
|
+
wallet: import("./types").Wallet;
|
|
2975
|
+
}) => void;
|
|
2976
|
+
ACCEPT_TNC: () => void;
|
|
2977
|
+
CHANGE_ACTIVE_WALLETID: (payload: {
|
|
2978
|
+
walletId: string;
|
|
2979
|
+
}) => void;
|
|
2980
|
+
CHANGE_ACTIVE_NETWORK: (payload: {
|
|
2981
|
+
network: import("./types").Network;
|
|
2982
|
+
}) => void;
|
|
2983
|
+
CHANGE_PASSWORD: (payload: {
|
|
2984
|
+
key: string;
|
|
2985
|
+
keySalt: string;
|
|
2986
|
+
encryptedWallets: string;
|
|
2987
|
+
}) => void;
|
|
2988
|
+
LOCK_WALLET: () => void;
|
|
2989
|
+
UNLOCK_WALLET: (payload: {
|
|
2990
|
+
key: string;
|
|
2991
|
+
wallets: import("./types").Wallet[];
|
|
2992
|
+
unlockedAt: number;
|
|
2993
|
+
}) => void;
|
|
2994
|
+
NEW_SWAP: (payload: {
|
|
2995
|
+
network: import("./types").Network;
|
|
2996
|
+
walletId: string;
|
|
2997
|
+
swap: import("./types").SwapHistoryItem;
|
|
2998
|
+
}) => void;
|
|
2999
|
+
NEW_TRASACTION: (payload: {
|
|
3000
|
+
network: import("./types").Network;
|
|
3001
|
+
walletId: string;
|
|
3002
|
+
transaction: import("./types").SendHistoryItem;
|
|
3003
|
+
}) => void;
|
|
3004
|
+
NEW_NFT_TRASACTION: (payload: {
|
|
3005
|
+
network: import("./types").Network;
|
|
3006
|
+
walletId: string;
|
|
3007
|
+
transaction: import("./types").NFTSendHistoryItem;
|
|
3008
|
+
}) => void;
|
|
3009
|
+
UPDATE_HISTORY: (payload: {
|
|
3010
|
+
network: import("./types").Network;
|
|
3011
|
+
walletId: string;
|
|
3012
|
+
id: string;
|
|
3013
|
+
updates: Partial<import("./types").HistoryItem>;
|
|
3014
|
+
}) => void;
|
|
3015
|
+
REMOVE_ORDER: (payload: {
|
|
3016
|
+
network: import("./types").Network;
|
|
3017
|
+
walletId: string;
|
|
3018
|
+
id: string;
|
|
3019
|
+
}) => void;
|
|
3020
|
+
UPDATE_BALANCE: (payload: {
|
|
3021
|
+
network: import("./types").Network;
|
|
3022
|
+
accountId: string;
|
|
3023
|
+
walletId: string;
|
|
3024
|
+
asset: string;
|
|
3025
|
+
balance: string;
|
|
3026
|
+
}) => void;
|
|
3027
|
+
UPDATE_MULTIPLE_BALANCES: (payload: {
|
|
3028
|
+
network: import("./types").Network;
|
|
3029
|
+
accountId: string;
|
|
3030
|
+
walletId: string;
|
|
3031
|
+
assets: string[];
|
|
3032
|
+
balances: import("@yaswap/types").Nullable<string>[];
|
|
3033
|
+
}) => void;
|
|
3034
|
+
UPDATE_FEES: (payload: {
|
|
3035
|
+
network: import("./types").Network;
|
|
3036
|
+
walletId: string;
|
|
3037
|
+
asset: string;
|
|
3038
|
+
fees: import("@yaswap/types").FeeDetails;
|
|
3039
|
+
}) => void;
|
|
3040
|
+
UPDATE_FIAT_RATES: (payload: {
|
|
3041
|
+
fiatRates: import("./types").FiatRates;
|
|
3042
|
+
}) => void;
|
|
3043
|
+
UPDATE_CURRENCIES_INFO: (payload: {
|
|
3044
|
+
currenciesInfo: import("./types").CurrenciesInfo;
|
|
3045
|
+
}) => void;
|
|
3046
|
+
UPDATE_MARKET_DATA: (payload: {
|
|
3047
|
+
network: import("./types").Network;
|
|
3048
|
+
marketData: import("./types").MarketData[];
|
|
3049
|
+
}) => void;
|
|
3050
|
+
SET_ETHEREUM_INJECTION_CHAIN: (payload: {
|
|
3051
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
3052
|
+
}) => void;
|
|
3053
|
+
ENABLE_ETHEREUM_INJECTION: () => void;
|
|
3054
|
+
DISABLE_ETHEREUM_INJECTION: () => void;
|
|
3055
|
+
ENABLE_ASSETS: (payload: {
|
|
3056
|
+
network: import("./types").Network;
|
|
3057
|
+
walletId: string;
|
|
3058
|
+
assets: string[];
|
|
3059
|
+
}) => void;
|
|
3060
|
+
DISABLE_ASSETS: (payload: {
|
|
3061
|
+
network: import("./types").Network;
|
|
3062
|
+
walletId: string;
|
|
3063
|
+
assets: string[];
|
|
3064
|
+
}) => void;
|
|
3065
|
+
DISABLE_ACCOUNT_ASSETS: (payload: {
|
|
3066
|
+
network: import("./types").Network;
|
|
3067
|
+
walletId: string;
|
|
3068
|
+
accountId: string;
|
|
3069
|
+
assets: string[];
|
|
3070
|
+
}) => void;
|
|
3071
|
+
ENABLE_ACCOUNT_ASSETS: (payload: {
|
|
3072
|
+
network: import("./types").Network;
|
|
3073
|
+
walletId: string;
|
|
3074
|
+
accountId: string;
|
|
3075
|
+
assets: string[];
|
|
3076
|
+
}) => void;
|
|
3077
|
+
ADD_CUSTOM_TOKEN: (payload: {
|
|
3078
|
+
network: import("./types").Network;
|
|
3079
|
+
walletId: string;
|
|
3080
|
+
customToken: import("./types").CustomToken;
|
|
3081
|
+
}) => void;
|
|
3082
|
+
REMOVE_CUSTOM_TOKEN: (payload: {
|
|
3083
|
+
network: import("./types").Network;
|
|
3084
|
+
walletId: string;
|
|
3085
|
+
symbol: string;
|
|
3086
|
+
}) => void;
|
|
3087
|
+
CREATE_ACCOUNT: (payload: {
|
|
3088
|
+
network: import("./types").Network;
|
|
3089
|
+
walletId: string;
|
|
3090
|
+
account: import("./types").Account;
|
|
3091
|
+
}) => void;
|
|
3092
|
+
UPDATE_ACCOUNT: (payload: {
|
|
3093
|
+
network: import("./types").Network;
|
|
3094
|
+
walletId: string;
|
|
3095
|
+
account: import("./types").Account;
|
|
3096
|
+
}) => void;
|
|
3097
|
+
REMOVE_ACCOUNT: (payload: {
|
|
3098
|
+
walletId: string;
|
|
3099
|
+
id: string;
|
|
3100
|
+
network: import("./types").Network;
|
|
3101
|
+
}) => void;
|
|
3102
|
+
UPDATE_ACCOUNT_ADDRESSES: (payload: {
|
|
3103
|
+
network: import("./types").Network;
|
|
3104
|
+
accountId: string;
|
|
3105
|
+
walletId: string;
|
|
3106
|
+
addresses: string[];
|
|
3107
|
+
}) => void;
|
|
3108
|
+
SET_USB_BRIDGE_WINDOWS_ID: (payload: {
|
|
3109
|
+
id: number;
|
|
3110
|
+
}) => void;
|
|
3111
|
+
SET_EXTERNAL_CONNECTION_DEFAULT: (payload: {
|
|
3112
|
+
origin: string;
|
|
3113
|
+
activeWalletId: string;
|
|
3114
|
+
accountId: string;
|
|
3115
|
+
}) => void;
|
|
3116
|
+
ADD_EXTERNAL_CONNECTION: (payload: {
|
|
3117
|
+
origin: string;
|
|
3118
|
+
activeWalletId: string;
|
|
3119
|
+
accountId: string;
|
|
3120
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
3121
|
+
}) => void;
|
|
3122
|
+
REMOVE_EXTERNAL_CONNECTIONS: (payload: {
|
|
3123
|
+
activeWalletId: string;
|
|
3124
|
+
}) => void;
|
|
3125
|
+
SET_ANALYTICS_PREFERENCES: (payload: Partial<import("./types").AnalyticsState>) => void;
|
|
3126
|
+
UPDATE_NFTS: (payload: {
|
|
3127
|
+
network: import("./types").Network;
|
|
3128
|
+
walletId: string;
|
|
3129
|
+
accountId: string;
|
|
3130
|
+
nfts: import("./types").NFT[];
|
|
3131
|
+
}) => void;
|
|
3132
|
+
NFT_TOGGLE_STARRED: (payload: {
|
|
3133
|
+
network: import("./types").Network;
|
|
3134
|
+
walletId: string;
|
|
3135
|
+
accountId: string;
|
|
3136
|
+
nft: import("./types").NFT;
|
|
3137
|
+
}) => void;
|
|
3138
|
+
TOGGLE_EXPERIMENT: (payload: {
|
|
3139
|
+
name: import("./types").ExperimentType;
|
|
3140
|
+
}) => void;
|
|
3141
|
+
SET_WHATS_NEW_MODAL_VERSION: (payload: {
|
|
3142
|
+
version: string;
|
|
3143
|
+
}) => void;
|
|
3144
|
+
TOGGLE_BLOCKCHAIN: (payload: {
|
|
3145
|
+
network: import("./types").Network;
|
|
3146
|
+
walletId: string;
|
|
3147
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
3148
|
+
enable: boolean;
|
|
3149
|
+
}) => void;
|
|
3150
|
+
TOGGLE_ACCOUNT: (payload: {
|
|
3151
|
+
network: import("./types").Network;
|
|
3152
|
+
walletId: string;
|
|
3153
|
+
accountId: string;
|
|
3154
|
+
enable: boolean;
|
|
3155
|
+
}) => void;
|
|
3156
|
+
LOG_ERROR: (payload: import("@yaswap/error-parser").LiqualityErrorJSON) => void;
|
|
3157
|
+
CLEAR_ERROR_LOG: () => void;
|
|
3158
|
+
SET_CUSTOM_CHAIN_SETTINGS: (payload: {
|
|
3159
|
+
network: import("./types").Network;
|
|
3160
|
+
walletId: string;
|
|
3161
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
3162
|
+
chanifyNetwork: import("@yaswap/types").Network;
|
|
3163
|
+
}) => void;
|
|
3164
|
+
REMOVE_CUSTOM_CHAIN_SETTINGS: (payload: {
|
|
3165
|
+
network: import("./types").Network;
|
|
3166
|
+
walletId: string;
|
|
3167
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
3168
|
+
}) => void;
|
|
3169
|
+
};
|
|
3170
|
+
rootDispatch: {
|
|
3171
|
+
readonly acceptTermsAndConditions: (payload: {
|
|
3172
|
+
analyticsAccepted: boolean;
|
|
3173
|
+
}) => Promise<void>;
|
|
3174
|
+
readonly createAccount: (payload: {
|
|
3175
|
+
walletId: string;
|
|
3176
|
+
network: import("./types").Network;
|
|
3177
|
+
account: import("./types").Account;
|
|
3178
|
+
}) => Promise<import("./types").Account>;
|
|
3179
|
+
readonly removeAccount: (payload: {
|
|
3180
|
+
network: import("./types").Network;
|
|
3181
|
+
walletId: string;
|
|
3182
|
+
id: string;
|
|
3183
|
+
}) => Promise<string>;
|
|
3184
|
+
readonly toggleAccount: (payload: {
|
|
3185
|
+
network: import("./types").Network;
|
|
3186
|
+
walletId: string;
|
|
3187
|
+
accounts: string[];
|
|
3188
|
+
enable: boolean;
|
|
3189
|
+
}) => Promise<void>;
|
|
3190
|
+
readonly toggleBlockchain: (payload: {
|
|
3191
|
+
network: import("./types").Network;
|
|
3192
|
+
walletId: string;
|
|
3193
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
3194
|
+
enable: boolean;
|
|
3195
|
+
}) => Promise<void>;
|
|
3196
|
+
readonly updateAccount: (payload: {
|
|
3197
|
+
network: import("./types").Network;
|
|
3198
|
+
walletId: string;
|
|
3199
|
+
account: import("./types").Account;
|
|
3200
|
+
}) => Promise<{
|
|
3201
|
+
updatedAt: number;
|
|
3202
|
+
id: string;
|
|
3203
|
+
walletId: string;
|
|
3204
|
+
createdAt: number;
|
|
3205
|
+
enabled: boolean;
|
|
3206
|
+
derivationPath: string;
|
|
3207
|
+
chainCode?: string | undefined;
|
|
3208
|
+
publicKey?: string | undefined;
|
|
3209
|
+
nfts?: import("./types").NFT[] | undefined;
|
|
3210
|
+
type: import("./types").AccountType;
|
|
3211
|
+
name: string;
|
|
3212
|
+
alias?: string | undefined;
|
|
3213
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
3214
|
+
index: number;
|
|
3215
|
+
addresses: string[];
|
|
3216
|
+
assets: string[];
|
|
3217
|
+
balances: Record<string, string>;
|
|
3218
|
+
color: string;
|
|
3219
|
+
}>;
|
|
3220
|
+
readonly addCustomToken: (payload: {
|
|
3221
|
+
network: import("./types").Network;
|
|
3222
|
+
walletId: string;
|
|
3223
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
3224
|
+
symbol: string;
|
|
3225
|
+
name: string;
|
|
3226
|
+
contractAddress: string;
|
|
3227
|
+
decimals: number;
|
|
3228
|
+
}) => Promise<void>;
|
|
3229
|
+
readonly addExternalConnection: (payload: {
|
|
3230
|
+
origin: string;
|
|
3231
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
3232
|
+
accountId: string;
|
|
3233
|
+
setDefaultEthereum: boolean;
|
|
3234
|
+
}) => Promise<void>;
|
|
3235
|
+
readonly initializeAnalyticsPreferences: (payload: {
|
|
3236
|
+
accepted: boolean;
|
|
3237
|
+
}) => Promise<void>;
|
|
3238
|
+
readonly updateAnalyticsPreferences: (payload: import("./types").AnalyticsState) => Promise<void>;
|
|
3239
|
+
readonly setAnalyticsResponse: (payload: {
|
|
3240
|
+
accepted: boolean;
|
|
3241
|
+
}) => Promise<void>;
|
|
3242
|
+
readonly initializeAnalytics: () => Promise<boolean>;
|
|
3243
|
+
readonly trackAnalytics: (payload: {
|
|
3244
|
+
event: string;
|
|
3245
|
+
properties: actions.AmplitudeProperties;
|
|
3246
|
+
}) => Promise<number> | Promise<undefined>;
|
|
3247
|
+
readonly changeActiveNetwork: (payload: {
|
|
3248
|
+
network: import("./types").Network;
|
|
3249
|
+
}) => Promise<void>;
|
|
3250
|
+
readonly changeActiveWalletId: (payload: {
|
|
3251
|
+
walletId: string;
|
|
3252
|
+
}) => Promise<void>;
|
|
3253
|
+
readonly changePassword: (payload: {
|
|
3254
|
+
key: string;
|
|
3255
|
+
}) => Promise<void>;
|
|
3256
|
+
readonly checkPendingActions: (payload: {
|
|
3257
|
+
walletId: string;
|
|
3258
|
+
}) => Promise<void>;
|
|
3259
|
+
readonly createWallet: (payload: {
|
|
3260
|
+
key: string;
|
|
3261
|
+
mnemonic: string;
|
|
3262
|
+
imported?: boolean | undefined;
|
|
3263
|
+
}) => Promise<import("./types").Wallet>;
|
|
3264
|
+
readonly disableAssets: (payload: {
|
|
3265
|
+
network: import("./types").Network;
|
|
3266
|
+
walletId: string;
|
|
3267
|
+
assets: string[];
|
|
3268
|
+
}) => Promise<void>;
|
|
3269
|
+
readonly disableEthereumInjection: () => Promise<void>;
|
|
3270
|
+
readonly enableAssets: (payload: {
|
|
3271
|
+
network: import("./types").Network;
|
|
3272
|
+
walletId: string;
|
|
3273
|
+
assets: string[];
|
|
3274
|
+
}) => Promise<void>;
|
|
3275
|
+
readonly enableEthereumInjection: () => Promise<void>;
|
|
3276
|
+
readonly exportPrivateKey: (payload: {
|
|
3277
|
+
network: import("./types").Network;
|
|
3278
|
+
walletId: string;
|
|
3279
|
+
accountId: string;
|
|
3280
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
3281
|
+
}) => Promise<string>;
|
|
3282
|
+
readonly fetchTokenDetails: (payload: actions.FetchTokenDetailsRequest) => Promise<import("@yaswap/types").Nullable<import("@yaswap/types").TokenDetails>>;
|
|
3283
|
+
readonly forgetDappConnections: () => Promise<void>;
|
|
3284
|
+
readonly getLockForAsset: (payload: {
|
|
3285
|
+
network: import("./types").Network;
|
|
3286
|
+
walletId: string;
|
|
3287
|
+
asset: string;
|
|
3288
|
+
item: import("./types").BaseHistoryItem;
|
|
3289
|
+
}) => Promise<string>;
|
|
3290
|
+
readonly getQuotes: (payload: import("../swaps/types").GetQuotesRequest) => Promise<actions.GetQuotesResult>;
|
|
3291
|
+
readonly getSlowQuotes: (payload: {
|
|
3292
|
+
requestId: string;
|
|
3293
|
+
}) => Promise<import("../swaps/types").SwapQuote[]>;
|
|
3294
|
+
readonly getUnusedAddresses: (payload: {
|
|
3295
|
+
network: import("./types").Network;
|
|
3296
|
+
walletId: string;
|
|
3297
|
+
assets: string[];
|
|
3298
|
+
accountId: string;
|
|
3299
|
+
}) => Promise<string[]>;
|
|
3300
|
+
readonly getLedgerAccounts: (payload: {
|
|
3301
|
+
network: import("./types").Network;
|
|
3302
|
+
walletId: string;
|
|
3303
|
+
asset: string;
|
|
3304
|
+
accountType: import("./types").AccountType;
|
|
3305
|
+
startingIndex: number;
|
|
3306
|
+
numAccounts: number;
|
|
3307
|
+
}) => Promise<{
|
|
3308
|
+
account: string;
|
|
3309
|
+
index: number;
|
|
3310
|
+
exists: boolean;
|
|
3311
|
+
}[]>;
|
|
3312
|
+
readonly initializeAddresses: (payload: {
|
|
3313
|
+
network: import("./types").Network;
|
|
3314
|
+
walletId: string;
|
|
3315
|
+
}) => Promise<void>;
|
|
3316
|
+
readonly lockWallet: () => Promise<void>;
|
|
3317
|
+
readonly newSwap: (payload: {
|
|
3318
|
+
network: import("./types").Network;
|
|
3319
|
+
walletId: string;
|
|
3320
|
+
quote: import("../swaps/types").SwapQuote;
|
|
3321
|
+
fee: number;
|
|
3322
|
+
claimFee: number;
|
|
3323
|
+
feeLabel: import("./types").FeeLabel;
|
|
3324
|
+
claimFeeLabel: import("./types").FeeLabel;
|
|
3325
|
+
}) => Promise<import("./types").SwapHistoryItem>;
|
|
3326
|
+
readonly performNextAction: (payload: {
|
|
3327
|
+
network: import("./types").Network;
|
|
3328
|
+
walletId: string;
|
|
3329
|
+
id: string;
|
|
3330
|
+
}) => Promise<Partial<import("./types").HistoryItem> | undefined>;
|
|
3331
|
+
readonly proxyMutation: (payload: {
|
|
3332
|
+
type: string;
|
|
3333
|
+
payload: any;
|
|
3334
|
+
}) => Promise<void>;
|
|
3335
|
+
readonly removeCustomToken: (payload: {
|
|
3336
|
+
network: import("./types").Network;
|
|
3337
|
+
walletId: string;
|
|
3338
|
+
symbol: string;
|
|
3339
|
+
}) => Promise<void>;
|
|
3340
|
+
readonly retrySwap: (payload: {
|
|
3341
|
+
swap: import("./types").SwapHistoryItem;
|
|
3342
|
+
}) => Promise<Partial<import("./types").SwapHistoryItem> | undefined>;
|
|
3343
|
+
readonly sendNFTTransaction: (payload: import("./types").NFTSendTransactionParams) => Promise<import("@yaswap/types").Transaction<any>>;
|
|
3344
|
+
readonly sendTransaction: (payload: {
|
|
3345
|
+
network: import("./types").Network;
|
|
3346
|
+
walletId: string;
|
|
3347
|
+
accountId: string;
|
|
3348
|
+
asset: string;
|
|
3349
|
+
to: string;
|
|
3350
|
+
amount: import("bignumber.js").BigNumber;
|
|
3351
|
+
data: string;
|
|
3352
|
+
fee: number;
|
|
3353
|
+
feeAsset: string;
|
|
3354
|
+
gas: number;
|
|
3355
|
+
feeLabel: import("./types").FeeLabel;
|
|
3356
|
+
fiatRate: number;
|
|
3357
|
+
}) => Promise<import("./types").SendHistoryItem>;
|
|
3358
|
+
readonly setEthereumInjectionChain: (payload: {
|
|
3359
|
+
chain: import("@yaswap/cryptoassets").ChainId;
|
|
3360
|
+
}) => Promise<void>;
|
|
3361
|
+
readonly setWhatsNewModalVersion: (payload: {
|
|
3362
|
+
version: string;
|
|
3363
|
+
}) => Promise<void>;
|
|
3364
|
+
readonly showNotification: (payload: import("../types").Notification) => Promise<void>;
|
|
3365
|
+
readonly toggleExperiment: (payload: {
|
|
3366
|
+
name: import("./types").ExperimentType;
|
|
3367
|
+
}) => Promise<void>;
|
|
3368
|
+
readonly toggleNFTStarred: (payload: {
|
|
3369
|
+
network: import("./types").Network;
|
|
3370
|
+
walletId: string;
|
|
3371
|
+
accountId: string;
|
|
3372
|
+
nft: import("./types").NFT;
|
|
3373
|
+
}) => Promise<void>;
|
|
3374
|
+
readonly unlockWallet: (payload: {
|
|
3375
|
+
key: string;
|
|
3376
|
+
}) => Promise<void>;
|
|
3377
|
+
readonly updateAccountBalance: (payload: {
|
|
3378
|
+
network: import("./types").Network;
|
|
3379
|
+
walletId: string;
|
|
3380
|
+
accountId: string;
|
|
3381
|
+
}) => Promise<void>;
|
|
3382
|
+
readonly updateBalances: (payload: {
|
|
3383
|
+
walletId: string;
|
|
3384
|
+
network: import("./types").Network;
|
|
3385
|
+
accountIds?: string[] | undefined;
|
|
3386
|
+
}) => Promise<void>;
|
|
3387
|
+
readonly updateCurrenciesInfo: (payload: {
|
|
3388
|
+
assets: string[];
|
|
3389
|
+
}) => Promise<import("./types").CurrenciesInfo>;
|
|
3390
|
+
readonly updateFees: (payload: {
|
|
3391
|
+
asset: string;
|
|
3392
|
+
}) => Promise<import("@yaswap/types").FeeDetails>;
|
|
3393
|
+
readonly updateFiatRates: (payload: {
|
|
3394
|
+
assets: string[];
|
|
3395
|
+
}) => Promise<import("./types").FiatRates>;
|
|
3396
|
+
readonly updateMarketData: (payload: {
|
|
3397
|
+
network: import("./types").Network;
|
|
3398
|
+
}) => Promise<{
|
|
3399
|
+
network: import("./types").Network;
|
|
3400
|
+
marketData: import("./types").MarketData[];
|
|
3401
|
+
}>;
|
|
3402
|
+
readonly updateNFTs: (payload: {
|
|
3403
|
+
walletId: string;
|
|
3404
|
+
network: import("./types").Network;
|
|
3405
|
+
accountIds: string[];
|
|
3406
|
+
}) => Promise<import("./types").NFT[][]>;
|
|
3407
|
+
readonly updateTransactionFee: (payload: {
|
|
3408
|
+
network: import("./types").Network;
|
|
3409
|
+
walletId: string;
|
|
3410
|
+
asset: string;
|
|
3411
|
+
id: string;
|
|
3412
|
+
hash: string;
|
|
3413
|
+
newFee: number;
|
|
3414
|
+
}) => Promise<import("@yaswap/types").Transaction<any>>;
|
|
3415
|
+
readonly logError: (payload: import("@yaswap/error-parser").LiqualityErrorJSON) => Promise<void>;
|
|
3416
|
+
readonly clearErrorLog: () => Promise<void>;
|
|
3417
|
+
readonly saveCustomChainSettings: (payload: {
|
|
3418
|
+
network: import("./types").Network;
|
|
3419
|
+
walletId: string;
|
|
3420
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
3421
|
+
chanifyNetwork: import("@yaswap/types").Network;
|
|
3422
|
+
}) => Promise<void>;
|
|
3423
|
+
readonly removeCustomChainSettings: (payload: {
|
|
3424
|
+
network: import("./types").Network;
|
|
3425
|
+
walletId: string;
|
|
3426
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
3427
|
+
}) => Promise<void>;
|
|
3428
|
+
};
|
|
3429
|
+
state: import("direct-vuex/types/direct-types").ShowContentDepth1<import("direct-vuex/types/direct-types").DirectState<O>>;
|
|
3430
|
+
getters: import("direct-vuex/types/direct-types").ShowContentDepth1<import("direct-vuex/types/direct-types").DirectGetters<O>>;
|
|
3431
|
+
commit: import("direct-vuex/types/direct-types").ShowContentDepth1<import("direct-vuex/types/direct-types").DirectMutations<O>>;
|
|
3432
|
+
dispatch: import("direct-vuex/types/direct-types").ShowContentDepth1<import("direct-vuex/types/direct-types").DirectActions<O>>;
|
|
3433
|
+
}, moduleGetterContext: <O extends import("direct-vuex").ModuleOptions<any>>(args: [any, any, any, any], module: O) => {
|
|
3434
|
+
rootState: {
|
|
3435
|
+
readonly version: number;
|
|
3436
|
+
readonly key: string;
|
|
3437
|
+
readonly wallets: import("./types").Wallet[];
|
|
3438
|
+
readonly unlockedAt: number;
|
|
3439
|
+
readonly brokerReady: boolean;
|
|
3440
|
+
readonly encryptedWallets: string;
|
|
3441
|
+
readonly enabledAssets: Partial<Record<import("./types").Network, Record<string, string[]>>>;
|
|
3442
|
+
readonly customTokens: Partial<Record<import("./types").Network, Record<string, import("./types").CustomToken[]>>>;
|
|
3443
|
+
readonly accounts: Partial<Record<string, Record<import("./types").Network, import("./types").Account[]>>>;
|
|
3444
|
+
readonly fiatRates: import("./types").FiatRates;
|
|
3445
|
+
readonly currenciesInfo: import("./types").CurrenciesInfo;
|
|
3446
|
+
readonly fees: Partial<Record<import("./types").Network, Record<string, Record<string, import("@yaswap/types").FeeDetails>>>>;
|
|
3447
|
+
readonly history: Partial<Record<import("./types").Network, Record<string, import("./types").HistoryItem[]>>>;
|
|
3448
|
+
readonly marketData: Partial<Record<import("./types").Network, import("./types").MarketData[]>>;
|
|
3449
|
+
readonly activeNetwork: import("./types").Network;
|
|
3450
|
+
readonly activeWalletId: string;
|
|
3451
|
+
readonly keyUpdatedAt: number;
|
|
3452
|
+
readonly keySalt: string;
|
|
3453
|
+
readonly termsAcceptedAt: number;
|
|
3454
|
+
readonly setupAt: number;
|
|
3455
|
+
readonly injectEthereum: boolean;
|
|
3456
|
+
readonly injectEthereumChain: import("@yaswap/cryptoassets").ChainId;
|
|
3457
|
+
readonly usbBridgeWindowsId: number;
|
|
3458
|
+
readonly externalConnections: import("./types").ExternalConnections;
|
|
3459
|
+
readonly rskLegacyDerivation: boolean;
|
|
3460
|
+
readonly analytics: import("./types").AnalyticsState;
|
|
3461
|
+
readonly experiments: Partial<Record<import("./types").ExperimentType, boolean>>;
|
|
3462
|
+
readonly whatsNewModalVersion: string;
|
|
3463
|
+
readonly enabledChains: Partial<Record<string, Record<import("./types").Network, import("@yaswap/cryptoassets").ChainId[]>>>;
|
|
3464
|
+
readonly errorLog: import("@yaswap/error-parser").LiqualityErrorJSON[];
|
|
3465
|
+
readonly customChainSeetings: Partial<Record<import("./types").Network, Record<string, Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>>>>;
|
|
3466
|
+
};
|
|
3467
|
+
rootGetters: {
|
|
3468
|
+
readonly client: ({ network, walletId, chainId, accountId, useCache, accountType, accountIndex, }: {
|
|
3469
|
+
network: import("./types").Network;
|
|
3470
|
+
walletId: string;
|
|
3471
|
+
chainId: import("@yaswap/cryptoassets").ChainId;
|
|
3472
|
+
accountId?: string | undefined;
|
|
3473
|
+
useCache?: boolean | undefined;
|
|
3474
|
+
accountType?: import("./types").AccountType | undefined;
|
|
3475
|
+
accountIndex?: number | undefined;
|
|
3476
|
+
}) => import("@yaswap/client").Client<import("@yaswap/client").Chain<any, import("@yaswap/types").Network>, import("@yaswap/client").Wallet<any, any>, import("@yaswap/client").Swap<any, any, import("@yaswap/client").Wallet<any, any>>, import("@yaswap/client").Nft<any, any>>;
|
|
3477
|
+
readonly historyItemById: (network: import("./types").Network, walletId: string, id: string) => import("./types").HistoryItem | undefined;
|
|
3478
|
+
readonly cryptoassets: Readonly<{
|
|
3479
|
+
[asset: string]: import("@yaswap/cryptoassets").IAsset;
|
|
3480
|
+
}>;
|
|
3481
|
+
readonly networkAccounts: readonly import("./types").Account[];
|
|
3482
|
+
readonly networkAssets: readonly string[];
|
|
3483
|
+
readonly allNetworkAssets: readonly string[];
|
|
3484
|
+
readonly activity: readonly import("./types").HistoryItem[];
|
|
3485
|
+
readonly totalFiatBalance: Readonly<import("bignumber.js").BigNumber>;
|
|
3486
|
+
readonly accountItem: (accountId: string) => import("./types").Account | undefined;
|
|
3487
|
+
readonly suggestedFeePrices: (asset: string) => import("@yaswap/types").FeeDetails | undefined;
|
|
3488
|
+
readonly accountsWithBalance: readonly import("./types").Account[];
|
|
3489
|
+
readonly accountsData: readonly import("./types").Account[];
|
|
3490
|
+
readonly accountFiatBalance: (walletId: string, network: import("./types").Network, accountId: string) => import("bignumber.js").BigNumber;
|
|
3491
|
+
readonly assetFiatBalance: (asset: string, balance: import("bignumber.js").BigNumber) => import("bignumber.js").BigNumber | null;
|
|
3492
|
+
readonly assetMarketCap: (asset: string) => import("@yaswap/types").Nullable<import("bignumber.js").BigNumber>;
|
|
3493
|
+
readonly chainAssets: Readonly<{
|
|
3494
|
+
yacoin?: string[] | undefined;
|
|
3495
|
+
bitcoin?: string[] | undefined;
|
|
3496
|
+
ethereum?: string[] | undefined;
|
|
3497
|
+
rsk?: string[] | undefined;
|
|
3498
|
+
bsc?: string[] | undefined;
|
|
3499
|
+
near?: string[] | undefined;
|
|
3500
|
+
polygon?: string[] | undefined;
|
|
3501
|
+
arbitrum?: string[] | undefined;
|
|
3502
|
+
solana?: string[] | undefined;
|
|
3503
|
+
fuse?: string[] | undefined;
|
|
3504
|
+
terra?: string[] | undefined;
|
|
3505
|
+
avalanche?: string[] | undefined;
|
|
3506
|
+
optimism?: string[] | undefined;
|
|
3507
|
+
}>;
|
|
3508
|
+
readonly analyticsEnabled: Readonly<boolean>;
|
|
3509
|
+
readonly allNftCollections: Readonly<import("./types").NFTCollections<import("./types").NFTWithAccount>>;
|
|
3510
|
+
readonly accountNftCollections: (accountId: string) => import("./types").NFTCollections<import("./types").NFT>;
|
|
3511
|
+
readonly mergedChainSettings: Readonly<Record<import("@yaswap/cryptoassets").ChainId, import("../types").ChainifyNetwork>>;
|
|
3512
|
+
readonly chainSettings: readonly {
|
|
3513
|
+
chain: string;
|
|
3514
|
+
asset: string;
|
|
3515
|
+
network: import("../types").ChainifyNetwork;
|
|
3516
|
+
}[];
|
|
3517
|
+
};
|
|
3518
|
+
state: import("direct-vuex/types/direct-types").ShowContentDepth1<import("direct-vuex/types/direct-types").DirectState<O>>;
|
|
3519
|
+
getters: import("direct-vuex/types/direct-types").ShowContentDepth1<import("direct-vuex/types/direct-types").DirectGetters<O>>;
|
|
3520
|
+
};
|
|
3521
|
+
export default store;
|
|
3522
|
+
export declare type OriginalStore = typeof store.original;
|
|
3523
|
+
export declare type ActionContext = _ActionContext<RootState, RootState>;
|
|
3524
|
+
export { rootActionContext, rootGetterContext, moduleActionContext, moduleGetterContext };
|