keeper

package
v0.0.0-...-4ade6c6 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine

func NewKeeper

func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey) Keeper

NewKeeper creates new instances of the reseeding Keeper

func (Keeper) GetCurrentSeed

func (k Keeper) GetCurrentSeed(ctx sdk.Context) []byte

func (Keeper) GetSeeds

func (k Keeper) GetSeeds(ctx sdk.Context) (types.Seeds, error)

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) ResetCurrentSeed

func (k Keeper) ResetCurrentSeed(ctx sdk.Context)

func (Keeper) ResetSeeds

func (k Keeper) ResetSeeds(ctx sdk.Context)

func (Keeper) SetCurrentSeed

func (k Keeper) SetCurrentSeed(ctx sdk.Context, seed []byte)

func (Keeper) StoreSeed

func (k Keeper) StoreSeed(ctx sdk.Context, seeds types.Seeds) (err error)

Jump to

Keyboard shortcuts

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