diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-06 21:36:07 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-06 21:36:07 +0800 |
commit | 8aa673aabe292e7d4684f7cc98ec6ef2ea55ca09 (patch) | |
tree | 355dfea06c3e9d1489dbcc91e4792aa506c06762 /src/types.ts | |
parent | 403ec236fffb0ed565e7c933d3608b554c007613 (diff) | |
download | dexon-0x-contracts-8aa673aabe292e7d4684f7cc98ec6ef2ea55ca09.tar dexon-0x-contracts-8aa673aabe292e7d4684f7cc98ec6ef2ea55ca09.tar.gz dexon-0x-contracts-8aa673aabe292e7d4684f7cc98ec6ef2ea55ca09.tar.bz2 dexon-0x-contracts-8aa673aabe292e7d4684f7cc98ec6ef2ea55ca09.tar.lz dexon-0x-contracts-8aa673aabe292e7d4684f7cc98ec6ef2ea55ca09.tar.xz dexon-0x-contracts-8aa673aabe292e7d4684f7cc98ec6ef2ea55ca09.tar.zst dexon-0x-contracts-8aa673aabe292e7d4684f7cc98ec6ef2ea55ca09.zip |
Add initial implementation with success test
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts index a02bd0252..f2214ba6b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -68,6 +68,12 @@ export interface ExchangeContract { estimateGas: (orderAddresses: OrderAddresses, orderValues: OrderValues, fillAmount: BigNumber.BigNumber, shouldCheckTransfer: boolean, v: number, r: string, s: string, txOpts: TxOpts) => number; }; + cancel: { + (orderAddresses: OrderAddresses, orderValues: OrderValues, cancelAmount: BigNumber.BigNumber, + txOpts: TxOpts): ContractResponse; + estimateGas: (orderAddresses: OrderAddresses, orderValues: OrderValues, cancelAmount: BigNumber.BigNumber, + txOpts: TxOpts) => number; + }; filled: { call: (orderHash: string) => BigNumber.BigNumber; }; |