flags

package
v0.0.0-...-baf6593 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Liquidations and deleveraging.
	MaxLiquidationAttemptsPerBlock      = "max-liquidation-attempts-per-block"
	MaxDeleveragingAttemptsPerBlock     = "max-deleveraging-attempts-per-block"
	MaxDeleveragingSubaccountsToIterate = "max-deleveraging-subaccounts-to-iterate"

	// Mev.
	MevTelemetryEnabled    = "mev-telemetry-enabled"
	MevTelemetryHosts      = "mev-telemetry-hosts"
	MevTelemetryIdentifier = "mev-telemetry-identifier"
)

List of CLI flags.

View Source
const (
	DefaultMaxLiquidationAttemptsPerBlock      = 50
	DefaultMaxDeleveragingAttemptsPerBlock     = 10
	DefaultMaxDeleveragingSubaccountsToIterate = 500

	DefaultMevTelemetryEnabled    = false
	DefaultMevTelemetryHostsFlag  = ""
	DefaultMevTelemetryIdentifier = ""
)

Variables

View Source
var DefaultMevTelemetryHosts = []string{}

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. `furyaprotocold start --non-validating-full-node true`.

Types

type ClobFlags

type ClobFlags struct {
	MaxLiquidationAttemptsPerBlock      uint32
	MaxDeleveragingAttemptsPerBlock     uint32
	MaxDeleveragingSubaccountsToIterate uint32

	MevTelemetryEnabled    bool
	MevTelemetryHosts      []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