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: add tonic plugin to provenance buf config so grpc client/servers are generated - guarded by grpc and grpc-transport features #158

Closed
wants to merge 1 commit into from

Conversation

scirner22
Copy link
Contributor

@scirner22 scirner22 commented Aug 9, 2024

Currently there's no grpc client/server generation of Provenance types. These types aren't useful from a smart contract perspective, but as a general purpose crate containing rust bindings for Provenance types, they are useful to have.

New types are wrapped with grpc and grpc-transport features.

Deprecates https://github.com/provenance-io/provenance-rs so we can maintain bindings in a single place.

…s are generated - guarded by grpc and grpc-transport features
@@ -20,6 +20,4 @@ prost-types = { workspace = true }
quote = "1.0.26"
regex = "1"
syn = { version = "1.0.109", features = ["full", "parsing", "extra-traits"] }
tonic = "0.7"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

since we leverage buf for generation, these deps aren't needed

@@ -11,5 +11,5 @@ use provwasm_proc_macro::{CosmwasmExt, SerdeEnumAsInt};
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/cosmos.authz.module.v1.Module")]
#[proto_message(type_url = "/cosmos.app.module.v1alpha1.Module")]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kwtalley there's many changes like this that I wasn't expecting as it seems like this change is going backwards? Were there manual changes to these files or were they last generated with a different version of cosmos or something?

@scirner22
Copy link
Contributor Author

I just realized Ken has this work in progress as of last week in StatusHero.

@scirner22 scirner22 closed this Aug 9, 2024
@scirner22 scirner22 deleted the add-tonic-generation branch August 9, 2024 13:54
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.

1 participant