forked from nucleic-network/nucleic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github-tnv1.com:nucleic-network/nucleic into r…
…ollup
- Loading branch information
Showing
7 changed files
with
111 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Eve Network Testnet | ||
# Eve Testnet | ||
|
||
This testnet will start with the node version `0.0.2`. | ||
This testnet will start with the node version `v0.0.3`. | ||
|
||
## Minimum hardware requirements | ||
|
||
|
@@ -15,55 +15,61 @@ This testnet will start with the node version `0.0.2`. | |
```bash | ||
git clone https://github.com/eve-network/eve.git | ||
cd eve | ||
git checkout v0.0.2 | ||
git checkout v0.0.3 | ||
make install | ||
``` | ||
|
||
### Check Node version | ||
|
||
```bash | ||
# Get node version (should be v0.0.2) | ||
# Get node version (should be v0.0.3) | ||
eved version | ||
|
||
# Get node long version (should be 25e1602d5a29e4ab49addda7e4178b50894999df) | ||
# Get node long version (should be 1f0f1f82a8225b23341bbabd2a034ce7415d7e3d) | ||
eved version --long | grep commit | ||
``` | ||
|
||
### Initialize Chain | ||
|
||
```bash | ||
rm -rf ~/.eved | ||
eved init develop --chain-id=evenetwork-1 | ||
eved init MONIKER --chain-id=evenetwork-1 | ||
``` | ||
|
||
### Replace pre-genesis | ||
### Download pre-genesis | ||
|
||
```bash | ||
# Download the file | ||
curl -s https://raw.githubusercontent.com/eve-network/eve/main/testnets/genesis.json > ~/.eved/config/genesis.json | ||
|
||
# Calculate the SHA256 checksum | ||
calculated_checksum=$(shasum -a 256 ~/.eved/config/genesis.json | awk '{ print $1 }') | ||
|
||
# Compare with the expected checksum | ||
expected_checksum="244d5a3999dd0851eb338b032a57fbea24a89b4016a7907a9d20c2045c689857" | ||
if [ "$calculated_checksum" = "$expected_checksum" ]; then | ||
echo "---> Checksum is CORRECT." | ||
else | ||
echo "---> Checksum is INCORRECT." | ||
fi | ||
curl -s https://raw.githubusercontent.com/eve-network/eve/main/testnets/pre_genesis.json > ~/.eved/config/genesis.json | ||
``` | ||
|
||
## Run node | ||
## Create gentx | ||
|
||
### Setup seeds | ||
Create wallet | ||
|
||
```bash | ||
export PERSISTENT_SEEDS="[email protected]:26656" | ||
eved keys add KEY_NAME | ||
``` | ||
|
||
### Run node with persistent peers | ||
Fund yourself `1000000000ueve` | ||
|
||
```bash | ||
eved start --p2p.persistent_peers=$PERSISTENT_SEEDS | ||
eved genesis add-genesis-account $(eved keys show KEY_NAME -a) 1000000000ueve | ||
``` | ||
|
||
Use half (`1000000ueve`) for self-delegation | ||
|
||
```bash | ||
eved genesis gentx KEY_NAME 1000000ueve --chain-id=evenetwork-1 | ||
``` | ||
|
||
If all goes well, you will see a message similar to the following: | ||
|
||
```bash | ||
Genesis transaction written to "/home/user/.eved/config/gentx/gentx-******.json" | ||
``` | ||
|
||
### Submit genesis transaction | ||
|
||
- Fork this repo | ||
- Copy the generated gentx json file to `testnets/gentx/` | ||
- Commit and push to your repo | ||
- Create a PR on this repo |
1 change: 1 addition & 0 deletions
1
testnets/gentx/gentx-ec60aa668b63892706a781c20d7ddbd8b4e3d3a6.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"moniker","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.010000000000000000","max_rate":"0.020000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"","validator_address":"evevaloper1rxhgy8s6v2k92327wxcnstt90hutg74erfy6p4","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"twugC8UxR/HYxd2uKPENQyyfABs7rPCK9pdkAjZh7IU="},"value":{"denom":"ueve","amount":"1000000"}}],"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":"AroJ/ByRvIuHxjZ4U7DAiWhJjfiDb9hnEZqkebC/843f"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["KJ7609TWtk9OeBTH4UxgfcSQyn7Yp9GAgJ0OQvV6KfxB2CFy6G+Z0xeTA58eY0pxuxNw/F/BDPGfVwq4QTqlEA=="]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"app_name": "eved", | ||
"app_version": "0.0.2-2-g034fc8b", | ||
"genesis_time": "2024-04-29T09:42:14.116411Z", | ||
"app_version": "0.0.2-9-g1f0f1f8", | ||
"genesis_time": "2024-05-14T05:27:23.546692Z", | ||
"chain_id": "evenetwork-1", | ||
"initial_height": 1, | ||
"app_hash": null, | ||
|
@@ -34,7 +34,7 @@ | |
"accounts": [ | ||
{ | ||
"@type": "/cosmos.auth.v1beta1.BaseAccount", | ||
"address": "eve1j0vxxht5perz4nddms6qwu46ng8g0zfwtce75s", | ||
"address": "eve1rxhgy8s6v2k92327wxcnstt90hutg74ezpcwqj", | ||
"pub_key": null, | ||
"account_number": "0", | ||
"sequence": "0" | ||
|
@@ -51,7 +51,7 @@ | |
}, | ||
"balances": [ | ||
{ | ||
"address": "eve1j0vxxht5perz4nddms6qwu46ng8g0zfwtce75s", | ||
"address": "eve1rxhgy8s6v2k92327wxcnstt90hutg74ezpcwqj", | ||
"coins": [ | ||
{ | ||
"denom": "ueve", | ||
|
@@ -148,70 +148,7 @@ | |
"forward_relayers": [] | ||
}, | ||
"genutil": { | ||
"gen_txs": [ | ||
{ | ||
"body": { | ||
"messages": [ | ||
{ | ||
"@type": "/cosmos.staking.v1beta1.MsgCreateValidator", | ||
"description": { | ||
"moniker": "moniker", | ||
"identity": "", | ||
"website": "", | ||
"security_contact": "", | ||
"details": "" | ||
}, | ||
"commission": { | ||
"rate": "0.010000000000000000", | ||
"max_rate": "0.020000000000000000", | ||
"max_change_rate": "0.010000000000000000" | ||
}, | ||
"min_self_delegation": "1", | ||
"delegator_address": "", | ||
"validator_address": "evevaloper1j0vxxht5perz4nddms6qwu46ng8g0zfw2s924h", | ||
"pubkey": { | ||
"@type": "/cosmos.crypto.ed25519.PubKey", | ||
"key": "zZTMTnuKCXJ6UhInxn7891LPCid0yxLrQDIbDUV9GCc=" | ||
}, | ||
"value": { | ||
"denom": "ueve", | ||
"amount": "1000000" | ||
} | ||
} | ||
], | ||
"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": "AsrulhlQ3ucCmambEhP+RlseBcQTT6SxCgls/Yn8GYqs" | ||
}, | ||
"mode_info": { | ||
"single": { | ||
"mode": "SIGN_MODE_DIRECT" | ||
} | ||
}, | ||
"sequence": "0" | ||
} | ||
], | ||
"fee": { | ||
"amount": [], | ||
"gas_limit": "200000", | ||
"payer": "", | ||
"granter": "" | ||
}, | ||
"tip": null | ||
}, | ||
"signatures": [ | ||
"tvh3p92WjnBUFv2r2pWZFgv/r/j7+jvGcRcaCnoNcUF38esVjr8nflK2W2mDb0FMVZ4ON3oxYy6pViSMi9w9+w==" | ||
] | ||
} | ||
] | ||
"gen_txs": [] | ||
}, | ||
"gov": { | ||
"starting_proposal_id": "1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Eve Network Testnet | ||
|
||
This testnet will start with the node version `0.0.2`. | ||
|
||
## Minimum hardware requirements | ||
|
||
- 8-16GB RAM | ||
- 100GB of disk space | ||
- 2 cores | ||
|
||
## Genesis Instruction | ||
|
||
### Install node | ||
|
||
```bash | ||
git clone https://github.com/eve-network/eve.git | ||
cd eve | ||
git checkout v0.0.2 | ||
make install | ||
``` | ||
|
||
### Check Node version | ||
|
||
```bash | ||
# Get node version (should be v0.0.2) | ||
eved version | ||
|
||
# Get node long version (should be 25e1602d5a29e4ab49addda7e4178b50894999df) | ||
eved version --long | grep commit | ||
``` | ||
|
||
### Initialize Chain | ||
|
||
```bash | ||
rm -rf ~/.eved | ||
eved init develop --chain-id=evenetwork-1 | ||
``` | ||
|
||
### Replace pre-genesis | ||
|
||
```bash | ||
# Download the file | ||
curl -s https://raw.githubusercontent.com/eve-network/eve/main/testnets/genesis.json > ~/.eved/config/genesis.json | ||
|
||
# Calculate the SHA256 checksum | ||
calculated_checksum=$(shasum -a 256 ~/.eved/config/genesis.json | awk '{ print $1 }') | ||
|
||
# Compare with the expected checksum | ||
expected_checksum="244d5a3999dd0851eb338b032a57fbea24a89b4016a7907a9d20c2045c689857" | ||
if [ "$calculated_checksum" = "$expected_checksum" ]; then | ||
echo "---> Checksum is CORRECT." | ||
else | ||
echo "---> Checksum is INCORRECT." | ||
fi | ||
``` | ||
|
||
## Run node | ||
|
||
### Setup seeds | ||
|
||
```bash | ||
export PERSISTENT_SEEDS="" | ||
``` | ||
|
||
### Run node with persistent peers | ||
|
||
```bash | ||
eved start --p2p.persistent_peers=$PERSISTENT_SEEDS | ||
``` |