Make ZeroEx constructor accept Web3Provider instead of Web3 instance

This commit is contained in:
Leonid Logvinov
2017-06-15 17:05:03 +02:00
parent 424912040a
commit d789aa24aa
11 changed files with 27 additions and 24 deletions

View File

@@ -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;