Skip to content

A Cloudflare Worker that forwards events from the indexer to the inbox.

Notifications You must be signed in to change notification settings

DA0-DA0/notifier-cf-worker

Repository files navigation

notifier-cf-worker

A Cloudflare Worker that forwards events from the indexer to the inbox. An event may trigger a notification to be sent to multiple addresses; this notifier acts as a middleman between the indexer and the inbox, and is responsible for determining which addresses should receive notifications.

Used template for Cosmos wallet authentication to authenticate requests via a Cosmos wallet signature.

Development

Run locally

npm run dev
# OR
wrangler dev --local --persist

Configuration

  1. Copy wrangler.toml.example to wrangler.toml.

  2. Configure secrets:

echo <VALUE> | npx wrangler secret put NOTIFY_SECRET
echo <VALUE> | npx wrangler secret put INBOX_SECRET

Deploy

wrangler publish
# OR
npm run deploy

About

A Cloudflare Worker that forwards events from the indexer to the inbox.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published