Skip to content

Commit

Permalink
feat: update ci exported genesis (#1392)
Browse files Browse the repository at this point in the history
## Description

- Updates the exported genesis in CI
- Update version of mainnet bin to v1.1.2

closes: #XXXX

---

### Author Checklist

_All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues._

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] added appropriate labels to the PR
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/umee-network/umee/blob/main/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

_All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items._

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
  • Loading branch information
RafilxTenfen committed Sep 16, 2022
1 parent 844440c commit 3723086
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,25 +164,25 @@ jobs:

- name: cache umeed mainnet
uses: actions/cache@v3
id: cache-umeed-v103
id: umeed-v112
with:
path: ./contrib/scripts/umeed-releases/umeed-v1.0.3-linux-amd64/umeed
key: umeed-v103
path: ./contrib/scripts/umeed-releases/umeed-v1.1.2-linux-amd64/umeed
key: umeed-v112
- name: download mainnet binary
if: steps.cache-umeed-v103.outputs.cache-hit != 'true'
if: steps.umeed-v112.outputs.cache-hit != 'true'
run: |
./contrib/scripts/download-mainnet-umeed.sh
- name: cache mainnet tinkered genesis
uses: actions/cache@v3
id: cache-tinkered-genesis
id: tinkered-genesis-sep-15
with:
path: ./contrib/scripts/mainnet_tinkered_genesis.json
key: mainnet-tinkered-genesis
key: tinkered-genesis-sep-15
- name: tinkerer mainnet genesis
if: steps.cache-tinkered-genesis.outputs.cache-hit != 'true'
if: steps.tinkered-genesis-sep-15.outputs.cache-hit != 'true'
run: |
./contrib/scripts/tinker-mainnet-genesis.sh
- name: Fork mainnet and upgrade from v1.0.3 to v.3.x.x
- name: Fork mainnet and upgrade from v1.1.2 to v.3.x.x
if: env.GIT_DIFF
run: |
chmod +x ./build/umeed
Expand Down
4 changes: 2 additions & 2 deletions contrib/scripts/download-mainnet-umeed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# 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"}
UMEED_BIN_MAINNET_URL_TARBALL=${UMEED_BIN_MAINNET_URL_TARBALL:-"https://github.com/umee-network/umee/releases/download/v1.1.2/umeed-v1.1.2-linux-amd64.tar.gz"}
UMEED_BIN_MAINNET=${UMEED_BIN_MAINNET:-"$CWD/umeed-releases/umeed-v1.1.2-linux-amd64/umeed"}

# Checks for the umeed v1 file
if [ ! -f "$UMEED_BIN_MAINNET" ]; then
Expand Down
2 changes: 1 addition & 1 deletion contrib/scripts/tinker-mainnet-genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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"}"
MAINNET_EXPORTED_GENESIS_URL="${MAINNET_EXPORTED_GENESIS_URL:-"https://storage.googleapis.com/umeedropzone/artemis-mainnet-sep-15-exported-genesis.json.gz"}"
EXPORTED_GENESIS_UNPROCESSED="${EXPORTED_GENESIS_UNPROCESSED:-$CWD/umeemainnet.genesis.json}"
EXPORTED_GENESIS_UNZIPED="${EXPORTED_GENESIS_UNZIPED:-$CWD/umeemainnet.genesis.json.gz}"

Expand Down
1 change: 1 addition & 0 deletions contrib/scripts/umeemainnet_fork.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ LOG_LEVEL="${LOG_LEVEL:-debug}"
BLOCK_TIME="${BLOCK_TIME:-6}"
UPGRADE_TITLE="${UPGRADE_TITLE:-"v1.1-v3.0"}"
UMEED_BIN_CURRENT="${UMEED_BIN_CURRENT:-$FORK_DIR/../../build/umeed}"
UMEED_BIN_MAINNET="${UMEED_BIN_MAINNET:-$FORK_DIR/umeed-releases/umeed-v1.1.2-linux-amd64/umeed}"
UMEEMAINNET_GENESIS_PATH="${UMEEMAINNET_GENESIS_PATH:-$CWD/mainnet_tinkered_genesis.json}"
NODE_PRIV_KEY="${NODE_PRIV_KEY:-$FORK_DIR/priv_validator_key.json}"
SEC_AWAIT_NODE_START="${SEC_AWAIT_NODE_START:-80}"
Expand Down

0 comments on commit 3723086

Please sign in to comment.