Skip to content

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

Notifications You must be signed in to change notification settings

davefang1030/DripGardenCompounder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

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)

    About

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

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages