Skip to content

Commit a497a7c

Browse files
authored
Merge branch 'anoma:main' into main
2 parents 4c1b19e + 00f9a80 commit a497a7c

File tree

41 files changed

+732
-155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+732
-155
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @fraccaman @iskay
1+
* @fraccaman @iskay @brentstone

.github/workflows/pre-genesis-transactions-checks.yml

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -102,49 +102,6 @@ jobs:
102102
source .venv/bin/activate
103103
poetry run python scripts/validate-merge.py
104104
105-
main:
106-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
107-
name: Rebuild genesis README
108-
runs-on: ubuntu-latest
109-
steps:
110-
- uses: actions/create-github-app-token@v1
111-
id: app-token
112-
with:
113-
app-id: ${{ secrets.GH_APP_ID }}
114-
private-key: ${{ secrets.GH_APP_SK }}
115-
- uses: actions/checkout@v4
116-
with:
117-
fetch-depth: 0
118-
token: ${{ steps.app-token.outputs.token }}
119-
- name: Set up python
120-
id: setup-python
121-
uses: actions/setup-python@v5
122-
with:
123-
python-version: '3.12'
124-
- name: Install and configure Poetry
125-
uses: snok/install-poetry@v1
126-
with:
127-
virtualenvs-create: true
128-
virtualenvs-in-project: true
129-
virtualenvs-path: .venv
130-
installer-parallel: true
131-
- name: Set up cache
132-
uses: actions/cache@v4
133-
id: cached-poetry-dependencies
134-
with:
135-
path: .venv
136-
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
137-
- name: Install dependencies
138-
run: poetry install --no-interaction
139-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
140-
- name: Rebuild README.md
141-
run: |
142-
source .venv/bin/activate
143-
poetry run python scripts/rebuild.py
144-
- uses: stefanzweifel/git-auto-commit-action@v5
145-
with:
146-
commit_message: "[skip ci] rebuild genesis readme"
147-
148105
can_enqueue:
149106
needs: [pr-check]
150107
name: Can try to merge

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ pyrightconfig.json
338338
[Ll]ib
339339
[Ll]ib64
340340
[Ll]ocal
341-
[Ss]cripts
341+
#[Ss]cripts
342342
pyvenv.cfg
343343
pip-selfcheck.json
344344

@@ -697,4 +697,6 @@ MigrationBackup/
697697

698698
# End of https://www.toptal.com/developers/gitignore/api/osx,macos,vs,pycharm,python,venv
699699

700-
*.pem
700+
*.pem
701+
702+
namada.*.tar.gz

