Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R4R: Community pool spend proposal #4329

Merged
merged 17 commits into from
May 21, 2019
Prev Previous commit
Next Next commit
Merge branch 'master' of github.com:cosmos/cosmos-sdk
  • Loading branch information
cwgoes committed May 20, 2019
commit bd8c8a28d0351fc572dbbc8a680ac1af881b3606
79 changes: 3 additions & 76 deletions x/distribution/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,83 +12,8 @@ import (
"github.com/cosmos/cosmos-sdk/x/distribution/types"
)

type (
Keeper = keeper.Keeper
Hooks = keeper.Hooks

MsgSetWithdrawAddress = types.MsgSetWithdrawAddress
MsgWithdrawDelegatorReward = types.MsgWithdrawDelegatorReward
MsgWithdrawValidatorCommission = types.MsgWithdrawValidatorCommission

GenesisState = types.GenesisState

// expected keepers
StakingKeeper = types.StakingKeeper
BankKeeper = types.BankKeeper
FeeCollectionKeeper = types.FeeCollectionKeeper

// querier param types
QueryValidatorCommissionParams = keeper.QueryValidatorCommissionParams
QueryValidatorSlashesParams = keeper.QueryValidatorSlashesParams
QueryDelegationRewardsParams = keeper.QueryDelegationRewardsParams
QueryDelegatorWithdrawAddrParams = keeper.QueryDelegatorWithdrawAddrParams

// querier response types
QueryDelegatorTotalRewardsResponse = types.QueryDelegatorTotalRewardsResponse
DelegationDelegatorReward = types.DelegationDelegatorReward

// proposal types
CommunityPoolSpendProposal = types.CommunityPoolSpendProposal
)

const (
ModuleName = types.ModuleName
DefaultCodespace = types.DefaultCodespace
CodeInvalidInput = types.CodeInvalidInput
StoreKey = types.StoreKey
TStoreKey = types.TStoreKey
RouterKey = types.RouterKey
QuerierRoute = types.QuerierRoute
)

var (
ErrNilDelegatorAddr = types.ErrNilDelegatorAddr
ErrNilWithdrawAddr = types.ErrNilWithdrawAddr
ErrNilValidatorAddr = types.ErrNilValidatorAddr

TagValidator = tags.Validator

ModuleCdc = types.ModuleCdc
NewMsgSetWithdrawAddress = types.NewMsgSetWithdrawAddress
NewMsgWithdrawDelegatorReward = types.NewMsgWithdrawDelegatorReward
NewMsgWithdrawValidatorCommission = types.NewMsgWithdrawValidatorCommission

NewCommunityPoolSpendProposal = types.NewCommunityPoolSpendProposal

NewKeeper = keeper.NewKeeper
NewQuerier = keeper.NewQuerier
NewQueryValidatorOutstandingRewardsParams = keeper.NewQueryValidatorOutstandingRewardsParams
NewQueryValidatorCommissionParams = keeper.NewQueryValidatorCommissionParams
NewQueryValidatorSlashesParams = keeper.NewQueryValidatorSlashesParams
NewQueryDelegationRewardsParams = keeper.NewQueryDelegationRewardsParams
NewQueryDelegatorParams = keeper.NewQueryDelegatorParams
NewQueryDelegatorWithdrawAddrParams = keeper.NewQueryDelegatorWithdrawAddrParams
DefaultParamspace = keeper.DefaultParamspace
RegisterInvariants = keeper.RegisterInvariants
AllInvariants = keeper.AllInvariants
NonNegativeOutstandingInvariant = keeper.NonNegativeOutstandingInvariant
CanWithdrawInvariant = keeper.CanWithdrawInvariant
ReferenceCountInvariant = keeper.ReferenceCountInvariant
CreateTestInputDefault = keeper.CreateTestInputDefault
CreateTestInputAdvanced = keeper.CreateTestInputAdvanced
TestAddrs = keeper.TestAddrs

RegisterCodec = types.RegisterCodec
DefaultGenesisState = types.DefaultGenesisState
ValidateGenesis = types.ValidateGenesis
InitialFeePool = types.InitialFeePool

// Query types
DefaultParamspace = keeper.DefaultParamspace
QueryParams = keeper.QueryParams
QueryValidatorOutstandingRewards = keeper.QueryValidatorOutstandingRewards
QueryValidatorCommission = keeper.QueryValidatorCommission
Expand Down Expand Up @@ -172,6 +97,7 @@ var (
NewValidatorCurrentRewards = types.NewValidatorCurrentRewards
InitialValidatorAccumulatedCommission = types.InitialValidatorAccumulatedCommission
NewValidatorSlashEvent = types.NewValidatorSlashEvent
NewCommunityPoolSpendProposal = types.NewCommunityPoolSpendProposal

// variable aliases
FeePoolKey = keeper.FeePoolKey
Expand Down Expand Up @@ -220,6 +146,7 @@ type (
ValidatorCurrentRewardsRecord = types.ValidatorCurrentRewardsRecord
DelegatorStartingInfoRecord = types.DelegatorStartingInfoRecord
ValidatorSlashEventRecord = types.ValidatorSlashEventRecord
CommunityPoolSpendProposal = types.CommunityPoolSpendProposal
GenesisState = types.GenesisState
MsgSetWithdrawAddress = types.MsgSetWithdrawAddress
MsgWithdrawDelegatorReward = types.MsgWithdrawDelegatorReward
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.