Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶ added in v0.2.0
func NewQuerier(gm GlobalKeeper) sdk.Querier
creates a querier for global REST endpoints
Types ¶
type GlobalKeeper ¶ added in v0.3.0
type GlobalKeeper interface { InitGenesis(ctx sdk.Context) // blockchain scheduled events. OnBeginBlock(ctx sdk.Context) OnEndBlock(ctx sdk.Context) // module events RegisterEventAtTime(ctx sdk.Context, unixTime int64, event linotypes.Event) sdk.Error ExecuteEvents(ctx sdk.Context, exec linotypes.EventExec) // Getter //// global time GetLastBlockTime(ctx sdk.Context) int64 GetPastDay(ctx sdk.Context, unixTime int64) int64 GetBCEventErrors(ctx sdk.Context) []linotypes.BCEventErr GetEventErrors(ctx sdk.Context) []model.EventError GetGlobalTime(ctx sdk.Context) model.GlobalTime // import export ImportFromFile(ctx sdk.Context, cdc *codec.Codec, filepath string) error ExportToFile(ctx sdk.Context, cdc *codec.Codec, filepath string) error }
GlobalKeeper - aka global event manager.
Click to show internal directories.
Click to hide internal directories.