apps_registry

package
v0.0.0-...-9f5e8be Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppsRegistryService

type AppsRegistryService interface {
	GetApplications() []*models.PoktApplicationSigner
	GetApplicationsByChainId(chainId string) ([]*models.PoktApplicationSigner, bool)
	GetApplicationByPublicKey(publicKey string) (*models.PoktApplicationSigner, bool)
}

type CachedAppsRegistry

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

CachedAppsRegistry is a caching layer for storing and retrieving from internal DB and POKT's blockchain state

func NewCachedAppsRegistry

func NewCachedAppsRegistry(pocketClient pokt_v0.PocketService, dbQuery db_query.Querier, secretProvider global_config.SecretProvider, logger *zap.Logger) *CachedAppsRegistry

NewCachedAppsRegistry creates a new instance of CachedAppsRegistry.

func (*CachedAppsRegistry) GetApplicationByPublicKey

func (c *CachedAppsRegistry) GetApplicationByPublicKey(pubKey string) (*models.PoktApplicationSigner, bool)

func (*CachedAppsRegistry) GetApplications

func (c *CachedAppsRegistry) GetApplications() []*models.PoktApplicationSigner

GetApplications returns all the cached Pocket applications.

func (*CachedAppsRegistry) GetApplicationsByChainId

func (c *CachedAppsRegistry) GetApplicationsByChainId(chainId string) ([]*models.PoktApplicationSigner, bool)

GetApplicationsByChainId returns Pocket applications filtered by a specific chain ID.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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