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" ] },