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
|
|
|
DelegatorWithdrawInfo = types.DelegatorWithdrawInfo
|
2018-10-15 12:51:51 -07:00
|
|
|
DelegationDistInfo = types.DelegationDistInfo
|
2018-09-18 21:42:05 -07:00
|
|
|
ValidatorDistInfo = types.ValidatorDistInfo
|
|
|
|
TotalAccum = types.TotalAccum
|
|
|
|
FeePool = types.FeePool
|
2018-11-27 00:14:22 -08:00
|
|
|
DecCoin = types.DecCoin
|
|
|
|
DecCoins = types.DecCoins
|
2018-09-18 21:42:05 -07:00
|
|
|
|
|
|
|
MsgSetWithdrawAddress = types.MsgSetWithdrawAddress
|
|
|
|
MsgWithdrawDelegatorRewardsAll = types.MsgWithdrawDelegatorRewardsAll
|
2018-09-19 20:01:55 -07:00
|
|
|
MsgWithdrawDelegatorReward = types.MsgWithdrawDelegatorReward
|
2018-09-18 21:42:05 -07:00
|
|
|
MsgWithdrawValidatorRewardsAll = types.MsgWithdrawValidatorRewardsAll
|
|
|
|
|
|
|
|
GenesisState = types.GenesisState
|
2018-10-26 04:42:53 -07:00
|
|
|
|
|
|
|
// expected keepers
|
|
|
|
StakeKeeper = types.StakeKeeper
|
|
|
|
BankKeeper = types.BankKeeper
|
|
|
|
FeeCollectionKeeper = types.FeeCollectionKeeper
|
2018-09-18 21:42:05 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2018-09-19 21:53:48 -07:00
|
|
|
NewKeeper = keeper.NewKeeper
|
2018-09-18 21:42:05 -07:00
|
|
|
|
|
|
|
GetValidatorDistInfoKey = keeper.GetValidatorDistInfoKey
|
|
|
|
GetDelegationDistInfoKey = keeper.GetDelegationDistInfoKey
|
|
|
|
GetDelegationDistInfosKey = keeper.GetDelegationDistInfosKey
|
|
|
|
GetDelegatorWithdrawAddrKey = keeper.GetDelegatorWithdrawAddrKey
|
|
|
|
FeePoolKey = keeper.FeePoolKey
|
|
|
|
ValidatorDistInfoKey = keeper.ValidatorDistInfoKey
|
2018-10-15 12:51:51 -07:00
|
|
|
DelegationDistInfoKey = keeper.DelegationDistInfoKey
|
2018-09-18 21:42:05 -07:00
|
|
|
DelegatorWithdrawInfoKey = keeper.DelegatorWithdrawInfoKey
|
|
|
|
ProposerKey = keeper.ProposerKey
|
2018-10-15 12:51:51 -07:00
|
|
|
DefaultParamspace = keeper.DefaultParamspace
|
2018-09-18 21:42:05 -07:00
|
|
|
|
|
|
|
InitialFeePool = types.InitialFeePool
|
|
|
|
|
2018-10-05 17:32:06 -07:00
|
|
|
NewGenesisState = types.NewGenesisState
|
2018-12-06 16:22:24 -08:00
|
|
|
ValidateGenesis = types.ValidateGenesis
|
2018-10-05 17:32:06 -07:00
|
|
|
DefaultGenesisState = types.DefaultGenesisState
|
|
|
|
DefaultGenesisWithValidators = types.DefaultGenesisWithValidators
|
2018-09-18 21:42:05 -07:00
|
|
|
|
|
|
|
RegisterCodec = types.RegisterCodec
|
|
|
|
|
|
|
|
NewMsgSetWithdrawAddress = types.NewMsgSetWithdrawAddress
|
|
|
|
NewMsgWithdrawDelegatorRewardsAll = types.NewMsgWithdrawDelegatorRewardsAll
|
2018-10-16 15:25:31 -07:00
|
|
|
NewMsgWithdrawDelegatorReward = types.NewMsgWithdrawDelegatorReward
|
2018-09-18 21:42:05 -07:00
|
|
|
NewMsgWithdrawValidatorRewardsAll = types.NewMsgWithdrawValidatorRewardsAll
|
2018-11-27 00:14:22 -08:00
|
|
|
|
|
|
|
NewDecCoins = types.NewDecCoins
|
2018-12-04 10:17:02 -08:00
|
|
|
|
|
|
|
NewTotalAccum = types.NewTotalAccum
|
2018-09-18 21:42:05 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
DefaultCodespace = types.DefaultCodespace
|
|
|
|
CodeInvalidInput = types.CodeInvalidInput
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
)
|