Skip to content

Commit

Permalink
[nspcc-dev#172] netmap: Define NetworkConfig message
Browse files Browse the repository at this point in the history
Define `netmap.NetworkConfig` message which represents structure of
NeoFS network config stored in Netmap contract.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
  • Loading branch information
Leonard Lyubich committed Sep 15, 2021
1 parent ea9906c commit ad1ed0f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions netmap/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,20 @@ message NodeInfo {
State state = 4 [json_name = "state"];
}

// NeoFS network configuration
message NetworkConfig {
// Single configuration parameter.
message Parameter {
// Parameter key.
bytes key = 1 [json_name = "key"];

// Parameter value.
bytes value = 2 [json_name = "value"];
}
// List of parameter values.
repeated Parameter parameters = 1 [json_name = "parameters"];
}

// Information about NeoFS network
message NetworkInfo {
// Number of the current epoch in the NeoFS network.
Expand Down

0 comments on commit ad1ed0f

Please sign in to comment.