@ensdomains/l1-gateway
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-beta.4 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @ensdomains/l1-gateway

Weekly Downloads

1

Version

0.1.0-beta.4

License

MIT

Unpacked Size

35.1 kB

Total Files

43

Last publish

Collaborators

  • davidchu
  • taytems
  • makoto_inoue
  • decanus
  • nickjohnson
  • jefflau
  • mdt.
  • leeondamiky