Back to godoc.org
github.com/terra-project/core / x / distribution

Package distribution

v0.3.6
Latest Go to latest
Published: Jun 11, 2020 | License: Apache-2.0 | Module: github.com/terra-project/core

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

Package Files

Constants

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

var (
	// functions aliases
	RegisterCodec = types.RegisterCodec

	// variable aliases
	ModuleCdc = types.ModuleCdc
)
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
)

type AppModule

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

AppModule implements an application module for the distribution module.

func NewAppModule

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

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

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

BeginBlock returns the begin blocker for the distribution module.

func (AppModule) EndBlock

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

EndBlock returns the end blocker for the distribution module.

func (AppModule) ExportGenesis

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

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

InitGenesis performs genesis initialization for the distribution module.

func (AppModule) Name

func (am AppModule) Name() string

Name returns the distribution module's name.

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the distribution module.

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns the distribution module sdk.Querier.

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

QuerierRoute returns the distribution module's querier route name.

func (AppModule) RegisterInvariants

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

RegisterInvariants registers the distribution module invariants.

func (AppModule) Route

func (am AppModule) Route() string

Route returns the message routing key for the distribution module.

type AppModuleBasic

type AppModuleBasic struct{}

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

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

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

func (AppModuleBasic) GetQueryCmd

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

GetQueryCmd returns the root query command for the distribution module.

func (AppModuleBasic) GetTxCmd

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

GetTxCmd returns the root tx command for the distribution module.

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name returns the distribution module's name

func (AppModuleBasic) RegisterCodec

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

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

func (AppModuleBasic) RegisterRESTRoutes

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

RegisterRESTRoutes registers the REST routes for the distribution module.

func (AppModuleBasic) ValidateGenesis

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

ValidateGenesis performs genesis state validation for the distribution module.

type CodeType

type CodeType = distr.CodeType

type CommunityPoolSpendProposal

type CommunityPoolSpendProposal = distr.CommunityPoolSpendProposal

type CosmosAppModule

type CosmosAppModule = distr.AppModule

type CosmosAppModuleBasic

type CosmosAppModuleBasic = distr.AppModuleBasic

type DelegationDelegatorReward

type DelegationDelegatorReward = distr.DelegationDelegatorReward

type DelegatorStartingInfo

type DelegatorStartingInfo = distr.DelegatorStartingInfo

type DelegatorStartingInfoRecord

type DelegatorStartingInfoRecord = distr.DelegatorStartingInfoRecord

type DelegatorWithdrawInfo

type DelegatorWithdrawInfo = distr.DelegatorWithdrawInfo

type FeePool

type FeePool = distr.FeePool

type GenesisState

type GenesisState = distr.GenesisState

type Hooks

type Hooks = distr.Hooks

type Keeper

type Keeper = distr.Keeper

type MsgSetWithdrawAddress

type MsgSetWithdrawAddress = distr.MsgSetWithdrawAddress

type MsgWithdrawDelegatorReward

type MsgWithdrawDelegatorReward = distr.MsgWithdrawDelegatorReward

type MsgWithdrawValidatorCommission

type MsgWithdrawValidatorCommission = distr.MsgWithdrawValidatorCommission

type QueryDelegationRewardsParams

type QueryDelegationRewardsParams = distr.QueryDelegationRewardsParams

type QueryDelegatorParams

type QueryDelegatorParams = distr.QueryDelegatorParams

type QueryDelegatorTotalRewardsResponse

type QueryDelegatorTotalRewardsResponse = distr.QueryDelegatorTotalRewardsResponse

type QueryDelegatorWithdrawAddrParams

type QueryDelegatorWithdrawAddrParams = distr.QueryDelegatorWithdrawAddrParams

type QueryValidatorCommissionParams

type QueryValidatorCommissionParams = distr.QueryValidatorCommissionParams

type QueryValidatorSlashesParams

type QueryValidatorSlashesParams = distr.QueryValidatorSlashesParams

type ValidatorAccumulatedCommission

type ValidatorAccumulatedCommission = distr.ValidatorAccumulatedCommission

type ValidatorAccumulatedCommissionRecord

type ValidatorAccumulatedCommissionRecord = distr.ValidatorAccumulatedCommissionRecord

type ValidatorCurrentRewards

type ValidatorCurrentRewards = distr.ValidatorCurrentRewards

type ValidatorCurrentRewardsRecord

type ValidatorCurrentRewardsRecord = distr.ValidatorCurrentRewardsRecord

type ValidatorHistoricalRewards

type ValidatorHistoricalRewards = distr.ValidatorHistoricalRewards

type ValidatorHistoricalRewardsRecord

type ValidatorHistoricalRewardsRecord = distr.ValidatorHistoricalRewardsRecord

type ValidatorOutstandingRewards

type ValidatorOutstandingRewards = distr.ValidatorOutstandingRewards

type ValidatorOutstandingRewardsRecord

type ValidatorOutstandingRewardsRecord = distr.ValidatorOutstandingRewardsRecord

type ValidatorSlashEvent

type ValidatorSlashEvent = distr.ValidatorSlashEvent

type ValidatorSlashEventRecord

type ValidatorSlashEventRecord = distr.ValidatorSlashEventRecord

type ValidatorSlashEvents

type ValidatorSlashEvents = distr.ValidatorSlashEvents
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier