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
|
|
|
|
DelegatorDistInfo = types.DelegatorDistInfo
|
|
|
|
ValidatorDistInfo = types.ValidatorDistInfo
|
|
|
|
TotalAccum = types.TotalAccum
|
|
|
|
FeePool = types.FeePool
|
|
|
|
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
DelegatorDistInfoKey = keeper.DelegatorDistInfoKey
|
|
|
|
DelegatorWithdrawInfoKey = keeper.DelegatorWithdrawInfoKey
|
|
|
|
ProposerKey = keeper.ProposerKey
|
|
|
|
|
|
|
|
InitialFeePool = types.InitialFeePool
|
|
|
|
|
|
|
|
NewGenesisState = types.NewGenesisState
|
|
|
|
DefaultGenesisState = types.DefaultGenesisState
|
|
|
|
|
|
|
|
RegisterCodec = types.RegisterCodec
|
|
|
|
|
|
|
|
NewMsgSetWithdrawAddress = types.NewMsgSetWithdrawAddress
|
|
|
|
NewMsgWithdrawDelegatorRewardsAll = types.NewMsgWithdrawDelegatorRewardsAll
|
2018-09-19 20:01:55 -07:00
|
|
|
NewMsgWithdrawDelegationReward = types.NewMsgWithdrawDelegatorReward
|
2018-09-18 21:42:05 -07:00
|
|
|
NewMsgWithdrawValidatorRewardsAll = types.NewMsgWithdrawValidatorRewardsAll
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
DefaultCodespace = types.DefaultCodespace
|
|
|
|
CodeInvalidInput = types.CodeInvalidInput
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrNilDelegatorAddr = types.ErrNilDelegatorAddr
|
|
|
|
ErrNilWithdrawAddr = types.ErrNilWithdrawAddr
|
|
|
|
ErrNilValidatorAddr = types.ErrNilValidatorAddr
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
ActionModifyWithdrawAddress = tags.ActionModifyWithdrawAddress
|
|
|
|
ActionWithdrawDelegatorRewardsAll = tags.ActionWithdrawDelegatorRewardsAll
|
|
|
|
ActionWithdrawDelegatorReward = tags.ActionWithdrawDelegatorReward
|
|
|
|
ActionWithdrawValidatorRewardsAll = tags.ActionWithdrawValidatorRewardsAll
|
|
|
|
|
|
|
|
TagAction = tags.Action
|
2018-09-19 20:01:55 -07:00
|
|
|
TagValidator = tags.Validator
|
2018-09-18 21:42:05 -07:00
|
|
|
TagDelegator = tags.Delegator
|
|
|
|
)
|