From 1e4fdcf615502478cbec8711bf6710e093c0c279 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 18 Dec 2017 15:35:23 +0100 Subject: Rename SubscriptionOpts to BlockRange --- packages/json-schemas/schemas/block_range_schema.ts | 20 ++++++++++++++++++++ .../json-schemas/schemas/subscription_opts_schema.ts | 20 -------------------- 2 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 packages/json-schemas/schemas/block_range_schema.ts delete mode 100644 packages/json-schemas/schemas/subscription_opts_schema.ts (limited to 'packages/json-schemas/schemas') 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', +}; diff --git a/packages/json-schemas/schemas/subscription_opts_schema.ts b/packages/json-schemas/schemas/subscription_opts_schema.ts deleted file mode 100644 index a476e6963..000000000 --- a/packages/json-schemas/schemas/subscription_opts_schema.ts +++ /dev/null @@ -1,20 +0,0 @@ -export const blockParamSchema = { - id: '/BlockParam', - oneOf: [ - { - type: 'number', - }, - { - enum: ['latest', 'earliest', 'pending'], - }, - ], -}; - -export const subscriptionOptsSchema = { - id: '/SubscriptionOpts', - properties: { - fromBlock: {$ref: '/BlockParam'}, - toBlock: {$ref: '/BlockParam'}, - }, - type: 'object', -}; -- cgit v1.2.3