Git Product home page Git Product logo

dripgardencompounder-f1's Introduction

Drip Garden Auto Compounder

Automated scripts to compound drip garden without losing seeds. #DRIP #AnimalFarm #crypto #web3

About The Project

I needed an automated tool to compound without needing to check the schedule on the animal farm drip garden, setting timer on my phone and click the button when it is ready. So here it is. Enjoy and use at your own risk.

(back to top)

Installation

The code is written in python so you just need to install python and a couple packages required.

  1. Dowmload and install python if you don't have python installed from https://www.python.org/downloads/
  2. Install required packages if needed
    pip install web3
    pip install numpy

(back to top)

Usage

To use the tool, first we need to set up configuration file which includes your wallet address, referral address you used, and private key. Use the following command to generate a template configure file. The command below generate a template json file named "drip_garden.json" in the directory your are running the command.

python DripGardenCompounder.py --gencfg ./drip_garden.json

Now use your favoriate text editor to modify the json file generated.

  • Change YOUR_WALLET_ADDRESS in the json file to your wallet address.
  • Change "" in the json file with referral address to the referral address you used. If you don't have referral, skip.
  • Change YOUR_PRIVATE_KEY in your json file to your private key exported from your wallet. Should be a string of 64 hex characters. Prepend it with 0x

  • To get private key for your wallet, go to metamask faq. Becuase the config file contains private key, please don't put file in public drive or public computer. Guard this file!!! The finished json file should look like the following:
    {"wallet_address": "0x143Ad...", "referral_address": "", "key": "0xabcd8..."}
    

    To just see your harvest schedule, run the following

    python DripGardenCompounder.py --schedule

    To auto compound, run the following. The program will first figure out the time it needs to wait based on schedule, wait til 10 seconds after the harvest time, then call plant seeds of the contract to compound. After the call, the program will wait for the next harvest. The program is basically a endless loop unless some sort of error happens or the user hit Ctrl-C to stop the program.

    python DripGardenCompounder.py --run

    (back to top)

    Contact

    Project Link: https://github.com/davefang1030/DripGardenCompounder

    (back to top)

    dripgardencompounder-f1's People

    Contributors

    davefang1030 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.