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
d7913157
Commit
d7913157
authored
May 03, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide L1 status and Batch fields from tx and block details
parent
3dd86083
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
27 deletions
+36
-27
ENVS.md
docs/ENVS.md
+4
-0
block.ts
types/views/block.ts
+2
-0
tx.ts
types/views/tx.ts
+2
-0
BlockDetails.tsx
ui/block/BlockDetails.tsx
+22
-22
TxInfo.tsx
ui/tx/details/TxInfo.tsx
+6
-5
No files found.
docs/ENVS.md
View file @
d7913157
...
...
@@ -200,6 +200,8 @@ Settings for meta tags, OG tags and SEO
|
`total_reward`
| Total block reward |
|
`nonce`
| Block nonce |
|
`miner`
| Address of block's miner or validator |
|
`L1_status`
| Short interpretation of the batch lifecycle (applicable for Rollup chains) |
|
`batch`
| Batch index (applicable for Rollup chains) |
...
...
@@ -234,6 +236,8 @@ Settings for meta tags, OG tags and SEO
|
`tx_fee`
| Total transaction fee |
|
`gas_fees`
| Gas fees breakdown |
|
`burnt_fees`
| Amount of native coin burnt for transaction |
|
`L1_status`
| Short interpretation of the batch lifecycle (applicable for Rollup chains) |
|
`batch`
| Batch index (applicable for Rollup chains) |
##### Transaction additional fields list
| Id | Description |
...
...
types/views/block.ts
View file @
d7913157
...
...
@@ -5,6 +5,8 @@ export const BLOCK_FIELDS_IDS = [
'
total_reward
'
,
'
nonce
'
,
'
miner
'
,
'
L1_status
'
,
'
batch
'
,
]
as
const
;
export
type
BlockFieldId
=
ArrayElement
<
typeof
BLOCK_FIELDS_IDS
>
;
types/views/tx.ts
View file @
d7913157
...
...
@@ -7,6 +7,8 @@ export const TX_FIELDS_IDS = [
'
tx_fee
'
,
'
gas_fees
'
,
'
burnt_fees
'
,
'
L1_status
'
,
'
batch
'
,
]
as
const
;
export
type
TxFieldsId
=
ArrayElement
<
typeof
TX_FIELDS_IDS
>
;
...
...
ui/block/BlockDetails.tsx
View file @
d7913157
...
...
@@ -220,28 +220,28 @@ const BlockDetails = ({ query }: Props) => {
</
DetailsInfoItem
>
)
}
{
rollupFeature
.
isEnabled
&&
rollupFeature
.
type
===
'
zkSync
'
&&
data
.
zksync
&&
(
<
>
<
DetailsInfoItem
title=
"Batch
"
hint=
"Batch number"
isLoading=
{
isPlaceholderData
}
>
{
data
.
zksync
.
batch_number
?
(
<
BatchEntityL2
isLoading=
{
isPlaceholderData
}
number=
{
data
.
zksync
.
batch_number
}
/>
)
:
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
Pending
</
Skeleton
>
}
</
DetailsInfoItem
>
<
DetailsInfoItem
title=
"Status"
hint=
"Status is the short interpretation of the batch lifecycle
"
isLoading=
{
isPlaceholderData
}
>
<
VerificationSteps
steps=
{
ZKSYNC_L2_TX_BATCH_STATUSES
}
currentStep=
{
data
.
zksync
.
status
}
isLoading=
{
isPlaceholderData
}
/
>
<
/
DetailsInfoItem
>
</>
{
rollupFeature
.
isEnabled
&&
rollupFeature
.
type
===
'
zkSync
'
&&
data
.
zksync
&&
!
config
.
UI
.
views
.
block
.
hiddenFields
?.
batch
&&
(
<
DetailsInfoItem
title=
"Batch"
hint=
"Batch number
"
isLoading=
{
isPlaceholderData
}
>
{
data
.
zksync
.
batch_number
?
(
<
BatchEntityL2
isLoading=
{
isPlaceholderData
}
number=
{
data
.
zksync
.
batch_number
}
/>
)
:
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
Pending
</
Skeleton
>
}
</
DetailsInfoItem
>
)
}
{
rollupFeature
.
isEnabled
&&
rollupFeature
.
type
===
'
zkSync
'
&&
data
.
zksync
&&
!
config
.
UI
.
views
.
block
.
hiddenFields
?.
L1_status
&&
(
<
DetailsInfoItem
title=
"Status
"
hint=
"Status is the short interpretation of the batch lifecycle"
isLoading=
{
isPlaceholderData
}
>
<
VerificationSteps
steps=
{
ZKSYNC_L2_TX_BATCH_STATUSES
}
currentStep=
{
data
.
zksync
.
status
}
isLoading=
{
isPlaceholderData
}
/
>
</
DetailsInfoItem
>
)
}
{
!
config
.
UI
.
views
.
block
.
hiddenFields
?.
miner
&&
(
...
...
ui/tx/details/TxInfo.tsx
View file @
d7913157
...
...
@@ -160,7 +160,8 @@ const TxInfo = ({ data, isLoading, socketStatus }: Props) => {
</
Tag
>
)
}
</
DetailsInfoItem
>
{
rollupFeature
.
isEnabled
&&
rollupFeature
.
type
===
'
optimistic
'
&&
data
.
op_withdrawals
&&
data
.
op_withdrawals
.
length
>
0
&&
(
{
rollupFeature
.
isEnabled
&&
rollupFeature
.
type
===
'
optimistic
'
&&
data
.
op_withdrawals
&&
data
.
op_withdrawals
.
length
>
0
&&
!
config
.
UI
.
views
.
tx
.
hiddenFields
?.
L1_status
&&
(
<
DetailsInfoItem
title=
"Withdrawal status"
hint=
"Detailed status progress of the transaction"
...
...
@@ -181,7 +182,7 @@ const TxInfo = ({ data, isLoading, socketStatus }: Props) => {
</
Flex
>
</
DetailsInfoItem
>
)
}
{
data
.
zkevm_status
&&
(
{
data
.
zkevm_status
&&
!
config
.
UI
.
views
.
tx
.
hiddenFields
?.
L1_status
&&
(
<
DetailsInfoItem
title=
"Confirmation status"
hint=
"Status of the transaction confirmation path to L1"
...
...
@@ -198,7 +199,7 @@ const TxInfo = ({ data, isLoading, socketStatus }: Props) => {
<
TxRevertReason
{
...
data
.
revert_reason
}
/>
</
DetailsInfoItem
>
)
}
{
data
.
zksync
&&
(
{
data
.
zksync
&&
!
config
.
UI
.
views
.
tx
.
hiddenFields
?.
L1_status
&&
(
<
DetailsInfoItem
title=
"L1 status"
hint=
"Status is the short interpretation of the batch lifecycle"
...
...
@@ -229,7 +230,7 @@ const TxInfo = ({ data, isLoading, socketStatus }: Props) => {
</>
)
}
</
DetailsInfoItem
>
{
data
.
zkevm_batch_number
&&
(
{
data
.
zkevm_batch_number
&&
!
config
.
UI
.
views
.
tx
.
hiddenFields
?.
batch
&&
(
<
DetailsInfoItem
title=
"Tx batch"
hint=
"Batch index for this transaction"
...
...
@@ -241,7 +242,7 @@ const TxInfo = ({ data, isLoading, socketStatus }: Props) => {
/>
</
DetailsInfoItem
>
)
}
{
data
.
zksync
&&
(
{
data
.
zksync
&&
!
config
.
UI
.
views
.
tx
.
hiddenFields
?.
batch
&&
(
<
DetailsInfoItem
title=
"Batch"
hint=
"Batch number"
...
...
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