aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-24 05:36:46 +0800
committerFabio Berger <me@fabioberger.com>2017-11-24 05:36:46 +0800
commitab78c54d6a6e8592c43b779b651cc7203de2e66e (patch)
treee552e3845ce02b2429ef9385b060f664cdfcc427 /packages/0x.js/src
parentcee0d2706f29561bfa85603721ae0c800d2a80ca (diff)
downloaddexon-0x-contracts-ab78c54d6a6e8592c43b779b651cc7203de2e66e.tar.gz
dexon-0x-contracts-ab78c54d6a6e8592c43b779b651cc7203de2e66e.tar.zst
dexon-0x-contracts-ab78c54d6a6e8592c43b779b651cc7203de2e66e.zip
Add comment about BlockParamLiteral explaining the omission of Earliest
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/types.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/0x.js/src/types.ts b/packages/0x.js/src/types.ts
index 7d85a54ca..143e2b6b2 100644
--- a/packages/0x.js/src/types.ts
+++ b/packages/0x.js/src/types.ts
@@ -351,6 +351,9 @@ export interface IndexedFilterValues {
[index: string]: ContractEventArg;
}
+// Earliest is omitted by design. It is simply an alias for the `0` constant and
+// is thus not very helpful. Moreover, this type is used in places that only accept
+// `latest` or `pending`.
export enum BlockParamLiteral {
Latest = 'latest',
Pending = 'pending',