Skip to content

Commit

Permalink
Merge pull request cosmos-gaminghub#375 from cosmos-gaminghub/feature…
Browse files Browse the repository at this point in the history
…/nibiru-3000-docs

add nibiru-3000 docs
  • Loading branch information
EG-easy authored Jan 15, 2022
2 parents 7db3f27 + 6419313 commit dc15de3
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify-gentx-signatures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: 1.16
go-version: 1.17
- uses: actions/checkout@v2
- name: gentx-validation
run: |
Expand Down
79 changes: 79 additions & 0 deletions nibiru-3000/README.md
Original file line number Diff line number Diff line change
@@ -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 <moniker> --chain-id=nibiru-3000
```

2. Create a local key pair in the keybase
```
nibirud keys add <your key name>
```

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 <your key name> -a) 100000000000ugame
```

4. Create the gentx
```
nibirud gentx <your key name> 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 `<your validator moniker>.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).
1 change: 1 addition & 0 deletions nibiru-3000/gentxs/eg.json
Original file line number Diff line number Diff line change
@@ -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":"[email protected]: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=="]}
2 changes: 1 addition & 1 deletion scripts/generate-genesis.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

NETWORK=neuron-1
NETWORK=nibiru-3000
DAEMON=nibirud
HOME_DIR=~/.nibiru
CONFIG=~/.nibiru/config
Expand Down
4 changes: 2 additions & 2 deletions scripts/verify-gentx.sh
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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
Expand Down

0 comments on commit dc15de3

Please sign in to comment.