[#172] netmap: Define NetworkConfig message

Define `netmap.NetworkConfig` message which represents structure of
NeoFS network config stored in Netmap contract.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-09-15 11:23:44 +03:00 committed by Stanislav Bogatyrev
parent 2e23cb3888
commit e16866843b

View file

@ -228,6 +228,20 @@ message NodeInfo {
State state = 4 [json_name = "state"]; State state = 4 [json_name = "state"];
} }
// NeoFS network configuration
message NetworkConfig {
// Single configuration parameter.
message Parameter {
// Parameter key. UTF-8 encoded string.
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 // Information about NeoFS network
message NetworkInfo { message NetworkInfo {
// Number of the current epoch in the NeoFS network. // Number of the current epoch in the NeoFS network.