config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGatewayConfigEmptyContent  = sdkerrors.Register(types.ModuleName, 2100, "empty gateway staking config content")
	ErrGatewayConfigUnmarshalYAML = sdkerrors.Register(types.ModuleName, 2101, "config reader cannot unmarshal yaml content")
	ErrGatewayConfigInvalidStake  = sdkerrors.Register(types.ModuleName, 2102, "invalid stake in gateway stake config")
)

Functions

This section is empty.

Types

type GatewayStakeConfig

type GatewayStakeConfig struct {
	StakeAmount sdk.Coin
}

GatewayStakeConfig is the structure describing the gateway stake config

func ParseGatewayConfig

func ParseGatewayConfig(configContent []byte) (*GatewayStakeConfig, error)

ParseGatewayConfig parses the gateway stake yaml config file into a StakeGatewayConfig struct

type YAMLStakeGateway

type YAMLStakeGateway struct {
	StakeAmount string `yaml:"stake_amount"`
}

YAMLStakeGateway is the structure describing the gateway stake config file

Jump to

Keyboard shortcuts

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