/Beanstalk-Py

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

Primary LanguagePython

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

To run the bots locally you will need to set several environment variables with your own keys. Environment variables necessary:

  • ETH_CHAIN_API_KEY
  • SUBGRAPH_API_KEY
  • DISCORD_BOT_TOKEN (DISCORD_BOT_TOKEN_PROD for prod application)
  • TELE_BOT_KEY (TELEGRAM_BOT_TOKEN_PROD for prod application)