flags

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Liquidations.
	MaxLiquidationOrdersPerBlock = "max-liquidation-orders-per-block"

	// Mev.
	MevTelemetryEnabled    = "mev-telemetry-enabled"
	MevTelemetryHost       = "mev-telemetry-host"
	MevTelemetryIdentifier = "mev-telemetry-identifier"
)

List of CLI flags.

View Source
const (
	DefaultMaxLiquidationOrdersPerBlock = 35

	DefaultMevTelemetryEnabled    = false
	DefaultMevTelemetryHost       = ""
	DefaultMevTelemetryIdentifier = ""
)

Default values.

Variables

This section is empty.

Functions

func AddClobFlagsToCmd

func AddClobFlagsToCmd(cmd *cobra.Command)

AddFlagsToCmd adds flags to app initialization. These flags should be applied to the `start` command of the V4 Cosmos application. E.g. `dydxprotocold start --non-validating-full-node true`.

Types

type ClobFlags

type ClobFlags struct {
	MaxLiquidationOrdersPerBlock uint32

	MevTelemetryEnabled    bool
	MevTelemetryHost       string
	MevTelemetryIdentifier string
}

A struct containing the values of all flags.

func GetClobFlagValuesFromOptions

func GetClobFlagValuesFromOptions(
	appOpts servertypes.AppOptions,
) ClobFlags

GetFlagValuesFromOptions gets values from the `AppOptions` struct which contains values from the command-line flags.

func GetDefaultClobFlags

func GetDefaultClobFlags() ClobFlags

Jump to

Keyboard shortcuts

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