hemilabs / heminetwork

The hemi network core daemons.
MIT License
10 stars 6 forks source link

Create Optimism/Ethereum Side of Local Network #21

Closed ClaytonNorthey92 closed 3 months ago

ClaytonNorthey92 commented 4 months ago

Confirmation

Problem

As of now, our local network only spins up the bitcoin+hemi services. This gives us 100% control over out bitcoin environment. We want to do the same for the ethereum/optimism side.

Suggested solution

We need to run an ethereum node in the ethereum version of running bitcoind in regtest mode. Do that then set up the rest of the optimism network to all run locally. Outside of downloading dependencies, this should be totally isolated and not require internet connection.

add these services to ./e2e/docker-compose.yml

Additional Information

@max-sanchez to provide additional details

max-sanchez commented 4 months ago

To make everything go e2e, we'll need:

Then we can check correct e2e behavior:

And we can expand e2e tests in the future to include:

We can tweak some Optimism variables to make the e2e test go faster: