Skip to content

Commit bd5d1af

Browse files
committed
feature(common, openapi): deprecate signer_registration_protocol_parameters and cardano_transactions_signing_config for EpochSettingsMessage
1 parent e772b15 commit bd5d1af

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

mithril-common/src/messages/epoch_settings.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub struct EpochSettingsMessage {
99
pub epoch: Epoch,
1010

1111
/// Signer Registration Protocol parameters
12+
#[deprecated]
1213
#[serde(rename = "signer_registration_protocol")]
1314
pub signer_registration_protocol_parameters: ProtocolParameters,
1415

@@ -19,6 +20,7 @@ pub struct EpochSettingsMessage {
1920
pub next_signers: Vec<SignerMessagePart>,
2021

2122
/// Cardano transactions signing configuration for the current epoch
23+
#[deprecated]
2224
#[serde(skip_serializing_if = "Option::is_none")]
2325
pub cardano_transactions_signing_config: Option<CardanoTransactionsSigningConfig>,
2426
}

openapi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,10 @@ paths:
8383
summary: Get current epoch settings
8484
description: |
8585
Returns the information related to the current epoch:
86-
* protocol parameters for current epoch
87-
* protocol parameters for next epoch (to setup cryptography, allowing signers to register)
86+
* (deprecated) protocol parameters for next epoch (to setup cryptography, allowing signers to register)
8887
* signers for current epoch
8988
* signers for next epoch
90-
* cardano transactions signing configuration for current epoch
91-
* cardano transactions signing configuration for next epoch
89+
* (deprecated) cardano transactions signing configuration for current epoch
9290
responses:
9391
"200":
9492
description: epoch settings found
@@ -998,6 +996,7 @@ components:
998996
$ref: "#/components/schemas/Epoch"
999997
signer_registration_protocol:
1000998
$ref: "#/components/schemas/ProtocolParameters"
999+
deprecated: true
10011000
current_signers:
10021001
type: array
10031002
items:
@@ -1008,6 +1007,7 @@ components:
10081007
$ref: "#/components/schemas/Signer"
10091008
cardano_transactions_signing_config:
10101009
$ref: "#/components/schemas/CardanoTransactionsSigningConfig"
1010+
deprecated: true
10111011
examples:
10121012
- {
10131013
"epoch": 329,

0 commit comments

Comments
 (0)