Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1.48 KB

README.md

File metadata and controls

21 lines (17 loc) · 1.48 KB

Integration Tests

We store an anvil state files in this directory, so that we can start an anvil chain with the correct state for integration tests.

anvil --load-state STATE_FILE.json

Deployment state files

The various anvil state files such as eigenlayer-deployed-anvil-state.json contain the state of the anvil chain after deploying the contracts. They are created by running the various scripts in this folder

Eigenlayer deployment state

It was created by running this deploy script. If you ever need to redeploy a new version of eigenlayer contracts, first start an anvil chain that dumps its state after exiting

anvil --dump-state eigenlayer-deployed-anvil-state.json

Then run the deploy script

forge script script/testing/M2_Deploy_From_Scratch.s.sol --rpc-url http://localhost:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --broadcast --sig "run(string memory configFile)" -- M2_deploy_from_scratch.anvil.config.json

and finally kill the anvil chain with Ctrl-C. Make sure to copy the deployment output file to eigenlayer_deployment_output.json so that the tests can find the deployed contracts.