Skip to content

Commit

Permalink
Merge pull request #11 from okp4/feat/forge-nemeton
Browse files Browse the repository at this point in the history
🔥 Forge the `nemeton` genesis
  • Loading branch information
ccamel authored Oct 10, 2022
2 parents 797c60c + c54c6a2 commit f887c25
Show file tree
Hide file tree
Showing 8 changed files with 161 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/register-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ body:
description: Choose the OKP4 network you want to join
multiple: false
options:
- testnet-1
- nemeton
validations:
required: true
- type: textarea
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ For a complete description about nodes and validators, check out the [OKP4 Docum

## 🔗 Networks

### `testnet-1`
### `nemeton`

![stability-stable](https://img.shields.io/badge/stability-stable-green.svg) ![audience](https://img.shields.io/badge/audience-public-white.svg)

The first OKP4 testnet network, please find more details to join the network [here](chains/testnet-1/).
`Nemeton` is the main OKP4 testnet. Please find more details to join the network [here](chains/nemeton/).

### `devnet-1`

Expand Down
10 changes: 5 additions & 5 deletions chains/testnet-1/README.md → chains/nemeton/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# 🔗 `testnet-1`
# 🔗 `nemeton`

## Register in the Genesis

To register your validator node in the `genesis.json` you'll need to provide a signed `gentx` in a [⚖️ Register Validator issue](https://github.com/okp4/networks/issues).
To register your validator node in the `genesis.json` you just need to provide a signed `gentx` in a [⚖️ Register Validator issue](https://github.com/okp4/networks/issues).

You'll **not** need to fork the project and make the changes in the genesis yourself, this will be managed by the CI.
You *don't* have to fork the project and make the changes in the genesis yourself. Everything will be managed by the CI!

The gentx generation can be done as follow (this is an example script, adapt it to your needs) with the [okp4d](https://github.com/okp4/okp4d/releases) binary matching the [network's version](/chains/testnet-1/version.txt):
The gentx generation can be done as follow (this is an example script, adapt it to your needs) with the [okp4d](https://github.com/okp4/okp4d/releases) binary matching the [network's version](/chains/nemeton/version.txt):

```sh
# Init node
Expand All @@ -19,5 +19,5 @@ okp4d --home mynode keys add your-key-name
okp4d --home mynode add-genesis-account your-key-name 1200000uknow

# Create the gentx
okp4d --home mynode gentx your-key-name 1000000uknow --node-id $(okp4d --home mynode tendermint show-node-id) --chain-id okp4-testnet-1
okp4d --home mynode gentx your-key-name 1000000uknow --node-id $(okp4d --home mynode tendermint show-node-id) --chain-id okp4-nemeton
```
154 changes: 144 additions & 10 deletions chains/testnet-1/genesis.json → chains/nemeton/genesis.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"genesis_time": "2022-09-19T11:54:54.769429Z",
"chain_id": "okp4-testnet-1",
"chain_id": "okp4-nemeton",
"initial_height": "1",
"consensus_params": {
"block": {
Expand Down Expand Up @@ -30,7 +30,78 @@
"sig_verify_cost_ed25519": "590",
"sig_verify_cost_secp256k1": "1000"
},
"accounts": []
"accounts": [
{
"@type": "/cosmos.auth.v1beta1.BaseAccount",
"address": "okp41hhmuvam7dpvccexeam2px9j2xrzhv004ryh6se",
"pub_key": null,
"account_number": "0",
"sequence": "0"
},
{
"@type": "/vesting.v1beta1.CliffVestingAccount",
"base_vesting_account": {
"base_account": {
"address": "okp4157k92xl5kxy89se8h93lng6dk226mkg96t8g48",
"pub_key": null,
"account_number": "0",
"sequence": "0"
},
"original_vesting": [
{
"denom": "uknow",
"amount": "72000000000000"
}
],
"delegated_free": [],
"delegated_vesting": [],
"end_time": "1681473600"
},
"start_time": "1665748800",
"cliff_time": "1668430800"
},
{
"@type": "/vesting.v1beta1.ContinuousVestingAccount",
"base_vesting_account": {
"base_account": {
"address": "okp41870uw80d4yvrhcrxlyyj9csd9trz7cc9aeh67p",
"pub_key": null,
"account_number": "0",
"sequence": "0"
},
"original_vesting": [
{
"denom": "uknow",
"amount": "50000000000000"
}
],
"delegated_free": [],
"delegated_vesting": [],
"end_time": "1728907200"
},
"start_time": "1665748800"
},
{
"@type": "/vesting.v1beta1.DelayedVestingAccount",
"base_vesting_account": {
"base_account": {
"address": "okp41htjlyu4z5833zzkrw4hlaaqvd2je3w9zg50e86",
"pub_key": null,
"account_number": "0",
"sequence": "0"
},
"original_vesting": [
{
"denom": "uknow",
"amount": "10000000000000"
}
],
"delegated_free": [],
"delegated_vesting": [],
"end_time": "1681473600"
}
}
]
},
"authz": {
"authorization": []
Expand All @@ -40,7 +111,44 @@
"send_enabled": [],
"default_send_enabled": true
},
"balances": [],
"balances": [
{
"address": "okp41870uw80d4yvrhcrxlyyj9csd9trz7cc9aeh67p",
"coins": [
{
"denom": "uknow",
"amount": "50000000000000"
}
]
},
{
"address": "okp4157k92xl5kxy89se8h93lng6dk226mkg96t8g48",
"coins": [
{
"denom": "uknow",
"amount": "80000000000000"
}
]
},
{
"address": "okp41htjlyu4z5833zzkrw4hlaaqvd2je3w9zg50e86",
"coins": [
{
"denom": "uknow",
"amount": "20000000000000"
}
]
},
{
"address": "okp41hhmuvam7dpvccexeam2px9j2xrzhv004ryh6se",
"coins": [
{
"denom": "uknow",
"amount": "50000000000000"
}
]
}
],
"supply": [],
"denom_metadata": [
{
Expand Down Expand Up @@ -103,6 +211,13 @@
"feegrant": {
"allowances": []
},
"feeibc": {
"identified_fees": [],
"fee_enabled_channels": [],
"registered_payees": [],
"registered_counterparty_payees": [],
"forward_relayers": []
},
"genutil": {
"gen_txs": []
},
Expand Down Expand Up @@ -191,18 +306,23 @@
}
}
},
"logic": {
"params": {
"foo": "foo"
}
},
"mint": {
"minter": {
"inflation": "0.130000000000000000",
"inflation": "0.075000000000000000",
"annual_provisions": "0.000000000000000000"
},
"params": {
"mint_denom": "uknow",
"inflation_rate_change": "0.130000000000000000",
"inflation_max": "0.200000000000000000",
"inflation_min": "0.070000000000000000",
"inflation_rate_change": "0.800000000000000000",
"inflation_max": "0.000000000000000000",
"inflation_min": "0.000000000000000000",
"goal_bonded": "0.670000000000000000",
"blocks_per_year": "6311520"
"blocks_per_year": "438300"
}
},
"params": null,
Expand All @@ -220,7 +340,7 @@
"staking": {
"params": {
"unbonding_time": "1814400s",
"max_validators": 100,
"max_validators": 150,
"max_entries": 7,
"historical_entries": 10000,
"bond_denom": "uknow",
Expand All @@ -243,6 +363,20 @@
}
},
"upgrade": {},
"vesting": {}
"vesting": {},
"wasm": {
"params": {
"code_upload_access": {
"permission": "Nobody",
"address": "",
"addresses": []
},
"instantiate_default_permission": "Everybody"
},
"codes": [],
"contracts": [],
"sequences": [],
"gen_msgs": []
}
}
}
8 changes: 8 additions & 0 deletions chains/nemeton/register-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"start-date": "2022-10-10 00:00:00Z",
"end-date": "2022-11-01 00:00:00Z",
"delegation": {
"amount": "1000000",
"denom": "uknow"
}
}
1 change: 1 addition & 0 deletions chains/nemeton/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.1.0
8 changes: 0 additions & 8 deletions chains/testnet-1/register-config.json

This file was deleted.

1 change: 0 additions & 1 deletion chains/testnet-1/version.txt

This file was deleted.

0 comments on commit f887c25

Please sign in to comment.