2018-09-18 21:42:05 -07:00
|
|
|
// nolint
|
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/tags"
|
|
|
|
"github.com/cosmos/cosmos-sdk/x/distribution/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
type (
|
2018-09-19 20:01:55 -07:00
|
|
|
Keeper = keeper.Keeper
|
|
|
|
Hooks = keeper.Hooks
|
|
|
|
|
2018-09-18 21:42:05 -07:00
|
|
|
MsgSetWithdrawAddress = types.MsgSetWithdrawAddress
|
2018-09-19 20:01:55 -07:00
|
|
|
MsgWithdrawDelegatorReward = types.MsgWithdrawDelegatorReward
|
2019-01-16 13:38:05 -08:00
|
|
|
MsgWithdrawValidatorCommission = types.MsgWithdrawValidatorCommission
|
2018-09-18 21:42:05 -07:00
|
|
|
|
|
|
|
GenesisState = types.GenesisState
|
2018-10-26 04:42:53 -07:00
|
|
|
|
|
|
|
// expected keepers
|
2019-01-15 07:34:48 -08:00
|
|
|
StakingKeeper = types.StakingKeeper
|
2018-10-26 04:42:53 -07:00
|
|
|
BankKeeper = types.BankKeeper
|
|
|
|
FeeCollectionKeeper = types.FeeCollectionKeeper
|
2019-01-18 11:38:40 -08:00
|
|
|
|
|
|
|
// querier param types
|
2019-02-04 16:45:18 -08:00
|
|
|
QueryValidatorCommissionParams = keeper.QueryValidatorCommissionParams
|
|
|
|
QueryValidatorSlashesParams = keeper.QueryValidatorSlashesParams
|
|
|
|
QueryDelegationRewardsParams = keeper.QueryDelegationRewardsParams
|
|
|
|
QueryDelegatorWithdrawAddrParams = keeper.QueryDelegatorWithdrawAddrParams
|
2018-09-18 21:42:05 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
DefaultCodespace = types.DefaultCodespace
|
|
|
|
CodeInvalidInput = types.CodeInvalidInput
|
2018-12-19 11:58:30 -08:00
|
|
|
StoreKey = types.StoreKey
|
|
|
|
TStoreKey = types.TStoreKey
|
|
|
|
RouterKey = types.RouterKey
|
2019-01-15 07:34:48 -08:00
|
|
|
QuerierRoute = types.QuerierRoute
|
2018-09-18 21:42:05 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrNilDelegatorAddr = types.ErrNilDelegatorAddr
|
|
|
|
ErrNilWithdrawAddr = types.ErrNilWithdrawAddr
|
|
|
|
ErrNilValidatorAddr = types.ErrNilValidatorAddr
|
|
|
|
|
2018-09-19 20:01:55 -07:00
|
|
|
TagValidator = tags.Validator
|
2018-09-18 21:42:05 -07:00
|
|
|
TagDelegator = tags.Delegator
|
2019-01-16 13:38:05 -08:00
|
|
|
|
|
|
|
NewMsgSetWithdrawAddress = types.NewMsgSetWithdrawAddress
|
|
|
|
NewMsgWithdrawDelegatorReward = types.NewMsgWithdrawDelegatorReward
|
|
|
|
NewMsgWithdrawValidatorCommission = types.NewMsgWithdrawValidatorCommission
|
|
|
|
|
2019-02-04 16:45:18 -08:00
|
|
|
NewKeeper = keeper.NewKeeper
|
|
|
|
NewQuerier = keeper.NewQuerier
|
|
|
|
NewQueryValidatorCommissionParams = keeper.NewQueryValidatorCommissionParams
|
|
|
|
NewQueryValidatorSlashesParams = keeper.NewQueryValidatorSlashesParams
|
|
|
|
NewQueryDelegationRewardsParams = keeper.NewQueryDelegationRewardsParams
|
|
|
|
NewQueryDelegatorParams = keeper.NewQueryDelegatorParams
|
|
|
|
NewQueryDelegatorWithdrawAddrParams = keeper.NewQueryDelegatorWithdrawAddrParams
|
|
|
|
DefaultParamspace = keeper.DefaultParamspace
|
2019-01-16 13:38:05 -08:00
|
|
|
|
|
|
|
RegisterCodec = types.RegisterCodec
|
|
|
|
DefaultGenesisState = types.DefaultGenesisState
|
|
|
|
ValidateGenesis = types.ValidateGenesis
|
|
|
|
InitialFeePool = types.InitialFeePool
|
2018-09-18 21:42:05 -07:00
|
|
|
)
|