@xswap-link/xswap-common
Version:
JavaScript library for xSwap common components
25 lines (23 loc) • 666 B
text/typescript
import { CoinTypeAddress } from "../CoinTypeAddress";
import { CollectFees } from "../CollectFees";
import { ContractCall } from "../ContractCall";
export type GetRoutePayload = {
fromChain: string;
toChain: string;
fromToken: string;
toToken: string;
fromAmount: string;
fromAddress: string;
toAddress: string;
paymentToken: string;
slippage: number;
expressDelivery: boolean;
quoteOnly?: boolean;
enableExpress?: boolean;
customContractCalls?: ContractCall[];
sourceChainDexes?: string[];
destinationChainDexes?: string[];
receiveGasOnDestination?: boolean;
collectFees?: CollectFees;
fallbackAddresses?: CoinTypeAddress[];
};