global

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 7 Imported by: 8

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.

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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