Add web3.sha3 method declaration

This commit is contained in:
Sergey Ukustov 2017-07-16 23:52:12 +03:00 committed by Leonid Logvinov
parent fbbe0ec3db
commit 217f84204e
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -35,6 +35,7 @@ declare module 'web3' {
public fromWei(amount: number|BigNumber.BigNumber, unit: string): BigNumber.BigNumber;
public toWei(amount: number|BigNumber.BigNumber, unit: string): BigNumber.BigNumber;
public isAddress(address: string): boolean;
public sha3(value: string, options?: Web3.Sha3Options): string;
}
namespace providers {
@ -99,6 +100,10 @@ declare module 'web3' {
}
interface Provider {}
interface Sha3Options {
encoding: string
}
}
/* tslint:disable */
export = Web3;