Documentation ¶
Index ¶
- Constants
- Variables
- func BeginBlock(ctx sdk.Context, k k.StakingKeeper)
- func EndBlock(ctx sdk.Context, k k.StakingKeeper) []abci.ValidatorUpdate
- func ExportGenesis(ctx sdk.Context, k keeper.StakingKeeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, keeper keeper.StakingKeeper, ak account.AccountKeeper, ...) (res []abci.ValidatorUpdate)
- func WriteValidators(ctx sdk.Context, keeper keeper.StakingKeeper) (vals []types.Validator, err error)
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 ExportGenesis ¶ added in v1.5.23
func ExportGenesis(ctx sdk.Context, k keeper.StakingKeeper) types.GenesisState
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
func WriteValidators ¶ added in v1.5.23
func WriteValidators(ctx sdk.Context, keeper keeper.StakingKeeper) (vals []types.Validator, err error)
WriteValidators returns a slice of bonded genesis validators.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.