-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix-withdraw-btc-dust-output
- Loading branch information
Showing
11 changed files
with
197 additions
and
43 deletions.
There are no files selected for viewing
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
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
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
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
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
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 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 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 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 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 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 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