Skip to content

Commit

Permalink
ci: buf registry (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak authored Oct 30, 2024
1 parent cbca526 commit 0ddcac8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 28 deletions.
1 change: 0 additions & 1 deletion packages/network/src/proto/topology/network/messages.proto
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;
}

0 comments on commit 0ddcac8

Please sign in to comment.