Class GmOrderbookService

Establishes a connection to the Galactic Marketplace and maintains an up-to-date real time snapshot of all open marketplace orders.

Param: rpcUrl

Solana RPC Provider Url

Param: programId

The Galactic Marketplace program PublicKey

Param: commitment

Optional Solana commitment level, defaults to confirmed

Constructors

Properties

changeObserverDisposer: IDisposer = null
connection: Connection
eventCallBacks: GmEventHandler[] = []
gmClientService: GmClientService = ...
gmEventService: GmEventService
healthcheckThreshold: number
healthcheckTimer: Timer
isReloading: boolean = false
lastEventTimestamp: number = ...
marketplaceProgramId: PublicKey
orderCacheService: OrderCacheService
HEALTH_CHECK_RATE: number = 5000

Methods