Skip to content

Commit

Permalink
use buf.build for nmt.proof
Browse files Browse the repository at this point in the history
  • Loading branch information
Eoous committed Oct 8, 2024
1 parent 7630f83 commit 72447cd
Show file tree
Hide file tree
Showing 7 changed files with 117 additions and 132 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ endif

proto-gen: check-proto-deps
@echo "Generating Protobuf files"
@go run github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION) generate --exclude-path proto/nmt
@go run github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION) generate
@mv ./proto/tendermint/abci/types.pb.go ./abci/types/
@cp ./proto/tendermint/rpc/grpc/types.pb.go ./rpc/grpc
.PHONY: proto-gen
Expand Down
5 changes: 5 additions & 0 deletions proto/buf.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Generated by buf. DO NOT EDIT.
version: v1
deps:
- remote: buf.build
owner: celestia
repository: nmt
commit: 686a5caececf476e8b8e26994f837778
digest: shake256:30dc63aaf2ba645c37e0d369029bdf3a8c97663eb1ef37548a62bfd48dd7904abd3ecd8ef7e92b3c3cae3eba3360ca73c81558c807ff03c1953a944c251c75e9
- remote: buf.build
owner: gogo
repository: protobuf
Expand Down
1 change: 1 addition & 0 deletions proto/buf.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: v1
deps:
- buf.build/gogo/protobuf
- buf.build/celestia/nmt:v0.22.2
breaking:
use:
- FILE
Expand Down
22 changes: 0 additions & 22 deletions proto/nmt/proof.proto

This file was deleted.

3 changes: 2 additions & 1 deletion proto/tendermint/store/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

204 changes: 102 additions & 102 deletions proto/tendermint/types/types.pb.go

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions proto/tendermint/types/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ option go_package = "github.com/cometbft/cometbft/proto/tendermint/types";

import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";
import "nmt/proof.proto";
import "proof.proto";
import "tendermint/crypto/proof.proto";
import "tendermint/version/types.proto";
import "tendermint/types/validator.proto";
Expand Down Expand Up @@ -212,11 +212,11 @@ message BlobTx {
// ShareProof is an NMT proof that a set of shares exist in a set of rows and a
// Merkle proof that those rows exist in a Merkle tree with a given data root.
message ShareProof {
repeated bytes data = 1;
repeated nmt.Proof share_proofs = 2;
bytes namespace_id = 3;
RowProof row_proof = 4;
uint32 namespace_version = 5;
repeated bytes data = 1;
repeated proof.pb.Proof share_proofs = 2;
bytes namespace_id = 3;
RowProof row_proof = 4;
uint32 namespace_version = 5;
}

// RowProof is a Merkle proof that a set of rows exist in a Merkle tree with a
Expand Down

0 comments on commit 72447cd

Please sign in to comment.