Skip to content

Latest commit

 

History

History

l1-gateway

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@ensdomains/l1-gateway

An instantiation of evm-gateway that targets Ethereum L1 - that is, it implements a CCIP-Read gateway that generates proofs of contract state on L1.

This may at first seem useless, but as the simplest possible practical EVM gateway implementation, it acts as an excellent target for testing the entire framework end-to-end.

It may also prove useful for contracts that wish to trustlessly establish the content of storage variables of other contracts, or historic values for storage variables of any contract.

Installation

bun add @ensdomains/l1-gateway

How to use l1-gateway locally via cloudflare dev env (aka wrangler)

cd l1-gateway
npm install -g bun wrangler
bun install
touch .dev.vars
## set WORKER_PROVIDER_URL
bun run dev

How to deploy l1-gateway to cloudflare

cd l1-gateway
npm install -g bun wrangler
wrangler login
wrangler secret put WORKER_PROVIDER_URL
bun run deploy

How to test

cd ../l1-verifier
PROVIDER_URL=$PROVIDER_URL TARGET_ADDRESS=$TARGET_ADDRESS yarn remote_test

Current deployments

Goerli

Contracts

Example contracts

Gateway