Documentation
¶
Index ¶
- Constants
- type AppModule
- func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions
- func (AppModule) ConsensusVersion() uint64
- func (AppModule) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage
- func (am AppModule) GenerateGenesisState(simState *module.SimulationState)
- func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage)
- func (am AppModule) IsAppModule()
- func (am AppModule) IsOnePerModuleType()
- func (AppModule) Name() string
- func (AppModule) QuerierRoute() string
- func (AppModule) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *gwruntime.ServeMux)
- func (AppModule) RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func (AppModule) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func (am AppModule) RegisterServices(cfg module.Configurator)
- func (am AppModule) RegisterSideMsgServices(sideCfg sidetxs.SideTxConfigurator)
- func (am AppModule) RegisterStoreDecoder(_ simulation.StoreDecoderRegistry)
- func (AppModule) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
- func (am AppModule) WeightedOperations(_ module.SimulationState) []simulation.WeightedOperation
Constants ¶
const ConsensusVersion = 1
ConsensusVersion defines the current x/topup module consensus version.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppModule ¶
type AppModule struct {
// contains filtered or unexported fields
}
AppModule implements an application module for the topup module.
func NewAppModule ¶
func NewAppModule(keeper keeper.Keeper, contractCaller helper.ContractCaller) AppModule
NewAppModule creates a new AppModule object
func (AppModule) AutoCLIOptions ¶
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions
AutoCLIOptions returns the auto cli options for the module (query and tx)
func (AppModule) ConsensusVersion ¶
ConsensusVersion implements AppModule/ConsensusVersion.
func (AppModule) DefaultGenesis ¶
func (AppModule) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the x/topup module.
func (AppModule) ExportGenesis ¶
ExportGenesis returns the exported genesis state as raw bytes for the x/topup module.
func (AppModule) GenerateGenesisState ¶
func (am AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the x/topup module.
func (AppModule) InitGenesis ¶
InitGenesis performs genesis initialization for the x/topup module.
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) QuerierRoute ¶
QuerierRoute returns the stake module's querier route name.
func (AppModule) RegisterGRPCGatewayRoutes ¶
RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the x/topup module.
func (AppModule) RegisterInterfaces ¶
func (AppModule) RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers interfaces and implementations of the x/topup module.
func (AppModule) RegisterLegacyAminoCodec ¶
func (AppModule) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the x/topup module's types on the LegacyAmino codec.
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
RegisterServices registers module services.
func (AppModule) RegisterSideMsgServices ¶
func (am AppModule) RegisterSideMsgServices(sideCfg sidetxs.SideTxConfigurator)
RegisterSideMsgServices registers side handler module services.
func (AppModule) RegisterStoreDecoder ¶
func (am AppModule) RegisterStoreDecoder(_ simulation.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for x/topup module's types
func (AppModule) ValidateGenesis ¶
func (AppModule) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the x/topup module.
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(_ module.SimulationState) []simulation.WeightedOperation
WeightedOperations returns the all the gov module operations with their respective weights.
Directories
¶
Path | Synopsis |
---|---|
Package testutil is a generated GoMock package.
|
Package testutil is a generated GoMock package. |
Package types is a reverse proxy.
|
Package types is a reverse proxy. |