-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ops-bedrock:modify the script to support fast start devnet #73
Merged
owen-reorg
merged 17 commits into
bnb-chain:develop
from
welkin22:feature/fix_devnet_dev
Oct 24, 2023
Merged
ops-bedrock:modify the script to support fast start devnet #73
owen-reorg
merged 17 commits into
bnb-chain:develop
from
welkin22:feature/fix_devnet_dev
Oct 24, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Owen <[email protected]>
redhdx
previously approved these changes
Oct 23, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
owen-reorg
approved these changes
Oct 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR modifies the code related to the devnet section of optimism, allowing us to quickly start the devnet locally (with L1 network as BSC network and L2 network as opbnb network).
After merging the PR, we can use the following commands in the project root directory:
Initialize and start devnet:
Stop devnet:
Stop and clean devnet data:
View devnet logs:
To successfully start the network, please note the following:
yarn install
in the project root directory to install node.js dependencies. If you have previously performed a similar operation, it is recommended to delete thenode_modules
directory first and then execute theyarn install
command again.yarn build
in the project root directory to build ts scripts and compile the contracts.yarn install
, this may be caused by python3 installed on your computer. You need to install python 2.7 and configure the environment variable to specify the python version to use:export npm_config_python=/path/to/executable/python
.make devnet-up
command, use the makedevnet-up-deploy
command to start devnet. Thedevnet-up
command is not well adapted.For detailed instructions on using devnet, please see: https://docs.bnbchain.org/opbnb-docs/docs/tutorials/running-a-local-development-environment
Rationale
We need to be able to quickly start devnet to facilitate developers to debug or troubleshoot problems
Changes
Notable changes: