From 16f7ac9998bb6be6fe7e76e19240604f3f732b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Fri, 5 Jan 2024 10:36:31 +0000 Subject: [PATCH] schema --- .../coconut-dkg/schema/nym-coconut-dkg.json | 24 +++++++++++++++++-- contracts/coconut-dkg/schema/raw/execute.json | 13 ++++++++++ .../response_to_get_current_epoch_state.json | 11 +++++++-- 3 files changed, 44 insertions(+), 4 deletions(-) diff --git a/contracts/coconut-dkg/schema/nym-coconut-dkg.json b/contracts/coconut-dkg/schema/nym-coconut-dkg.json index aa297f3bf2..a4f88ba5fa 100644 --- a/contracts/coconut-dkg/schema/nym-coconut-dkg.json +++ b/contracts/coconut-dkg/schema/nym-coconut-dkg.json @@ -91,6 +91,19 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ExecuteMsg", "oneOf": [ + { + "type": "object", + "required": [ + "initiate_dkg" + ], + "properties": { + "initiate_dkg": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "type": "object", "required": [ @@ -660,7 +673,6 @@ "type": "object", "required": [ "epoch_id", - "finish_timestamp", "state", "time_configuration" ], @@ -671,7 +683,14 @@ "minimum": 0.0 }, "finish_timestamp": { - "$ref": "#/definitions/Timestamp" + "anyOf": [ + { + "$ref": "#/definitions/Timestamp" + }, + { + "type": "null" + } + ] }, "state": { "$ref": "#/definitions/EpochState" @@ -687,6 +706,7 @@ { "type": "string", "enum": [ + "waiting_initialisation", "in_progress" ] }, diff --git a/contracts/coconut-dkg/schema/raw/execute.json b/contracts/coconut-dkg/schema/raw/execute.json index 9b22dcba2c..fb2dfb02bd 100644 --- a/contracts/coconut-dkg/schema/raw/execute.json +++ b/contracts/coconut-dkg/schema/raw/execute.json @@ -2,6 +2,19 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ExecuteMsg", "oneOf": [ + { + "type": "object", + "required": [ + "initiate_dkg" + ], + "properties": { + "initiate_dkg": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "type": "object", "required": [ diff --git a/contracts/coconut-dkg/schema/raw/response_to_get_current_epoch_state.json b/contracts/coconut-dkg/schema/raw/response_to_get_current_epoch_state.json index 8af981b9db..3f4a9df103 100644 --- a/contracts/coconut-dkg/schema/raw/response_to_get_current_epoch_state.json +++ b/contracts/coconut-dkg/schema/raw/response_to_get_current_epoch_state.json @@ -4,7 +4,6 @@ "type": "object", "required": [ "epoch_id", - "finish_timestamp", "state", "time_configuration" ], @@ -15,7 +14,14 @@ "minimum": 0.0 }, "finish_timestamp": { - "$ref": "#/definitions/Timestamp" + "anyOf": [ + { + "$ref": "#/definitions/Timestamp" + }, + { + "type": "null" + } + ] }, "state": { "$ref": "#/definitions/EpochState" @@ -31,6 +37,7 @@ { "type": "string", "enum": [ + "waiting_initialisation", "in_progress" ] },