Skip to content

builders-garden/power-agents-supabase-cf-gateway

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ENS Offchain Resolver Gateway with Supabase - Cloudflare Worker

This package implements a simple CCIP-read gateway worker for ENS offchain resolution, using Supabase as the database for the names.

The work is based on this example from ENS.

Usage:

Before running the gateway worker, couple of configuration needs to be done as following:

  1. Create a dev.vars in the root directory;
  2. Put gateway private key, supabase url and supabase key into it in between double quotes, as below:
PRIVATE_KEY=""
SUPABASE_SERVICE_KEY=""
SUPABASE_URL=""
  1. Run the worker:
yarn && yarn build
yarn start

Deployment on Cloudflare

Make sure that all the configuration above has been done. Add the enviroment variables as Cloudflare secrets.

About

Gateway for off-chain resolvers using ENS, Supabase and Cloudflare.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%