1use neutron_std_derive::CosmwasmExt;
2#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(
5 Clone,
6 PartialEq,
7 Eq,
8 ::prost::Message,
9 ::serde::Serialize,
10 ::serde::Deserialize,
11 ::schemars::JsonSchema,
12 CosmwasmExt,
13)]
14#[proto_message(type_url = "/neutron.interchainqueries.Params")]
15pub struct Params {
16 #[prost(uint64, tag = "1")]
20 #[serde(
21 serialize_with = "crate::serde::as_str::serialize",
22 deserialize_with = "crate::serde::as_str::deserialize"
23 )]
24 pub query_submit_timeout: u64,
25 #[prost(message, repeated, tag = "2")]
27 pub query_deposit: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
28 #[prost(uint64, tag = "3")]
31 #[serde(
32 serialize_with = "crate::serde::as_str::serialize",
33 deserialize_with = "crate::serde::as_str::deserialize"
34 )]
35 pub tx_query_removal_limit: u64,
36 #[prost(uint64, tag = "4")]
38 #[serde(
39 serialize_with = "crate::serde::as_str::serialize",
40 deserialize_with = "crate::serde::as_str::deserialize"
41 )]
42 pub max_kv_query_keys_count: u64,
43 #[prost(uint64, tag = "5")]
45 #[serde(
46 serialize_with = "crate::serde::as_str::serialize",
47 deserialize_with = "crate::serde::as_str::deserialize"
48 )]
49 pub max_transactions_filters: u64,
50}
51#[allow(clippy::derive_partial_eq_without_eq)]
53#[derive(
54 Clone,
55 PartialEq,
56 Eq,
57 ::prost::Message,
58 ::serde::Serialize,
59 ::serde::Deserialize,
60 ::schemars::JsonSchema,
61 CosmwasmExt,
62)]
63#[proto_message(type_url = "/neutron.interchainqueries.RegisteredQuery")]
64pub struct RegisteredQuery {
65 #[prost(uint64, tag = "1")]
67 #[serde(alias = "ID")]
68 #[serde(
69 serialize_with = "crate::serde::as_str::serialize",
70 deserialize_with = "crate::serde::as_str::deserialize"
71 )]
72 pub id: u64,
73 #[prost(string, tag = "2")]
75 pub owner: ::prost::alloc::string::String,
76 #[prost(string, tag = "3")]
78 pub query_type: ::prost::alloc::string::String,
79 #[prost(message, repeated, tag = "4")]
83 pub keys: ::prost::alloc::vec::Vec<KvKey>,
84 #[prost(string, tag = "5")]
89 pub transactions_filter: ::prost::alloc::string::String,
90 #[prost(string, tag = "6")]
93 #[serde(alias = "connectionID")]
94 pub connection_id: ::prost::alloc::string::String,
95 #[prost(uint64, tag = "7")]
98 #[serde(
99 serialize_with = "crate::serde::as_str::serialize",
100 deserialize_with = "crate::serde::as_str::deserialize"
101 )]
102 pub update_period: u64,
103 #[prost(uint64, tag = "8")]
105 #[serde(
106 serialize_with = "crate::serde::as_str::serialize",
107 deserialize_with = "crate::serde::as_str::deserialize"
108 )]
109 pub last_submitted_result_local_height: u64,
110 #[prost(message, optional, tag = "9")]
112 pub last_submitted_result_remote_height:
113 ::core::option::Option<super::super::ibc::core::client::v1::Height>,
114 #[prost(message, repeated, tag = "10")]
117 pub deposit: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
118 #[prost(uint64, tag = "11")]
121 #[serde(
122 serialize_with = "crate::serde::as_str::serialize",
123 deserialize_with = "crate::serde::as_str::deserialize"
124 )]
125 pub submit_timeout: u64,
126 #[prost(uint64, tag = "12")]
128 #[serde(
129 serialize_with = "crate::serde::as_str::serialize",
130 deserialize_with = "crate::serde::as_str::deserialize"
131 )]
132 pub registered_at_height: u64,
133}
134#[allow(clippy::derive_partial_eq_without_eq)]
136#[derive(
137 Clone,
138 PartialEq,
139 Eq,
140 ::prost::Message,
141 ::serde::Serialize,
142 ::serde::Deserialize,
143 ::schemars::JsonSchema,
144 CosmwasmExt,
145)]
146#[proto_message(type_url = "/neutron.interchainqueries.KVKey")]
147pub struct KvKey {
148 #[prost(string, tag = "1")]
151 pub path: ::prost::alloc::string::String,
152 #[prost(bytes = "vec", tag = "2")]
154 #[serde(
155 serialize_with = "crate::serde::as_base64_encoded_string::serialize",
156 deserialize_with = "crate::serde::as_base64_encoded_string::deserialize"
157 )]
158 pub key: ::prost::alloc::vec::Vec<u8>,
159}
160#[allow(clippy::derive_partial_eq_without_eq)]
162#[derive(
163 Clone,
164 PartialEq,
165 Eq,
166 ::prost::Message,
167 ::serde::Serialize,
168 ::serde::Deserialize,
169 ::schemars::JsonSchema,
170 CosmwasmExt,
171)]
172#[proto_message(type_url = "/neutron.interchainqueries.GenesisState")]
173pub struct GenesisState {
174 #[prost(message, optional, tag = "1")]
176 pub params: ::core::option::Option<Params>,
177 #[prost(message, repeated, tag = "2")]
179 pub registered_queries: ::prost::alloc::vec::Vec<RegisteredQuery>,
180}
181#[allow(clippy::derive_partial_eq_without_eq)]
183#[derive(
184 Clone,
185 PartialEq,
186 Eq,
187 ::prost::Message,
188 ::serde::Serialize,
189 ::serde::Deserialize,
190 ::schemars::JsonSchema,
191 CosmwasmExt,
192)]
193#[proto_message(type_url = "/neutron.interchainqueries.MsgRegisterInterchainQuery")]
194pub struct MsgRegisterInterchainQuery {
195 #[prost(string, tag = "1")]
197 pub query_type: ::prost::alloc::string::String,
198 #[prost(message, repeated, tag = "2")]
202 pub keys: ::prost::alloc::vec::Vec<KvKey>,
203 #[prost(string, tag = "3")]
208 pub transactions_filter: ::prost::alloc::string::String,
209 #[prost(string, tag = "4")]
212 #[serde(alias = "connectionID")]
213 pub connection_id: ::prost::alloc::string::String,
214 #[prost(uint64, tag = "5")]
217 #[serde(
218 serialize_with = "crate::serde::as_str::serialize",
219 deserialize_with = "crate::serde::as_str::deserialize"
220 )]
221 pub update_period: u64,
222 #[prost(string, tag = "6")]
224 pub sender: ::prost::alloc::string::String,
225}
226#[allow(clippy::derive_partial_eq_without_eq)]
228#[derive(
229 Clone,
230 PartialEq,
231 Eq,
232 ::prost::Message,
233 ::serde::Serialize,
234 ::serde::Deserialize,
235 ::schemars::JsonSchema,
236 CosmwasmExt,
237)]
238#[proto_message(type_url = "/neutron.interchainqueries.MsgRegisterInterchainQueryResponse")]
239pub struct MsgRegisterInterchainQueryResponse {
240 #[prost(uint64, tag = "1")]
242 #[serde(alias = "ID")]
243 #[serde(
244 serialize_with = "crate::serde::as_str::serialize",
245 deserialize_with = "crate::serde::as_str::deserialize"
246 )]
247 pub id: u64,
248}
249#[allow(clippy::derive_partial_eq_without_eq)]
251#[derive(
252 Clone,
253 PartialEq,
254 Eq,
255 ::prost::Message,
256 ::serde::Serialize,
257 ::serde::Deserialize,
258 ::schemars::JsonSchema,
259 CosmwasmExt,
260)]
261#[proto_message(type_url = "/neutron.interchainqueries.MsgSubmitQueryResult")]
262pub struct MsgSubmitQueryResult {
263 #[prost(uint64, tag = "1")]
265 #[serde(alias = "queryID")]
266 #[serde(
267 serialize_with = "crate::serde::as_str::serialize",
268 deserialize_with = "crate::serde::as_str::deserialize"
269 )]
270 pub query_id: u64,
271 #[prost(string, tag = "2")]
273 pub sender: ::prost::alloc::string::String,
274 #[deprecated]
278 #[prost(string, tag = "3")]
279 #[serde(alias = "clientID")]
280 pub client_id: ::prost::alloc::string::String,
281 #[prost(message, optional, tag = "4")]
283 pub result: ::core::option::Option<QueryResult>,
284}
285#[allow(clippy::derive_partial_eq_without_eq)]
293#[derive(
294 Clone,
295 PartialEq,
296 Eq,
297 ::prost::Message,
298 ::serde::Serialize,
299 ::serde::Deserialize,
300 ::schemars::JsonSchema,
301 CosmwasmExt,
302)]
303#[proto_message(type_url = "/neutron.interchainqueries.QueryResult")]
304pub struct QueryResult {
305 #[prost(message, repeated, tag = "1")]
308 pub kv_results: ::prost::alloc::vec::Vec<StorageValue>,
309 #[prost(message, optional, tag = "2")]
313 pub block: ::core::option::Option<Block>,
314 #[prost(uint64, tag = "3")]
316 #[serde(
317 serialize_with = "crate::serde::as_str::serialize",
318 deserialize_with = "crate::serde::as_str::deserialize"
319 )]
320 pub height: u64,
321 #[prost(uint64, tag = "4")]
323 #[serde(
324 serialize_with = "crate::serde::as_str::serialize",
325 deserialize_with = "crate::serde::as_str::deserialize"
326 )]
327 pub revision: u64,
328 #[prost(bool, tag = "5")]
331 pub allow_kv_callbacks: bool,
332}
333#[allow(clippy::derive_partial_eq_without_eq)]
335#[derive(
336 Clone,
337 PartialEq,
338 Eq,
339 ::prost::Message,
340 ::serde::Serialize,
341 ::serde::Deserialize,
342 ::schemars::JsonSchema,
343 CosmwasmExt,
344)]
345#[proto_message(type_url = "/neutron.interchainqueries.StorageValue")]
346pub struct StorageValue {
347 #[prost(string, tag = "1")]
350 pub storage_prefix: ::prost::alloc::string::String,
351 #[prost(bytes = "vec", tag = "2")]
353 #[serde(
354 serialize_with = "crate::serde::as_base64_encoded_string::serialize",
355 deserialize_with = "crate::serde::as_base64_encoded_string::deserialize"
356 )]
357 pub key: ::prost::alloc::vec::Vec<u8>,
358 #[prost(bytes = "vec", tag = "3")]
360 #[serde(
361 serialize_with = "crate::serde::as_base64_encoded_string::serialize",
362 deserialize_with = "crate::serde::as_base64_encoded_string::deserialize"
363 )]
364 pub value: ::prost::alloc::vec::Vec<u8>,
365 #[prost(message, optional, tag = "4")]
369 pub proof: ::core::option::Option<super::super::tendermint::crypto::ProofOps>,
370}
371#[allow(clippy::derive_partial_eq_without_eq)]
373#[derive(
374 Clone,
375 PartialEq,
376 Eq,
377 ::prost::Message,
378 ::serde::Serialize,
379 ::serde::Deserialize,
380 ::schemars::JsonSchema,
381 CosmwasmExt,
382)]
383#[proto_message(type_url = "/neutron.interchainqueries.Block")]
384pub struct Block {
385 #[prost(message, optional, tag = "1")]
389 pub next_block_header: ::core::option::Option<crate::shim::Any>,
390 #[prost(message, optional, tag = "2")]
393 pub header: ::core::option::Option<crate::shim::Any>,
394 #[prost(message, optional, tag = "3")]
396 pub tx: ::core::option::Option<TxValue>,
397}
398#[allow(clippy::derive_partial_eq_without_eq)]
400#[derive(
401 Clone,
402 PartialEq,
403 Eq,
404 ::prost::Message,
405 ::serde::Serialize,
406 ::serde::Deserialize,
407 ::schemars::JsonSchema,
408 CosmwasmExt,
409)]
410#[proto_message(type_url = "/neutron.interchainqueries.TxValue")]
411pub struct TxValue {
412 #[prost(message, optional, tag = "1")]
414 pub response: ::core::option::Option<super::super::tendermint::abci::ExecTxResult>,
415 #[prost(message, optional, tag = "2")]
418 pub delivery_proof: ::core::option::Option<super::super::tendermint::crypto::Proof>,
419 #[prost(message, optional, tag = "3")]
421 pub inclusion_proof: ::core::option::Option<super::super::tendermint::crypto::Proof>,
422 #[prost(bytes = "vec", tag = "4")]
424 #[serde(
425 serialize_with = "crate::serde::as_base64_encoded_string::serialize",
426 deserialize_with = "crate::serde::as_base64_encoded_string::deserialize"
427 )]
428 pub data: ::prost::alloc::vec::Vec<u8>,
429}
430#[allow(clippy::derive_partial_eq_without_eq)]
432#[derive(
433 Clone,
434 PartialEq,
435 Eq,
436 ::prost::Message,
437 ::serde::Serialize,
438 ::serde::Deserialize,
439 ::schemars::JsonSchema,
440 CosmwasmExt,
441)]
442#[proto_message(type_url = "/neutron.interchainqueries.MsgSubmitQueryResultResponse")]
443pub struct MsgSubmitQueryResultResponse {}
444#[allow(clippy::derive_partial_eq_without_eq)]
446#[derive(
447 Clone,
448 PartialEq,
449 Eq,
450 ::prost::Message,
451 ::serde::Serialize,
452 ::serde::Deserialize,
453 ::schemars::JsonSchema,
454 CosmwasmExt,
455)]
456#[proto_message(type_url = "/neutron.interchainqueries.MsgRemoveInterchainQueryRequest")]
457pub struct MsgRemoveInterchainQueryRequest {
458 #[prost(uint64, tag = "1")]
460 #[serde(alias = "queryID")]
461 #[serde(
462 serialize_with = "crate::serde::as_str::serialize",
463 deserialize_with = "crate::serde::as_str::deserialize"
464 )]
465 pub query_id: u64,
466 #[prost(string, tag = "2")]
468 pub sender: ::prost::alloc::string::String,
469}
470#[allow(clippy::derive_partial_eq_without_eq)]
472#[derive(
473 Clone,
474 PartialEq,
475 Eq,
476 ::prost::Message,
477 ::serde::Serialize,
478 ::serde::Deserialize,
479 ::schemars::JsonSchema,
480 CosmwasmExt,
481)]
482#[proto_message(type_url = "/neutron.interchainqueries.MsgRemoveInterchainQueryResponse")]
483pub struct MsgRemoveInterchainQueryResponse {}
484#[allow(clippy::derive_partial_eq_without_eq)]
486#[derive(
487 Clone,
488 PartialEq,
489 Eq,
490 ::prost::Message,
491 ::serde::Serialize,
492 ::serde::Deserialize,
493 ::schemars::JsonSchema,
494 CosmwasmExt,
495)]
496#[proto_message(type_url = "/neutron.interchainqueries.MsgUpdateInterchainQueryRequest")]
497pub struct MsgUpdateInterchainQueryRequest {
498 #[prost(uint64, tag = "1")]
500 #[serde(alias = "queryID")]
501 #[serde(
502 serialize_with = "crate::serde::as_str::serialize",
503 deserialize_with = "crate::serde::as_str::deserialize"
504 )]
505 pub query_id: u64,
506 #[prost(message, repeated, tag = "2")]
510 pub new_keys: ::prost::alloc::vec::Vec<KvKey>,
511 #[prost(uint64, tag = "3")]
513 #[serde(
514 serialize_with = "crate::serde::as_str::serialize",
515 deserialize_with = "crate::serde::as_str::deserialize"
516 )]
517 pub new_update_period: u64,
518 #[prost(string, tag = "4")]
523 pub new_transactions_filter: ::prost::alloc::string::String,
524 #[prost(string, tag = "5")]
526 pub sender: ::prost::alloc::string::String,
527}
528#[allow(clippy::derive_partial_eq_without_eq)]
530#[derive(
531 Clone,
532 PartialEq,
533 Eq,
534 ::prost::Message,
535 ::serde::Serialize,
536 ::serde::Deserialize,
537 ::schemars::JsonSchema,
538 CosmwasmExt,
539)]
540#[proto_message(type_url = "/neutron.interchainqueries.MsgUpdateInterchainQueryResponse")]
541pub struct MsgUpdateInterchainQueryResponse {}
542#[allow(clippy::derive_partial_eq_without_eq)]
544#[derive(
545 Clone,
546 PartialEq,
547 Eq,
548 ::prost::Message,
549 ::serde::Serialize,
550 ::serde::Deserialize,
551 ::schemars::JsonSchema,
552 CosmwasmExt,
553)]
554#[proto_message(type_url = "/neutron.interchainqueries.MsgUpdateParams")]
555pub struct MsgUpdateParams {
556 #[prost(string, tag = "1")]
558 pub authority: ::prost::alloc::string::String,
559 #[prost(message, optional, tag = "2")]
561 pub params: ::core::option::Option<Params>,
562}
563#[allow(clippy::derive_partial_eq_without_eq)]
565#[derive(
566 Clone,
567 PartialEq,
568 Eq,
569 ::prost::Message,
570 ::serde::Serialize,
571 ::serde::Deserialize,
572 ::schemars::JsonSchema,
573 CosmwasmExt,
574)]
575#[proto_message(type_url = "/neutron.interchainqueries.MsgUpdateParamsResponse")]
576pub struct MsgUpdateParamsResponse {}
577#[allow(clippy::derive_partial_eq_without_eq)]
579#[derive(
580 Clone,
581 PartialEq,
582 Eq,
583 ::prost::Message,
584 ::serde::Serialize,
585 ::serde::Deserialize,
586 ::schemars::JsonSchema,
587 CosmwasmExt,
588)]
589#[proto_message(type_url = "/neutron.interchainqueries.QueryParamsRequest")]
590#[proto_query(
591 path = "/neutron.interchainqueries.Query/Params",
592 response_type = QueryParamsResponse
593)]
594pub struct QueryParamsRequest {}
595#[allow(clippy::derive_partial_eq_without_eq)]
597#[derive(
598 Clone,
599 PartialEq,
600 Eq,
601 ::prost::Message,
602 ::serde::Serialize,
603 ::serde::Deserialize,
604 ::schemars::JsonSchema,
605 CosmwasmExt,
606)]
607#[proto_message(type_url = "/neutron.interchainqueries.QueryParamsResponse")]
608pub struct QueryParamsResponse {
609 #[prost(message, optional, tag = "1")]
611 pub params: ::core::option::Option<Params>,
612}
613#[allow(clippy::derive_partial_eq_without_eq)]
615#[derive(
616 Clone,
617 PartialEq,
618 Eq,
619 ::prost::Message,
620 ::serde::Serialize,
621 ::serde::Deserialize,
622 ::schemars::JsonSchema,
623 CosmwasmExt,
624)]
625#[proto_message(type_url = "/neutron.interchainqueries.QueryRegisteredQueriesRequest")]
626#[proto_query(
627 path = "/neutron.interchainqueries.Query/RegisteredQueries",
628 response_type = QueryRegisteredQueriesResponse
629)]
630pub struct QueryRegisteredQueriesRequest {
631 #[prost(string, repeated, tag = "1")]
635 pub owners: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
636 #[prost(string, tag = "2")]
640 #[serde(alias = "connectionID")]
641 pub connection_id: ::prost::alloc::string::String,
642 #[prost(message, optional, tag = "3")]
645 pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
646}
647#[allow(clippy::derive_partial_eq_without_eq)]
649#[derive(
650 Clone,
651 PartialEq,
652 Eq,
653 ::prost::Message,
654 ::serde::Serialize,
655 ::serde::Deserialize,
656 ::schemars::JsonSchema,
657 CosmwasmExt,
658)]
659#[proto_message(type_url = "/neutron.interchainqueries.QueryRegisteredQueriesResponse")]
660pub struct QueryRegisteredQueriesResponse {
661 #[prost(message, repeated, tag = "1")]
663 pub registered_queries: ::prost::alloc::vec::Vec<RegisteredQuery>,
664 #[prost(message, optional, tag = "2")]
667 pub pagination:
668 ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
669}
670#[allow(clippy::derive_partial_eq_without_eq)]
672#[derive(
673 Clone,
674 PartialEq,
675 Eq,
676 ::prost::Message,
677 ::serde::Serialize,
678 ::serde::Deserialize,
679 ::schemars::JsonSchema,
680 CosmwasmExt,
681)]
682#[proto_message(type_url = "/neutron.interchainqueries.QueryRegisteredQueryRequest")]
683#[proto_query(
684 path = "/neutron.interchainqueries.Query/RegisteredQuery",
685 response_type = QueryRegisteredQueryResponse
686)]
687pub struct QueryRegisteredQueryRequest {
688 #[prost(uint64, tag = "1")]
690 #[serde(alias = "queryID")]
691 #[serde(
692 serialize_with = "crate::serde::as_str::serialize",
693 deserialize_with = "crate::serde::as_str::deserialize"
694 )]
695 pub query_id: u64,
696}
697#[allow(clippy::derive_partial_eq_without_eq)]
699#[derive(
700 Clone,
701 PartialEq,
702 Eq,
703 ::prost::Message,
704 ::serde::Serialize,
705 ::serde::Deserialize,
706 ::schemars::JsonSchema,
707 CosmwasmExt,
708)]
709#[proto_message(type_url = "/neutron.interchainqueries.QueryRegisteredQueryResponse")]
710pub struct QueryRegisteredQueryResponse {
711 #[prost(message, optional, tag = "1")]
713 pub registered_query: ::core::option::Option<RegisteredQuery>,
714}
715#[allow(clippy::derive_partial_eq_without_eq)]
717#[derive(
718 Clone,
719 PartialEq,
720 Eq,
721 ::prost::Message,
722 ::serde::Serialize,
723 ::serde::Deserialize,
724 ::schemars::JsonSchema,
725 CosmwasmExt,
726)]
727#[proto_message(type_url = "/neutron.interchainqueries.QueryRegisteredQueryResultRequest")]
728#[proto_query(
729 path = "/neutron.interchainqueries.Query/QueryResult",
730 response_type = QueryRegisteredQueryResultResponse
731)]
732pub struct QueryRegisteredQueryResultRequest {
733 #[prost(uint64, tag = "1")]
735 #[serde(alias = "queryID")]
736 #[serde(
737 serialize_with = "crate::serde::as_str::serialize",
738 deserialize_with = "crate::serde::as_str::deserialize"
739 )]
740 pub query_id: u64,
741}
742#[allow(clippy::derive_partial_eq_without_eq)]
744#[derive(
745 Clone,
746 PartialEq,
747 Eq,
748 ::prost::Message,
749 ::serde::Serialize,
750 ::serde::Deserialize,
751 ::schemars::JsonSchema,
752 CosmwasmExt,
753)]
754#[proto_message(type_url = "/neutron.interchainqueries.QueryRegisteredQueryResultResponse")]
755pub struct QueryRegisteredQueryResultResponse {
756 #[prost(message, optional, tag = "1")]
758 pub result: ::core::option::Option<QueryResult>,
759}
760#[allow(clippy::derive_partial_eq_without_eq)]
761#[derive(
762 Clone,
763 PartialEq,
764 Eq,
765 ::prost::Message,
766 ::serde::Serialize,
767 ::serde::Deserialize,
768 ::schemars::JsonSchema,
769 CosmwasmExt,
770)]
771#[proto_message(type_url = "/neutron.interchainqueries.Transaction")]
772pub struct Transaction {
773 #[prost(uint64, tag = "1")]
774 #[serde(alias = "ID")]
775 #[serde(
776 serialize_with = "crate::serde::as_str::serialize",
777 deserialize_with = "crate::serde::as_str::deserialize"
778 )]
779 pub id: u64,
780 #[prost(uint64, tag = "2")]
781 #[serde(
782 serialize_with = "crate::serde::as_str::serialize",
783 deserialize_with = "crate::serde::as_str::deserialize"
784 )]
785 pub height: u64,
786 #[prost(bytes = "vec", tag = "3")]
787 #[serde(
788 serialize_with = "crate::serde::as_base64_encoded_string::serialize",
789 deserialize_with = "crate::serde::as_base64_encoded_string::deserialize"
790 )]
791 pub data: ::prost::alloc::vec::Vec<u8>,
792}
793#[allow(clippy::derive_partial_eq_without_eq)]
795#[derive(
796 Clone,
797 PartialEq,
798 Eq,
799 ::prost::Message,
800 ::serde::Serialize,
801 ::serde::Deserialize,
802 ::schemars::JsonSchema,
803 CosmwasmExt,
804)]
805#[proto_message(type_url = "/neutron.interchainqueries.QueryLastRemoteHeight")]
806#[proto_query(
807 path = "/neutron.interchainqueries.Query/LastRemoteHeight",
808 response_type = QueryLastRemoteHeightResponse
809)]
810pub struct QueryLastRemoteHeight {
811 #[prost(string, tag = "1")]
814 #[serde(alias = "connectionID")]
815 pub connection_id: ::prost::alloc::string::String,
816}
817#[allow(clippy::derive_partial_eq_without_eq)]
819#[derive(
820 Clone,
821 PartialEq,
822 Eq,
823 ::prost::Message,
824 ::serde::Serialize,
825 ::serde::Deserialize,
826 ::schemars::JsonSchema,
827 CosmwasmExt,
828)]
829#[proto_message(type_url = "/neutron.interchainqueries.QueryLastRemoteHeightResponse")]
830pub struct QueryLastRemoteHeightResponse {
831 #[prost(uint64, tag = "1")]
833 #[serde(
834 serialize_with = "crate::serde::as_str::serialize",
835 deserialize_with = "crate::serde::as_str::deserialize"
836 )]
837 pub height: u64,
838 #[prost(uint64, tag = "2")]
840 #[serde(
841 serialize_with = "crate::serde::as_str::serialize",
842 deserialize_with = "crate::serde::as_str::deserialize"
843 )]
844 pub revision: u64,
845}
846pub struct InterchainqueriesQuerier<'a, Q: cosmwasm_std::CustomQuery> {
847 querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
848}
849impl<'a, Q: cosmwasm_std::CustomQuery> InterchainqueriesQuerier<'a, Q> {
850 pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
851 Self { querier }
852 }
853 pub fn params(&self) -> Result<QueryParamsResponse, cosmwasm_std::StdError> {
854 QueryParamsRequest {}.query(self.querier)
855 }
856 pub fn registered_queries(
857 &self,
858 owners: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
859 connection_id: ::prost::alloc::string::String,
860 pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
861 ) -> Result<QueryRegisteredQueriesResponse, cosmwasm_std::StdError> {
862 QueryRegisteredQueriesRequest {
863 owners,
864 connection_id,
865 pagination,
866 }
867 .query(self.querier)
868 }
869 pub fn registered_query(
870 &self,
871 query_id: u64,
872 ) -> Result<QueryRegisteredQueryResponse, cosmwasm_std::StdError> {
873 QueryRegisteredQueryRequest { query_id }.query(self.querier)
874 }
875 pub fn query_result(
876 &self,
877 query_id: u64,
878 ) -> Result<QueryRegisteredQueryResultResponse, cosmwasm_std::StdError> {
879 QueryRegisteredQueryResultRequest { query_id }.query(self.querier)
880 }
881 pub fn last_remote_height(
882 &self,
883 connection_id: ::prost::alloc::string::String,
884 ) -> Result<QueryLastRemoteHeightResponse, cosmwasm_std::StdError> {
885 QueryLastRemoteHeight { connection_id }.query(self.querier)
886 }
887}