From e60d7b5cf5f411b7270e3383d7166e9957bab1a9 Mon Sep 17 00:00:00 2001
From: liangping <18786721@qq.com>
Date: Fri, 17 Feb 2023 09:34:49 +0800
Subject: [PATCH] add balance cache
---
.../dashboard/src/components/ChainSummary.vue | 9 +--
.../src/layouts/components/ChainProfile.vue | 10 +--
packages/dashboard/src/pages/index.vue | 7 +-
packages/dashboard/src/stores/useBank.ts | 8 +-
packages/dashboard/src/stores/useBankStore.ts | 44 ++++++++---
.../dashboard/src/stores/useBlockchain.ts | 9 +--
packages/dashboard/src/stores/useDashboard.ts | 73 ++++++++++++++++---
7 files changed, 114 insertions(+), 46 deletions(-)
diff --git a/packages/dashboard/src/components/ChainSummary.vue b/packages/dashboard/src/components/ChainSummary.vue
index 46f9a512..63e5161d 100644
--- a/packages/dashboard/src/components/ChainSummary.vue
+++ b/packages/dashboard/src/components/ChainSummary.vue
@@ -12,9 +12,6 @@ const props = defineProps({
const dashboardStore = useDashboard()
const conf = computed(()=> dashboardStore.chains[props.name] || {})
-const logoPath = computed(() => {
- return getLogo(conf.value.logo_URIs)
-})
@@ -22,16 +19,16 @@ const logoPath = computed(() => {
-
+
- {{ conf?.pretty_name || props.name }}
+ {{ conf?.prettyName || props.name }}
- {{conf?.chain_id || ''}}
+ {{conf?.chainId || ''}}
diff --git a/packages/dashboard/src/layouts/components/ChainProfile.vue b/packages/dashboard/src/layouts/components/ChainProfile.vue
index e4cdfa3f..bd0b9ba9 100644
--- a/packages/dashboard/src/layouts/components/ChainProfile.vue
+++ b/packages/dashboard/src/layouts/components/ChainProfile.vue
@@ -32,14 +32,14 @@ const chainStore = useBlockchain()
>
-
-
+
+
{{ i.provider }}
{{ i.address }}
-
-
+
+
{{ i.provider }}
{{ i.address }}
@@ -49,7 +49,7 @@ const chainStore = useBlockchain()
- {{ chainStore.current?.chain_id || '' }}
+ {{ chainStore.current?.chainId || '' }}
{{ chainStore.availableEndpoint }}
diff --git a/packages/dashboard/src/pages/index.vue b/packages/dashboard/src/pages/index.vue
index 3ff74cab..d9f6629b 100644
--- a/packages/dashboard/src/pages/index.vue
+++ b/packages/dashboard/src/pages/index.vue
@@ -1,8 +1,7 @@