diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-11 22:40:48 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-11 22:40:48 +0800 |
commit | 5036553dc94e8f6204c8bf218de9d29a13031c8d (patch) | |
tree | 83ff32259c3d79a4edded3ea9ebf63ea312df3ed /src | |
parent | 175fd44005f59003fc49e29b1e2dffaf862019d9 (diff) | |
download | dexon-0x-contracts-5036553dc94e8f6204c8bf218de9d29a13031c8d.tar.gz dexon-0x-contracts-5036553dc94e8f6204c8bf218de9d29a13031c8d.tar.zst dexon-0x-contracts-5036553dc94e8f6204c8bf218de9d29a13031c8d.zip |
Duplicate truffle contracts types
Diffstat (limited to 'src')
-rw-r--r-- | src/contract_wrappers/contract_wrapper.ts | 2 | ||||
-rw-r--r-- | src/types.ts | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/contract_wrappers/contract_wrapper.ts b/src/contract_wrappers/contract_wrapper.ts index b9426849a..f9c1bc1cf 100644 --- a/src/contract_wrappers/contract_wrapper.ts +++ b/src/contract_wrappers/contract_wrapper.ts @@ -1,7 +1,7 @@ import * as _ from 'lodash'; import contract = require('truffle-contract'); import {Web3Wrapper} from '../web3_wrapper'; -import {ZeroExError} from '../types'; +import {ZeroExError, Artifact, ContractInstance} from '../types'; import {utils} from '../utils/utils'; export class ContractWrapper { diff --git a/src/types.ts b/src/types.ts index 4b9250654..1b70d950b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -267,3 +267,11 @@ export interface OrderFillRequest { } export type AsyncMethod = (...args: any[]) => Promise<any>; + +export interface ContractInstance { + address: string; +} + +export interface Artifact { + networks: {[networkId: number]: any}; +} |