This is a fork of the original Arbitrum Orbit SDK, designed to make deploying and configuring rollups on Arbitrum One more seamless.
- Mainnet Rollup Deployment: Updated to deploy rollups directly on Arbitrum One instead of Sepolia.
- Enhanced Config Outputs: Generates
nodeConfig.json
andorbitSetupScriptConfig.json
with configurations populated from.env
, streamlining node setup. - Seamless Setup with Orbit Script: New instructions for using the
orbit-setup-script
with the generated config files for quick and easy rollup deployment.
Ensure you're using Node.js v18 or greater.
- Set Up Environment: Navigate to
examples/create-rollup-eth
, and populate the.env
file with necessary variables. - Install Dependencies: Run the following command:
yarn install
- Deploy Rollup: Execute:
This will deploy the rollup with ETH as the native token.
yarn dev
After deploying the rollup, go to examples/prepare-node-config
:
-
Set Up Environment: Populate the
.env
file with necessary variables. -
Install Dependencies: Run the following command:
yarn install
-
Deploy Rollup: Execute:
yarn dev
-
This step outputs two files:
nodeConfig.json
(with RPC defined from.env
)orbitSetupScriptConfig.json
.
- Clone the Orbit Setup Script: Clone the orbit-setup-script repository.
- Place Config Files: Move the generated
nodeConfig.json
andorbitSetupScriptConfig.json
files to theconfig
folder withinorbit-setup-script
. - Run Setup Script: Use the command below, replacing placeholders as needed:
PRIVATE_KEY="0xYourPrivateKey" L2_RPC_URL="<MAINNET_RPC_URL>" L3_RPC_URL="<L3_RPC_URL>" yarn run setup
This process finalizes the setup, allowing you to deploy and manage rollups on Arbitrum One. It also generates the outputInfo.json
.
For testing, clone the main
branch of nitro-testnode and run the following command:
./test-node.bash --init --tokenbridge --l3node --l3-fee-token --l3-token-bridge
Then, run the integration tests:
yarn test:integration
See more usage examples in the examples folder.