Ejecutor del puente
El ejecutor del puente es el componente central del paquete acumulativo de minitia, que se encarga de las siguientes operaciones a través del módulo puente L2 :
Finalice la transacción de depósito L1 en L2.
Construir retirar almacenamiento tx Merkle Tree.
Calcule la raíz de salida L2.
Proporcionar las pruebas de retiro (Merkle Proofs) a los usuarios.
El robot ejecutor monitorea los nodos L1 y L2 para ejecutar transacciones puente de manera eficiente.
Paso 2: Activar la configuración de Bridge Executor.env.executor
.env.executor
Configure el .env.executor
archivo creado en Configuración de OPinit Bots con la siguiente información.
TYPEORM_DATABASE
debe ser el nombre de la base de datos creada previamenteL2_CHAIN_ID
yEXECUTOR_MNEMONIC
¿el ID de cadena de su minitia y el menmónico ejecutor de puente se encuentran en$HOME/.minitia/artifacts/config.json
BRIDGE_ID
puede encontrarse en$HOME/.minitia/artifacts/artifacts.json
.env.ejecutorCopiar
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-1
L2_CHAIN_ID=local-minitia
L1_LCD_URI=https://lcd.initiation-1.initia.xyz
L1_RPC_URI=https://rpc.initiation-1.initia.xyz
L2_LCD_URI=http://127.0.0.1:1317
L2_RPC_URI=http://127.0.0.1:26657
BRIDGE_ID=1 # need to be same as in $HOME/.minitia/artifacts/artifacts.json
EXECUTOR_PORT=5000
ENABLE_ORACLE=true
EXECUTOR_MNEMONIC='tent apple ...' # need to be same as in $HOME/.minitia/artifacts/artifacts.json
# optional config
# EXECUTOR_L1_MONITOR_HEIGHT=0
# EXECUTOR_L2_MONITOR_HEIGHT=0
# SLACK_WEB_HOOK=''
Nombre
Descripción
Por defecto
PUENTE_ID
ID de puente
''
PUERTO_EJECUTOR
Puerto ejecutor
5000
EJECUTOR_MNEMONIC
Semilla mnemotécnica para ejecutor
''
SLACK_WEB_HOOK
Gancho web de Slack para notificación (opcional)
''
BATCH_SUBMITTER_ADDR
Dirección del remitente del lote
''
EJECUTOR_L1_MONITOR_HEIGHT
Altura inicial del monitor L1 (opcional)
0
EJECUTOR_L2_MONITOR_HEIGHT
Altura inicial del monitor L2 (opcional)
0
ENABLE_API_ONLY
Habilitar el modo solo API (opcional)
FALSO
ENABLE_ORACLE
Habilitar Oracle (opcional)
FALSO
L1_CLIENTE_ID
ID de cliente L1 para Oracle (opcional)
''
Paso 3: Ejecutar el Bot Ejecutor
NodoEstibador
npm run prod:executor
Last updated