Skip to content

AlexeyGas1979/cosmos-autostaking

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosmos Auto Staking

Install dependencies

sudo apt install expect -y

Clone this repository

git clone https://github.com/zlounes/cosmos-autostaking.git $HOME/cosmos-autostaking && cd $HOME/cosmos-autostaking

Configuration

Make files executable

chmod +x $HOME/cosmos-autostaking/*delegate*

Edit desired profile files, set the appropriate values

nano $HOME/cosmos-autostaking/profiles/.bitcanna_profile
nano $HOME/cosmos-autostaking/profiles/.bitsong_profile
nano $HOME/cosmos-autostaking/profiles/.desmos_profile
nano $HOME/cosmos-autostaking/profiles/.emoney_profile
nano $HOME/cosmos-autostaking/profiles/.irisnet_profile
nano $HOME/cosmos-autostaking/profiles/.juno_profile
nano $HOME/cosmos-autostaking/profiles/.kichain_profile
nano $HOME/cosmos-autostaking/profiles/.omniflix_profile
nano $HOME/cosmos-autostaking/profiles/.osmosis_profile
nano $HOME/cosmos-autostaking/profiles/.regen_profile
nano $HOME/cosmos-autostaking/profiles/.stargaze_profile
nano $HOME/cosmos-autostaking/profiles/.terra_profile

Manage start&stop

Start

More profiles availables in the /profiles folder

screen -S autoDelegate $HOME/cosmos-autostaking/auto_delegate.sh -p $HOME/cosmos-autostaking/profiles/.desmos_profile

Stop

screen -R autoDelegate
exit

Watch logs

tail -f $HOME/cosmos-autostaking/auto_delegate.log

Using Systemd Service

sudo tee /etc/systemd/system/cosmos-autostaking.service <<EOF
Description=Cosmos Auto Staking
After=network-online.target

[Service]
User=$USER
WorkingDirectory=/home/$USER/cosmos-autostaking
ExecStart=/home/$USER/cosmos-autostaking/auto_delegate.sh -p /home/$USER/cosmos-autostaking/profiles/.desmos_profile

[Install]
WantedBy=multi-user.target
EOF

Start

sudo systemctl enable --now cosmos-autostaking

Stop

sudo systemctl stop cosmos-autostaking

About

Cosmos Auto Staking script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%