This is a service that takes SystemConfigProxy and L1StandardBridgeProxy as inputs, and uses those addresses to fetch additional chain configuration information from onchain. All of the L1 rpc calls are made via a single solidity script, FetchChainInfo.s.sol. The compiled forge-artifacts for that script are then embedded in the go code so that op-fetcher can be used as a go library in addition to a cli tool. Current information fetched from onchain with this service (can be expanded in the future):
SystemConfigProxy and L1StandardBridgeProxyfault_proof_status fields (to determine no fault proofs vs. permissioned vs. permissionless)cd <repo-root>/op-fetcher
just build-all
go run ./cmd fetch \
--l1-rpc-url "<l1-rpc-url>" \
--system-config "<system-config-proxy-address>" \
--l1-standard-bridge "<l1-standard-bridge-proxy-address>"