distribution

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/terra-project/core/x/distribution/internal/types/

nolint

Index

Constants

View Source
const (
	DefaultParamspace                = distr.DefaultParamspace
	DefaultCodespace                 = distr.DefaultCodespace
	CodeInvalidInput                 = distr.CodeInvalidInput
	CodeNoDistributionInfo           = distr.CodeNoDistributionInfo
	CodeNoValidatorCommission        = distr.CodeNoValidatorCommission
	CodeSetWithdrawAddrDisabled      = distr.CodeSetWithdrawAddrDisabled
	ModuleName                       = distr.ModuleName
	StoreKey                         = distr.StoreKey
	RouterKey                        = distr.RouterKey
	QuerierRoute                     = distr.QuerierRoute
	ProposalTypeCommunityPoolSpend   = distr.ProposalTypeCommunityPoolSpend
	QueryParams                      = distr.QueryParams
	QueryValidatorOutstandingRewards = distr.QueryValidatorOutstandingRewards
	QueryValidatorCommission         = distr.QueryValidatorCommission
	QueryValidatorSlashes            = distr.QueryValidatorSlashes
	QueryDelegationRewards           = distr.QueryDelegationRewards
	QueryDelegatorTotalRewards       = distr.QueryDelegatorTotalRewards
	QueryDelegatorValidators         = distr.QueryDelegatorValidators
	QueryWithdrawAddr                = distr.QueryWithdrawAddr
	QueryCommunityPool               = distr.QueryCommunityPool
	ParamCommunityTax                = distr.ParamCommunityTax
	ParamBaseProposerReward          = distr.ParamBaseProposerReward
	ParamBonusProposerReward         = distr.ParamBonusProposerReward
	ParamWithdrawAddrEnabled         = distr.ParamWithdrawAddrEnabled
)

Variables

