diff --git a/src/modules/[chain]/ibc/connection/[connection_id].vue b/src/modules/[chain]/ibc/connection/[connection_id].vue
index 3bccf712..1e85ff33 100644
--- a/src/modules/[chain]/ibc/connection/[connection_id].vue
+++ b/src/modules/[chain]/ibc/connection/[connection_id].vue
@@ -57,7 +57,7 @@ onMounted(() => {
clientState.value = x.identifiedClientState;
if (x.identifiedClientState?.clientState) {
Object.assign(
- clientState.value?.clientState!,
+ clientState.value!,
TendermintClientState.decode(
x.identifiedClientState?.clientState.value
)
@@ -174,7 +174,7 @@ function color(v: string) {
- {{ clientState?.clientState?.chainId }}
+ {{ clientState?.chainId }}
{{ conn?.counterparty?.connectionId }} {{ clientState?.clientId }}
@@ -202,8 +202,8 @@ function color(v: string) {
| {{ $t('ibc.trust_level') }}: |
- {{ clientState?.clientState?.trustLevel.numerator }}/{{
- clientState.clientState?.trustLevel.denominator
+ {{ clientState?.trustLevel.numerator }}/{{
+ clientState?.trustLevel.denominator
}}
|
@@ -211,9 +211,7 @@ function color(v: string) {
{{ $t('ibc.trusting_period') }}: |
{{
- formatSeconds(
- clientState.clientState?.trustingPeriod.seconds.toString()
- )
+ formatSeconds(clientState?.trustingPeriod.seconds.toString())
}}
|
@@ -221,9 +219,7 @@ function color(v: string) {
{{ $t('ibc.unbonding_period') }}: |
{{
- formatSeconds(
- clientState.clientState?.unbondingPeriod.seconds.toString()
- )
+ formatSeconds(clientState?.unbondingPeriod.seconds.toString())
}}
|
@@ -231,26 +227,20 @@ function color(v: string) {
{{ $t('ibc.max_clock_drift') }}: |
{{
- formatSeconds(
- clientState.clientState?.maxClockDrift.seconds.toString()
- )
+ formatSeconds(clientState?.maxClockDrift.seconds.toString())
}}
|
| {{ $t('ibc.frozen_height') }}: |
- {{
- clientState.clientState?.frozenHeight.revisionHeight.toString()
- }}
+ {{ clientState?.frozenHeight.revisionHeight.toString() }}
|
| {{ $t('ibc.latest_height') }}: |
- {{
- clientState.clientState?.latestHeight.revisionHeight.toString()
- }}
+ {{ clientState?.latestHeight.revisionHeight.toString() }}
|
@@ -266,9 +256,7 @@ function color(v: string) {
{{ $t('ibc.allow_update_after_expiry') }}:
- {{
- clientState.clientState?.allowUpdateAfterExpiry
- }}
+ {{ clientState?.allowUpdateAfterExpiry }}
|
@@ -276,16 +264,14 @@ function color(v: string) {
{{ $t('ibc.allow_update_after_misbehaviour') }}:
- {{
- clientState.clientState?.allowUpdateAfterMisbehaviour
- }}
+ {{ clientState?.allowUpdateAfterMisbehaviour }}
|
| {{ $t('ibc.upgrade_path') }}: |
- {{ clientState.clientState?.upgradePath.join(', ') }}
+ {{ clientState?.upgradePath.join(', ') }}
|
@@ -389,11 +375,11 @@ function color(v: string) {
{{ v.state }}
diff --git a/src/modules/[chain]/index.vue b/src/modules/[chain]/index.vue
index c048a55b..d44eee4e 100644
--- a/src/modules/[chain]/index.vue
+++ b/src/modules/[chain]/index.vue
@@ -17,7 +17,7 @@ import { computed } from '@vue/reactivity';
import CardStatisticsVertical from '@/components/CardStatisticsVertical.vue';
import ProposalListItem from '@/components/ProposalListItem.vue';
-import ArrayObjectElement from '@/components/dynamic/ArrayObjectElement.vue'
+import ArrayObjectElement from '@/components/dynamic/ArrayObjectElement.vue';
const props = defineProps(['chain']);
@@ -27,7 +27,7 @@ const walletStore = useWalletStore();
const format = useFormatter();
const dialog = useTxDialog();
const stakingStore = useStakingStore();
-const paramStore = useParamStore()
+const paramStore = useParamStore();
const coinInfo = computed(() => {
return store.coinInfo;
});
@@ -35,19 +35,19 @@ const coinInfo = computed(() => {
onMounted(() => {
store.loadDashboard();
walletStore.loadMyAsset();
- paramStore.handleAbciInfo()
+ paramStore.handleAbciInfo();
// if(!(coinInfo.value && coinInfo.value.name)) {
// }
});
const ticker = computed(() => store.coinInfo.tickers[store.tickerIndex]);
-const currName = ref("")
+const currName = ref('');
blockchain.$subscribe((m, s) => {
if (s.chainName !== currName.value) {
- currName.value = s.chainName
+ currName.value = s.chainName;
store.loadDashboard();
walletStore.loadMyAsset();
- paramStore.handleAbciInfo()
+ paramStore.handleAbciInfo();
}
});
function shortName(name: string, id: string) {
@@ -97,53 +97,62 @@ const color = computed(() => {
});
function updateState() {
- walletStore.loadMyAsset()
+ walletStore.loadMyAsset();
}
function trustColor(v: string) {
- return `text-${colorMap(v)}`
+ return `text-${colorMap(v)}`;
}
-const quantity = ref(100)
+const quantity = ref(100);
const qty = computed({
get: () => {
- return parseFloat(quantity.value.toFixed(6))
+ return parseFloat(quantity.value.toFixed(6));
},
- set: val => {
- quantity.value = val
- }
-})
+ set: (val) => {
+ quantity.value = val;
+ },
+});
const amount = computed({
get: () => {
- return quantity.value * ticker.value.converted_last.usd || 0
+ return quantity.value * ticker.value.converted_last.usd || 0;
},
- set: val => {
- quantity.value = val / ticker.value.converted_last.usd || 0
- }
-})
-
+ set: (val) => {
+ quantity.value = val / ticker.value.converted_last.usd || 0;
+ },
+});
-
+
{{ coinInfo.name }} ({{
coinInfo.symbol
- }})
+ }})
{{ $t('index.rank') }}:
-
+
#{{ coinInfo.market_cap_rank }}
-
+
{{ item?.name }}
@@ -153,9 +162,12 @@ const amount = computed({
|