-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* testing cache * modified go file to test cache * removed deprecated cleanup job * modified git clone of genesis-tinkerer * add naming to step * modified to cache linux * test cache umeed v103 * add name to cache * update from tinkered_genesis to mainnet_tinkered_genesis * add cache for tinkered genesis * add missing variable * remove os from cache key * add needed step for current umeed * testing need dependencie * change dependencie * transfered umeed build to tests workflow * moved to use fixed value to grab builded bin * add debug * add debug * add debug * fix filepath umeed build * add debug * add executable permission to umeed bins * add make * set umeed as executable * add chmod after download bin * fix run * turn to old way of compile umeed * removed debug flag * fix output path * fix output path * add dependencie between workflow files * remove comments and turn back on unit-cover * remove go file diff to test workflows * add parallel multistage building to e2e dockerfile * modified go file to test * modified another go file to test * add cache docker to e2e * removed debug flag from e2e * added multiple building stages to e2e docker * add no cache again * turn back changes from umee e2e docker * add needed debug flag to have sh in the distroless * removed debug tag from make docker build since it is basically mandatory to have sh at the e2e * removed change diff in *.go file * Update contrib/scripts/download-mainnet-umeed.sh Co-authored-by: toteki <63419657+toteki@users.noreply.github.com> * Update contrib/scripts/tikerer-mainnet-genesis.sh Co-authored-by: toteki <63419657+toteki@users.noreply.github.com> * Update contrib/scripts/tikerer-mainnet-genesis.sh Co-authored-by: toteki <63419657+toteki@users.noreply.github.com> * move to tinker-mainnet-genesis.sh * modified *.go file to test CI * removed *.go file diff Co-authored-by: toteki <63419657+toteki@users.noreply.github.com>
- Loading branch information
1 parent
36e618b
commit 71b0d68
Showing
11 changed files
with
138 additions
and
102 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
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,26 @@ | ||
#!/bin/bash -eu | ||
|
||
# Download the umeed binary with the same version as mainnet and unpack it | ||
|
||
# USAGE: ./download-mainnet-umeed.sh | ||
|
||
CWD="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
UMEED_BIN_MAINNET_URL_TARBALL=${UMEED_BIN_MAINNET_URL_TARBALL:-"https://github.com/umee-network/umee/releases/download/v1.0.3/umeed-v1.0.3-linux-amd64.tar.gz"} | ||
UMEED_BIN_MAINNET=${UMEED_BIN_MAINNET:-"$CWD/umeed-releases/umeed-v1.0.3-linux-amd64/umeed"} | ||
|
||
# Checks for the umeed v1 file | ||
if [ ! -f "$UMEED_BIN_MAINNET" ]; then | ||
echo "$UMEED_BIN_MAINNET doesn't exist" | ||
|
||
if [ -z $UMEED_BIN_MAINNET_URL_TARBALL ]; then | ||
echo You need to set the UMEED_BIN_MAINNET_URL_TARBALL variable | ||
exit 1 | ||
fi | ||
|
||
UMEED_RELEASES_PATH=$CWD/umeed-releases | ||
mkdir -p $UMEED_RELEASES_PATH | ||
wget -c $UMEED_BIN_MAINNET_URL_TARBALL -O - | tar -xz -C $UMEED_RELEASES_PATH | ||
|
||
UMEED_BIN_MAINNET_BASENAME=$(basename $UMEED_BIN_MAINNET_URL_TARBALL .tar.gz) | ||
UMEED_BIN_MAINNET=$UMEED_RELEASES_PATH/$UMEED_BIN_MAINNET_BASENAME/umeed | ||
fi |
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,31 @@ | ||
#!/bin/bash -eu | ||
|
||
# tinker the mainnet genesis by swapping polychain -> priv_validator_key | ||
|
||
# USAGE: ./tinker-mainnet-genesis.sh | ||
|
||
CWD="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
|
||
UMEEMAINNET_GENESIS_PATH="${UMEEMAINNET_GENESIS_PATH:-$CWD/mainnet_tinkered_genesis.json}" | ||
MAINNET_EXPORTED_GENESIS_URL="${MAINNET_EXPORTED_GENESIS_URL:-"https://storage.googleapis.com/umeedropzone/jul-28-umee-1-export.json.gz"}" | ||
EXPORTED_GENESIS_UNPROCESSED="${EXPORTED_GENESIS_UNPROCESSED:-$CWD/umeemainnet.genesis.json}" | ||
EXPORTED_GENESIS_UNZIPED="${EXPORTED_GENESIS_UNZIPED:-$CWD/umeemainnet.genesis.json.gz}" | ||
|
||
# Checks for the tinkered genesis file | ||
if [ ! -f "$UMEEMAINNET_GENESIS_PATH" ]; then | ||
echo "$UMEEMAINNET_GENESIS_PATH doesn't exist" | ||
|
||
if [ ! -f "$EXPORTED_GENESIS_UNPROCESSED" ]; then | ||
|
||
if [ ! -f $EXPORTED_GENESIS_UNZIPED ]; then | ||
echo "$EXPORTED_GENESIS_UNZIPED doesn't exist, we need to curl it" | ||
curl $MAINNET_EXPORTED_GENESIS_URL > $EXPORTED_GENESIS_UNZIPED | ||
fi | ||
|
||
echo "$EXPORTED_GENESIS_UNPROCESSED doesn't exist, we need to unpack" | ||
gunzip -k $EXPORTED_GENESIS_UNZIPED | ||
fi | ||
|
||
echo "$EXPORTED_GENESIS_UNPROCESSED exists and ready to be processed" | ||
EXPORTED_GENESIS_UNPROCESSED_PATH=$EXPORTED_GENESIS_UNPROCESSED COSMOS_GENESIS_TINKERER_SCRIPT=umeemainnet-fork.py EXPORTED_GENESIS_PROCESSED_PATH=$UMEEMAINNET_GENESIS_PATH $CWD/process_genesis.sh | ||
fi |
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