A Discord bot that messages a channel when new evidence is found in a Cosmos consumer chain.
- The consensus address is used to retrieve the validator moniker from the provider chain.
- All evidence data is saved to a local JSON file.
- python 3.10+
- A Cosmos binary that supports evidence queries using the
--nodeflag (e.g.strided) - A binary for each of the consumer chains to parse consensus addresses.
- Install Python dependencies:
cosmos-discord-snitch$ python -m venv .env
cosmos-discord-snitch$ source .env/bin/activate
cosmos-discord-snitch$ python -m pip install -r requirements.txt
- Create a Discord bot
- Invite the bot to the relevant channel
- Add the bot token and channel ID to
config-discord.toml - Enter the API and RPC endpoints for the chains you want to monitor in
config-evidence.toml
- Run
python cosmos_discord_snitch, or - modify
cosmos-discord-snitch.serviceand install the service.
