diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-15 23:05:03 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-15 23:05:03 +0800 |
commit | d789aa24aa2c9f4e0d17a382fe9cb8d56ab27957 (patch) | |
tree | d93f79ec7909c1808ddfe7a145df41d2c104a553 /src/types.ts | |
parent | 424912040a7e68b6d07cd4ae40763d9bcd98de28 (diff) | |
download | dexon-sol-tools-d789aa24aa2c9f4e0d17a382fe9cb8d56ab27957.tar dexon-sol-tools-d789aa24aa2c9f4e0d17a382fe9cb8d56ab27957.tar.gz dexon-sol-tools-d789aa24aa2c9f4e0d17a382fe9cb8d56ab27957.tar.bz2 dexon-sol-tools-d789aa24aa2c9f4e0d17a382fe9cb8d56ab27957.tar.lz dexon-sol-tools-d789aa24aa2c9f4e0d17a382fe9cb8d56ab27957.tar.xz dexon-sol-tools-d789aa24aa2c9f4e0d17a382fe9cb8d56ab27957.tar.zst dexon-sol-tools-d789aa24aa2c9f4e0d17a382fe9cb8d56ab27957.zip |
Make ZeroEx constructor accept Web3Provider instead of Web3 instance
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts index 11d3182d8..8c9e9ad5d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,4 +1,5 @@ import * as _ from 'lodash'; +import * as Web3 from 'web3'; // Utility function to create a K:V from a list of strings // Adapted from: https://basarat.gitbooks.io/typescript/content/docs/types/literal-types.html @@ -280,3 +281,5 @@ export interface ContractEventEmitter { watch: (eventCallback: EventCallback) => void; stopWatchingAsync: () => Promise<void>; } + +export type Web3Provider = Web3.Provider; |