github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/x/distribution/alias.go (about) 1 package distribution 2 3 import ( 4 "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/x/distribution/client" 5 "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/x/distribution/keeper" 6 "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/x/distribution/types" 7 ) 8 9 // nolint 10 11 const ( 12 ModuleName = types.ModuleName 13 StoreKey = types.StoreKey 14 RouterKey = types.RouterKey 15 QuerierRoute = types.QuerierRoute 16 ProposalTypeCommunityPoolSpend = types.ProposalTypeCommunityPoolSpend 17 QueryParams = types.QueryParams 18 QueryValidatorOutstandingRewards = types.QueryValidatorOutstandingRewards 19 QueryValidatorCommission = types.QueryValidatorCommission 20 QueryValidatorSlashes = types.QueryValidatorSlashes 21 QueryDelegationRewards = types.QueryDelegationRewards 22 QueryDelegatorTotalRewards = types.QueryDelegatorTotalRewards 23 QueryDelegatorValidators = types.QueryDelegatorValidators 24 QueryWithdrawAddr = types.QueryWithdrawAddr 25 QueryCommunityPool = types.QueryCommunityPool 26 DefaultParamspace = types.DefaultParamspace 27 TypeMsgFundCommunityPool = types.TypeMsgFundCommunityPool 28 ) 29 30 var ( 31 // functions aliases 32 RegisterInvariants = keeper.RegisterInvariants 33 AllInvariants = keeper.AllInvariants 34 NonNegativeOutstandingInvariant = keeper.NonNegativeOutstandingInvariant 35 CanWithdrawInvariant = keeper.CanWithdrawInvariant 36 ReferenceCountInvariant = keeper.ReferenceCountInvariant 37 ModuleAccountInvariant = keeper.ModuleAccountInvariant 38 NewKeeper = keeper.NewKeeper 39 GetValidatorOutstandingRewardsAddress = types.GetValidatorOutstandingRewardsAddress 40 GetDelegatorWithdrawInfoAddress = types.GetDelegatorWithdrawInfoAddress 41 GetDelegatorStartingInfoAddresses = types.GetDelegatorStartingInfoAddresses 42 GetValidatorHistoricalRewardsAddressPeriod = types.GetValidatorHistoricalRewardsAddressPeriod 43 GetValidatorCurrentRewardsAddress = types.GetValidatorCurrentRewardsAddress 44 GetValidatorAccumulatedCommissionAddress = types.GetValidatorAccumulatedCommissionAddress 45 GetValidatorSlashEventAddressHeight = types.GetValidatorSlashEventAddressHeight 46 GetValidatorOutstandingRewardsKey = types.GetValidatorOutstandingRewardsKey 47 GetDelegatorWithdrawAddrKey = types.GetDelegatorWithdrawAddrKey 48 GetDelegatorStartingInfoKey = types.GetDelegatorStartingInfoKey 49 GetValidatorHistoricalRewardsPrefix = types.GetValidatorHistoricalRewardsPrefix 50 GetValidatorHistoricalRewardsKey = types.GetValidatorHistoricalRewardsKey 51 GetValidatorCurrentRewardsKey = types.GetValidatorCurrentRewardsKey 52 GetValidatorAccumulatedCommissionKey = types.GetValidatorAccumulatedCommissionKey 53 GetValidatorSlashEventPrefix = types.GetValidatorSlashEventPrefix 54 GetValidatorSlashEventKeyPrefix = types.GetValidatorSlashEventKeyPrefix 55 GetValidatorSlashEventKey = types.GetValidatorSlashEventKey 56 HandleCommunityPoolSpendProposal = keeper.HandleCommunityPoolSpendProposal 57 NewQuerier = keeper.NewQuerier 58 MakeTestCodec = keeper.MakeTestCodec 59 CreateTestInputDefault = keeper.CreateTestInputDefault 60 CreateTestInputAdvanced = keeper.CreateTestInputAdvanced 61 ParamKeyTable = types.ParamKeyTable 62 DefaultParams = types.DefaultParams 63 RegisterCodec = types.RegisterCodec 64 NewDelegatorStartingInfo = types.NewDelegatorStartingInfo 65 ErrEmptyDelegatorAddr = types.ErrEmptyDelegatorAddr 66 ErrEmptyWithdrawAddr = types.ErrEmptyWithdrawAddr 67 ErrEmptyValidatorAddr = types.ErrEmptyValidatorAddr 68 ErrEmptyDelegationDistInfo = types.ErrEmptyDelegationDistInfo 69 ErrNoValidatorDistInfo = types.ErrNoValidatorDistInfo 70 ErrNoValidatorExists = types.ErrNoValidatorExists 71 ErrNoDelegationExists = types.ErrNoDelegationExists 72 ErrNoValidatorCommission = types.ErrNoValidatorCommission 73 ErrSetWithdrawAddrDisabled = types.ErrSetWithdrawAddrDisabled 74 ErrBadDistribution = types.ErrBadDistribution 75 ErrInvalidProposalAmount = types.ErrInvalidProposalAmount 76 ErrEmptyProposalRecipient = types.ErrEmptyProposalRecipient 77 InitialFeePool = types.InitialFeePool 78 NewGenesisState = types.NewGenesisState 79 DefaultGenesisState = types.DefaultGenesisState 80 ValidateGenesis = types.ValidateGenesis 81 NewMsgSetWithdrawAddress = types.NewMsgSetWithdrawAddress 82 NewMsgWithdrawDelegatorReward = types.NewMsgWithdrawDelegatorReward 83 NewMsgWithdrawValidatorCommission = types.NewMsgWithdrawValidatorCommission 84 MsgFundCommunityPool = types.NewMsgFundCommunityPool 85 NewCommunityPoolSpendProposal = types.NewCommunityPoolSpendProposal 86 NewQueryValidatorOutstandingRewardsParams = types.NewQueryValidatorOutstandingRewardsParams 87 NewQueryValidatorCommissionParams = types.NewQueryValidatorCommissionParams 88 NewQueryValidatorSlashesParams = types.NewQueryValidatorSlashesParams 89 NewQueryDelegationRewardsParams = types.NewQueryDelegationRewardsParams 90 NewQueryDelegatorParams = types.NewQueryDelegatorParams 91 NewQueryDelegatorWithdrawAddrParams = types.NewQueryDelegatorWithdrawAddrParams 92 NewQueryDelegatorTotalRewardsResponse = types.NewQueryDelegatorTotalRewardsResponse 93 NewDelegationDelegatorReward = types.NewDelegationDelegatorReward 94 NewValidatorHistoricalRewards = types.NewValidatorHistoricalRewards 95 NewValidatorCurrentRewards = types.NewValidatorCurrentRewards 96 InitialValidatorAccumulatedCommission = types.InitialValidatorAccumulatedCommission 97 NewValidatorSlashEvent = types.NewValidatorSlashEvent 98 99 // variable aliases 100 FeePoolKey = types.FeePoolKey 101 ProposerKey = types.ProposerKey 102 ValidatorOutstandingRewardsPrefix = types.ValidatorOutstandingRewardsPrefix 103 DelegatorWithdrawAddrPrefix = types.DelegatorWithdrawAddrPrefix 104 DelegatorStartingInfoPrefix = types.DelegatorStartingInfoPrefix 105 ValidatorHistoricalRewardsPrefix = types.ValidatorHistoricalRewardsPrefix 106 ValidatorCurrentRewardsPrefix = types.ValidatorCurrentRewardsPrefix 107 ValidatorAccumulatedCommissionPrefix = types.ValidatorAccumulatedCommissionPrefix 108 ValidatorSlashEventPrefix = types.ValidatorSlashEventPrefix 109 ParamStoreKeyCommunityTax = types.ParamStoreKeyCommunityTax 110 ParamStoreKeyBaseProposerReward = types.ParamStoreKeyBaseProposerReward 111 ParamStoreKeyBonusProposerReward = types.ParamStoreKeyBonusProposerReward 112 ParamStoreKeyWithdrawAddrEnabled = types.ParamStoreKeyWithdrawAddrEnabled 113 ModuleCdc = types.ModuleCdc 114 EventTypeSetWithdrawAddress = types.EventTypeSetWithdrawAddress 115 EventTypeRewards = types.EventTypeRewards 116 EventTypeCommission = types.EventTypeCommission 117 EventTypeWithdrawRewards = types.EventTypeWithdrawRewards 118 EventTypeWithdrawCommission = types.EventTypeWithdrawCommission 119 EventTypeProposerReward = types.EventTypeProposerReward 120 AttributeKeyWithdrawAddress = types.AttributeKeyWithdrawAddress 121 AttributeKeyValidator = types.AttributeKeyValidator 122 AttributeValueCategory = types.AttributeValueCategory 123 ProposalHandler = client.ProposalHandler 124 ) 125 126 type ( 127 Hooks = keeper.Hooks 128 Keeper = keeper.Keeper 129 DelegatorStartingInfo = types.DelegatorStartingInfo 130 FeePool = types.FeePool 131 DelegatorWithdrawInfo = types.DelegatorWithdrawInfo 132 ValidatorOutstandingRewardsRecord = types.ValidatorOutstandingRewardsRecord 133 ValidatorAccumulatedCommissionRecord = types.ValidatorAccumulatedCommissionRecord 134 ValidatorHistoricalRewardsRecord = types.ValidatorHistoricalRewardsRecord 135 ValidatorCurrentRewardsRecord = types.ValidatorCurrentRewardsRecord 136 DelegatorStartingInfoRecord = types.DelegatorStartingInfoRecord 137 ValidatorSlashEventRecord = types.ValidatorSlashEventRecord 138 Params = types.Params 139 GenesisState = types.GenesisState 140 MsgSetWithdrawAddress = types.MsgSetWithdrawAddress 141 MsgWithdrawDelegatorReward = types.MsgWithdrawDelegatorReward 142 MsgWithdrawValidatorCommission = types.MsgWithdrawValidatorCommission 143 CommunityPoolSpendProposal = types.CommunityPoolSpendProposal 144 QueryValidatorOutstandingRewardsParams = types.QueryValidatorOutstandingRewardsParams 145 QueryValidatorCommissionParams = types.QueryValidatorCommissionParams 146 QueryValidatorSlashesParams = types.QueryValidatorSlashesParams 147 QueryDelegationRewardsParams = types.QueryDelegationRewardsParams 148 QueryDelegatorParams = types.QueryDelegatorParams 149 QueryDelegatorWithdrawAddrParams = types.QueryDelegatorWithdrawAddrParams 150 QueryDelegatorTotalRewardsResponse = types.QueryDelegatorTotalRewardsResponse 151 DelegationDelegatorReward = types.DelegationDelegatorReward 152 ValidatorHistoricalRewards = types.ValidatorHistoricalRewards 153 ValidatorCurrentRewards = types.ValidatorCurrentRewards 154 ValidatorAccumulatedCommission = types.ValidatorAccumulatedCommission 155 ValidatorSlashEvent = types.ValidatorSlashEvent 156 ValidatorSlashEvents = types.ValidatorSlashEvents 157 ValidatorOutstandingRewards = types.ValidatorOutstandingRewards 158 )