Lido Local DevNet is a powerful tool for deploying and testing the Lido protocol in a local Ethereum network. It provides a streamlined process for launching Ethereum nodes, block explorers, Lido smart contracts, Lido oracles, and essential tooling.
- Run Ethereum + Lido locally – Deploy and test the full Lido protocol on your machine.
- One-command setup – Spin up a complete test environment with a single command.
- Multi-node support – Test the protocol on all available Ethereum node implementations.
- Highly customizable deployment – Fine-tune deployment parameters to fit specific testing needs.
- Modular execution – The project is structured as a set of commands, allowing you to rerun any step independently.
- Multiple parallel environments – Run several test networks on the same machine to validate different scenarios.
- Git branch-aware deployment – Deploy and execute scripts and from different Git branches, simulating real-world deployment workflows.
- Integrated tooling – Built-in support for block explorers, oracles, and auxiliary services to streamline testing.
- Seamless debugging – Restart individual services or redeploy specific components without affecting the entire setup.
- Node.js 20+ (Install Node.js)
- Docker 27+ (Install Docker)
- Docker Compose V2 (Install Docker Compose)
- Kurtosis (Install Kurtosis)
- Foundry tools (Install Foundry)
- Just (Install Just)
Follow these steps to set up the DevNet:
Kurtosis is required to launch Ethereum nodes:
kurtosis engine start
yarn && yarn build:all
Below is an example for launching the pectra
test stand. If you need a different setup, refer to the test stands documentation.
./bin/run.js stands pectra --full
For contract verification, use the --verify
flag:
./bin/run.js stands pectra --full --verify
For a full DSM infrastructure deployment, add the --dsm
flag:
./bin/run.js stands pectra --full --verify --dsm
Since voting scripts require Python and Brownie, install the necessary dependencies:
./bin/run.js voting install
If errors occur, install any missing modules as prompted.
Next, add an account. Brownie does not automatically fetch account settings, but a console interface simplifies automation. Run the following command and enter the private key displayed in the logs:
./bin/run.js voting add-account
After adding an account, proceed with the voting process. See the voting documentation for more details. Below is an example for transitioning the protocol to the Pectra hard fork. If you need a different setup, refer to the documentation.
Before Pectra:
./bin/run.js voting enact-before-pectra
After Pectra:
./bin/run.js voting enact-after-pectra
The network, infrastructure, and protocol have been successfully launched.
To stop the DevNet and remove all services, run:
./bin/run.js down
To run multiple environments on a single machine, use the --network <custom-network-name>
flag:
./bin/run.js stands pectra --full --network test-pectra1
Note: The
--network test-pectra1
flag must be used with all subsequent commands to interact with the specified environment.
To get the latest information on available services, run:
./bin/run.js config
This repository provides a high-level interface for managing DevNet. However, if you need to restart a specific service or deployment step, refer to the command documentation.
If you want to start developing your own commands, read the short guide on the core API.