Skip to content

OlympusDAO/governor-discord-alerts

Repository files navigation

Governor Discord Alerts

This is a simple Google Cloud Function that watches for events in the olympus-governor subgraph and sends alerts to a Discord channel.

Process

It performs the following steps:

  1. Fetch the latest block from the subgraph.
  2. Fetch the proposal events from the subgraph that occurred after the latest block.
  3. For each proposal event, send a Discord alert.
  4. Update the latest block number to the current block number.

Setup

  1. Install dependencies:

    pnpm install
  2. Copy .env.example to .env and set the variables.

Deployment

  1. Build the function:

    yarn run build
  2. Deploy the function:

    pulumi up --stack <dev|prod>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published