service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunEDS

func RunEDS(ctx context.Context, logger zerolog.Logger, cfg *config.Config) error

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.

func (*PoolDiscoveryService) Watch

func (s *PoolDiscoveryService) Watch(ctx context.Context) error

Watch starts watching for new token pool contracts.

Jump to

Keyboard shortcuts

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