Skip to content
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

Update genesis build #627

Merged
merged 2 commits into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions build-genesis.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash

DENOM=ustarx
CHAIN_ID=cygnusx-1
CHAIN_ID=cygnusx-1a
GENTXS=cygnusx-1
ONE_HOUR=3600
ONE_DAY=$(($ONE_HOUR * 24))
ONE_YEAR=$(($ONE_DAY * 365))
Expand Down Expand Up @@ -65,7 +66,7 @@ starsd add-genesis-account stars1wppujuuqrv52atyg8uw3x779r8w72ehrr5a4yx 50000000

echo "Processing validators..."
mkdir -p ~/.starsd/config/gentx
for i in $CHAIN_ID/gentx/*.json; do
for i in $GENTXS/gentx/*.json; do
echo $i
starsd add-genesis-account $(jq -r '.body.messages[0].delegator_address' $i) $VALIDATOR_COINS \
--vesting-amount $VALIDATOR_COINS \
Expand All @@ -76,4 +77,5 @@ done
starsd collect-gentxs
starsd validate-genesis

cp ~/.starsd/config/genesis.json $CHAIN_ID
cp ~/.starsd/config/genesis.json $GENTXS
jq -S -f normalize.jq ~/.starsd/config/genesis.json > $GENTXS/sorted_genesis.json
17 changes: 10 additions & 7 deletions cygnusx-1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

Block explorer: [https://explorer.cygnusx-1.publicawesome.dev/](https://explorer.cygnusx-1.publicawesome.dev/)

Genesis file: See [Generate genesis file](#generate-genesis-file)
Genesis file: https://github.com/public-awesome/networks/releases/download/cygnusx-1a/genesis.json

Hash: `sha256sum eacabd1f92a3d750610c53f27641aca0d38ec5fda370b4e821a05003e8b866f2`

Seeds: `b5c81e417113e283288c48a34f1d57c73a0c6682@seed.cygnusx-1.publicawesome.dev:36656`

Expand All @@ -16,7 +18,6 @@ Peers: https://hackmd.io/ruGVasSzR9iUhIirVff44Q?both

Thank you for submitting a gentx! This guide will provide instructions on getting ready for the testnet.


**The Chain Genesis Time is 17:00 UTC on July 15, 2021.**

Please have your validator up and ready by this time, and be available for further instructions if necessary
Expand All @@ -29,7 +30,7 @@ channel on the [Stargaze Discord](https://discord.gg/QeJWCrE).

This guide assumes that you have completed the tasks involved in [Part 1](cygnusx-1/part1.md). You should be running on a machine that meets the hardware requirements specified in Part 1 with Go installed. We are assuming you already have a daemon home (`$HOME/.starsd`) setup.

These examples are written targeting an Ubuntu 20.04 system. Relevant changes to commands should be made depending on the OS/architecture you are running on.
These examples are written targeting an Ubuntu 20.04 system. Relevant changes to commands should be made depending on the OS/architecture you are running on.

### Update starsd to v0.9.3

Expand Down Expand Up @@ -100,7 +101,7 @@ mkdir -p ~/.starsd/cosmovisor/genesis/bin
mkdir -p ~/.starsd/cosmovisor/upgrades
```

Cosmovisor requires some ENVIRONMENT VARIABLES be set in order to function properly. We recommend setting these in
Cosmovisor requires some ENVIRONMENT VARIABLES be set in order to function properly. We recommend setting these in
your `.profile` so it is automatically set in every session.

```
Expand All @@ -111,6 +112,7 @@ source ~/.profile
```

Finally, you should copy the starsd binary into the `cosmovisor/genesis` folder.

```
cp $GOPATH/bin/starsd ~/.starsd/cosmovisor/genesis/bin
```
Expand Down Expand Up @@ -179,11 +181,11 @@ Now that everything is setup and ready to go, you can start your node.
cosmovisor start
```

You will need some way to keep the process always running. If you're on linux, you can do this by creating a
You will need some way to keep the process always running. If you're on linux, you can do this by creating a
service.

```sh
sudo tee /etc/systemd/system/starsd.service > /dev/null <<EOF
sudo tee /etc/systemd/system/starsd.service > /dev/null <<EOF
[Unit]
Description=Stargaze Daemon
After=network-online.target
Expand Down Expand Up @@ -224,6 +226,7 @@ systemctl status starsd
Good luck! See ya in the Discord!

---
*Disclaimer: This content is provided for informational purposes only, and should not be relied upon as legal, business, investment, or tax advice. You should consult your own advisors as to those matters. References to any securities or digital assets are for illustrative purposes only and do not constitute an investment recommendation or offer to provide investment advisory services. Furthermore, this content is not directed at nor intended for use by any investors or prospective investors, and may not under any circumstances be relied upon when making investment decisions.*

_Disclaimer: This content is provided for informational purposes only, and should not be relied upon as legal, business, investment, or tax advice. You should consult your own advisors as to those matters. References to any securities or digital assets are for illustrative purposes only and do not constitute an investment recommendation or offer to provide investment advisory services. Furthermore, this content is not directed at nor intended for use by any investors or prospective investors, and may not under any circumstances be relied upon when making investment decisions._

This work is a derivative of ["Osmosis Genesis Validators Guide"](https://github.com/osmosis-labs/networks/genesis-validators.md), which is a derivative of ["Agoric Validator Guide"](https://github.com/Agoric/agoric-sdk/wiki/Validator-Guide) used under [CC BY](http://creativecommons.org/licenses/by/4.0/). The Agoric validator guide is itself is a derivative of ["Validating Kava Mainnet"](https://medium.com/kava-labs/validating-kava-mainnet-72fa1b6ea579) by [Kevin Davis](https://medium.com/@kevin_35106), used under [CC BY](http://creativecommons.org/licenses/by/4.0/). "Stargaze Cygnus X-1 Testnet Instructions" is licensed under [CC BY](http://creativecommons.org/licenses/by/4.0/) by [Stargaze](https://stargaze.fi/). It was extensively modified to be relevant to the Stargaze Chain.