Skip to content

Commit

Permalink
devnet docker-compose: use suave-enabled anvil as mevm eth provider
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Feb 24, 2024
1 parent 1568a49 commit 1d95ed1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions suave/devenv/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data
12 changes: 11 additions & 1 deletion suave/devenv/README.md
Original file line number Diff line number Diff line change
@@ -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
9 changes: 3 additions & 6 deletions suave/devenv/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 1d95ed1

Please sign in to comment.