cosmos-sdk/x/distribution/alias.go

156 lines
10 KiB
Go
Raw Normal View History

2018-09-19 11:47:25 -07:00
package distribution
2018-09-18 21:42:05 -07:00
import (
"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"
)
// 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
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
DefaultParamspace = types.DefaultParamspace
TypeMsgFundCommunityPool = types.TypeMsgFundCommunityPool
2019-05-20 06:13:32 -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
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
HandleCommunityPoolSpendProposal = keeper.HandleCommunityPoolSpendProposal
2019-05-20 06:13:32 -07:00
NewQuerier = keeper.NewQuerier
ParamKeyTable = types.ParamKeyTable
DefaultParams = types.DefaultParams
2019-05-20 06:13:32 -07:00
RegisterCodec = types.RegisterCodec
NewDelegatorStartingInfo = types.NewDelegatorStartingInfo
ErrEmptyDelegatorAddr = types.ErrEmptyDelegatorAddr
ErrEmptyWithdrawAddr = types.ErrEmptyWithdrawAddr
ErrEmptyValidatorAddr = types.ErrEmptyValidatorAddr
ErrEmptyDelegationDistInfo = types.ErrEmptyDelegationDistInfo
2019-05-20 06:13:32 -07:00
ErrNoValidatorDistInfo = types.ErrNoValidatorDistInfo
ErrNoValidatorExists = types.ErrNoValidatorExists
ErrNoDelegationExists = types.ErrNoDelegationExists
2019-05-20 06:13:32 -07:00
ErrNoValidatorCommission = types.ErrNoValidatorCommission
ErrSetWithdrawAddrDisabled = types.ErrSetWithdrawAddrDisabled
ErrBadDistribution = types.ErrBadDistribution
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
MsgFundCommunityPool = types.NewMsgFundCommunityPool
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
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
ModuleCdc = types.ModuleCdc
EventTypeSetWithdrawAddress = types.EventTypeSetWithdrawAddress
Merge PR #4541: Events Tracking / Tendermint v0.32.0 Update * Update Tendermint to v0.32.0-dev0 * Initial refactor of tags * Update event types and add unit tests * Refactor context * Update module manager * Update result godoc * Implement ToABCIEvents * Update BaseApp * Minor cleanup * Fix typo * Update x/bank message handler * Update x/bank keeper * Update x/bank * Update x/bank events docs * Update x/crisis module events * Reset context with events on each message exec * Update x/distribution events and docs * Update BaseApp to not set empty events manually * Implement simple event manager * Update module manager * Update modules to use event manager * Update x/gov module to use events * Update events docs * Update gov queries and crisis app module * Update bank keeper * Add events to minting begin blocker * Update modules to use types/events.go * Cleanup x/mint * Update x/staking events * Update x/staking events * Update events to have sender part of message.sender * Fix build * Fix module unit tests * Add pending log entry * Update deps * Update x/crisis/types/events.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/bank/internal/types/events.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/distribution/types/events.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/mint/internal/types/events.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/slashing/types/events.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/staking/types/events.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/gov/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/gov/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/mint/abci.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/mint/abci.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/slashing/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/staking/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/slashing/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/staking/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/staking/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/staking/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Upgrade TM to v0.32.0-dev1 * Update events as strings * Update Tendermint to v0.32.0-dev2 * Fix BaseApp unit tests * Fix unit tests * Bump tendermint version to v0.32.0 * typos
2019-06-26 09:03:25 -07:00
EventTypeRewards = types.EventTypeRewards
EventTypeCommission = types.EventTypeCommission
EventTypeWithdrawRewards = types.EventTypeWithdrawRewards
EventTypeWithdrawCommission = types.EventTypeWithdrawCommission
EventTypeProposerReward = types.EventTypeProposerReward
AttributeKeyWithdrawAddress = types.AttributeKeyWithdrawAddress
Merge PR #4541: Events Tracking / Tendermint v0.32.0 Update * Update Tendermint to v0.32.0-dev0 * Initial refactor of tags * Update event types and add unit tests * Refactor context * Update module manager * Update result godoc * Implement ToABCIEvents * Update BaseApp * Minor cleanup * Fix typo * Update x/bank message handler * Update x/bank keeper * Update x/bank * Update x/bank events docs * Update x/crisis module events * Reset context with events on each message exec * Update x/distribution events and docs * Update BaseApp to not set empty events manually * Implement simple event manager * Update module manager * Update modules to use event manager * Update x/gov module to use events * Update events docs * Update gov queries and crisis app module * Update bank keeper * Add events to minting begin blocker * Update modules to use types/events.go * Cleanup x/mint * Update x/staking events * Update x/staking events * Update events to have sender part of message.sender * Fix build * Fix module unit tests * Add pending log entry * Update deps * Update x/crisis/types/events.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/bank/internal/types/events.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/distribution/types/events.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/mint/internal/types/events.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/slashing/types/events.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/staking/types/events.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/gov/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/gov/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/mint/abci.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/mint/abci.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/slashing/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/staking/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/slashing/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/staking/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/staking/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Update x/staking/handler.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * Upgrade TM to v0.32.0-dev1 * Update events as strings * Update Tendermint to v0.32.0-dev2 * Fix BaseApp unit tests * Fix unit tests * Bump tendermint version to v0.32.0 * typos
2019-06-26 09:03:25 -07:00
AttributeKeyValidator = types.AttributeKeyValidator
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
Params = types.Params
2019-05-20 06:13:32 -07:00
GenesisState = types.GenesisState
MsgSetWithdrawAddress = types.MsgSetWithdrawAddress
MsgWithdrawDelegatorReward = types.MsgWithdrawDelegatorReward
MsgWithdrawValidatorCommission = types.MsgWithdrawValidatorCommission
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
)