orbit-setup-script
These scripts will help you fund newly generated batch-poster and validator addresses, configure an Orbit chain, and deploy bridge contracts on both L2 and L3 chains.
Instructions
Once you’ve downloaded both config files from the Orbit Deployment UI, please follow the steps below to complete local deployment of your Orbit chain. For more details and step-by-step instructions, check out the documentation.
- Clone the https://github.com/OffchainLabs/orbit-setup-script repository, and run
yarn install
. Then, move both thenodeConfig.json
andorbitSetupScriptConfig.json
files into theconfig
directory within the cloned repository - Launch Docker, and in the base directory, run
docker-compose up -d
. This will launch the node with a public RPC reachable at http://localhost:8449/ and a corresponding BlockScout explorer instance, viewable at http://localhost:4000/ - Then, add the private key for the wallet you used to deploy the rollup contracts earlier in the following command, and run it:
PRIVATE_KEY="0xYourPrivateKey" L2_RPC_URL="<https://goerli-rollup.arbitrum.io/rpc>" L3_RPC_URL="<[http://localhost:8449](http://localhost:8449/)>" yarn run setup
- The Orbit chain is now up. You can find all information about the newly deployed chain in the
outputInfo.json
file which is created in the main directory of script folder - Optionally, to track logs, run the following command within the base directory:
docker-compose logs -f nitro
AltLayer Instructions
- Prepare
orbitSetupScriptConfig.json
- Execute bridge setup
mkdir bridge-setup-result mkdir -p bridge-setup-result/inputs mkdir -p bridge-setup-result/outputs docker run --rm \ --volume $(pwd)/bridge-setup-result/inputs/orbitSetupScriptConfig.json:/app/config/orbitSetupScriptConfig.json \ --volume $(pwd)/bridge-setup-result/outputs/outputInfo.json:/app/outputInfo.json \ 305587085711.dkr.ecr.us-west-2.amazonaws.com/orbit-setup:latest 2>&1 | tee bridge-setup-result/docker-run-log.txt