@robertprp/intents-sdk
Version:
Shogun Network Intent-based cross-chain swaps SDK
23 lines • 715 B
TypeScript
import { type OptimalRate } from '@paraswap/sdk';
import { type SupportedEvmChain } from '../../chains.js';
export type ParaswapQuoteRequestParams = {
srcToken: string;
destToken: string;
amount: bigint;
side: 'SELL' | 'BUY';
};
export type SwapEstimateResult = {
amountOut: bigint;
amountIn: bigint;
amountOutUsd: number;
amountInUsd: number;
quote: OptimalRate;
};
export declare class ParaswapQuoteProvider {
protected chainId: SupportedEvmChain;
constructor(chainId: SupportedEvmChain);
private getTokenDecimals;
private getQuote;
getSwapEstimation(params: ParaswapQuoteRequestParams): Promise<SwapEstimateResult>;
}
//# sourceMappingURL=paraswap.d.ts.map