Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.58 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.58 KB

@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.

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

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

How to deploy l1-gateway to cloudflare

cd l1-gateway
npm install -g wrangler
wrngler login
wrangler secret put WORKER_PROVIDER_URL
yarn deploy

How to test

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

Current deployments

Goerli

Contracts

Example contracts

Gateway