@parifi/sdk
Version:
Parifi SDK with common utility functions
13 lines (10 loc) • 941 B
TypeScript
import { AxiosInstance } from 'axios';
import Decimal__default from 'decimal.js';
import { PythPriceResponse } from '../interfaces/subgraphTypes.js';
import { FormattedPythPrice } from '../interfaces/sdkTypes.js';
declare const getPythClient: (pythServiceEndpoint?: string, pythServiceUsername?: string, pythServicePassword?: string, isStable?: boolean) => Promise<AxiosInstance>;
declare const getVaaPriceUpdateData: (priceIds: string[], pythClient: AxiosInstance) => Promise<string[]>;
declare const formatPythPrice: (pythPrice: number, pythExponent: number) => Decimal__default;
declare const getLatestFormattedPrice: (priceIds: string[], pythClient: AxiosInstance) => Promise<FormattedPythPrice[]>;
declare const getLatestPricesFromPyth: (priceIds: string[], pythClient: AxiosInstance) => Promise<PythPriceResponse[]>;
export { formatPythPrice, getLatestFormattedPrice, getLatestPricesFromPyth, getPythClient, getVaaPriceUpdateData };