MAINNET-GUIDE.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Namada Mainnet - guide for validators, full nodes, and users
2+
3+
### Summary:
4+
- Namada binaries version: **[v1.0.0](https://github.com/anoma/namada/releases/tag/v1.0.0)**
5+
- CometBFT version **[v0.37.11](https://github.com/cometbft/cometbft/releases/tag/v0.37.11)**
6+
- Chain-id: **namada.5f5de2dd1b88cba30586420**
7+
- Starts: **Tuesday, December 3 @ 15:00 UTC**
8+
9+
### Instructions for genesis validators:
10+
11+
1. Install Namada **[v1.0.0](https://github.com/anoma/namada/releases/tag/v1.0.0)** by your preferred method (from source, precompiled binaries). Refer to the docs for [installation instructions](https://docs.namada.net/introduction/install).
12+
13+
2. (Optional) By default, Namada will store its data in `$HOME/.local/share/namada` on Ubuntu systems. This is called the 'base directory'. For instructions on setting a different base directory, see [here](https://docs.namada.net/operators/ledger/base-directory). To check the default base directory on your OS, use `namadac utils default-base-dir`.
14+
15+
3. Set the following environment variables
16+
```
17+
export NAMADA_NETWORK_CONFIGS_SERVER="https://github.com/anoma/namada-mainnet-genesis/releases/download/mainnet-genesis"
18+
export VALIDATOR_ALIAS=<your-validator-alias>
19+
export CHAIN_ID=namada.5f5de2dd1b88cba30586420
20+
```
21+
22+
4. Copy your pre-genesis `validator-wallet.toml` into the following location, creating the directory if necessary:
23+
```$BASE_DIR/pre-genesis/$VALIDATOR_ALIAS/validator-wallet.toml```
24+
**Note:** on Ubuntu, this corresponds to
25+
```~/.local/share/namada/pre-genesis/$VALIDATOR_ALIAS/validator-wallet.toml```
26+
27+
5. Initialize your node:
28+
```
29+
namadac utils join-network --chain-id $CHAIN_ID --genesis-validator $VALIDATOR_ALIAS
30+
```
31+
32+
6. Add some persistent peers to your `config.toml` file. First, select from the published list of peers at the bottom of this page. Then, open your node's configuration located at `$BASE_DIR/$CHAIN_ID/config.toml` and find the field `persistent_peers` (which should be empty). Add peers in the format `tcp://<node id>@<IP address>:<port>` separated by commas. Aim to add about 10 persistent peers to your config.
33+
34+
**Example on Ubuntu:**
35+
In the file `~/.local/share/namada/$CHAIN_ID/config.toml`
36+
Add peers following this format (you can contribute your peers with the instructions found at the bottom of this page):
37+
```
38+
persistent_peers = "tcp://[email protected]:26656,tcp://[email protected]:26656,tcp://[email protected]:46656"
39+
```
40+
This can be done by executing the following examle command (replace addresses with your actual desired peers):
41+
```bash
42+
sed -i 's#persistent_peers = ".*"#persistent_peers = "'\
43+
'tcp://[email protected]:26656,'\
44+
'tcp://[email protected]:26656,'\
45+
'tcp://[email protected]:46656'\
46+
'"#' $HOME/.local/share/namada/namada.5f5de2dd1b88cba30586420/config.toml
47+
```
48+
49+
7. Start *before genesis time* and leave it running -- at genesis time, it will become active. Start your node using the command
50+
```namadan ledger run```
51+
**Note: for instructions on running your node as a `systemd service`, see [here](https://docs.namada.net/operators/ledger/running-a-full-node#running-the-namada-ledger-as-a-systemd-service)**
52+
After the initial startup, you should see in the logs:
53+
```Waiting for ledger genesis time: DateTimeUtc(2024-12-03T15:00:00Z)```
54+
If your node is correctly configured as a genesis validator, you should also see:
55+
```This node is a validator.```
56+
57+
8. At genesis time, once enough voting power is online, you should begin to see new blocks in your node's logs.
58+
59+
60+
### Instructions for full nodes:
61+
1. Same as above
62+
2. Same as above
63+
3. `export NAMADA_NETWORK_CONFIGS_SERVER` and `export CHAIN_ID` only
64+
4. Skip this step
65+
5. Omit the `--genesis-validator` argument:
66+
```namadac utils join-network --chain-id $CHAIN_ID```
67+
6. Same as above
68+
7. Same as above, except you should see
69+
```This node is not a validator.```
70+
71+
### Instructions for users without running a node:
72+
Follow the same steps as for a full node, with the last required step being `namadac utils join-network --chain-id $CHAIN_ID`. You do not need to run a node or configure any peers.
73+
74+
### Share your seed node or peer address
75+
Sharing is caring ❤️. If you want to share your seed node or peer address, please open a PR to this repo with an entry in the [README](./README.md) under either the `Seed nodes` or `Peers` section!
76+
In order to do this, you must provide your node-id, which can be done with the following command (must be run *after* starting your node):
77+
```
78+
NODE_ID=$(cometbft show-node-id --home $HOME/.local/share/namada/$CHAIN_ID/cometbft/ | awk '{last_line = $0} END {print last_line}')
79+
echo $NODE_ID
80+
```
81+
82+
### Additional docs resources:
83+
- [Node configuration reference](https://docs.namada.net/operators/ledger/env-vars)
84+
- [`systemd` service file example](https://docs.namada.net/operators/ledger/running-a-full-node#running-the-namada-ledger-as-a-systemd-service)
85+
- [Operator reference](https://docs.namada.net/operators)

README.md

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,31 @@ If you have received an allocation, check the [docs on how to make a pre-genesis
66

77
If you need help, feel free to [reach out on discord](https://discord.gg/AsPCKgW3)!
88

9+
## Mainnet Genesis Guide
10+
The guide with instructions to join the network is located inside [here](./MAINNET-GUIDE.md). Below are lists of seed nodes and peers that you can use to connect your node.
11+
12+
### Seed nodes
13+
- tcp://[email protected]:16656
14+
- tcp://[email protected]:32656
15+
16+
### Peers
17+
- tcp://[email protected]:26656
18+
- tcp://[email protected]:26656
19+
- tcp://[email protected]:46656
20+
- tcp://[email protected]:32656
21+
- tcp://3879583b9c6b1ac29d38fefb5a14815dd79282d6@peer-mainnet-namada.grandvalleys.com:38656
22+
- tcp://96f7945f9470faacce66888d798bf1f131913b6c@namada-mainnet-peer.denodes.xyz:26656
23+
924
## Voting power distribution
1025

1126

1227
![Voting Power Distribution](images/validators.png "Voting Power Distribution")
1328

1429

15-
- Total pre-genesis transactions: `9228`
16-
- Total validators: `204`
17-
- Total delegations: `9024`
18-
- Staked tokens: `38181465.32672 (~3.82%)`
30+
- Total pre-genesis transactions: `9231`
31+
- Total validators: `205`
32+
- Total delegations: `9026`
33+
- Staked tokens: `38185570.32672 (~3.82%)`
1934

2035
## Validators
2136

@@ -559,6 +574,17 @@ If you need help, feel free to [reach out on discord](https://discord.gg/AsPCKgW
559574
- website: `https://forbole.com`
560575
- total delegations: `38`
561576

577+
- address: `tnam1q8azt2cpqmc6tr2gvg5v62e4jr0t9327yupaf595`
578+
- alias: `POSTHUMAN`
579+
- commission: `5.0%`
580+
- max commission rate change: `1.0%`
581+
- total voting power: `207616.499 (0.54% of total voting power)`
582+
- percentage of total supply: `0.02%`
583+
- email: `[email protected]`
584+
- discord: `posthuman_validator`
585+
- website: `https://posthuman.digital`
586+
- total delegations: `274`
587+
562588
- address: `tnam1q8s9kj30dhsnw5kvtf0mq2exgyup64l28sxn953p`
563589
- alias: `namada-validator`
564590
- commission: `5.0%`
@@ -570,17 +596,6 @@ If you need help, feel free to [reach out on discord](https://discord.gg/AsPCKgW
570596
- website: `Unknown website`
571597
- total delegations: `25`
572598

573-
- address: `tnam1q8azt2cpqmc6tr2gvg5v62e4jr0t9327yupaf595`
574-
- alias: `POSTHUMAN`
575-
- commission: `5.0%`
576-
- max commission rate change: `1.0%`
577-
- total voting power: `203616.499 (0.53% of total voting power)`
578-
- percentage of total supply: `0.02%`
579-
- email: `[email protected]`
580-
- discord: `posthuman_validator`
581-
- website: `https://posthuman.digital`
582-
- total delegations: `273`
583-
584599
- address: `tnam1q8dtazgc7y9xx00lq4d2pnacvtz29p5mvcxwat74`
585600
- alias: `Staking4All`
586601
- commission: `5.0%`
@@ -2143,6 +2158,17 @@ If you need help, feel free to [reach out on discord](https://discord.gg/AsPCKgW
21432158
- website: `Unknown website`
21442159
- total delegations: `1`
21452160

2161+
- address: `tnam1q8gzlxud46wtxmsn2e3hh3xgrnnjmu9fuq7yjhdz`
2162+
- alias: `BigBro`
2163+
- commission: `5.0%`
2164+
- max commission rate change: `1.0%`
2165+
- total voting power: `105.0 (0.0% of total voting power)`
2166+
- percentage of total supply: `0.0%`
2167+
- email: `[email protected]`
2168+
- discord: `michaelbigbro`
2169+
- website: `Unknown website`
2170+
- total delegations: `1`
2171+
21462172
- address: `tnam1q9446mq8ack40w965p7ry6p84fv3kyewxqhknhd0`
21472173
- alias: `VirtualReality`
21482174
- commission: `5.0%`

0 commit comments

Comments
 (0)