View Source
var (
	// functions aliases
	RegisterCodec = types.RegisterCodec

	// variable aliases
	ModuleCdc = types.ModuleCdc
)
View Source
var (
	// functions aliases
	RegisterInvariants                         = distr.RegisterInvariants
	AllInvariants                              = distr.AllInvariants
	NonNegativeOutstandingInvariant            = distr.NonNegativeOutstandingInvariant
	CanWithdrawInvariant                       = distr.CanWithdrawInvariant
	ReferenceCountInvariant                    = distr.ReferenceCountInvariant
	ModuleAccountInvariant                     = distr.ModuleAccountInvariant
	NewKeeper                                  = distr.NewKeeper
	GetValidatorOutstandingRewardsAddress      = distr.GetValidatorOutstandingRewardsAddress
	GetDelegatorWithdrawInfoAddress            = distr.GetDelegatorWithdrawInfoAddress
	GetDelegatorStartingInfoAddresses          = distr.GetDelegatorStartingInfoAddresses
	GetValidatorHistoricalRewardsAddressPeriod = distr.GetValidatorHistoricalRewardsAddressPeriod
	GetValidatorCurrentRewardsAddress          = distr.GetValidatorCurrentRewardsAddress
	GetValidatorAccumulatedCommissionAddress   = distr.GetValidatorAccumulatedCommissionAddress
	GetValidatorSlashEventAddressHeight        = distr.GetValidatorSlashEventAddressHeight
	GetValidatorOutstandingRewardsKey          = distr.GetValidatorOutstandingRewardsKey
	GetDelegatorWithdrawAddrKey                = distr.GetDelegatorWithdrawAddrKey
	GetDelegatorStartingInfoKey                = distr.GetDelegatorStartingInfoKey
	GetValidatorHistoricalRewardsPrefix        = distr.GetValidatorHistoricalRewardsPrefix
	GetValidatorHistoricalRewardsKey           = distr.GetValidatorHistoricalRewardsKey
	GetValidatorCurrentRewardsKey              = distr.GetValidatorCurrentRewardsKey
	GetValidatorAccumulatedCommissionKey       = distr.GetValidatorAccumulatedCommissionKey
	GetValidatorSlashEventPrefix               = distr.GetValidatorSlashEventPrefix
	GetValidatorSlashEventKey                  = distr.GetValidatorSlashEventKey
	GetValidatorSlashEventKeyPrefix            = distr.GetValidatorSlashEventKeyPrefix
	ParamKeyTable                              = distr.ParamKeyTable
	HandleCommunityPoolSpendProposal           = distr.HandleCommunityPoolSpendProposal
	NewQuerier                                 = distr.NewQuerier
	MakeTestCodec                              = distr.MakeTestCodec
	CreateTestInputDefault                     = distr.CreateTestInputDefault
	CreateTestInputAdvanced                    = distr.CreateTestInputAdvanced
	NewDelegatorStartingInfo                   = distr.NewDelegatorStartingInfo
	ErrNilDelegatorAddr                        = distr.ErrNilDelegatorAddr
	ErrNilWithdrawAddr                         = distr.ErrNilWithdrawAddr
	ErrNilValidatorAddr                        = distr.ErrNilValidatorAddr
	ErrNoDelegationDistInfo                    = distr.ErrNoDelegationDistInfo
	ErrNoValidatorDistInfo                     = distr.ErrNoValidatorDistInfo
	ErrNoValidatorCommission                   = distr.ErrNoValidatorCommission
	ErrSetWithdrawAddrDisabled                 = distr.ErrSetWithdrawAddrDisabled
	ErrBadDistribution                         = distr.ErrBadDistribution
	ErrInvalidProposalAmount                   = distr.ErrInvalidProposalAmount
	ErrEmptyProposalRecipient                  = distr.ErrEmptyProposalRecipient
	InitialFeePool                             = distr.InitialFeePool
	NewMsgSetWithdrawAddress                   = distr.NewMsgSetWithdrawAddress
	NewMsgWithdrawDelegatorReward              = distr.NewMsgWithdrawDelegatorReward
	NewMsgWithdrawValidatorCommission          = distr.NewMsgWithdrawValidatorCommission
	NewCommunityPoolSpendProposal              = distr.NewCommunityPoolSpendProposal
	NewQueryValidatorOutstandingRewardsParams  = distr.NewQueryValidatorOutstandingRewardsParams
	NewQueryValidatorCommissionParams          = distr.NewQueryValidatorCommissionParams
	NewQueryValidatorSlashesParams             = distr.NewQueryValidatorSlashesParams
	NewQueryDelegationRewardsParams            = distr.NewQueryDelegationRewardsParams
	NewQueryDelegatorParams                    = distr.NewQueryDelegatorParams
	NewQueryDelegatorWithdrawAddrParams        = distr.NewQueryDelegatorWithdrawAddrParams
	NewQueryDelegatorTotalRewardsResponse      = distr.NewQueryDelegatorTotalRewardsResponse
	NewDelegationDelegatorReward               = distr.NewDelegationDelegatorReward
	NewValidatorHistoricalRewards              = distr.NewValidatorHistoricalRewards
	NewValidatorCurrentRewards                 = distr.NewValidatorCurrentRewards
	InitialValidatorAccumulatedCommission      = distr.InitialValidatorAccumulatedCommission
	NewValidatorSlashEvent                     = distr.NewValidatorSlashEvent
	NewCommunityPoolSpendProposalHandler       = distr.NewCommunityPoolSpendProposalHandler
	NewCosmosAppModule                         = distr.NewAppModule

	// variable aliases
	FeePoolKey                           = distr.FeePoolKey
	ProposerKey                          = distr.ProposerKey
	ValidatorOutstandingRewardsPrefix    = distr.ValidatorOutstandingRewardsPrefix
	DelegatorWithdrawAddrPrefix          = distr.DelegatorWithdrawAddrPrefix
	DelegatorStartingInfoPrefix          = distr.DelegatorStartingInfoPrefix
	ValidatorHistoricalRewardsPrefix     = distr.ValidatorHistoricalRewardsPrefix
	ValidatorCurrentRewardsPrefix        = distr.ValidatorCurrentRewardsPrefix
	ValidatorAccumulatedCommissionPrefix = distr.ValidatorAccumulatedCommissionPrefix
	ValidatorSlashEventPrefix            = distr.ValidatorSlashEventPrefix
	ParamStoreKeyCommunityTax            = distr.ParamStoreKeyCommunityTax
	ParamStoreKeyBaseProposerReward      = distr.ParamStoreKeyBaseProposerReward
	ParamStoreKeyBonusProposerReward     = distr.ParamStoreKeyBonusProposerReward
	ParamStoreKeyWithdrawAddrEnabled     = distr.ParamStoreKeyWithdrawAddrEnabled
	TestAddrs                            = distr.TestAddrs
	EventTypeRewards                     = distr.EventTypeRewards
	EventTypeCommission                  = distr.EventTypeCommission
	AttributeValueCategory               = distr.AttributeValueCategory
	AttributeKeyValidator                = distr.AttributeKeyValidator
	CosmosModuleCdc                      = distr.ModuleCdc
)

