@@ -10,29 +10,31 @@ using ProtoApi = com::hedera::hapi::node::addressbook::RegisteredServiceEndpoint
1010
1111// -----
1212const std::unordered_map<ProtoApi, BlockNodeApi> gProtobufBlockNodeApiToBlockNodeApi = {
13- {ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_OTHER, BlockNodeApi::OTHER },
14- {ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_STATUS, BlockNodeApi::STATUS },
15- {ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_PUBLISH, BlockNodeApi::PUBLISH },
16- {ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_SUBSCRIBE_STREAM, BlockNodeApi::SUBSCRIBE_STREAM},
17- {ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_STATE_PROOF, BlockNodeApi::STATE_PROOF },
13+ {ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_OTHER, BlockNodeApi::OTHER },
14+ { ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_STATUS, BlockNodeApi::STATUS },
15+ { ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_PUBLISH, BlockNodeApi::PUBLISH },
16+ { ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_SUBSCRIBE_STREAM,
17+ BlockNodeApi::SUBSCRIBE_STREAM },
18+ { ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_STATE_PROOF, BlockNodeApi::STATE_PROOF},
1819};
1920
2021// -----
2122const std::unordered_map<BlockNodeApi, ProtoApi> gBlockNodeApiToProtobufBlockNodeApi = {
22- {BlockNodeApi::OTHER, ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_OTHER },
23- {BlockNodeApi::STATUS, ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_STATUS },
24- {BlockNodeApi::PUBLISH, ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_PUBLISH },
25- {BlockNodeApi::SUBSCRIBE_STREAM, ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_SUBSCRIBE_STREAM},
26- {BlockNodeApi::STATE_PROOF, ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_STATE_PROOF },
23+ {BlockNodeApi::OTHER, ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_OTHER },
24+ { BlockNodeApi::STATUS, ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_STATUS },
25+ { BlockNodeApi::PUBLISH, ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_PUBLISH },
26+ { BlockNodeApi::SUBSCRIBE_STREAM,
27+ ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_SUBSCRIBE_STREAM },
28+ { BlockNodeApi::STATE_PROOF, ProtoApi::RegisteredServiceEndpoint_BlockNodeEndpoint_BlockNodeApi_STATE_PROOF},
2729};
2830
2931// -----
3032const std::unordered_map<BlockNodeApi, const char *> gBlockNodeApiToString = {
31- {BlockNodeApi::OTHER, " OTHER" },
32- {BlockNodeApi::STATUS, " STATUS" },
33- {BlockNodeApi::PUBLISH, " PUBLISH" },
34- {BlockNodeApi::SUBSCRIBE_STREAM, " SUBSCRIBE_STREAM" },
35- {BlockNodeApi::STATE_PROOF, " STATE_PROOF" },
33+ {BlockNodeApi::OTHER, " OTHER" },
34+ { BlockNodeApi::STATUS, " STATUS" },
35+ { BlockNodeApi::PUBLISH, " PUBLISH" },
36+ { BlockNodeApi::SUBSCRIBE_STREAM, " SUBSCRIBE_STREAM" },
37+ { BlockNodeApi::STATE_PROOF, " STATE_PROOF" },
3638};
3739
3840} // namespace Hiero
0 commit comments