From 218d81ad27cd955e130e5161b62c4388b6fbef1f Mon Sep 17 00:00:00 2001 From: EG-easy <1018eguchi@gmail.com> Date: Sat, 15 Jan 2022 21:13:46 +0900 Subject: [PATCH 1/2] add nibiru-3000 docs --- nibiru-3000/README.md | 79 ++++++++++++++++++++++++++++++++++++++ nibiru-3000/gentxs/eg.json | 1 + 2 files changed, 80 insertions(+) create mode 100644 nibiru-3000/README.md create mode 100644 nibiru-3000/gentxs/eg.json diff --git a/nibiru-3000/README.md b/nibiru-3000/README.md new file mode 100644 index 00000000..1c5e7152 --- /dev/null +++ b/nibiru-3000/README.md @@ -0,0 +1,79 @@ +# nibiru-3000 Testnet + +nibiru-3000 is the final testnet before mainnet launch. The main purpose of this testnet is to simulate upgrade process with the orchestration of validators. Besides we will test pre-released GAME GS Pad which allows users to interact with our blockchain through governance and staking. + +- Go version: [v1.17+](https://golang.org/dl/) +- Nibirud version: [v0.9](https://github.com/cosmos-gaminghub/nibiru/releases/tag/v0.9) + + +## Schedule +**Genesis Validators Application Period** + +Until January 19, 2021 11:00 GMT + +- [**Submit Gentx**](#gentx-collection) + +**Genesis Launch** + +January 21, 2021 11:00 GMT + +**Node Upgrade Event** + +January 26, 2021 11:00 GMT + +## genesis params (changed from default) + +``` +"max_validators": 300 +"send_enabled": false +"receive_enabled": false +"signed_blocks_window": "10000" +"min_signed_per_window": "0.050000000000000000" +"unbonding_time": "86400s" +"voting_period": "86400s" +``` + +- You have to keep up at least 5% in the last 10000block for avoid downtime slashing. +- You have to wait 1day to unbond your token. +- Voting period is 1day. + + +## GenTx Collection +0. Install nibiru +``` +git clone https://github.com/cosmos-gaminghub/nibiru.git +cd nibiru && git checkout -b v0.9 tags/0.9 +make install +``` + +Make sure to checkout to `v0.9` tag. + +1. Initialize the nibiru directories and create the local file with the correct chain-id + +``` +nibirud init --chain-id=nibiru-3000 +``` + +2. Create a local key pair in the keybase +``` +nibirud keys add +``` + +3. Add the account to your local genesis file with a given amount and key you just created. +``` +nibirud add-genesis-account $(nibirud keys show -a) 100000000000ugame +``` + +4. Create the gentx +``` +nibirud gentx 100000000000ugame --commission-rate=0.1 --commission-max-rate=1 --commission-max-change-rate=0.1 --pubkey $(nibirud tendermint show-validator) --chain-id=nibiru-3000 +``` + +5. Create Pull Request to this repository ([nibiru-3000/gentxs](./gentxs)) with the file `.json`. + + +## Node Upgrade Event +In this testnet, we will update nibirud version from v0.9 to [sm-upgrade](https://github.com/cosmos-gaminghub/nibiru/releases/tag/sm-upgrade). +We will experience `softwareUpgrade` through governance voting, and all nodes(including validators) are required to switch their binary at the designated block height. Manual update and automatic update are both fine. If you haven't try automatic update with `Cosmovisor`, you can try in this testnet. + +Check how to use Cosmovisor in [our docs](https://docs.gamenet.one/config/cosmovisor.html). diff --git a/nibiru-3000/gentxs/eg.json b/nibiru-3000/gentxs/eg.json new file mode 100644 index 00000000..4f3f5a16 --- /dev/null +++ b/nibiru-3000/gentxs/eg.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"eg","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"1.000000000000000000","max_change_rate":"0.100000000000000000"},"min_self_delegation":"1","delegator_address":"game1upflpv9fs3zhjck6my83qf79uzeumagl7943cm","validator_address":"gamevaloper1upflpv9fs3zhjck6my83qf79uzeumaglwvauqp","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"Aq+Uph5rTzUkVgxAWZfkkb4kecc/tLrvUA4cS60kE7w="},"value":{"denom":"ugame","amount":"100000000000"}}],"memo":"00473a6ec472f67540ffe75f96f8be16fc4b5f8d@172.29.22.32:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"Awkwpx1RalJQ2OnnoH8rAfuggV7uhzDlFTOIGPPH8kMi"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["HeQ2rxZwlbsl6rH6IOBh5L2XyRJLWP4k/bGk/hM7ChsbQF5ZUJNBrEyaCMnlhCDUsp62ltW1GqTHU9LiwJkpVg=="]} From 64193135fe6612ecd9396377d56f9d5f647a5378 Mon Sep 17 00:00:00 2001 From: EG-easy <1018eguchi@gmail.com> Date: Sat, 15 Jan 2022 21:17:42 +0900 Subject: [PATCH 2/2] update workflow check --- .github/workflows/verify-gentx-signatures.yaml | 2 +- scripts/generate-genesis.sh | 2 +- scripts/verify-gentx.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/verify-gentx-signatures.yaml b/.github/workflows/verify-gentx-signatures.yaml index d9b16834..24973bfd 100644 --- a/.github/workflows/verify-gentx-signatures.yaml +++ b/.github/workflows/verify-gentx-signatures.yaml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/setup-go@v2.1.3 with: - go-version: 1.16 + go-version: 1.17 - uses: actions/checkout@v2 - name: gentx-validation run: | diff --git a/scripts/generate-genesis.sh b/scripts/generate-genesis.sh index 59341d42..afc47bf9 100644 --- a/scripts/generate-genesis.sh +++ b/scripts/generate-genesis.sh @@ -1,6 +1,6 @@ #!/bin/bash -NETWORK=neuron-1 +NETWORK=nibiru-3000 DAEMON=nibirud HOME_DIR=~/.nibiru CONFIG=~/.nibiru/config diff --git a/scripts/verify-gentx.sh b/scripts/verify-gentx.sh index f5f7dda6..72d7ec01 100644 --- a/scripts/verify-gentx.sh +++ b/scripts/verify-gentx.sh @@ -1,5 +1,5 @@ #!/bin/bash -NETWORK=neuron-1 +NETWORK=nibiru-3000 MAX_BOND=100000000000 extraquery='[.body.messages[] | select(."@type" != "/cosmos.staking.v1beta1.MsgCreateValidator")] | length' @@ -18,7 +18,7 @@ for path in $NETWORK/gentxs/*.json; do exit 1 fi - # only allow "game" tokens to be bonded + # only allow "ugame" tokens to be bonded if [ "$(jq "$denomquery" "$path")" != "0" ]; then echo "invalid denomination" exit 1