Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add contract id to generalized account #598

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,5 @@
"last 2 versions",
"not dead",
"not ie 11"
],
"packageManager": "yarn@4.0.1"
]
}
24 changes: 22 additions & 2 deletions src/components/AccountDetailsPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
DETAILS
</template>
<template #header>
<app-chip v-if="accountDetails.isGeneralized">
<app-chip
v-if="accountDetails.isGeneralized"
size="sm">
Generalized
</app-chip>

Expand Down Expand Up @@ -70,7 +72,24 @@
{{ formatNumber(accountDetails.namesCount) }}
</td>
</tr>
<tr class="account-details-panel__row">
<tr
v-if="accountDetails.isGeneralized"
class="account-details-panel__row">
<th class="account-details-panel__table-header">
Contract Id
<hint-tooltip>
{{ accountHints.contractId }}
</hint-tooltip>
</th>
<td class="account-details-panel__data">
<app-link :to="`/contracts/${accountDetails.contractId}`">
{{ accountDetails.contractId }}
</app-link>
</td>
</tr>
<tr
v-else
class="account-details-panel__row">
<th class="account-details-panel__table-header">
Nonce
<hint-tooltip>
Expand Down Expand Up @@ -116,6 +135,7 @@ import AppLink from '@/components/AppLink'
import { formatAePrice, formatEllipseHash, formatNullable, formatNumber } from '@/utils/format'
import { useMarketStatsStore } from '@/stores/marketStats'
import HintTooltip from '@/components/HintTooltip'
import AppChip from '~/components/AppChip'

const { price } = storeToRefs(useMarketStatsStore())
const { NODE_URL } = useRuntimeConfig().public
Expand Down
1 change: 1 addition & 0 deletions src/utils/hints/accountHints.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const accountHints = {
transactions: 'Amount of transactions where the account was involved.',
aensNames: 'Amount of names owned by the account.',
nonce: 'The nonce that was used to execute the last transaction for the account. The nonce is used to prevent replay attacks and keep transactions in order. If a transaction with a way higher nonce is broadcasted, it won\'t be executed until all transactions with lower nonces are executed.',
contractId: 'The contract that is attached to the account to create generalized account and takes over its authorization logic.',
apiLinks: 'Node API link of the account.',
hash: 'Transaction hash where the account was involved.',
time: 'Keyblock height and exact date and time when the transaction was executed by inclusion into a microblock.',
Expand Down