Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: buf registry #225

Merged
merged 13 commits into from
Oct 30, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package topology.network;
import "google/protobuf/struct.proto";
import "topology/object/object.proto";


message Message {
enum MessageType {
UPDATE = 0;
Expand Down
24 changes: 12 additions & 12 deletions packages/node/src/proto/topology/node/rpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
30 changes: 15 additions & 15 deletions packages/object/src/proto/topology/object/object.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}