Add ContractInstance type
This commit is contained in:
8
packages/web3-typescript-typings/index.d.ts
vendored
8
packages/web3-typescript-typings/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user