Output Submitter

The Output Submitter stores the L2 output root for block finalization, receiving L2 output results from the executor to submit to L1.

Step 2: Set Output Submitter Config on .env.output

Configure the .env.output file created in Setting Up OPinit Bots with the following information.

  • TYPEORM_DATABASE should be the name of the database previously created

  • L2_CHAIN_ID is 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

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

.env.output
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

OUTPUT_SUBMITTER_MNEMONIC='tent apple ...'
NameDescriptionDefault

L1_LCD_URI

L1 node LCD URI

L1_RPC_URI

L1 node RPC URI

BRIDGE_ID

Bridge ID

''

OUTPUT_SUBMITTER_MNEMONIC

Mnemonic seed for output submitter

''

SLACK_WEB_HOOK

Slack web hook for notification (optional)

''

Step 2: Run the Output Submitter Bot

npm run prod:output

Last updated

Logo

© 2024 Initia Foundation, All rights reserved.