Install dependencies here.
Next, clone the repo:
cd $HOME
git clone https://github.com/celestiaorg/optimism
cd optimism
git checkout bitcoin-daInstall asdf to allow us to intall a specific version of NPM easily:
cd $HOME
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.2
echo '. "$HOME/.asdf/asdf.sh"' >> ~/.bashrc
echo '. "$HOME/.asdf/completions/asdf.bash"' >> ~/.bashrcSet the path:
export PATH=$PATH:~/.asdf/bin/Check that it was installed:
asdfInstall nodejs 16.16.0:
asdf plugin add nodejs
asdf install nodejs 16.16.0
asdf local nodejs 16.16.0
source ~/.bashrcOptional: you may need to update NPM:
npm install -g [email protected]curl -L https://foundry.paradigm.xyz/ | bash
source /root/.bashrcInstall yarn:
npm install -g yarnInstall docker-compose:
apt install docker-composeapt install gccBuild and start the TypeScript definitions for TS dependencies
cd optimism
yarn && make build-ts
make devnet-upThis starts up the layer 1 (ETH), layer 2 (op-geth), data availability
layer (Bitcoin), the sequencer (op-node), batch submitter (op-batcher),
intermediate-state root (ISR) service (op-proposer).