From 6f0019c71e531b3796e526531b369b462755bbab Mon Sep 17 00:00:00 2001 From: Lawrence Forman Date: Wed, 15 Jan 2020 18:09:42 -0500 Subject: [PATCH] `@0x/contract-wrappers`: Update `IERC20BridgeSampler` wrapper. --- .../i_erc20_bridge_sampler.ts | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/packages/contract-wrappers/src/generated-wrappers/i_erc20_bridge_sampler.ts b/packages/contract-wrappers/src/generated-wrappers/i_erc20_bridge_sampler.ts index 7f4e26ca33..4251fe7e08 100644 --- a/packages/contract-wrappers/src/generated-wrappers/i_erc20_bridge_sampler.ts +++ b/packages/contract-wrappers/src/generated-wrappers/i_erc20_bridge_sampler.ts @@ -852,8 +852,18 @@ export class IERC20BridgeSamplerContract extends BaseContract { }, }; } + /** + * Query batches of native orders and sample buy quotes on multiple DEXes at once. + * @param orders Batches of Native orders to query. + * @param orderSignatures Batches of Signatures for each respective order in + * `orders`. + * @param sources Address of each DEX. Passing in an unsupported DEX will + * throw. + * @param makerTokenAmounts Batches of Maker token sell amount for each sample. + * @returns ordersAndSamples How much taker asset can be filled by each order in `orders`. Taker amounts sold for each source at each maker token amount. First indexed by source index, then sample index + */ public queryBatchOrdersAndSampleBuys( - orders: Array>, + }>[], orderSignatures: string[][], sources: string[], makerTokenAmounts: BigNumber[][], @@ -906,8 +916,18 @@ export class IERC20BridgeSamplerContract extends BaseContract { }, }; } + /** + * Query batches of native orders and sample sell quotes on multiple DEXes at once. + * @param orders Batches of Native orders to query. + * @param orderSignatures Batches of Signatures for each respective order in + * `orders`. + * @param sources Address of each DEX. Passing in an unsupported DEX will + * throw. + * @param takerTokenAmounts Batches of Taker token sell amount for each sample. + * @returns ordersAndSamples How much taker asset can be filled by each order in `orders`. Maker amounts bought for each source at each taker token amount. First indexed by source index, then sample index. + */ public queryBatchOrdersAndSampleSells( - orders: Array>, + }>[], orderSignatures: string[][], sources: string[], takerTokenAmounts: BigNumber[][],