Class WebSocketDriftClientAccountSubscriber

Hierarchy

  • WebSocketDriftClientAccountSubscriber

Implements

Constructors

Properties

commitment?: Commitment
delistedMarketSetting: DelistedMarketSetting
eventEmitter: StrictEventEmitter<EventEmitter<DefaultEventMap>, DriftClientAccountEvents, DriftClientAccountEvents, "addEventListener" | "removeEventListener", "on" | "addListener" | "removeListener" | "once" | "emit">
initialOraclePriceData: Map<string, OraclePriceData>
initialPerpMarketAccountData: Map<number, PerpMarketAccount>
initialSpotMarketAccountData: Map<number, SpotMarketAccount>
isSubscribed: boolean
isSubscribing: boolean = false
oracleClientCache: OracleClientCache = ...
oracleInfos: OracleInfo[]
oracleSubscribers: Map<string, AccountSubscriber<OraclePriceData>> = ...
perpMarketAccountSubscribers: Map<number, AccountSubscriber<PerpMarketAccount>> = ...
perpMarketIndexes: number[]
perpOracleMap: Map<number, PublicKey> = ...
perpOracleStringMap: Map<number, string> = ...
program: Program<Idl>
resubOpts?: ResubOpts
shouldFindAllMarketsAndOracles: boolean
spotMarketAccountSubscribers: Map<number, AccountSubscriber<SpotMarketAccount>> = ...
spotMarketIndexes: number[]
spotOracleMap: Map<number, PublicKey> = ...
spotOracleStringMap: Map<number, string> = ...
stateAccountSubscriber?: AccountSubscriber<StateAccount>
subscriptionPromise: Promise<boolean>
subscriptionPromiseResolver: ((val: boolean) => void)

Type declaration

    • (val: boolean): void
    • Parameters

      • val: boolean

      Returns void

Methods

Generated using TypeDoc