Documentation
¶
Index ¶
- Constants
- type AppModule
- func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions
- func (am AppModule) BeginBlock(ctx context.Context) error
- func (AppModule) ConsensusVersion() uint64
- func (am AppModule) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage
- func (AppModule) GenerateGenesisState(simState *module.SimulationState)
- func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage)
- func (AppModule) IsAppModule()
- func (am AppModule) IsOnePerModuleType()
- func (AppModule) Name() string
- func (AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedProposalMsg
- func (am AppModule) ProposalMsgsX(weight simsx.WeightSource, reg simsx.Registry)
- func (AppModule) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *gwruntime.ServeMux)
- func (AppModule) RegisterInterfaces(ir codectypes.InterfaceRegistry)
- func (am AppModule) RegisterLegacyAminoCodec(amino *codec.LegacyAmino)
- func (am AppModule) RegisterServices(configurator module.Configurator)
- func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry)
- func (am AppModule) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
- func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
- func (am AppModule) WeightedOperationsX(weight simsx.WeightSource, reg simsx.Registry)
- type ModuleInputs
- type ModuleOutputs
Constants ¶
const ConsensusVersion = 1
ConsensusVersion defines the current x/protocolpool 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 pool module
func NewAppModule ¶
func NewAppModule(keeper keeper.Keeper, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, ) AppModule
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 implements appmodule.HasBeginBlocker.
func (AppModule) ConsensusVersion ¶
ConsensusVersion implements HasConsensusVersion
func (AppModule) DefaultGenesis ¶
func (am AppModule) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the protocolpool module.
func (AppModule) ExportGenesis ¶
ExportGenesis returns the exported genesis state as raw bytes for the protocolpool module.
func (AppModule) GenerateGenesisState ¶
func (AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the protocolpool module.
func (AppModule) InitGenesis ¶
InitGenesis performs genesis initialization for the protocolpool module.
func (AppModule) IsAppModule ¶
func (AppModule) IsAppModule()
IsAppModule implements the appmodule.AppModule interface.
func (AppModule) IsOnePerModuleType ¶
func (am AppModule) IsOnePerModuleType()
IsOnePerModuleType implements the depinject.OnePerModuleType interface.
func (AppModule) Name ¶
Name returns the protocolpool module's name. Deprecated: kept for legacy reasons.
func (AppModule) ProposalMsgs ¶
func (AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedProposalMsg
ProposalMsgs returns msgs used for governance proposals for simulations. migrate to ProposalMsgsX. This method is ignored when ProposalMsgsX exists and will be removed in the future.
func (AppModule) ProposalMsgsX ¶
func (am AppModule) ProposalMsgsX(weight simsx.WeightSource, reg simsx.Registry)
ProposalMsgsX registers governance proposal messages in the simulation registry.
func (AppModule) RegisterGRPCGatewayRoutes ¶
RegisterGRPCGatewayRoutes registers the gRPC Gateway routes
func (AppModule) RegisterInterfaces ¶
func (AppModule) RegisterInterfaces(ir codectypes.InterfaceRegistry)
RegisterInterfaces registers interfaces and implementations of the protocolpool module.
func (AppModule) RegisterLegacyAminoCodec ¶
func (am AppModule) RegisterLegacyAminoCodec(amino *codec.LegacyAmino)
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(configurator module.Configurator)
RegisterServices registers module services.
func (AppModule) RegisterStoreDecoder ¶
func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for protocolpool module's types
func (AppModule) ValidateGenesis ¶
func (am AppModule) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the protocolpool module.
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
WeightedOperations returns the all the protocolpool module operations with their respective weights. migrate to WeightedOperationsX. This method is ignored when WeightedOperationsX exists and will be removed in the future
func (AppModule) WeightedOperationsX ¶
func (am AppModule) WeightedOperationsX(weight simsx.WeightSource, reg simsx.Registry)
WeightedOperationsX registers weighted protocolpool module operations for simulation.
type ModuleInputs ¶
type ModuleInputs struct {
depinject.In
Config *modulev1.Module
Codec codec.Codec
StoreService store.KVStoreService
AccountKeeper types.AccountKeeper
BankKeeper types.BankKeeper
}
type ModuleOutputs ¶
func ProvideModule ¶
func ProvideModule(in ModuleInputs) ModuleOutputs
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. |