Documentation ¶
Overview ¶
nolint
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, k keeper.Keeper) (ValidatorUpdates []abci.Validator)
- func InitGenesis(ctx sdk.Context, keeper Keeper, data types.GenesisState) error
- func NewHandler(k keeper.Keeper) sdk.Handler
- func WriteGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState
- func WriteValidators(ctx sdk.Context, keeper Keeper) (vals []tmtypes.GenesisValidator)
- type BechValidator
- type Delegation
- type Description
- type GenesisState
- type Keeper
- type MsgBeginRedelegate
- type MsgBeginUnbonding
- type MsgCompleteRedelegate
- type MsgCompleteUnbonding
- type MsgCreateValidator
- type MsgDelegate
- type MsgEditValidator
- type Params
- type Pool
- type Redelegation
- type UnbondingDelegation
- type Validator
Constants ¶
View Source
const ( DefaultCodespace = types.DefaultCodespace CodeInvalidValidator = types.CodeInvalidValidator CodeInvalidDelegation = types.CodeInvalidDelegation CodeInvalidInput = types.CodeInvalidInput CodeValidatorJailed = types.CodeValidatorJailed CodeInternal = types.CodeInternal CodeUnknownRequest = types.CodeUnknownRequest )
Variables ¶
View Source
var ( NewKeeper = keeper.NewKeeper GetValidatorKey = keeper.GetValidatorKey GetValidatorByPubKeyIndexKey = keeper.GetValidatorByPubKeyIndexKey GetValidatorsBondedIndexKey = keeper.GetValidatorsBondedIndexKey GetValidatorsByPowerIndexKey = keeper.GetValidatorsByPowerIndexKey GetTendermintUpdatesKey = keeper.GetTendermintUpdatesKey GetDelegationKey = keeper.GetDelegationKey GetDelegationsKey = keeper.GetDelegationsKey ParamKey = keeper.ParamKey PoolKey = keeper.PoolKey ValidatorsKey = keeper.ValidatorsKey ValidatorsByPubKeyIndexKey = keeper.ValidatorsByPubKeyIndexKey ValidatorsBondedIndexKey = keeper.ValidatorsBondedIndexKey ValidatorsByPowerIndexKey = keeper.ValidatorsByPowerIndexKey ValidatorCliffIndexKey = keeper.ValidatorCliffIndexKey ValidatorPowerCliffKey = keeper.ValidatorPowerCliffKey TendermintUpdatesKey = keeper.TendermintUpdatesKey DelegationKey = keeper.DelegationKey IntraTxCounterKey = keeper.IntraTxCounterKey GetUBDKey = keeper.GetUBDKey GetUBDByValIndexKey = keeper.GetUBDByValIndexKey GetUBDsKey = keeper.GetUBDsKey GetUBDsByValIndexKey = keeper.GetUBDsByValIndexKey GetREDKey = keeper.GetREDKey GetREDByValSrcIndexKey = keeper.GetREDByValSrcIndexKey GetREDByValDstIndexKey = keeper.GetREDByValDstIndexKey GetREDsKey = keeper.GetREDsKey GetREDsFromValSrcIndexKey = keeper.GetREDsFromValSrcIndexKey GetREDsToValDstIndexKey = keeper.GetREDsToValDstIndexKey GetREDsByDelToValDstIndexKey = keeper.GetREDsByDelToValDstIndexKey DefaultParams = types.DefaultParams InitialPool = types.InitialPool NewValidator = types.NewValidator NewDescription = types.NewDescription NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState RegisterWire = types.RegisterWire NewMsgCreateValidator = types.NewMsgCreateValidator NewMsgCreateValidatorOnBehalfOf = types.NewMsgCreateValidatorOnBehalfOf NewMsgEditValidator = types.NewMsgEditValidator NewMsgDelegate = types.NewMsgDelegate NewMsgBeginUnbonding = types.NewMsgBeginUnbonding NewMsgCompleteUnbonding = types.NewMsgCompleteUnbonding NewMsgBeginRedelegate = types.NewMsgBeginRedelegate NewMsgCompleteRedelegate = types.NewMsgCompleteRedelegate )
View Source
var ( ErrNilValidatorAddr = types.ErrNilValidatorAddr ErrNoValidatorFound = types.ErrNoValidatorFound ErrValidatorOwnerExists = types.ErrValidatorOwnerExists ErrValidatorPubKeyExists = types.ErrValidatorPubKeyExists ErrValidatorRevoked = types.ErrValidatorRevoked ErrBadRemoveValidator = types.ErrBadRemoveValidator ErrDescriptionLength = types.ErrDescriptionLength ErrCommissionNegative = types.ErrCommissionNegative ErrCommissionHuge = types.ErrCommissionHuge ErrNilDelegatorAddr = types.ErrNilDelegatorAddr ErrBadDenom = types.ErrBadDenom ErrBadDelegationAmount = types.ErrBadDelegationAmount ErrNoDelegation = types.ErrNoDelegation ErrBadDelegatorAddr = types.ErrBadDelegatorAddr ErrNoDelegatorForAddress = types.ErrNoDelegatorForAddress ErrDelegationValidatorEmpty = types.ErrDelegationValidatorEmpty ErrNotMature = types.ErrNotMature ErrNoUnbondingDelegation = types.ErrNoUnbondingDelegation ErrNoRedelegation = types.ErrNoRedelegation ErrBadRedelegationDst = types.ErrBadRedelegationDst ErrMissingSignature = types.ErrMissingSignature )
View Source
var ( ActionCreateValidator = tags.ActionCreateValidator ActionEditValidator = tags.ActionEditValidator ActionDelegate = tags.ActionDelegate ActionBeginUnbonding = tags.ActionBeginUnbonding ActionCompleteUnbonding = tags.ActionCompleteUnbonding ActionBeginRedelegation = tags.ActionBeginRedelegation ActionCompleteRedelegation = tags.ActionCompleteRedelegation TagAction = tags.Action TagSrcValidator = tags.SrcValidator TagDstValidator = tags.DstValidator TagDelegator = tags.Delegator TagMoniker = tags.Moniker TagIdentity = tags.Identity )
Functions ¶
func EndBlocker ¶
Called every block, process inflation, update validator set
func InitGenesis ¶
InitGenesis sets the pool and parameters for the provided keeper and initializes the IntraTxCounter. 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.
func WriteGenesis ¶
func WriteGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState
WriteGenesis returns a GenesisState for a given context and keeper. The GenesisState will contain the pool, params, validators, and bonds found in the keeper.
func WriteValidators ¶
func WriteValidators(ctx sdk.Context, keeper Keeper) (vals []tmtypes.GenesisValidator)
WriteValidators returns a slice of bonded genesis validators.
Types ¶
type BechValidator ¶
type BechValidator = types.BechValidator
type Delegation ¶
type Delegation = types.Delegation
type Description ¶
type Description = types.Description
type GenesisState ¶
type GenesisState = types.GenesisState
type MsgBeginRedelegate ¶
type MsgBeginRedelegate = types.MsgBeginRedelegate
type MsgBeginUnbonding ¶
type MsgBeginUnbonding = types.MsgBeginUnbonding
type MsgCompleteRedelegate ¶
type MsgCompleteRedelegate = types.MsgCompleteRedelegate
type MsgCompleteUnbonding ¶
type MsgCompleteUnbonding = types.MsgCompleteUnbonding
type MsgCreateValidator ¶
type MsgCreateValidator = types.MsgCreateValidator
type MsgDelegate ¶
type MsgDelegate = types.MsgDelegate
type MsgEditValidator ¶
type MsgEditValidator = types.MsgEditValidator
type Redelegation ¶
type Redelegation = types.Redelegation
type UnbondingDelegation ¶
type UnbondingDelegation = types.UnbondingDelegation
Click to show internal directories.
Click to hide internal directories.