Development Stack
Learn how to run the Boba development stack
Last updated
Learn how to run the Boba development stack
Last updated
Note: this is only relevant to developers who wish to work on Boba core services.
For most test uses, it's simpler to use https://sepolia.boba.network. In most cases, the contract deployment experience is exactly like deploying on Ethereum. You will need to have some testnet ETH and you will have to change your RPC endpoint to the Sepolia URL (or https://mainnet.boba.network
for the production network). That's it!
The following instructions apply to those who do wish to run a local standalone system.
Prerequisites include:
Version 1.21 of the Go language (https://go.dev/dl/)
A current version of Node.js (https://nodejs.org)
The Yarn package manager (https://yarnpkg.com/getting-started/install) - can be enabled after installing Node.js
The pnpm package manager (https://pnpm.io)
The jq JSON processor (https://jqlang.github.io/jq/ or 'sudo apt install jq')
The Foundry toolkit (https://getfoundry.sh/)
Download and install them according to their respective instructions, including the steps to update your $PATH environment variable. Then clone and build the Boba repository.
Make sure you have Docker installed and make sure Docker is running.
This will bring up the stack, including L1 and L2 sequencers as well as other components of the stack. Initial spinup can take 15 minutes or more as dependencies are downloaded, but subsequent relaunches will be faster.
Various setup files including a list of contract addresses may be found in the .devnet directory:
To stop the stack and delete its Docker containers:
Running out of space on your Docker, or having other having hard to debug issues? Try running docker system prune -a --volumes
and then rebuild the images.
The system may be inspected through Docker commands.
To run unit tests for a specific Optimism service:
To run end-to-end tests:
The L2 RPC endpoint is https://127.0.0.1:9545
. The local L1 may be accessed through https://127.0.0.1:8545
.