-
Notifications
You must be signed in to change notification settings - Fork 173
test: add stateful end to end test #2360
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
9 commits
Select commit
Hold shift + click to select a range
6926445
add import data
kingpinXD 32a5750
add import data e2e
kingpinXD 844af3d
add a flag for modifying genesis state
kingpinXD 92af96b
add rosetta script
kingpinXD 2e00527
download import data
kingpinXD 999b222
remove unused params
kingpinXD c91ffeb
remove unused params
kingpinXD a25028d
generate files
kingpinXD cd0626a
merge develop
kingpinXD 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
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
kingpinXD 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| version: "3" | ||
|
|
||
| # This docker-compose file configures the localnet environment | ||
| # it contains the following services: | ||
| # - ZetaChain with 2 nodes (zetacore0, zetacore1) | ||
| # - A observer set with 2 clients (zetaclient0, zetaclient1) | ||
| # - An Ethereum node (eth) | ||
| # - A Bitcoin node (bitcoin) | ||
| # - A Rosetta API (rosetta) | ||
| # - An orchestrator to manage interaction with the localnet (orchestrator) | ||
| services: | ||
| rosetta: | ||
| entrypoint: ["/root/start-rosetta.sh"] | ||
|
|
||
| zetacore0: | ||
| entrypoint: ["/root/start-zetacored.sh", "2","import-data"] | ||
| volumes: | ||
| - ~/genesis_export/:/root/genesis_data | ||
|
|
||
| zetacore1: | ||
| entrypoint: ["/root/start-zetacored.sh", "2","import-data"] | ||
|
|
||
| zetaclient0: | ||
| entrypoint: ["/root/start-zetaclientd.sh"] | ||
|
|
||
| zetaclient1: | ||
| entrypoint: ["/root/start-zetaclientd.sh"] | ||
|
|
||
| orchestrator: | ||
| entrypoint: ["/work/start-zetae2e.sh", "local"] |
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,15 @@ | ||
| #!/bin/bash | ||
| if [ $# -lt 1 ] | ||
| then | ||
| echo "Usage: import-data.sh [network]" | ||
| exit 1 | ||
| fi | ||
|
|
||
| NETWORK=$1 | ||
| echo "NETWORK: ${NETWORK}" | ||
| rm -rf ~/genesis_export/ | ||
| mkdir ~/genesis_export/ | ||
| echo "Download Latest State Export" | ||
| LATEST_EXPORT_URL=$(curl https://snapshots.zetachain.com/latest-state-export | jq -r ."${NETWORK}") | ||
| echo "LATEST EXPORT URL: ${LATEST_EXPORT_URL}" | ||
| wget -q ${LATEST_EXPORT_URL} -O ~/genesis_export/exported-genesis.json |
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,14 @@ | ||
| #!/bin/bash | ||
|
|
||
| # This script is used to start the Rosetta API server for the Zetacore network. | ||
|
|
||
| echo "Waiting for network to start producing blocks" | ||
| CURRENT_HEIGHT=0 | ||
| WAIT_HEIGHT=1 | ||
| while [[ $CURRENT_HEIGHT -lt $WAIT_HEIGHT ]] | ||
| do | ||
| CURRENT_HEIGHT=$(curl -s zetacore0:26657/status | jq '.result.sync_info.latest_block_height' | tr -d '"') | ||
| sleep 5 | ||
| done | ||
|
|
||
| zetacored rosetta --tendermint zetacore0:26657 --grpc zetacore0:9090 --network athens_101-1 --blockchain zetacore |
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.