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 ¶
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
Click to show internal directories.
Click to hide internal directories.