Documentation
¶
Index ¶
- Constants
- func InvokeSetHooks(keeper *keeper.Keeper, hooks map[string]types.EpochHooksWrapper) error
- type AppModule
- func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions
- func (am AppModule) BeginBlock(ctx context.Context) error
- func (AppModule) ConsensusVersion() uint64
- func (am AppModule) DefaultGenesis() json.RawMessage
- func (am AppModule) ExportGenesis(ctx context.Context) (json.RawMessage, error)
- func (AppModule) GenerateGenesisState(simState *module.SimulationState)
- func (am AppModule) InitGenesis(ctx context.Context, bz json.RawMessage) error
- func (am AppModule) IsAppModule()
- func (am AppModule) IsOnePerModuleType()
- func (am AppModule) ModuleCodec() (schema.ModuleCodec, error)
- func (AppModule) Name() string
- func (AppModule) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *gwruntime.ServeMux)
- func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar)
- func (am AppModule) RegisterServices(registrar grpc.ServiceRegistrar) error
- func (am AppModule) RegisterStoreDecoder(sdr simtypes.StoreDecoderRegistry)
- func (am AppModule) ValidateGenesis(bz json.RawMessage) error
- type ModuleInputs
- type ModuleOutputs
Constants ¶
const ConsensusVersion = 1
Variables ¶
This section is empty.
Functions ¶
func InvokeSetHooks ¶
Types ¶
type AppModule ¶
type AppModule struct {
// contains filtered or unexported fields
}
AppModule implements the AppModule interface for the epochs module.
func NewAppModule ¶
NewAppModule creates a new AppModule object.
func (AppModule) AutoCLIOptions ¶
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions
AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
func (AppModule) BeginBlock ¶
BeginBlock executes all ABCI BeginBlock logic respective to the epochs module.
func (AppModule) ConsensusVersion ¶
ConsensusVersion implements HasConsensusVersion
func (AppModule) DefaultGenesis ¶
func (am AppModule) DefaultGenesis() json.RawMessage
DefaultGenesis returns the epochs module's default genesis state.
func (AppModule) ExportGenesis ¶
ExportGenesis returns the epochs module's exported genesis state as raw JSON bytes.
func (AppModule) GenerateGenesisState ¶
func (AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the epochs module.
func (AppModule) InitGenesis ¶
InitGenesis performs the epochs module's genesis initialization
func (AppModule) IsAppModule ¶
func (am AppModule) IsAppModule()
IsAppModule implements the appmodule.AppModule interface.
func (AppModule) IsOnePerModuleType ¶
func (am AppModule) IsOnePerModuleType()
IsOnePerModuleType implements the depinject.OnePerModuleType interface.
func (AppModule) ModuleCodec ¶
func (am AppModule) ModuleCodec() (schema.ModuleCodec, error)
ModuleCodec implements schema.HasModuleCodec. It allows the indexer to decode the module's KVPairUpdate.
func (AppModule) RegisterGRPCGatewayRoutes ¶
RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the epochs module.
func (AppModule) RegisterLegacyAminoCodec ¶
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar)
RegisterLegacyAminoCodec registers the epochs module's types for the given codec.
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(registrar grpc.ServiceRegistrar) error
RegisterServices registers module services.
func (AppModule) RegisterStoreDecoder ¶
func (am AppModule) RegisterStoreDecoder(sdr simtypes.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for epochs module's types
func (AppModule) ValidateGenesis ¶
func (am AppModule) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the epochs module.
type ModuleInputs ¶
type ModuleOutputs ¶
func ProvideModule ¶
func ProvideModule(in ModuleInputs) ModuleOutputs