diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-04 20:25:23 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-10 18:24:35 +0800 |
commit | 162f1d94dcb23858fecbe14e381634287ba032f5 (patch) | |
tree | 78c2036765a452802c1a73a42d354dd976fa7b5d | |
parent | a76bce1f3295c79de08536939ff245622fc65384 (diff) | |
download | dexon-sol-tools-162f1d94dcb23858fecbe14e381634287ba032f5.tar dexon-sol-tools-162f1d94dcb23858fecbe14e381634287ba032f5.tar.gz dexon-sol-tools-162f1d94dcb23858fecbe14e381634287ba032f5.tar.bz2 dexon-sol-tools-162f1d94dcb23858fecbe14e381634287ba032f5.tar.lz dexon-sol-tools-162f1d94dcb23858fecbe14e381634287ba032f5.tar.xz dexon-sol-tools-162f1d94dcb23858fecbe14e381634287ba032f5.tar.zst dexon-sol-tools-162f1d94dcb23858fecbe14e381634287ba032f5.zip |
Add ContractInstance type
-rw-r--r-- | packages/web3-typescript-typings/index.d.ts | 8 |
1 files changed, 7 insertions, 1 deletions
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<A> { + interface ContractInstance { + address: string; + abi: Web3.ContractAbi; + [name: string]: any; + } + + interface Contract<A extends ContractInstance> { at(address: string): A; } |