2018-09-19 11:47:25 -07:00
|
|
|
package distribution
|
2018-09-18 21:42:05 -07:00
|
|
|
|
|
|
|
import (
|
2019-07-31 06:59:16 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/x/distribution/client"
|
2018-09-18 21:42:05 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/x/distribution/keeper"
|
|
|
|
"github.com/cosmos/cosmos-sdk/x/distribution/types"
|
|
|
|
)
|
|
|
|
|
2019-12-17 10:59:16 -08:00
|
|
|
// nolint
|
|
|
|
|
2018-09-18 21:42:05 -07:00
|
|
|
const (
|
2019-05-20 06:13:32 -07:00
|
|
|
ModuleName = types.ModuleName
|
|
|
|
StoreKey = types.StoreKey
|
|
|
|
RouterKey = types.RouterKey
|
|
|
|
QuerierRoute = types.QuerierRoute
|
2019-06-05 16:26:17 -07:00
|
|
|
ProposalTypeCommunityPoolSpend = types.ProposalTypeCommunityPoolSpend
|
|
|
|
QueryParams = types.QueryParams
|
|
|
|
QueryValidatorOutstandingRewards = types.QueryValidatorOutstandingRewards
|
|
|
|
QueryValidatorCommission = types.QueryValidatorCommission
|
|
|
|
QueryValidatorSlashes = types.QueryValidatorSlashes
|
|
|
|
QueryDelegationRewards = types.QueryDelegationRewards
|
|
|
|
QueryDelegatorTotalRewards = types.QueryDelegatorTotalRewards
|
|
|
|
QueryDelegatorValidators = types.QueryDelegatorValidators
|
|
|
|
QueryWithdrawAddr = types.QueryWithdrawAddr
|
|
|
|
QueryCommunityPool = types.QueryCommunityPool
|
2020-01-10 12:08:14 -08:00
|
|
|
DefaultParamspace = types.DefaultParamspace
|
2019-12-10 20:02:15 -08:00
|
|
|
TypeMsgFundCommunityPool = types.TypeMsgFundCommunityPool
|
2019-05-20 06:13:32 -07:00
|
|
|
)
|
2019-04-10 10:08:50 -07:00
|
|
|
|
2019-05-20 06:13:32 -07:00
|
|
|
var (
|
|
|
|
// functions aliases
|
|
|
|
RegisterInvariants = keeper.RegisterInvariants
|
|
|
|
AllInvariants = keeper.AllInvariants
|
|
|
|
NonNegativeOutstandingInvariant = keeper.NonNegativeOutstandingInvariant
|
|
|
|
CanWithdrawInvariant = keeper.CanWithdrawInvariant
|
|
|
|
ReferenceCountInvariant = keeper.ReferenceCountInvariant
|
2019-06-28 13:11:27 -07:00
|
|
|
ModuleAccountInvariant = keeper.ModuleAccountInvariant
|
2019-05-20 06:13:32 -07:00
|
|
|
NewKeeper = keeper.NewKeeper
|
2020-01-10 12:08:14 -08:00
|
|
|
GetValidatorOutstandingRewardsAddress = types.GetValidatorOutstandingRewardsAddress
|
|
|
|
GetDelegatorWithdrawInfoAddress = types.GetDelegatorWithdrawInfoAddress
|
|
|
|
GetDelegatorStartingInfoAddresses = types.GetDelegatorStartingInfoAddresses
|
|
|
|
GetValidatorHistoricalRewardsAddressPeriod = types.GetValidatorHistoricalRewardsAddressPeriod
|
|
|
|
GetValidatorCurrentRewardsAddress = types.GetValidatorCurrentRewardsAddress
|
|
|
|
GetValidatorAccumulatedCommissionAddress = types.GetValidatorAccumulatedCommissionAddress
|
|
|
|
GetValidatorSlashEventAddressHeight = types.GetValidatorSlashEventAddressHeight
|
|
|
|
GetValidatorOutstandingRewardsKey = types.GetValidatorOutstandingRewardsKey
|
|
|
|
GetDelegatorWithdrawAddrKey = types.GetDelegatorWithdrawAddrKey
|
|
|
|
GetDelegatorStartingInfoKey = types.GetDelegatorStartingInfoKey
|
|
|
|
GetValidatorHistoricalRewardsPrefix = types.GetValidatorHistoricalRewardsPrefix
|
|
|
|
GetValidatorHistoricalRewardsKey = types.GetValidatorHistoricalRewardsKey
|
|
|
|
GetValidatorCurrentRewardsKey = types.GetValidatorCurrentRewardsKey
|
|
|
|
GetValidatorAccumulatedCommissionKey = types.GetValidatorAccumulatedCommissionKey
|
|
|
|
GetValidatorSlashEventPrefix = types.GetValidatorSlashEventPrefix
|
|
|
|
GetValidatorSlashEventKeyPrefix = types.GetValidatorSlashEventKeyPrefix
|
|
|
|
GetValidatorSlashEventKey = types.GetValidatorSlashEventKey
|
2019-06-05 16:26:17 -07:00
|
|
|
HandleCommunityPoolSpendProposal = keeper.HandleCommunityPoolSpendProposal
|
2019-05-20 06:13:32 -07:00
|
|
|
NewQuerier = keeper.NewQuerier
|
2020-01-10 12:08:14 -08:00
|
|
|
ParamKeyTable = types.ParamKeyTable
|
|
|
|
DefaultParams = types.DefaultParams
|
2019-05-20 06:13:32 -07:00
|
|
|
RegisterCodec = types.RegisterCodec
|
|
|
|
NewDelegatorStartingInfo = types.NewDelegatorStartingInfo
|
2019-12-27 09:57:54 -08:00
|
|
|
ErrEmptyDelegatorAddr = types.ErrEmptyDelegatorAddr
|
|
|
|
ErrEmptyWithdrawAddr = types.ErrEmptyWithdrawAddr
|
|
|
|
ErrEmptyValidatorAddr = types.ErrEmptyValidatorAddr
|
|
|
|
ErrEmptyDelegationDistInfo = types.ErrEmptyDelegationDistInfo
|
2019-05-20 06:13:32 -07:00
|
|
|
ErrNoValidatorDistInfo = types.ErrNoValidatorDistInfo
|
2019-12-27 09:57:54 -08:00
|
|
|
ErrNoValidatorExists = types.ErrNoValidatorExists
|
|
|
|
ErrNoDelegationExists = types.ErrNoDelegationExists
|
2019-05-20 06:13:32 -07:00
|
|
|
ErrNoValidatorCommission = types.ErrNoValidatorCommission
|
|
|
|
ErrSetWithdrawAddrDisabled = types.ErrSetWithdrawAddrDisabled
|
|
|
|
ErrBadDistribution = types.ErrBadDistribution
|
2019-06-05 16:26:17 -07:00
|
|
|
ErrInvalidProposalAmount = types.ErrInvalidProposalAmount
|
|
|
|
ErrEmptyProposalRecipient = types.ErrEmptyProposalRecipient
|
2019-05-20 06:13:32 -07:00
|
|
|
InitialFeePool = types.InitialFeePool
|
|
|
|
NewGenesisState = types.NewGenesisState
|
|
|
|
DefaultGenesisState = types.DefaultGenesisState
|
|
|
|
ValidateGenesis = types.ValidateGenesis
|
|
|
|
NewMsgSetWithdrawAddress = types.NewMsgSetWithdrawAddress
|
|
|
|
NewMsgWithdrawDelegatorReward = types.NewMsgWithdrawDelegatorReward
|
|
|
|
NewMsgWithdrawValidatorCommission = types.NewMsgWithdrawValidatorCommission
|
2019-12-10 20:02:15 -08:00
|
|
|
MsgFundCommunityPool = types.NewMsgFundCommunityPool
|
2019-06-05 16:26:17 -07:00
|
|
|
NewCommunityPoolSpendProposal = types.NewCommunityPoolSpendProposal
|
|
|
|
NewQueryValidatorOutstandingRewardsParams = types.NewQueryValidatorOutstandingRewardsParams
|
|
|
|
NewQueryValidatorCommissionParams = types.NewQueryValidatorCommissionParams
|
|
|
|
NewQueryValidatorSlashesParams = types.NewQueryValidatorSlashesParams
|
|
|
|
NewQueryDelegationRewardsParams = types.NewQueryDelegationRewardsParams
|
|
|
|
NewQueryDelegatorParams = types.NewQueryDelegatorParams
|
|
|
|
NewQueryDelegatorWithdrawAddrParams = types.NewQueryDelegatorWithdrawAddrParams
|
2019-05-20 06:13:32 -07:00
|
|
|
NewQueryDelegatorTotalRewardsResponse = types.NewQueryDelegatorTotalRewardsResponse
|
|
|
|
NewDelegationDelegatorReward = types.NewDelegationDelegatorReward
|
|
|
|
NewValidatorHistoricalRewards = types.NewValidatorHistoricalRewards
|
|
|
|
NewValidatorCurrentRewards = types.NewValidatorCurrentRewards
|
|
|
|
InitialValidatorAccumulatedCommission = types.InitialValidatorAccumulatedCommission
|
|
|
|
NewValidatorSlashEvent = types.NewValidatorSlashEvent
|
|
|
|
|
|
|
|
// variable aliases
|
2020-01-10 12:08:14 -08:00
|
|
|
FeePoolKey = types.FeePoolKey
|
|
|
|
ProposerKey = types.ProposerKey
|
|
|
|
ValidatorOutstandingRewardsPrefix = types.ValidatorOutstandingRewardsPrefix
|
|
|
|
DelegatorWithdrawAddrPrefix = types.DelegatorWithdrawAddrPrefix
|
|
|
|
DelegatorStartingInfoPrefix = types.DelegatorStartingInfoPrefix
|
|
|
|
ValidatorHistoricalRewardsPrefix = types.ValidatorHistoricalRewardsPrefix
|
|
|
|
ValidatorCurrentRewardsPrefix = types.ValidatorCurrentRewardsPrefix
|
|
|
|
ValidatorAccumulatedCommissionPrefix = types.ValidatorAccumulatedCommissionPrefix
|
|
|
|
ValidatorSlashEventPrefix = types.ValidatorSlashEventPrefix
|
|
|
|
ParamStoreKeyCommunityTax = types.ParamStoreKeyCommunityTax
|
|
|
|
ParamStoreKeyBaseProposerReward = types.ParamStoreKeyBaseProposerReward
|
|
|
|
ParamStoreKeyBonusProposerReward = types.ParamStoreKeyBonusProposerReward
|
|
|
|
ParamStoreKeyWithdrawAddrEnabled = types.ParamStoreKeyWithdrawAddrEnabled
|
2019-07-31 06:59:16 -07:00
|
|
|
ModuleCdc = types.ModuleCdc
|
|
|
|
EventTypeSetWithdrawAddress = types.EventTypeSetWithdrawAddress
|
2019-06-26 09:03:25 -07:00
|
|
|
EventTypeRewards = types.EventTypeRewards
|
|
|
|
EventTypeCommission = types.EventTypeCommission
|
2019-07-31 06:59:16 -07:00
|
|
|
EventTypeWithdrawRewards = types.EventTypeWithdrawRewards
|
|
|
|
EventTypeWithdrawCommission = types.EventTypeWithdrawCommission
|
|
|
|
EventTypeProposerReward = types.EventTypeProposerReward
|
|
|
|
AttributeKeyWithdrawAddress = types.AttributeKeyWithdrawAddress
|
2019-06-26 09:03:25 -07:00
|
|
|
AttributeKeyValidator = types.AttributeKeyValidator
|
2019-07-31 06:59:16 -07:00
|
|
|
AttributeValueCategory = types.AttributeValueCategory
|
|
|
|
ProposalHandler = client.ProposalHandler
|
2019-05-20 06:13:32 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
type (
|
|
|
|
Hooks = keeper.Hooks
|
|
|
|
Keeper = keeper.Keeper
|
|
|
|
DelegatorStartingInfo = types.DelegatorStartingInfo
|
|
|
|
FeePool = types.FeePool
|
|
|
|
DelegatorWithdrawInfo = types.DelegatorWithdrawInfo
|
|
|
|
ValidatorOutstandingRewardsRecord = types.ValidatorOutstandingRewardsRecord
|
|
|
|
ValidatorAccumulatedCommissionRecord = types.ValidatorAccumulatedCommissionRecord
|
|
|
|
ValidatorHistoricalRewardsRecord = types.ValidatorHistoricalRewardsRecord
|
|
|
|
ValidatorCurrentRewardsRecord = types.ValidatorCurrentRewardsRecord
|
|
|
|
DelegatorStartingInfoRecord = types.DelegatorStartingInfoRecord
|
|
|
|
ValidatorSlashEventRecord = types.ValidatorSlashEventRecord
|
2020-01-10 12:08:14 -08:00
|
|
|
Params = types.Params
|
2019-05-20 06:13:32 -07:00
|
|
|
GenesisState = types.GenesisState
|
|
|
|
MsgSetWithdrawAddress = types.MsgSetWithdrawAddress
|
|
|
|
MsgWithdrawDelegatorReward = types.MsgWithdrawDelegatorReward
|
|
|
|
MsgWithdrawValidatorCommission = types.MsgWithdrawValidatorCommission
|
2019-06-05 16:26:17 -07:00
|
|
|
CommunityPoolSpendProposal = types.CommunityPoolSpendProposal
|
|
|
|
QueryValidatorOutstandingRewardsParams = types.QueryValidatorOutstandingRewardsParams
|
|
|
|
QueryValidatorCommissionParams = types.QueryValidatorCommissionParams
|
|
|
|
QueryValidatorSlashesParams = types.QueryValidatorSlashesParams
|
|
|
|
QueryDelegationRewardsParams = types.QueryDelegationRewardsParams
|
|
|
|
QueryDelegatorParams = types.QueryDelegatorParams
|
|
|
|
QueryDelegatorWithdrawAddrParams = types.QueryDelegatorWithdrawAddrParams
|
2019-05-20 06:13:32 -07:00
|
|
|
QueryDelegatorTotalRewardsResponse = types.QueryDelegatorTotalRewardsResponse
|
|
|
|
DelegationDelegatorReward = types.DelegationDelegatorReward
|
|
|
|
ValidatorHistoricalRewards = types.ValidatorHistoricalRewards
|
|
|
|
ValidatorCurrentRewards = types.ValidatorCurrentRewards
|
|
|
|
ValidatorAccumulatedCommission = types.ValidatorAccumulatedCommission
|
|
|
|
ValidatorSlashEvent = types.ValidatorSlashEvent
|
|
|
|
ValidatorSlashEvents = types.ValidatorSlashEvents
|
|
|
|
ValidatorOutstandingRewards = types.ValidatorOutstandingRewards
|
2018-09-18 21:42:05 -07:00
|
|
|
)
|