@0x/contract-wrappers
: Update IERC20BridgeSampler
wrapper.
This commit is contained in:
parent
1a04a18245
commit
6f0019c71e
@ -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(
|
public queryBatchOrdersAndSampleBuys(
|
||||||
orders: Array<Array<{
|
orders: Array<{
|
||||||
makerAddress: string;
|
makerAddress: string;
|
||||||
takerAddress: string;
|
takerAddress: string;
|
||||||
feeRecipientAddress: string;
|
feeRecipientAddress: string;
|
||||||
@ -868,7 +878,7 @@ export class IERC20BridgeSamplerContract extends BaseContract {
|
|||||||
takerAssetData: string;
|
takerAssetData: string;
|
||||||
makerFeeAssetData: string;
|
makerFeeAssetData: string;
|
||||||
takerFeeAssetData: string;
|
takerFeeAssetData: string;
|
||||||
}>>,
|
}>[],
|
||||||
orderSignatures: string[][],
|
orderSignatures: string[][],
|
||||||
sources: string[],
|
sources: string[],
|
||||||
makerTokenAmounts: BigNumber[][],
|
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(
|
public queryBatchOrdersAndSampleSells(
|
||||||
orders: Array<Array<{
|
orders: Array<{
|
||||||
makerAddress: string;
|
makerAddress: string;
|
||||||
takerAddress: string;
|
takerAddress: string;
|
||||||
feeRecipientAddress: string;
|
feeRecipientAddress: string;
|
||||||
@ -922,7 +942,7 @@ export class IERC20BridgeSamplerContract extends BaseContract {
|
|||||||
takerAssetData: string;
|
takerAssetData: string;
|
||||||
makerFeeAssetData: string;
|
makerFeeAssetData: string;
|
||||||
takerFeeAssetData: string;
|
takerFeeAssetData: string;
|
||||||
}>>,
|
}>[],
|
||||||
orderSignatures: string[][],
|
orderSignatures: string[][],
|
||||||
sources: string[],
|
sources: string[],
|
||||||
takerTokenAmounts: BigNumber[][],
|
takerTokenAmounts: BigNumber[][],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user