distribution

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/okex/okchain/x/distribution/keeper ALIASGEN: github.com/okex/okchain/x/distribution/types ALIASGEN: github.com/okex/okchain/x/distribution/client

Index

Constants

View Source
const (
	DefaultParamspace           = keeper.DefaultParamspace
	DefaultCodespace            = types.DefaultCodespace
	CodeInvalidInput            = types.CodeInvalidInput
	CodeNoValidatorCommission   = types.CodeNoValidatorCommission
	CodeSetWithdrawAddrDisabled = types.CodeSetWithdrawAddrDisabled
	ModuleName                  = types.ModuleName
	StoreKey                    = types.StoreKey
	RouterKey                   = types.RouterKey
	QuerierRoute                = types.QuerierRoute
	QueryParams                 = types.QueryParams
	QueryValidatorCommission    = types.QueryValidatorCommission
	QueryWithdrawAddr           = types.QueryWithdrawAddr
	ParamWithdrawAddrEnabled    = types.ParamWithdrawAddrEnabled
)

Variables

View Source
var (
	// functions aliases
	RegisterInvariants                       = keeper.RegisterInvariants
	NewKeeper                                = keeper.NewKeeper
	GetDelegatorWithdrawInfoAddress          = keeper.GetDelegatorWithdrawInfoAddress
	GetValidatorAccumulatedCommissionAddress = keeper.GetValidatorAccumulatedCommissionAddress
	GetDelegatorWithdrawAddrKey              = keeper.GetDelegatorWithdrawAddrKey
	GetValidatorAccumulatedCommissionKey     = keeper.GetValidatorAccumulatedCommissionKey
	ParamKeyTable                            = keeper.ParamKeyTable
	NewQuerier                               = keeper.NewQuerier
	RegisterCodec                            = types.RegisterCodec
	ErrNilDelegatorAddr                      = types.ErrNilDelegatorAddr
	ErrNilWithdrawAddr                       = types.ErrNilWithdrawAddr
	ErrNilValidatorAddr                      = types.ErrNilValidatorAddr
	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                           = keeper.FeePoolKey
	ProposerKey                          = keeper.ProposerKey
	DelegatorWithdrawAddrPrefix          = keeper.DelegatorWithdrawAddrPrefix
	ValidatorAccumulatedCommissionPrefix = keeper.ValidatorAccumulatedCommissionPrefix
	ParamStoreKeyCommunityTax            = keeper.ParamStoreKeyCommunityTax
	ParamStoreKeyWithdrawAddrEnabled     = keeper.ParamStoreKeyWithdrawAddrEnabled
	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 added in v0.10.0

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) 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) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute returns module querier route name

func (AppModule) RegisterInvariants

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

RegisterInvariants registers invariants

func (AppModule) Route

func (AppModule) Route() string

Route returns module message route name

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 CodeType

type CodeType = types.CodeType

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