mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
@@ -218,7 +218,7 @@ export const withBlobTxs: Block = {
|
||||
blob_gas_used: '393216',
|
||||
burnt_blob_fees: '8461393325064192',
|
||||
excess_blob_gas: '79429632',
|
||||
blob_transaction_count: 1,
|
||||
blob_transactions_count: 1,
|
||||
};
|
||||
|
||||
export const withWithdrawals: Block = {
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ export interface Block {
|
||||
blob_gas_used?: string;
|
||||
burnt_blob_fees?: string;
|
||||
excess_blob_gas?: string;
|
||||
blob_transaction_count?: number;
|
||||
blob_transactions_count?: number;
|
||||
// ZKSYNC FIELDS
|
||||
zksync?: Omit<ZkSyncBatchesItem, 'number' | 'transactions_count' | 'timestamp'> & {
|
||||
batch_number: number | null;
|
||||
|
||||
@@ -119,11 +119,11 @@ const BlockDetails = ({ query }: Props) => {
|
||||
</Link>
|
||||
);
|
||||
|
||||
const blockBlobTxsNum = (config.features.dataAvailability.isEnabled && data.blob_transaction_count) ? (
|
||||
const blockBlobTxsNum = (config.features.dataAvailability.isEnabled && data.blob_transactions_count) ? (
|
||||
<>
|
||||
<span> including </span>
|
||||
<Link href={ route({ pathname: '/block/[height_or_hash]', query: { height_or_hash: heightOrHash, tab: 'blob_txs' } }, multichainContext) }>
|
||||
{ data.blob_transaction_count } blob txn{ data.blob_transaction_count === 1 ? '' : 's' }
|
||||
{ data.blob_transactions_count } blob txn{ data.blob_transactions_count === 1 ? '' : 's' }
|
||||
</Link>
|
||||
</>
|
||||
) : null;
|
||||
|
||||
@@ -16,7 +16,7 @@ export default function useBlockBlobTxsQuery({ heightOrHash, blockQuery, tab }:
|
||||
pathParams: { height_or_hash: heightOrHash },
|
||||
filters: { type: 'blob_transaction' },
|
||||
options: {
|
||||
enabled: Boolean(tab === 'blob_txs' && !blockQuery.isPlaceholderData && blockQuery.data?.blob_transaction_count),
|
||||
enabled: Boolean(tab === 'blob_txs' && !blockQuery.isPlaceholderData && blockQuery.data?.blob_transactions_count),
|
||||
placeholderData: generateListStub<'general:block_txs'>(TX, 3, { next_page_params: null }),
|
||||
refetchOnMount: false,
|
||||
},
|
||||
|
||||
+1
-1
@@ -103,7 +103,7 @@ const BlockPageContent = () => {
|
||||
</>
|
||||
),
|
||||
},
|
||||
config.features.dataAvailability.isEnabled && blockQuery.data?.blob_transaction_count ?
|
||||
config.features.dataAvailability.isEnabled && blockQuery.data?.blob_transactions_count ?
|
||||
{
|
||||
id: 'blob_txs',
|
||||
title: 'Blob txns',
|
||||
|
||||
Reference in New Issue
Block a user