staking

package
v1.5.53 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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 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.

Directories

Path Synopsis
client

Jump to

Keyboard shortcuts

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