-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
114 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DEPLOYER_PRIVATE_KEY="" | ||
L1_PROVIDER_URL="" | ||
L2_PROVIDER_URL="" | ||
L1_ETHERSCAN_API_KEY="" | ||
L2_ETHERSCAN_API_KEY="" | ||
L2_OUTPUT_ORACLE="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,52 @@ | ||
# @ensdomains/op-gateway | ||
|
||
An instantiation of [evm-gateway](https://github.com/ensdomains/evmgateway/tree/main/evm-gateway) that targets Optimism - that is, it implements a CCIP-Read gateway that generates proofs of contract state on Optimism. | ||
|
||
For a detailed readme and usage instructions, see the [monorepo readme](https://github.com/ensdomains/evmgateway/tree/main). | ||
|
||
## How to use l1-gateway locally | ||
|
||
``` | ||
cd l1-gateway | ||
yarn | ||
touch .dev.vars | ||
## set L1_PROVIDER_URL, L2_PROVIDER_URL, DELAY=5 | ||
yarn dev | ||
``` | ||
|
||
## How to deploy l1-gateway to cloudflare | ||
|
||
``` | ||
cd l1-gateway | ||
npm install -g wrangler | ||
wrngler login | ||
wrangler secret put L1_PROVIDER_URL | ||
wrangler secret put L2_PROVIDER_URL | ||
wrangler secret put L2_OUTPUT_ORACLE | ||
wrangler secret put DELAY | ||
yarn deploy | ||
``` | ||
|
||
## How to test | ||
|
||
``` | ||
cd ../l1-verifier l1-gateway | ||
PROVIDER_URL=$PROVIDER_URL TARGET_ADDRESS=$TARGET_ADDRESS yarn remote_test | ||
``` | ||
|
||
## Current deployments | ||
|
||
## Deployments | ||
|
||
### Goerli | ||
|
||
- OPVerifier = [0x0c2746F20C9c97DBf718de10c04943cf408230A3](https://goerli.etherscan.io/address/0x0c2746F20C9c97DBf718de10c04943cf408230A3) | ||
- TestL1 = [0x5057276e2BD7750Be043595ac6d21dE31e900c3c](https://goerli.etherscan.io/address/0x5057276e2BD7750Be043595ac6d21dE31e900c3c) | ||
|
||
### OptimismGoerli | ||
|
||
- TestL2 = [0x0FEcD0Fec173807204c7B31e36384acEeB048b0A](https://goerli-optimism.etherscan.io/address/0x0FEcD0Fec173807204c7B31e36384acEeB048b0A) | ||
|
||
## Gateway | ||
|
||
- http://op-gateway-worker.ens-cf.workers.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters