diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-18 22:35:23 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-19 19:10:43 +0800 |
commit | 1e4fdcf615502478cbec8711bf6710e093c0c279 (patch) | |
tree | c31e798244f261bba623235baaf2873d7df3daf6 /packages/json-schemas/schemas/block_range_schema.ts | |
parent | c63f76dde7267c54328d2f12f401d94484e5a91a (diff) | |
download | dexon-0x-contracts-1e4fdcf615502478cbec8711bf6710e093c0c279.tar.gz dexon-0x-contracts-1e4fdcf615502478cbec8711bf6710e093c0c279.tar.zst dexon-0x-contracts-1e4fdcf615502478cbec8711bf6710e093c0c279.zip |
Rename SubscriptionOpts to BlockRange
Diffstat (limited to 'packages/json-schemas/schemas/block_range_schema.ts')
-rw-r--r-- | packages/json-schemas/schemas/block_range_schema.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/json-schemas/schemas/block_range_schema.ts b/packages/json-schemas/schemas/block_range_schema.ts new file mode 100644 index 000000000..b264cb66e --- /dev/null +++ b/packages/json-schemas/schemas/block_range_schema.ts @@ -0,0 +1,20 @@ +export const blockParamSchema = { + id: '/BlockParam', + oneOf: [ + { + type: 'number', + }, + { + enum: ['latest', 'earliest', 'pending'], + }, + ], +}; + +export const blockRangeSchema = { + id: '/BlockRange', + properties: { + fromBlock: {$ref: '/BlockParam'}, + toBlock: {$ref: '/BlockParam'}, + }, + type: 'object', +}; |