From d7d22c36edfdeadda31d9fbc05c61c60ca1cbf6b Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Wed, 24 May 2017 17:34:09 +0200 Subject: Add toWei and getTransactionReceipt definitions --- packages/web3-typescript-typings/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages') diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts index 1d673a1c3..bcb5dc575 100644 --- a/packages/web3-typescript-typings/index.d.ts +++ b/packages/web3-typescript-typings/index.d.ts @@ -27,11 +27,13 @@ declare module 'web3' { filter(value: string|FilterObject): FilterResult; getAccounts(callback: (err: Error, value: any) => void): string[]; sendTransaction(txData: any, callback: (err: Error, value: any) => void): void; + getTransactionReceipt(txHash: string, callback: (err: Error, receipt: any) => void): void; }; public setProvider(provider: providers.Provider): void; public currentProvider(): any; public fromWei(amount: BigNumber.BigNumber, unit: string): BigNumber.BigNumber; + public toWei(amount: BigNumber.BigNumber, unit: string): BigNumber.BigNumber; public isAddress(address: string): boolean; } -- cgit