From e16866843bb9ce52f85c7d9a23fc22f5750e1c76 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 15 Sep 2021 11:23:44 +0300 Subject: [PATCH] [#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 --- netmap/types.proto | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/netmap/types.proto b/netmap/types.proto index 2f86421..900b835 100644 --- a/netmap/types.proto +++ b/netmap/types.proto @@ -228,6 +228,20 @@ message NodeInfo { 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 message NetworkInfo { // Number of the current epoch in the NeoFS network.