GeneralizedTCR Action Bot
This bot watches a GTCR Factory contract and all GTCR contracts spawned from it. It is a convenience tool and does primarily two things:
- Detects submissions that passed the challenge period and executes them for the user.
- Detects pending crowdfunding rewards that were not withdrawn, and withdraws them for the user.
We recommend using volta
- Tested on NodeJS version 14.
- Clone this repo.
- Duplicate
.env.example, rename it to.envand fill in the environment variables. - Run
yarnto install dependencies and thenyarn startto run the service
- Create a
.envfile with the name of the network you wish to use. Example.env.xdai. - Look into
package.jsonfor the appropriate script (e.g. start:xdai). Create one if it does not yet exist. - Use PM2 like so:
pm2 start yarn --interpreter bash --name gtcr-action-bot-<network> -- start:<network>, replacingnetworkwith the network name.
Example for xDai:
pm2 start yarn --interpreter bash --name gab-xdai -- start:xdai
See CONTRIBUTING.md.