aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-11 22:40:48 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-11 22:40:48 +0800
commit5036553dc94e8f6204c8bf218de9d29a13031c8d (patch)
tree83ff32259c3d79a4edded3ea9ebf63ea312df3ed /src
parent175fd44005f59003fc49e29b1e2dffaf862019d9 (diff)
downloaddexon-sol-tools-5036553dc94e8f6204c8bf218de9d29a13031c8d.tar
dexon-sol-tools-5036553dc94e8f6204c8bf218de9d29a13031c8d.tar.gz
dexon-sol-tools-5036553dc94e8f6204c8bf218de9d29a13031c8d.tar.bz2
dexon-sol-tools-5036553dc94e8f6204c8bf218de9d29a13031c8d.tar.lz
dexon-sol-tools-5036553dc94e8f6204c8bf218de9d29a13031c8d.tar.xz
dexon-sol-tools-5036553dc94e8f6204c8bf218de9d29a13031c8d.tar.zst
dexon-sol-tools-5036553dc94e8f6204c8bf218de9d29a13031c8d.zip
Duplicate truffle contracts types
Diffstat (limited to 'src')
-rw-r--r--src/contract_wrappers/contract_wrapper.ts2
-rw-r--r--src/types.ts8
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};
+}