From 0ddcac8ffab40523a75afcf02c3d94997a2f148e Mon Sep 17 00:00:00 2001 From: Oak Date: Wed, 30 Oct 2024 12:51:30 +0000 Subject: [PATCH] ci: buf registry (#225) --- .../src/proto/topology/network/messages.proto | 1 - .../node/src/proto/topology/node/rpc.proto | 24 +++++++-------- .../src/proto/topology/object/object.proto | 30 +++++++++---------- 3 files changed, 27 insertions(+), 28 deletions(-) diff --git a/packages/network/src/proto/topology/network/messages.proto b/packages/network/src/proto/topology/network/messages.proto index 521b436a..de339256 100644 --- a/packages/network/src/proto/topology/network/messages.proto +++ b/packages/network/src/proto/topology/network/messages.proto @@ -4,7 +4,6 @@ package topology.network; import "google/protobuf/struct.proto"; import "topology/object/object.proto"; - message Message { enum MessageType { UPDATE = 0; diff --git a/packages/node/src/proto/topology/node/rpc.proto b/packages/node/src/proto/topology/node/rpc.proto index 65f70a67..b4dfa92c 100644 --- a/packages/node/src/proto/topology/node/rpc.proto +++ b/packages/node/src/proto/topology/node/rpc.proto @@ -2,34 +2,34 @@ syntax = "proto3"; package topology.node; service TopologyRpc { - rpc subscribeCro (SubscribeCroRequest ) returns (SubscribeCroResponse ); - rpc unsubscribeCro (UnsubscribeCroRequest ) returns (UnsubscribeCroResponse ); - rpc getCroHashGraph (GetCroHashGraphRequest ) returns (GetCroHashGraphResponse ); + rpc subscribeCro(SubscribeCroRequest) returns (SubscribeCroResponse); + rpc unsubscribeCro(UnsubscribeCroRequest) returns (UnsubscribeCroResponse); + rpc getCroHashGraph(GetCroHashGraphRequest) returns (GetCroHashGraphResponse); } message SubscribeCroRequest { - string cro_id = 1; + string cro_id = 1; } message SubscribeCroResponse { - // can return error codes if different than 0 - int32 return_code = 1; + // can return error codes if different than 0 + int32 return_code = 1; } message UnsubscribeCroRequest { - string cro_id = 1; + string cro_id = 1; } message UnsubscribeCroResponse { - // can return error codes if different than 0 - int32 return_code = 1; + // can return error codes if different than 0 + int32 return_code = 1; } message GetCroHashGraphRequest { - string cro_id = 1; + string cro_id = 1; } message GetCroHashGraphResponse { - // linearized vertices hashes - repeated string vertices_hashes = 1; + // linearized vertices hashes + repeated string vertices_hashes = 1; } diff --git a/packages/object/src/proto/topology/object/object.proto b/packages/object/src/proto/topology/object/object.proto index 0f561065..db9d6c2b 100644 --- a/packages/object/src/proto/topology/object/object.proto +++ b/packages/object/src/proto/topology/object/object.proto @@ -2,25 +2,25 @@ syntax = "proto3"; package topology.object; -option go_package = "ts-topology/packages/object"; - import "google/protobuf/struct.proto"; +option go_package = "ts-topology/packages/object"; + // Supposed to be the RIBLT stuff message Vertex { - message Operation { - string type = 1; - google.protobuf.Value value = 2; - } - string hash = 1; - string nodeId = 2; - Operation operation = 3; - repeated string dependencies = 4; -}; + message Operation { + string type = 1; + google.protobuf.Value value = 2; + } + string hash = 1; + string nodeId = 2; + Operation operation = 3; + repeated string dependencies = 4; +} message TopologyObjectBase { - string id = 1; - optional string abi = 2; - optional bytes bytecode = 3; - repeated Vertex vertices = 4; + string id = 1; + optional string abi = 2; + optional bytes bytecode = 3; + repeated Vertex vertices = 4; }