@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,108 @@
|
|
|
1
|
+
import { MsgExecuteContract } from '@terra-money/terra.js';
|
|
2
|
+
import { SwapHistoryItem } from '../../store/types';
|
|
3
|
+
export declare const getRateNativeToAsset: (fromAmount: string, asset?: string, pairAddress?: string) => {
|
|
4
|
+
query: {
|
|
5
|
+
simulation: {
|
|
6
|
+
offer_asset: {
|
|
7
|
+
info?: {
|
|
8
|
+
native_token: {
|
|
9
|
+
denom: string;
|
|
10
|
+
};
|
|
11
|
+
token?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
token: {
|
|
14
|
+
contract_addr: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
native_token?: undefined;
|
|
17
|
+
} | undefined;
|
|
18
|
+
amount: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
address: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const getRateERC20ToERC20: (fromAmount: string, firstAsset?: string, secondAsset?: string, pairAddress?: string) => {
|
|
25
|
+
query: {
|
|
26
|
+
simulate_swap_operations: {
|
|
27
|
+
offer_amount: string;
|
|
28
|
+
operations: ({
|
|
29
|
+
astro_swap: {
|
|
30
|
+
ask_asset_info: {
|
|
31
|
+
native_token: {
|
|
32
|
+
denom: string;
|
|
33
|
+
};
|
|
34
|
+
token?: undefined;
|
|
35
|
+
};
|
|
36
|
+
offer_asset_info?: {
|
|
37
|
+
native_token: {
|
|
38
|
+
denom: string;
|
|
39
|
+
};
|
|
40
|
+
token?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
token: {
|
|
43
|
+
contract_addr: string | undefined;
|
|
44
|
+
};
|
|
45
|
+
native_token?: undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
};
|
|
48
|
+
} | {
|
|
49
|
+
astro_swap: {
|
|
50
|
+
ask_asset_info?: {
|
|
51
|
+
native_token: {
|
|
52
|
+
denom: string;
|
|
53
|
+
};
|
|
54
|
+
token?: undefined;
|
|
55
|
+
} | {
|
|
56
|
+
token: {
|
|
57
|
+
contract_addr: string | undefined;
|
|
58
|
+
};
|
|
59
|
+
native_token?: undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
offer_asset_info: {
|
|
62
|
+
native_token: {
|
|
63
|
+
denom: string;
|
|
64
|
+
};
|
|
65
|
+
token?: undefined;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
})[];
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
address: string;
|
|
72
|
+
};
|
|
73
|
+
export declare const buildSwapFromNativeTokenMsg: (quote: SwapHistoryItem, denom: string, address: string, pairAddress?: string) => {
|
|
74
|
+
data: {
|
|
75
|
+
fee: number;
|
|
76
|
+
msgs: MsgExecuteContract[];
|
|
77
|
+
gasLimit: number;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const buildSwapFromContractTokenMsg: (quote: SwapHistoryItem, recipient: string, fromTokenAddress: string, toTokenAddress: string) => {
|
|
81
|
+
data: {
|
|
82
|
+
fee: number;
|
|
83
|
+
msgs: MsgExecuteContract[];
|
|
84
|
+
gasLimit: number;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
export declare const buildSwapFromContractTokenToUSTMsg: (quote: SwapHistoryItem, address: string, fromTokenAddress: string, pairAddress: string) => {
|
|
88
|
+
data: {
|
|
89
|
+
fee: number;
|
|
90
|
+
msgs: MsgExecuteContract[];
|
|
91
|
+
gasLimit: number;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export declare const getPairAddressQuery: (tokenAddress: string) => {
|
|
95
|
+
pair: {
|
|
96
|
+
asset_infos: ({
|
|
97
|
+
token: {
|
|
98
|
+
contract_addr: string;
|
|
99
|
+
};
|
|
100
|
+
native_token?: undefined;
|
|
101
|
+
} | {
|
|
102
|
+
native_token: {
|
|
103
|
+
denom: string;
|
|
104
|
+
};
|
|
105
|
+
token?: undefined;
|
|
106
|
+
})[];
|
|
107
|
+
};
|
|
108
|
+
};
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPairAddressQuery = exports.buildSwapFromContractTokenToUSTMsg = exports.buildSwapFromContractTokenMsg = exports.buildSwapFromNativeTokenMsg = exports.getRateERC20ToERC20 = exports.getRateNativeToAsset = void 0;
|
|
4
|
+
const terra_js_1 = require("@terra-money/terra.js");
|
|
5
|
+
const ADDRESSES = {
|
|
6
|
+
ASSETS_CONTRACT: 'terra1m6ywlgn6wrjuagcmmezzz2a029gtldhey5k552',
|
|
7
|
+
FACTORY_CONTRACT: 'terra16t7dpwwgx9n3lq6l6te3753lsjqwhxwpday9zx',
|
|
8
|
+
};
|
|
9
|
+
const getRateNativeToAsset = (fromAmount, asset, pairAddress) => {
|
|
10
|
+
const isDenom = asset === 'uluna' || asset === 'uusd';
|
|
11
|
+
const query = {
|
|
12
|
+
simulation: {
|
|
13
|
+
offer_asset: Object.assign(Object.assign({ amount: fromAmount }, (isDenom && {
|
|
14
|
+
info: {
|
|
15
|
+
native_token: {
|
|
16
|
+
denom: asset,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
})), (!isDenom && {
|
|
20
|
+
info: {
|
|
21
|
+
token: {
|
|
22
|
+
contract_addr: asset,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
})),
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
let address = ADDRESSES.ASSETS_CONTRACT;
|
|
29
|
+
if (pairAddress) {
|
|
30
|
+
address = pairAddress;
|
|
31
|
+
}
|
|
32
|
+
return { query, address };
|
|
33
|
+
};
|
|
34
|
+
exports.getRateNativeToAsset = getRateNativeToAsset;
|
|
35
|
+
const getRateERC20ToERC20 = (fromAmount, firstAsset, secondAsset, pairAddress) => {
|
|
36
|
+
const isFirstAssetDenom = firstAsset === 'uluna' || firstAsset === 'uusd';
|
|
37
|
+
const isSecondAssetDenom = secondAsset === 'uluna' || secondAsset === 'uusd';
|
|
38
|
+
const query = {
|
|
39
|
+
simulate_swap_operations: {
|
|
40
|
+
offer_amount: fromAmount,
|
|
41
|
+
operations: [
|
|
42
|
+
{
|
|
43
|
+
astro_swap: Object.assign(Object.assign(Object.assign({}, (isFirstAssetDenom && {
|
|
44
|
+
offer_asset_info: {
|
|
45
|
+
native_token: {
|
|
46
|
+
denom: firstAsset,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
})), (!isFirstAssetDenom && {
|
|
50
|
+
offer_asset_info: {
|
|
51
|
+
token: {
|
|
52
|
+
contract_addr: firstAsset,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
})), { ask_asset_info: {
|
|
56
|
+
native_token: { denom: 'uusd' },
|
|
57
|
+
} }),
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
astro_swap: Object.assign(Object.assign({ offer_asset_info: {
|
|
61
|
+
native_token: { denom: 'uusd' },
|
|
62
|
+
} }, (isSecondAssetDenom && {
|
|
63
|
+
ask_asset_info: {
|
|
64
|
+
native_token: {
|
|
65
|
+
denom: secondAsset,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
})), (!isSecondAssetDenom && {
|
|
69
|
+
ask_asset_info: {
|
|
70
|
+
token: {
|
|
71
|
+
contract_addr: secondAsset,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
})),
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
let address = ADDRESSES.FACTORY_CONTRACT;
|
|
80
|
+
if (pairAddress) {
|
|
81
|
+
address = pairAddress;
|
|
82
|
+
}
|
|
83
|
+
return { query, address };
|
|
84
|
+
};
|
|
85
|
+
exports.getRateERC20ToERC20 = getRateERC20ToERC20;
|
|
86
|
+
const buildSwapFromNativeTokenMsg = (quote, denom, address, pairAddress) => {
|
|
87
|
+
const to = pairAddress ? pairAddress : ADDRESSES.ASSETS_CONTRACT;
|
|
88
|
+
return {
|
|
89
|
+
data: {
|
|
90
|
+
fee: quote.fee,
|
|
91
|
+
msgs: [
|
|
92
|
+
new terra_js_1.MsgExecuteContract(address, to, {
|
|
93
|
+
swap: {
|
|
94
|
+
offer_asset: {
|
|
95
|
+
info: {
|
|
96
|
+
native_token: {
|
|
97
|
+
denom,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
amount: quote.fromAmount,
|
|
101
|
+
},
|
|
102
|
+
to: address,
|
|
103
|
+
},
|
|
104
|
+
}, { [denom]: Number(quote.fromAmount) }),
|
|
105
|
+
],
|
|
106
|
+
gasLimit: 400000,
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
exports.buildSwapFromNativeTokenMsg = buildSwapFromNativeTokenMsg;
|
|
111
|
+
const buildSwapFromContractTokenMsg = (quote, recipient, fromTokenAddress, toTokenAddress) => {
|
|
112
|
+
const isERC20ToLuna = quote.to === 'LUNA';
|
|
113
|
+
const isLunaToERC20 = quote.from === 'LUNA';
|
|
114
|
+
const isERC20ToERC20 = quote.to !== 'LUNA' && quote.from !== 'LUNA';
|
|
115
|
+
const swapMsg = {
|
|
116
|
+
execute_swap_operations: {
|
|
117
|
+
offer_amount: quote.fromAmount,
|
|
118
|
+
operations: [
|
|
119
|
+
{
|
|
120
|
+
astro_swap: Object.assign(Object.assign(Object.assign({}, ((isERC20ToERC20 || isERC20ToLuna) && {
|
|
121
|
+
offer_asset_info: {
|
|
122
|
+
token: {
|
|
123
|
+
contract_addr: fromTokenAddress,
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
})), (isLunaToERC20 && {
|
|
127
|
+
offer_asset_info: {
|
|
128
|
+
native_token: {
|
|
129
|
+
denom: 'uluna',
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
})), { ask_asset_info: {
|
|
133
|
+
native_token: {
|
|
134
|
+
denom: 'uusd',
|
|
135
|
+
},
|
|
136
|
+
} }),
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
astro_swap: Object.assign(Object.assign({ offer_asset_info: {
|
|
140
|
+
native_token: {
|
|
141
|
+
denom: 'uusd',
|
|
142
|
+
},
|
|
143
|
+
} }, ((isLunaToERC20 || isERC20ToERC20) && {
|
|
144
|
+
ask_asset_info: {
|
|
145
|
+
token: {
|
|
146
|
+
contract_addr: toTokenAddress,
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
})), (isERC20ToLuna && {
|
|
150
|
+
ask_asset_info: {
|
|
151
|
+
native_token: {
|
|
152
|
+
denom: 'uluna',
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
})),
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
if (isERC20ToERC20 || isERC20ToLuna) {
|
|
161
|
+
const msgInBase64 = Buffer.from(JSON.stringify(swapMsg)).toString('base64');
|
|
162
|
+
return {
|
|
163
|
+
data: {
|
|
164
|
+
fee: quote.fee,
|
|
165
|
+
msgs: [
|
|
166
|
+
new terra_js_1.MsgExecuteContract(recipient, fromTokenAddress, {
|
|
167
|
+
send: {
|
|
168
|
+
msg: msgInBase64,
|
|
169
|
+
amount: quote.fromAmount,
|
|
170
|
+
contract: ADDRESSES.FACTORY_CONTRACT,
|
|
171
|
+
},
|
|
172
|
+
}),
|
|
173
|
+
],
|
|
174
|
+
gasLimit: 1500000,
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
data: {
|
|
180
|
+
fee: quote.fee,
|
|
181
|
+
msgs: [
|
|
182
|
+
new terra_js_1.MsgExecuteContract(recipient, ADDRESSES.FACTORY_CONTRACT, swapMsg, { ['uluna']: Number(quote.fromAmount) }),
|
|
183
|
+
],
|
|
184
|
+
gasLimit: 1500000,
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
exports.buildSwapFromContractTokenMsg = buildSwapFromContractTokenMsg;
|
|
189
|
+
const buildSwapFromContractTokenToUSTMsg = (quote, address, fromTokenAddress, pairAddress) => {
|
|
190
|
+
const msgInBase64 = Buffer.from(JSON.stringify({
|
|
191
|
+
swap: {},
|
|
192
|
+
})).toString('base64');
|
|
193
|
+
return {
|
|
194
|
+
data: {
|
|
195
|
+
fee: quote.fee,
|
|
196
|
+
msgs: [
|
|
197
|
+
new terra_js_1.MsgExecuteContract(address, fromTokenAddress, {
|
|
198
|
+
send: {
|
|
199
|
+
msg: msgInBase64,
|
|
200
|
+
amount: quote.fromAmount,
|
|
201
|
+
contract: pairAddress,
|
|
202
|
+
},
|
|
203
|
+
}),
|
|
204
|
+
],
|
|
205
|
+
gasLimit: 400000,
|
|
206
|
+
},
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
exports.buildSwapFromContractTokenToUSTMsg = buildSwapFromContractTokenToUSTMsg;
|
|
210
|
+
const getPairAddressQuery = (tokenAddress) => ({
|
|
211
|
+
pair: {
|
|
212
|
+
asset_infos: [
|
|
213
|
+
{
|
|
214
|
+
token: {
|
|
215
|
+
contract_addr: tokenAddress,
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
native_token: {
|
|
220
|
+
denom: 'uusd',
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
});
|
|
226
|
+
exports.getPairAddressQuery = getPairAddressQuery;
|
|
227
|
+
//# sourceMappingURL=queries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../../src/swaps/astroport/queries.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAG3D,MAAM,SAAS,GAAG;IAChB,eAAe,EAAE,8CAA8C;IAC/D,gBAAgB,EAAE,8CAA8C;CACjE,CAAC;AASK,MAAM,oBAAoB,GAAG,CAAC,UAAkB,EAAE,KAAc,EAAE,WAAoB,EAAE,EAAE;IAC/F,MAAM,OAAO,GAAG,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,MAAM,CAAC;IAEtD,MAAM,KAAK,GAAG;QACZ,UAAU,EAAE;YACV,WAAW,gCACT,MAAM,EAAE,UAAU,IACf,CAAC,OAAO,IAAI;gBAEb,IAAI,EAAE;oBACJ,YAAY,EAAE;wBACZ,KAAK,EAAE,KAAK;qBACb;iBACF;aACF,CAAC,GACC,CAAC,CAAC,OAAO,IAAI;gBAEd,IAAI,EAAE;oBACJ,KAAK,EAAE;wBACL,aAAa,EAAE,KAAK;qBACrB;iBACF;aACF,CAAC,CACH;SACF;KACF,CAAC;IAIF,IAAI,OAAO,GAAG,SAAS,CAAC,eAAe,CAAC;IAGxC,IAAI,WAAW,EAAE;QACf,OAAO,GAAG,WAAW,CAAC;KACvB;IAED,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAC5B,CAAC,CAAC;AArCW,QAAA,oBAAoB,wBAqC/B;AAQK,MAAM,mBAAmB,GAAG,CACjC,UAAkB,EAClB,UAAmB,EACnB,WAAoB,EACpB,WAAoB,EACpB,EAAE;IACF,MAAM,iBAAiB,GAAG,UAAU,KAAK,OAAO,IAAI,UAAU,KAAK,MAAM,CAAC;IAC1E,MAAM,kBAAkB,GAAG,WAAW,KAAK,OAAO,IAAI,WAAW,KAAK,MAAM,CAAC;IAE7E,MAAM,KAAK,GAAG;QACZ,wBAAwB,EAAE;YACxB,YAAY,EAAE,UAAU;YACxB,UAAU,EAAE;gBACV;oBACE,UAAU,gDACL,CAAC,iBAAiB,IAAI;wBAEvB,gBAAgB,EAAE;4BAChB,YAAY,EAAE;gCACZ,KAAK,EAAE,UAAU;6BAClB;yBACF;qBACF,CAAC,GACC,CAAC,CAAC,iBAAiB,IAAI;wBAExB,gBAAgB,EAAE;4BAChB,KAAK,EAAE;gCACL,aAAa,EAAE,UAAU;6BAC1B;yBACF;qBACF,CAAC,KACF,cAAc,EAAE;4BACd,YAAY,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;yBAChC,GACF;iBACF;gBACD;oBACE,UAAU,gCACR,gBAAgB,EAAE;4BAChB,YAAY,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;yBAChC,IACE,CAAC,kBAAkB,IAAI;wBAExB,cAAc,EAAE;4BACd,YAAY,EAAE;gCACZ,KAAK,EAAE,WAAW;6BACnB;yBACF;qBACF,CAAC,GACC,CAAC,CAAC,kBAAkB,IAAI;wBAEzB,cAAc,EAAE;4BACd,KAAK,EAAE;gCACL,aAAa,EAAE,WAAW;6BAC3B;yBACF;qBACF,CAAC,CACH;iBACF;aACF;SACF;KACF,CAAC;IAKF,IAAI,OAAO,GAAG,SAAS,CAAC,gBAAgB,CAAC;IAGzC,IAAI,WAAW,EAAE;QACf,OAAO,GAAG,WAAW,CAAC;KACvB;IAED,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAC5B,CAAC,CAAC;AA1EW,QAAA,mBAAmB,uBA0E9B;AASK,MAAM,2BAA2B,GAAG,CACzC,KAAsB,EACtB,KAAa,EACb,OAAe,EACf,WAAoB,EACpB,EAAE;IACF,MAAM,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC;IAEjE,OAAO;QACL,IAAI,EAAE;YACJ,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,IAAI,EAAE;gBACJ,IAAI,6BAAkB,CACpB,OAAO,EACP,EAAE,EACF;oBACE,IAAI,EAAE;wBACJ,WAAW,EAAE;4BACX,IAAI,EAAE;gCACJ,YAAY,EAAE;oCACZ,KAAK;iCACN;6BACF;4BACD,MAAM,EAAE,KAAK,CAAC,UAAU;yBACzB;wBACD,EAAE,EAAE,OAAO;qBACZ;iBACF,EACD,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,CACtC;aACF;YACD,QAAQ,EAAE,MAAO;SAClB;KACF,CAAC;AACJ,CAAC,CAAC;AAlCW,QAAA,2BAA2B,+BAkCtC;AAQK,MAAM,6BAA6B,GAAG,CAC3C,KAAsB,EACtB,SAAiB,EACjB,gBAAwB,EACxB,cAAsB,EACtB,EAAE;IACF,MAAM,aAAa,GAAG,KAAK,CAAC,EAAE,KAAK,MAAM,CAAC;IAC1C,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC;IAC5C,MAAM,cAAc,GAAG,KAAK,CAAC,EAAE,KAAK,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC;IAEpE,MAAM,OAAO,GAAG;QACd,uBAAuB,EAAE;YACvB,YAAY,EAAE,KAAK,CAAC,UAAU;YAC9B,UAAU,EAAE;gBACV;oBACE,UAAU,gDACL,CAAC,CAAC,cAAc,IAAI,aAAa,CAAC,IAAI;wBACvC,gBAAgB,EAAE;4BAChB,KAAK,EAAE;gCACL,aAAa,EAAE,gBAAgB;6BAChC;yBACF;qBACF,CAAC,GACC,CAAC,aAAa,IAAI;wBACnB,gBAAgB,EAAE;4BAChB,YAAY,EAAE;gCACZ,KAAK,EAAE,OAAO;6BACf;yBACF;qBACF,CAAC,KACF,cAAc,EAAE;4BACd,YAAY,EAAE;gCACZ,KAAK,EAAE,MAAM;6BACd;yBACF,GACF;iBACF;gBACD;oBACE,UAAU,gCACR,gBAAgB,EAAE;4BAChB,YAAY,EAAE;gCACZ,KAAK,EAAE,MAAM;6BACd;yBACF,IACE,CAAC,CAAC,aAAa,IAAI,cAAc,CAAC,IAAI;wBACvC,cAAc,EAAE;4BACd,KAAK,EAAE;gCACL,aAAa,EAAE,cAAc;6BAC9B;yBACF;qBACF,CAAC,GACC,CAAC,aAAa,IAAI;wBACnB,cAAc,EAAE;4BACd,YAAY,EAAE;gCACZ,KAAK,EAAE,OAAO;6BACf;yBACF;qBACF,CAAC,CACH;iBACF;aACF;SACF;KACF,CAAC;IAEF,IAAI,cAAc,IAAI,aAAa,EAAE;QACnC,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAE5E,OAAO;YACL,IAAI,EAAE;gBACJ,GAAG,EAAE,KAAK,CAAC,GAAG;gBACd,IAAI,EAAE;oBACJ,IAAI,6BAAkB,CAAC,SAAS,EAAE,gBAAgB,EAAE;wBAClD,IAAI,EAAE;4BACJ,GAAG,EAAE,WAAW;4BAChB,MAAM,EAAE,KAAK,CAAC,UAAU;4BACxB,QAAQ,EAAE,SAAS,CAAC,gBAAgB;yBACrC;qBACF,CAAC;iBACH;gBACD,QAAQ,EAAE,OAAS;aACpB;SACF,CAAC;KACH;IAED,OAAO;QACL,IAAI,EAAE;YACJ,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,IAAI,EAAE;gBACJ,IAAI,6BAAkB,CACpB,SAAS,EACT,SAAS,CAAC,gBAAgB,EAC1B,OAAO,EACP,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,CACxC;aACF;YACD,QAAQ,EAAE,OAAS;SACpB;KACF,CAAC;AACJ,CAAC,CAAC;AAlGW,QAAA,6BAA6B,iCAkGxC;AAOK,MAAM,kCAAkC,GAAG,CAChD,KAAsB,EACtB,OAAe,EACf,gBAAwB,EACxB,WAAmB,EACnB,EAAE;IACF,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAC7B,IAAI,CAAC,SAAS,CAAC;QACb,IAAI,EAAE,EAAE;KACT,CAAC,CACH,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAErB,OAAO;QACL,IAAI,EAAE;YACJ,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,IAAI,EAAE;gBACJ,IAAI,6BAAkB,CAAC,OAAO,EAAE,gBAAgB,EAAE;oBAChD,IAAI,EAAE;wBACJ,GAAG,EAAE,WAAW;wBAChB,MAAM,EAAE,KAAK,CAAC,UAAU;wBACxB,QAAQ,EAAE,WAAW;qBACtB;iBACF,CAAC;aACH;YACD,QAAQ,EAAE,MAAO;SAClB;KACF,CAAC;AACJ,CAAC,CAAC;AA3BW,QAAA,kCAAkC,sCA2B7C;AAGK,MAAM,mBAAmB,GAAG,CAAC,YAAoB,EAAE,EAAE,CAAC,CAAC;IAC5D,IAAI,EAAE;QACJ,WAAW,EAAE;YACX;gBACE,KAAK,EAAE;oBACL,aAAa,EAAE,YAAY;iBAC5B;aACF;YACD;gBACE,YAAY,EAAE;oBACZ,KAAK,EAAE,MAAM;iBACd;aACF;SACF;KACF;CACF,CAAC,CAAC;AAfU,QAAA,mBAAmB,uBAe7B"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import BN from 'bignumber.js';
|
|
2
|
+
import { SwapProvider } from '../SwapProvider';
|
|
3
|
+
import { BaseSwapProviderConfig, EstimateFeeRequest, EstimateFeeResponse, NextSwapActionRequest, QuoteRequest, SwapQuote, SwapStatus } from '../types';
|
|
4
|
+
import { Network, SwapHistoryItem, WalletId } from '../../store/types';
|
|
5
|
+
import { Transaction } from '@yaswap/types';
|
|
6
|
+
import { EvmChainProvider, EvmTypes } from '@yaswap/evm';
|
|
7
|
+
import { ActionContext } from '../../store';
|
|
8
|
+
import { Client } from '@yaswap/client';
|
|
9
|
+
import { DebridgeAPIErrorParser } from '@yaswap/error-parser';
|
|
10
|
+
interface BuildSwapQuote extends SwapQuote {
|
|
11
|
+
fee?: number;
|
|
12
|
+
}
|
|
13
|
+
interface BuildSwapRequest {
|
|
14
|
+
network: Network;
|
|
15
|
+
walletId: WalletId;
|
|
16
|
+
quote: BuildSwapQuote;
|
|
17
|
+
}
|
|
18
|
+
export interface DebridgeSwapHistoryItem extends SwapHistoryItem {
|
|
19
|
+
approveTxHash: string;
|
|
20
|
+
approveTx: Transaction<EvmTypes.EthersTransactionResponse>;
|
|
21
|
+
fromFundHash: string;
|
|
22
|
+
fromFundTx: Transaction<EvmTypes.EthersTransactionResponse>;
|
|
23
|
+
}
|
|
24
|
+
export interface DebridgeSwapProviderConfig extends BaseSwapProviderConfig {
|
|
25
|
+
routerAddress: string;
|
|
26
|
+
chains: {
|
|
27
|
+
[key in number]: {
|
|
28
|
+
deBridgeGateAddress: string;
|
|
29
|
+
signatureVerifier: string;
|
|
30
|
+
minBlockConfirmation: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
declare class DeBridgeSwapProvider extends SwapProvider {
|
|
35
|
+
config: DebridgeSwapProviderConfig;
|
|
36
|
+
debridgeApiErrorParser: DebridgeAPIErrorParser;
|
|
37
|
+
constructor(config: DebridgeSwapProviderConfig);
|
|
38
|
+
getQuote({ network, from, to, amount }: QuoteRequest): Promise<{
|
|
39
|
+
from: string;
|
|
40
|
+
to: string;
|
|
41
|
+
fromAmount: string;
|
|
42
|
+
toAmount: string;
|
|
43
|
+
} | null>;
|
|
44
|
+
estimateFees({ network, walletId, asset, quote, feePrices }: EstimateFeeRequest): Promise<EstimateFeeResponse | null>;
|
|
45
|
+
newSwap({ network, walletId, quote }: BuildSwapRequest): Promise<{
|
|
46
|
+
status: string;
|
|
47
|
+
approveTx?: undefined;
|
|
48
|
+
approveTxHash?: undefined;
|
|
49
|
+
id: string;
|
|
50
|
+
fee: number | undefined;
|
|
51
|
+
slippage: number;
|
|
52
|
+
} | {
|
|
53
|
+
status: string;
|
|
54
|
+
approveTx: Transaction<any>;
|
|
55
|
+
approveTxHash: string;
|
|
56
|
+
id: string;
|
|
57
|
+
fee: number | undefined;
|
|
58
|
+
slippage: number;
|
|
59
|
+
} | {
|
|
60
|
+
status: string;
|
|
61
|
+
fromFundTx: Transaction<any>;
|
|
62
|
+
fromFundHash: string;
|
|
63
|
+
id: string;
|
|
64
|
+
fee: number | undefined;
|
|
65
|
+
slippage: number;
|
|
66
|
+
}>;
|
|
67
|
+
performNextSwapAction(store: ActionContext, { network, walletId, swap }: NextSwapActionRequest<DebridgeSwapHistoryItem>): Promise<Partial<{
|
|
68
|
+
endTime: number;
|
|
69
|
+
status: string;
|
|
70
|
+
}> | undefined>;
|
|
71
|
+
waitForSwapConfirmations({ swap, network, walletId }: NextSwapActionRequest<DebridgeSwapHistoryItem>): Promise<{
|
|
72
|
+
endTime: number;
|
|
73
|
+
status: string;
|
|
74
|
+
} | undefined>;
|
|
75
|
+
private getConfirmationsCount;
|
|
76
|
+
getSupportedPairs(): Promise<never[]>;
|
|
77
|
+
getMin(_quoteRequest: QuoteRequest): Promise<BN>;
|
|
78
|
+
getClient(network: Network, walletId: string, asset: string, accountId: string): Client<EvmChainProvider, import("@yaswap/client").Wallet<any, any>, import("@yaswap/client").Swap<any, any, import("@yaswap/client").Wallet<any, any>>, import("@yaswap/client").Nft<any, any>>;
|
|
79
|
+
private buildApprovalTx;
|
|
80
|
+
private requiresApproval;
|
|
81
|
+
private approveTokens;
|
|
82
|
+
private loadSwapTx;
|
|
83
|
+
private sendSwap;
|
|
84
|
+
private waitForApproveConfirmations;
|
|
85
|
+
private waitForSwapExecution;
|
|
86
|
+
private getFullSubmissionInfo;
|
|
87
|
+
private getSubmissionId;
|
|
88
|
+
protected _txTypes(): {
|
|
89
|
+
SWAP: string;
|
|
90
|
+
};
|
|
91
|
+
protected _fromTxType(): string | null;
|
|
92
|
+
protected _toTxType(): string | null;
|
|
93
|
+
protected _totalSteps(): number;
|
|
94
|
+
protected _timelineDiagramSteps(): string[];
|
|
95
|
+
protected _getStatuses(): Record<string, SwapStatus>;
|
|
96
|
+
private getGasLimit;
|
|
97
|
+
}
|
|
98
|
+
export { DeBridgeSwapProvider };
|