Documentation ¶
Index ¶
- func ExtractAutoCLIOptions(appModules map[string]appmodule.AppModule) (map[string]*autocliv1.ModuleOptions, error)
- func NewContextAwareTransactionService() transaction.Service
- func NewGenesisContext(state store.ReaderMap) genesisContext
- func NewGenesisEventService(executionService event.Service) event.Service
- func NewGenesisHeaderService(executionService header.Service) header.Service
- type AutoCLIQueryService
- type ContextAwareCometInfoService
- type ContextAwareTransactionService
- type GenesisEventService
- type GenesisHeaderService
- type GenesisKVStoreService
- type ReflectionService
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 ¶
NewGenesisContext creates a new genesis context.
func NewGenesisEventService ¶
NewGenesisEventService creates a new GenesisEventService. - executionService is the event.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.
func (AutoCLIQueryService) AppOptions ¶
func (a AutoCLIQueryService) AppOptions(context.Context, *autocliv1.AppOptionsRequest) (*autocliv1.AppOptionsResponse, error)
type ContextAwareCometInfoService ¶
type ContextAwareCometInfoService struct{}
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 ¶
func (c ContextAwareTransactionService) ExecMode(ctx context.Context) transaction.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)
func (ReflectionService) FileDescriptors ¶
func (r ReflectionService) FileDescriptors(_ context.Context, _ *reflectionv1.FileDescriptorsRequest) (*reflectionv1.FileDescriptorsResponse, error)