import { AltOffering , AltRfqMakerAssetOfferings } from '@0x/asset-swapper' ; interface AltRfqAsset { address : string ; decimals : number ; type : string ; } interface AltRfqMarket { id : string ; base : AltRfqAsset ; quote : AltRfqAsset ; status : string ; } interface AltRfqMarketsResponse { items : AltRfqMarket [ ] ; } param altRfqMarketsResponse param altRfqUrl export function altMarketResponseToAltOfferings ( altRfqMarketsResponse , altRfqUrl ) { const offerings = altRfqMarketsResponse . items . map ( ( market ) => { return { id : market . id , baseAsset : market . base . address . toLowerCase ( ) , baseAssetDecimals : market . base . decimals , quoteAsset : market . quote . address . toLowerCase ( ) , quoteAssetDecimals : market . quote . decimals , } ; } ) ; return { [ altRfqUrl ] : offerings } ; }