A Cloudflare Worker that manages a wallet's following list of DAOs.
Used template for Cosmos wallet authentication to authenticate requests via a Cosmos wallet signature.
npm run dev
# OR
wrangler dev --local --persist
-
Copy
wrangler.toml.example
towrangler.toml
. -
Create KV namespaces for production and development:
npx wrangler kv:namespace create NONCES
npx wrangler kv:namespace create NONCES --preview
npx wrangler kv:namespace create FOLLOWS
npx wrangler kv:namespace create FOLLOWS --preview
- Update the binding IDs in
wrangler.toml
:
kv-namespaces = [
{ binding = "NONCES", id = "<INSERT NONCES_ID>", preview_id = "<INSERT NONCES_PREVIEW_ID>" },
{ binding = "FOLLOWS", id = "<INSERT FOLLOWS_ID>", preview_id = "<INSERT FOLLOWS_PREVIEW_ID>" },
]
- Configure secrets:
echo <VALUE> | npx wrangler secret put INDEXER_WEBHOOK_SECRET
wrangler publish
# OR
npm run deploy