box

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StoreKey          = types.StoreKey
	RouterKey         = types.RouterKey
	QuerierRoute      = types.QuerierRoute
	DefaultParamspace = types.DefaultParamspace
	DefaultCodespace  = types.DefaultCodespace
)

Variables

View Source
var (
	MsgCdc          = msgs.MsgCdc
	NewKeeper       = keeper.NewKeeper
	NewModuleClient = client.NewModuleClient
	RegisterCodec   = msgs.RegisterCodec
)

Functions

func EndBlocker

func EndBlocker(ctx sdk.Context, keeper Keeper) sdk.Tags

Called every block, process inflation, update validator set

func InitGenesis

func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, data GenesisState)

InitGenesis sets distribution information for genesis.

func NewHandler

func NewHandler(keeper keeper.Keeper) sdk.Handler

Handle all "box" type messages.

func NewQuerier

func NewQuerier(keeper keeper.Keeper) sdk.Querier

New Querier Instance

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis performs basic validation of bank genesis data returning an error for any failed validation criteria.

Types

type BoxInfo

type BoxInfo = types.BoxInfo

type GenesisState

type GenesisState struct {
	StartingLockBoxId    uint64 `json:"starting_lock_box_id"`
	StartingDepositBoxId uint64 `json:"starting_deposit_box_id"`
	StartingFutureBoxId  uint64 `json:"starting_future_box_id"`
}

GenesisState - all box state that must be provided at genesis

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesisState returns a default genesis state

func ExportGenesis

func ExportGenesis(ctx sdk.Context, keeper keeper.Keeper) GenesisState

ExportGenesis returns a GenesisState for a given context and keeper.

func NewGenesisState

func NewGenesisState(startingLockBoxId uint64, startingDepositBoxId uint64, startingFutureBoxId uint64) GenesisState

NewGenesisState creates a new genesis state.

func (GenesisState) Equal

func (data GenesisState) Equal(data2 GenesisState) bool

Checks whether 2 GenesisState structs are equivalent.

func (GenesisState) IsEmpty

func (data GenesisState) IsEmpty() bool

Returns if a GenesisState is empty or has data in it

type Keeper

type Keeper = keeper.Keeper

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

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