UNPKG

@hubbleprotocol/farms-sdk

Version:
54 lines (53 loc) 1.4 kB
import BN from "bn.js"; import * as types from "../types"; export interface DatedPriceFields { price: types.PriceFields; lastUpdatedSlot: BN; unixTimestamp: BN; reserved: Array<BN>; reserved2: Array<number>; index: number; } export interface DatedPriceJSON { price: types.PriceJSON; lastUpdatedSlot: string; unixTimestamp: string; reserved: Array<string>; reserved2: Array<number>; index: number; } export declare class DatedPrice { readonly price: types.Price; readonly lastUpdatedSlot: BN; readonly unixTimestamp: BN; readonly reserved: Array<BN>; readonly reserved2: Array<number>; readonly index: number; constructor(fields: DatedPriceFields); static layout(property?: string): any; static fromDecoded(obj: any): types.DatedPrice; static toEncodable(fields: DatedPriceFields): { price: { value: BN; exp: BN; }; lastUpdatedSlot: BN; unixTimestamp: BN; reserved: BN[]; reserved2: number[]; index: number; }; toJSON(): DatedPriceJSON; static fromJSON(obj: DatedPriceJSON): DatedPrice; toEncodable(): { price: { value: BN; exp: BN; }; lastUpdatedSlot: BN; unixTimestamp: BN; reserved: BN[]; reserved2: number[]; index: number; }; }