aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-07 18:16:07 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-07 18:16:07 +0800
commit9a2a79a947eeb9f839a381d1ee27cad872636438 (patch)
tree02a4d22401fb43c1d1e352583192871273b1edfa /src
parentcf76d1da5dc4831c0d32464fb6cc29d36fa93eea (diff)
downloaddexon-sol-tools-9a2a79a947eeb9f839a381d1ee27cad872636438.tar
dexon-sol-tools-9a2a79a947eeb9f839a381d1ee27cad872636438.tar.gz
dexon-sol-tools-9a2a79a947eeb9f839a381d1ee27cad872636438.tar.bz2
dexon-sol-tools-9a2a79a947eeb9f839a381d1ee27cad872636438.tar.lz
dexon-sol-tools-9a2a79a947eeb9f839a381d1ee27cad872636438.tar.xz
dexon-sol-tools-9a2a79a947eeb9f839a381d1ee27cad872636438.tar.zst
dexon-sol-tools-9a2a79a947eeb9f839a381d1ee27cad872636438.zip
Use ContractInstance from globals
Diffstat (limited to 'src')
-rw-r--r--src/globals.d.ts4
-rw-r--r--src/types.ts3
2 files changed, 3 insertions, 4 deletions
diff --git a/src/globals.d.ts b/src/globals.d.ts
index 164fc2386..567ba016d 100644
--- a/src/globals.d.ts
+++ b/src/globals.d.ts
@@ -47,7 +47,9 @@ declare module 'ethereumjs-util' {
}
// truffle-contract declarations
-declare interface ContractInstance {}
+declare interface ContractInstance {
+ address: string;
+}
declare interface ContractFactory {
setProvider: (providerObj: any) => void;
deployed: () => ContractInstance;
diff --git a/src/types.ts b/src/types.ts
index aa699110b..5407b0121 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -44,9 +44,6 @@ export interface ContractEventObj {
}
export type CreateContractEvent = (indexFilterValues: IndexFilterValues,
subscriptionOpts: SubscriptionOpts) => ContractEventObj;
-export interface ContractInstance {
- address: string;
-}
export interface ExchangeContract extends ContractInstance {
isValidSignature: {
call: (signerAddressHex: string, dataHex: string, v: number, r: string, s: string,