Setting Up OPinit Bots
Overview
This guide provides comprehensive instructions for setting up OPinit bots within your Initia ecosystem, essential for managing various operations in Optimistic Rollup environments. These bots include:
Bridge Executor: Executes bridge transactions.
Output Submitter: Submits output to the L1 node.
Batch Submission: Submits transaction batches to either Initia L1 or Celestia
Challenger: Monitor the L2 operator's activities and blocks invalid out submissions.
For convenience, OPinit bots can be hosted on the same machine as your minitia service for testing purposes.
However, for production and mainnet instances, we recommend hosting your OPinit bots on separate machines, distinct from the machine hosting your minitia service.
Install Dependencies
Setting Up Database
Once PostgreSQL is installed, we proceed to creating the database that will be used by our OPInit Bots.
Installation
Next, you can download the OPInit bot's source code or Docker image, depending on your preference.
Setting Environment Files
Each OPInit bot relies on a separate .env
file to configure its parameters. These files will be named in the format .env.{BOT_NAME}
. The directory in which to place these files may vary depending on how you're running the bots.
Inside the OPInit-bots
directory, run the following commands to create the environment variable files
Last updated