From e5857b4a1a8e991691d69c906ef10f01809a9a26 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 11 May 2023 11:03:50 +0800 Subject: [PATCH] integrate tx dialog --- chains/mainnet/cosmos.json | 1 + src/App.vue | 2 ++ src/components/TxDialog.vue | 12 +++++++ src/modules/[chain]/account/[address].vue | 21 +++++++++-- src/modules/[chain]/gov/[proposal_id].vue | 9 +++-- src/modules/[chain]/index.vue | 3 +- src/modules/[chain]/staking/[validator].vue | 14 ++++---- src/modules/[chain]/staking/index.vue | 8 ++--- src/stores/index.ts | 1 + src/stores/useDashboard.ts | 3 +- src/stores/useFormatter.ts | 1 - src/stores/useTxDialog.ts | 39 +++++++++++++++++++++ 12 files changed, 95 insertions(+), 19 deletions(-) create mode 100644 src/components/TxDialog.vue create mode 100644 src/stores/useTxDialog.ts diff --git a/chains/mainnet/cosmos.json b/chains/mainnet/cosmos.json index 338532b7..e92890f2 100644 --- a/chains/mainnet/cosmos.json +++ b/chains/mainnet/cosmos.json @@ -24,6 +24,7 @@ "coin_type": "118", "min_tx_fee": "800", "addr_prefix": "cosmos", + "registry_name": "cosmoshub", "logo": "/logos/cosmos.svg", "assets": [{ "base": "uatom", diff --git a/src/App.vue b/src/App.vue index 3460a20b..36fc09ec 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,6 +4,7 @@ import { useThemeConfig } from '@/plugins/vuetify/@core/composable/useThemeConfi import { hexToRgb } from '@/plugins/vuetify/@layouts/utils'; import { themeChange } from 'theme-change'; import { onMounted } from 'vue'; +import TxDialog from './components/TxDialog.vue'; const { syncInitialLoaderTheme, syncVuetifyThemeWithTheme: syncConfigThemeWithVuetifyTheme, @@ -30,6 +31,7 @@ onMounted(() => { )}`" > + diff --git a/src/components/TxDialog.vue b/src/components/TxDialog.vue new file mode 100644 index 00000000..e563afef --- /dev/null +++ b/src/components/TxDialog.vue @@ -0,0 +1,12 @@ + + \ No newline at end of file diff --git a/src/modules/[chain]/account/[address].vue b/src/modules/[chain]/account/[address].vue index 07beb5ff..1bd81e36 100644 --- a/src/modules/[chain]/account/[address].vue +++ b/src/modules/[chain]/account/[address].vue @@ -1,5 +1,5 @@