diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-24 23:34:09 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-10 18:24:32 +0800 |
commit | d7d22c36edfdeadda31d9fbc05c61c60ca1cbf6b (patch) | |
tree | fff51fd917401b9d706418fc92dc96b76dec4c6a | |
parent | 36bf91f920ed659293974984a24d21997fd6d0ec (diff) | |
download | dexon-sol-tools-d7d22c36edfdeadda31d9fbc05c61c60ca1cbf6b.tar dexon-sol-tools-d7d22c36edfdeadda31d9fbc05c61c60ca1cbf6b.tar.gz dexon-sol-tools-d7d22c36edfdeadda31d9fbc05c61c60ca1cbf6b.tar.bz2 dexon-sol-tools-d7d22c36edfdeadda31d9fbc05c61c60ca1cbf6b.tar.lz dexon-sol-tools-d7d22c36edfdeadda31d9fbc05c61c60ca1cbf6b.tar.xz dexon-sol-tools-d7d22c36edfdeadda31d9fbc05c61c60ca1cbf6b.tar.zst dexon-sol-tools-d7d22c36edfdeadda31d9fbc05c61c60ca1cbf6b.zip |
Add toWei and getTransactionReceipt definitions
-rw-r--r-- | packages/web3-typescript-typings/index.d.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |