Automated scripts to compound drip garden without losing seeds. #DRIP #AnimalFarm #crypto #web3
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.
The code is written in python so you just need to install python and a couple packages required.
- Dowmload and install python if you don't have python installed from https://www.python.org/downloads/
- Install required packages if needed
pip install web3 pip install numpy
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.
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
Project Link: https://github.com/davefang1030/DripGardenCompounder