ethereum-optimism / mocktimism

[WIP!] Coordinates two anvil process (L1 and L2) for testing / forking op-stack chains (mocktimism placeholder name)
MIT License
20 stars 7 forks source link

Add package to deploy contracts to a fresh devnet #34

Closed roninjin10 closed 8 months ago

roninjin10 commented 10 months ago

Description

When forking a live l2 we can use the already deployed contracts. But if the devnet is spun up fresh it must be able to deploy the contracts itself. Python reference code that does this is here: https://github.com/ethereum-optimism/optimism/blob/develop/bedrock-devnet/devnet/__init__.py#L106

roninjin10 commented 8 months ago

This is done via dumping state into geth