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.
Click to show internal directories.
Click to hide internal directories.