Skip to content

Commit 7dae922

Browse files
committed
CI: use buf
1 parent ad5abeb commit 7dae922

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

.github/workflows/lint.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ jobs:
1414
configDirectory: .
1515
srcDirectory: proto
1616

17+
- name: Install buf
18+
uses: bufbuild/buf-action@v1
19+
with:
20+
setup_only: true
21+
22+
- name: Buf lint
23+
run: buf lint --error-format github-actions

.protolint.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
lint:
2+
lint:

buf.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
version: v2
2+
modules:
3+
- path: proto
4+
name: buf.build/LayerTwo-Labs/cusf

proto/mainchain.proto proto/cusf/v1/mainchain/mainchain.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* CUSF mainchain node service */
22

33
syntax = "proto3";
4-
package cusf.mainchain;
4+
package cusf.v1.mainchain;
55

66
enum AddressType {
77
ADDRESS_TYPE_UNSPECIFIED = 0;

proto/sidechain.proto proto/cusf/v1/sidechain/sidechain.proto

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* CUSF sidechain node service */
22

33
syntax = "proto3";
4-
package cusf.sidechain;
4+
package cusf.v1.sidechain;
55

66
message SequenceId {
77
uint64 sequence_id = 1;
@@ -14,6 +14,9 @@ message BlockHeaderInfo {
1414
uint32 height = 4;
1515
}
1616

17+
message BlockInfo {
18+
}
19+
1720
service Sidechain {
1821
rpc GetMempoolTxs(GetMempoolTxsRequest) returns (GetMempoolTxsResponse);
1922
rpc GetUtxos(GetUtxosRequest) returns (GetUtxosResponse);
@@ -30,8 +33,7 @@ message GetMempoolTxsResponse {
3033

3134
message GetUtxosRequest {
3235
}
33-
message GetMempoolTxsResponse {
34-
SequenceId sequence_id = 1;
36+
message GetUtxosResponse {
3537
}
3638

3739
message SubmitTransactionRequest {

0 commit comments

Comments
 (0)