forked from axone-protocol/networks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.md.gtpl
75 lines (62 loc) · 3.6 KB
/
README.md.gtpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!-- generated file - do not edit -->
# 🔗 `{{ (datasource "genesis").chain_id }}`
![chain-id](https://img.shields.io/badge/chain%20id-{{ (datasource "genesis").chain_id | urlquery | strings.ReplaceAll "-" "--" }}-blue?style=for-the-badge)
![stability-discontinued](https://img.shields.io/badge/stability-discontinued%20🔚-lightgray.svg?style=for-the-badge)
![audience](https://img.shields.io/badge/audience-public-white.svg?style=for-the-badge)
![genesis-time](https://img.shields.io/badge/{{ "⏰" | urlquery }}%20genesis%20time-{{ (datasource "genesis").genesis_time | urlquery | strings.ReplaceAll "-" "--" }}-red?style=for-the-badge)
![nb-validators](https://img.shields.io/badge/{{ "🧑⚖️" | urlquery }}%20core%20validators-{{ (datasource "genesis") | jsonpath "$..messages[?(@.min_self_delegation)]" | len }}-brightgreen?style=for-the-badge)
> :warning: **This chain was stopped on 30/12/22**. The active testnet is: [nemeton-1](../nemeton-1/README.md).
## Register in the Genesis
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 *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/nemeton/version.txt):
```sh
# Init node
okp4d --home mynode init your-moniker
# Create keys, be careful with the mnemonic 👀
okp4d --home mynode keys add your-key-name
# Set account necessary balance
okp4d --home mynode add-genesis-account your-key-name 1200000uknow
```
Then create your own genesis transaction (`gentx`). You will have to choose the following parameters for your validator: `commission-rate`, `commission-max-rate`, `commission-max-change-rate`, `min-self-delegation` (>=1), `website` (optional), `details` (optional), `identity` ([keybase](https://keybase.io) key hash, used to get validator logos in block explorers - optional), `security-contact` (email - optional).
```sh
# Create the gentx
okp4d --home mynode gentx your-key-name 1000000uknow \
--node-id $(okp4d --home mynode tendermint show-node-id) \
--chain-id okp4-nemeton \
--commission-rate 0.05 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1
--website "https://foo.network" \
--details "My validator" \
--identity "6C36E7C076BFDCE4" \
--security-contact "[email protected]"
```
## Genesis validators
<table>
<tr>
<th>Moniker</th>
<th>Details</th>
<th>Identity</th>
<th>Site</th>
</tr>
{{- $txs := (datasource "genesis") | jsonpath "$..messages[?(@.min_self_delegation)]" -}}
{{- range $key, $value := $txs }}
{{- $url := "" -}}
{{- if $value.description.website | strings.HasPrefix "http" -}}
{{- $url = $value.description.website -}}
{{- else if $value.description.website -}}
{{- $url = printf "%s%s" "https://" $value.description.website -}}
{{- end -}}
{{- $userInfo := $value.description.identity | index (datasource "usersInfo") }}
<tr>
<td><pre>{{ $value.description.moniker | html }}</pre></td>
<td>{{ $value.description.details | html }}</td>
<td>{{ if $value.description.identity }}
<p align="center"><img width="80px" src="{{ $userInfo.keybase.picture_url }}"/></p>
<a href="https://keybase.io/{{ $userInfo.keybase.username }}">{{ $value.description.identity }}</a>{{ end }}</td>
<td>{{ if $url }}<a href="{{ $url }}">{{ $url }}</a>{{ end -}}
</tr>
{{- end }}
</table>