cosmos-sdk/x/distribution/alias.go

162 lines
10 KiB
Go
Raw Normal View History

2018-09-18 21:42:05 -07:00
// nolint
2019-05-20 06:13:32 -07:00
// autogenerated code using github.com/rigelrozanski/multitool
// aliases generated for the following subdirectories:
// ALIASGEN: github.com/cosmos/cosmos-sdk/x/distribution/keeper
// ALIASGEN: github.com/cosmos/cosmos-sdk/x/distribution/tags
// ALIASGEN: github.com/cosmos/cosmos-sdk/x/distribution/types
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/keeper"
"github.com/cosmos/cosmos-sdk/x/distribution/types"
)
const (
2019-05-20 06:13:32 -07:00
DefaultParamspace = keeper.DefaultParamspace
DefaultCodespace = types.DefaultCodespace
CodeInvalidInput = types.CodeInvalidInput
CodeNoDistributionInfo = types.CodeNoDistributionInfo
CodeNoValidatorCommission = types.CodeNoValidatorCommission
CodeSetWithdrawAddrDisabled = types.CodeSetWithdrawAddrDisabled
ModuleName = types.ModuleName
StoreKey = types.StoreKey
TStoreKey = types.TStoreKey
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
ParamCommunityTax = types.ParamCommunityTax
ParamBaseProposerReward = types.ParamBaseProposerReward
ParamBonusProposerReward = types.ParamBonusProposerReward
ParamWithdrawAddrEnabled = types.ParamWithdrawAddrEnabled
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 = keeper.GetValidatorOutstandingRewardsAddress
GetDelegatorWithdrawInfoAddress = keeper.GetDelegatorWithdrawInfoAddress
GetDelegatorStartingInfoAddresses = keeper.GetDelegatorStartingInfoAddresses
GetValidatorHistoricalRewardsAddressPeriod = keeper.GetValidatorHistoricalRewardsAddressPeriod
GetValidatorCurrentRewardsAddress = keeper.GetValidatorCurrentRewardsAddress
GetValidatorAccumulatedCommissionAddress = keeper.GetValidatorAccumulatedCommissionAddress
GetValidatorSlashEventAddressHeight = keeper.GetValidatorSlashEventAddressHeight
GetValidatorOutstandingRewardsKey = keeper.GetValidatorOutstandingRewardsKey
GetDelegatorWithdrawAddrKey = keeper.GetDelegatorWithdrawAddrKey
GetDelegatorStartingInfoKey = keeper.GetDelegatorStartingInfoKey
GetValidatorHistoricalRewardsPrefix = keeper.GetValidatorHistoricalRewardsPrefix
GetValidatorHistoricalRewardsKey = keeper.GetValidatorHistoricalRewardsKey
GetValidatorCurrentRewardsKey = keeper.GetValidatorCurrentRewardsKey
GetValidatorAccumulatedCommissionKey = keeper.GetValidatorAccumulatedCommissionKey
GetValidatorSlashEventPrefix = keeper.GetValidatorSlashEventPrefix
GetValidatorSlashEventKey = keeper.GetValidatorSlashEventKey
2019-07-02 04:01:40 -07:00
GetValidatorSlashEventKeyPrefix = keeper.GetValidatorSlashEventKeyPrefix
2019-05-20 06:13:32 -07:00
ParamKeyTable = keeper.ParamKeyTable
HandleCommunityPoolSpendProposal = keeper.HandleCommunityPoolSpendProposal
2019-05-20 06:13:32 -07:00
NewQuerier = keeper.NewQuerier
MakeTestCodec = keeper.MakeTestCodec
CreateTestInputDefault = keeper.CreateTestInputDefault
CreateTestInputAdvanced = keeper.CreateTestInputAdvanced
RegisterCodec = types.RegisterCodec
NewDelegatorStartingInfo = types.NewDelegatorStartingInfo
ErrNilDelegatorAddr = types.ErrNilDelegatorAddr
ErrNilWithdrawAddr = types.ErrNilWithdrawAddr
ErrNilValidatorAddr = types.ErrNilValidatorAddr
ErrNoDelegationDistInfo = types.ErrNoDelegationDistInfo
ErrNoValidatorDistInfo = types.ErrNoValidatorDistInfo
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
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 = keeper.FeePoolKey
ProposerKey = keeper.ProposerKey
ValidatorOutstandingRewardsPrefix = keeper.ValidatorOutstandingRewardsPrefix
DelegatorWithdrawAddrPrefix = keeper.DelegatorWithdrawAddrPrefix
DelegatorStartingInfoPrefix = keeper.DelegatorStartingInfoPrefix
ValidatorHistoricalRewardsPrefix = keeper.ValidatorHistoricalRewardsPrefix
ValidatorCurrentRewardsPrefix = keeper.ValidatorCurrentRewardsPrefix
ValidatorAccumulatedCommissionPrefix = keeper.ValidatorAccumulatedCommissionPrefix
ValidatorSlashEventPrefix = keeper.ValidatorSlashEventPrefix
ParamStoreKeyCommunityTax = keeper.ParamStoreKeyCommunityTax
ParamStoreKeyBaseProposerReward = keeper.ParamStoreKeyBaseProposerReward
ParamStoreKeyBonusProposerReward = keeper.ParamStoreKeyBonusProposerReward
ParamStoreKeyWithdrawAddrEnabled = keeper.ParamStoreKeyWithdrawAddrEnabled
TestAddrs = keeper.TestAddrs
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
AttributeValueCategory = types.AttributeValueCategory
AttributeKeyValidator = types.AttributeKeyValidator
2019-05-20 06:13:32 -07:00
ModuleCdc = types.ModuleCdc
)
type (
Hooks = keeper.Hooks
Keeper = keeper.Keeper
DelegatorStartingInfo = types.DelegatorStartingInfo
CodeType = types.CodeType
FeePool = types.FeePool
DelegatorWithdrawInfo = types.DelegatorWithdrawInfo
ValidatorOutstandingRewardsRecord = types.ValidatorOutstandingRewardsRecord
ValidatorAccumulatedCommissionRecord = types.ValidatorAccumulatedCommissionRecord
ValidatorHistoricalRewardsRecord = types.ValidatorHistoricalRewardsRecord
ValidatorCurrentRewardsRecord = types.ValidatorCurrentRewardsRecord
DelegatorStartingInfoRecord = types.DelegatorStartingInfoRecord
ValidatorSlashEventRecord = types.ValidatorSlashEventRecord
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
)