forked from sei-protocol/sei-chain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuf.gen.yaml
More file actions
44 lines (43 loc) · 1.8 KB
/
buf.gen.yaml
File metadata and controls
44 lines (43 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: v2
inputs:
- directory: proto
- directory: sei-cosmos/proto
- directory: sei-ibc-go/proto
- directory: sei-tendermint/proto
- directory: sei-wasmd/proto
plugins:
- local:
- ./build/proto/gocosmos/protoc-gen-gocosmos
opt:
- plugins=interfacetype+grpc
- Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types
- Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types
- Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types
- Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types
- Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types
out: ./build/proto/gocosmos
- local:
# The version used is consistent with the grp-gateway version in go.mod.
- go
- run
- github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v1.16.0
out: ./build/proto/gocosmos
opt:
- logtostderr=true
- allow_colon_final_segments=true
# Note that buf v2 does not support using generator per input directory.
# As a workaround, we generate all the code in a separate output directory.
# Then we copy the generated code to the desired location for tendermint only.
# This is because tendermint uses gogofaster while cosmos-sdk and wasmd use gocosmos
# (a fork of gogo/protobuf maintained by cosmos).
# In the future we should consider using a single generator for all of them.
- local:
# The version used is consistent with the gogofaster version used by tendermint.
- go
- run
- github.com/gogo/protobuf/protoc-gen-gogofaster@v1.3.2
out: ./build/proto/gogofaster
opt:
- Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types
- Mgoogle/protobuf/duration.proto=github.com/golang/protobuf/ptypes/duration
- plugins=grpc