appoptions

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultTestAppOptions

func GetDefaultTestAppOptions(homePath string, customFlags map[string]interface{}) servertypes.AppOptions

GetDefaultTestAppOptions returns a default set of AppOptions with the daemons disabled for end-to-end and simulator testing.

func GetDefaultTestAppOptionsFromTempDirectory

func GetDefaultTestAppOptionsFromTempDirectory(
	homePath string,
	customFlags map[string]interface{},
) servertypes.AppOptions

Types

type FakeAppOptions

type FakeAppOptions struct {
	// contains filtered or unexported fields
}

FakeAppOptions is a helper struct used for creating `servertypes.AppOptions` for simulator and end-to-end testing. This struct allows for customizing the `servertypes.AppOptions` value that is normally supplied from CLI arguments to `dydxprotocold`. The real concrete implementation for this interface is in the "viper" package which is used under the hood by "cobra", which is the CLI framework used by Cosmos SDK.

func NewFakeAppOptions

func NewFakeAppOptions() *FakeAppOptions

func (*FakeAppOptions) Get

func (fao *FakeAppOptions) Get(o string) interface{}

Get implements the `servertypes.AppOptions` interface.

func (*FakeAppOptions) Set

func (fao *FakeAppOptions) Set(option string, value interface{})

Jump to

Keyboard shortcuts

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