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
1456f7b6
Commit
1456f7b6
authored
Dec 19, 2024
by
tom
Committed by
tom goriunov
Dec 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] rename blob_tx_count to blob_transaction_count
parent
fcfadbc0
Changes
5
Hide 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 @
1456f7b6
...
@@ -215,7 +215,7 @@ export const withBlobTxs: Block = {
...
@@ -215,7 +215,7 @@ export const withBlobTxs: Block = {
blob_gas_used
:
'
393216
'
,
blob_gas_used
:
'
393216
'
,
burnt_blob_fees
:
'
8461393325064192
'
,
burnt_blob_fees
:
'
8461393325064192
'
,
excess_blob_gas
:
'
79429632
'
,
excess_blob_gas
:
'
79429632
'
,
blob_t
x
_count
:
1
,
blob_t
ransaction
_count
:
1
,
};
};
export
const
withWithdrawals
:
Block
=
{
export
const
withWithdrawals
:
Block
=
{
...
...
types/api/block.ts
View file @
1456f7b6
...
@@ -54,7 +54,7 @@ export interface Block {
...
@@ -54,7 +54,7 @@ export interface Block {
blob_gas_used
?:
string
;
blob_gas_used
?:
string
;
burnt_blob_fees
?:
string
;
burnt_blob_fees
?:
string
;
excess_blob_gas
?:
string
;
excess_blob_gas
?:
string
;
blob_t
x
_count
?:
number
;
blob_t
ransaction
_count
?:
number
;
// ZKSYNC FIELDS
// ZKSYNC FIELDS
zksync
?:
Omit
<
ZkSyncBatchesItem
,
'
number
'
|
'
transaction_count
'
|
'
timestamp
'
>
&
{
zksync
?:
Omit
<
ZkSyncBatchesItem
,
'
number
'
|
'
transaction_count
'
|
'
timestamp
'
>
&
{
batch_number
:
number
|
null
;
batch_number
:
number
|
null
;
...
...
ui/block/BlockDetails.tsx
View file @
1456f7b6
...
@@ -126,11 +126,11 @@ const BlockDetails = ({ query }: Props) => {
...
@@ -126,11 +126,11 @@ const BlockDetails = ({ query }: Props) => {
</
LinkInternal
>
</
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
>
<
span
>
including
</
span
>
<
LinkInternal
href=
{
route
({
pathname
:
'
/block/[height_or_hash]
'
,
query
:
{
height_or_hash
:
heightOrHash
,
tab
:
'
blob_txs
'
}
})
}
>
<
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
>
</
LinkInternal
>
</>
</>
)
:
null
;
)
:
null
;
...
...
ui/block/useBlockBlobTxsQuery.tsx
View file @
1456f7b6
...
@@ -16,7 +16,7 @@ export default function useBlockBlobTxsQuery({ heightOrHash, blockQuery, tab }:
...
@@ -16,7 +16,7 @@ export default function useBlockBlobTxsQuery({ heightOrHash, blockQuery, tab }:
pathParams
:
{
height_or_hash
:
heightOrHash
},
pathParams
:
{
height_or_hash
:
heightOrHash
},
filters
:
{
type
:
'
blob_transaction
'
},
filters
:
{
type
:
'
blob_transaction
'
},
options
:
{
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
}),
placeholderData
:
generateListStub
<
'
block_txs
'
>
(
TX
,
3
,
{
next_page_params
:
null
}),
refetchOnMount
:
false
,
refetchOnMount
:
false
,
},
},
...
...
ui/pages/Block.tsx
View file @
1456f7b6
...
@@ -77,7 +77,7 @@ const BlockPageContent = () => {
...
@@ -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
'
,
id
:
'
blob_txs
'
,
title
:
'
Blob txns
'
,
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