testmodule

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "testmodule"
	StoreKey   = ModuleName
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

func New

func New(k *keeper.Keeper) *Module

func (*Module) DefaultGenesis

func (*Module) DefaultGenesis(_ codec.JSONCodec) json.RawMessage

func (*Module) ExportGenesis

func (*Module) ExportGenesis(_ sdk.Context, _ codec.JSONCodec) json.RawMessage

func (*Module) GetQueryCmd

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

func (*Module) GetTxCmd

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

func (*Module) InitGenesis

func (m *Module) InitGenesis(ctx sdk.Context, _ codec.JSONCodec, data json.RawMessage) []abcitypes.ValidatorUpdate

func (*Module) IsAppModule

func (m *Module) IsAppModule()

func (*Module) IsOnePerModuleType

func (m *Module) IsOnePerModuleType()

func (*Module) Name

func (*Module) Name() string

func (*Module) RegisterGRPCGatewayRoutes

func (*Module) RegisterGRPCGatewayRoutes(_ client.Context, _ *grpcruntime.ServeMux)

RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module.

func (*Module) RegisterInterfaces

func (*Module) RegisterInterfaces(r codectypes.InterfaceRegistry)

RegisterInterfaces registers the module's interface types

func (*Module) RegisterLegacyAminoCodec

func (*Module) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func (*Module) RegisterRESTRoutes

func (*Module) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router)

RegisterRESTRoutes registers the capability module's REST service handlers.

func (*Module) RegisterServices

func (m *Module) RegisterServices(cfg module.Configurator)

func (*Module) ValidateGenesis

func (m *Module) ValidateGenesis(_ codec.JSONCodec, _ client.TxEncodingConfig, data json.RawMessage) error

type ModuleInputs

type ModuleInputs struct {
	depinject.In

	StoreService store.KVStoreService
}

type ModuleOutputs

type ModuleOutputs struct {
	depinject.Out

	Keeper *keeper.Keeper
	Module appmodule.AppModule
}

func ProvideModule

func ProvideModule(in ModuleInputs) ModuleOutputs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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