aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-06-03 02:46:27 +0800
committerFabio Berger <me@fabioberger.com>2017-06-03 02:46:27 +0800
commit78d7febede6724db16ffa96c9640cc4baa46ebe6 (patch)
tree2d512ea0b8454424289d003b457c2a36537653f8 /src
parentbef967f405519eb922f5918852250ad4af544705 (diff)
downloaddexon-sol-tools-78d7febede6724db16ffa96c9640cc4baa46ebe6.tar
dexon-sol-tools-78d7febede6724db16ffa96c9640cc4baa46ebe6.tar.gz
dexon-sol-tools-78d7febede6724db16ffa96c9640cc4baa46ebe6.tar.bz2
dexon-sol-tools-78d7febede6724db16ffa96c9640cc4baa46ebe6.tar.lz
dexon-sol-tools-78d7febede6724db16ffa96c9640cc4baa46ebe6.tar.xz
dexon-sol-tools-78d7febede6724db16ffa96c9640cc4baa46ebe6.tar.zst
dexon-sol-tools-78d7febede6724db16ffa96c9640cc4baa46ebe6.zip
Be more specific with blockParam valid values
Diffstat (limited to 'src')
-rw-r--r--src/types.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/types.ts b/src/types.ts
index b5430a783..602c63859 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -193,9 +193,11 @@ export interface IndexFilterValues {
[index: string]: any;
}
+export type BlockParam = 'latest'|'earliest'|'pending'|number;
+
export interface SubscriptionOpts {
- fromBlock: string|number;
- toBlock: string|number;
+ fromBlock: BlockParam;
+ toBlock: BlockParam;
}
export type DoneCallback = (err?: Error) => void;