Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PoolDiscoveryService ¶
type PoolDiscoveryService struct {
// contains filtered or unexported fields
}
PoolDiscoveryService watches for BurnMintTokenPool and LockReleaseTokenPool CreatedEvents naming EDS's observer party as an observer, and dynamically registers them for serving.
func NewPoolDiscoveryService ¶
func NewPoolDiscoveryService( logger zerolog.Logger, activeContractStore store.ActiveContractStoreInterface, tokenPoolServer *tokenpool.Server, cfg config.RegistryAPIConfig, ) *PoolDiscoveryService
NewPoolDiscoveryService creates a new pool discovery service. It must be created BEFORE activeContractStore.Run() is called. cfg.party_id is EDS's own party, named as an observer on discoverable pool contracts. cfg.token_standard_url is used to wire a URL-mode factory for each discovered pool, so send/execute disclosures include the token's burn-mint/transfer factory without any per-pool static config.
Click to show internal directories.
Click to hide internal directories.