UNPKG

@paraswap/sdk

Version:
41 lines 1.35 kB
import type { ConstructFetchInput } from '../../types'; export type DeltaPriceParams = { /** @description Source Token Address. Not Native Token */ srcToken: string; /** @description Destination Token Address */ destToken: string; /** @description srcToken amount in wei */ amount: string; /** @description Source Token Decimals */ srcDecimals: number; /** @description Destination Token Decimals */ destDecimals: number; /** @description User's Wallet Address */ userAddress?: string; /** @description Partner string. */ partner?: string; }; export type DeltaPrice = { srcToken: string; destToken: string; srcAmount: string; destAmount: string; destAmountBeforeFee: string; gasCost: string; gasCostBeforeFee: string; gasCostUSD: string; gasCostUSDBeforeFee: string; srcUSD: string; destUSD: string; destUSDBeforeFee: string; partner: string; partnerFee: number; hmac: string; }; type GetDeltaPrice = (options: DeltaPriceParams, signal?: AbortSignal) => Promise<DeltaPrice>; export type GetDeltaPriceFunctions = { getDeltaPrice: GetDeltaPrice; }; export declare const constructGetDeltaPrice: ({ apiURL, chainId, fetcher, }: ConstructFetchInput) => GetDeltaPriceFunctions; export {}; //# sourceMappingURL=getDeltaPrice.d.ts.map