From 337d7275777b0bc52e79487f47ec41a7a9392ca2 Mon Sep 17 00:00:00 2001 From: Juan-LukeKlopper Date: Wed, 10 Apr 2024 07:36:41 +0200 Subject: [PATCH 1/5] feat: Update moniker to show backup options --- src/modules/[chain]/uptime/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/[chain]/uptime/index.vue b/src/modules/[chain]/uptime/index.vue index 56ecc07547..f98012f733 100644 --- a/src/modules/[chain]/uptime/index.vue +++ b/src/modules/[chain]/uptime/index.vue @@ -191,7 +191,8 @@ function fetchAllKeyRotation() {
Date: Wed, 10 Apr 2024 07:38:07 +0200 Subject: [PATCH 2/5] feat: show proposal description for namada --- src/modules/[chain]/gov/[proposal_id].vue | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/modules/[chain]/gov/[proposal_id].vue b/src/modules/[chain]/gov/[proposal_id].vue index 55a975ffa6..fd7e28fb09 100644 --- a/src/modules/[chain]/gov/[proposal_id].vue +++ b/src/modules/[chain]/gov/[proposal_id].vue @@ -211,9 +211,17 @@ function metaItem(metadata: string|undefined): { title: string; summary: string {{ status }}
-
+ + +
+ +

@@ -356,7 +369,8 @@ function metaItem(metadata: string|undefined): { title: string; summary: string
-
+ +
From 9d665746c033d6c030730c0500cd48db55c214b9 Mon Sep 17 00:00:00 2001 From: Juan-LukeKlopper Date: Wed, 10 Apr 2024 07:38:54 +0200 Subject: [PATCH 3/5] fix: fix moniker on staking page --- src/modules/[chain]/staking/index.vue | 67 ++++++++++++++++----------- 1 file changed, 41 insertions(+), 26 deletions(-) diff --git a/src/modules/[chain]/staking/index.vue b/src/modules/[chain]/staking/index.vue index efab0c8240..b6b07f6810 100644 --- a/src/modules/[chain]/staking/index.vue +++ b/src/modules/[chain]/staking/index.vue @@ -386,14 +386,21 @@ loadAvatars(); }" class="font-weight-medium" > - {{ v.description?.moniker }} + + - {{ - v.description?.website || - v.description?.identity || - '-' - }} + + {{ + v.description?.website || + v.description?.identity || + '-' + }} + @@ -401,27 +408,35 @@ loadAvatars();
-
- {{ - format.formatToken( - { - amount: parseInt( - v.tokens - ).toString(), - denom: staking.params - .bond_denom, - }, - true, - '0,0' - ) - }} -
+ + {{ - format.calculatePercent( - v.delegator_shares, - staking.totalPower - ) - }} + format.calculatePercent( + v.delegator_shares, + staking.totalPower + ) + }}
From 353d9e49abffc63a3179fb9ee0c869a15148c3b9 Mon Sep 17 00:00:00 2001 From: Juan-LukeKlopper Date: Wed, 10 Apr 2024 07:40:12 +0200 Subject: [PATCH 4/5] fix: fix sdk_version bug --- src/stores/useParamsStore.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/stores/useParamsStore.ts b/src/stores/useParamsStore.ts index 509a8648d8..ed3d488645 100644 --- a/src/stores/useParamsStore.ts +++ b/src/stores/useParamsStore.ts @@ -194,14 +194,17 @@ export const useParamStore = defineStore('paramstore', { async handleAbciInfo() { const res = await this.fetchAbciInfo(); - localStorage.setItem(`sdk_version_${this.blockchain.chainName}`, res.application_version?.cosmos_sdk_version); - - this.appVersion.items = Object.entries(res.application_version).map( - ([key, value]) => ({ subtitle: key, value: value }) - ); - this.nodeVersion.items = Object.entries(res.default_node_info).map( - ([key, value]) => ({ subtitle: key, value: value }) - ); + if (res) { + localStorage.setItem(`sdk_version_${this.blockchain.chainName}`, res.application_version?.cosmos_sdk_version); + this.appVersion.items = Object.entries(res.application_version).map( + ([key, value]) => ({ subtitle: key, value: value }) + ); + this.nodeVersion.items = Object.entries(res.default_node_info).map( + ([key, value]) => ({ subtitle: key, value: value }) + ); + } else { + localStorage.setItem(`sdk_version_${this.blockchain.chainName}`, "v0.45.1"); + } }, async getBaseTendermintBlockLatest() { return await this.blockchain.rpc?.getBaseBlockLatest(); From 471b9e3cc9486a99c15934bb1bce6a72fb886ccb Mon Sep 17 00:00:00 2001 From: Juan-LukeKlopper Date: Wed, 10 Apr 2024 07:43:59 +0200 Subject: [PATCH 5/5] feat: update chain.json --- chains/testnet/namada.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chains/testnet/namada.json b/chains/testnet/namada.json index d8ac962908..976c16adaa 100644 --- a/chains/testnet/namada.json +++ b/chains/testnet/namada.json @@ -1,7 +1,7 @@ { "chain_name": "namada", - "api": ["http://api.namada.info","http://api.namada.encipher88.tech"], - "rpc": ["http://namada-rpc.zenode.app:80"], + "api": [ "https://api-namada-testnet.whispernode.com:443"], + "rpc": [ "https://rpc-namada-testnet.whispernode.com:443"], "snapshot_provider": "", "sdk_version": "0.46.15", "coin_type": "118", @@ -12,7 +12,7 @@ "base": "unam", "symbol": "NAM", "exponent": "18", - "coingecko_id": "namada", + "coingecko_id": "", "logo": "/logos/namada.webp" }] }