#[derive(Clone, PartialEq, ::prost::Message)]
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")]
pub channel: ::std::option::Option<Channel>,
#[prost(bytes, tag="4")]
pub signer: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgChannelOpenTry {
#[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")]
pub channel: ::std::option::Option<Channel>,
#[prost(string, tag="4")]
pub counterparty_version: std::string::String,
#[prost(bytes, tag="5")]
pub proof_init: std::vec::Vec<u8>,
#[prost(uint64, tag="6")]
pub proof_height: u64,
#[prost(bytes, tag="7")]
pub signer: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgChannelOpenAck {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
#[prost(string, tag="3")]
pub counterparty_version: std::string::String,
#[prost(bytes, tag="4")]
pub proof_try: std::vec::Vec<u8>,
#[prost(uint64, tag="5")]
pub proof_height: u64,
#[prost(bytes, tag="6")]
pub signer: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgChannelOpenConfirm {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
#[prost(bytes, tag="3")]
pub proof_ack: std::vec::Vec<u8>,
#[prost(uint64, tag="4")]
pub proof_height: u64,
#[prost(bytes, tag="5")]
pub signer: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgChannelCloseInit {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
#[prost(bytes, tag="3")]
pub signer: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgChannelCloseConfirm {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
#[prost(bytes, tag="3")]
pub proof_init: std::vec::Vec<u8>,
#[prost(uint64, tag="4")]
pub proof_height: u64,
#[prost(bytes, tag="5")]
pub signer: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgRecvPacket {
#[prost(message, optional, tag="1")]
pub packet: ::std::option::Option<Packet>,
#[prost(bytes, tag="2")]
pub proof: std::vec::Vec<u8>,
#[prost(uint64, tag="3")]
pub proof_height: u64,
#[prost(bytes, tag="4")]
pub signer: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgTimeout {
#[prost(message, optional, tag="1")]
pub packet: ::std::option::Option<Packet>,
#[prost(bytes, tag="2")]
pub proof: std::vec::Vec<u8>,
#[prost(uint64, tag="3")]
pub proof_height: u64,
#[prost(uint64, tag="4")]
pub next_sequence_recv: u64,
#[prost(bytes, tag="5")]
pub signer: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgTimeoutOnClose {
#[prost(message, optional, tag="1")]
pub packet: ::std::option::Option<Packet>,
#[prost(bytes, tag="2")]
pub proof: std::vec::Vec<u8>,
#[prost(bytes, tag="3")]
pub proof_close: std::vec::Vec<u8>,
#[prost(uint64, tag="4")]
pub proof_height: u64,
#[prost(uint64, tag="5")]
pub next_sequence_recv: u64,
#[prost(bytes, tag="6")]
pub signer: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgAcknowledgement {
#[prost(message, optional, tag="1")]
pub packet: ::std::option::Option<Packet>,
#[prost(bytes, tag="2")]
pub acknowledgement: std::vec::Vec<u8>,
#[prost(bytes, tag="3")]
pub proof: std::vec::Vec<u8>,
#[prost(uint64, tag="4")]
pub proof_height: u64,
#[prost(bytes, tag="5")]
pub signer: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Channel {
#[prost(enumeration="State", tag="1")]
pub state: i32,
#[prost(enumeration="Order", tag="2")]
pub ordering: i32,
#[prost(message, optional, tag="3")]
pub counterparty: ::std::option::Option<Counterparty>,
#[prost(string, repeated, tag="4")]
pub connection_hops: ::std::vec::Vec<std::string::String>,
#[prost(string, tag="5")]
pub version: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdentifiedChannel {
#[prost(enumeration="State", tag="1")]
pub state: i32,
#[prost(enumeration="Order", tag="2")]
pub ordering: i32,
#[prost(message, optional, tag="3")]
pub counterparty: ::std::option::Option<Counterparty>,
#[prost(string, repeated, tag="4")]
pub connection_hops: ::std::vec::Vec<std::string::String>,
#[prost(string, tag="5")]
pub version: std::string::String,
#[prost(string, tag="6")]
pub port_id: std::string::String,
#[prost(string, tag="7")]
pub channel_id: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Counterparty {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Packet {
#[prost(uint64, tag="1")]
pub sequence: u64,
#[prost(string, tag="2")]
pub source_port: std::string::String,
#[prost(string, tag="3")]
pub source_channel: std::string::String,
#[prost(string, tag="4")]
pub destination_port: std::string::String,
#[prost(string, tag="5")]
pub destination_channel: std::string::String,
#[prost(bytes, tag="6")]
pub data: std::vec::Vec<u8>,
#[prost(uint64, tag="7")]
pub timeout_height: u64,
#[prost(uint64, tag="8")]
pub timeout_timestamp: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketAckCommitment {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
#[prost(uint64, tag="3")]
pub sequence: u64,
#[prost(bytes, tag="4")]
pub hash: std::vec::Vec<u8>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum State {
UninitializedUnspecified = 0,
Init = 1,
Tryopen = 2,
Open = 3,
Closed = 4,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Order {
NoneUnspecified = 0,
Unordered = 1,
Ordered = 2,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenesisState {
#[prost(message, repeated, tag="1")]
pub channels: ::std::vec::Vec<IdentifiedChannel>,
#[prost(message, repeated, tag="2")]
pub acknowledgements: ::std::vec::Vec<PacketAckCommitment>,
#[prost(message, repeated, tag="3")]
pub commitments: ::std::vec::Vec<PacketAckCommitment>,
#[prost(message, repeated, tag="4")]
pub send_sequences: ::std::vec::Vec<PacketSequence>,
#[prost(message, repeated, tag="5")]
pub recv_sequences: ::std::vec::Vec<PacketSequence>,
#[prost(message, repeated, tag="6")]
pub ack_sequences: ::std::vec::Vec<PacketSequence>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketSequence {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
#[prost(uint64, tag="3")]
pub sequence: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryChannelRequest {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryChannelResponse {
#[prost(message, optional, tag="1")]
pub channel: ::std::option::Option<Channel>,
#[prost(bytes, tag="2")]
pub proof: std::vec::Vec<u8>,
#[prost(string, tag="3")]
pub proof_path: std::string::String,
#[prost(uint64, tag="4")]
pub proof_height: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryChannelsRequest {
#[prost(message, optional, tag="1")]
pub pagination: ::std::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryChannelsResponse {
#[prost(message, repeated, tag="1")]
pub channels: ::std::vec::Vec<IdentifiedChannel>,
#[prost(message, optional, tag="2")]
pub pagination: ::std::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
#[prost(int64, tag="3")]
pub height: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryConnectionChannelsRequest {
#[prost(string, tag="1")]
pub connection: std::string::String,
#[prost(message, optional, tag="2")]
pub pagination: ::std::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryConnectionChannelsResponse {
#[prost(message, repeated, tag="1")]
pub channels: ::std::vec::Vec<IdentifiedChannel>,
#[prost(message, optional, tag="2")]
pub pagination: ::std::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
#[prost(int64, tag="3")]
pub height: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryChannelClientStateRequest {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryChannelClientStateResponse {
#[prost(message, optional, tag="1")]
pub identified_client_state: ::std::option::Option<super::client::IdentifiedClientState>,
#[prost(bytes, tag="2")]
pub proof: std::vec::Vec<u8>,
#[prost(string, tag="3")]
pub proof_path: std::string::String,
#[prost(uint64, tag="4")]
pub proof_height: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryChannelConsensusStateRequest {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
#[prost(uint64, tag="3")]
pub height: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryChannelConsensusStateResponse {
#[prost(message, optional, tag="1")]
pub consensus_state: ::std::option::Option<::prost_types::Any>,
#[prost(string, tag="2")]
pub client_id: std::string::String,
#[prost(bytes, tag="3")]
pub proof: std::vec::Vec<u8>,
#[prost(string, tag="4")]
pub proof_path: std::string::String,
#[prost(uint64, tag="5")]
pub proof_height: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryPacketCommitmentRequest {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
#[prost(uint64, tag="3")]
pub sequence: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryPacketCommitmentResponse {
#[prost(bytes, tag="1")]
pub commitment: std::vec::Vec<u8>,
#[prost(bytes, tag="2")]
pub proof: std::vec::Vec<u8>,
#[prost(string, tag="3")]
pub proof_path: std::string::String,
#[prost(uint64, tag="4")]
pub proof_height: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryPacketCommitmentsRequest {
#[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")]
pub pagination: ::std::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryPacketCommitmentsResponse {
#[prost(message, repeated, tag="1")]
pub commitments: ::std::vec::Vec<PacketAckCommitment>,
#[prost(message, optional, tag="2")]
pub pagination: ::std::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
#[prost(int64, tag="3")]
pub height: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryPacketAcknowledgementRequest {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
#[prost(uint64, tag="3")]
pub sequence: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryPacketAcknowledgementResponse {
#[prost(bytes, tag="1")]
pub acknowledgement: std::vec::Vec<u8>,
#[prost(bytes, tag="2")]
pub proof: std::vec::Vec<u8>,
#[prost(string, tag="3")]
pub proof_path: std::string::String,
#[prost(uint64, tag="4")]
pub proof_height: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryUnrelayedPacketsRequest {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
#[prost(uint64, repeated, tag="3")]
pub packet_commitment_sequences: ::std::vec::Vec<u64>,
#[prost(bool, tag="4")]
pub acknowledgements: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryUnrelayedPacketsResponse {
#[prost(uint64, repeated, tag="1")]
pub sequences: ::std::vec::Vec<u64>,
#[prost(int64, tag="2")]
pub height: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryNextSequenceReceiveRequest {
#[prost(string, tag="1")]
pub port_id: std::string::String,
#[prost(string, tag="2")]
pub channel_id: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryNextSequenceReceiveResponse {
#[prost(uint64, tag="1")]
pub next_sequence_receive: u64,
#[prost(bytes, tag="2")]
pub proof: std::vec::Vec<u8>,
#[prost(string, tag="3")]
pub proof_path: std::string::String,
#[prost(uint64, tag="4")]
pub proof_height: u64,
}