import { PoolError } from '../../error/pool.error'; export interface GetSwapDetailsRequest { amount: bigint; token0Id: string; token1Id: string; feeRate: bigint; zeroToOne: boolean; exactIn: boolean; } export type GetAmountForPoolResponse = | OkGetAmountForPoolResponse | ErrorGetAmountForPoolResponse; export interface OkGetAmountForPoolResponse { type: 'ok'; /** * The amount of input token to swap. */ amountIn: bigint; /** * The amount of output token expected. */ amountOut: bigint; /** * The network fees. */ networkFees: bigint; } export interface ErrorGetAmountForPoolResponse { type: 'error'; /** * The error that occurred. */ error: PoolError; } export interface Fees { /** * The fee paid to the makers. */ makers: bigint; /** * The fee paid to the network. */ network: bigint; }