Functions

This section is empty.

Types

type AppModule added in v0.3.0

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

AppModule implements an application module for the distribution module.

func NewAppModule added in v0.3.0

func NewAppModule(keeper Keeper, supplyKeeper types.SupplyKeeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock added in v0.3.0

func (am AppModule) BeginBlock(ctx sdk.Context, rbb abci.RequestBeginBlock)

BeginBlock returns the begin blocker for the distribution module.

func (AppModule) EndBlock added in v0.3.0

func (am AppModule) EndBlock(ctx sdk.Context, rbb abci.RequestEndBlock) []abci.ValidatorUpdate

EndBlock returns the end blocker for the distribution module.

func (AppModule) ExportGenesis added in v0.3.0

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

ExportGenesis returns the exported genesis state as raw bytes for the distribution module.

func (AppModule) InitGenesis added in v0.3.0

func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis performs genesis initialization for the distribution module.

func (AppModule) Name added in v0.3.0

func (am AppModule) Name() string

Name returns the distribution module's name.

func (AppModule) NewHandler added in v0.3.0

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the distribution module.

func (AppModule) NewQuerierHandler added in v0.3.0

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns the distribution module sdk.Querier.

func (AppModule) QuerierRoute added in v0.3.0

func (am AppModule) QuerierRoute() string

QuerierRoute returns the distribution module's querier route name.

func (AppModule) RegisterInvariants added in v0.3.0

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants registers the distribution module invariants.

func (AppModule) Route added in v0.3.0

func (am AppModule) Route() string

Route returns the message routing key for the distribution module.

type AppModuleBasic added in v0.3.0

type AppModuleBasic struct{}

AppModuleBasic defines the basic application module used by the distribution module.

func (AppModuleBasic) DefaultGenesis added in v0.3.0

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis returns default genesis state as raw bytes for the distribution module.

func (AppModuleBasic) GetQueryCmd added in v0.3.0

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the root query command for the distribution module.

func (AppModuleBasic) GetTxCmd added in v0.3.0

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd returns the root tx command for the distribution module.

func (AppModuleBasic) Name added in v0.3.0

func (AppModuleBasic) Name() string

Name returns the distribution module's name

func (AppModuleBasic) RegisterCodec added in v0.3.0

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

RegisterCodec registers the distribution module's types for the given codec.

func (AppModuleBasic) RegisterRESTRoutes added in v0.3.0

func (AppModuleBasic) RegisterRESTRoutes(cliCtx context.CLIContext, route *mux.Router)

RegisterRESTRoutes registers the REST routes for the distribution module.

func (AppModuleBasic) ValidateGenesis added in v0.3.0

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

ValidateGenesis performs genesis state validation for the distribution module.

type CodeType added in v0.3.0

type CodeType = distr.CodeType

type CommunityPoolSpendProposal added in v0.3.0

type CommunityPoolSpendProposal = distr.CommunityPoolSpendProposal

type CosmosAppModule added in v0.3.0

type CosmosAppModule = distr.AppModule

type CosmosAppModuleBasic added in v0.3.0

type CosmosAppModuleBasic = distr.AppModuleBasic

type DelegationDelegatorReward added in v0.3.0

type DelegationDelegatorReward = distr.DelegationDelegatorReward

type DelegatorStartingInfo added in v0.3.0

type DelegatorStartingInfo = distr.DelegatorStartingInfo

type DelegatorStartingInfoRecord added in v0.3.0

type DelegatorStartingInfoRecord = distr.DelegatorStartingInfoRecord

type DelegatorWithdrawInfo added in v0.3.0

type DelegatorWithdrawInfo = distr.DelegatorWithdrawInfo

type FeePool added in v0.3.0

type FeePool = distr.FeePool

type GenesisState added in v0.3.0

type GenesisState = distr.GenesisState

type Hooks added in v0.3.0

type Hooks = distr.Hooks

type Keeper added in v0.3.0

type Keeper = distr.Keeper

type MsgSetWithdrawAddress added in v0.3.0

type MsgSetWithdrawAddress = distr.MsgSetWithdrawAddress

type MsgWithdrawDelegatorReward added in v0.3.0

type MsgWithdrawDelegatorReward = distr.MsgWithdrawDelegatorReward

type MsgWithdrawValidatorCommission added in v0.3.0

type MsgWithdrawValidatorCommission = distr.MsgWithdrawValidatorCommission

type QueryDelegationRewardsParams added in v0.3.0

type QueryDelegationRewardsParams = distr.QueryDelegationRewardsParams

type QueryDelegatorParams added in v0.3.0

type QueryDelegatorParams = distr.QueryDelegatorParams

type QueryDelegatorTotalRewardsResponse added in v0.3.0

type QueryDelegatorTotalRewardsResponse = distr.QueryDelegatorTotalRewardsResponse

type QueryDelegatorWithdrawAddrParams added in v0.3.0

type QueryDelegatorWithdrawAddrParams = distr.QueryDelegatorWithdrawAddrParams

type QueryValidatorCommissionParams added in v0.3.0

type QueryValidatorCommissionParams = distr.QueryValidatorCommissionParams

type QueryValidatorOutstandingRewardsParams added in v0.3.0

type QueryValidatorOutstandingRewardsParams = distr.QueryValidatorOutstandingRewardsParams

type QueryValidatorSlashesParams added in v0.3.0

type QueryValidatorSlashesParams = distr.QueryValidatorSlashesParams

type ValidatorAccumulatedCommission added in v0.3.0

type ValidatorAccumulatedCommission = distr.ValidatorAccumulatedCommission

type ValidatorAccumulatedCommissionRecord added in v0.3.0

type ValidatorAccumulatedCommissionRecord = distr.ValidatorAccumulatedCommissionRecord

type ValidatorCurrentRewards added in v0.3.0

type ValidatorCurrentRewards = distr.ValidatorCurrentRewards

type ValidatorCurrentRewardsRecord added in v0.3.0

type ValidatorCurrentRewardsRecord = distr.ValidatorCurrentRewardsRecord

type ValidatorHistoricalRewards added in v0.3.0

type ValidatorHistoricalRewards = distr.ValidatorHistoricalRewards

type ValidatorHistoricalRewardsRecord added in v0.3.0

type ValidatorHistoricalRewardsRecord = distr.ValidatorHistoricalRewardsRecord

type ValidatorOutstandingRewards added in v0.3.0

type ValidatorOutstandingRewards = distr.ValidatorOutstandingRewards

type ValidatorOutstandingRewardsRecord added in v0.3.0

type ValidatorOutstandingRewardsRecord = distr.ValidatorOutstandingRewardsRecord

type ValidatorSlashEvent added in v0.3.0

type ValidatorSlashEvent = distr.ValidatorSlashEvent

type ValidatorSlashEventRecord added in v0.3.0

type ValidatorSlashEventRecord = distr.ValidatorSlashEventRecord

type ValidatorSlashEvents added in v0.3.0

type ValidatorSlashEvents = distr.ValidatorSlashEvents

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL