aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-08 17:17:04 +0800
committerGitHub <noreply@github.com>2017-06-08 17:17:04 +0800
commitc6645f9f4f470323086d9004cf603a68091d71a3 (patch)
tree5f9de5948df1b471c93d3445a3deda7ac75d935a /src/types.ts
parent834b28bfbe26e0331820d978b5be659b27423528 (diff)
parent32ba65ee265d6acc3fe8ff87a5a36df36cd9a3d5 (diff)
downloaddexon-0x-contracts-c6645f9f4f470323086d9004cf603a68091d71a3.tar
dexon-0x-contracts-c6645f9f4f470323086d9004cf603a68091d71a3.tar.gz
dexon-0x-contracts-c6645f9f4f470323086d9004cf603a68091d71a3.tar.bz2
dexon-0x-contracts-c6645f9f4f470323086d9004cf603a68091d71a3.tar.lz
dexon-0x-contracts-c6645f9f4f470323086d9004cf603a68091d71a3.tar.xz
dexon-0x-contracts-c6645f9f4f470323086d9004cf603a68091d71a3.tar.zst
dexon-0x-contracts-c6645f9f4f470323086d9004cf603a68091d71a3.zip
Merge pull request #43 from 0xProject/batchCancelAsync
Batch cancel order async
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 cc145dc2e..00ef17189 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;
@@ -145,6 +151,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;
@@ -222,3 +229,8 @@ export interface SubscriptionOpts {
}
export type DoneCallback = (err?: Error) => void;
+
+export interface OrderCancellationRequest {
+ order: Order|SignedOrder;
+ takerTokenCancelAmount: BigNumber.BigNumber;
+}