forked from cerc-io/cosmos-explorer
improve votes
This commit is contained in:
parent
8f77758fe9
commit
65c9f8c69a
@ -1,6 +1,59 @@
|
||||
{
|
||||
"chain_name": "umee",
|
||||
"api": ["https://umee-api.polkachu.com:443"],
|
||||
"api": [
|
||||
{
|
||||
"address": "https://api.mainnet.network.umee.cc",
|
||||
"provider": "umee Foundation"
|
||||
},
|
||||
{
|
||||
"address": "https://api-umee-ia.cosmosia.notional.ventures/",
|
||||
"provider": "Notional"
|
||||
},
|
||||
{
|
||||
"address": "https://umee.api.m.stavr.tech",
|
||||
"provider": "🔥STAVR🔥"
|
||||
},
|
||||
{
|
||||
"address": "https://umee-mainnet-lcd.autostake.com:443",
|
||||
"provider": "AutoStake 🛡️ Slash Protected"
|
||||
},
|
||||
{
|
||||
"address": "https://umee-api.polkachu.com",
|
||||
"provider": "Polkachu"
|
||||
},
|
||||
{
|
||||
"address": "https://umee-lcd.quantnode.tech",
|
||||
"provider": "QuantNode"
|
||||
},
|
||||
{
|
||||
"address": "https://umee-api.tienthuattoan.ventures",
|
||||
"provider": "TienThuatToan"
|
||||
},
|
||||
{
|
||||
"address": "https://api-umee-01.stakeflow.io",
|
||||
"provider": "Stakeflow"
|
||||
},
|
||||
{
|
||||
"address": "https://umee-rest.staketab.org",
|
||||
"provider": "Staketab"
|
||||
},
|
||||
{
|
||||
"address": "https://api.umee.stake-take.com",
|
||||
"provider": "Stake-Take"
|
||||
},
|
||||
{
|
||||
"address": "https://umee-api.theamsolutions.info",
|
||||
"provider": "AM Solutions"
|
||||
},
|
||||
{
|
||||
"address": "https://umee.api.kjnodes.com",
|
||||
"provider": "kjnodes"
|
||||
},
|
||||
{
|
||||
"address": "https://umee-api.w3coins.io",
|
||||
"provider": "w3coins"
|
||||
}
|
||||
],
|
||||
"rpc": ["https://umee-rpc.polkachu.com:443"],
|
||||
"snapshot_provider": "",
|
||||
"sdk_version": "0.46.11",
|
||||
|
@ -12,7 +12,7 @@ const format = useFormatter();
|
||||
function isMD() {
|
||||
if (
|
||||
props.value &&
|
||||
(props.value.indexOf('\n') > -1 || props.value.indexOf('\\n') > -1)
|
||||
(String(props.value).indexOf('\n') > -1 || String(props.value).indexOf('\\n') > -1)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
@ -344,6 +344,7 @@ function pageload(p: number) {
|
||||
<tr v-for="(item, index) of votes" :key="index">
|
||||
<td class="py-2 text-sm">{{ showValidatorName(item.voter) }}</td>
|
||||
<td
|
||||
v-if="item.option"
|
||||
class="py-2 text-sm"
|
||||
:class="{
|
||||
'text-yes': item.option === 'VOTE_OPTION_YES',
|
||||
@ -352,6 +353,12 @@ function pageload(p: number) {
|
||||
>
|
||||
{{ String(item.option).replace('VOTE_OPTION_', '') }}
|
||||
</td>
|
||||
<td
|
||||
v-if="item.options"
|
||||
class="py-2 text-sm"
|
||||
>
|
||||
{{ item.options.map(x => `${x.option.replace('VOTE_OPTION_', '')}:${format.percent(x.weight)}`).join(', ') }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user