Documentation ¶
Index ¶
- Constants
- type AppModule
- func (a AppModule) BeginBlock(context sdk.Context, block abci.RequestBeginBlock)
- func (AppModule) ConsensusVersion() uint64
- func (a AppModule) EndBlock(context sdk.Context, block abci.RequestEndBlock) []abci.ValidatorUpdate
- func (a AppModule) ExportGenesis(ctx sdk.Context, jsonCodec codec.JSONCodec) json.RawMessage
- func (AppModule) GenerateGenesisState(simState *module.SimulationState)
- func (a AppModule) InitGenesis(ctx sdk.Context, jsonCodec codec.JSONCodec, message json.RawMessage) []abci.ValidatorUpdate
- func (a AppModule) LegacyQuerierHandler(amino *codec.LegacyAmino) sdk.Querier
- func (AppModule) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent
- func (a AppModule) QuerierRoute() string
- func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange
- func (a AppModule) RegisterInvariants(registry sdk.InvariantRegistry)
- func (a AppModule) RegisterServices(cfg module.Configurator)
- func (a AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (a AppModule) Route() sdk.Route
- func (a AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
- type AppModuleBasic
- func (a AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (a AppModuleBasic) GetQueryCmd() *cobra.Command
- func (a AppModuleBasic) GetTxCmd() *cobra.Command
- func (a AppModuleBasic) Name() string
- func (a AppModuleBasic) RegisterGRPCGatewayRoutes(ctx client.Context, serveMux *runtime.ServeMux)
- func (a AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func (a AppModuleBasic) RegisterLegacyAminoCodec(amino *codec.LegacyAmino)
- func (a AppModuleBasic) RegisterRESTRoutes(ctx client.Context, router *mux.Router)
- func (a AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error
Constants ¶
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey RouteKey = types.RouterKey )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
func NewAppModule ¶
func (AppModule) BeginBlock ¶
func (a AppModule) BeginBlock(context sdk.Context, block abci.RequestBeginBlock)
BeginBlock is executed before block was proposed
func (AppModule) ConsensusVersion ¶
ConsensusVersion implements AppModule/ConsensusVersion.
func (AppModule) EndBlock ¶
func (a AppModule) EndBlock(context sdk.Context, block abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock is executed after a block has been committed.
func (AppModule) ExportGenesis ¶
func (AppModule) GenerateGenesisState ¶
func (AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the pool-incentives module.
func (AppModule) InitGenesis ¶
func (a AppModule) InitGenesis(ctx sdk.Context, jsonCodec codec.JSONCodec, message json.RawMessage) []abci.ValidatorUpdate
func (AppModule) LegacyQuerierHandler ¶
func (a AppModule) LegacyQuerierHandler(amino *codec.LegacyAmino) sdk.Querier
LegacyQuerierHandler is deprecated: use RegisterServices
func (AppModule) ProposalContents ¶
func (AppModule) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent
ProposalContents doesn't return any content functions for governance proposals.
func (AppModule) QuerierRoute ¶
QuerierRoute is deprecated: use RegisterServices
func (AppModule) RandomizedParams ¶
func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange
RandomizedParams creates randomized pool-incentives param changes for the simulator.
func (AppModule) RegisterInvariants ¶
func (a AppModule) RegisterInvariants(registry sdk.InvariantRegistry)
func (AppModule) RegisterServices ¶
func (a AppModule) RegisterServices(cfg module.Configurator)
RegisterServices register the module's query and msg server
func (AppModule) RegisterStoreDecoder ¶
func (a AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for supply module's types.
func (AppModule) WeightedOperations ¶
func (a AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
WeightedOperations returns the all the lockup module operations with their respective weights.
type AppModuleBasic ¶
type AppModuleBasic struct {
// contains filtered or unexported fields
}
func NewAppModuleBasic ¶
func NewAppModuleBasic(cdc codec.Codec) AppModuleBasic
func (AppModuleBasic) DefaultGenesis ¶
func (a AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
func (AppModuleBasic) GetQueryCmd ¶
func (a AppModuleBasic) GetQueryCmd() *cobra.Command
func (AppModuleBasic) GetTxCmd ¶
func (a AppModuleBasic) GetTxCmd() *cobra.Command
func (AppModuleBasic) Name ¶
func (a AppModuleBasic) Name() string
Name returns the airdrop module's name
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (a AppModuleBasic) RegisterGRPCGatewayRoutes(ctx client.Context, serveMux *runtime.ServeMux)
func (AppModuleBasic) RegisterInterfaces ¶
func (a AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the module's interface types.
func (AppModuleBasic) RegisterLegacyAminoCodec ¶
func (a AppModuleBasic) RegisterLegacyAminoCodec(amino *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the airdrop module's types on the LegacyAmino codec.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (a AppModuleBasic) RegisterRESTRoutes(ctx client.Context, router *mux.Router)
func (AppModuleBasic) ValidateGenesis ¶
func (a AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error