Skip to content

Commit

Permalink
fix: fix buf commit link (#13345)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt authored Sep 20, 2022
1 parent 14c0233 commit 79f277c
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 37 deletions.
2 changes: 1 addition & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ The `third_party/proto` folder that existed in [previous version](https://github

Instead, the SDK uses [`buf`](https://buf.build). Clients should have their own [`buf.yaml`](https://docs.buf.build/configuration/v1/buf-yaml) with `buf.build/cosmos/cosmos-sdk` as dependency, in order to avoid having to copy paste these files.

The protos can as well be downloaded using `buf export buf.build/cosmos/cosmos-sdk:$(curl -sS https://api.github.com/repos/cosmos/cosmos-sdk/commits/v0.46.0 | jq -r .sha) --output <some_folder>`.
The protos can as well be downloaded using `buf export buf.build/cosmos/cosmos-sdk:8cb30a2c4de74dc9bd8d260b1e75e176 --output <some_folder>`.

Cosmos message protobufs should be extended with `cosmos.msg.v1.signer`:

Expand Down
5 changes: 2 additions & 3 deletions client/v2/internal/buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ deps:
- remote: buf.build
owner: cosmos
repository: cosmos-sdk
commit: 233f8f38503f47ada7a7eca116b84303
commit: b7797ff7f3814399b0c5d52e1b8227ed
- remote: buf.build
owner: cosmos
repository: gogo-proto
commit: bee5511075b7499da6178d9e4aaa628b
commit: 6652e3443c3b4504bb3bf82e73a7e409
- remote: buf.build
owner: googleapis
repository: googleapis
branch: main
commit: 62f35d8aed1149c291d606d958a7ce32
10 changes: 9 additions & 1 deletion third_party/proto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

To generate the protos that were present in this folder run:

## v0.47.x+

```bash
buf export buf.build/cosmos/cosmos-sdk --output .
```

## v0.46.x

```bash
buf export buf.build/cosmos/cosmos-sdk:$(curl -sS https://api.github.com/repos/cosmos/cosmos-sdk/commits/<sdk_version_tag> | jq -r .sha) --output .
buf export buf.build/cosmos/cosmos-sdk:8cb30a2c4de74dc9bd8d260b1e75e176 --output .
```
28 changes: 14 additions & 14 deletions types/query/query.pb.go

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

10 changes: 8 additions & 2 deletions x/auth/types/query.pb.go

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

30 changes: 30 additions & 0 deletions x/bank/types/query.pb.go

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

35 changes: 19 additions & 16 deletions x/nft/tx.pb.go

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

Loading

0 comments on commit 79f277c

Please sign in to comment.