Challenger

The challenger monitors the L2 operator's activities, issuing challenges against any misconduct, such as invalid block submissions and output proposals.

Step 1: Set Challenger Mnemonic on .env.challenger

The challenger bot should be independent from executor and output submitter. It will monitor the output oracle and delete invalid output proposals.

  • TYPEORM_DATABASE should be the name of the database previously created

  • L2_CHAIN_ID your minitia's chain ID and bridge executor menmonic found in $HOME/.minitia/artifacts/config.json

  • BRIDGE_ID can be found in $HOME/.minitia/artifacts/artifacts.json

  • CHALLENGER_MNEMONIC can be found in $HOME/.minitia/artifacts/config.json's challenger field

.env.challenger
TYPEORM_CONNECTION=postgres               # database connection (currently only support `postgres`)
TYPEORM_HOST=localhost                    # database host
TYPEORM_USERNAME=username                 # database username
TYPEORM_PASSWORD=password                 # database password
TYPEORM_DATABASE=rollup                   # database name
TYPEORM_PORT=5432                         # database port
TYPEORM_SYNCHRONIZE=true                  # synchronize database schema
TYPEORM_LOGGING=false                     # enable logging
TYPEORM_ENTITIES=dist/orm/*Entity.js      # entity path

L1_CHAIN_ID=initiation-2
L2_CHAIN_ID=local-minitia
L1_LCD_URI=https://lcd.initiation-2.initia.xyz
L1_RPC_URI=https://rpc.initiation-2.initia.xyz
L2_LCD_URI=http://127.0.0.1:1317
L2_RPC_URI=http://127.0.0.1:26657
BRIDGE_ID=1

CHALLENGER_MNEMONIC='tent apple ...'

Step 2: Run the Batch Submitter Bot

npm run challenger

Last updated

Logo

© 2024 Initia Foundation, All rights reserved.