flags

package
v1.19.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const EnvVarPrefix = "OP_INTEROP_MON"

Variables

View Source
var (
	// Required Flags
	L2RpcsFlag = &cli.StringSliceFlag{
		Name:     "l2-rpcs",
		Usage:    "The RPC URLs for the L2 chains to monitor",
		EnvVars:  prefixEnvVars("L2_RPCS"),
		Required: true,
	}

	DependencySetFlag = &cli.StringFlag{
		Name:      "dependency-set",
		Usage:     "Path to the interop dependency-set JSON file (sources the chain set and message expiry window)",
		EnvVars:   prefixEnvVars("DEPENDENCY_SET"),
		Required:  true,
		TakesFile: true,
	}

	// Optional Flags
	InteropFilterEndpointFlag = &cli.StringFlag{
		Name:     "interop-filter-endpoint",
		Usage:    "Optional op-interop-filter RPC endpoint to cross-check executing-message validity and observe failsafe state (read-only)",
		EnvVars:  prefixEnvVars("INTEROP_FILTER_ENDPOINT"),
		Required: false,
	}

	InteropFilterMinSafetyFlag = &cli.StringFlag{
		Name:     "interop-filter-min-safety",
		Usage:    "Minimum safety level requested from the interop-filter checkAccessList cross-check; the filter only supports cross-unsafe or unsafe",
		EnvVars:  prefixEnvVars("INTEROP_FILTER_MIN_SAFETY"),
		Required: false,
		Value:    "cross-unsafe",
	}

	SupernodeEndpointsFlag = &cli.StringSliceFlag{
		Name:     "supernode-endpoints",
		Usage:    "Optional op-supernode CL RPC endpoints to observe liveness, per-chain safe/finalized heads, and cross-safety violations (read-only)",
		EnvVars:  prefixEnvVars("SUPERNODE_ENDPOINTS"),
		Required: false,
	}
)
View Source
var Flags []cli.Flag

Functions

func CheckRequired

func CheckRequired(ctx *cli.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL