ibc_proto/prost/
ibc.applications.interchain_accounts.v1.rs1#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct InterchainAccount {
5 #[prost(message, optional, tag = "1")]
6 pub base_account: ::core::option::Option<
7 super::super::super::super::cosmos::auth::v1beta1::BaseAccount,
8 >,
9 #[prost(string, tag = "2")]
10 pub account_owner: ::prost::alloc::string::String,
11}
12impl ::prost::Name for InterchainAccount {
13 const NAME: &'static str = "InterchainAccount";
14 const PACKAGE: &'static str = "ibc.applications.interchain_accounts.v1";
15 fn full_name() -> ::prost::alloc::string::String {
16 "ibc.applications.interchain_accounts.v1.InterchainAccount".into()
17 }
18 fn type_url() -> ::prost::alloc::string::String {
19 "/ibc.applications.interchain_accounts.v1.InterchainAccount".into()
20 }
21}
22#[derive(Clone, PartialEq, ::prost::Message)]
24pub struct InterchainAccountPacketData {
25 #[prost(enumeration = "Type", tag = "1")]
26 pub r#type: i32,
27 #[prost(bytes = "vec", tag = "2")]
28 pub data: ::prost::alloc::vec::Vec<u8>,
29 #[prost(string, tag = "3")]
30 pub memo: ::prost::alloc::string::String,
31}
32impl ::prost::Name for InterchainAccountPacketData {
33 const NAME: &'static str = "InterchainAccountPacketData";
34 const PACKAGE: &'static str = "ibc.applications.interchain_accounts.v1";
35 fn full_name() -> ::prost::alloc::string::String {
36 "ibc.applications.interchain_accounts.v1.InterchainAccountPacketData".into()
37 }
38 fn type_url() -> ::prost::alloc::string::String {
39 "/ibc.applications.interchain_accounts.v1.InterchainAccountPacketData".into()
40 }
41}
42#[derive(Clone, PartialEq, ::prost::Message)]
44pub struct CosmosTx {
45 #[prost(message, repeated, tag = "1")]
46 pub messages: ::prost::alloc::vec::Vec<::tendermint_proto::google::protobuf::Any>,
47}
48impl ::prost::Name for CosmosTx {
49 const NAME: &'static str = "CosmosTx";
50 const PACKAGE: &'static str = "ibc.applications.interchain_accounts.v1";
51 fn full_name() -> ::prost::alloc::string::String {
52 "ibc.applications.interchain_accounts.v1.CosmosTx".into()
53 }
54 fn type_url() -> ::prost::alloc::string::String {
55 "/ibc.applications.interchain_accounts.v1.CosmosTx".into()
56 }
57}
58#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
61#[repr(i32)]
62pub enum Type {
63 Unspecified = 0,
65 ExecuteTx = 1,
67}
68impl Type {
69 pub fn as_str_name(&self) -> &'static str {
74 match self {
75 Self::Unspecified => "TYPE_UNSPECIFIED",
76 Self::ExecuteTx => "TYPE_EXECUTE_TX",
77 }
78 }
79 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
81 match value {
82 "TYPE_UNSPECIFIED" => Some(Self::Unspecified),
83 "TYPE_EXECUTE_TX" => Some(Self::ExecuteTx),
84 _ => None,
85 }
86 }
87}
88#[derive(Clone, PartialEq, ::prost::Message)]
91pub struct Metadata {
92 #[prost(string, tag = "1")]
94 pub version: ::prost::alloc::string::String,
95 #[prost(string, tag = "2")]
97 pub controller_connection_id: ::prost::alloc::string::String,
98 #[prost(string, tag = "3")]
100 pub host_connection_id: ::prost::alloc::string::String,
101 #[prost(string, tag = "4")]
104 pub address: ::prost::alloc::string::String,
105 #[prost(string, tag = "5")]
107 pub encoding: ::prost::alloc::string::String,
108 #[prost(string, tag = "6")]
110 pub tx_type: ::prost::alloc::string::String,
111}
112impl ::prost::Name for Metadata {
113 const NAME: &'static str = "Metadata";
114 const PACKAGE: &'static str = "ibc.applications.interchain_accounts.v1";
115 fn full_name() -> ::prost::alloc::string::String {
116 "ibc.applications.interchain_accounts.v1.Metadata".into()
117 }
118 fn type_url() -> ::prost::alloc::string::String {
119 "/ibc.applications.interchain_accounts.v1.Metadata".into()
120 }
121}