Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
9617521a
Commit
9617521a
authored
Dec 19, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] rename blob_tx_count to blob_transaction_count
parent
1b1d8c63
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
block.ts
mocks/blocks/block.ts
+1
-1
block.ts
types/api/block.ts
+1
-1
BlockDetails.tsx
ui/block/BlockDetails.tsx
+2
-2
useBlockBlobTxsQuery.tsx
ui/block/useBlockBlobTxsQuery.tsx
+1
-1
Block.tsx
ui/pages/Block.tsx
+1
-1
No files found.
mocks/blocks/block.ts
View file @
9617521a
...
...
@@ -215,7 +215,7 @@ export const withBlobTxs: Block = {
blob_gas_used
:
'
393216
'
,
burnt_blob_fees
:
'
8461393325064192
'
,
excess_blob_gas
:
'
79429632
'
,
blob_t
x
_count
:
1
,
blob_t
ransaction
_count
:
1
,
};
export
const
withWithdrawals
:
Block
=
{
...
...
types/api/block.ts
View file @
9617521a
...
...
@@ -54,7 +54,7 @@ export interface Block {
blob_gas_used
?:
string
;
burnt_blob_fees
?:
string
;
excess_blob_gas
?:
string
;
blob_t
x
_count
?:
number
;
blob_t
ransaction
_count
?:
number
;
// ZKSYNC FIELDS
zksync
?:
Omit
<
ZkSyncBatchesItem
,
'
number
'
|
'
transaction_count
'
|
'
timestamp
'
>
&
{
batch_number
:
number
|
null
;
...
...
ui/block/BlockDetails.tsx
View file @
9617521a
...
...
@@ -126,11 +126,11 @@ const BlockDetails = ({ query }: Props) => {
</
LinkInternal
>
);
const
blockBlobTxsNum
=
(
config
.
features
.
dataAvailability
.
isEnabled
&&
data
.
blob_t
x
_count
)
?
(
const
blockBlobTxsNum
=
(
config
.
features
.
dataAvailability
.
isEnabled
&&
data
.
blob_t
ransaction
_count
)
?
(
<>
<
span
>
including
</
span
>
<
LinkInternal
href=
{
route
({
pathname
:
'
/block/[height_or_hash]
'
,
query
:
{
height_or_hash
:
heightOrHash
,
tab
:
'
blob_txs
'
}
})
}
>
{
data
.
blob_t
x_count
}
blob txn
{
data
.
blob_tx
_count
===
1
?
''
:
'
s
'
}
{
data
.
blob_t
ransaction_count
}
blob txn
{
data
.
blob_transaction
_count
===
1
?
''
:
'
s
'
}
</
LinkInternal
>
</>
)
:
null
;
...
...
ui/block/useBlockBlobTxsQuery.tsx
View file @
9617521a
...
...
@@ -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_t
x
_count
),
enabled
:
Boolean
(
tab
===
'
blob_txs
'
&&
!
blockQuery
.
isPlaceholderData
&&
blockQuery
.
data
?.
blob_t
ransaction
_count
),
placeholderData
:
generateListStub
<
'
block_txs
'
>
(
TX
,
3
,
{
next_page_params
:
null
}),
refetchOnMount
:
false
,
},
...
...
ui/pages/Block.tsx
View file @
9617521a
...
...
@@ -77,7 +77,7 @@ const BlockPageContent = () => {
</>
),
},
config
.
features
.
dataAvailability
.
isEnabled
&&
blockQuery
.
data
?.
blob_t
x
_count
?
config
.
features
.
dataAvailability
.
isEnabled
&&
blockQuery
.
data
?.
blob_t
ransaction
_count
?
{
id
:
'
blob_txs
'
,
title
:
'
Blob txns
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment