Merge pull request #3 from ping-pub/v3-single

V3 single Merge
This commit is contained in:
Alisa | Side.one 2023-04-27 23:55:53 +08:00 committed by GitHub
commit 8b13edcb17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 14 deletions

View File

@ -260,7 +260,7 @@ loadAccount(props.address)
</thead>
<tbody>
<tr v-for="v in txs">
<td>{{ v.height }} </td>
<td class="text-sm text-primary"><RouterLink :to="`/${chain}/block/${v.height}`">{{ v.height }}</RouterLink></td>
<td class="text-truncate" style="max-width: 200px;">{{ v.txhash }} </td>
<td>
{{ format.messages(v.tx.body.messages) }}

View File

@ -116,27 +116,27 @@ onMounted(()=> {
</div>
<VSpacer/>
<VCardText>
<p class="text-xs">
<p class="text-md">
About Us
</p>
<VList class="card-list">
<VListItem prepend-icon="mdi-web">
<span>Website: </span><span> {{ v.description?.website || '-' }}</span>
</VListItem>
<VListItem prepend-icon="mdi-phone">
<VListItem prepend-icon="mdi-email-outline">
<span>Contact: </span><span> {{ v.description?.security_contact }}</span>
</VListItem>
</VList>
<p class="text-xs mt-3">
<p class="text-md mt-3">
Validator Status
</p>
<VList class="card-list">
<VListItem prepend-icon="mdi-check">
<span>Status: </span><span> {{ v.status }}</span>
<VListItem prepend-icon="mdi-shield-account-outline">
<span>Status: </span><span> {{ (v.status).replace('BOND_STATUS_', '') }} </span>
</VListItem>
<VListItem prepend-icon="mdi-lock">
<span>Jailed: </span><span> {{ v.jailed }}</span>
<VListItem prepend-icon="mdi-shield-alert-outline">
<span>Jailed: </span><span> {{ v.jailed || '-' }} </span>
</VListItem>
</VList>
</VCardText>
@ -148,7 +148,7 @@ onMounted(()=> {
<VAvatar color="secondary" rounded variant="outlined" icon="mdi-coin"></VAvatar>
<div class="ml-3 d-flex flex-column justify-center">
<h4>{{ format.formatToken2({amount: v.tokens, denom: staking.params.bond_denom}) }}</h4>
<span class="text-sm">Bonded Tokens</span>
<span class="text-sm">Total Bonded Tokens</span>
</div>
</div>
<div class="d-flex">
@ -160,14 +160,14 @@ onMounted(()=> {
</div>
<div class="d-flex">
<VAvatar color="secondary" rounded variant="outlined" icon="mdi-flag"></VAvatar>
<VAvatar color="secondary" rounded variant="outlined" icon="mdi-account-tie"></VAvatar>
<div class="ml-3 d-flex flex-column justify-center">
<h4>{{ v.min_self_delegation }} {{ staking.params.bond_denom }}</h4>
<span class="text-sm">Min Self Delegation:</span>
</div>
</div>
<div class="d-flex">
<VAvatar color="secondary" rounded variant="outlined" icon="mdi-coin"></VAvatar>
<VAvatar color="secondary" rounded variant="outlined" icon="mdi-finance"></VAvatar>
<div class="ml-3 d-flex flex-column justify-center">
<h4>{{ apr }}</h4>
<span class="text-sm">Annual Profit</span>
@ -175,7 +175,7 @@ onMounted(()=> {
</div>
<div class="d-flex">
<VAvatar color="secondary" rounded variant="outlined" icon="mdi-pound"></VAvatar>
<VAvatar color="secondary" rounded variant="outlined" icon="mdi-stairs-up"></VAvatar>
<div class="ml-3 d-flex flex-column justify-center">
<h4>{{ v.unbonding_height }}</h4>
<span class="text-sm">Unbonding Height</span>
@ -256,7 +256,10 @@ onMounted(()=> {
<tr v-for="(item, i) in txs.tx_responses">
<td class="text-sm text-primary"><RouterLink :to="`/${props.chain}/block/${item.height}`">{{ item.height }}</RouterLink></td>
<td class="text-truncate" style="max-width: 200px;">{{ item.txhash }}</td>
<td>{{ format.messages(item.tx.body.messages) }}</td>
<td>
{{ format.messages(item.tx.body.messages) }}
<VIcon v-if="item.code === 0" icon="mdi-check" color="success"></VIcon>
<VIcon v-else icon="mdi-multiply" color="error"></VIcon> </td>
<td width="150">{{ format.toDay(item.timestamp,'from') }}</td>
</tr>
</tbody>