diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-06 18:04:51 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-06 18:04:51 +0800 |
commit | 637183e4b214cc7a215ebf83d18c1a65263d8e7e (patch) | |
tree | 2736abe7bb0bde6e68757bf7a07b00d358c289f1 /src/types.ts | |
parent | 44e2929a4c3cec6666a2e3ad340028aff2884f69 (diff) | |
download | dexon-0x-contracts-637183e4b214cc7a215ebf83d18c1a65263d8e7e.tar dexon-0x-contracts-637183e4b214cc7a215ebf83d18c1a65263d8e7e.tar.gz dexon-0x-contracts-637183e4b214cc7a215ebf83d18c1a65263d8e7e.tar.bz2 dexon-0x-contracts-637183e4b214cc7a215ebf83d18c1a65263d8e7e.tar.lz dexon-0x-contracts-637183e4b214cc7a215ebf83d18c1a65263d8e7e.tar.xz dexon-0x-contracts-637183e4b214cc7a215ebf83d18c1a65263d8e7e.tar.zst dexon-0x-contracts-637183e4b214cc7a215ebf83d18c1a65263d8e7e.zip |
introduce BlockParamLiteral
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/types.ts b/src/types.ts index f0f37bfca..44094f442 100644 --- a/src/types.ts +++ b/src/types.ts @@ -345,7 +345,13 @@ export interface IndexedFilterValues { [index: string]: ContractEventArg; } -export type BlockParam = 'latest'|'earliest'|'pending'|number; +export enum BlockParamLiteral { + Latest = 'latest', + Earliest = 'earliest', + Pending = 'pending', +} + +export type BlockParam = BlockParamLiteral|number; export interface SubscriptionOpts { fromBlock: BlockParam; |