Skip to content

Slack Bot that will periodically fetch queued transactions in a Gnosis Safe and post them in Slack

License

Notifications You must be signed in to change notification settings

verumlotus/Gnosis-Safe-SlackBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gnosis-Safe-SlackBot

Simple Slack Bot that will periodically fetch queued transactions in a Gnosis Safe and post them in Slack.

Background

Gnosis Safe is the most commonly used multi-sig for treasury management, governance upgrades, and coordinated actions in general. It's easy for time-sensitive transactions to be forgotten in the gnosis safe queue until it's too late to execute them. This repo contains a simple slack bot to ping a slack channel every X hours (X is configurable) notifying multi-sig holders of pending transactions.

Screen Shot 2022-05-24 at 6 02 32 PM

Setup Steps

  • Python package dependencies are handled using poetry. Run poetry install to install the necessary packages
  • Follow .env.template and fill out a .env file with the appropriate API keys and gnosis safe address
  • To obtain a slack webhook, refer to this guide

Deployment

app/bot.py is meant to be an AWS lambda cron job that is invoked after a certain amount of time has elapsed. You can refer to the iac/main.tf terraform file to deploy using the terraform CLI, but note that some of the code is specific to my machine/setup so modifications are required. You can alternatively zip your files manually and upload them to Lambda and set a time increment using the GUI (see here).

Disclaimer

This bot was built for fun and personal utility – it hasn't been stress-tested so I wouldn't recommend using this as the only method of being notified of pending transactions!

About

Slack Bot that will periodically fetch queued transactions in a Gnosis Safe and post them in Slack

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published