aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-06-08 17:26:46 +0800
committerFabio Berger <me@fabioberger.com>2017-06-08 17:26:46 +0800
commit6e97489c1af02ad584b01f62a3eadf676cc82b2b (patch)
treeea2b7f8b0ad3a81fd94064ef255b8e11c190ae05 /src/types.ts
parent8ab80914e01ce67020ee2c94e6390309ca1b850f (diff)
parentc6645f9f4f470323086d9004cf603a68091d71a3 (diff)
downloaddexon-0x-contracts-6e97489c1af02ad584b01f62a3eadf676cc82b2b.tar.gz
dexon-0x-contracts-6e97489c1af02ad584b01f62a3eadf676cc82b2b.tar.zst
dexon-0x-contracts-6e97489c1af02ad584b01f62a3eadf676cc82b2b.zip
Merge branch 'master' into batchFillOrKill
# Conflicts: # src/types.ts
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
index d19fb2d43..55bab6282 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -74,6 +74,12 @@ export interface ExchangeContract extends ContractInstance {
estimateGas: (orderAddresses: OrderAddresses, orderValues: OrderValues, cancelAmount: BigNumber.BigNumber,
txOpts?: TxOpts) => number;
};
+ batchCancel: {
+ (orderAddresses: OrderAddresses[], orderValues: OrderValues[], cancelAmount: BigNumber.BigNumber[],
+ txOpts?: TxOpts): ContractResponse;
+ estimateGas: (orderAddresses: OrderAddresses[], orderValues: OrderValues[], cancelAmount: BigNumber.BigNumber[],
+ txOpts?: TxOpts) => number;
+ };
fillOrKill: {
(orderAddresses: OrderAddresses, orderValues: OrderValues, fillAmount: BigNumber.BigNumber,
v: number, r: string, s: string, txOpts?: TxOpts): ContractResponse;
@@ -151,6 +157,7 @@ export const ExchangeContractErrs = strEnum([
'INSUFFICIENT_MAKER_FEE_BALANCE',
'INSUFFICIENT_MAKER_FEE_ALLOWANCE',
'TRANSACTION_SENDER_IS_NOT_FILL_ORDER_TAKER',
+ 'MULTIPLE_MAKERS_IN_SINGLE_CANCEL_BATCH',
'INSUFFICIENT_REMAINING_FILL_AMOUNT',
]);
export type ExchangeContractErrs = keyof typeof ExchangeContractErrs;
@@ -233,3 +240,8 @@ export interface OrderFillOrKillRequest {
signedOrder: SignedOrder;
fillTakerAmount: BigNumber.BigNumber;
}
+
+export interface OrderCancellationRequest {
+ order: Order|SignedOrder;
+ takerTokenCancelAmount: BigNumber.BigNumber;
+}