flags

package
v1.16.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const EnvVarPrefix = "OP_DRIPPER"

Variables

View Source
var (
	// Required Flags
	L1EthRpcFlag = &cli.StringFlag{
		Name:     "l1-eth-rpc",
		Usage:    "The RPC URL for the L1 Ethereum chain to drip",
		EnvVars:  prefixEnvVars("L1_ETH_RPC"),
		Required: true,
	}
	DrippieAddressFlag = &cli.StringFlag{
		Name:     "drippie-address",
		Usage:    "The address of the drippie contract",
		EnvVars:  prefixEnvVars("DRIPPIE_ADDRESS"),
		Required: true,
	}

	// Optional Flags
	PollIntervalFlag = &cli.DurationFlag{
		Name:    "poll-interval",
		Usage:   "How frequently to poll L2 for new blocks (legacy L2OO)",
		Value:   12 * time.Second,
		EnvVars: prefixEnvVars("POLL_INTERVAL"),
	}
)
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