Documentation ¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/okex/okexchain/x/distribution/keeper ALIASGEN: github.com/okex/okexchain/x/distribution/types ALIASGEN: github.com/okex/okexchain/x/distribution/client
Index ¶
- Constants
- Variables
- func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, k keeper.Keeper)
- func ExportGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, keeper Keeper, supplyKeeper types.SupplyKeeper, ...)
- func NewCommunityPoolSpendProposalHandler(k Keeper) govtypes.Handler
- func NewHandler(k keeper.Keeper) sdk.Handler
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
- func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type CodeType
- type DelegatorWithdrawInfo
- type GenesisState
- type Hooks
- type Keeper
- type MsgSetWithdrawAddress
- type MsgWithdrawValidatorCommission
- type QueryDelegatorWithdrawAddrParams
- type QueryValidatorCommissionParams
- type ValidatorAccumulatedCommission
- type ValidatorAccumulatedCommissionRecord
Constants ¶
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 ¶
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 ¶
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
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 ¶
func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
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) NewHandler ¶
NewHandler returns module handler
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns module querier
func (AppModule) QuerierRoute ¶
QuerierRoute returns module querier route name
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers invariants
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) 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 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