From 5036553dc94e8f6204c8bf218de9d29a13031c8d Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Sun, 11 Jun 2017 16:40:48 +0200 Subject: Duplicate truffle contracts types --- src/contract_wrappers/contract_wrapper.ts | 2 +- src/types.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src') 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; + +export interface ContractInstance { + address: string; +} + +export interface Artifact { + networks: {[networkId: number]: any}; +} -- cgit