April 21, 2022

ARCHWAY torii-1 (gentx)

Gentx submition

System requirements:

4 GB RAM, 2 CPU, 512 GB SSD

1) Server prepare:

sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y

Install GO 1.17.2

ver="1.17.2"
cd $HOME
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile

go version go1.17.2 linux/amd64

go version

2) Build

Clone repo

git clone https://github.com/archway-network/archway
cd archway
git checkout main
make install

Version 0.0.5

archwayd version
cd $HOME

Set vars

ARCHWAY_CHAIN="torii-1"
ARCHWAY_MONIKER="YOUR_MONIKER_NAME"
ARCHWAY_WALLET="ARCHWAY_WALLET"
echo 'export ARCHWAY_CHAIN='${ARCHWAY_CHAIN} >> $HOME/.bash_profile
echo 'export ARCHWAY_MONIKER='${ARCHWAY_MONIKER} >> $HOME/.bash_profile
echo 'export ARCHWAY_WALLET='${ARCHWAY_WALLET} >> $HOME/.bash_profile
source $HOME/.bash_profile

Init

archwayd init ${ARCHWAY_MONIKER} --chain-id $ARCHWAY_CHAIN

Create keys

archwayd keys add $ARCHWAY_WALLET

(save mnemonic)

3) Create gentx

Get penultimate_genesis

wget -O $HOME/.archway/config/genesis.json "https://raw.githubusercontent.com/archway-network/testnets/main/torii-1/penultimate_genesis.json"

Add gen acc

archwayd add-genesis-account $(archwayd keys show $ARCHWAY_WALLET -a) 1001000utorii

Create gentx

archwayd gentx $ARCHWAY_WALLET 1000000utorii \
  --commission-rate=0.1 \
  --commission-max-rate=0.1 \
  --commission-max-change-rate=0.1 \
  --pubkey $(archwayd tendermint show-validator) \
  --chain-id=torii-1 \
  --moniker="${ARCHWAY_MONIKER}"

Genesis transaction written to "~/.archway/config/gentx/gentx-3jfy7n1XXXXXXXXXXXXXXXXXXXxxxxXXXXXXX1.json"

Download and backup $HOME/.archway/config/priv_validator_key.json

4) Submit Pull Request

Create Pull Request to this repository -
https://github.com/archway-network/testnets/tree/main/torii-1/gentx
create file with name gentx-3jfy7n1XXXXXXXXXXXXXXXXXXXxxxxXXXXXXX1.json
submit PR