aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-24 23:18:10 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-10 18:24:32 +0800
commit98e9c3b800c5a5ce00db1385e8870d1d1bc37c99 (patch)
treea900d2327ed62860dc7448167542dbc50ecc406b
parenta7f1137db856aeb9a0d68275088d6141f15d03b0 (diff)
downloaddexon-sol-tools-98e9c3b800c5a5ce00db1385e8870d1d1bc37c99.tar
dexon-sol-tools-98e9c3b800c5a5ce00db1385e8870d1d1bc37c99.tar.gz
dexon-sol-tools-98e9c3b800c5a5ce00db1385e8870d1d1bc37c99.tar.bz2
dexon-sol-tools-98e9c3b800c5a5ce00db1385e8870d1d1bc37c99.tar.lz
dexon-sol-tools-98e9c3b800c5a5ce00db1385e8870d1d1bc37c99.tar.xz
dexon-sol-tools-98e9c3b800c5a5ce00db1385e8870d1d1bc37c99.tar.zst
dexon-sol-tools-98e9c3b800c5a5ce00db1385e8870d1d1bc37c99.zip
Add getBlockNumber definition
-rw-r--r--packages/web3-typescript-typings/index.d.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts
index ccc2c2919..1d673a1c3 100644
--- a/packages/web3-typescript-typings/index.d.ts
+++ b/packages/web3-typescript-typings/index.d.ts
@@ -18,6 +18,7 @@ declare module 'web3' {
}
sign(address: string, message: string, callback: (err: Error, signData: string) => void): string;
getBlock(blockHash: string, callback: (err: Error, blockObj: any) => void): BigNumber.BigNumber;
+ getBlockNumber(callback: (err: Error, blockNumber: number) => void): void;
contract(abi: AbiDefinition[]): Contract;
getBalance(addressHexString: string,
callback?: (err: any, result: BigNumber.BigNumber) => void): BigNumber.BigNumber;