Skip to content

Python tooling for indexing of data and events from EVM and subgraphs. Processed data is forwarded to users in various channels.

Notifications You must be signed in to change notification settings

BeanstalkFarms/Beanstalk-Py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beanstalk Python Tooling

Bots

Included in this repo is a set of bots that disseminate information to Beanstalk Telegram and Discord channels.

  • Peg Cross Bot - sends a message every time the peg is crossed
  • Seasons Bot - sends a message when the sunrise function is successfully called with stats on the completed season
  • Exchange Bot - sends a message detailing each interaction with the Uniswap V2 ETH:BEAN pool contract
  • Contract Bot - sends a message detailing each interaction with the Beanstalk contact

Running locally

First, install the necessary requirements using pip3.8 install -r requirements.txt.

Create an .env.dev file using the provided example and place your varaibles there. Then, execute ./dev.sh <module>. For example, to run the main set of bots, execute ./dev.sh bots.discord_bot.

To test a specific transaction, use ./dev.sh bots.discord_bot <txn hashes here> with a list of comma separated hashes.

Bots can also be run in a docker container. See the docker directory for further information.

License

MIT

About

Python tooling for indexing of data and events from EVM and subgraphs. Processed data is forwarded to users in various channels.

Topics

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages