From 162f1d94dcb23858fecbe14e381634287ba032f5 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 4 Sep 2017 14:25:23 +0200 Subject: Add ContractInstance type --- packages/web3-typescript-typings/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts index 4841e093f..d50bd6b93 100644 --- a/packages/web3-typescript-typings/index.d.ts +++ b/packages/web3-typescript-typings/index.d.ts @@ -84,7 +84,13 @@ declare module 'web3' { type: string; } - interface Contract { + interface ContractInstance { + address: string; + abi: Web3.ContractAbi; + [name: string]: any; + } + + interface Contract { at(address: string): A; } -- cgit v1.2.3