From 00708a5888c05aa3bbeb7179d15a0874f48fe591 Mon Sep 17 00:00:00 2001 From: Kristof Csillag Date: Sat, 1 Jul 2023 02:31:36 +0200 Subject: [PATCH] Include contract verification info in token lists --- src/app/components/Tokens/TokenDetails.tsx | 5 +++++ src/app/components/Tokens/TokenList.tsx | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/app/components/Tokens/TokenDetails.tsx b/src/app/components/Tokens/TokenDetails.tsx index d62641db50..25d1c1bcad 100644 --- a/src/app/components/Tokens/TokenDetails.tsx +++ b/src/app/components/Tokens/TokenDetails.tsx @@ -9,6 +9,7 @@ import { CopyToClipboard } from '../CopyToClipboard' import { AccountLink } from '../Account/AccountLink' import { DashboardLink } from '../../pages/ParatimeDashboardPage/DashboardLink' import { LongDataDisplay } from '../LongDataDisplay' +import { DelayedContractVerificationInfo } from '../Account/ContractVerificationInfo' export const TokenDetails: FC<{ isLoading?: boolean @@ -44,6 +45,10 @@ export const TokenDetails: FC<{ +
{t('contract.verification.title')}
+
+ {' '} +
{t(isMobile ? 'tokens.holdersCount_short' : 'tokens.holdersCount')}
{token.num_holders.toLocaleString()}
diff --git a/src/app/components/Tokens/TokenList.tsx b/src/app/components/Tokens/TokenList.tsx index b53a7eeab0..977fe70e94 100644 --- a/src/app/components/Tokens/TokenList.tsx +++ b/src/app/components/Tokens/TokenList.tsx @@ -5,6 +5,7 @@ import { TablePaginationProps } from '../Table/TablePagination' import { AccountLink } from '../Account/AccountLink' import { TokenLink } from './TokenLink' import { CopyToClipboard } from '../CopyToClipboard' +import { DelayedContractVerificationInfo } from '../Account/ContractVerificationInfo' type TokensProps = { tokens?: EvmToken[] @@ -20,6 +21,7 @@ export const TokenList = (props: TokensProps) => { { key: 'index', content: '' }, { key: 'name', content: t('common.name') }, { key: 'contract', content: t('common.smartContract') }, + { key: 'verification', content: t('contract.verification.title') }, { key: 'holders', content: t('tokens.holdersCount'), @@ -60,6 +62,16 @@ export const TokenList = (props: TokensProps) => { ), key: 'contactAddress', }, + { + key: 'verification', + content: ( + + ), + }, { content: token.num_holders.toLocaleString(), key: 'holdersCount',