Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: buf proto generation #917

Merged
merged 5 commits into from
Jul 31, 2022
Merged

feat: buf proto generation #917

merged 5 commits into from
Jul 31, 2022

Conversation

aljo242
Copy link
Contributor

@aljo242 aljo242 commented Jul 31, 2022

What does this PR does?

Adds buf tooling and proto targets. This brings our codebase in line with the Cosmos-SDK and their proto compilation model.

I know we previously wanted to have no scripts in the repo, but this is the only way to get proto compilation working until ignite is updated. The work done in this PR can also serve as a guide for how to update ignite's proto compilation steps.

Either way, I think we should keep the buf tools as they can be pretty helpful.

Pulling this into our v0.46.0 branch because that makes the most sense.

Most of the modified files are just formatted .proto file and regenerated .pb.go files.

@aljo242 aljo242 changed the title Feat/buf proto gen feat: buf proto generation Jul 31, 2022
@codecov
Copy link

codecov bot commented Jul 31, 2022

Codecov Report

Merging #917 (9cc3317) into feat/v0.46.0 (6bff668) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##           feat/v0.46.0     #917   +/-   ##
=============================================
  Coverage         10.56%   10.56%           
=============================================
  Files               327      327           
  Lines             75202    75202           
=============================================
+ Hits               7942     7944    +2     
+ Misses            67071    67070    -1     
+ Partials            189      188    -1     
Impacted Files Coverage Δ
x/campaign/types/query.pb.gw.go 0.00% <ø> (ø)
x/claim/types/query.pb.gw.go 0.00% <ø> (ø)
x/launch/types/query.pb.gw.go 0.00% <ø> (ø)
x/mint/types/query.pb.gw.go 0.00% <ø> (ø)
x/monitoringc/types/query.pb.gw.go 0.00% <ø> (ø)
x/monitoringp/types/query.pb.gw.go 0.00% <ø> (ø)
x/participation/types/params.pb.go 0.70% <ø> (ø)
x/participation/types/query.pb.gw.go 0.00% <ø> (ø)
x/profile/types/query.pb.gw.go 0.00% <ø> (ø)
x/reward/types/query.pb.gw.go 0.00% <ø> (ø)
... and 1 more

@lumtis
Copy link
Contributor

lumtis commented Jul 31, 2022

Sounds good. I think we should support or adapt to buf with Ignite CLI

@aljo242
Copy link
Contributor Author

aljo242 commented Jul 31, 2022

Sounds good. I think we should support or adapt to buf with Ignite CLI

Yeah, I think this is possible and will be important. Chains like:

use it. And the sdk and ibc-go use it as well.

Is it good to merge into the v0.46.0 branch?

Copy link
Contributor

@lumtis lumtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well for me

@lumtis lumtis merged commit 1fac165 into feat/v0.46.0 Jul 31, 2022
@lumtis lumtis deleted the feat/buf-proto-gen branch July 31, 2022 20:31
lumtis added a commit that referenced this pull request Aug 10, 2022
* add cosmsocmd code

* remove cosmoscmd

* go mod tidy

* format

* re-format

* fix imports

* change ibc to v5

* use storetypes package

* fix New command

* resolve app.go

* update hooks signatures

* fix initializer keeper calls

* update sim utils

* update cli util code

* remaining fixes

* fix claim suite

* fix go.sum

* Update cmd/genaccounts.go

Co-authored-by: Lucas Btd <lucas.bertrand.22@gmail.com>

* Update x/claim/keeper/mission_delegation_hooks.go

Co-authored-by: Lucas Btd <lucas.bertrand.22@gmail.com>

* move util to testutil

* update dependencies for cosmos-proto

* feat: buf proto generation (#917)

* add .clang-format

* setup buf

* add scripts and update Makefile

* make proto-format

* make proto-gen

* update fundraising dep

* remove ibc fork

* use ibc beta release

* feat: cosmos proto annotations (#918)

* cosmos proto Int

* remaining cosmos scalar annotations

* proto format

* fix(`localnet`): add missing `staking` param for `0.46` (#919)

* add missing param

* fix init channel

* update key info

* chore: set binary name in config_2.yml (#921)

Co-authored-by: Lucas Btd <lucas.bertrand.22@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants