import { RfqOrder } from "@0x/protocol-utils" ; import BigNumber from "bignumber.js" ; export const createOrder = ( { fromAddress , toAddress , fromAmountWei , toAmountWei , currentUser , expiry , salt , txOrigin , pool } ) : RfqOrder => new RfqOrder ( { chainId : 1 , expiry , salt , maker : currentUser , makerToken : fromAddress , makerAmount : fromAmountWei , takerAmount : toAmountWei , takerToken : toAddress , txOrigin , pool } ) ;