Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
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
exchain
nebula
Commits
feab0245
Unverified
Commit
feab0245
authored
Dec 13, 2024
by
bendanzhentan
Committed by
GitHub
Dec 12, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: improve logging of interop-devnet/create-chains.sh (#13352)
parent
d386df32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
create-chains.sh
interop-devnet/create-chains.sh
+11
-8
No files found.
interop-devnet/create-chains.sh
View file @
feab0245
...
...
@@ -2,11 +2,16 @@
set
-eu
export
OP_INTEROP_MNEMONIC
=
"test test test test test test test test test test test junk"
log_info
()
{
echo
"[INFO]
$1
"
;
}
log_error
()
{
echo
"[ERROR]
$1
"
>
&2
;
}
# Run this with workdir set as root of the repo
if
[
-f
"../mise.toml"
]
;
then
ech
o
"Running create-chains script."
log_inf
o
"Running create-chains script."
else
echo
"Cannot run create-chains script, must be in interop-devnet dir, but currently in:"
log_error
"Cannot run create-chains script, must be in interop-devnet dir, but currently in:"
pwd
exit
1
fi
...
...
@@ -16,14 +21,12 @@ cd ..
# Check if already created
if
[
-d
".devnet-interop"
]
;
then
echo
"Already created chains
."
log_error
"Already created chains. Cleanup .devnet-interop dir if you want to force a re-creation
."
exit
1
else
ech
o
"Creating new interop devnet chain configs"
log_inf
o
"Creating new interop devnet chain configs"
fi
export
OP_INTEROP_MNEMONIC
=
"test test test test test test test test test test test junk"
go run ./op-node/cmd interop dev-setup
\
--artifacts-dir
=
packages/contracts-bedrock/forge-artifacts
\
--foundry-dir
=
packages/contracts-bedrock
\
...
...
@@ -48,7 +51,7 @@ eth2-testnet-genesis deneb \
--eth1-withdrawal-address
=
0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
\
--eth1-match-genesis-time
ech
o
"Writing env files now..."
log_inf
o
"Writing env files now..."
# write env files for each L2 service
...
...
@@ -74,4 +77,4 @@ echo "OP_PROPOSER_GAME_FACTORY_ADDRESS=$(jq -r .DisputeGameFactoryProxy .devnet-
# batcher
echo
"OP_BATCHER_PRIVATE_KEY=
$(
$key_cmd
--name
=
batcher
)
"
>>
"
$chain_env
/op-batcher.env"
ech
o
"Interop devnet setup is complete!"
log_inf
o
"Interop devnet setup is complete!"
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