Skip to content

Commit

Permalink
proto-build: migrate to neoeinstein-prost/tonic (#429)
Browse files Browse the repository at this point in the history
The old `buf` plugin we were using is now 404.

This migrates to the new location.

Closes #427
  • Loading branch information
tony-iqlusion committed Oct 2, 2023
1 parent febf43a commit ab82f6c
Show file tree
Hide file tree
Showing 25 changed files with 39 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
/** Config returns the current app config.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn accounts(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn grants(
Expand Down Expand Up @@ -443,7 +443,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn grant(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn balance(
Expand Down Expand Up @@ -730,7 +730,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn send(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub mod service_client {
pub mod service_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with ServiceServer.
/// Generated trait containing gRPC methods that should be implemented for use with ServiceServer.
#[async_trait]
pub trait Service: Send + Sync + 'static {
async fn config(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub mod reflection_service_client {
pub mod reflection_service_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with ReflectionServiceServer.
/// Generated trait containing gRPC methods that should be implemented for use with ReflectionServiceServer.
#[async_trait]
pub trait ReflectionService: Send + Sync + 'static {
async fn list_all_interfaces(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ pub mod reflection_service_client {
pub mod reflection_service_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with ReflectionServiceServer.
/// Generated trait containing gRPC methods that should be implemented for use with ReflectionServiceServer.
#[async_trait]
pub trait ReflectionService: Send + Sync + 'static {
async fn get_authn_descriptor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ pub mod service_client {
pub mod service_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with ServiceServer.
/// Generated trait containing gRPC methods that should be implemented for use with ServiceServer.
#[async_trait]
pub trait Service: Send + Sync + 'static {
async fn get_node_info(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn verify_invariant(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn params(
Expand Down Expand Up @@ -802,7 +802,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn set_withdraw_address(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn evidence(
Expand Down Expand Up @@ -363,7 +363,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn submit_evidence(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn allowance(
Expand Down Expand Up @@ -434,7 +434,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn grant_allowance(
Expand Down
4 changes: 2 additions & 2 deletions cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.gov.v1.tonic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn proposal(
Expand Down Expand Up @@ -710,7 +710,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn submit_proposal(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn proposal(
Expand Down Expand Up @@ -698,7 +698,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn submit_proposal(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn group_info(
Expand Down Expand Up @@ -1180,7 +1180,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn create_group(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn params(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn balance(
Expand Down Expand Up @@ -605,7 +605,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn send(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn params(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn params(
Expand Down Expand Up @@ -412,7 +412,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn unjail(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn validators(
Expand Down Expand Up @@ -1087,7 +1087,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn create_validator(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub mod service_client {
pub mod service_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with ServiceServer.
/// Generated trait containing gRPC methods that should be implemented for use with ServiceServer.
#[async_trait]
pub trait Service: Send + Sync + 'static {
async fn simulate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ pub mod query_client {
pub mod query_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with QueryServer.
/// Generated trait containing gRPC methods that should be implemented for use with QueryServer.
#[async_trait]
pub trait Query: Send + Sync + 'static {
async fn current_plan(
Expand Down Expand Up @@ -537,7 +537,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn software_upgrade(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub mod msg_client {
pub mod msg_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with MsgServer.
/// Generated trait containing gRPC methods that should be implemented for use with MsgServer.
#[async_trait]
pub trait Msg: Send + Sync + 'static {
async fn create_vesting_account(
Expand Down
4 changes: 2 additions & 2 deletions proto-build/buf.sdk.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: v1
plugins:
- remote: buf.build/prost/plugins/prost:v0.2.1-1
- plugin: buf.build/community/neoeinstein-prost:v0.2.1
out: .
opt:
- extern_path=.tendermint=::tendermint_proto
- remote: buf.build/prost/plugins/tonic:v0.2.1-1
- plugin: buf.build/community/neoeinstein-tonic:v0.2.2
out: .
opt:
- extern_path=.tendermint=::tendermint_proto
4 changes: 2 additions & 2 deletions proto-build/buf.wasmd.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: v1
plugins:
- remote: buf.build/prost/plugins/prost:v0.2.1-1
- plugin: buf.build/community/neoeinstein-prost:v0.2.1
out: .
- remote: buf.build/prost/plugins/tonic:v0.2.1-1
- plugin: buf.build/community/neoeinstein-tonic:v0.2.2
out: .
opt:
- no_server=true

0 comments on commit ab82f6c

Please sign in to comment.