Deploying Rollups with Weave
Install Weave
First, you need to install the Weave CLI
Configure Weave and Gas Station Account
With Weave installed, you need to set up and fund your gas station account. This account will be used to fund the various bots and processes that is involved in the rollup’s operations
This will prompt you to either generate a new account to use as your gas station account or import and existing account’s mnemonic. Once you have created your account, you then need to fund it with some INIT tokens (for OPinit Bots bridging transactions) and TIA (for submitting data to Celestia).
Deploy the Rollup
Now that you have configured your gas station account, you can proceed to deploying your rollup.
From the provided options, you can:
- Select your VM
- Choose your Chain ID and (default) gas token denomination
- Choosing DA Layer
- Enable Price Oracle
- Setting Genesis Accounts
If you want more information about a specific option, access the tooltip by pressing ctrl+T
. And if you want to go back to the previous step, press ctrl+Z
.
To make sure that you have tokens to later send transactions on your rollup, you should add at least 1 address you control to the list of genesis accounts when prompted.
Once you have selected all the options, Weave will automatically start the rollup. When everything is complete, you will see the rollup’s endpoint information, which includes the REST, RPC, and, for EVM rollups, JSON-RPC endpoints. The CLI will also create a magic link that you can use to add your rollup to InitiaScan.
At this point, you can now interact with your rollup, send transactions, and deploy contracts on the rollup. However, for full functionality, you will need to also run the OPinit Executor and Challenger Bots as well as the IBC Relayer.
Start the OPinit Executor
The OPinit Executor bot is responsible for executing INIT bridging transactions between the Initia L1 and your rollup, submitting the rollup state output to the L1, submitting DA data to Celestia, and more. To start the bot, run
This will prompt you to set up the bot’s configuration through a series of questions.
Once all of that is complete, you can start the bot by running the following command.
You should see the bot running in the terminal.
Start the OPinit Challenger
For production use, we recommend setting up the Challenger bot on a separate machine from the Executor bot.
The OPinit Challenger Bot is responsible for monitoring the Executor bot’s output proposal and ensuring its validity. To start the bot, run
Again, you’ll be guided through a series of questions similar to the Executor. The main difference is that you’ll be setting up the Challenger instead of the Executor.
Once all of that is complete, you can start the bot by running the following command.
You should see the bot running in the terminal.
If everything is working correctly, you will now have both the Executor and Challenger bots running.
Start the IBC Relayer
Finally, you need to set up the IBC Relayer Bot. This bot relays IBC messages between the Initia L1 and your rollup. It is essential for oracle price updates and managing IBC bridging transactions, including compatibility with Minitswap.
By default, Weave also allows you to setup the relayer for any whitelisted rollup. But in this case, we will be setting up the relayer for your local rollup.
Once all of that is complete, you can start the bot by running the following command.
You should see the bot running in the terminal.
Was this page helpful?