Documentation ¶
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, keeper Keeper) sdk.Tags
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
- func NewHandler(keeper keeper.Keeper) sdk.Handler
- func NewQuerier(keeper keeper.Keeper) sdk.Querier
- func ValidateGenesis(data GenesisState) error
- type BoxInfo
- type GenesisState
- type Hooks
- type Keeper
- type Params
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 RegisterCodec = msgs.RegisterCodec SendTxCmd = cli.SendTxCmd QueryCmd = cli.QueryCmd WithdrawCmd = cli.WithdrawCmd DefaultParams = config.DefaultParams )
Functions ¶
func EndBlocker ¶
Called every block, process inflation, update validator set
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
InitGenesis sets distribution information for genesis.
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 GenesisState ¶
type GenesisState struct { StartingLockId uint64 `json:"starting_lock_id"` StartingDepositId uint64 `json:"starting_deposit_id"` StartingFutureId uint64 `json:"starting_future_id"` LockBoxs []BoxInfo `json:"lock_boxs"` DepositBoxs []BoxInfo `json:"deposit_boxs"` FutureBoxs []BoxInfo `json:"future_boxs"` Params Params `json:"params"` }
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) GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func NewGenesisState ¶
func NewGenesisState(startingLockId uint64, startingDepositId uint64, startingFutureId 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
Click to show internal directories.
Click to hide internal directories.