This repository contains everything that's needed to start playing with Orbit chains: deployment of contracts, customizing and building your nitro node and starting up your chain.
-
Clone the repository
git clone https://github.com/TucksonDev/orbit-playground.git
-
Install dependencies
yarn install
git submodule update --init --recursive --force
Make a copy of the .env.example
file and call it .env
. Then, make sure you set a private key for the Chain owner, Batch poster and Staker accounts. You can leave the rest of options with their default, or customize any of them.
-
Deploy the contracts
yarn run deployChain
-
Build your nitro node
yarn run buildNitro
-
Launch your nitro node
docker compose up
-
Initialize your chain
yarn run initialize
-
(Optional) Deploy the Token Bridge
yarn run deployTokenBridge
When you modify the State Transition Function (STF) of your node, you have to update the WASM module root on-chain. You can find more information about what this means in the Arbitrum documentation portal.
Follow these steps to complete the process.
-
Obtain the new WASM module root
yarn run buildNitro
-
Update the WASM module root
yarn run updateWASM <WASM module root>
To run your node without blockscout, simply specify the appropriate services in the docker compose command:
docker compose up nitro das-server