Documentation ¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/fastock/fastock-chain/x/distribution/keeper ALIASGEN: github.com/fastock/fastock-chain/x/distribution/types ALIASGEN: github.com/fastock/fastock-chain/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) GenerateGenesisState(input *module.SimulationState)
- 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 (am AppModule) ProposalContents(simState module.SimulationState) []simulation.WeightedProposalContent
- func (AppModule) QuerierRoute() string
- func (am AppModule) RandomizedParams(r *rand.Rand) []simulation.ParamChange
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) RegisterStoreDecoder(registry sdk.StoreDecoderRegistry)
- func (AppModule) Route() string
- func (am AppModule) WeightedOperations(simState module.SimulationState) []simulation.WeightedOperation
- 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 DelegatorWithdrawInfo
- type GenesisState
- type Hooks
- type Keeper
- type MsgSetWithdrawAddress
- type MsgWithdrawValidatorCommission
- type QueryDelegatorWithdrawAddrParams
- type QueryValidatorCommissionParams
- type ValidatorAccumulatedCommission
- type ValidatorAccumulatedCommissionRecord
Constants ¶
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 ¶
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 ¶
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) 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) NewHandler ¶
NewHandler returns module handler
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns module querier
func (AppModule) ProposalContents ¶
func (am AppModule) ProposalContents(simState module.SimulationState) []simulation.WeightedProposalContent
func (AppModule) QuerierRoute ¶
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) 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) 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