GithubHelp home page GithubHelp logo

kinrokinro / cosmos-autostaking Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zakarialounes/cosmos-autostaking

0.0 0.0 0.0 49 KB

Cosmos Auto Staking script

Home Page: https://github.com/keupsonite/cosmos-autostaking

License: MIT License

Shell 100.00%

cosmos-autostaking's Introduction

Cosmos Auto Staking

โš  WARNING: Using this script in a mainnet environment is not recommended.

โš  WARNING: You are strongly advised to configure the service with the root user, so other users will not have access to the profile details and therefore the password (if you have decided to use the script with password set in profile).

Install dependencies

sudo apt install screen 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/.evmos_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
[Unit]
Description=Cosmos Auto Staking
After=network-online.target

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

[Install]
WantedBy=multi-user.target
EOF

Start

sudo systemctl enable --now cosmos-autostaking

Stop

sudo systemctl stop cosmos-autostaking

Manual Delegation

$HOME/cosmos-autostaking/delegate_manually.sh -p $HOME/cosmos-autostaking/profiles/.desmos_profile

cosmos-autostaking's People

Contributors

jakehartnell avatar zakarialounes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.