Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 784 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 784 Bytes

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>