Skip to content

Commit c39b5b9

Browse files
committed
Update OpenAPI specs
And update the MITHRIL_API_VERSION accordingly.
1 parent c8f9a2c commit c39b5b9

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

mithril-common/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ pub const SIGNER_EPOCH_RECORDING_OFFSET: i64 = 1;
4242
/// this is the same as the one in openapi.yml file.
4343
/// If you want to update this version to reflect changes in the protocol,
4444
/// please also update the entry in the openapi.yml
45-
pub const MITHRIL_API_VERSION: &str = "0.0.1";
45+
pub const MITHRIL_API_VERSION: &str = "0.1.0";

openapi.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
# `mithril-aggregator/src/http_server/mod.rs` file. If you plan to update it
55
# here to reflect changes in the API, please also update the constant in the
66
# Rust file.
7-
version: 0.0.1
7+
version: 0.1.0
88
title: Mithril Aggregator Server
99
description: |
1010
The REST API provided by a Mithril Aggregator Node in a Mithril network.
@@ -28,7 +28,8 @@ paths:
2828
summary: Get current epoch settings
2929
description: |
3030
Returns the information related to the current epoch:
31-
* protocol parameters for current epoch (to setup cryptography, allowing signers to register)
31+
* protocol parameters for current epoch
32+
* protocol parameters for next epoch (to setup cryptography, allowing signers to register)
3233
responses:
3334
"200":
3435
description: epoch settings found
@@ -238,17 +239,21 @@ components:
238239
required:
239240
- epoch
240241
- protocol
242+
- next_protocol
241243
properties:
242244
epoch:
243245
description: Cardano chain epoch number
244246
type: integer
245247
format: int64
246248
protocol:
247249
$ref: "#/components/schemas/ProtocolParameters"
250+
next_protocol:
251+
$ref: "#/components/schemas/ProtocolParameters"
248252
example:
249253
{
250254
"epoch": 329,
251-
"protocol": { "k": 857, "m": 6172, "phi_f": 0.2 }
255+
"protocol": { "k": 857, "m": 6172, "phi_f": 0.2 },
256+
"next_protocol": { "k": 2422, "m": 20973, "phi_f": 0.2 }
252257
}
253258
ProtocolParameters:
254259
description: Protocol cryptographic parameters

0 commit comments

Comments
 (0)