distribution

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/zenchainprotocol/zenchain-node/x/distribution/keeper ALIASGEN: github.com/zenchainprotocol/zenchain-node/x/distribution/types ALIASGEN: github.com/zenchainprotocol/zenchain-node/x/distribution/client

Index

Constants

View Source
const (
	ModuleName               = types.ModuleName
	StoreKey                 = types.StoreKey
	RouterKey                = types.RouterKey
	QuerierRoute             = types.QuerierRoute
	QueryParams              = types.QueryParams
	QueryValidatorCommission = types.QueryValidatorCommission
	QueryWithdrawAddr        = types.QueryWithdrawAddr
	ParamWithdrawAddrEnabled = types.ParamWithdrawAddrEnabled
	DefaultParamspace        = types.DefaultParamspace
)

Variables

View Source
var (
	// functions aliases
	RegisterInvariants                       = keeper.RegisterInvariants
	NewKeeper                                = keeper.NewKeeper
	GetDelegatorWithdrawInfoAddress          = types.GetDelegatorWithdrawInfoAddress
	GetValidatorAccumulatedCommissionAddress = types.GetValidatorAccumulatedCommissionAddress
	GetDelegatorWithdrawAddrKey              = types.GetDelegatorWithdrawAddrKey
	GetValidatorAccumulatedCommissionKey     = types.GetValidatorAccumulatedCommissionKey
	NewQuerier                               = keeper.NewQuerier
	RegisterCodec                            = types.RegisterCodec
	ErrNilDelegatorAddr                      = types.ErrNilDelegatorAddr
	ErrNoValidatorCommission                 = types.ErrNoValidatorCommission
	ErrSetWithdrawAddrDisabled               = types.ErrSetWithdrawAddrDisabled
	InitialFeePool                           = types.InitialFeePool
	NewGenesisState                          = types.NewGenesisState
	DefaultGenesisState                      = types.DefaultGenesisState
	ValidateGenesis                          = types.ValidateGenesis
	NewMsgSetWithdrawAddress                 = types.NewMsgSetWithdrawAddress
	NewMsgWithdrawValidatorCommission        = types.NewMsgWithdrawValidatorCommission
	NewQueryValidatorCommissionParams        = types.NewQueryValidatorCommissionParams
	NewQueryDelegatorWithdrawAddrParams      = types.NewQueryDelegatorWithdrawAddrParams
	InitialValidatorAccumulatedCommission    = types.InitialValidatorAccumulatedCommission

	// variable aliases
	FeePoolKey                           = types.FeePoolKey
	ProposerKey                          = types.ProposerKey
	DelegatorWithdrawAddrPrefix          = types.DelegatorWithdrawAddrPrefix
	ValidatorAccumulatedCommissionPrefix = types.ValidatorAccumulatedCommissionPrefix
	ModuleCdc                            = types.ModuleCdc
	EventTypeSetWithdrawAddress          = types.EventTypeSetWithdrawAddress
	EventTypeCommission                  = types.EventTypeCommission
	EventTypeWithdrawCommission          = types.EventTypeWithdrawCommission
	EventTypeProposerReward              = types.EventTypeProposerReward
	AttributeKeyWithdrawAddress          = types.AttributeKeyWithdrawAddress
	AttributeKeyValidator                = types.AttributeKeyValidator
	AttributeValueCategory               = types.AttributeValueCategory
	ProposalHandler                      = client.ProposalHandler
)

Functions

func BeginBlocker

func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, k keeper.Keeper)

BeginBlocker set the proposer for determining distribution during endblock and distribute rewards for the previous block

func ExportGenesis

func ExportGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState

ExportGenesis returns a GenesisState for a given context and keeper.

func InitGenesis

func InitGenesis(ctx sdk.Context, keeper Keeper, supplyKeeper types.SupplyKeeper, data types.GenesisState)

InitGenesis sets distribution information for genesis

func NewCommunityPoolSpendProposalHandler

func NewCommunityPoolSpendProposalHandler(k Keeper) govtypes.Handler

func NewHandler

func NewHandler(k keeper.Keeper) sdk.Handler

NewHandler manages all distribution tx

Types

type AppModule

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

AppModule is a struct of app 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, req abci.RequestBeginBlock)

BeginBlock is invoked on the beginning of each block

func (AppModule) EndBlock

EndBlock is invoked on the end of each block

func (AppModule) ExportGenesis

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

ExportGenesis exports module genesis

func (AppModule) GenerateGenesisState

func (am AppModule) GenerateGenesisState(input *module.SimulationState)

TODO: implement AppModuleSimulation later

func (AppModule) InitGenesis

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

InitGenesis initializes module genesis

func (AppModule) Name

func (AppModule) Name() string

Name returns module name

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns module handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns module querier

func (AppModule) ProposalContents

func (am AppModule) ProposalContents(simState module.SimulationState) []simulation.WeightedProposalContent

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute returns module querier route name

func (AppModule) RandomizedParams

func (am AppModule) RandomizedParams(r *rand.Rand) []simulation.ParamChange

func (AppModule) RegisterInvariants

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

RegisterInvariants registers invariants

func (AppModule) RegisterStoreDecoder

func (am AppModule) RegisterStoreDecoder(registry sdk.StoreDecoderRegistry)

func (AppModule) Route

func (AppModule) Route() string

Route returns module message route name

func (AppModule) WeightedOperations

func (am AppModule) WeightedOperations(simState module.SimulationState) []simulation.WeightedOperation

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic is a struct of app module basics object

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis returns default genesis state

func (AppModuleBasic) GetQueryCmd

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

GetQueryCmd gets the root query command of this module

func (AppModuleBasic) GetTxCmd

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

GetTxCmd gets the root tx command of this module

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name returns module name

func (AppModuleBasic) RegisterCodec

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

RegisterCodec registers module codec

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

RegisterRESTRoutes registers rest routes

func (AppModuleBasic) ValidateGenesis

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

ValidateGenesis gives a validity check to module genesis

type DelegatorWithdrawInfo

type DelegatorWithdrawInfo = types.DelegatorWithdrawInfo

type GenesisState

type GenesisState = types.GenesisState

type Hooks

type Hooks = keeper.Hooks

type Keeper

type Keeper = keeper.Keeper

type MsgSetWithdrawAddress

type MsgSetWithdrawAddress = types.MsgSetWithdrawAddress

type MsgWithdrawValidatorCommission

type MsgWithdrawValidatorCommission = types.MsgWithdrawValidatorCommission

type QueryDelegatorWithdrawAddrParams

type QueryDelegatorWithdrawAddrParams = types.QueryDelegatorWithdrawAddrParams

type QueryValidatorCommissionParams

type QueryValidatorCommissionParams = types.QueryValidatorCommissionParams

type ValidatorAccumulatedCommission

type ValidatorAccumulatedCommission = types.ValidatorAccumulatedCommission

type ValidatorAccumulatedCommissionRecord

type ValidatorAccumulatedCommissionRecord = types.ValidatorAccumulatedCommissionRecord

Directories

Path Synopsis
cli
nolint
nolint
nolint nolint
nolint nolint

Jump to

Keyboard shortcuts

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