#!/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 website" "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=evmos_9000-3 >> $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 unzip snapd -y #INSTALL GO wget https://golang.org/dl/go1.17.5.linux-amd64.tar.gz; \ rm -rv /usr/local/go; \ tar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gz && \ rm -v go1.17.5.linux-amd64.tar.gz && \ echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile && \ source ~/.bash_profile && \ go version #INSTALL git clone https://github.com/tharsis/evmos.git cd evmos git checkout tags/v1.0.0-beta1 make install evmosd version evmosd config chain-id evmos_9000-3 evmosd init $NODENAME --chain-id $CHAIN_ID evmosd unsafe-reset-all rm ~/.evmosd/config/genesis.json wget -P ~/.evmosd/config https://github.com/tharsis/testnets/raw/main/evmos_9000-3/genesis.zip wget -O $HOME/.evmosd/config/addrbook.json https://raw.githubusercontent.com/StakeTake/guidecosmos/main/evmos/evmos_9000-3/addrbook.json cd ~/.evmosd/config unzip genesis.zip rm genesis.zip echo "============================================================" echo "Be sure to write down the mnemonic!" echo "============================================================" #WALLET evmosd keys add $WALLETNAME external_address=$(wget -qO- eth0.me) sed -i.bak -e "s/^external_address *=.*/external_address = \"$external_address:26656\"/" $HOME/.evmosd/config/config.toml sudo tee /etc/systemd/system/evmosd.service > /dev/null <