forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 9
consolidate test scripts #59
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
4277650
consolidate test scripts
cliff0412 fd6398c
refactor
cliff0412 340b652
Merge branch 'pre-release' into testnet_migration
cliff0412 e256231
resolve conflicts
cliff0412 2146987
fix build op contracts
cliff0412 d70b357
fix op_stack image build
cliff0412 33c4c1a
use dev for op-geth
cliff0412 68a0dea
fix setGasToken
cliff0412 dd072a2
remove SystemConfig UpdateType GAS_PAYING_TOKEN event
doutv b11f774
refactoring
cliff0412 d9f11cd
Merge remote-tracking branch 'origin/testnet_migration' into testnet_…
cliff0412 dffc9be
fix typo
doutv 13cacd7
fix sysconfig
cliff0412 f6bfa4c
Merge branch 'testnet_migration' of github.com:okx/optimism into test…
cliff0412 41a74ba
refactoring
cliff0412 d24d6b9
add patch
cliff0412 a02942d
fix: build image sequence
2b7cd75
feat: add cdk image env
02c901f
feat: set ARCH to default value using docker cmd
e0c8eb3
update testnet genesisGasParameters and readme
cliff0412 ec6dca7
Merge branch 'testnet_migration' of github.com:okx/optimism into test…
cliff0412 ebc1fc2
use gopath for install go bin
cliff0412 9c5ba7c
add cgt_enable (#66)
cliff0412 874ee68
Update testnet readme steps
Vui-Chee c985a09
put migration into separate file
cliff0412 f2af80b
refactor l1-geth
cliff0412 d4625e1
merge dev
cliff0412 b4f8bec
Merge remote-tracking branch 'origin/pre-release' into testnet_migration
cliff0412 135fe9d
merge with pre-release
cliff0412 660538e
refactor
cliff0412 0c207e9
sync op-geth
cliff0412 5f14698
update testnet readme for regenesis
Vui-Chee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
cliff0412 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| # ./build_images.sh --all # build all images. add --force if want to force rebuild | ||
| make clean | ||
| cp local.env .env | ||
| ./1-start-erigon.sh | ||
| ./2-deploy-op-contracts.sh | ||
| ./3-stop-erigon.sh | ||
| ./4-migrate-op.sh | ||
| ./5-start-op.sh | ||
| ./6-build-op-program.sh | ||
| ./7-setup-fraud-proof.sh |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| #!/bin/bash | ||
| set -e | ||
| set -x | ||
|
|
||
| if ! [ -f .env ]; then | ||
| echo "need to provide .env file" | ||
| fi | ||
|
|
||
| source .env | ||
| source tools.sh | ||
|
|
||
| if [ "$ENV" = "local" ]; then | ||
| COMPOSE_FILE="docker-compose-local.yml" | ||
| else | ||
| COMPOSE_FILE="docker-compose.yml" | ||
| fi | ||
|
|
||
| DOCKER_COMPOSE=$(shell docker compose version >/dev/null 2>&1 && echo "docker compose" || echo "docker-compose") | ||
| DOCKER_COMPOSE_CMD="${DOCKER_COMPOSE} -f ${COMPOSE_FILE}" | ||
| echo ${DOCKER_COMPOSE_CMD} | ||
|
|
||
| # 1. setup l1 | ||
| # 2. run & init erigon pp | ||
| start_local_xlayer_erigon() { | ||
| export ENV=local | ||
| make run_erigon | ||
| sleep 3 | ||
| # Calculate addresses for all actors | ||
| OP_BATCHER_ADDR=$(cast wallet a $OP_BATCHER_PRIVATE_KEY) | ||
| OP_PROPOSER_ADDR=$(cast wallet a $OP_PROPOSER_PRIVATE_KEY) | ||
| OP_CHALLENGER_ADDR=$(cast wallet a $OP_CHALLENGER_PRIVATE_KEY) | ||
|
|
||
| # Wait for L1 node to finish syncing | ||
| while [[ "$(cast rpc eth_syncing --rpc-url $L1_RPC_URL)" != "false" ]]; do | ||
| echo "Waiting for node to finish syncing..." | ||
| sleep 1 | ||
| done | ||
|
|
||
| # Fund all actor addresses | ||
| for addr in $OP_BATCHER_ADDR $OP_PROPOSER_ADDR $OP_CHALLENGER_ADDR; do | ||
| cast send --private-key $RICH_PRIVATE_KEY --value 100ether $addr --legacy --rpc-url $L1_RPC_URL | ||
| done | ||
| } | ||
|
|
||
| setup_xlayer_erigon() { | ||
| if [ "$ENV" = "local" ]; then | ||
| echo "Starting local environment setup..." | ||
| start_local_xlayer_erigon | ||
| elif [ "$ENV" = "testnet" ]; then | ||
| echo "Starting ${ENV} environment setup..." | ||
| echo "not implemented" | ||
| exit 1 | ||
| else | ||
| echo "Starting ${ENV} environment setup..." | ||
| echo "not implemented" | ||
| exit 1 | ||
| fi | ||
| } | ||
|
|
||
| setup_xlayer_erigon |
Oops, something went wrong.
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.
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.
Why delete these code?
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.
after discussion with louis & jason.huang,this is one time event only and only can be OKB, so we delete. shall we add back? we can discuss