diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-08 23:01:59 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-14 22:47:02 +0800 |
commit | abd55411d4b79b42f48a19c0c90194c8d9f5b5b5 (patch) | |
tree | b1cefaac3ee3eb28b23ba35bc8cbc4ece111731a /packages/0x.js/src/types.ts | |
parent | cb596c1413938ce23901135f8235bb813cc6e784 (diff) | |
download | dexon-sol-tools-abd55411d4b79b42f48a19c0c90194c8d9f5b5b5.tar dexon-sol-tools-abd55411d4b79b42f48a19c0c90194c8d9f5b5b5.tar.gz dexon-sol-tools-abd55411d4b79b42f48a19c0c90194c8d9f5b5b5.tar.bz2 dexon-sol-tools-abd55411d4b79b42f48a19c0c90194c8d9f5b5b5.tar.lz dexon-sol-tools-abd55411d4b79b42f48a19c0c90194c8d9f5b5b5.tar.xz dexon-sol-tools-abd55411d4b79b42f48a19c0c90194c8d9f5b5b5.tar.zst dexon-sol-tools-abd55411d4b79b42f48a19c0c90194c8d9f5b5b5.zip |
Move shared types to types package
Diffstat (limited to 'packages/0x.js/src/types.ts')
-rw-r--r-- | packages/0x.js/src/types.ts | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/packages/0x.js/src/types.ts b/packages/0x.js/src/types.ts index 3586919cb..4f4314def 100644 --- a/packages/0x.js/src/types.ts +++ b/packages/0x.js/src/types.ts @@ -1,3 +1,4 @@ +import {TransactionReceipt} from '@0xproject/types'; import BigNumber from 'bignumber.js'; import * as Web3 from 'web3'; @@ -384,29 +385,4 @@ export interface OrderStateInvalid { export type OrderState = OrderStateValid|OrderStateInvalid; -export type OnOrderStateChangeCallback = (orderState: OrderState) => void; - -export interface TxData { - from?: string; - gas?: number; - gasPrice?: BigNumber; - nonce?: number; -} - -export interface TxDataPayable extends TxData { - value?: BigNumber; -} - -export interface TransactionReceipt { - blockHash: string; - blockNumber: number; - transactionHash: string; - transactionIndex: number; - from: string; - to: string; - status: null|0|1; - cumulativeGasUsed: number; - gasUsed: number; - contractAddress: string|null; - logs: Web3.LogEntry[]; -} // tslint:disable:max-file-line-count +export type OnOrderStateChangeCallback = (orderState: OrderState) => void; // tslint:disable:max-file-line-count |