#!/bin/bash while true do # Logo echo "========================================================================================================================" curl -s https://raw.githubusercontent.com/StakeTake/script/main/logo.sh | bash echo "========================================================================================================================" # Menu PS3='Select an action: ' options=( "Install Node" "Check Log" "Check balance" "Request tokens in discord" "Create Validator" "Exit") select opt in "${options[@]}" do case $opt in "Install Node") echo "============================================================" echo "Install start" echo "============================================================" echo "Setup NodeName:" echo "============================================================" read NODENAME echo "============================================================" echo "Setup WalletName:" echo "============================================================" read WALLETNAME echo export NODENAME=${NODENAME} >> $HOME/.bash_profile echo export WALLETNAME=${WALLETNAME} >> $HOME/.bash_profile echo export CHAIN_ID=augusta-1 >> $HOME/.bash_profile source ~/.bash_profile #UPDATE APT 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 cd $HOME mkdir archway && cd archway wget "https://github.com/Northa/archway_bin/releases/download/v0.0.3/archwayd" chmod +x archwayd sudo mv archwayd /usr/local/bin/ archwayd init $NODENAME --chain-id $CHAIN_ID archwayd config chain-id $CHAIN_ID external_address=$(wget -qO- eth0.me) sed -i.bak -e "s/^external_address = \"\"/external_address = \"$external_address:26656\"/" $HOME/.archway/config/config.toml echo "============================================================" echo "Be sure to write down the mnemonic!" echo "============================================================" #WALLET archwayd keys add $WALLETNAME archwayd unsafe-reset-all wget -O $HOME/.archway/config/genesis.json https://raw.githubusercontent.com/StakeTake/guidecosmos/main/archway/augusta-1/genesis.json wget -O $HOME/.archway/config/addrbook.json https://raw.githubusercontent.com/StakeTake/guidecosmos/main/archway/augusta-1/addrbook.json # config pruning pruning="custom" pruning_keep_recent="100" pruning_keep_every="0" pruning_interval="10" sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.archway/config/app.toml sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.archway/config/app.toml sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.archway/config/app.toml sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.archway/config/app.toml tee $HOME/archwayd.service > /dev/null <