MultiplexFeature and BatchFillNativeOrdersFeature (#140)
* WrappedFillFeature * Address internal feedback * create features/interfaces/ directory * Split NativeOrdersFeature into mixins * Rename mixins to use NativeOrders namespace * Add BatchFillNativeOrdersFeature * Rename WrapperFillFeature => MultiplexFeature and add natspec comments * Emit LiquidityProviderSwap event * post-rebase fixes * Multiplex mainnet fork tests * lint * Add tests for batch fill functions * Remove market functions * Addres PR feedback * Remove nested _batchFill calls from _multiHopFill * Add BatchFillIncompleteRevertError type * Use call{value: amount}() instead of transfer(amount) * Remove outdated comment * Update some comments * Add events * Address spot-check recommendations * Remove-top level events, add ExpiredRfqOrder event * Update changelog * Change ExpiredRfqOrder event * Update IZeroEx artifact and contract wrapper
This commit is contained in:
@@ -110,6 +110,20 @@ export class OnlyOrderMakerAllowed extends RevertError {
|
||||
}
|
||||
}
|
||||
|
||||
export class BatchFillIncompleteError extends RevertError {
|
||||
constructor(orderHash?: string, takerTokenFilledAmount?: Numberish, takerTokenFillAmount?: Numberish) {
|
||||
super(
|
||||
'BatchFillIncompleteError',
|
||||
'BatchFillIncompleteError(bytes32 orderHash, uint256 takerTokenFilledAmount, uint256 takerTokenFillAmount)',
|
||||
{
|
||||
orderHash,
|
||||
takerTokenFilledAmount,
|
||||
takerTokenFillAmount,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
const types = [
|
||||
ProtocolFeeRefundFailed,
|
||||
OrderNotFillableByOriginError,
|
||||
@@ -120,6 +134,7 @@ const types = [
|
||||
CancelSaltTooLowError,
|
||||
FillOrKillFailedError,
|
||||
OnlyOrderMakerAllowed,
|
||||
BatchFillIncompleteError,
|
||||
];
|
||||
|
||||
// Register the types we've defined.
|
||||
|
Reference in New Issue
Block a user