@xswap-link/xswap-common
Version:
JavaScript library for xSwap common components
21 lines (19 loc) • 690 B
text/typescript
import { BigNumberish } from "ethers";
import { TransactionRequest } from "@ethersproject/providers";
import { ContractCall } from "./ContractCall";
import { XSwapFees } from "./XSwapFees";
import { Protocol } from "./Protocol";
export type Route = {
originChainXSwapCalls: ContractCall[];
originProtocols: Protocol[][][];
destinationChainXSwapCalls: ContractCall[];
destinationProtocols: Protocol[][][];
originCrossChainTransferToken: string;
destinationCrossChainTransferToken: string;
amountToTransferCrossChain: BigNumberish;
estAmountOut: string;
minAmountOut: string;
estimatedGasDestination: number;
transaction: TransactionRequest;
xSwapFees: XSwapFees;
};