From 2e413133c228cedce3190a53cf710b6f31fa7590 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Mon, 26 Jun 2023 16:54:23 +0800 Subject: [PATCH] improve gov v1 --- chains/mainnet/desmos.json | 2 +- package.json | 1 + src/components/ProposalListItem.vue | 10 +- src/libs/client.ts | 2 + src/libs/clients/v0.46.0.ts | 2 +- src/modules/[chain]/gov/[proposal_id].vue | 11 +- src/types/gov.ts | 6 +- yarn.lock | 250 +++++++++++++++++++++- 8 files changed, 270 insertions(+), 14 deletions(-) diff --git a/chains/mainnet/desmos.json b/chains/mainnet/desmos.json index 0c100890..02b53be7 100644 --- a/chains/mainnet/desmos.json +++ b/chains/mainnet/desmos.json @@ -3,7 +3,7 @@ "coingecko": "desmos", "api": ["https://api.mainnet.desmos.network", "https://desmos-api.lavenderfive.com"], "rpc": ["https://rpc.mainnet.desmos.network:443", "https://desmos-rpc.lavenderfive.com:443"], - "sdk_version": "0.45.8", + "sdk_version": "0.47.3", "coin_type": "118", "min_tx_fee": "3000", "addr_prefix": "desmos", diff --git a/package.json b/package.json index ce62150e..998f7a97 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "autoprefixer": "^10.4.14", "axios": "^1.3.2", "buffer": "^6.0.3", + "build": "^0.1.4", "cross-fetch": "^3.1.5", "daisyui": "^3.1.0", "dayjs": "^1.11.7", diff --git a/src/components/ProposalListItem.vue b/src/components/ProposalListItem.vue index 31c9958d..7ee0ce59 100644 --- a/src/components/ProposalListItem.vue +++ b/src/components/ProposalListItem.vue @@ -59,7 +59,7 @@ const proposalInfo = ref(); :to="`/${chain.chainName}/gov/${item?.proposal_id}`" class="text-main text-base mb-1 block hover:text-indigo-400 truncate" > - {{ item?.content?.title }} + {{ item?.content?.title || item?.title }}
{{ item?.content?.title }}{{ item?.content?.title || item?.title }}