module

package
v0.2.0-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ModuleName = "benchmark"
)

Variables

This section is empty.

Functions

func ProvideModule

func ProvideModule(
	in Input,
) (appmodule.AppModule, error)

Types

type AppModule

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

func NewAppModule

func NewAppModule(
	genesisParams *modulev1.GeneratorParams,
	storeKeys []string,
	kvMap KVServiceMap,
	logger log.Logger,
) *AppModule

func (*AppModule) DefaultGenesis

func (a *AppModule) DefaultGenesis() json.RawMessage

DefaultGenesis implements appmodulev2.HasGenesis.

func (*AppModule) ExportGenesis

func (a *AppModule) ExportGenesis(context.Context) (json.RawMessage, error)

ExportGenesis implements appmodulev2.HasGenesis.

func (*AppModule) GetTxCmd

func (a *AppModule) GetTxCmd() *cobra.Command

func (*AppModule) InitGenesis

func (a *AppModule) InitGenesis(ctx context.Context, _ json.RawMessage) error

InitGenesis implements appmodulev2.HasGenesis.

func (*AppModule) IsAppModule

func (a *AppModule) IsAppModule()

func (*AppModule) IsOnePerModuleType

func (a *AppModule) IsOnePerModuleType()

func (*AppModule) RegisterGRPCGatewayRoutes

func (a *AppModule) RegisterGRPCGatewayRoutes(client.Context, *runtime.ServeMux)

func (*AppModule) RegisterInterfaces

func (a *AppModule) RegisterInterfaces(registrar registry.InterfaceRegistrar)

func (*AppModule) RegisterServices

func (a *AppModule) RegisterServices(registrar grpc.ServiceRegistrar) error

RegisterServices registers module services.

func (*AppModule) ValidateGenesis

func (a *AppModule) ValidateGenesis(data json.RawMessage) error

ValidateGenesis implements appmodulev2.HasGenesis.

type Input

type Input struct {
	depinject.In

	Logger       log.Logger
	Cfg          *modulev1.Module
	Registrar    StoreKeyRegistrar `optional:"true"`
	StoreFactory store.KVStoreServiceFactory
}

type KVServiceMap

type KVServiceMap map[string]store.KVStoreService

type Keeper

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

func NewKeeper

func NewKeeper(kvMap KVServiceMap) *Keeper

func (*Keeper) LoadTest

type StoreKeyRegistrar

type StoreKeyRegistrar interface {
	RegisterKey(string)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