services

package
v2.0.0-...-4f3f401 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractAutoCLIOptions

func ExtractAutoCLIOptions(appModules map[string]appmodule.AppModule) (map[string]*autocliv1.ModuleOptions, error)

ExtractAutoCLIOptions extracts autocli ModuleOptions from the provided app modules. Example Usage: ExtractAutoCLIOptions(ModuleManager.Modules) Note, runtimev2/services.ExtractAutoCLIOptions differs from runtimev1/services.ExtractAutoCLIOptions as it supports only modules implementing fully the core appmodule interface.

func NewContextAwareTransactionService

func NewContextAwareTransactionService() transaction.Service

func NewGenesisContext

func NewGenesisContext(state store.ReaderMap) genesisContext

NewGenesisContext creates a new genesis context.

func NewGenesisEventService

func NewGenesisEventService(executionService event.Service) event.Service

NewGenesisEventService creates a new GenesisEventService. - executionService is the event.Service to use when the genesis context is not active.

func NewGenesisHeaderService

func NewGenesisHeaderService(executionService header.Service) header.Service

NewGenesisHeaderService creates a new GenesisHeaderService. - executionService is the header.Service to use when the genesis context is not active.

Types

type AutoCLIQueryService

type AutoCLIQueryService struct {
	autocliv1.UnimplementedQueryServer
	// contains filtered or unexported fields
}

AutoCLIQueryService implements the cosmos.autocli.v1.Query service.

func NewAutoCLIQueryService

func NewAutoCLIQueryService(appModules map[string]appmodulev2.AppModule) (*AutoCLIQueryService, error)

NewAutoCLIQueryService returns a AutoCLIQueryService for the provided modules.

type ContextAwareCometInfoService

type ContextAwareCometInfoService struct{}

func (*ContextAwareCometInfoService) CometInfo

CometInfo implements comet.Service.

type ContextAwareTransactionService

type ContextAwareTransactionService struct{}

ContextAwareTransactionService implements the transaction.Service interface. It is used to retrieve the execution mode in the context.

func (ContextAwareTransactionService) ExecMode

ExecMode returns the execution mode stored in the context.

type GenesisEventService

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

GenesisEventService is an event.Service implementation that is used during genesis initialization. It wraps an inner execution context event.Service. During genesis initialization, it returns a blackHoleEventManager into which events enter and disappear completely.

func (*GenesisEventService) EventManager

func (g *GenesisEventService) EventManager(ctx context.Context) event.Manager

type GenesisHeaderService

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

GenesisHeaderService is a header.Service implementation that is used during genesis initialization. It wraps an inner execution context header.Service.

func (*GenesisHeaderService) HeaderInfo

func (g *GenesisHeaderService) HeaderInfo(ctx context.Context) header.Info

HeaderInfo implements header.Service. During genesis initialization, it returns an empty header.Info.

type GenesisKVStoreService

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

GenesisKVStoreService is a store.KVStoreService implementation that is used during genesis initialization. It wraps an inner execution context store.KVStoreService.

func NewGenesisKVService

func NewGenesisKVService(
	actor []byte,
	executionService store.KVStoreService,
) *GenesisKVStoreService

NewGenesisKVService creates a new GenesisKVStoreService. - actor is the module store key. - executionService is the store.KVStoreService to use when the genesis context is not active.

func (*GenesisKVStoreService) OpenKVStore

func (g *GenesisKVStoreService) OpenKVStore(ctx context.Context) store.KVStore

OpenKVStore implements store.KVStoreService.

type ReflectionService

type ReflectionService struct {
	reflectionv1.UnimplementedReflectionServiceServer
	// contains filtered or unexported fields
}

ReflectionService implements the cosmos.reflection.v1 service.

func NewReflectionService

func NewReflectionService() (*ReflectionService, error)

Jump to

Keyboard shortcuts

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