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

Bump cosmos-sdk rev to v0.40.0-rc6 #32

Merged
merged 1 commit into from
Jan 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cosmos-sdk-go
Submodule cosmos-sdk-go updated 746 files
2 changes: 1 addition & 1 deletion cosmos-sdk-proto/src/prost/COSMOS_SDK_COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.40.0-rc3
v0.40.0-rc6
126 changes: 126 additions & 0 deletions cosmos-sdk-proto/src/prost/cosmos.base.tendermint.v1beta1.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
/// GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetValidatorSetByHeightRequest {
#[prost(int64, tag = "1")]
pub height: i64,
/// pagination defines an pagination for the request.
#[prost(message, optional, tag = "2")]
pub pagination: ::std::option::Option<super::super::query::v1beta1::PageRequest>,
}
/// GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetValidatorSetByHeightResponse {
#[prost(int64, tag = "1")]
pub block_height: i64,
#[prost(message, repeated, tag = "2")]
pub validators: ::std::vec::Vec<Validator>,
/// pagination defines an pagination for the response.
#[prost(message, optional, tag = "3")]
pub pagination: ::std::option::Option<super::super::query::v1beta1::PageResponse>,
}
/// GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLatestValidatorSetRequest {
/// pagination defines an pagination for the request.
#[prost(message, optional, tag = "1")]
pub pagination: ::std::option::Option<super::super::query::v1beta1::PageRequest>,
}
/// GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLatestValidatorSetResponse {
#[prost(int64, tag = "1")]
pub block_height: i64,
#[prost(message, repeated, tag = "2")]
pub validators: ::std::vec::Vec<Validator>,
/// pagination defines an pagination for the response.
#[prost(message, optional, tag = "3")]
pub pagination: ::std::option::Option<super::super::query::v1beta1::PageResponse>,
}
/// Validator is the type for the validator-set.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Validator {
#[prost(string, tag = "1")]
pub address: std::string::String,
#[prost(message, optional, tag = "2")]
pub pub_key: ::std::option::Option<::prost_types::Any>,
#[prost(int64, tag = "3")]
pub voting_power: i64,
#[prost(int64, tag = "4")]
pub proposer_priority: i64,
}
/// GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBlockByHeightRequest {
#[prost(int64, tag = "1")]
pub height: i64,
}
/// GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBlockByHeightResponse {
#[prost(message, optional, tag = "1")]
pub block_id: ::std::option::Option<::tendermint_proto::types::BlockId>,
#[prost(message, optional, tag = "2")]
pub block: ::std::option::Option<::tendermint_proto::types::Block>,
}
/// GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLatestBlockRequest {}
/// GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLatestBlockResponse {
#[prost(message, optional, tag = "1")]
pub block_id: ::std::option::Option<::tendermint_proto::types::BlockId>,
#[prost(message, optional, tag = "2")]
pub block: ::std::option::Option<::tendermint_proto::types::Block>,
}
/// GetSyncingRequest is the request type for the Query/GetSyncing RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSyncingRequest {}
/// GetSyncingResponse is the response type for the Query/GetSyncing RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSyncingResponse {
#[prost(bool, tag = "1")]
pub syncing: bool,
}
/// GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNodeInfoRequest {}
/// GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNodeInfoResponse {
#[prost(message, optional, tag = "1")]
pub default_node_info: ::std::option::Option<::tendermint_proto::p2p::DefaultNodeInfo>,
#[prost(message, optional, tag = "2")]
pub application_version: ::std::option::Option<VersionInfo>,
}
/// VersionInfo is the type for the GetNodeInfoResponse message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VersionInfo {
#[prost(string, tag = "1")]
pub name: std::string::String,
#[prost(string, tag = "2")]
pub app_name: std::string::String,
#[prost(string, tag = "3")]
pub version: std::string::String,
#[prost(string, tag = "4")]
pub git_commit: std::string::String,
#[prost(string, tag = "5")]
pub build_tags: std::string::String,
#[prost(string, tag = "6")]
pub go_version: std::string::String,
#[prost(message, repeated, tag = "7")]
pub build_deps: ::std::vec::Vec<Module>,
}
/// Module is the type for VersionInfo
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Module {
/// module path
#[prost(string, tag = "1")]
pub path: std::string::String,
/// module version
#[prost(string, tag = "2")]
pub version: std::string::String,
/// checksum
#[prost(string, tag = "3")]
pub sum: std::string::String,
}
97 changes: 95 additions & 2 deletions cosmos-sdk-proto/src/prost/cosmos.tx.v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ pub struct TxBody {
/// those messages define the number and order of elements in AuthInfo's
/// signer_infos and Tx's signatures. Each required signer address is added to
/// the list only the first time it occurs.
///
/// By convention, the first required signer (usually from the first message)
/// is referred to as the primary signer and pays the fee for the whole
/// transaction.
Expand Down Expand Up @@ -187,6 +186,49 @@ pub struct Fee {
#[prost(string, tag = "4")]
pub granter: std::string::String,
}
/// GetTxsEventRequest is the request type for the Service.TxsByEvents
/// RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTxsEventRequest {
/// events is the list of transaction event type.
#[prost(string, repeated, tag = "1")]
pub events: ::std::vec::Vec<std::string::String>,
/// pagination defines an pagination for the request.
#[prost(message, optional, tag = "2")]
pub pagination: ::std::option::Option<super::super::base::query::v1beta1::PageRequest>,
}
/// GetTxsEventResponse is the response type for the Service.TxsByEvents
/// RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTxsEventResponse {
/// txs is the list of queried transactions.
#[prost(message, repeated, tag = "1")]
pub txs: ::std::vec::Vec<Tx>,
/// tx_responses is the list of queried TxResponses.
#[prost(message, repeated, tag = "2")]
pub tx_responses: ::std::vec::Vec<super::super::base::abci::v1beta1::TxResponse>,
/// pagination defines an pagination for the response.
#[prost(message, optional, tag = "3")]
pub pagination: ::std::option::Option<super::super::base::query::v1beta1::PageResponse>,
}
/// BroadcastTxRequest is the request type for the Service.BroadcastTxRequest
/// RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BroadcastTxRequest {
/// tx_bytes is the raw transaction.
#[prost(bytes, tag = "1")]
pub tx_bytes: std::vec::Vec<u8>,
#[prost(enumeration = "BroadcastMode", tag = "2")]
pub mode: i32,
}
/// BroadcastTxResponse is the response type for the
/// Service.BroadcastTx method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BroadcastTxResponse {
/// tx_response is the queried TxResponses.
#[prost(message, optional, tag = "1")]
pub tx_response: ::std::option::Option<super::super::base::abci::v1beta1::TxResponse>,
}
/// SimulateRequest is the request type for the Service.Simulate
/// RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
Expand All @@ -206,7 +248,7 @@ pub struct SimulateResponse {
#[prost(message, optional, tag = "2")]
pub result: ::std::option::Option<super::super::base::abci::v1beta1::Result>,
}
/// GetTx is the request type for the Service.GetTx
/// GetTxRequest is the request type for the Service.GetTx
/// RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTxRequest {
Expand All @@ -220,6 +262,25 @@ pub struct GetTxResponse {
/// tx is the queried transaction.
#[prost(message, optional, tag = "1")]
pub tx: ::std::option::Option<Tx>,
/// tx_response is the queried TxResponses.
#[prost(message, optional, tag = "2")]
pub tx_response: ::std::option::Option<super::super::base::abci::v1beta1::TxResponse>,
}
/// BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum BroadcastMode {
/// zero-value for mode ordering
Unspecified = 0,
/// BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for
/// the tx to be committed in a block.
Block = 1,
/// BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
/// a CheckTx execution response only.
Sync = 2,
/// BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
/// immediately.
Async = 3,
}
#[cfg(feature = "grpc")]
#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))]
Expand Down Expand Up @@ -287,6 +348,38 @@ pub mod service_client {
let path = http::uri::PathAndQuery::from_static("/cosmos.tx.v1beta1.Service/GetTx");
self.inner.unary(request.into_request(), path, codec).await
}
#[doc = " BroadcastTx broadcast transaction."]
pub async fn broadcast_tx(
&mut self,
request: impl tonic::IntoRequest<super::BroadcastTxRequest>,
) -> Result<tonic::Response<super::BroadcastTxResponse>, tonic::Status> {
self.inner.ready().await.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path =
http::uri::PathAndQuery::from_static("/cosmos.tx.v1beta1.Service/BroadcastTx");
self.inner.unary(request.into_request(), path, codec).await
}
#[doc = " GetTxsEvent fetches txs by event."]
pub async fn get_txs_event(
&mut self,
request: impl tonic::IntoRequest<super::GetTxsEventRequest>,
) -> Result<tonic::Response<super::GetTxsEventResponse>, tonic::Status> {
self.inner.ready().await.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path =
http::uri::PathAndQuery::from_static("/cosmos.tx.v1beta1.Service/GetTxsEvent");
self.inner.unary(request.into_request(), path, codec).await
}
}
impl<T: Clone> Clone for ServiceClient<T> {
fn clone(&self) -> Self {
Expand Down
41 changes: 21 additions & 20 deletions cosmos-sdk-proto/src/prost/ibc.core.channel.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ pub struct GenesisState {
pub recv_sequences: ::std::vec::Vec<PacketSequence>,
#[prost(message, repeated, tag = "7")]
pub ack_sequences: ::std::vec::Vec<PacketSequence>,
/// the sequence for the next generated channel identifier
#[prost(uint64, tag = "8")]
pub next_channel_sequence: u64,
}
/// PacketSequence defines the genesis type necessary to retrieve and store
/// next send and receive sequences.
Expand All @@ -194,11 +197,9 @@ pub struct PacketSequence {
pub struct MsgChannelOpenInit {
#[prost(string, tag = "1")]
pub port_id: std::string::String,
#[prost(string, tag = "2")]
pub channel_id: std::string::String,
#[prost(message, optional, tag = "3")]
#[prost(message, optional, tag = "2")]
pub channel: ::std::option::Option<Channel>,
#[prost(string, tag = "4")]
#[prost(string, tag = "3")]
pub signer: std::string::String,
}
/// MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type.
Expand All @@ -210,19 +211,19 @@ pub struct MsgChannelOpenInitResponse {}
pub struct MsgChannelOpenTry {
#[prost(string, tag = "1")]
pub port_id: std::string::String,
/// in the case of crossing hello's, when both chains call OpenInit, we need the channel identifier
/// of the previous channel in state INIT
#[prost(string, tag = "2")]
pub desired_channel_id: std::string::String,
#[prost(string, tag = "3")]
pub counterparty_chosen_channel_id: std::string::String,
#[prost(message, optional, tag = "4")]
pub previous_channel_id: std::string::String,
#[prost(message, optional, tag = "3")]
pub channel: ::std::option::Option<Channel>,
#[prost(string, tag = "5")]
#[prost(string, tag = "4")]
pub counterparty_version: std::string::String,
#[prost(bytes, tag = "6")]
#[prost(bytes, tag = "5")]
pub proof_init: std::vec::Vec<u8>,
#[prost(message, optional, tag = "7")]
#[prost(message, optional, tag = "6")]
pub proof_height: ::std::option::Option<super::super::client::v1::Height>,
#[prost(string, tag = "8")]
#[prost(string, tag = "7")]
pub signer: std::string::String,
}
/// MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type.
Expand Down Expand Up @@ -306,7 +307,7 @@ pub struct MsgRecvPacket {
#[prost(message, optional, tag = "1")]
pub packet: ::std::option::Option<Packet>,
#[prost(bytes, tag = "2")]
pub proof: std::vec::Vec<u8>,
pub proof_commitment: std::vec::Vec<u8>,
#[prost(message, optional, tag = "3")]
pub proof_height: ::std::option::Option<super::super::client::v1::Height>,
#[prost(string, tag = "4")]
Expand All @@ -321,7 +322,7 @@ pub struct MsgTimeout {
#[prost(message, optional, tag = "1")]
pub packet: ::std::option::Option<Packet>,
#[prost(bytes, tag = "2")]
pub proof: std::vec::Vec<u8>,
pub proof_unreceived: std::vec::Vec<u8>,
#[prost(message, optional, tag = "3")]
pub proof_height: ::std::option::Option<super::super::client::v1::Height>,
#[prost(uint64, tag = "4")]
Expand All @@ -338,7 +339,7 @@ pub struct MsgTimeoutOnClose {
#[prost(message, optional, tag = "1")]
pub packet: ::std::option::Option<Packet>,
#[prost(bytes, tag = "2")]
pub proof: std::vec::Vec<u8>,
pub proof_unreceived: std::vec::Vec<u8>,
#[prost(bytes, tag = "3")]
pub proof_close: std::vec::Vec<u8>,
#[prost(message, optional, tag = "4")]
Expand All @@ -359,7 +360,7 @@ pub struct MsgAcknowledgement {
#[prost(bytes, tag = "2")]
pub acknowledgement: std::vec::Vec<u8>,
#[prost(bytes, tag = "3")]
pub proof: std::vec::Vec<u8>,
pub proof_acked: std::vec::Vec<u8>,
#[prost(message, optional, tag = "4")]
pub proof_height: ::std::option::Option<super::super::client::v1::Height>,
#[prost(string, tag = "5")]
Expand Down Expand Up @@ -482,12 +483,12 @@ pub struct QueryChannelConsensusStateRequest {
/// channel unique identifier
#[prost(string, tag = "2")]
pub channel_id: std::string::String,
/// version number of the consensus state
/// revision number of the consensus state
#[prost(uint64, tag = "3")]
pub version_number: u64,
/// version height of the consensus state
pub revision_number: u64,
/// revision height of the consensus state
#[prost(uint64, tag = "4")]
pub version_height: u64,
pub revision_height: u64,
}
/// QueryChannelClientStateResponse is the Response type for the
/// Query/QueryChannelClientState RPC method
Expand Down
Loading