From 1d95ed107650df80286c05c7156cfeb6c06f5c6e Mon Sep 17 00:00:00 2001 From: zeroXbrock <2791467+zeroXbrock@users.noreply.github.com> Date: Fri, 23 Feb 2024 18:11:23 -0800 Subject: [PATCH] devnet docker-compose: use suave-enabled anvil as mevm eth provider --- suave/devenv/.gitignore | 1 + suave/devenv/README.md | 12 +++++++++++- suave/devenv/docker-compose.yml | 9 +++------ 3 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 suave/devenv/.gitignore diff --git a/suave/devenv/.gitignore b/suave/devenv/.gitignore new file mode 100644 index 0000000000..1269488f7f --- /dev/null +++ b/suave/devenv/.gitignore @@ -0,0 +1 @@ +data diff --git a/suave/devenv/README.md b/suave/devenv/README.md index 636201ba52..6caa7751a5 100644 --- a/suave/devenv/README.md +++ b/suave/devenv/README.md @@ -1,6 +1,16 @@ -## Run the devnet: +## Run the devnet + `docker-compose up --build --force-recreate` +## Run the devnet with a forked ETH provider + +```sh +export RPC_URL=https://eth-goerli.g.alchemy.com/v2/YOUR_KEY_HERE +export ANVIL_FLAGS="-f $RPC_URL --chain-id 5" +docker-compose up -d +``` + ## Genesis info + Execution node's address: 0xb5feafbdd752ad52afb7e1bd2e40432a485bbb7f (private key: 6c45335a22461ccdb978b78ab61b238bad2fae4544fb55c14eb096c875ccfc52) Pre-funded private key: 0x91ab9a7e53c220e6210460b65a7a3bb2ca181412a8a7b43ff336b3df1737ce12, Address: 0xBE69d72ca5f88aCba033a063dF5DBe43a4148De0 diff --git a/suave/devenv/docker-compose.yml b/suave/devenv/docker-compose.yml index 0c55ad6b60..952c7ab146 100644 --- a/suave/devenv/docker-compose.yml +++ b/suave/devenv/docker-compose.yml @@ -18,6 +18,7 @@ services: - --keystore=/keystore/keystore - --unlock=0xB5fEAfbDD752ad52Afb7e1bD2E40432A485bBB7F - --password=/keystore/password.txt + - --suave.eth.remote_endpoint=http://172.17.0.1:8555 depends_on: - suave-enabled-chain volumes: @@ -26,11 +27,7 @@ services: - 8545:8545 - 8546:8546 suave-enabled-chain: - image: flashbots/suave-execution-geth:latest - command: - - --dev - - --dev.gaslimit=30000000 - - --http - - --ws + build: https://github.com/zeroXbrock/foundry.git#suavex_endpoints + entrypoint: /bin/sh -c 'anvil --host=0.0.0.0 ${ANVIL_FLAGS}' ports: - 8555:8545