Documentation ¶
Index ¶
Constants ¶
View Source
const ( RouteKey = types.RouteKey StoreKey = types.StoreKey ModuleName = types.ModuleName DefaultCodespace = types.DefaultCodespace )
Variables ¶
View Source
var ( ModuleCdc = types.StakingCodec NewHandler = h.NewHandler NewKeeper = k.NewStakingKeeper NewQuerier = k.NewQuerier KeyBondDenom = types.KeyBondDenom DefaultGenesisState = types.DefaultGenesisState NewCreateValidatorMsg = types.NewMsgCreateValidator NewEditValidatorMsg = types.NewMsgEditValidator NewDelegateMsg = types.NewMsgDelegate NewRedelegateMsg = types.NewMsgRedelegate NewUndelegateMsg = types.NewMsgUndelegate NewMultiStakingHooks = types.NewMultiStakingHooks )
Functions ¶
func BeginBlock ¶
func BeginBlock(ctx sdk.Context, k k.StakingKeeper)
func EndBlock ¶
func EndBlock(ctx sdk.Context, k k.StakingKeeper) []abci.ValidatorUpdate
func InitGenesis ¶
func InitGenesis( ctx sdk.Context, keeper keeper.StakingKeeper, ak account.AccountKeeper, supplyKeeper supply.Keeper, data types.GenesisState, ) (res []abci.ValidatorUpdate)
InitGenesis sets the pool and parameters for the provided keeper. For each validator in data, it sets that validator in the keeper along with manually setting the indexes. In addition, it also sets any delegations found in data. Finally, it updates the bonded validators. Returns final validator set after applying all declaration and delegations
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.