@dzapio/sdk
Version:
A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.
17 lines (16 loc) • 593 B
TypeScript
import { ChainData } from 'src/types';
import { PriceProvider } from './types/IPriceProvider';
export declare class PriceService {
private providers;
constructor();
private initailizeProviders;
getPrices({ chainId, tokenAddresses, chainConfig, allowedSources, notAllowSources, }: {
chainId: number;
tokenAddresses: string[];
chainConfig: ChainData | null;
allowedSources?: PriceProvider[];
notAllowSources?: PriceProvider[];
}): Promise<Record<string, string | null>>;
private getValidProviders;
private updateTokensPrice;
}