aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSergey Ukustov <sergey@ukstv.me>2017-07-17 04:52:12 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-10 18:24:34 +0800
commit217f84204e30e1d2bc33ee31047a1f612d8ce2d4 (patch)
tree9de2efd38f0f3d772924fb4b9ad8c564357404b3 /packages
parentfbbe0ec3db7d5216dbdb26efd7184229cf70b056 (diff)
downloaddexon-sol-tools-217f84204e30e1d2bc33ee31047a1f612d8ce2d4.tar.gz
dexon-sol-tools-217f84204e30e1d2bc33ee31047a1f612d8ce2d4.tar.zst
dexon-sol-tools-217f84204e30e1d2bc33ee31047a1f612d8ce2d4.zip
Add web3.sha3 method declaration
Diffstat (limited to 'packages')
-rw-r--r--packages/web3-typescript-typings/index.d.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts
index 7089556f4..01ee172b5 100644
--- a/packages/web3-typescript-typings/index.d.ts
+++ b/packages/web3-typescript-typings/index.d.ts
@@ -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;