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

[Bug]: staking proto files missing some fileds #19294

Closed
1 task done
NaboxAdmin opened this issue Jan 30, 2024 · 5 comments
Closed
1 task done

[Bug]: staking proto files missing some fileds #19294

NaboxAdmin opened this issue Jan 30, 2024 · 5 comments
Assignees

Comments

@NaboxAdmin
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

image
when I try to Java MavenProject to compile proto file to JAVA Class, the throw this Exception. Then I looked at the staking.proto file on github and found that there was indeed no validator_bond_factor field in Params.

Cosmos SDK Version

lasest

How to reproduce?

No response

@NaboxAdmin
Copy link
Author

image
Another issues. maybe more.

@facundomedica
Copy link
Member

  • What proto files are you using?
  • How are you generating the code?
  • What blockchain are you trying to connect to? What SDK version it runs?

Please reply with as much detail as possible, thank you!!

@NaboxAdmin
Copy link
Author

Proto file url: https://github.com/cosmos/cosmos-sdk/blob/main/proto/cosmos/staking/v1beta1/staking.proto
I use maven project generating the code like this:
image

The Java Poject: https://github.com/cloverzrg/cosmos-sdk-java

@NaboxAdmin
Copy link
Author

image
Line 312 message Params, the missing field is validator_bond_factor.
Line 102 message Validtor, the missing field is validator_bond_shares.
Maybe there are others I haven't found yet.

@facundomedica
Copy link
Member

Those fields are only available in the ICS branches that the Cosmos Hub uses.
See here: https://github.com/cosmos/cosmos-sdk/blob/v0.45.16-ics-streaming/proto/cosmos/staking/v1beta1/staking.proto
And https://github.com/cosmos/gaia/blob/main/go.mod#L218

If you'll be querying the Hub's mainnet, please make sure you are using the correct version of the SDK's protos by checking the go.mod of the Gaia release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants