Skip to content

Commit

Permalink
feat(webapp): add eos evm total wallets created
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Nov 6, 2023
1 parent 431bc73 commit 03e7d24
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions webapp/src/language/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@
"transactions": "EVM transactions",
"gasUsed": "Gas Used",
"tooltip": {
"totalWallets": "EVM active addresses of the account table from {{accountName}} contract",
"gasPrice": "The cost of computational work in EVM, measured in Gas",
"avgGasUsage": "Average Gas Consumed Over the Last 100 Blocks",
"totalIncoming": "Total Transfers Received by {{accountName}}",
Expand Down
1 change: 1 addition & 0 deletions webapp/src/language/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@
"transactions": "Transacciones EVM",
"gasUsed": "Gas Usado",
"tooltip": {
"totalWallets": "Direcciones del EVM activas de la tabla account del contrato {{accountName}}",
"gasPrice": "Combustible virtual usado para ejecutar contratos inteligentes en EVM",
"avgGasUsage": "Gas promedio utilizado en los últimos 100 bloques",
"totalIncoming": "Cantidad de transacciones transfer hacia {{accountName}}",
Expand Down
3 changes: 3 additions & 0 deletions webapp/src/routes/EVMDashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ const EVMDashboard = () => {
/>
<SimpleDataCard
title={t('totalWallets')}
helperText={t('tooltip.totalWallets', {
accountName: evmConfig.account,
})}
value={
formatWithThousandSeparator(EVMStats?.wallets_created_count) ||
'N/A'
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/routes/EVMDashboard/useEVMstate.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const useEVMState = t => {
lower_bound: null,
})

return rows[0]?.index + 1
return rows[0]?.index + 1 || rows[0]?.id + 1
} catch (error) {}
}

Expand Down

0 comments on commit 03e7d24

Please sign in to comment.