@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,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.moduleGetterContext = exports.moduleActionContext = exports.rootGetterContext = exports.rootActionContext = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const direct_vuex_1 = require("direct-vuex");
|
|
6
|
+
const vue_1 = tslib_1.__importDefault(require("vue"));
|
|
7
|
+
const vuex_1 = tslib_1.__importDefault(require("vuex"));
|
|
8
|
+
const actions = tslib_1.__importStar(require("./actions"));
|
|
9
|
+
const getters_1 = tslib_1.__importDefault(require("./getters"));
|
|
10
|
+
const mutations_1 = tslib_1.__importDefault(require("./mutations"));
|
|
11
|
+
const state_1 = tslib_1.__importDefault(require("./state"));
|
|
12
|
+
vue_1.default.use(vuex_1.default);
|
|
13
|
+
const { store, rootActionContext, rootGetterContext, moduleActionContext, moduleGetterContext } = (0, direct_vuex_1.createDirectStore)({
|
|
14
|
+
state: state_1.default,
|
|
15
|
+
getters: getters_1.default,
|
|
16
|
+
actions,
|
|
17
|
+
mutations: mutations_1.default,
|
|
18
|
+
});
|
|
19
|
+
exports.rootActionContext = rootActionContext;
|
|
20
|
+
exports.rootGetterContext = rootGetterContext;
|
|
21
|
+
exports.moduleActionContext = moduleActionContext;
|
|
22
|
+
exports.moduleGetterContext = moduleGetterContext;
|
|
23
|
+
exports.default = store;
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":";;;;AAAA,6CAAgD;AAChD,sDAAsB;AACtB,wDAA6D;AAC7D,2DAAqC;AACrC,gEAAgC;AAChC,oEAAoC;AACpC,4DAA4B;AAG5B,aAAG,CAAC,GAAG,CAAC,cAAI,CAAC,CAAC;AAEd,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,GAAG,IAAA,+BAAiB,EAAC;IAClH,KAAK,EAAL,eAAK;IACL,OAAO,EAAP,iBAAO;IACP,OAAO;IACP,SAAS,EAAT,mBAAS;CACV,CAAC,CAAC;AAKM,8CAAiB;AAAE,8CAAiB;AAAE,kDAAmB;AAAE,kDAAmB;AAHvF,kBAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.analitycsSettings = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const uuid_1 = require("uuid");
|
|
6
|
+
exports.analitycsSettings = {
|
|
7
|
+
version: 10,
|
|
8
|
+
migrate: (state) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
9
|
+
const userId = (0, uuid_1.v4)();
|
|
10
|
+
return Object.assign(Object.assign({}, state), { analytics: {
|
|
11
|
+
userId,
|
|
12
|
+
acceptedDate: null,
|
|
13
|
+
askedDate: null,
|
|
14
|
+
askedTimes: 0,
|
|
15
|
+
notAskAgain: false,
|
|
16
|
+
} });
|
|
17
|
+
}),
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=10_analytics_settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"10_analytics_settings.js","sourceRoot":"","sources":["../../../../src/store/migrations/10_analytics_settings.ts"],"names":[],"mappings":";;;;AAAA,+BAAoC;AAEvB,QAAA,iBAAiB,GAAG;IAE/B,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,CAAO,KAAU,EAAE,EAAE;QAC5B,MAAM,MAAM,GAAG,IAAA,SAAM,GAAE,CAAC;QACxB,uCACK,KAAK,KACR,SAAS,EAAE;gBACT,MAAM;gBACN,YAAY,EAAE,IAAI;gBAClB,SAAS,EAAE,IAAI;gBACf,UAAU,EAAE,CAAC;gBACb,WAAW,EAAE,KAAK;aACnB,IACD;IACJ,CAAC,CAAA;CACF,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rskLegacyDerivationPathFix = exports.rskLegacyDerivationPath = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
const rskLegacyDerivationMigration = (state) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
7
|
+
const hasAccounts = Object.keys(state.accounts || {}).length > 0;
|
|
8
|
+
if (!hasAccounts) {
|
|
9
|
+
return Object.assign({}, state);
|
|
10
|
+
}
|
|
11
|
+
const rskLegacyDerivation = yield (0, utils_1.shouldApplyRskLegacyDerivation)(state.accounts);
|
|
12
|
+
return Object.assign(Object.assign({}, state), { rskLegacyDerivation });
|
|
13
|
+
});
|
|
14
|
+
exports.rskLegacyDerivationPath = {
|
|
15
|
+
version: 11,
|
|
16
|
+
migrate: rskLegacyDerivationMigration,
|
|
17
|
+
};
|
|
18
|
+
exports.rskLegacyDerivationPathFix = {
|
|
19
|
+
version: 12,
|
|
20
|
+
migrate: rskLegacyDerivationMigration,
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=11_12_rsk_legacy_derivation_path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"11_12_rsk_legacy_derivation_path.js","sourceRoot":"","sources":["../../../../src/store/migrations/11_12_rsk_legacy_derivation_path.ts"],"names":[],"mappings":";;;;AAAA,oCAA0D;AAE1D,MAAM,4BAA4B,GAAG,CAAO,KAAU,EAAE,EAAE;IACxD,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IAEjE,IAAI,CAAC,WAAW,EAAE;QAChB,yBACK,KAAK,EACR;KACH;IAED,MAAM,mBAAmB,GAAG,MAAM,IAAA,sCAA8B,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAEjF,uCACK,KAAK,KACR,mBAAmB,IACnB;AACJ,CAAC,CAAA,CAAC;AAEW,QAAA,uBAAuB,GAAG;IAErC,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,4BAA4B;CACtC,CAAC;AAEW,QAAA,0BAA0B,GAAG;IAExC,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,4BAA4B;CACtC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rskFishToken = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const cryptoassets_1 = require("@yaswap/cryptoassets");
|
|
6
|
+
exports.rskFishToken = {
|
|
7
|
+
version: 13,
|
|
8
|
+
migrate: (state) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
9
|
+
const { activeWalletId, enabledAssets } = state;
|
|
10
|
+
const mainnetAccounts = state.accounts[activeWalletId].mainnet.map((account) => {
|
|
11
|
+
if (account.chain === cryptoassets_1.ChainId.Rootstock) {
|
|
12
|
+
return Object.assign(Object.assign({}, account), { assets: [...account.assets, 'FISH'] });
|
|
13
|
+
}
|
|
14
|
+
return account;
|
|
15
|
+
});
|
|
16
|
+
return Object.assign(Object.assign({}, state), { accounts: Object.assign(Object.assign({}, state.accounts), { [activeWalletId]: Object.assign(Object.assign({}, state.accounts[activeWalletId]), { mainnet: mainnetAccounts }) }), enabledAssets: Object.assign(Object.assign({}, enabledAssets), { mainnet: Object.assign(Object.assign({}, enabledAssets.mainnet), { activeWalletId: [...enabledAssets.mainnet[activeWalletId], 'FISH'] }) }) });
|
|
17
|
+
}),
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=13_rsk_fish_token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"13_rsk_fish_token.js","sourceRoot":"","sources":["../../../../src/store/migrations/13_rsk_fish_token.ts"],"names":[],"mappings":";;;;AAAA,uDAA+C;AAGlC,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,CAAO,KAAU,EAAE,EAAE;QAC5B,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;QAChD,MAAM,eAAe,GAAG,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAgB,EAAE,EAAE;YACtF,IAAI,OAAO,CAAC,KAAK,KAAK,sBAAO,CAAC,SAAS,EAAE;gBACvC,uCACK,OAAO,KACV,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,IACnC;aACH;YACD,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,CAAC;QAEH,uCACK,KAAK,KACR,QAAQ,kCACH,KAAK,CAAC,QAAQ,KACjB,CAAC,cAAc,CAAC,kCACX,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,KACjC,OAAO,EAAE,eAAe,QAG5B,aAAa,kCACR,aAAa,KAChB,OAAO,kCACF,aAAa,CAAC,OAAO,KACxB,cAAc,EAAE,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,UAGtE;IACJ,CAAC,CAAA;CACF,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.accountSetDerivationPath = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const cryptoassets_1 = require("@yaswap/cryptoassets");
|
|
6
|
+
const accounts_1 = require("../../utils/accounts");
|
|
7
|
+
const derivationPath_1 = require("../../utils/derivationPath");
|
|
8
|
+
const networks_1 = require("../../utils/networks");
|
|
9
|
+
const types_1 = require("../types");
|
|
10
|
+
exports.accountSetDerivationPath = {
|
|
11
|
+
version: 14,
|
|
12
|
+
migrate: (state) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
13
|
+
const hasAccounts = Object.keys(state.accounts || {}).length > 0;
|
|
14
|
+
if (!hasAccounts) {
|
|
15
|
+
return Object.assign({}, state);
|
|
16
|
+
}
|
|
17
|
+
const _accounts = {};
|
|
18
|
+
for (const walletId in state.accounts) {
|
|
19
|
+
_accounts[walletId] = { mainnet: [], testnet: [] };
|
|
20
|
+
for (const network of networks_1.Networks) {
|
|
21
|
+
const accounts = state.accounts[walletId][network];
|
|
22
|
+
const updatedAccounts = [];
|
|
23
|
+
for (const account of accounts) {
|
|
24
|
+
const derivationPath = (0, derivationPath_1.getDerivationPath)(account.chain, network, account.index, account.type);
|
|
25
|
+
const updatedAccount = Object.assign(Object.assign({}, account), { alias: '', addresses: [], balances: {}, derivationPath });
|
|
26
|
+
updatedAccounts.push(updatedAccount);
|
|
27
|
+
if (account.chain === cryptoassets_1.ChainId.Rootstock && !account.type.includes('ledger')) {
|
|
28
|
+
const coinType = network === 'mainnet' ? '137' : '37310';
|
|
29
|
+
const chain = (0, cryptoassets_1.getChain)(network, cryptoassets_1.ChainId.Rootstock);
|
|
30
|
+
const _account = (0, accounts_1.accountCreator)({
|
|
31
|
+
walletId,
|
|
32
|
+
network,
|
|
33
|
+
account: {
|
|
34
|
+
name: `Legacy ${chain.name} 1`,
|
|
35
|
+
alias: '',
|
|
36
|
+
chain: cryptoassets_1.ChainId.Rootstock,
|
|
37
|
+
addresses: [],
|
|
38
|
+
assets: [...account.assets],
|
|
39
|
+
balances: {},
|
|
40
|
+
type: types_1.AccountType.Default,
|
|
41
|
+
index: 0,
|
|
42
|
+
derivationPath: `m/44'/${coinType}'/0'/0/0`,
|
|
43
|
+
color: (0, accounts_1.getNextAccountColor)(cryptoassets_1.ChainId.Rootstock, 1),
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
updatedAccounts.push(_account);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
_accounts[walletId][network] = updatedAccounts;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
delete state.rskLegacyDerivation;
|
|
53
|
+
return Object.assign(Object.assign({}, state), { accounts: _accounts });
|
|
54
|
+
}),
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=14_account_set_derivation_path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"14_account_set_derivation_path.js","sourceRoot":"","sources":["../../../../src/store/migrations/14_account_set_derivation_path.ts"],"names":[],"mappings":";;;;AAAA,uDAAyD;AACzD,mDAA2E;AAC3E,+DAA+D;AAC/D,mDAAgD;AAChD,oCAAgD;AAEnC,QAAA,wBAAwB,GAAG;IACtC,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,CAAO,KAAU,EAAE,EAAE;QAC5B,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;QAEjE,IAAI,CAAC,WAAW,EAAE;YAChB,yBACK,KAAK,EACR;SACH;QAED,MAAM,SAAS,GAAQ,EAAE,CAAC;QAE1B,KAAK,MAAM,QAAQ,IAAI,KAAK,CAAC,QAAQ,EAAE;YACrC,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;YAEnD,KAAK,MAAM,OAAO,IAAI,mBAAQ,EAAE;gBAC9B,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC;gBACnD,MAAM,eAAe,GAAc,EAAE,CAAC;gBACtC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;oBAC9B,MAAM,cAAc,GAAG,IAAA,kCAAiB,EAAC,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;oBAC9F,MAAM,cAAc,mCACf,OAAO,KACV,KAAK,EAAE,EAAE,EACT,SAAS,EAAE,EAAE,EACb,QAAQ,EAAE,EAAE,EACZ,cAAc,GACf,CAAC;oBACF,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;oBAErC,IAAI,OAAO,CAAC,KAAK,KAAK,sBAAO,CAAC,SAAS,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;wBAE3E,MAAM,QAAQ,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;wBACzD,MAAM,KAAK,GAAG,IAAA,uBAAQ,EAAC,OAAO,EAAE,sBAAO,CAAC,SAAS,CAAC,CAAC;wBACnD,MAAM,QAAQ,GAAG,IAAA,yBAAc,EAAC;4BAC9B,QAAQ;4BACR,OAAO;4BACP,OAAO,EAAE;gCACP,IAAI,EAAE,UAAU,KAAK,CAAC,IAAI,IAAI;gCAC9B,KAAK,EAAE,EAAE;gCACT,KAAK,EAAE,sBAAO,CAAC,SAAS;gCACxB,SAAS,EAAE,EAAE;gCACb,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;gCAC3B,QAAQ,EAAE,EAAE;gCACZ,IAAI,EAAE,mBAAW,CAAC,OAAO;gCACzB,KAAK,EAAE,CAAC;gCACR,cAAc,EAAE,SAAS,QAAQ,UAAU;gCAC3C,KAAK,EAAE,IAAA,8BAAmB,EAAC,sBAAO,CAAC,SAAS,EAAE,CAAC,CAAC;6BACjD;yBACF,CAAC,CAAC;wBACH,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;qBAChC;iBACF;gBACD,SAAS,CAAC,QAAQ,CAAE,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC;aACjD;SACF;QAED,OAAO,KAAK,CAAC,mBAAmB,CAAC;QAEjC,uCACK,KAAK,KACR,QAAQ,EAAE,SAAS,IACnB;IACJ,CAAC,CAAA;CACF,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.accountsChainsSetEnabled = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const build_config_1 = tslib_1.__importDefault(require("../../build.config"));
|
|
6
|
+
const networks_1 = require("../../utils/networks");
|
|
7
|
+
exports.accountsChainsSetEnabled = {
|
|
8
|
+
version: 15,
|
|
9
|
+
migrate: (state) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
10
|
+
const accounts = {};
|
|
11
|
+
const enabledChains = {};
|
|
12
|
+
for (const walletId in state.accounts) {
|
|
13
|
+
accounts[walletId] = {};
|
|
14
|
+
enabledChains[walletId] = {};
|
|
15
|
+
for (const network of networks_1.Networks) {
|
|
16
|
+
const updatedAccounts = state.accounts[walletId][network].map((a) => (Object.assign(Object.assign({}, a), { enabled: true })));
|
|
17
|
+
accounts[walletId][network] = updatedAccounts;
|
|
18
|
+
enabledChains[walletId][network] = [...build_config_1.default.chains];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return Object.assign(Object.assign({}, state), { enabledChains,
|
|
22
|
+
accounts });
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=15_accounts_chains_set_enabled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"15_accounts_chains_set_enabled.js","sourceRoot":"","sources":["../../../../src/store/migrations/15_accounts_chains_set_enabled.ts"],"names":[],"mappings":";;;;AAAA,8EAA6C;AAC7C,mDAAgD;AAEnC,QAAA,wBAAwB,GAAG;IACtC,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,CAAO,KAAU,EAAE,EAAE;QAC5B,MAAM,QAAQ,GAAQ,EAAE,CAAC;QACzB,MAAM,aAAa,GAAQ,EAAE,CAAC;QAE9B,KAAK,MAAM,QAAQ,IAAI,KAAK,CAAC,QAAQ,EAAE;YACrC,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;YACxB,aAAa,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;YAE7B,KAAK,MAAM,OAAO,IAAI,mBAAQ,EAAE;gBAC9B,MAAM,eAAe,GAAG,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,iCACrE,CAAC,KACJ,OAAO,EAAE,IAAI,IACb,CAAC,CAAC;gBACJ,QAAQ,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC;gBAC9C,aAAa,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,sBAAW,CAAC,MAAM,CAAC,CAAC;aAC5D;SACF;QAED,uCACK,KAAK,KACR,aAAa;YACb,QAAQ,IACR;IACJ,CAAC,CAAA;CACF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.enableTerraChain = void 0;
|
|
4
|
+
const cryptoassets_1 = require("@yaswap/cryptoassets");
|
|
5
|
+
const enable_chain_1 = require("./enable_chain");
|
|
6
|
+
exports.enableTerraChain = {
|
|
7
|
+
version: 16,
|
|
8
|
+
migrate: (state) => (0, enable_chain_1.enableChain)(state, cryptoassets_1.ChainId.Terra),
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=16_enable_terra_chain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"16_enable_terra_chain.js","sourceRoot":"","sources":["../../../../src/store/migrations/16_enable_terra_chain.ts"],"names":[],"mappings":";;;AAAA,uDAA+C;AAC/C,iDAA6C;AAEhC,QAAA,gBAAgB,GAAG;IAC9B,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,IAAA,0BAAW,EAAC,KAAK,EAAE,sBAAO,CAAC,KAAK,CAAC;CAC3D,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeInjectionEnabled = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
exports.removeInjectionEnabled = {
|
|
6
|
+
version: 17,
|
|
7
|
+
migrate: (state) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
8
|
+
delete state.injectionEnabled;
|
|
9
|
+
return Object.assign({}, state);
|
|
10
|
+
}),
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=17_remove_injection_enabled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"17_remove_injection_enabled.js","sourceRoot":"","sources":["../../../../src/store/migrations/17_remove_injection_enabled.ts"],"names":[],"mappings":";;;;AAAa,QAAA,sBAAsB,GAAG;IACpC,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,CAAO,KAAU,EAAE,EAAE;QAC5B,OAAO,KAAK,CAAC,gBAAgB,CAAC;QAC9B,yBACK,KAAK,EACR;IACJ,CAAC,CAAA;CACF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.enableAvalancheChain = void 0;
|
|
4
|
+
const cryptoassets_1 = require("@yaswap/cryptoassets");
|
|
5
|
+
const enable_chain_1 = require("./enable_chain");
|
|
6
|
+
exports.enableAvalancheChain = {
|
|
7
|
+
version: 18,
|
|
8
|
+
migrate: (state) => (0, enable_chain_1.enableChain)(state, cryptoassets_1.ChainId.Avalanche),
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=18_enable_avalanche_chain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"18_enable_avalanche_chain.js","sourceRoot":"","sources":["../../../../src/store/migrations/18_enable_avalanche_chain.ts"],"names":[],"mappings":";;;AAAA,uDAA+C;AAC/C,iDAA6C;AAEhC,QAAA,oBAAoB,GAAG;IAClC,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,IAAA,0BAAW,EAAC,KAAK,EAAE,sBAAO,CAAC,SAAS,CAAC;CAC/D,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeExistingLedgerAccounts = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const types_1 = require("../types");
|
|
6
|
+
exports.removeExistingLedgerAccounts = {
|
|
7
|
+
version: 19,
|
|
8
|
+
migrate: (state) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
9
|
+
const accounts = {};
|
|
10
|
+
for (const walletId in state.accounts) {
|
|
11
|
+
if (!accounts[walletId]) {
|
|
12
|
+
accounts[walletId] = {};
|
|
13
|
+
}
|
|
14
|
+
for (const network in state.accounts[walletId]) {
|
|
15
|
+
accounts[walletId][network] = state.accounts[walletId][network].filter((a) => {
|
|
16
|
+
return [types_1.AccountType.BitcoinLedgerNativeSegwit, types_1.AccountType.BitcoinLedgerLegacy].includes(a.type);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const newState = Object.assign(Object.assign({}, state), { whatsNewModalVersion: state.watsNewModalVersion || '', accounts });
|
|
21
|
+
delete newState.watsNewModalVersion;
|
|
22
|
+
return newState;
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=19_remove_existing_ledger_accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"19_remove_existing_ledger_accounts.js","sourceRoot":"","sources":["../../../../src/store/migrations/19_remove_existing_ledger_accounts.ts"],"names":[],"mappings":";;;;AAAA,oCAAgD;AAGnC,QAAA,4BAA4B,GAAG;IAC1C,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,CAAO,KAAU,EAAE,EAAE;QAC5B,MAAM,QAAQ,GAA2B,EAAE,CAAC;QAE5C,KAAK,MAAM,QAAQ,IAAI,KAAK,CAAC,QAAQ,EAAE;YACrC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;gBACvB,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;aACzB;YACD,KAAK,MAAM,OAAO,IAAI,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;gBAC9C,QAAQ,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAU,EAAE,EAAE;oBACpF,OAAO,CAAC,mBAAW,CAAC,yBAAyB,EAAE,mBAAW,CAAC,mBAAmB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;gBACnG,CAAC,CAAC,CAAC;aACJ;SACF;QAED,MAAM,QAAQ,mCACT,KAAK,KACR,oBAAoB,EAAE,KAAK,CAAC,mBAAmB,IAAI,EAAE,EACrD,QAAQ,GACT,CAAC;QACF,OAAO,QAAQ,CAAC,mBAAmB,CAAC;QACpC,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAA;CACF,CAAC"}
|