#!/bin/bash
source .envrc

./bin/op-proposer \
  --data-dir=./data/proposer \
  --poll-interval=12s \
  --rpc.port=8560 \
  --rollup-rpc=http://127.0.0.1:9545 \
  --l2oo-address=$(cat ./deployer/artifact.json  | grep "L2OutputOracleProxy" | grep -Eo "0x[a-fA-F0-9]+") \
  --portal-address=$(cat ./deployer/artifact.json  | grep -w "OptimismPortal" | grep -Eo "0x[a-fA-F0-9]+") \
  --private-key=$GS_PROPOSER_PRIVATE_KEY \
  --l1-eth-rpc=$L1_RPC_URL
