Documentation ¶
Index ¶
- type Module
- func (Module) ConsensusVersion() uint64
- func (a Module) DefaultGenesis(codec.JSONCodec) json.RawMessage
- func (a Module) ExportGenesis(s sdk.Context, jsonCodec codec.JSONCodec) json.RawMessage
- func (Module) GenerateGenesisState(simState *module.SimulationState)
- func (a Module) GetQueryCmd() *cobra.Command
- func (a Module) GetTxCmd() *cobra.Command
- func (a Module) InitGenesis(s sdk.Context, jsonCodec codec.JSONCodec, message json.RawMessage) []tmtypes.ValidatorUpdate
- func (a Module) LegacyQuerierHandler(amino *codec.LegacyAmino) sdk.Querier
- func (a Module) Name() string
- func (Module) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent
- func (a Module) QuerierRoute() string
- func (Module) RandomizedParams(r *rand.Rand) []simtypes.ParamChange
- func (a Module) RegisterGRPCGatewayRoutes(clientCtx sdkclient.Context, mux *runtime.ServeMux)
- func (a Module) RegisterInterfaces(registry types.InterfaceRegistry)
- func (a Module) RegisterInvariants(_ sdk.InvariantRegistry)
- func (a Module) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func (a Module) RegisterRESTRoutes(sdkclient.Context, *mux.Router)
- func (a *Module) RegisterServices(cfg module.Configurator)
- func (Module) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (a Module) Route() sdk.Route
- func (a Module) ValidateGenesis(_ codec.JSONCodec, _ sdkclient.TxEncodingConfig, bz json.RawMessage) error
- func (a Module) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func NewModule ¶
func NewModule(sk storeTypes.StoreKey, ak data.AccountKeeper, bk data.BankKeeper) *Module
func (Module) ConsensusVersion ¶
ConsensusVersion implements AppModule/ConsensusVersion.
func (Module) DefaultGenesis ¶
func (a Module) DefaultGenesis(codec.JSONCodec) json.RawMessage
func (Module) ExportGenesis ¶
func (Module) GenerateGenesisState ¶
func (Module) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenesisState of the data module.
func (Module) GetQueryCmd ¶
func (Module) InitGenesis ¶
func (a Module) InitGenesis(s sdk.Context, jsonCodec codec.JSONCodec, message json.RawMessage) []tmtypes.ValidatorUpdate
func (Module) LegacyQuerierHandler ¶
func (a Module) LegacyQuerierHandler(amino *codec.LegacyAmino) sdk.Querier
func (Module) ProposalContents ¶
func (Module) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent
ProposalContents returns all the data content functions used to simulate proposals.
func (Module) QuerierRoute ¶
func (Module) RandomizedParams ¶
func (Module) RandomizedParams(r *rand.Rand) []simtypes.ParamChange
RandomizedParams creates randomized data param changes for the simulator.
func (Module) RegisterGRPCGatewayRoutes ¶
nolint
func (Module) RegisterInterfaces ¶
func (a Module) RegisterInterfaces(registry types.InterfaceRegistry)
func (Module) RegisterInvariants ¶
func (a Module) RegisterInvariants(_ sdk.InvariantRegistry)
func (Module) RegisterLegacyAminoCodec ¶
func (a Module) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the data module's types on the given LegacyAmino codec.
func (Module) RegisterRESTRoutes ¶
*** DEPRECATED ***
func (*Module) RegisterServices ¶
func (a *Module) RegisterServices(cfg module.Configurator)
func (Module) RegisterStoreDecoder ¶
func (Module) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for data module's types
func (Module) ValidateGenesis ¶
func (a Module) ValidateGenesis(_ codec.JSONCodec, _ sdkclient.TxEncodingConfig, bz json.RawMessage) error
func (Module) WeightedOperations ¶
func (a Module) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
WeightedOperations returns all the data module operations with their respective weights.
Click to show internal directories.
Click to hide internal directories.