module

package
v3.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 30 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ConsensusVersion = 4 // ConsensusVersion is the module consensus version
)

Variables

This section is empty.

Functions

func BeginBlocker

func BeginBlocker(ctx sdk.Context, k server.Keeper) error

BeginBlocker checks if there are any expired sell orders and removes them from state.

Types

type Module

type Module struct {
	Keeper server.Keeper
	// contains filtered or unexported fields
}

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

func (Module) ConsensusVersion() uint64

ConsensusVersion implements AppModule/ConsensusVersion.

func (Module) DefaultGenesis

func (m Module) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage

DefaultGenesis implements AppModule/DefaultGenesis.

func (Module) ExportGenesis

func (m Module) ExportGenesis(s sdk.Context, jsonCodec codec.JSONCodec) json.RawMessage

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

func (m Module) GetQueryCmd() *cobra.Command

GetQueryCmd implements AppModule/GetQueryCmd.

func (Module) GetTxCmd

func (m Module) GetTxCmd() *cobra.Command

GetTxCmd implements AppModule/GetTxCmd.

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) Name

func (m Module) Name() string

Name implements AppModule/Name.

func (Module) ProposalContents

ProposalContents implements AppModuleSimulation/ProposalContents.

func (Module) QuerierRoute

func (m Module) QuerierRoute() string

QuerierRoute implements AppModule/QuerierRoute.

func (Module) RandomizedParams

func (Module) RandomizedParams(_ *rand.Rand) []simtypes.ParamChange

RandomizedParams implements AppModuleSimulation/RandomizedParams.

func (Module) RegisterGRPCGatewayRoutes

func (m Module) RegisterGRPCGatewayRoutes(clientCtx sdkclient.Context, mux *runtime.ServeMux)

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) Route

func (m Module) Route() sdk.Route

Route implements AppModule/Route.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL