Launching the chain
To set up a rollup chain use the Arbitrum Rollup Deployment tool.
The deployment tool will assist you in configuring and launching your Rollup Chain. After you've successfully launched your chain, it will give you the chain's Ethereum address.
Initializing the validators
Run the following command to initialize a set of validators for a given Rollup contract. The
rollup_address should be the address output by the deployment tool after a successful deployment, and the
eth_url should be a RPC or WebSocket connection to an Ethereum node.
You can select to have one or more validators run on your machine for testing purposes.
yarn prod:initialize [rollup_address] [eth_url] [--validatorcount N=1]
prod:initialize command will create a
rollup_address folder with
validator_count subfolders, each configured with a validator for the given Rollup contract. It serves as a lightweight simulation of an enviroment where the validators are running on multiple machines.
Deploying your validators
To launch a set of docker images containing your validators, run:
yarn deploy:validators [rollup_address] --password=[password]
deploy:validators takes a path to the validator-states created in the previous step. Unlike the blockchain docker image, the validators can be stopped and restarted without losing any state. The password argument is used to secure the validator keystore. On the first deployment you set the password to any value, and on later deployments you must resubmit the same password.