UNPKG

@d8x/perpetuals-sdk

Version:

Node TypeScript SDK for D8X Perpetual Futures

14 lines (13 loc) 433 B
import OnChainPxFeed from "./onChainPxFeed"; /** * OnChainPxFeedRedStone: get a price from a chainlink-style oracle */ export default class OnChainPxFeedRedStone extends OnChainPxFeed { private delayMs; private ctrctAddr; private decimals; private fetchInProgress; static abi: any; constructor(ctrctAddr: string, decimals: number, rpcs: string[]); protected fetchPrice(delay: boolean): Promise<void>; }