UNPKG

@drift-labs/sdk

Version:
17 lines 733 B
/// <reference types="node" /> /// <reference types="node" /> /// <reference types="bn.js" /> import { Connection, PublicKey } from '@solana/web3.js'; import { OracleClient, OraclePriceData } from './types'; import { BN } from '@coral-xyz/anchor'; export declare class PythLazerClient implements OracleClient { private connection; private multiple; private stableCoin; private program; readonly decodeFunc: (name: string, data: Buffer) => any; constructor(connection: Connection, multiple?: BN, stableCoin?: boolean); getOraclePriceData(pricePublicKey: PublicKey): Promise<OraclePriceData>; getOraclePriceDataFromBuffer(buffer: Buffer): OraclePriceData; } //# sourceMappingURL=pythLazerClient.d.ts.map