UNPKG

@hubbleprotocol/farms-sdk

Version:
23 lines (22 loc) 926 B
import { PublicKey, Connection } from "@solana/web3.js"; import * as types from "../types"; export interface OraclePricesFields { oracleMappings: PublicKey; prices: Array<types.DatedPriceFields>; } export interface OraclePricesJSON { oracleMappings: string; prices: Array<types.DatedPriceJSON>; } export declare class OraclePrices { readonly oracleMappings: PublicKey; readonly prices: Array<types.DatedPrice>; static readonly discriminator: Buffer; static readonly layout: any; constructor(fields: OraclePricesFields); static fetch(c: Connection, address: PublicKey, programId?: PublicKey): Promise<OraclePrices | null>; static fetchMultiple(c: Connection, addresses: PublicKey[], programId?: PublicKey): Promise<Array<OraclePrices | null>>; static decode(data: Buffer): OraclePrices; toJSON(): OraclePricesJSON; static fromJSON(obj: OraclePricesJSON): OraclePrices; }