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
efeb703c
Commit
efeb703c
authored
Oct 06, 2023
by
isstuev
Committed by
isstuev
Oct 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rebase fix
parent
52062102
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
19 additions
and
7 deletions
+19
-7
zkEvmRollup.ts
configs/app/features/zkEvmRollup.ts
+2
-2
.env.jest
configs/envs/.env.jest
+1
-0
.env.pw
configs/envs/.env.pw
+1
-0
schema.ts
deploy/tools/envs-validator/schema.ts
+1
-0
lib.tsx
jest/lib.tsx
+1
-0
app.tsx
lib/contexts/app.tsx
+1
-0
useNavItems.tsx
lib/hooks/useNavItems.tsx
+1
-1
getPageOgType.ts
lib/metadata/getPageOgType.ts
+2
-0
description.ts
lib/metadata/templates/description.ts
+2
-0
title.ts
lib/metadata/templates/title.ts
+2
-0
getPageType.ts
lib/mixpanel/getPageType.ts
+2
-0
TestApp.tsx
playwright/TestApp.tsx
+1
-0
configs.ts
playwright/utils/configs.ts
+0
-2
TxDetails.tsx
ui/tx/TxDetails.tsx
+1
-1
TxInternalsTableItem.tsx
ui/tx/internals/TxInternalsTableItem.tsx
+1
-1
No files found.
configs/app/features/zkEvmRollup.ts
View file @
efeb703c
...
...
@@ -5,8 +5,8 @@ import { getEnvValue } from '../utils';
const
title
=
'
ZkEVM rollup (L2) chain
'
;
const
config
:
Feature
<
{
L1BaseUrl
:
string
;
withdrawalUrl
?:
string
}
>
=
(()
=>
{
const
L1BaseUrl
=
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_L1_BASE_URL
);
const
isZkEvm
=
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_IS_ZKEVM_L2_NETWORK
)
===
'
true
'
;
const
L1BaseUrl
=
getEnvValue
(
'
NEXT_PUBLIC_L1_BASE_URL
'
);
const
isZkEvm
=
getEnvValue
(
'
NEXT_PUBLIC_IS_ZKEVM_L2_NETWORK
'
)
===
'
true
'
;
if
(
isZkEvm
&&
L1BaseUrl
)
{
return
Object
.
freeze
({
...
...
configs/envs/.env.jest
View file @
efeb703c
...
...
@@ -45,6 +45,7 @@ NEXT_PUBLIC_APP_ENV=testing
NEXT_PUBLIC_MARKETPLACE_CONFIG_URL=https://localhost:3000/marketplace-config.json
NEXT_PUBLIC_MARKETPLACE_SUBMIT_FORM=https://localhost:3000/marketplace-submit-form
NEXT_PUBLIC_IS_L2_NETWORK=false
NEXT_PUBLIC_IS_ZKEVM_L2_NETWORK=false
NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED=true
NEXT_PUBLIC_AUTH_URL=http://localhost:3100
NEXT_PUBLIC_LOGOUT_URL=https://blockscoutcom.us.auth0.com/v2/logout
...
...
configs/envs/.env.pw
View file @
efeb703c
...
...
@@ -41,6 +41,7 @@ NEXT_PUBLIC_APP_INSTANCE=pw
NEXT_PUBLIC_MARKETPLACE_CONFIG_URL=https://localhost:3000/marketplace-config.json
NEXT_PUBLIC_MARKETPLACE_SUBMIT_FORM=https://localhost:3000/marketplace-submit-form
NEXT_PUBLIC_IS_L2_NETWORK=false
NEXT_PUBLIC_IS_ZKEVM_L2_NETWORK=false
NEXT_PUBLIC_AD_BANNER_PROVIDER=slise
NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED=true
NEXT_PUBLIC_AUTH_URL=http://localhost:3100
...
...
deploy/tools/envs-validator/schema.ts
View file @
efeb703c
...
...
@@ -107,6 +107,7 @@ const rollupSchema = yup
.
object
()
.
shape
({
NEXT_PUBLIC_IS_L2_NETWORK
:
yup
.
boolean
(),
NEXT_PUBLIC_IS_ZKEVM_L2_NETWORK
:
yup
.
boolean
(),
NEXT_PUBLIC_L1_BASE_URL
:
yup
.
string
()
.
when
(
'
NEXT_PUBLIC_IS_L2_NETWORK
'
,
{
...
...
jest/lib.tsx
View file @
efeb703c
...
...
@@ -17,6 +17,7 @@ const PAGE_PROPS = {
id
:
''
,
height_or_hash
:
''
,
hash
:
''
,
number
:
''
,
q
:
''
,
};
...
...
lib/contexts/app.tsx
View file @
efeb703c
...
...
@@ -13,6 +13,7 @@ const AppContext = createContext<PageProps>({
id
:
''
,
height_or_hash
:
''
,
hash
:
''
,
number
:
''
,
q
:
''
,
});
...
...
lib/hooks/useNavItems.tsx
View file @
efeb703c
...
...
@@ -77,7 +77,7 @@ export default function useNavItems(): ReturnType {
txs
,
blocks
,
// eslint-disable-next-line max-len
{
text
:
'
Txn batches
'
,
nextRoute
:
{
pathname
:
'
/zkevm-l2-txn-batches
'
as
const
},
icon
:
txnBatchIcon
,
isActive
:
pathname
===
'
/zkevm-l2-txn-batches
'
||
pathname
===
'
/batch/[number]
'
},
{
text
:
'
Txn batches
'
,
nextRoute
:
{
pathname
:
'
/zkevm-l2-txn-batches
'
as
const
},
icon
:
txnBatchIcon
,
isActive
:
pathname
===
'
/zkevm-l2-txn-batches
'
||
pathname
===
'
/
zkevm-l2-txn-
batch/[number]
'
},
],
[
topAccounts
,
...
...
lib/metadata/getPageOgType.ts
View file @
efeb703c
...
...
@@ -36,6 +36,8 @@ const OG_TYPE_DICT: Record<Route['pathname'], OGPageType> = {
'
/l2-output-roots
'
:
'
Root page
'
,
'
/l2-txn-batches
'
:
'
Root page
'
,
'
/l2-withdrawals
'
:
'
Root page
'
,
'
/zkevm-l2-txn-batches
'
:
'
Root page
'
,
'
/zkevm-l2-txn-batch/[number]
'
:
'
Regular page
'
,
'
/404
'
:
'
Regular page
'
,
// service routes, added only to make typescript happy
...
...
lib/metadata/templates/description.ts
View file @
efeb703c
...
...
@@ -39,6 +39,8 @@ const TEMPLATE_MAP: Record<Route['pathname'], string> = {
'
/l2-output-roots
'
:
DEFAULT_TEMPLATE
,
'
/l2-txn-batches
'
:
DEFAULT_TEMPLATE
,
'
/l2-withdrawals
'
:
DEFAULT_TEMPLATE
,
'
/zkevm-l2-txn-batches
'
:
DEFAULT_TEMPLATE
,
'
/zkevm-l2-txn-batch/[number]
'
:
DEFAULT_TEMPLATE
,
'
/404
'
:
DEFAULT_TEMPLATE
,
// service routes, added only to make typescript happy
...
...
lib/metadata/templates/title.ts
View file @
efeb703c
...
...
@@ -34,6 +34,8 @@ const TEMPLATE_MAP: Record<Route['pathname'], string> = {
'
/l2-output-roots
'
:
'
output roots
'
,
'
/l2-txn-batches
'
:
'
Tx batches (L2 blocks)
'
,
'
/l2-withdrawals
'
:
'
withdrawals (L2 > L1)
'
,
'
/zkevm-l2-txn-batches
'
:
'
zkEvm L2 Tx batches
'
,
'
/zkevm-l2-txn-batch/[number]
'
:
'
zkEvm L2 Tx batch %number%
'
,
'
/404
'
:
'
error - page not found
'
,
// service routes, added only to make typescript happy
...
...
lib/mixpanel/getPageType.ts
View file @
efeb703c
...
...
@@ -34,6 +34,8 @@ export const PAGE_TYPE_DICT: Record<Route['pathname'], string> = {
'
/l2-output-roots
'
:
'
Output roots
'
,
'
/l2-txn-batches
'
:
'
Tx batches (L2 blocks)
'
,
'
/l2-withdrawals
'
:
'
Withdrawals (L2 > L1)
'
,
'
/zkevm-l2-txn-batches
'
:
'
ZkEvm L2 Tx batches
'
,
'
/zkevm-l2-txn-batch/[number]
'
:
'
ZkEvm L2 Tx batch details
'
,
'
/404
'
:
'
404
'
,
// service routes, added only to make typescript happy
...
...
playwright/TestApp.tsx
View file @
efeb703c
...
...
@@ -27,6 +27,7 @@ const defaultAppContext = {
id
:
''
,
height_or_hash
:
''
,
hash
:
''
,
number
:
''
,
q
:
''
,
},
};
...
...
playwright/utils/configs.ts
View file @
efeb703c
...
...
@@ -29,10 +29,8 @@ export const featureEnvs = {
value
:
'
[{"type":"omni","title":"OmniBridge","short_title":"OMNI"},{"type":"amb","title":"Arbitrary Message Bridge","short_title":"AMB"}]
'
,
},
zkRollup
:
[
{
name
:
'
NEXT_PUBLIC_IS_L2_NETWORK
'
,
value
:
'
true
'
},
{
name
:
'
NEXT_PUBLIC_IS_ZKEVM_L2_NETWORK
'
,
value
:
'
true
'
},
{
name
:
'
NEXT_PUBLIC_L1_BASE_URL
'
,
value
:
'
https://localhost:3101
'
},
{
name
:
'
NEXT_PUBLIC_L2_WITHDRAWAL_URL
'
,
value
:
'
https://localhost:3102
'
},
],
};
...
...
ui/tx/TxDetails.tsx
View file @
efeb703c
...
...
@@ -154,7 +154,7 @@ const TxDetails = () => {
</
Tag
>
)
}
</
DetailsInfoItem
>
{
config
.
features
.
zkEvmRollup
.
isEnabled
&&
(
{
data
.
zkevm_status
&&
(
<
DetailsInfoItem
title=
"Confirmation status"
isLoading=
{
isPlaceholderData
}
...
...
ui/tx/internals/TxInternalsTableItem.tsx
View file @
efeb703c
...
...
@@ -9,7 +9,7 @@ import rightArrowIcon from 'icons/arrows/east.svg';
import
Icon
from
'
ui/shared/chakra/Icon
'
;
import
Tag
from
'
ui/shared/chakra/Tag
'
;
import
AddressEntity
from
'
ui/shared/entities/address/AddressEntity
'
;
import
TxStatus
from
'
ui/shared/TxStatus
'
;
import
TxStatus
from
'
ui/shared/
statusTag/
TxStatus
'
;
import
{
TX_INTERNALS_ITEMS
}
from
'
ui/tx/internals/utils
'
;
type
Props
=
InternalTransaction
&
{
...
...
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