1use provwasm_proc_macro::CosmwasmExt;
2#[allow(clippy::derive_partial_eq_without_eq)]
6#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
7#[proto_message(type_url = "/ibc.core.channel.v1.Channel")]
8pub struct Channel {
9 #[prost(enumeration = "State", tag = "1")]
11 pub state: i32,
12 #[prost(enumeration = "Order", tag = "2")]
14 pub ordering: i32,
15 #[prost(message, optional, tag = "3")]
17 pub counterparty: ::core::option::Option<Counterparty>,
18 #[prost(string, repeated, tag = "4")]
21 pub connection_hops: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
22 #[prost(string, tag = "5")]
24 pub version: ::prost::alloc::string::String,
25 #[prost(uint64, tag = "6")]
28 pub upgrade_sequence: u64,
29}
30#[allow(clippy::derive_partial_eq_without_eq)]
33#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
34#[proto_message(type_url = "/ibc.core.channel.v1.IdentifiedChannel")]
35pub struct IdentifiedChannel {
36 #[prost(enumeration = "State", tag = "1")]
38 pub state: i32,
39 #[prost(enumeration = "Order", tag = "2")]
41 pub ordering: i32,
42 #[prost(message, optional, tag = "3")]
44 pub counterparty: ::core::option::Option<Counterparty>,
45 #[prost(string, repeated, tag = "4")]
48 pub connection_hops: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
49 #[prost(string, tag = "5")]
51 pub version: ::prost::alloc::string::String,
52 #[prost(string, tag = "6")]
54 pub port_id: ::prost::alloc::string::String,
55 #[prost(string, tag = "7")]
57 pub channel_id: ::prost::alloc::string::String,
58 #[prost(uint64, tag = "8")]
61 pub upgrade_sequence: u64,
62}
63#[allow(clippy::derive_partial_eq_without_eq)]
65#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
66#[proto_message(type_url = "/ibc.core.channel.v1.Counterparty")]
67pub struct Counterparty {
68 #[prost(string, tag = "1")]
70 pub port_id: ::prost::alloc::string::String,
71 #[prost(string, tag = "2")]
73 pub channel_id: ::prost::alloc::string::String,
74}
75#[allow(clippy::derive_partial_eq_without_eq)]
77#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
78#[proto_message(type_url = "/ibc.core.channel.v1.Packet")]
79pub struct Packet {
80 #[prost(uint64, tag = "1")]
84 pub sequence: u64,
85 #[prost(string, tag = "2")]
87 pub source_port: ::prost::alloc::string::String,
88 #[prost(string, tag = "3")]
90 pub source_channel: ::prost::alloc::string::String,
91 #[prost(string, tag = "4")]
93 pub destination_port: ::prost::alloc::string::String,
94 #[prost(string, tag = "5")]
96 pub destination_channel: ::prost::alloc::string::String,
97 #[prost(bytes = "vec", tag = "6")]
99 pub data: ::prost::alloc::vec::Vec<u8>,
100 #[prost(message, optional, tag = "7")]
102 pub timeout_height: ::core::option::Option<super::super::client::v1::Height>,
103 #[prost(uint64, tag = "8")]
105 pub timeout_timestamp: u64,
106}
107#[allow(clippy::derive_partial_eq_without_eq)]
112#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
113#[proto_message(type_url = "/ibc.core.channel.v1.PacketState")]
114pub struct PacketState {
115 #[prost(string, tag = "1")]
117 pub port_id: ::prost::alloc::string::String,
118 #[prost(string, tag = "2")]
120 pub channel_id: ::prost::alloc::string::String,
121 #[prost(uint64, tag = "3")]
123 pub sequence: u64,
124 #[prost(bytes = "vec", tag = "4")]
126 pub data: ::prost::alloc::vec::Vec<u8>,
127}
128#[allow(clippy::derive_partial_eq_without_eq)]
132#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
133#[proto_message(type_url = "/ibc.core.channel.v1.PacketId")]
134pub struct PacketId {
135 #[prost(string, tag = "1")]
137 pub port_id: ::prost::alloc::string::String,
138 #[prost(string, tag = "2")]
140 pub channel_id: ::prost::alloc::string::String,
141 #[prost(uint64, tag = "3")]
143 pub sequence: u64,
144}
145#[allow(clippy::derive_partial_eq_without_eq)]
153#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
154#[proto_message(type_url = "/ibc.core.channel.v1.Acknowledgement")]
155pub struct Acknowledgement {
156 #[prost(oneof = "acknowledgement::Response", tags = "21, 22")]
158 pub response: ::core::option::Option<acknowledgement::Response>,
159}
160pub mod acknowledgement {
162 use provwasm_proc_macro::CosmwasmExt;
163 #[allow(clippy::derive_partial_eq_without_eq)]
165 #[derive(Clone, PartialEq, Eq, ::prost::Oneof, ::schemars::JsonSchema)]
166 pub enum Response {
167 #[prost(bytes, tag = "21")]
168 Result(::prost::alloc::vec::Vec<u8>),
169 #[prost(string, tag = "22")]
170 Error(::prost::alloc::string::String),
171 }
172}
173#[allow(clippy::derive_partial_eq_without_eq)]
177#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
178#[proto_message(type_url = "/ibc.core.channel.v1.Timeout")]
179pub struct Timeout {
180 #[prost(message, optional, tag = "1")]
182 pub height: ::core::option::Option<super::super::client::v1::Height>,
183 #[prost(uint64, tag = "2")]
185 pub timestamp: u64,
186}
187#[allow(clippy::derive_partial_eq_without_eq)]
189#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
190#[proto_message(type_url = "/ibc.core.channel.v1.Params")]
191pub struct Params {
192 #[prost(message, optional, tag = "1")]
194 pub upgrade_timeout: ::core::option::Option<Timeout>,
195}
196#[derive(
199 Clone,
200 Copy,
201 Debug,
202 PartialEq,
203 Eq,
204 Hash,
205 PartialOrd,
206 Ord,
207 ::prost::Enumeration,
208 ::schemars::JsonSchema,
209)]
210#[repr(i32)]
211pub enum State {
212 UninitializedUnspecified = 0,
214 Init = 1,
216 Tryopen = 2,
218 Open = 3,
221 Closed = 4,
224 Flushing = 5,
226 Flushcomplete = 6,
228}
229impl State {
230 pub fn as_str_name(&self) -> &'static str {
235 match self {
236 State::UninitializedUnspecified => "STATE_UNINITIALIZED_UNSPECIFIED",
237 State::Init => "STATE_INIT",
238 State::Tryopen => "STATE_TRYOPEN",
239 State::Open => "STATE_OPEN",
240 State::Closed => "STATE_CLOSED",
241 State::Flushing => "STATE_FLUSHING",
242 State::Flushcomplete => "STATE_FLUSHCOMPLETE",
243 }
244 }
245 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
247 match value {
248 "STATE_UNINITIALIZED_UNSPECIFIED" => Some(Self::UninitializedUnspecified),
249 "STATE_INIT" => Some(Self::Init),
250 "STATE_TRYOPEN" => Some(Self::Tryopen),
251 "STATE_OPEN" => Some(Self::Open),
252 "STATE_CLOSED" => Some(Self::Closed),
253 "STATE_FLUSHING" => Some(Self::Flushing),
254 "STATE_FLUSHCOMPLETE" => Some(Self::Flushcomplete),
255 _ => None,
256 }
257 }
258}
259#[derive(
261 Clone,
262 Copy,
263 Debug,
264 PartialEq,
265 Eq,
266 Hash,
267 PartialOrd,
268 Ord,
269 ::prost::Enumeration,
270 ::schemars::JsonSchema,
271)]
272#[repr(i32)]
273pub enum Order {
274 NoneUnspecified = 0,
276 Unordered = 1,
279 Ordered = 2,
281}
282impl Order {
283 pub fn as_str_name(&self) -> &'static str {
288 match self {
289 Order::NoneUnspecified => "ORDER_NONE_UNSPECIFIED",
290 Order::Unordered => "ORDER_UNORDERED",
291 Order::Ordered => "ORDER_ORDERED",
292 }
293 }
294 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
296 match value {
297 "ORDER_NONE_UNSPECIFIED" => Some(Self::NoneUnspecified),
298 "ORDER_UNORDERED" => Some(Self::Unordered),
299 "ORDER_ORDERED" => Some(Self::Ordered),
300 _ => None,
301 }
302 }
303}
304#[allow(clippy::derive_partial_eq_without_eq)]
306#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
307#[proto_message(type_url = "/ibc.core.channel.v1.GenesisState")]
308pub struct GenesisState {
309 #[prost(message, repeated, tag = "1")]
310 pub channels: ::prost::alloc::vec::Vec<IdentifiedChannel>,
311 #[prost(message, repeated, tag = "2")]
312 pub acknowledgements: ::prost::alloc::vec::Vec<PacketState>,
313 #[prost(message, repeated, tag = "3")]
314 pub commitments: ::prost::alloc::vec::Vec<PacketState>,
315 #[prost(message, repeated, tag = "4")]
316 pub receipts: ::prost::alloc::vec::Vec<PacketState>,
317 #[prost(message, repeated, tag = "5")]
318 pub send_sequences: ::prost::alloc::vec::Vec<PacketSequence>,
319 #[prost(message, repeated, tag = "6")]
320 pub recv_sequences: ::prost::alloc::vec::Vec<PacketSequence>,
321 #[prost(message, repeated, tag = "7")]
322 pub ack_sequences: ::prost::alloc::vec::Vec<PacketSequence>,
323 #[prost(uint64, tag = "8")]
325 pub next_channel_sequence: u64,
326 #[prost(message, optional, tag = "9")]
327 pub params: ::core::option::Option<Params>,
328}
329#[allow(clippy::derive_partial_eq_without_eq)]
332#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
333#[proto_message(type_url = "/ibc.core.channel.v1.PacketSequence")]
334pub struct PacketSequence {
335 #[prost(string, tag = "1")]
336 pub port_id: ::prost::alloc::string::String,
337 #[prost(string, tag = "2")]
338 pub channel_id: ::prost::alloc::string::String,
339 #[prost(uint64, tag = "3")]
340 pub sequence: u64,
341}
342#[allow(clippy::derive_partial_eq_without_eq)]
348#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
349#[proto_message(type_url = "/ibc.core.channel.v1.Upgrade")]
350pub struct Upgrade {
351 #[prost(message, optional, tag = "1")]
352 pub fields: ::core::option::Option<UpgradeFields>,
353 #[prost(message, optional, tag = "2")]
354 pub timeout: ::core::option::Option<Timeout>,
355 #[prost(uint64, tag = "3")]
356 pub next_sequence_send: u64,
357}
358#[allow(clippy::derive_partial_eq_without_eq)]
361#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
362#[proto_message(type_url = "/ibc.core.channel.v1.UpgradeFields")]
363pub struct UpgradeFields {
364 #[prost(enumeration = "Order", tag = "1")]
365 pub ordering: i32,
366 #[prost(string, repeated, tag = "2")]
367 pub connection_hops: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
368 #[prost(string, tag = "3")]
369 pub version: ::prost::alloc::string::String,
370}
371#[allow(clippy::derive_partial_eq_without_eq)]
375#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
376#[proto_message(type_url = "/ibc.core.channel.v1.ErrorReceipt")]
377pub struct ErrorReceipt {
378 #[prost(uint64, tag = "1")]
380 pub sequence: u64,
381 #[prost(string, tag = "2")]
383 pub message: ::prost::alloc::string::String,
384}
385#[allow(clippy::derive_partial_eq_without_eq)]
387#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
388#[proto_message(type_url = "/ibc.core.channel.v1.QueryChannelRequest")]
389#[proto_query(
390 path = "/ibc.core.channel.v1.Query/Channel",
391 response_type = QueryChannelResponse
392)]
393pub struct QueryChannelRequest {
394 #[prost(string, tag = "1")]
396 pub port_id: ::prost::alloc::string::String,
397 #[prost(string, tag = "2")]
399 pub channel_id: ::prost::alloc::string::String,
400}
401#[allow(clippy::derive_partial_eq_without_eq)]
405#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
406#[proto_message(type_url = "/ibc.core.channel.v1.QueryChannelResponse")]
407pub struct QueryChannelResponse {
408 #[prost(message, optional, tag = "1")]
410 pub channel: ::core::option::Option<Channel>,
411 #[prost(bytes = "vec", tag = "2")]
413 pub proof: ::prost::alloc::vec::Vec<u8>,
414 #[prost(message, optional, tag = "3")]
416 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
417}
418#[allow(clippy::derive_partial_eq_without_eq)]
420#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
421#[proto_message(type_url = "/ibc.core.channel.v1.QueryChannelsRequest")]
422#[proto_query(
423 path = "/ibc.core.channel.v1.Query/Channels",
424 response_type = QueryChannelsResponse
425)]
426pub struct QueryChannelsRequest {
427 #[prost(message, optional, tag = "1")]
429 pub pagination: ::core::option::Option<
430 super::super::super::super::cosmos::base::query::v1beta1::PageRequest,
431 >,
432}
433#[allow(clippy::derive_partial_eq_without_eq)]
435#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
436#[proto_message(type_url = "/ibc.core.channel.v1.QueryChannelsResponse")]
437pub struct QueryChannelsResponse {
438 #[prost(message, repeated, tag = "1")]
440 pub channels: ::prost::alloc::vec::Vec<IdentifiedChannel>,
441 #[prost(message, optional, tag = "2")]
443 pub pagination: ::core::option::Option<
444 super::super::super::super::cosmos::base::query::v1beta1::PageResponse,
445 >,
446 #[prost(message, optional, tag = "3")]
448 pub height: ::core::option::Option<super::super::client::v1::Height>,
449}
450#[allow(clippy::derive_partial_eq_without_eq)]
453#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
454#[proto_message(type_url = "/ibc.core.channel.v1.QueryConnectionChannelsRequest")]
455#[proto_query(
456 path = "/ibc.core.channel.v1.Query/ConnectionChannels",
457 response_type = QueryConnectionChannelsResponse
458)]
459pub struct QueryConnectionChannelsRequest {
460 #[prost(string, tag = "1")]
462 pub connection: ::prost::alloc::string::String,
463 #[prost(message, optional, tag = "2")]
465 pub pagination: ::core::option::Option<
466 super::super::super::super::cosmos::base::query::v1beta1::PageRequest,
467 >,
468}
469#[allow(clippy::derive_partial_eq_without_eq)]
472#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
473#[proto_message(type_url = "/ibc.core.channel.v1.QueryConnectionChannelsResponse")]
474pub struct QueryConnectionChannelsResponse {
475 #[prost(message, repeated, tag = "1")]
477 pub channels: ::prost::alloc::vec::Vec<IdentifiedChannel>,
478 #[prost(message, optional, tag = "2")]
480 pub pagination: ::core::option::Option<
481 super::super::super::super::cosmos::base::query::v1beta1::PageResponse,
482 >,
483 #[prost(message, optional, tag = "3")]
485 pub height: ::core::option::Option<super::super::client::v1::Height>,
486}
487#[allow(clippy::derive_partial_eq_without_eq)]
490#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
491#[proto_message(type_url = "/ibc.core.channel.v1.QueryChannelClientStateRequest")]
492#[proto_query(
493 path = "/ibc.core.channel.v1.Query/ChannelClientState",
494 response_type = QueryChannelClientStateResponse
495)]
496pub struct QueryChannelClientStateRequest {
497 #[prost(string, tag = "1")]
499 pub port_id: ::prost::alloc::string::String,
500 #[prost(string, tag = "2")]
502 pub channel_id: ::prost::alloc::string::String,
503}
504#[allow(clippy::derive_partial_eq_without_eq)]
507#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
508#[proto_message(type_url = "/ibc.core.channel.v1.QueryChannelClientStateResponse")]
509pub struct QueryChannelClientStateResponse {
510 #[prost(message, optional, tag = "1")]
512 pub identified_client_state:
513 ::core::option::Option<super::super::client::v1::IdentifiedClientState>,
514 #[prost(bytes = "vec", tag = "2")]
516 pub proof: ::prost::alloc::vec::Vec<u8>,
517 #[prost(message, optional, tag = "3")]
519 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
520}
521#[allow(clippy::derive_partial_eq_without_eq)]
524#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
525#[proto_message(type_url = "/ibc.core.channel.v1.QueryChannelConsensusStateRequest")]
526#[proto_query(
527 path = "/ibc.core.channel.v1.Query/ChannelConsensusState",
528 response_type = QueryChannelConsensusStateResponse
529)]
530pub struct QueryChannelConsensusStateRequest {
531 #[prost(string, tag = "1")]
533 pub port_id: ::prost::alloc::string::String,
534 #[prost(string, tag = "2")]
536 pub channel_id: ::prost::alloc::string::String,
537 #[prost(uint64, tag = "3")]
539 pub revision_number: u64,
540 #[prost(uint64, tag = "4")]
542 pub revision_height: u64,
543}
544#[allow(clippy::derive_partial_eq_without_eq)]
547#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
548#[proto_message(type_url = "/ibc.core.channel.v1.QueryChannelConsensusStateResponse")]
549pub struct QueryChannelConsensusStateResponse {
550 #[prost(message, optional, tag = "1")]
552 pub consensus_state: ::core::option::Option<crate::shim::Any>,
553 #[prost(string, tag = "2")]
555 pub client_id: ::prost::alloc::string::String,
556 #[prost(bytes = "vec", tag = "3")]
558 pub proof: ::prost::alloc::vec::Vec<u8>,
559 #[prost(message, optional, tag = "4")]
561 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
562}
563#[allow(clippy::derive_partial_eq_without_eq)]
566#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
567#[proto_message(type_url = "/ibc.core.channel.v1.QueryPacketCommitmentRequest")]
568#[proto_query(
569 path = "/ibc.core.channel.v1.Query/PacketCommitment",
570 response_type = QueryPacketCommitmentResponse
571)]
572pub struct QueryPacketCommitmentRequest {
573 #[prost(string, tag = "1")]
575 pub port_id: ::prost::alloc::string::String,
576 #[prost(string, tag = "2")]
578 pub channel_id: ::prost::alloc::string::String,
579 #[prost(uint64, tag = "3")]
581 pub sequence: u64,
582}
583#[allow(clippy::derive_partial_eq_without_eq)]
587#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
588#[proto_message(type_url = "/ibc.core.channel.v1.QueryPacketCommitmentResponse")]
589pub struct QueryPacketCommitmentResponse {
590 #[prost(bytes = "vec", tag = "1")]
592 pub commitment: ::prost::alloc::vec::Vec<u8>,
593 #[prost(bytes = "vec", tag = "2")]
595 pub proof: ::prost::alloc::vec::Vec<u8>,
596 #[prost(message, optional, tag = "3")]
598 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
599}
600#[allow(clippy::derive_partial_eq_without_eq)]
603#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
604#[proto_message(type_url = "/ibc.core.channel.v1.QueryPacketCommitmentsRequest")]
605#[proto_query(
606 path = "/ibc.core.channel.v1.Query/PacketCommitments",
607 response_type = QueryPacketCommitmentsResponse
608)]
609pub struct QueryPacketCommitmentsRequest {
610 #[prost(string, tag = "1")]
612 pub port_id: ::prost::alloc::string::String,
613 #[prost(string, tag = "2")]
615 pub channel_id: ::prost::alloc::string::String,
616 #[prost(message, optional, tag = "3")]
618 pub pagination: ::core::option::Option<
619 super::super::super::super::cosmos::base::query::v1beta1::PageRequest,
620 >,
621}
622#[allow(clippy::derive_partial_eq_without_eq)]
625#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
626#[proto_message(type_url = "/ibc.core.channel.v1.QueryPacketCommitmentsResponse")]
627pub struct QueryPacketCommitmentsResponse {
628 #[prost(message, repeated, tag = "1")]
629 pub commitments: ::prost::alloc::vec::Vec<PacketState>,
630 #[prost(message, optional, tag = "2")]
632 pub pagination: ::core::option::Option<
633 super::super::super::super::cosmos::base::query::v1beta1::PageResponse,
634 >,
635 #[prost(message, optional, tag = "3")]
637 pub height: ::core::option::Option<super::super::client::v1::Height>,
638}
639#[allow(clippy::derive_partial_eq_without_eq)]
642#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
643#[proto_message(type_url = "/ibc.core.channel.v1.QueryPacketReceiptRequest")]
644#[proto_query(
645 path = "/ibc.core.channel.v1.Query/PacketReceipt",
646 response_type = QueryPacketReceiptResponse
647)]
648pub struct QueryPacketReceiptRequest {
649 #[prost(string, tag = "1")]
651 pub port_id: ::prost::alloc::string::String,
652 #[prost(string, tag = "2")]
654 pub channel_id: ::prost::alloc::string::String,
655 #[prost(uint64, tag = "3")]
657 pub sequence: u64,
658}
659#[allow(clippy::derive_partial_eq_without_eq)]
663#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
664#[proto_message(type_url = "/ibc.core.channel.v1.QueryPacketReceiptResponse")]
665pub struct QueryPacketReceiptResponse {
666 #[prost(bool, tag = "2")]
668 pub received: bool,
669 #[prost(bytes = "vec", tag = "3")]
671 pub proof: ::prost::alloc::vec::Vec<u8>,
672 #[prost(message, optional, tag = "4")]
674 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
675}
676#[allow(clippy::derive_partial_eq_without_eq)]
679#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
680#[proto_message(type_url = "/ibc.core.channel.v1.QueryPacketAcknowledgementRequest")]
681#[proto_query(
682 path = "/ibc.core.channel.v1.Query/PacketAcknowledgement",
683 response_type = QueryPacketAcknowledgementResponse
684)]
685pub struct QueryPacketAcknowledgementRequest {
686 #[prost(string, tag = "1")]
688 pub port_id: ::prost::alloc::string::String,
689 #[prost(string, tag = "2")]
691 pub channel_id: ::prost::alloc::string::String,
692 #[prost(uint64, tag = "3")]
694 pub sequence: u64,
695}
696#[allow(clippy::derive_partial_eq_without_eq)]
700#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
701#[proto_message(type_url = "/ibc.core.channel.v1.QueryPacketAcknowledgementResponse")]
702pub struct QueryPacketAcknowledgementResponse {
703 #[prost(bytes = "vec", tag = "1")]
705 pub acknowledgement: ::prost::alloc::vec::Vec<u8>,
706 #[prost(bytes = "vec", tag = "2")]
708 pub proof: ::prost::alloc::vec::Vec<u8>,
709 #[prost(message, optional, tag = "3")]
711 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
712}
713#[allow(clippy::derive_partial_eq_without_eq)]
716#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
717#[proto_message(type_url = "/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest")]
718#[proto_query(
719 path = "/ibc.core.channel.v1.Query/PacketAcknowledgements",
720 response_type = QueryPacketAcknowledgementsResponse
721)]
722pub struct QueryPacketAcknowledgementsRequest {
723 #[prost(string, tag = "1")]
725 pub port_id: ::prost::alloc::string::String,
726 #[prost(string, tag = "2")]
728 pub channel_id: ::prost::alloc::string::String,
729 #[prost(message, optional, tag = "3")]
731 pub pagination: ::core::option::Option<
732 super::super::super::super::cosmos::base::query::v1beta1::PageRequest,
733 >,
734 #[prost(uint64, repeated, tag = "4")]
736 pub packet_commitment_sequences: ::prost::alloc::vec::Vec<u64>,
737}
738#[allow(clippy::derive_partial_eq_without_eq)]
741#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
742#[proto_message(type_url = "/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse")]
743pub struct QueryPacketAcknowledgementsResponse {
744 #[prost(message, repeated, tag = "1")]
745 pub acknowledgements: ::prost::alloc::vec::Vec<PacketState>,
746 #[prost(message, optional, tag = "2")]
748 pub pagination: ::core::option::Option<
749 super::super::super::super::cosmos::base::query::v1beta1::PageResponse,
750 >,
751 #[prost(message, optional, tag = "3")]
753 pub height: ::core::option::Option<super::super::client::v1::Height>,
754}
755#[allow(clippy::derive_partial_eq_without_eq)]
758#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
759#[proto_message(type_url = "/ibc.core.channel.v1.QueryUnreceivedPacketsRequest")]
760#[proto_query(
761 path = "/ibc.core.channel.v1.Query/UnreceivedPackets",
762 response_type = QueryUnreceivedPacketsResponse
763)]
764pub struct QueryUnreceivedPacketsRequest {
765 #[prost(string, tag = "1")]
767 pub port_id: ::prost::alloc::string::String,
768 #[prost(string, tag = "2")]
770 pub channel_id: ::prost::alloc::string::String,
771 #[prost(uint64, repeated, tag = "3")]
773 pub packet_commitment_sequences: ::prost::alloc::vec::Vec<u64>,
774}
775#[allow(clippy::derive_partial_eq_without_eq)]
778#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
779#[proto_message(type_url = "/ibc.core.channel.v1.QueryUnreceivedPacketsResponse")]
780pub struct QueryUnreceivedPacketsResponse {
781 #[prost(uint64, repeated, tag = "1")]
783 pub sequences: ::prost::alloc::vec::Vec<u64>,
784 #[prost(message, optional, tag = "2")]
786 pub height: ::core::option::Option<super::super::client::v1::Height>,
787}
788#[allow(clippy::derive_partial_eq_without_eq)]
791#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
792#[proto_message(type_url = "/ibc.core.channel.v1.QueryUnreceivedAcksRequest")]
793#[proto_query(
794 path = "/ibc.core.channel.v1.Query/UnreceivedAcks",
795 response_type = QueryUnreceivedAcksResponse
796)]
797pub struct QueryUnreceivedAcksRequest {
798 #[prost(string, tag = "1")]
800 pub port_id: ::prost::alloc::string::String,
801 #[prost(string, tag = "2")]
803 pub channel_id: ::prost::alloc::string::String,
804 #[prost(uint64, repeated, tag = "3")]
806 pub packet_ack_sequences: ::prost::alloc::vec::Vec<u64>,
807}
808#[allow(clippy::derive_partial_eq_without_eq)]
811#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
812#[proto_message(type_url = "/ibc.core.channel.v1.QueryUnreceivedAcksResponse")]
813pub struct QueryUnreceivedAcksResponse {
814 #[prost(uint64, repeated, tag = "1")]
816 pub sequences: ::prost::alloc::vec::Vec<u64>,
817 #[prost(message, optional, tag = "2")]
819 pub height: ::core::option::Option<super::super::client::v1::Height>,
820}
821#[allow(clippy::derive_partial_eq_without_eq)]
824#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
825#[proto_message(type_url = "/ibc.core.channel.v1.QueryNextSequenceReceiveRequest")]
826#[proto_query(
827 path = "/ibc.core.channel.v1.Query/NextSequenceReceive",
828 response_type = QueryNextSequenceReceiveResponse
829)]
830pub struct QueryNextSequenceReceiveRequest {
831 #[prost(string, tag = "1")]
833 pub port_id: ::prost::alloc::string::String,
834 #[prost(string, tag = "2")]
836 pub channel_id: ::prost::alloc::string::String,
837}
838#[allow(clippy::derive_partial_eq_without_eq)]
841#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
842#[proto_message(type_url = "/ibc.core.channel.v1.QueryNextSequenceReceiveResponse")]
843pub struct QueryNextSequenceReceiveResponse {
844 #[prost(uint64, tag = "1")]
846 pub next_sequence_receive: u64,
847 #[prost(bytes = "vec", tag = "2")]
849 pub proof: ::prost::alloc::vec::Vec<u8>,
850 #[prost(message, optional, tag = "3")]
852 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
853}
854#[allow(clippy::derive_partial_eq_without_eq)]
857#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
858#[proto_message(type_url = "/ibc.core.channel.v1.QueryNextSequenceSendRequest")]
859#[proto_query(
860 path = "/ibc.core.channel.v1.Query/NextSequenceSend",
861 response_type = QueryNextSequenceSendResponse
862)]
863pub struct QueryNextSequenceSendRequest {
864 #[prost(string, tag = "1")]
866 pub port_id: ::prost::alloc::string::String,
867 #[prost(string, tag = "2")]
869 pub channel_id: ::prost::alloc::string::String,
870}
871#[allow(clippy::derive_partial_eq_without_eq)]
874#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
875#[proto_message(type_url = "/ibc.core.channel.v1.QueryNextSequenceSendResponse")]
876pub struct QueryNextSequenceSendResponse {
877 #[prost(uint64, tag = "1")]
879 pub next_sequence_send: u64,
880 #[prost(bytes = "vec", tag = "2")]
882 pub proof: ::prost::alloc::vec::Vec<u8>,
883 #[prost(message, optional, tag = "3")]
885 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
886}
887#[allow(clippy::derive_partial_eq_without_eq)]
889#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
890#[proto_message(type_url = "/ibc.core.channel.v1.QueryUpgradeErrorRequest")]
891#[proto_query(
892 path = "/ibc.core.channel.v1.Query/UpgradeError",
893 response_type = QueryUpgradeErrorResponse
894)]
895pub struct QueryUpgradeErrorRequest {
896 #[prost(string, tag = "1")]
897 pub port_id: ::prost::alloc::string::String,
898 #[prost(string, tag = "2")]
899 pub channel_id: ::prost::alloc::string::String,
900}
901#[allow(clippy::derive_partial_eq_without_eq)]
903#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
904#[proto_message(type_url = "/ibc.core.channel.v1.QueryUpgradeErrorResponse")]
905pub struct QueryUpgradeErrorResponse {
906 #[prost(message, optional, tag = "1")]
907 pub error_receipt: ::core::option::Option<ErrorReceipt>,
908 #[prost(bytes = "vec", tag = "2")]
910 pub proof: ::prost::alloc::vec::Vec<u8>,
911 #[prost(message, optional, tag = "3")]
913 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
914}
915#[allow(clippy::derive_partial_eq_without_eq)]
917#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
918#[proto_message(type_url = "/ibc.core.channel.v1.QueryUpgradeRequest")]
919#[proto_query(
920 path = "/ibc.core.channel.v1.Query/Upgrade",
921 response_type = QueryUpgradeResponse
922)]
923pub struct QueryUpgradeRequest {
924 #[prost(string, tag = "1")]
925 pub port_id: ::prost::alloc::string::String,
926 #[prost(string, tag = "2")]
927 pub channel_id: ::prost::alloc::string::String,
928}
929#[allow(clippy::derive_partial_eq_without_eq)]
931#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
932#[proto_message(type_url = "/ibc.core.channel.v1.QueryUpgradeResponse")]
933pub struct QueryUpgradeResponse {
934 #[prost(message, optional, tag = "1")]
935 pub upgrade: ::core::option::Option<Upgrade>,
936 #[prost(bytes = "vec", tag = "2")]
938 pub proof: ::prost::alloc::vec::Vec<u8>,
939 #[prost(message, optional, tag = "3")]
941 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
942}
943#[allow(clippy::derive_partial_eq_without_eq)]
945#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
946#[proto_message(type_url = "/ibc.core.channel.v1.QueryChannelParamsRequest")]
947#[proto_query(
948 path = "/ibc.core.channel.v1.Query/ChannelParams",
949 response_type = QueryChannelParamsResponse
950)]
951pub struct QueryChannelParamsRequest {}
952#[allow(clippy::derive_partial_eq_without_eq)]
954#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
955#[proto_message(type_url = "/ibc.core.channel.v1.QueryChannelParamsResponse")]
956pub struct QueryChannelParamsResponse {
957 #[prost(message, optional, tag = "1")]
959 pub params: ::core::option::Option<Params>,
960}
961#[allow(clippy::derive_partial_eq_without_eq)]
964#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
965#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelOpenInit")]
966pub struct MsgChannelOpenInit {
967 #[prost(string, tag = "1")]
968 pub port_id: ::prost::alloc::string::String,
969 #[prost(message, optional, tag = "2")]
970 pub channel: ::core::option::Option<Channel>,
971 #[prost(string, tag = "3")]
972 pub signer: ::prost::alloc::string::String,
973}
974#[allow(clippy::derive_partial_eq_without_eq)]
976#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
977#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelOpenInitResponse")]
978pub struct MsgChannelOpenInitResponse {
979 #[prost(string, tag = "1")]
980 pub channel_id: ::prost::alloc::string::String,
981 #[prost(string, tag = "2")]
982 pub version: ::prost::alloc::string::String,
983}
984#[allow(clippy::derive_partial_eq_without_eq)]
988#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
989#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelOpenTry")]
990pub struct MsgChannelOpenTry {
991 #[prost(string, tag = "1")]
992 pub port_id: ::prost::alloc::string::String,
993 #[deprecated]
995 #[prost(string, tag = "2")]
996 pub previous_channel_id: ::prost::alloc::string::String,
997 #[prost(message, optional, tag = "3")]
999 pub channel: ::core::option::Option<Channel>,
1000 #[prost(string, tag = "4")]
1001 pub counterparty_version: ::prost::alloc::string::String,
1002 #[prost(bytes = "vec", tag = "5")]
1003 pub proof_init: ::prost::alloc::vec::Vec<u8>,
1004 #[prost(message, optional, tag = "6")]
1005 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1006 #[prost(string, tag = "7")]
1007 pub signer: ::prost::alloc::string::String,
1008}
1009#[allow(clippy::derive_partial_eq_without_eq)]
1011#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1012#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelOpenTryResponse")]
1013pub struct MsgChannelOpenTryResponse {
1014 #[prost(string, tag = "1")]
1015 pub version: ::prost::alloc::string::String,
1016 #[prost(string, tag = "2")]
1017 pub channel_id: ::prost::alloc::string::String,
1018}
1019#[allow(clippy::derive_partial_eq_without_eq)]
1025#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1026#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelOpenAck")]
1027pub struct MsgChannelOpenAck {
1028 #[prost(string, tag = "1")]
1029 pub port_id: ::prost::alloc::string::String,
1030 #[prost(string, tag = "2")]
1031 pub channel_id: ::prost::alloc::string::String,
1032 #[prost(string, tag = "3")]
1033 pub counterparty_channel_id: ::prost::alloc::string::String,
1034 #[prost(string, tag = "4")]
1035 pub counterparty_version: ::prost::alloc::string::String,
1036 #[prost(bytes = "vec", tag = "5")]
1037 pub proof_try: ::prost::alloc::vec::Vec<u8>,
1038 #[prost(message, optional, tag = "6")]
1039 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1040 #[prost(string, tag = "7")]
1041 pub signer: ::prost::alloc::string::String,
1042}
1043#[allow(clippy::derive_partial_eq_without_eq)]
1045#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1046#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelOpenAckResponse")]
1047pub struct MsgChannelOpenAckResponse {}
1048#[allow(clippy::derive_partial_eq_without_eq)]
1051#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1052#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelOpenConfirm")]
1053pub struct MsgChannelOpenConfirm {
1054 #[prost(string, tag = "1")]
1055 pub port_id: ::prost::alloc::string::String,
1056 #[prost(string, tag = "2")]
1057 pub channel_id: ::prost::alloc::string::String,
1058 #[prost(bytes = "vec", tag = "3")]
1059 pub proof_ack: ::prost::alloc::vec::Vec<u8>,
1060 #[prost(message, optional, tag = "4")]
1061 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1062 #[prost(string, tag = "5")]
1063 pub signer: ::prost::alloc::string::String,
1064}
1065#[allow(clippy::derive_partial_eq_without_eq)]
1068#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1069#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelOpenConfirmResponse")]
1070pub struct MsgChannelOpenConfirmResponse {}
1071#[allow(clippy::derive_partial_eq_without_eq)]
1074#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1075#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelCloseInit")]
1076pub struct MsgChannelCloseInit {
1077 #[prost(string, tag = "1")]
1078 pub port_id: ::prost::alloc::string::String,
1079 #[prost(string, tag = "2")]
1080 pub channel_id: ::prost::alloc::string::String,
1081 #[prost(string, tag = "3")]
1082 pub signer: ::prost::alloc::string::String,
1083}
1084#[allow(clippy::derive_partial_eq_without_eq)]
1086#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1087#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelCloseInitResponse")]
1088pub struct MsgChannelCloseInitResponse {}
1089#[allow(clippy::derive_partial_eq_without_eq)]
1092#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1093#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelCloseConfirm")]
1094pub struct MsgChannelCloseConfirm {
1095 #[prost(string, tag = "1")]
1096 pub port_id: ::prost::alloc::string::String,
1097 #[prost(string, tag = "2")]
1098 pub channel_id: ::prost::alloc::string::String,
1099 #[prost(bytes = "vec", tag = "3")]
1100 pub proof_init: ::prost::alloc::vec::Vec<u8>,
1101 #[prost(message, optional, tag = "4")]
1102 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1103 #[prost(string, tag = "5")]
1104 pub signer: ::prost::alloc::string::String,
1105 #[prost(uint64, tag = "6")]
1106 pub counterparty_upgrade_sequence: u64,
1107}
1108#[allow(clippy::derive_partial_eq_without_eq)]
1111#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1112#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelCloseConfirmResponse")]
1113pub struct MsgChannelCloseConfirmResponse {}
1114#[allow(clippy::derive_partial_eq_without_eq)]
1116#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1117#[proto_message(type_url = "/ibc.core.channel.v1.MsgRecvPacket")]
1118pub struct MsgRecvPacket {
1119 #[prost(message, optional, tag = "1")]
1120 pub packet: ::core::option::Option<Packet>,
1121 #[prost(bytes = "vec", tag = "2")]
1122 pub proof_commitment: ::prost::alloc::vec::Vec<u8>,
1123 #[prost(message, optional, tag = "3")]
1124 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1125 #[prost(string, tag = "4")]
1126 pub signer: ::prost::alloc::string::String,
1127}
1128#[allow(clippy::derive_partial_eq_without_eq)]
1130#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1131#[proto_message(type_url = "/ibc.core.channel.v1.MsgRecvPacketResponse")]
1132pub struct MsgRecvPacketResponse {
1133 #[prost(enumeration = "ResponseResultType", tag = "1")]
1134 pub result: i32,
1135}
1136#[allow(clippy::derive_partial_eq_without_eq)]
1138#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1139#[proto_message(type_url = "/ibc.core.channel.v1.MsgTimeout")]
1140pub struct MsgTimeout {
1141 #[prost(message, optional, tag = "1")]
1142 pub packet: ::core::option::Option<Packet>,
1143 #[prost(bytes = "vec", tag = "2")]
1144 pub proof_unreceived: ::prost::alloc::vec::Vec<u8>,
1145 #[prost(message, optional, tag = "3")]
1146 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1147 #[prost(uint64, tag = "4")]
1148 pub next_sequence_recv: u64,
1149 #[prost(string, tag = "5")]
1150 pub signer: ::prost::alloc::string::String,
1151}
1152#[allow(clippy::derive_partial_eq_without_eq)]
1154#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1155#[proto_message(type_url = "/ibc.core.channel.v1.MsgTimeoutResponse")]
1156pub struct MsgTimeoutResponse {
1157 #[prost(enumeration = "ResponseResultType", tag = "1")]
1158 pub result: i32,
1159}
1160#[allow(clippy::derive_partial_eq_without_eq)]
1162#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1163#[proto_message(type_url = "/ibc.core.channel.v1.MsgTimeoutOnClose")]
1164pub struct MsgTimeoutOnClose {
1165 #[prost(message, optional, tag = "1")]
1166 pub packet: ::core::option::Option<Packet>,
1167 #[prost(bytes = "vec", tag = "2")]
1168 pub proof_unreceived: ::prost::alloc::vec::Vec<u8>,
1169 #[prost(bytes = "vec", tag = "3")]
1170 pub proof_close: ::prost::alloc::vec::Vec<u8>,
1171 #[prost(message, optional, tag = "4")]
1172 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1173 #[prost(uint64, tag = "5")]
1174 pub next_sequence_recv: u64,
1175 #[prost(string, tag = "6")]
1176 pub signer: ::prost::alloc::string::String,
1177 #[prost(uint64, tag = "7")]
1178 pub counterparty_upgrade_sequence: u64,
1179}
1180#[allow(clippy::derive_partial_eq_without_eq)]
1182#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1183#[proto_message(type_url = "/ibc.core.channel.v1.MsgTimeoutOnCloseResponse")]
1184pub struct MsgTimeoutOnCloseResponse {
1185 #[prost(enumeration = "ResponseResultType", tag = "1")]
1186 pub result: i32,
1187}
1188#[allow(clippy::derive_partial_eq_without_eq)]
1190#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1191#[proto_message(type_url = "/ibc.core.channel.v1.MsgAcknowledgement")]
1192pub struct MsgAcknowledgement {
1193 #[prost(message, optional, tag = "1")]
1194 pub packet: ::core::option::Option<Packet>,
1195 #[prost(bytes = "vec", tag = "2")]
1196 pub acknowledgement: ::prost::alloc::vec::Vec<u8>,
1197 #[prost(bytes = "vec", tag = "3")]
1198 pub proof_acked: ::prost::alloc::vec::Vec<u8>,
1199 #[prost(message, optional, tag = "4")]
1200 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1201 #[prost(string, tag = "5")]
1202 pub signer: ::prost::alloc::string::String,
1203}
1204#[allow(clippy::derive_partial_eq_without_eq)]
1206#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1207#[proto_message(type_url = "/ibc.core.channel.v1.MsgAcknowledgementResponse")]
1208pub struct MsgAcknowledgementResponse {
1209 #[prost(enumeration = "ResponseResultType", tag = "1")]
1210 pub result: i32,
1211}
1212#[allow(clippy::derive_partial_eq_without_eq)]
1216#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1217#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeInit")]
1218pub struct MsgChannelUpgradeInit {
1219 #[prost(string, tag = "1")]
1220 pub port_id: ::prost::alloc::string::String,
1221 #[prost(string, tag = "2")]
1222 pub channel_id: ::prost::alloc::string::String,
1223 #[prost(message, optional, tag = "3")]
1224 pub fields: ::core::option::Option<UpgradeFields>,
1225 #[prost(string, tag = "4")]
1226 pub signer: ::prost::alloc::string::String,
1227}
1228#[allow(clippy::derive_partial_eq_without_eq)]
1230#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1231#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeInitResponse")]
1232pub struct MsgChannelUpgradeInitResponse {
1233 #[prost(message, optional, tag = "1")]
1234 pub upgrade: ::core::option::Option<Upgrade>,
1235 #[prost(uint64, tag = "2")]
1236 pub upgrade_sequence: u64,
1237}
1238#[allow(clippy::derive_partial_eq_without_eq)]
1240#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1241#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeTry")]
1242pub struct MsgChannelUpgradeTry {
1243 #[prost(string, tag = "1")]
1244 pub port_id: ::prost::alloc::string::String,
1245 #[prost(string, tag = "2")]
1246 pub channel_id: ::prost::alloc::string::String,
1247 #[prost(string, repeated, tag = "3")]
1248 pub proposed_upgrade_connection_hops: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1249 #[prost(message, optional, tag = "4")]
1250 pub counterparty_upgrade_fields: ::core::option::Option<UpgradeFields>,
1251 #[prost(uint64, tag = "5")]
1252 pub counterparty_upgrade_sequence: u64,
1253 #[prost(bytes = "vec", tag = "6")]
1254 pub proof_channel: ::prost::alloc::vec::Vec<u8>,
1255 #[prost(bytes = "vec", tag = "7")]
1256 pub proof_upgrade: ::prost::alloc::vec::Vec<u8>,
1257 #[prost(message, optional, tag = "8")]
1258 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1259 #[prost(string, tag = "9")]
1260 pub signer: ::prost::alloc::string::String,
1261}
1262#[allow(clippy::derive_partial_eq_without_eq)]
1264#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1265#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeTryResponse")]
1266pub struct MsgChannelUpgradeTryResponse {
1267 #[prost(message, optional, tag = "1")]
1268 pub upgrade: ::core::option::Option<Upgrade>,
1269 #[prost(uint64, tag = "2")]
1270 pub upgrade_sequence: u64,
1271 #[prost(enumeration = "ResponseResultType", tag = "3")]
1272 pub result: i32,
1273}
1274#[allow(clippy::derive_partial_eq_without_eq)]
1276#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1277#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeAck")]
1278pub struct MsgChannelUpgradeAck {
1279 #[prost(string, tag = "1")]
1280 pub port_id: ::prost::alloc::string::String,
1281 #[prost(string, tag = "2")]
1282 pub channel_id: ::prost::alloc::string::String,
1283 #[prost(message, optional, tag = "3")]
1284 pub counterparty_upgrade: ::core::option::Option<Upgrade>,
1285 #[prost(bytes = "vec", tag = "4")]
1286 pub proof_channel: ::prost::alloc::vec::Vec<u8>,
1287 #[prost(bytes = "vec", tag = "5")]
1288 pub proof_upgrade: ::prost::alloc::vec::Vec<u8>,
1289 #[prost(message, optional, tag = "6")]
1290 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1291 #[prost(string, tag = "7")]
1292 pub signer: ::prost::alloc::string::String,
1293}
1294#[allow(clippy::derive_partial_eq_without_eq)]
1296#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1297#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeAckResponse")]
1298pub struct MsgChannelUpgradeAckResponse {
1299 #[prost(enumeration = "ResponseResultType", tag = "1")]
1300 pub result: i32,
1301}
1302#[allow(clippy::derive_partial_eq_without_eq)]
1304#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1305#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeConfirm")]
1306pub struct MsgChannelUpgradeConfirm {
1307 #[prost(string, tag = "1")]
1308 pub port_id: ::prost::alloc::string::String,
1309 #[prost(string, tag = "2")]
1310 pub channel_id: ::prost::alloc::string::String,
1311 #[prost(enumeration = "State", tag = "3")]
1312 pub counterparty_channel_state: i32,
1313 #[prost(message, optional, tag = "4")]
1314 pub counterparty_upgrade: ::core::option::Option<Upgrade>,
1315 #[prost(bytes = "vec", tag = "5")]
1316 pub proof_channel: ::prost::alloc::vec::Vec<u8>,
1317 #[prost(bytes = "vec", tag = "6")]
1318 pub proof_upgrade: ::prost::alloc::vec::Vec<u8>,
1319 #[prost(message, optional, tag = "7")]
1320 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1321 #[prost(string, tag = "8")]
1322 pub signer: ::prost::alloc::string::String,
1323}
1324#[allow(clippy::derive_partial_eq_without_eq)]
1326#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1327#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeConfirmResponse")]
1328pub struct MsgChannelUpgradeConfirmResponse {
1329 #[prost(enumeration = "ResponseResultType", tag = "1")]
1330 pub result: i32,
1331}
1332#[allow(clippy::derive_partial_eq_without_eq)]
1334#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1335#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeOpen")]
1336pub struct MsgChannelUpgradeOpen {
1337 #[prost(string, tag = "1")]
1338 pub port_id: ::prost::alloc::string::String,
1339 #[prost(string, tag = "2")]
1340 pub channel_id: ::prost::alloc::string::String,
1341 #[prost(enumeration = "State", tag = "3")]
1342 pub counterparty_channel_state: i32,
1343 #[prost(uint64, tag = "4")]
1344 pub counterparty_upgrade_sequence: u64,
1345 #[prost(bytes = "vec", tag = "5")]
1346 pub proof_channel: ::prost::alloc::vec::Vec<u8>,
1347 #[prost(message, optional, tag = "6")]
1348 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1349 #[prost(string, tag = "7")]
1350 pub signer: ::prost::alloc::string::String,
1351}
1352#[allow(clippy::derive_partial_eq_without_eq)]
1354#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1355#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeOpenResponse")]
1356pub struct MsgChannelUpgradeOpenResponse {}
1357#[allow(clippy::derive_partial_eq_without_eq)]
1359#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1360#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeTimeout")]
1361pub struct MsgChannelUpgradeTimeout {
1362 #[prost(string, tag = "1")]
1363 pub port_id: ::prost::alloc::string::String,
1364 #[prost(string, tag = "2")]
1365 pub channel_id: ::prost::alloc::string::String,
1366 #[prost(message, optional, tag = "3")]
1367 pub counterparty_channel: ::core::option::Option<Channel>,
1368 #[prost(bytes = "vec", tag = "4")]
1369 pub proof_channel: ::prost::alloc::vec::Vec<u8>,
1370 #[prost(message, optional, tag = "5")]
1371 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1372 #[prost(string, tag = "6")]
1373 pub signer: ::prost::alloc::string::String,
1374}
1375#[allow(clippy::derive_partial_eq_without_eq)]
1377#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1378#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse")]
1379pub struct MsgChannelUpgradeTimeoutResponse {}
1380#[allow(clippy::derive_partial_eq_without_eq)]
1382#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1383#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeCancel")]
1384pub struct MsgChannelUpgradeCancel {
1385 #[prost(string, tag = "1")]
1386 pub port_id: ::prost::alloc::string::String,
1387 #[prost(string, tag = "2")]
1388 pub channel_id: ::prost::alloc::string::String,
1389 #[prost(message, optional, tag = "3")]
1390 pub error_receipt: ::core::option::Option<ErrorReceipt>,
1391 #[prost(bytes = "vec", tag = "4")]
1392 pub proof_error_receipt: ::prost::alloc::vec::Vec<u8>,
1393 #[prost(message, optional, tag = "5")]
1394 pub proof_height: ::core::option::Option<super::super::client::v1::Height>,
1395 #[prost(string, tag = "6")]
1396 pub signer: ::prost::alloc::string::String,
1397}
1398#[allow(clippy::derive_partial_eq_without_eq)]
1400#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1401#[proto_message(type_url = "/ibc.core.channel.v1.MsgChannelUpgradeCancelResponse")]
1402pub struct MsgChannelUpgradeCancelResponse {}
1403#[allow(clippy::derive_partial_eq_without_eq)]
1405#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1406#[proto_message(type_url = "/ibc.core.channel.v1.MsgUpdateParams")]
1407pub struct MsgUpdateParams {
1408 #[prost(string, tag = "1")]
1410 pub authority: ::prost::alloc::string::String,
1411 #[prost(message, optional, tag = "2")]
1415 pub params: ::core::option::Option<Params>,
1416}
1417#[allow(clippy::derive_partial_eq_without_eq)]
1419#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1420#[proto_message(type_url = "/ibc.core.channel.v1.MsgUpdateParamsResponse")]
1421pub struct MsgUpdateParamsResponse {}
1422#[allow(clippy::derive_partial_eq_without_eq)]
1424#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1425#[proto_message(type_url = "/ibc.core.channel.v1.MsgPruneAcknowledgements")]
1426pub struct MsgPruneAcknowledgements {
1427 #[prost(string, tag = "1")]
1428 pub port_id: ::prost::alloc::string::String,
1429 #[prost(string, tag = "2")]
1430 pub channel_id: ::prost::alloc::string::String,
1431 #[prost(uint64, tag = "3")]
1432 pub limit: u64,
1433 #[prost(string, tag = "4")]
1434 pub signer: ::prost::alloc::string::String,
1435}
1436#[allow(clippy::derive_partial_eq_without_eq)]
1438#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1439#[proto_message(type_url = "/ibc.core.channel.v1.MsgPruneAcknowledgementsResponse")]
1440pub struct MsgPruneAcknowledgementsResponse {
1441 #[prost(uint64, tag = "1")]
1443 pub total_pruned_sequences: u64,
1444 #[prost(uint64, tag = "2")]
1446 pub total_remaining_sequences: u64,
1447}
1448#[derive(
1450 Clone,
1451 Copy,
1452 Debug,
1453 PartialEq,
1454 Eq,
1455 Hash,
1456 PartialOrd,
1457 Ord,
1458 ::prost::Enumeration,
1459 ::schemars::JsonSchema,
1460)]
1461#[repr(i32)]
1462pub enum ResponseResultType {
1463 Unspecified = 0,
1465 Noop = 1,
1467 Success = 2,
1469 Failure = 3,
1471}
1472impl ResponseResultType {
1473 pub fn as_str_name(&self) -> &'static str {
1478 match self {
1479 ResponseResultType::Unspecified => "RESPONSE_RESULT_TYPE_UNSPECIFIED",
1480 ResponseResultType::Noop => "RESPONSE_RESULT_TYPE_NOOP",
1481 ResponseResultType::Success => "RESPONSE_RESULT_TYPE_SUCCESS",
1482 ResponseResultType::Failure => "RESPONSE_RESULT_TYPE_FAILURE",
1483 }
1484 }
1485 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1487 match value {
1488 "RESPONSE_RESULT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
1489 "RESPONSE_RESULT_TYPE_NOOP" => Some(Self::Noop),
1490 "RESPONSE_RESULT_TYPE_SUCCESS" => Some(Self::Success),
1491 "RESPONSE_RESULT_TYPE_FAILURE" => Some(Self::Failure),
1492 _ => None,
1493 }
1494 }
1495}
1496pub struct ChannelQuerier<'a, Q: cosmwasm_std::CustomQuery> {
1497 querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
1498}
1499impl<'a, Q: cosmwasm_std::CustomQuery> ChannelQuerier<'a, Q> {
1500 pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
1501 Self { querier }
1502 }
1503 pub fn channel(
1504 &self,
1505 port_id: ::prost::alloc::string::String,
1506 channel_id: ::prost::alloc::string::String,
1507 ) -> Result<QueryChannelResponse, cosmwasm_std::StdError> {
1508 QueryChannelRequest {
1509 port_id,
1510 channel_id,
1511 }
1512 .query(self.querier)
1513 }
1514 pub fn channels(
1515 &self,
1516 pagination: ::core::option::Option<
1517 super::super::super::super::cosmos::base::query::v1beta1::PageRequest,
1518 >,
1519 ) -> Result<QueryChannelsResponse, cosmwasm_std::StdError> {
1520 QueryChannelsRequest { pagination }.query(self.querier)
1521 }
1522 pub fn connection_channels(
1523 &self,
1524 connection: ::prost::alloc::string::String,
1525 pagination: ::core::option::Option<
1526 super::super::super::super::cosmos::base::query::v1beta1::PageRequest,
1527 >,
1528 ) -> Result<QueryConnectionChannelsResponse, cosmwasm_std::StdError> {
1529 QueryConnectionChannelsRequest {
1530 connection,
1531 pagination,
1532 }
1533 .query(self.querier)
1534 }
1535 pub fn channel_client_state(
1536 &self,
1537 port_id: ::prost::alloc::string::String,
1538 channel_id: ::prost::alloc::string::String,
1539 ) -> Result<QueryChannelClientStateResponse, cosmwasm_std::StdError> {
1540 QueryChannelClientStateRequest {
1541 port_id,
1542 channel_id,
1543 }
1544 .query(self.querier)
1545 }
1546 pub fn channel_consensus_state(
1547 &self,
1548 port_id: ::prost::alloc::string::String,
1549 channel_id: ::prost::alloc::string::String,
1550 revision_number: u64,
1551 revision_height: u64,
1552 ) -> Result<QueryChannelConsensusStateResponse, cosmwasm_std::StdError> {
1553 QueryChannelConsensusStateRequest {
1554 port_id,
1555 channel_id,
1556 revision_number,
1557 revision_height,
1558 }
1559 .query(self.querier)
1560 }
1561 pub fn packet_commitment(
1562 &self,
1563 port_id: ::prost::alloc::string::String,
1564 channel_id: ::prost::alloc::string::String,
1565 sequence: u64,
1566 ) -> Result<QueryPacketCommitmentResponse, cosmwasm_std::StdError> {
1567 QueryPacketCommitmentRequest {
1568 port_id,
1569 channel_id,
1570 sequence,
1571 }
1572 .query(self.querier)
1573 }
1574 pub fn packet_commitments(
1575 &self,
1576 port_id: ::prost::alloc::string::String,
1577 channel_id: ::prost::alloc::string::String,
1578 pagination: ::core::option::Option<
1579 super::super::super::super::cosmos::base::query::v1beta1::PageRequest,
1580 >,
1581 ) -> Result<QueryPacketCommitmentsResponse, cosmwasm_std::StdError> {
1582 QueryPacketCommitmentsRequest {
1583 port_id,
1584 channel_id,
1585 pagination,
1586 }
1587 .query(self.querier)
1588 }
1589 pub fn packet_receipt(
1590 &self,
1591 port_id: ::prost::alloc::string::String,
1592 channel_id: ::prost::alloc::string::String,
1593 sequence: u64,
1594 ) -> Result<QueryPacketReceiptResponse, cosmwasm_std::StdError> {
1595 QueryPacketReceiptRequest {
1596 port_id,
1597 channel_id,
1598 sequence,
1599 }
1600 .query(self.querier)
1601 }
1602 pub fn packet_acknowledgement(
1603 &self,
1604 port_id: ::prost::alloc::string::String,
1605 channel_id: ::prost::alloc::string::String,
1606 sequence: u64,
1607 ) -> Result<QueryPacketAcknowledgementResponse, cosmwasm_std::StdError> {
1608 QueryPacketAcknowledgementRequest {
1609 port_id,
1610 channel_id,
1611 sequence,
1612 }
1613 .query(self.querier)
1614 }
1615 pub fn packet_acknowledgements(
1616 &self,
1617 port_id: ::prost::alloc::string::String,
1618 channel_id: ::prost::alloc::string::String,
1619 pagination: ::core::option::Option<
1620 super::super::super::super::cosmos::base::query::v1beta1::PageRequest,
1621 >,
1622 packet_commitment_sequences: ::prost::alloc::vec::Vec<u64>,
1623 ) -> Result<QueryPacketAcknowledgementsResponse, cosmwasm_std::StdError> {
1624 QueryPacketAcknowledgementsRequest {
1625 port_id,
1626 channel_id,
1627 pagination,
1628 packet_commitment_sequences,
1629 }
1630 .query(self.querier)
1631 }
1632 pub fn unreceived_packets(
1633 &self,
1634 port_id: ::prost::alloc::string::String,
1635 channel_id: ::prost::alloc::string::String,
1636 packet_commitment_sequences: ::prost::alloc::vec::Vec<u64>,
1637 ) -> Result<QueryUnreceivedPacketsResponse, cosmwasm_std::StdError> {
1638 QueryUnreceivedPacketsRequest {
1639 port_id,
1640 channel_id,
1641 packet_commitment_sequences,
1642 }
1643 .query(self.querier)
1644 }
1645 pub fn unreceived_acks(
1646 &self,
1647 port_id: ::prost::alloc::string::String,
1648 channel_id: ::prost::alloc::string::String,
1649 packet_ack_sequences: ::prost::alloc::vec::Vec<u64>,
1650 ) -> Result<QueryUnreceivedAcksResponse, cosmwasm_std::StdError> {
1651 QueryUnreceivedAcksRequest {
1652 port_id,
1653 channel_id,
1654 packet_ack_sequences,
1655 }
1656 .query(self.querier)
1657 }
1658 pub fn next_sequence_receive(
1659 &self,
1660 port_id: ::prost::alloc::string::String,
1661 channel_id: ::prost::alloc::string::String,
1662 ) -> Result<QueryNextSequenceReceiveResponse, cosmwasm_std::StdError> {
1663 QueryNextSequenceReceiveRequest {
1664 port_id,
1665 channel_id,
1666 }
1667 .query(self.querier)
1668 }
1669 pub fn next_sequence_send(
1670 &self,
1671 port_id: ::prost::alloc::string::String,
1672 channel_id: ::prost::alloc::string::String,
1673 ) -> Result<QueryNextSequenceSendResponse, cosmwasm_std::StdError> {
1674 QueryNextSequenceSendRequest {
1675 port_id,
1676 channel_id,
1677 }
1678 .query(self.querier)
1679 }
1680 pub fn upgrade_error(
1681 &self,
1682 port_id: ::prost::alloc::string::String,
1683 channel_id: ::prost::alloc::string::String,
1684 ) -> Result<QueryUpgradeErrorResponse, cosmwasm_std::StdError> {
1685 QueryUpgradeErrorRequest {
1686 port_id,
1687 channel_id,
1688 }
1689 .query(self.querier)
1690 }
1691 pub fn upgrade(
1692 &self,
1693 port_id: ::prost::alloc::string::String,
1694 channel_id: ::prost::alloc::string::String,
1695 ) -> Result<QueryUpgradeResponse, cosmwasm_std::StdError> {
1696 QueryUpgradeRequest {
1697 port_id,
1698 channel_id,
1699 }
1700 .query(self.querier)
1701 }
1702 pub fn channel_params(&self) -> Result<QueryChannelParamsResponse, cosmwasm_std::StdError> {
1703 QueryChannelParamsRequest {}.query(self.querier)
1704 }
1705}