Documentation ¶
Index ¶
- Constants
- func BeginBlocker(ctx sdk.Context, k server.Keeper) error
- type Module
- func (m Module) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
- func (Module) ConsensusVersion() uint64
- func (m Module) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (m Module) ExportGenesis(s sdk.Context, jsonCodec codec.JSONCodec) json.RawMessage
- func (Module) GenerateGenesisState(simState *module.SimulationState)
- func (m Module) GetQueryCmd() *cobra.Command
- func (m Module) GetTxCmd() *cobra.Command
- func (m Module) InitGenesis(s sdk.Context, jsonCodec codec.JSONCodec, message json.RawMessage) []abci.ValidatorUpdate
- func (m Module) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier
- func (m Module) Name() string
- func (Module) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent
- func (m Module) QuerierRoute() string
- func (Module) RandomizedParams(_ *rand.Rand) []simtypes.ParamChange
- func (m Module) RegisterGRPCGatewayRoutes(clientCtx sdkclient.Context, mux *runtime.ServeMux)
- func (m Module) RegisterInterfaces(registry types.InterfaceRegistry)
- func (m Module) RegisterInvariants(reg sdk.InvariantRegistry)
- func (m Module) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func (m *Module) RegisterServices(cfg module.Configurator)
- func (Module) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry)
- func (m Module) Route() sdk.Route
- func (m Module) ValidateGenesis(_ codec.JSONCodec, _ sdkclient.TxEncodingConfig, bz json.RawMessage) error
- func (m Module) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
Constants ¶
const (
ConsensusVersion = 4 // ConsensusVersion is the module consensus version
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Module ¶
Module implements the AppModule interface.
func NewModule ¶
func NewModule( storeKey storetypes.StoreKey, authority sdk.AccAddress, accountKeeper ecocredit.AccountKeeper, bankKeeper ecocredit.BankKeeper, legacySubspace paramtypes.Subspace, govKeeper ecocredit.GovKeeper, ) *Module
NewModule returns a new Module.
func (Module) BeginBlock ¶
func (m Module) BeginBlock(ctx sdk.Context, _ 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 (m Module) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
DefaultGenesis implements AppModule/DefaultGenesis.
func (Module) ExportGenesis ¶
ExportGenesis implements AppModule/ExportGenesis.
func (Module) GenerateGenesisState ¶
func (Module) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenesisState of the ecocredit module.
func (Module) GetQueryCmd ¶
GetQueryCmd implements AppModule/GetQueryCmd.
func (Module) InitGenesis ¶
func (m Module) InitGenesis(s sdk.Context, jsonCodec codec.JSONCodec, message json.RawMessage) []abci.ValidatorUpdate
InitGenesis implements AppModule/InitGenesis.
func (Module) LegacyQuerierHandler ¶
func (m Module) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier
LegacyQuerierHandler implements AppModule/LegacyQuerierHandler.
func (Module) ProposalContents ¶
func (Module) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent
ProposalContents implements AppModuleSimulation/ProposalContents.
func (Module) QuerierRoute ¶
QuerierRoute implements AppModule/QuerierRoute.
func (Module) RandomizedParams ¶
func (Module) RandomizedParams(_ *rand.Rand) []simtypes.ParamChange
RandomizedParams implements AppModuleSimulation/RandomizedParams.
func (Module) RegisterGRPCGatewayRoutes ¶
RegisterGRPCGatewayRoutes implements AppModule/RegisterGRPCGatewayRoutes.
func (Module) RegisterInterfaces ¶
func (m Module) RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces implements AppModule/RegisterInterfaces.
func (Module) RegisterInvariants ¶
func (m Module) RegisterInvariants(reg sdk.InvariantRegistry)
RegisterInvariants implements AppModule/RegisterInvariants.
func (Module) RegisterLegacyAminoCodec ¶
func (m Module) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec implements AppModule/RegisterLegacyAminoCodec.
func (*Module) RegisterServices ¶
func (m *Module) RegisterServices(cfg module.Configurator)
RegisterServices implements AppModule/RegisterServices.
func (Module) RegisterStoreDecoder ¶
func (Module) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry)
RegisterStoreDecoder implements AppModuleSimulation/RegisterStoreDecoder.
func (Module) ValidateGenesis ¶
func (m Module) ValidateGenesis(_ codec.JSONCodec, _ sdkclient.TxEncodingConfig, bz json.RawMessage) error
ValidateGenesis implements AppModule/ValidateGenesis.
func (Module) WeightedOperations ¶
func (m Module) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
WeightedOperations implements AppModuleSimulation/WeightedOperations.