Snapchain / op-chain-deployment

0 stars 0 forks source link

OP Chain Deployment

Setup environment variables

cp .env.example .env
cp .env.explorer.example .env.explorer
cp .env.bridge.example .env.bridge

Fetch and update the submodules

git submodule update --init --recursive

Update the environment variables

Update environment variables in the .env files.

Local L1 chain

Setup the network parameters

make l1-configure

Note: It will generate a new wallet configs/l1/l1-prefund-wallet.json and update the configs/l1/network_params.yaml file with the address to use for the prefunded account. You can update the configs/l1/network_params.yaml file manually to use an existing wallet.

Launch with kurtosis and ethereum-package

make l1-launch

Remove the local L1 chain

make l1-remove

Note: If you launch the local L1 chain with kurtosis, you must set the following environment variables with the values from the configs/network_params_geth_lighthouse.yaml file: