Class OrderSubscriber

Hierarchy

  • OrderSubscriber

Constructors

Properties

commitment: Commitment
decodeData?: boolean
decodeFn: ((name: string, data: Buffer) => UserAccount)

Type declaration

driftClient: DriftClient
eventEmitter: StrictEventEmitter<EventEmitter<DefaultEventMap>, OrderSubscriberEvents, OrderSubscriberEvents, "addEventListener" | "removeEventListener", "on" | "addListener" | "removeListener" | "once" | "emit">
fetchPromise?: Promise<void>
fetchPromiseResolver: (() => void)

Type declaration

    • (): void
    • Returns void

mostRecentSlot: number
subscription: PollingSubscription | WebsocketSubscription
usersAccounts: Map<string, {
    slot: number;
    userAccount: UserAccount;
}> = ...

Methods

Generated using TypeDoc