Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventType = "instance" AttributeKeyHash = "hash" AttributeKeyService = "service" AttributeActionCreated = "created" )
module event types and attributes
View Source
const ( // ModuleName is the name of the module ModuleName = "instance" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for routing msgs RouterKey = ModuleName // QuerierRoute to be used for routing QuerierRoute = ModuleName )
View Source
const ( QueryGet = "get" QueryList = "list" )
Query endpoints supported by the instance querier
Variables ¶
View Source
var ModuleCdc *codec.Codec
ModuleCdc defines the module codec
Functions ¶
func RegisterCodec ¶
RegisterCodec registers concrete types on codec
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates the instance genesis parameters
Types ¶
type GenesisState ¶
type GenesisState struct {
Instances []*instance.Instance `json:"instances" yaml:"instances" validate:"dive"`
}
GenesisState - all instance state that must be provided at genesis
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState is the default GenesisState
func NewGenesisState ¶
func NewGenesisState(instances []*instance.Instance) GenesisState
NewGenesisState creates a new GenesisState object
Click to show internal directories.
Click to hide internal directories.