1use provwasm_proc_macro::CosmwasmExt;
2#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
5#[proto_message(type_url = "/cosmwasm.wasm.v1.AccessTypeParam")]
6pub struct AccessTypeParam {
7 #[prost(enumeration = "AccessType", tag = "1")]
8 pub value: i32,
9}
10#[allow(clippy::derive_partial_eq_without_eq)]
12#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
13#[proto_message(type_url = "/cosmwasm.wasm.v1.AccessConfig")]
14pub struct AccessConfig {
15 #[prost(enumeration = "AccessType", tag = "1")]
16 pub permission: i32,
17 #[prost(string, repeated, tag = "3")]
18 pub addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
19}
20#[allow(clippy::derive_partial_eq_without_eq)]
22#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
23#[proto_message(type_url = "/cosmwasm.wasm.v1.Params")]
24pub struct Params {
25 #[prost(message, optional, tag = "1")]
26 pub code_upload_access: ::core::option::Option<AccessConfig>,
27 #[prost(enumeration = "AccessType", tag = "2")]
28 pub instantiate_default_permission: i32,
29}
30#[allow(clippy::derive_partial_eq_without_eq)]
32#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
33#[proto_message(type_url = "/cosmwasm.wasm.v1.CodeInfo")]
34pub struct CodeInfo {
35 #[prost(bytes = "vec", tag = "1")]
37 pub code_hash: ::prost::alloc::vec::Vec<u8>,
38 #[prost(string, tag = "2")]
40 pub creator: ::prost::alloc::string::String,
41 #[prost(message, optional, tag = "5")]
43 pub instantiate_config: ::core::option::Option<AccessConfig>,
44}
45#[allow(clippy::derive_partial_eq_without_eq)]
47#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
48#[proto_message(type_url = "/cosmwasm.wasm.v1.ContractInfo")]
49pub struct ContractInfo {
50 #[prost(uint64, tag = "1")]
52 pub code_id: u64,
53 #[prost(string, tag = "2")]
55 pub creator: ::prost::alloc::string::String,
56 #[prost(string, tag = "3")]
58 pub admin: ::prost::alloc::string::String,
59 #[prost(string, tag = "4")]
61 pub label: ::prost::alloc::string::String,
62 #[prost(message, optional, tag = "5")]
64 pub created: ::core::option::Option<AbsoluteTxPosition>,
65 #[prost(string, tag = "6")]
66 pub ibc_port_id: ::prost::alloc::string::String,
67 #[prost(message, optional, tag = "7")]
70 pub extension: ::core::option::Option<crate::shim::Any>,
71}
72#[allow(clippy::derive_partial_eq_without_eq)]
74#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
75#[proto_message(type_url = "/cosmwasm.wasm.v1.ContractCodeHistoryEntry")]
76pub struct ContractCodeHistoryEntry {
77 #[prost(enumeration = "ContractCodeHistoryOperationType", tag = "1")]
78 pub operation: i32,
79 #[prost(uint64, tag = "2")]
81 pub code_id: u64,
82 #[prost(message, optional, tag = "3")]
84 pub updated: ::core::option::Option<AbsoluteTxPosition>,
85 #[prost(bytes = "vec", tag = "4")]
86 pub msg: ::prost::alloc::vec::Vec<u8>,
87}
88#[allow(clippy::derive_partial_eq_without_eq)]
91#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
92#[proto_message(type_url = "/cosmwasm.wasm.v1.AbsoluteTxPosition")]
93pub struct AbsoluteTxPosition {
94 #[prost(uint64, tag = "1")]
96 pub block_height: u64,
97 #[prost(uint64, tag = "2")]
100 pub tx_index: u64,
101}
102#[allow(clippy::derive_partial_eq_without_eq)]
104#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
105#[proto_message(type_url = "/cosmwasm.wasm.v1.Model")]
106pub struct Model {
107 #[prost(bytes = "vec", tag = "1")]
109 pub key: ::prost::alloc::vec::Vec<u8>,
110 #[prost(bytes = "vec", tag = "2")]
112 pub value: ::prost::alloc::vec::Vec<u8>,
113}
114#[derive(
116 Clone,
117 Copy,
118 Debug,
119 PartialEq,
120 Eq,
121 Hash,
122 PartialOrd,
123 Ord,
124 ::prost::Enumeration,
125 ::schemars::JsonSchema,
126)]
127#[repr(i32)]
128pub enum AccessType {
129 Unspecified = 0,
131 Nobody = 1,
133 Everybody = 3,
135 AnyOfAddresses = 4,
137}
138impl AccessType {
139 pub fn as_str_name(&self) -> &'static str {
144 match self {
145 AccessType::Unspecified => "ACCESS_TYPE_UNSPECIFIED",
146 AccessType::Nobody => "ACCESS_TYPE_NOBODY",
147 AccessType::Everybody => "ACCESS_TYPE_EVERYBODY",
148 AccessType::AnyOfAddresses => "ACCESS_TYPE_ANY_OF_ADDRESSES",
149 }
150 }
151 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
153 match value {
154 "ACCESS_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
155 "ACCESS_TYPE_NOBODY" => Some(Self::Nobody),
156 "ACCESS_TYPE_EVERYBODY" => Some(Self::Everybody),
157 "ACCESS_TYPE_ANY_OF_ADDRESSES" => Some(Self::AnyOfAddresses),
158 _ => None,
159 }
160 }
161}
162#[derive(
164 Clone,
165 Copy,
166 Debug,
167 PartialEq,
168 Eq,
169 Hash,
170 PartialOrd,
171 Ord,
172 ::prost::Enumeration,
173 ::schemars::JsonSchema,
174)]
175#[repr(i32)]
176pub enum ContractCodeHistoryOperationType {
177 Unspecified = 0,
179 Init = 1,
181 Migrate = 2,
183 Genesis = 3,
185}
186impl ContractCodeHistoryOperationType {
187 pub fn as_str_name(&self) -> &'static str {
192 match self {
193 ContractCodeHistoryOperationType::Unspecified => {
194 "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED"
195 }
196 ContractCodeHistoryOperationType::Init => "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT",
197 ContractCodeHistoryOperationType::Migrate => {
198 "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE"
199 }
200 ContractCodeHistoryOperationType::Genesis => {
201 "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS"
202 }
203 }
204 }
205 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
207 match value {
208 "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
209 "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT" => Some(Self::Init),
210 "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE" => Some(Self::Migrate),
211 "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS" => Some(Self::Genesis),
212 _ => None,
213 }
214 }
215}
216#[allow(clippy::derive_partial_eq_without_eq)]
219#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
220#[proto_message(type_url = "/cosmwasm.wasm.v1.StoreCodeAuthorization")]
221pub struct StoreCodeAuthorization {
222 #[prost(message, repeated, tag = "1")]
224 pub grants: ::prost::alloc::vec::Vec<CodeGrant>,
225}
226#[allow(clippy::derive_partial_eq_without_eq)]
229#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
230#[proto_message(type_url = "/cosmwasm.wasm.v1.ContractExecutionAuthorization")]
231pub struct ContractExecutionAuthorization {
232 #[prost(message, repeated, tag = "1")]
234 pub grants: ::prost::alloc::vec::Vec<ContractGrant>,
235}
236#[allow(clippy::derive_partial_eq_without_eq)]
239#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
240#[proto_message(type_url = "/cosmwasm.wasm.v1.ContractMigrationAuthorization")]
241pub struct ContractMigrationAuthorization {
242 #[prost(message, repeated, tag = "1")]
244 pub grants: ::prost::alloc::vec::Vec<ContractGrant>,
245}
246#[allow(clippy::derive_partial_eq_without_eq)]
248#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
249#[proto_message(type_url = "/cosmwasm.wasm.v1.CodeGrant")]
250pub struct CodeGrant {
251 #[prost(bytes = "vec", tag = "1")]
254 pub code_hash: ::prost::alloc::vec::Vec<u8>,
255 #[prost(message, optional, tag = "2")]
259 pub instantiate_permission: ::core::option::Option<AccessConfig>,
260}
261#[allow(clippy::derive_partial_eq_without_eq)]
264#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
265#[proto_message(type_url = "/cosmwasm.wasm.v1.ContractGrant")]
266pub struct ContractGrant {
267 #[prost(string, tag = "1")]
269 pub contract: ::prost::alloc::string::String,
270 #[prost(message, optional, tag = "2")]
273 pub limit: ::core::option::Option<crate::shim::Any>,
274 #[prost(message, optional, tag = "3")]
278 pub filter: ::core::option::Option<crate::shim::Any>,
279}
280#[allow(clippy::derive_partial_eq_without_eq)]
283#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
284#[proto_message(type_url = "/cosmwasm.wasm.v1.MaxCallsLimit")]
285pub struct MaxCallsLimit {
286 #[prost(uint64, tag = "1")]
288 pub remaining: u64,
289}
290#[allow(clippy::derive_partial_eq_without_eq)]
293#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
294#[proto_message(type_url = "/cosmwasm.wasm.v1.MaxFundsLimit")]
295pub struct MaxFundsLimit {
296 #[prost(message, repeated, tag = "1")]
298 pub amounts: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
299}
300#[allow(clippy::derive_partial_eq_without_eq)]
304#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
305#[proto_message(type_url = "/cosmwasm.wasm.v1.CombinedLimit")]
306pub struct CombinedLimit {
307 #[prost(uint64, tag = "1")]
309 pub calls_remaining: u64,
310 #[prost(message, repeated, tag = "2")]
312 pub amounts: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
313}
314#[allow(clippy::derive_partial_eq_without_eq)]
318#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
319#[proto_message(type_url = "/cosmwasm.wasm.v1.AllowAllMessagesFilter")]
320pub struct AllowAllMessagesFilter {}
321#[allow(clippy::derive_partial_eq_without_eq)]
325#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
326#[proto_message(type_url = "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter")]
327pub struct AcceptedMessageKeysFilter {
328 #[prost(string, repeated, tag = "1")]
330 pub keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
331}
332#[allow(clippy::derive_partial_eq_without_eq)]
336#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
337#[proto_message(type_url = "/cosmwasm.wasm.v1.AcceptedMessagesFilter")]
338pub struct AcceptedMessagesFilter {
339 #[prost(bytes = "vec", repeated, tag = "1")]
341 pub messages: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
342}
343#[allow(clippy::derive_partial_eq_without_eq)]
345#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
346#[proto_message(type_url = "/cosmwasm.wasm.v1.GenesisState")]
347pub struct GenesisState {
348 #[prost(message, optional, tag = "1")]
349 pub params: ::core::option::Option<Params>,
350 #[prost(message, repeated, tag = "2")]
351 pub codes: ::prost::alloc::vec::Vec<Code>,
352 #[prost(message, repeated, tag = "3")]
353 pub contracts: ::prost::alloc::vec::Vec<Contract>,
354 #[prost(message, repeated, tag = "4")]
355 pub sequences: ::prost::alloc::vec::Vec<Sequence>,
356}
357#[allow(clippy::derive_partial_eq_without_eq)]
359#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
360#[proto_message(type_url = "/cosmwasm.wasm.v1.Code")]
361pub struct Code {
362 #[prost(uint64, tag = "1")]
363 pub code_id: u64,
364 #[prost(message, optional, tag = "2")]
365 pub code_info: ::core::option::Option<CodeInfo>,
366 #[prost(bytes = "vec", tag = "3")]
367 pub code_bytes: ::prost::alloc::vec::Vec<u8>,
368 #[prost(bool, tag = "4")]
370 pub pinned: bool,
371}
372#[allow(clippy::derive_partial_eq_without_eq)]
374#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
375#[proto_message(type_url = "/cosmwasm.wasm.v1.Contract")]
376pub struct Contract {
377 #[prost(string, tag = "1")]
378 pub contract_address: ::prost::alloc::string::String,
379 #[prost(message, optional, tag = "2")]
380 pub contract_info: ::core::option::Option<ContractInfo>,
381 #[prost(message, repeated, tag = "3")]
382 pub contract_state: ::prost::alloc::vec::Vec<Model>,
383 #[prost(message, repeated, tag = "4")]
384 pub contract_code_history: ::prost::alloc::vec::Vec<ContractCodeHistoryEntry>,
385}
386#[allow(clippy::derive_partial_eq_without_eq)]
388#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
389#[proto_message(type_url = "/cosmwasm.wasm.v1.Sequence")]
390pub struct Sequence {
391 #[prost(bytes = "vec", tag = "1")]
392 pub id_key: ::prost::alloc::vec::Vec<u8>,
393 #[prost(uint64, tag = "2")]
394 pub value: u64,
395}
396#[allow(clippy::derive_partial_eq_without_eq)]
398#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
399#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgIBCSend")]
400pub struct MsgIbcSend {
401 #[prost(string, tag = "2")]
403 pub channel: ::prost::alloc::string::String,
404 #[prost(uint64, tag = "4")]
407 pub timeout_height: u64,
408 #[prost(uint64, tag = "5")]
411 pub timeout_timestamp: u64,
412 #[prost(bytes = "vec", tag = "6")]
415 pub data: ::prost::alloc::vec::Vec<u8>,
416}
417#[allow(clippy::derive_partial_eq_without_eq)]
419#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
420#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgIBCSendResponse")]
421pub struct MsgIbcSendResponse {
422 #[prost(uint64, tag = "1")]
424 pub sequence: u64,
425}
426#[allow(clippy::derive_partial_eq_without_eq)]
428#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
429#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse")]
430pub struct MsgIbcWriteAcknowledgementResponse {}
431#[allow(clippy::derive_partial_eq_without_eq)]
433#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
434#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgIBCCloseChannel")]
435pub struct MsgIbcCloseChannel {
436 #[prost(string, tag = "2")]
437 pub channel: ::prost::alloc::string::String,
438}
439#[allow(clippy::derive_partial_eq_without_eq)]
444#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
445#[proto_message(type_url = "/cosmwasm.wasm.v1.StoreCodeProposal")]
446#[deprecated]
447pub struct StoreCodeProposal {
448 #[prost(string, tag = "1")]
450 pub title: ::prost::alloc::string::String,
451 #[prost(string, tag = "2")]
453 pub description: ::prost::alloc::string::String,
454 #[prost(string, tag = "3")]
456 pub run_as: ::prost::alloc::string::String,
457 #[prost(bytes = "vec", tag = "4")]
459 pub wasm_byte_code: ::prost::alloc::vec::Vec<u8>,
460 #[prost(message, optional, tag = "7")]
462 pub instantiate_permission: ::core::option::Option<AccessConfig>,
463 #[prost(bool, tag = "8")]
465 pub unpin_code: bool,
466 #[prost(string, tag = "9")]
468 pub source: ::prost::alloc::string::String,
469 #[prost(string, tag = "10")]
472 pub builder: ::prost::alloc::string::String,
473 #[prost(bytes = "vec", tag = "11")]
476 pub code_hash: ::prost::alloc::vec::Vec<u8>,
477}
478#[allow(clippy::derive_partial_eq_without_eq)]
483#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
484#[proto_message(type_url = "/cosmwasm.wasm.v1.InstantiateContractProposal")]
485#[deprecated]
486pub struct InstantiateContractProposal {
487 #[prost(string, tag = "1")]
489 pub title: ::prost::alloc::string::String,
490 #[prost(string, tag = "2")]
492 pub description: ::prost::alloc::string::String,
493 #[prost(string, tag = "3")]
495 pub run_as: ::prost::alloc::string::String,
496 #[prost(string, tag = "4")]
498 pub admin: ::prost::alloc::string::String,
499 #[prost(uint64, tag = "5")]
501 pub code_id: u64,
502 #[prost(string, tag = "6")]
504 pub label: ::prost::alloc::string::String,
505 #[prost(bytes = "vec", tag = "7")]
507 pub msg: ::prost::alloc::vec::Vec<u8>,
508 #[prost(message, repeated, tag = "8")]
510 pub funds: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
511}
512#[allow(clippy::derive_partial_eq_without_eq)]
517#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
518#[proto_message(type_url = "/cosmwasm.wasm.v1.InstantiateContract2Proposal")]
519#[deprecated]
520pub struct InstantiateContract2Proposal {
521 #[prost(string, tag = "1")]
523 pub title: ::prost::alloc::string::String,
524 #[prost(string, tag = "2")]
526 pub description: ::prost::alloc::string::String,
527 #[prost(string, tag = "3")]
529 pub run_as: ::prost::alloc::string::String,
530 #[prost(string, tag = "4")]
532 pub admin: ::prost::alloc::string::String,
533 #[prost(uint64, tag = "5")]
535 pub code_id: u64,
536 #[prost(string, tag = "6")]
538 pub label: ::prost::alloc::string::String,
539 #[prost(bytes = "vec", tag = "7")]
541 pub msg: ::prost::alloc::vec::Vec<u8>,
542 #[prost(message, repeated, tag = "8")]
544 pub funds: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
545 #[prost(bytes = "vec", tag = "9")]
547 pub salt: ::prost::alloc::vec::Vec<u8>,
548 #[prost(bool, tag = "10")]
551 pub fix_msg: bool,
552}
553#[allow(clippy::derive_partial_eq_without_eq)]
558#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
559#[proto_message(type_url = "/cosmwasm.wasm.v1.MigrateContractProposal")]
560#[deprecated]
561pub struct MigrateContractProposal {
562 #[prost(string, tag = "1")]
564 pub title: ::prost::alloc::string::String,
565 #[prost(string, tag = "2")]
569 pub description: ::prost::alloc::string::String,
570 #[prost(string, tag = "4")]
572 pub contract: ::prost::alloc::string::String,
573 #[prost(uint64, tag = "5")]
575 pub code_id: u64,
576 #[prost(bytes = "vec", tag = "6")]
578 pub msg: ::prost::alloc::vec::Vec<u8>,
579}
580#[allow(clippy::derive_partial_eq_without_eq)]
585#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
586#[proto_message(type_url = "/cosmwasm.wasm.v1.SudoContractProposal")]
587#[deprecated]
588pub struct SudoContractProposal {
589 #[prost(string, tag = "1")]
591 pub title: ::prost::alloc::string::String,
592 #[prost(string, tag = "2")]
594 pub description: ::prost::alloc::string::String,
595 #[prost(string, tag = "3")]
597 pub contract: ::prost::alloc::string::String,
598 #[prost(bytes = "vec", tag = "4")]
600 pub msg: ::prost::alloc::vec::Vec<u8>,
601}
602#[allow(clippy::derive_partial_eq_without_eq)]
607#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
608#[proto_message(type_url = "/cosmwasm.wasm.v1.ExecuteContractProposal")]
609#[deprecated]
610pub struct ExecuteContractProposal {
611 #[prost(string, tag = "1")]
613 pub title: ::prost::alloc::string::String,
614 #[prost(string, tag = "2")]
616 pub description: ::prost::alloc::string::String,
617 #[prost(string, tag = "3")]
619 pub run_as: ::prost::alloc::string::String,
620 #[prost(string, tag = "4")]
622 pub contract: ::prost::alloc::string::String,
623 #[prost(bytes = "vec", tag = "5")]
625 pub msg: ::prost::alloc::vec::Vec<u8>,
626 #[prost(message, repeated, tag = "6")]
628 pub funds: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
629}
630#[allow(clippy::derive_partial_eq_without_eq)]
635#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
636#[proto_message(type_url = "/cosmwasm.wasm.v1.UpdateAdminProposal")]
637#[deprecated]
638pub struct UpdateAdminProposal {
639 #[prost(string, tag = "1")]
641 pub title: ::prost::alloc::string::String,
642 #[prost(string, tag = "2")]
644 pub description: ::prost::alloc::string::String,
645 #[prost(string, tag = "3")]
647 pub new_admin: ::prost::alloc::string::String,
648 #[prost(string, tag = "4")]
650 pub contract: ::prost::alloc::string::String,
651}
652#[allow(clippy::derive_partial_eq_without_eq)]
657#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
658#[proto_message(type_url = "/cosmwasm.wasm.v1.ClearAdminProposal")]
659#[deprecated]
660pub struct ClearAdminProposal {
661 #[prost(string, tag = "1")]
663 pub title: ::prost::alloc::string::String,
664 #[prost(string, tag = "2")]
666 pub description: ::prost::alloc::string::String,
667 #[prost(string, tag = "3")]
669 pub contract: ::prost::alloc::string::String,
670}
671#[allow(clippy::derive_partial_eq_without_eq)]
676#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
677#[proto_message(type_url = "/cosmwasm.wasm.v1.PinCodesProposal")]
678#[deprecated]
679pub struct PinCodesProposal {
680 #[prost(string, tag = "1")]
682 pub title: ::prost::alloc::string::String,
683 #[prost(string, tag = "2")]
685 pub description: ::prost::alloc::string::String,
686 #[prost(uint64, repeated, packed = "false", tag = "3")]
688 pub code_ids: ::prost::alloc::vec::Vec<u64>,
689}
690#[allow(clippy::derive_partial_eq_without_eq)]
695#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
696#[proto_message(type_url = "/cosmwasm.wasm.v1.UnpinCodesProposal")]
697#[deprecated]
698pub struct UnpinCodesProposal {
699 #[prost(string, tag = "1")]
701 pub title: ::prost::alloc::string::String,
702 #[prost(string, tag = "2")]
704 pub description: ::prost::alloc::string::String,
705 #[prost(uint64, repeated, packed = "false", tag = "3")]
707 pub code_ids: ::prost::alloc::vec::Vec<u64>,
708}
709#[allow(clippy::derive_partial_eq_without_eq)]
712#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
713#[proto_message(type_url = "/cosmwasm.wasm.v1.AccessConfigUpdate")]
714pub struct AccessConfigUpdate {
715 #[prost(uint64, tag = "1")]
717 pub code_id: u64,
718 #[prost(message, optional, tag = "2")]
720 pub instantiate_permission: ::core::option::Option<AccessConfig>,
721}
722#[allow(clippy::derive_partial_eq_without_eq)]
727#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
728#[proto_message(type_url = "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal")]
729#[deprecated]
730pub struct UpdateInstantiateConfigProposal {
731 #[prost(string, tag = "1")]
733 pub title: ::prost::alloc::string::String,
734 #[prost(string, tag = "2")]
736 pub description: ::prost::alloc::string::String,
737 #[prost(message, repeated, tag = "3")]
740 pub access_config_updates: ::prost::alloc::vec::Vec<AccessConfigUpdate>,
741}
742#[allow(clippy::derive_partial_eq_without_eq)]
747#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
748#[proto_message(type_url = "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal")]
749#[deprecated]
750pub struct StoreAndInstantiateContractProposal {
751 #[prost(string, tag = "1")]
753 pub title: ::prost::alloc::string::String,
754 #[prost(string, tag = "2")]
756 pub description: ::prost::alloc::string::String,
757 #[prost(string, tag = "3")]
759 pub run_as: ::prost::alloc::string::String,
760 #[prost(bytes = "vec", tag = "4")]
762 pub wasm_byte_code: ::prost::alloc::vec::Vec<u8>,
763 #[prost(message, optional, tag = "5")]
765 pub instantiate_permission: ::core::option::Option<AccessConfig>,
766 #[prost(bool, tag = "6")]
768 pub unpin_code: bool,
769 #[prost(string, tag = "7")]
771 pub admin: ::prost::alloc::string::String,
772 #[prost(string, tag = "8")]
774 pub label: ::prost::alloc::string::String,
775 #[prost(bytes = "vec", tag = "9")]
777 pub msg: ::prost::alloc::vec::Vec<u8>,
778 #[prost(message, repeated, tag = "10")]
780 pub funds: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
781 #[prost(string, tag = "11")]
783 pub source: ::prost::alloc::string::String,
784 #[prost(string, tag = "12")]
787 pub builder: ::prost::alloc::string::String,
788 #[prost(bytes = "vec", tag = "13")]
791 pub code_hash: ::prost::alloc::vec::Vec<u8>,
792}
793#[allow(clippy::derive_partial_eq_without_eq)]
796#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
797#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryContractInfoRequest")]
798#[proto_query(
799 path = "/cosmwasm.wasm.v1.Query/ContractInfo",
800 response_type = QueryContractInfoResponse
801)]
802pub struct QueryContractInfoRequest {
803 #[prost(string, tag = "1")]
805 pub address: ::prost::alloc::string::String,
806}
807#[allow(clippy::derive_partial_eq_without_eq)]
810#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
811#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryContractInfoResponse")]
812pub struct QueryContractInfoResponse {
813 #[prost(string, tag = "1")]
815 pub address: ::prost::alloc::string::String,
816 #[prost(message, optional, tag = "2")]
817 pub contract_info: ::core::option::Option<ContractInfo>,
818}
819#[allow(clippy::derive_partial_eq_without_eq)]
822#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
823#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryContractHistoryRequest")]
824#[proto_query(
825 path = "/cosmwasm.wasm.v1.Query/ContractHistory",
826 response_type = QueryContractHistoryResponse
827)]
828pub struct QueryContractHistoryRequest {
829 #[prost(string, tag = "1")]
831 pub address: ::prost::alloc::string::String,
832 #[prost(message, optional, tag = "2")]
834 pub pagination:
835 ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageRequest>,
836}
837#[allow(clippy::derive_partial_eq_without_eq)]
840#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
841#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryContractHistoryResponse")]
842pub struct QueryContractHistoryResponse {
843 #[prost(message, repeated, tag = "1")]
844 pub entries: ::prost::alloc::vec::Vec<ContractCodeHistoryEntry>,
845 #[prost(message, optional, tag = "2")]
847 pub pagination:
848 ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageResponse>,
849}
850#[allow(clippy::derive_partial_eq_without_eq)]
853#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
854#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryContractsByCodeRequest")]
855#[proto_query(
856 path = "/cosmwasm.wasm.v1.Query/ContractsByCode",
857 response_type = QueryContractsByCodeResponse
858)]
859pub struct QueryContractsByCodeRequest {
860 #[prost(uint64, tag = "1")]
862 pub code_id: u64,
863 #[prost(message, optional, tag = "2")]
865 pub pagination:
866 ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageRequest>,
867}
868#[allow(clippy::derive_partial_eq_without_eq)]
871#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
872#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryContractsByCodeResponse")]
873pub struct QueryContractsByCodeResponse {
874 #[prost(string, repeated, tag = "1")]
876 pub contracts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
877 #[prost(message, optional, tag = "2")]
879 pub pagination:
880 ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageResponse>,
881}
882#[allow(clippy::derive_partial_eq_without_eq)]
885#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
886#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryAllContractStateRequest")]
887#[proto_query(
888 path = "/cosmwasm.wasm.v1.Query/AllContractState",
889 response_type = QueryAllContractStateResponse
890)]
891pub struct QueryAllContractStateRequest {
892 #[prost(string, tag = "1")]
894 pub address: ::prost::alloc::string::String,
895 #[prost(message, optional, tag = "2")]
897 pub pagination:
898 ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageRequest>,
899}
900#[allow(clippy::derive_partial_eq_without_eq)]
903#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
904#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryAllContractStateResponse")]
905pub struct QueryAllContractStateResponse {
906 #[prost(message, repeated, tag = "1")]
907 pub models: ::prost::alloc::vec::Vec<Model>,
908 #[prost(message, optional, tag = "2")]
910 pub pagination:
911 ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageResponse>,
912}
913#[allow(clippy::derive_partial_eq_without_eq)]
916#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
917#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryRawContractStateRequest")]
918#[proto_query(
919 path = "/cosmwasm.wasm.v1.Query/RawContractState",
920 response_type = QueryRawContractStateResponse
921)]
922pub struct QueryRawContractStateRequest {
923 #[prost(string, tag = "1")]
925 pub address: ::prost::alloc::string::String,
926 #[prost(bytes = "vec", tag = "2")]
927 pub query_data: ::prost::alloc::vec::Vec<u8>,
928}
929#[allow(clippy::derive_partial_eq_without_eq)]
932#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
933#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryRawContractStateResponse")]
934pub struct QueryRawContractStateResponse {
935 #[prost(bytes = "vec", tag = "1")]
937 pub data: ::prost::alloc::vec::Vec<u8>,
938}
939#[allow(clippy::derive_partial_eq_without_eq)]
942#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
943#[proto_message(type_url = "/cosmwasm.wasm.v1.QuerySmartContractStateRequest")]
944#[proto_query(
945 path = "/cosmwasm.wasm.v1.Query/SmartContractState",
946 response_type = QuerySmartContractStateResponse
947)]
948pub struct QuerySmartContractStateRequest {
949 #[prost(string, tag = "1")]
951 pub address: ::prost::alloc::string::String,
952 #[prost(bytes = "vec", tag = "2")]
954 pub query_data: ::prost::alloc::vec::Vec<u8>,
955}
956#[allow(clippy::derive_partial_eq_without_eq)]
959#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
960#[proto_message(type_url = "/cosmwasm.wasm.v1.QuerySmartContractStateResponse")]
961pub struct QuerySmartContractStateResponse {
962 #[prost(bytes = "vec", tag = "1")]
964 pub data: ::prost::alloc::vec::Vec<u8>,
965}
966#[allow(clippy::derive_partial_eq_without_eq)]
968#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
969#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryCodeRequest")]
970#[proto_query(path = "/cosmwasm.wasm.v1.Query/Code", response_type = QueryCodeResponse)]
971pub struct QueryCodeRequest {
972 #[prost(uint64, tag = "1")]
974 pub code_id: u64,
975}
976#[allow(clippy::derive_partial_eq_without_eq)]
978#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
979#[proto_message(type_url = "/cosmwasm.wasm.v1.CodeInfoResponse")]
980pub struct CodeInfoResponse {
981 #[prost(uint64, tag = "1")]
983 pub code_id: u64,
984 #[prost(string, tag = "2")]
985 pub creator: ::prost::alloc::string::String,
986 #[prost(bytes = "vec", tag = "3")]
987 pub data_hash: ::prost::alloc::vec::Vec<u8>,
988 #[prost(message, optional, tag = "6")]
989 pub instantiate_permission: ::core::option::Option<AccessConfig>,
990}
991#[allow(clippy::derive_partial_eq_without_eq)]
993#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
994#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryCodeResponse")]
995pub struct QueryCodeResponse {
996 #[prost(message, optional, tag = "1")]
997 pub code_info: ::core::option::Option<CodeInfoResponse>,
998 #[prost(bytes = "vec", tag = "2")]
999 pub data: ::prost::alloc::vec::Vec<u8>,
1000}
1001#[allow(clippy::derive_partial_eq_without_eq)]
1003#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1004#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryCodesRequest")]
1005#[proto_query(
1006 path = "/cosmwasm.wasm.v1.Query/Codes",
1007 response_type = QueryCodesResponse
1008)]
1009pub struct QueryCodesRequest {
1010 #[prost(message, optional, tag = "1")]
1012 pub pagination:
1013 ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageRequest>,
1014}
1015#[allow(clippy::derive_partial_eq_without_eq)]
1017#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1018#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryCodesResponse")]
1019pub struct QueryCodesResponse {
1020 #[prost(message, repeated, tag = "1")]
1021 pub code_infos: ::prost::alloc::vec::Vec<CodeInfoResponse>,
1022 #[prost(message, optional, tag = "2")]
1024 pub pagination:
1025 ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageResponse>,
1026}
1027#[allow(clippy::derive_partial_eq_without_eq)]
1030#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1031#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryPinnedCodesRequest")]
1032#[proto_query(
1033 path = "/cosmwasm.wasm.v1.Query/PinnedCodes",
1034 response_type = QueryPinnedCodesResponse
1035)]
1036pub struct QueryPinnedCodesRequest {
1037 #[prost(message, optional, tag = "2")]
1039 pub pagination:
1040 ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageRequest>,
1041}
1042#[allow(clippy::derive_partial_eq_without_eq)]
1045#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1046#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryPinnedCodesResponse")]
1047pub struct QueryPinnedCodesResponse {
1048 #[prost(uint64, repeated, packed = "false", tag = "1")]
1049 pub code_ids: ::prost::alloc::vec::Vec<u64>,
1050 #[prost(message, optional, tag = "2")]
1052 pub pagination:
1053 ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageResponse>,
1054}
1055#[allow(clippy::derive_partial_eq_without_eq)]
1057#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1058#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryParamsRequest")]
1059#[proto_query(
1060 path = "/cosmwasm.wasm.v1.Query/Params",
1061 response_type = QueryParamsResponse
1062)]
1063pub struct QueryParamsRequest {}
1064#[allow(clippy::derive_partial_eq_without_eq)]
1066#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1067#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryParamsResponse")]
1068pub struct QueryParamsResponse {
1069 #[prost(message, optional, tag = "1")]
1071 pub params: ::core::option::Option<Params>,
1072}
1073#[allow(clippy::derive_partial_eq_without_eq)]
1076#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1077#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryContractsByCreatorRequest")]
1078#[proto_query(
1079 path = "/cosmwasm.wasm.v1.Query/ContractsByCreator",
1080 response_type = QueryContractsByCreatorResponse
1081)]
1082pub struct QueryContractsByCreatorRequest {
1083 #[prost(string, tag = "1")]
1085 pub creator_address: ::prost::alloc::string::String,
1086 #[prost(message, optional, tag = "2")]
1088 pub pagination:
1089 ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageRequest>,
1090}
1091#[allow(clippy::derive_partial_eq_without_eq)]
1094#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1095#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryContractsByCreatorResponse")]
1096pub struct QueryContractsByCreatorResponse {
1097 #[prost(string, repeated, tag = "1")]
1099 pub contract_addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1100 #[prost(message, optional, tag = "2")]
1102 pub pagination:
1103 ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageResponse>,
1104}
1105#[allow(clippy::derive_partial_eq_without_eq)]
1108#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1109#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryBuildAddressRequest")]
1110#[proto_query(
1111 path = "/cosmwasm.wasm.v1.Query/BuildAddress",
1112 response_type = QueryBuildAddressResponse
1113)]
1114pub struct QueryBuildAddressRequest {
1115 #[prost(string, tag = "1")]
1117 pub code_hash: ::prost::alloc::string::String,
1118 #[prost(string, tag = "2")]
1120 pub creator_address: ::prost::alloc::string::String,
1121 #[prost(string, tag = "3")]
1123 pub salt: ::prost::alloc::string::String,
1124 #[prost(bytes = "vec", tag = "4")]
1127 pub init_args: ::prost::alloc::vec::Vec<u8>,
1128}
1129#[allow(clippy::derive_partial_eq_without_eq)]
1132#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1133#[proto_message(type_url = "/cosmwasm.wasm.v1.QueryBuildAddressResponse")]
1134pub struct QueryBuildAddressResponse {
1135 #[prost(string, tag = "1")]
1137 pub address: ::prost::alloc::string::String,
1138}
1139#[allow(clippy::derive_partial_eq_without_eq)]
1141#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1142#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgStoreCode")]
1143pub struct MsgStoreCode {
1144 #[prost(string, tag = "1")]
1146 pub sender: ::prost::alloc::string::String,
1147 #[prost(bytes = "vec", tag = "2")]
1149 pub wasm_byte_code: ::prost::alloc::vec::Vec<u8>,
1150 #[prost(message, optional, tag = "5")]
1153 pub instantiate_permission: ::core::option::Option<AccessConfig>,
1154}
1155#[allow(clippy::derive_partial_eq_without_eq)]
1157#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1158#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgStoreCodeResponse")]
1159pub struct MsgStoreCodeResponse {
1160 #[prost(uint64, tag = "1")]
1162 pub code_id: u64,
1163 #[prost(bytes = "vec", tag = "2")]
1165 pub checksum: ::prost::alloc::vec::Vec<u8>,
1166}
1167#[allow(clippy::derive_partial_eq_without_eq)]
1170#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1171#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgInstantiateContract")]
1172pub struct MsgInstantiateContract {
1173 #[prost(string, tag = "1")]
1175 pub sender: ::prost::alloc::string::String,
1176 #[prost(string, tag = "2")]
1178 pub admin: ::prost::alloc::string::String,
1179 #[prost(uint64, tag = "3")]
1181 pub code_id: u64,
1182 #[prost(string, tag = "4")]
1184 pub label: ::prost::alloc::string::String,
1185 #[prost(bytes = "vec", tag = "5")]
1187 pub msg: ::prost::alloc::vec::Vec<u8>,
1188 #[prost(message, repeated, tag = "6")]
1190 pub funds: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
1191}
1192#[allow(clippy::derive_partial_eq_without_eq)]
1194#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1195#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgInstantiateContractResponse")]
1196pub struct MsgInstantiateContractResponse {
1197 #[prost(string, tag = "1")]
1199 pub address: ::prost::alloc::string::String,
1200 #[prost(bytes = "vec", tag = "2")]
1202 pub data: ::prost::alloc::vec::Vec<u8>,
1203}
1204#[allow(clippy::derive_partial_eq_without_eq)]
1207#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1208#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgInstantiateContract2")]
1209pub struct MsgInstantiateContract2 {
1210 #[prost(string, tag = "1")]
1212 pub sender: ::prost::alloc::string::String,
1213 #[prost(string, tag = "2")]
1215 pub admin: ::prost::alloc::string::String,
1216 #[prost(uint64, tag = "3")]
1218 pub code_id: u64,
1219 #[prost(string, tag = "4")]
1221 pub label: ::prost::alloc::string::String,
1222 #[prost(bytes = "vec", tag = "5")]
1224 pub msg: ::prost::alloc::vec::Vec<u8>,
1225 #[prost(message, repeated, tag = "6")]
1227 pub funds: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
1228 #[prost(bytes = "vec", tag = "7")]
1230 pub salt: ::prost::alloc::vec::Vec<u8>,
1231 #[prost(bool, tag = "8")]
1234 pub fix_msg: bool,
1235}
1236#[allow(clippy::derive_partial_eq_without_eq)]
1238#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1239#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgInstantiateContract2Response")]
1240pub struct MsgInstantiateContract2Response {
1241 #[prost(string, tag = "1")]
1243 pub address: ::prost::alloc::string::String,
1244 #[prost(bytes = "vec", tag = "2")]
1246 pub data: ::prost::alloc::vec::Vec<u8>,
1247}
1248#[allow(clippy::derive_partial_eq_without_eq)]
1250#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1251#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgExecuteContract")]
1252pub struct MsgExecuteContract {
1253 #[prost(string, tag = "1")]
1255 pub sender: ::prost::alloc::string::String,
1256 #[prost(string, tag = "2")]
1258 pub contract: ::prost::alloc::string::String,
1259 #[prost(bytes = "vec", tag = "3")]
1261 pub msg: ::prost::alloc::vec::Vec<u8>,
1262 #[prost(message, repeated, tag = "5")]
1264 pub funds: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
1265}
1266#[allow(clippy::derive_partial_eq_without_eq)]
1268#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1269#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgExecuteContractResponse")]
1270pub struct MsgExecuteContractResponse {
1271 #[prost(bytes = "vec", tag = "1")]
1273 pub data: ::prost::alloc::vec::Vec<u8>,
1274}
1275#[allow(clippy::derive_partial_eq_without_eq)]
1277#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1278#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgMigrateContract")]
1279pub struct MsgMigrateContract {
1280 #[prost(string, tag = "1")]
1282 pub sender: ::prost::alloc::string::String,
1283 #[prost(string, tag = "2")]
1285 pub contract: ::prost::alloc::string::String,
1286 #[prost(uint64, tag = "3")]
1288 pub code_id: u64,
1289 #[prost(bytes = "vec", tag = "4")]
1291 pub msg: ::prost::alloc::vec::Vec<u8>,
1292}
1293#[allow(clippy::derive_partial_eq_without_eq)]
1295#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1296#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgMigrateContractResponse")]
1297pub struct MsgMigrateContractResponse {
1298 #[prost(bytes = "vec", tag = "1")]
1301 pub data: ::prost::alloc::vec::Vec<u8>,
1302}
1303#[allow(clippy::derive_partial_eq_without_eq)]
1305#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1306#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgUpdateAdmin")]
1307pub struct MsgUpdateAdmin {
1308 #[prost(string, tag = "1")]
1310 pub sender: ::prost::alloc::string::String,
1311 #[prost(string, tag = "2")]
1313 pub new_admin: ::prost::alloc::string::String,
1314 #[prost(string, tag = "3")]
1316 pub contract: ::prost::alloc::string::String,
1317}
1318#[allow(clippy::derive_partial_eq_without_eq)]
1320#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1321#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgUpdateAdminResponse")]
1322pub struct MsgUpdateAdminResponse {}
1323#[allow(clippy::derive_partial_eq_without_eq)]
1325#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1326#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgClearAdmin")]
1327pub struct MsgClearAdmin {
1328 #[prost(string, tag = "1")]
1330 pub sender: ::prost::alloc::string::String,
1331 #[prost(string, tag = "3")]
1333 pub contract: ::prost::alloc::string::String,
1334}
1335#[allow(clippy::derive_partial_eq_without_eq)]
1337#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1338#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgClearAdminResponse")]
1339pub struct MsgClearAdminResponse {}
1340#[allow(clippy::derive_partial_eq_without_eq)]
1342#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1343#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig")]
1344pub struct MsgUpdateInstantiateConfig {
1345 #[prost(string, tag = "1")]
1347 pub sender: ::prost::alloc::string::String,
1348 #[prost(uint64, tag = "2")]
1350 pub code_id: u64,
1351 #[prost(message, optional, tag = "3")]
1353 pub new_instantiate_permission: ::core::option::Option<AccessConfig>,
1354}
1355#[allow(clippy::derive_partial_eq_without_eq)]
1357#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1358#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse")]
1359pub struct MsgUpdateInstantiateConfigResponse {}
1360#[allow(clippy::derive_partial_eq_without_eq)]
1364#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1365#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgUpdateParams")]
1366pub struct MsgUpdateParams {
1367 #[prost(string, tag = "1")]
1369 pub authority: ::prost::alloc::string::String,
1370 #[prost(message, optional, tag = "2")]
1374 pub params: ::core::option::Option<Params>,
1375}
1376#[allow(clippy::derive_partial_eq_without_eq)]
1381#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1382#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgUpdateParamsResponse")]
1383pub struct MsgUpdateParamsResponse {}
1384#[allow(clippy::derive_partial_eq_without_eq)]
1388#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1389#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgSudoContract")]
1390pub struct MsgSudoContract {
1391 #[prost(string, tag = "1")]
1393 pub authority: ::prost::alloc::string::String,
1394 #[prost(string, tag = "2")]
1396 pub contract: ::prost::alloc::string::String,
1397 #[prost(bytes = "vec", tag = "3")]
1399 pub msg: ::prost::alloc::vec::Vec<u8>,
1400}
1401#[allow(clippy::derive_partial_eq_without_eq)]
1406#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1407#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgSudoContractResponse")]
1408pub struct MsgSudoContractResponse {
1409 #[prost(bytes = "vec", tag = "1")]
1411 pub data: ::prost::alloc::vec::Vec<u8>,
1412}
1413#[allow(clippy::derive_partial_eq_without_eq)]
1417#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1418#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgPinCodes")]
1419pub struct MsgPinCodes {
1420 #[prost(string, tag = "1")]
1422 pub authority: ::prost::alloc::string::String,
1423 #[prost(uint64, repeated, packed = "false", tag = "2")]
1425 pub code_ids: ::prost::alloc::vec::Vec<u64>,
1426}
1427#[allow(clippy::derive_partial_eq_without_eq)]
1432#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1433#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgPinCodesResponse")]
1434pub struct MsgPinCodesResponse {}
1435#[allow(clippy::derive_partial_eq_without_eq)]
1439#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1440#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgUnpinCodes")]
1441pub struct MsgUnpinCodes {
1442 #[prost(string, tag = "1")]
1444 pub authority: ::prost::alloc::string::String,
1445 #[prost(uint64, repeated, packed = "false", tag = "2")]
1447 pub code_ids: ::prost::alloc::vec::Vec<u64>,
1448}
1449#[allow(clippy::derive_partial_eq_without_eq)]
1454#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1455#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgUnpinCodesResponse")]
1456pub struct MsgUnpinCodesResponse {}
1457#[allow(clippy::derive_partial_eq_without_eq)]
1462#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1463#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract")]
1464pub struct MsgStoreAndInstantiateContract {
1465 #[prost(string, tag = "1")]
1467 pub authority: ::prost::alloc::string::String,
1468 #[prost(bytes = "vec", tag = "3")]
1470 pub wasm_byte_code: ::prost::alloc::vec::Vec<u8>,
1471 #[prost(message, optional, tag = "4")]
1473 pub instantiate_permission: ::core::option::Option<AccessConfig>,
1474 #[prost(bool, tag = "5")]
1477 pub unpin_code: bool,
1478 #[prost(string, tag = "6")]
1480 pub admin: ::prost::alloc::string::String,
1481 #[prost(string, tag = "7")]
1483 pub label: ::prost::alloc::string::String,
1484 #[prost(bytes = "vec", tag = "8")]
1486 pub msg: ::prost::alloc::vec::Vec<u8>,
1487 #[prost(message, repeated, tag = "9")]
1490 pub funds: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
1491 #[prost(string, tag = "10")]
1493 pub source: ::prost::alloc::string::String,
1494 #[prost(string, tag = "11")]
1497 pub builder: ::prost::alloc::string::String,
1498 #[prost(bytes = "vec", tag = "12")]
1501 pub code_hash: ::prost::alloc::vec::Vec<u8>,
1502}
1503#[allow(clippy::derive_partial_eq_without_eq)]
1508#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1509#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse")]
1510pub struct MsgStoreAndInstantiateContractResponse {
1511 #[prost(string, tag = "1")]
1513 pub address: ::prost::alloc::string::String,
1514 #[prost(bytes = "vec", tag = "2")]
1516 pub data: ::prost::alloc::vec::Vec<u8>,
1517}
1518#[allow(clippy::derive_partial_eq_without_eq)]
1521#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1522#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses")]
1523pub struct MsgAddCodeUploadParamsAddresses {
1524 #[prost(string, tag = "1")]
1526 pub authority: ::prost::alloc::string::String,
1527 #[prost(string, repeated, tag = "2")]
1528 pub addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1529}
1530#[allow(clippy::derive_partial_eq_without_eq)]
1533#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1534#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse")]
1535pub struct MsgAddCodeUploadParamsAddressesResponse {}
1536#[allow(clippy::derive_partial_eq_without_eq)]
1539#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1540#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses")]
1541pub struct MsgRemoveCodeUploadParamsAddresses {
1542 #[prost(string, tag = "1")]
1544 pub authority: ::prost::alloc::string::String,
1545 #[prost(string, repeated, tag = "2")]
1546 pub addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1547}
1548#[allow(clippy::derive_partial_eq_without_eq)]
1551#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1552#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse")]
1553pub struct MsgRemoveCodeUploadParamsAddressesResponse {}
1554#[allow(clippy::derive_partial_eq_without_eq)]
1559#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1560#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgStoreAndMigrateContract")]
1561pub struct MsgStoreAndMigrateContract {
1562 #[prost(string, tag = "1")]
1564 pub authority: ::prost::alloc::string::String,
1565 #[prost(bytes = "vec", tag = "2")]
1567 pub wasm_byte_code: ::prost::alloc::vec::Vec<u8>,
1568 #[prost(message, optional, tag = "3")]
1570 pub instantiate_permission: ::core::option::Option<AccessConfig>,
1571 #[prost(string, tag = "4")]
1573 pub contract: ::prost::alloc::string::String,
1574 #[prost(bytes = "vec", tag = "5")]
1576 pub msg: ::prost::alloc::vec::Vec<u8>,
1577}
1578#[allow(clippy::derive_partial_eq_without_eq)]
1583#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1584#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse")]
1585pub struct MsgStoreAndMigrateContractResponse {
1586 #[prost(uint64, tag = "1")]
1588 pub code_id: u64,
1589 #[prost(bytes = "vec", tag = "2")]
1591 pub checksum: ::prost::alloc::vec::Vec<u8>,
1592 #[prost(bytes = "vec", tag = "3")]
1594 pub data: ::prost::alloc::vec::Vec<u8>,
1595}
1596#[allow(clippy::derive_partial_eq_without_eq)]
1598#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1599#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgUpdateContractLabel")]
1600pub struct MsgUpdateContractLabel {
1601 #[prost(string, tag = "1")]
1603 pub sender: ::prost::alloc::string::String,
1604 #[prost(string, tag = "2")]
1606 pub new_label: ::prost::alloc::string::String,
1607 #[prost(string, tag = "3")]
1609 pub contract: ::prost::alloc::string::String,
1610}
1611#[allow(clippy::derive_partial_eq_without_eq)]
1613#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
1614#[proto_message(type_url = "/cosmwasm.wasm.v1.MsgUpdateContractLabelResponse")]
1615pub struct MsgUpdateContractLabelResponse {}
1616pub struct WasmQuerier<'a, Q: cosmwasm_std::CustomQuery> {
1617 querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
1618}
1619impl<'a, Q: cosmwasm_std::CustomQuery> WasmQuerier<'a, Q> {
1620 pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
1621 Self { querier }
1622 }
1623 pub fn contract_info(
1624 &self,
1625 address: ::prost::alloc::string::String,
1626 ) -> Result<QueryContractInfoResponse, cosmwasm_std::StdError> {
1627 QueryContractInfoRequest { address }.query(self.querier)
1628 }
1629 pub fn contract_history(
1630 &self,
1631 address: ::prost::alloc::string::String,
1632 pagination: ::core::option::Option<
1633 super::super::super::cosmos::base::query::v1beta1::PageRequest,
1634 >,
1635 ) -> Result<QueryContractHistoryResponse, cosmwasm_std::StdError> {
1636 QueryContractHistoryRequest {
1637 address,
1638 pagination,
1639 }
1640 .query(self.querier)
1641 }
1642 pub fn contracts_by_code(
1643 &self,
1644 code_id: u64,
1645 pagination: ::core::option::Option<
1646 super::super::super::cosmos::base::query::v1beta1::PageRequest,
1647 >,
1648 ) -> Result<QueryContractsByCodeResponse, cosmwasm_std::StdError> {
1649 QueryContractsByCodeRequest {
1650 code_id,
1651 pagination,
1652 }
1653 .query(self.querier)
1654 }
1655 pub fn all_contract_state(
1656 &self,
1657 address: ::prost::alloc::string::String,
1658 pagination: ::core::option::Option<
1659 super::super::super::cosmos::base::query::v1beta1::PageRequest,
1660 >,
1661 ) -> Result<QueryAllContractStateResponse, cosmwasm_std::StdError> {
1662 QueryAllContractStateRequest {
1663 address,
1664 pagination,
1665 }
1666 .query(self.querier)
1667 }
1668 pub fn raw_contract_state(
1669 &self,
1670 address: ::prost::alloc::string::String,
1671 query_data: ::prost::alloc::vec::Vec<u8>,
1672 ) -> Result<QueryRawContractStateResponse, cosmwasm_std::StdError> {
1673 QueryRawContractStateRequest {
1674 address,
1675 query_data,
1676 }
1677 .query(self.querier)
1678 }
1679 pub fn smart_contract_state(
1680 &self,
1681 address: ::prost::alloc::string::String,
1682 query_data: ::prost::alloc::vec::Vec<u8>,
1683 ) -> Result<QuerySmartContractStateResponse, cosmwasm_std::StdError> {
1684 QuerySmartContractStateRequest {
1685 address,
1686 query_data,
1687 }
1688 .query(self.querier)
1689 }
1690 pub fn code(&self, code_id: u64) -> Result<QueryCodeResponse, cosmwasm_std::StdError> {
1691 QueryCodeRequest { code_id }.query(self.querier)
1692 }
1693 pub fn codes(
1694 &self,
1695 pagination: ::core::option::Option<
1696 super::super::super::cosmos::base::query::v1beta1::PageRequest,
1697 >,
1698 ) -> Result<QueryCodesResponse, cosmwasm_std::StdError> {
1699 QueryCodesRequest { pagination }.query(self.querier)
1700 }
1701 pub fn pinned_codes(
1702 &self,
1703 pagination: ::core::option::Option<
1704 super::super::super::cosmos::base::query::v1beta1::PageRequest,
1705 >,
1706 ) -> Result<QueryPinnedCodesResponse, cosmwasm_std::StdError> {
1707 QueryPinnedCodesRequest { pagination }.query(self.querier)
1708 }
1709 pub fn params(&self) -> Result<QueryParamsResponse, cosmwasm_std::StdError> {
1710 QueryParamsRequest {}.query(self.querier)
1711 }
1712 pub fn contracts_by_creator(
1713 &self,
1714 creator_address: ::prost::alloc::string::String,
1715 pagination: ::core::option::Option<
1716 super::super::super::cosmos::base::query::v1beta1::PageRequest,
1717 >,
1718 ) -> Result<QueryContractsByCreatorResponse, cosmwasm_std::StdError> {
1719 QueryContractsByCreatorRequest {
1720 creator_address,
1721 pagination,
1722 }
1723 .query(self.querier)
1724 }
1725 pub fn build_address(
1726 &self,
1727 code_hash: ::prost::alloc::string::String,
1728 creator_address: ::prost::alloc::string::String,
1729 salt: ::prost::alloc::string::String,
1730 init_args: ::prost::alloc::vec::Vec<u8>,
1731 ) -> Result<QueryBuildAddressResponse, cosmwasm_std::StdError> {
1732 QueryBuildAddressRequest {
1733 code_hash,
1734 creator_address,
1735 salt,
1736 init_args,
1737 }
1738 .query(self.querier)
1739 }
1740}