diff --git a/project.d.ts b/project.d.ts index 7f0120da..c745d2a9 100644 --- a/project.d.ts +++ b/project.d.ts @@ -267,26 +267,9 @@ interface Token { } interface AstraHolder { - address: { - contract_code: any - decompiled: boolean - fetched_coin_balance: { - value: string - } - fetched_coin_balance_block_number: number - gas_used: number - has_decompiled_code: any - hash: string - inserted_at: string - nonce: number - state: any - token_transfers_count: number - transactions_count: number - updated_at: string - verified: boolean - } - total_supply: string - tx_count: number + address: string + balance: string + txnCount: number } interface UseTokenHookData { @@ -306,5 +289,9 @@ interface TokenResponse { interface TopAstraHolderResponse { hasNextPage: boolean + nextPageParams: { + offset: number + page: number + } result: AstraHolder[] } diff --git a/views/accounts/HolderRow.tsx b/views/accounts/HolderRow.tsx index df03342c..482a9215 100644 --- a/views/accounts/HolderRow.tsx +++ b/views/accounts/HolderRow.tsx @@ -22,14 +22,12 @@ export default function HolderRow({ index, account }: Props) { >
{index}
- - {account.address.hash} + + {account.address}
- - {account.address.fetched_coin_balance.value} - + {account.balance} ASA
@@ -39,7 +37,7 @@ export default function HolderRow({ index, account }: Props) { 'padding-left-lg text-center money money-xs contrast-color-70 block-ver-center col-2' )} > - {account.address.transactions_count || 0} + {account.txnCount} )