Documentation ¶
Overview ¶
nolint
Index ¶
- Constants
- Variables
- func AllInvariants(d Keeper, sk StakeKeeper) sdk.Invariant
- func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, k keeper.Keeper)
- func CanWithdrawInvariant(k Keeper, sk StakeKeeper) sdk.Invariant
- func DelAccumInvariants(k Keeper, sk StakeKeeper) sdk.Invariant
- func ExportGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, keeper Keeper, data types.GenesisState)
- func NewHandler(k keeper.Keeper) sdk.Handler
- func ValAccumInvariants(k Keeper, sk StakeKeeper) sdk.Invariant
- type BankKeeper
- type CommunityTax
- type DelegationDistInfo
- type DelegatorWithdrawInfo
- type FeeCollectionKeeper
- type FeePool
- type GenesisState
- type Hooks
- type Keeper
- type MsgWithdrawDelegatorReward
- type MsgWithdrawDelegatorRewardsAll
- type MsgWithdrawValidatorRewardsAll
- type Params
- type Rewards
- type StakeKeeper
- type TotalAccum
- type ValidatorDistInfo
Constants ¶
View Source
const ( DefaultCodespace = types.DefaultCodespace CodeInvalidInput = types.CodeInvalidInput )
View Source
const ( QueryWithdrawAddr = keeper.QueryWithdrawAddr QueryDelegationDistInfo = keeper.QueryDelegationDistInfo QueryAllDelegationDistInfo = keeper.QueryAllDelegationDistInfo QueryValidatorDistInfo = keeper.QueryValidatorDistInfo QueryRewards = keeper.QueryRewards QueryCommunityTax = keeper.QueryCommunityTax )
Variables ¶
View Source
var ( NewKeeper = keeper.NewKeeper PrometheusMetrics = keeper.PrometheusMetrics NopMetrics = keeper.NopMetrics GetValidatorDistInfoKey = keeper.GetValidatorDistInfoKey GetDelegationDistInfoKey = keeper.GetDelegationDistInfoKey GetDelegationDistInfosKey = keeper.GetDelegationDistInfosKey GetDelegatorWithdrawAddrKey = keeper.GetDelegatorWithdrawAddrKey FeePoolKey = keeper.FeePoolKey ValidatorDistInfoKey = keeper.ValidatorDistInfoKey DelegationDistInfoKey = keeper.DelegationDistInfoKey DelegatorWithdrawInfoKey = keeper.DelegatorWithdrawInfoKey ProposerKey = keeper.ProposerKey DefaultParamspace = keeper.DefaultParamspace InitialFeePool = types.InitialFeePool NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState DefaultGenesisWithValidators = types.DefaultGenesisWithValidators RegisterCodec = types.RegisterCodec NewMsgWithdrawDelegatorRewardsAll = types.NewMsgWithdrawDelegatorRewardsAll NewMsgWithdrawDelegatorReward = types.NewMsgWithdrawDelegatorReward NewMsgWithdrawValidatorRewardsAll = types.NewMsgWithdrawValidatorRewardsAll NewQuerier = keeper.NewQuerier NewQueryDelegatorParams = keeper.NewQueryDelegatorParams NewQueryDelegationDistInfoParams = keeper.NewQueryDelegationDistInfoParams NewQueryValidatorDistInfoParams = keeper.NewQueryValidatorDistInfoParams NewQueryRewardsParams = keeper.NewQueryRewardsParams NewTotalAccum = types.NewTotalAccum )
View Source
var ( ErrNilDelegatorAddr = types.ErrNilDelegatorAddr ErrNilWithdrawAddr = types.ErrNilWithdrawAddr ErrNilValidatorAddr = types.ErrNilValidatorAddr ActionModifyWithdrawAddress = tags.ActionModifyWithdrawAddress ActionWithdrawDelegatorRewardsAll = tags.ActionWithdrawDelegatorRewardsAll ActionWithdrawDelegatorReward = tags.ActionWithdrawDelegatorReward ActionWithdrawValidatorRewardsAll = tags.ActionWithdrawValidatorRewardsAll TagAction = tags.Action TagValidator = tags.Validator TagDelegator = tags.Delegator )
Functions ¶
func AllInvariants ¶ added in v0.11.0
func AllInvariants(d Keeper, sk StakeKeeper) sdk.Invariant
AllInvariants runs all invariants of the distribution module Currently: total supply, positive power
func BeginBlocker ¶
set the proposer for determining distribution during endblock
func CanWithdrawInvariant ¶ added in v0.11.0
func CanWithdrawInvariant(k Keeper, sk StakeKeeper) sdk.Invariant
CanWithdrawInvariant checks that current rewards can be completely withdrawn
func DelAccumInvariants ¶ added in v0.11.0
func DelAccumInvariants(k Keeper, sk StakeKeeper) sdk.Invariant
DelAccumInvariants checks that each validator del accum == sum all delegators' accum
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState
ExportGenesis returns a GenesisState for a given context and keeper. The GenesisState will contain the pool, and validator/delegator distribution info's
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data types.GenesisState)
InitGenesis sets distribution information for genesis
func ValAccumInvariants ¶ added in v0.11.0
func ValAccumInvariants(k Keeper, sk StakeKeeper) sdk.Invariant
ValAccumInvariants checks that the fee pool accum == sum all validators' accum
Types ¶
type BankKeeper ¶
type BankKeeper = types.BankKeeper
type CommunityTax ¶ added in v0.14.0
type CommunityTax = keeper.CommunityTax
type DelegationDistInfo ¶
type DelegationDistInfo = types.DelegationDistInfo
type DelegatorWithdrawInfo ¶
type DelegatorWithdrawInfo = types.DelegatorWithdrawInfo
type FeeCollectionKeeper ¶
type GenesisState ¶
type GenesisState = types.GenesisState
type MsgWithdrawDelegatorReward ¶
type MsgWithdrawDelegatorReward = types.MsgWithdrawDelegatorReward
type MsgWithdrawDelegatorRewardsAll ¶
type MsgWithdrawDelegatorRewardsAll = types.MsgWithdrawDelegatorRewardsAll
type MsgWithdrawValidatorRewardsAll ¶
type MsgWithdrawValidatorRewardsAll = types.MsgWithdrawValidatorRewardsAll
type TotalAccum ¶
type TotalAccum = types.TotalAccum
type ValidatorDistInfo ¶
type ValidatorDistInfo = types.ValidatorDistInfo
Click to show internal directories.
Click to hide internal directories.