Documentation ¶
Index ¶
- type Module
- func (a Module) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
- func (Module) ConsensusVersion() uint64
- func (a Module) DefaultGenesis(cdc 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) Name() string
- func (Module) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent
- 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) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func (a Module) RegisterRESTRoutes(sdkclient.Context, *mux.Router)
- func (a *Module) RegisterServices(configurator servermodule.Configurator)
- func (Module) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (a Module) ValidateGenesis(cdc codec.JSONCodec, _ sdkclient.TxEncodingConfig, bz json.RawMessage) error
- func (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 ¶
func NewModule ¶
func NewModule( paramSpace paramtypes.Subspace, accountKeeper ecocredit.AccountKeeper, bankKeeper ecocredit.BankKeeper, ) *Module
NewModule returns a new Module object.
func (Module) BeginBlock ¶
func (a Module) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
BeginBlock checks if there are any expired sell or buy orders and removes them from state.
func (Module) ConsensusVersion ¶
ConsensusVersion implements AppModule/ConsensusVersion.
func (Module) DefaultGenesis ¶
func (a Module) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
func (Module) GenerateGenesisState ¶
func (Module) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenesisState of the ecocredit module.
func (Module) GetQueryCmd ¶
func (Module) ProposalContents ¶
func (Module) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent
ProposalContents returns all the ecocredit content functions used to simulate proposals.
func (Module) RandomizedParams ¶
func (Module) RandomizedParams(r *rand.Rand) []simtypes.ParamChange
RandomizedParams creates randomized ecocredit param changes for the simulator.
func (Module) RegisterGRPCGatewayRoutes ¶
func (Module) RegisterInterfaces ¶
func (a Module) RegisterInterfaces(registry types.InterfaceRegistry)
func (Module) RegisterLegacyAminoCodec ¶
func (a Module) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func (Module) RegisterRESTRoutes ¶
*** DEPRECATED ***
func (*Module) RegisterServices ¶
func (a *Module) RegisterServices(configurator servermodule.Configurator)
func (Module) RegisterStoreDecoder ¶
func (Module) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for ecocredit module's types
func (Module) ValidateGenesis ¶
func (a Module) ValidateGenesis(cdc codec.JSONCodec, _ sdkclient.TxEncodingConfig, bz json.RawMessage) error
func (Module) WeightedOperations ¶
func (Module) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
WeightedOperations returns all the ecocredit module operations with their respective weights. NOTE: This is no longer needed for the modules which uses ADR-33, ecocredit module `WeightedOperations` registered in the `x/ecocredit/server` package.