cosmos_sdk_proto/prost/cosmos-sdk/
cosmos.base.abci.v1beta1.rs

1// @generated
2/// TxResponse defines a structure containing relevant tx data and metadata. The
3/// tags are stringified and the log is JSON decoded.
4#[allow(clippy::derive_partial_eq_without_eq)]
5#[derive(Clone, PartialEq, ::prost::Message)]
6pub struct TxResponse {
7    /// The block height
8    #[prost(int64, tag = "1")]
9    pub height: i64,
10    /// The transaction hash.
11    #[prost(string, tag = "2")]
12    pub txhash: ::prost::alloc::string::String,
13    /// Namespace for the Code
14    #[prost(string, tag = "3")]
15    pub codespace: ::prost::alloc::string::String,
16    /// Response code.
17    #[prost(uint32, tag = "4")]
18    pub code: u32,
19    /// Result bytes, if any.
20    #[prost(string, tag = "5")]
21    pub data: ::prost::alloc::string::String,
22    /// The output of the application's logger (raw string). May be
23    /// non-deterministic.
24    #[prost(string, tag = "6")]
25    pub raw_log: ::prost::alloc::string::String,
26    /// The output of the application's logger (typed). May be non-deterministic.
27    #[prost(message, repeated, tag = "7")]
28    pub logs: ::prost::alloc::vec::Vec<AbciMessageLog>,
29    /// Additional information. May be non-deterministic.
30    #[prost(string, tag = "8")]
31    pub info: ::prost::alloc::string::String,
32    /// Amount of gas requested for transaction.
33    #[prost(int64, tag = "9")]
34    pub gas_wanted: i64,
35    /// Amount of gas consumed by transaction.
36    #[prost(int64, tag = "10")]
37    pub gas_used: i64,
38    /// The request transaction bytes.
39    #[prost(message, optional, tag = "11")]
40    pub tx: ::core::option::Option<::tendermint_proto::google::protobuf::Any>,
41    /// Time of the previous block. For heights > 1, it's the weighted median of
42    /// the timestamps of the valid votes in the block.LastCommit. For height == 1,
43    /// it's genesis time.
44    #[prost(string, tag = "12")]
45    pub timestamp: ::prost::alloc::string::String,
46    /// Events defines all the events emitted by processing a transaction. Note,
47    /// these events include those emitted by processing all the messages and those
48    /// emitted from the ante. Whereas Logs contains the events, with
49    /// additional metadata, emitted only by processing the messages.
50    ///
51    /// Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
52    #[prost(message, repeated, tag = "13")]
53    pub events: ::prost::alloc::vec::Vec<::tendermint_proto::abci::Event>,
54}
55impl ::prost::Name for TxResponse {
56    const NAME: &'static str = "TxResponse";
57    const PACKAGE: &'static str = "cosmos.base.abci.v1beta1";
58    fn full_name() -> ::prost::alloc::string::String {
59        ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME)
60    }
61}
62/// ABCIMessageLog defines a structure containing an indexed tx ABCI message log.
63#[allow(clippy::derive_partial_eq_without_eq)]
64#[derive(Clone, PartialEq, ::prost::Message)]
65pub struct AbciMessageLog {
66    #[prost(uint32, tag = "1")]
67    pub msg_index: u32,
68    #[prost(string, tag = "2")]
69    pub log: ::prost::alloc::string::String,
70    /// Events contains a slice of Event objects that were emitted during some
71    /// execution.
72    #[prost(message, repeated, tag = "3")]
73    pub events: ::prost::alloc::vec::Vec<StringEvent>,
74}
75impl ::prost::Name for AbciMessageLog {
76    const NAME: &'static str = "ABCIMessageLog";
77    const PACKAGE: &'static str = "cosmos.base.abci.v1beta1";
78    fn full_name() -> ::prost::alloc::string::String {
79        ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME)
80    }
81}
82/// StringEvent defines en Event object wrapper where all the attributes
83/// contain key/value pairs that are strings instead of raw bytes.
84#[allow(clippy::derive_partial_eq_without_eq)]
85#[derive(Clone, PartialEq, ::prost::Message)]
86pub struct StringEvent {
87    #[prost(string, tag = "1")]
88    pub r#type: ::prost::alloc::string::String,
89    #[prost(message, repeated, tag = "2")]
90    pub attributes: ::prost::alloc::vec::Vec<Attribute>,
91}
92impl ::prost::Name for StringEvent {
93    const NAME: &'static str = "StringEvent";
94    const PACKAGE: &'static str = "cosmos.base.abci.v1beta1";
95    fn full_name() -> ::prost::alloc::string::String {
96        ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME)
97    }
98}
99/// Attribute defines an attribute wrapper where the key and value are
100/// strings instead of raw bytes.
101#[allow(clippy::derive_partial_eq_without_eq)]
102#[derive(Clone, PartialEq, ::prost::Message)]
103pub struct Attribute {
104    #[prost(string, tag = "1")]
105    pub key: ::prost::alloc::string::String,
106    #[prost(string, tag = "2")]
107    pub value: ::prost::alloc::string::String,
108}
109impl ::prost::Name for Attribute {
110    const NAME: &'static str = "Attribute";
111    const PACKAGE: &'static str = "cosmos.base.abci.v1beta1";
112    fn full_name() -> ::prost::alloc::string::String {
113        ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME)
114    }
115}
116/// GasInfo defines tx execution gas context.
117#[allow(clippy::derive_partial_eq_without_eq)]
118#[derive(Clone, PartialEq, ::prost::Message)]
119pub struct GasInfo {
120    /// GasWanted is the maximum units of work we allow this tx to perform.
121    #[prost(uint64, tag = "1")]
122    pub gas_wanted: u64,
123    /// GasUsed is the amount of gas actually consumed.
124    #[prost(uint64, tag = "2")]
125    pub gas_used: u64,
126}
127impl ::prost::Name for GasInfo {
128    const NAME: &'static str = "GasInfo";
129    const PACKAGE: &'static str = "cosmos.base.abci.v1beta1";
130    fn full_name() -> ::prost::alloc::string::String {
131        ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME)
132    }
133}
134/// Result is the union of ResponseFormat and ResponseCheckTx.
135#[allow(clippy::derive_partial_eq_without_eq)]
136#[derive(Clone, PartialEq, ::prost::Message)]
137pub struct Result {
138    /// Data is any data returned from message or handler execution. It MUST be
139    /// length prefixed in order to separate data from multiple message executions.
140    /// Deprecated. This field is still populated, but prefer msg_response instead
141    /// because it also contains the Msg response typeURL.
142    #[deprecated]
143    #[prost(bytes = "vec", tag = "1")]
144    pub data: ::prost::alloc::vec::Vec<u8>,
145    /// Log contains the log information from message or handler execution.
146    #[prost(string, tag = "2")]
147    pub log: ::prost::alloc::string::String,
148    /// Events contains a slice of Event objects that were emitted during message
149    /// or handler execution.
150    #[prost(message, repeated, tag = "3")]
151    pub events: ::prost::alloc::vec::Vec<::tendermint_proto::abci::Event>,
152    /// msg_responses contains the Msg handler responses type packed in Anys.
153    ///
154    /// Since: cosmos-sdk 0.46
155    #[prost(message, repeated, tag = "4")]
156    pub msg_responses: ::prost::alloc::vec::Vec<::tendermint_proto::google::protobuf::Any>,
157}
158impl ::prost::Name for Result {
159    const NAME: &'static str = "Result";
160    const PACKAGE: &'static str = "cosmos.base.abci.v1beta1";
161    fn full_name() -> ::prost::alloc::string::String {
162        ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME)
163    }
164}
165/// SimulationResponse defines the response generated when a transaction is
166/// successfully simulated.
167#[allow(clippy::derive_partial_eq_without_eq)]
168#[derive(Clone, PartialEq, ::prost::Message)]
169pub struct SimulationResponse {
170    #[prost(message, optional, tag = "1")]
171    pub gas_info: ::core::option::Option<GasInfo>,
172    #[prost(message, optional, tag = "2")]
173    pub result: ::core::option::Option<Result>,
174}
175impl ::prost::Name for SimulationResponse {
176    const NAME: &'static str = "SimulationResponse";
177    const PACKAGE: &'static str = "cosmos.base.abci.v1beta1";
178    fn full_name() -> ::prost::alloc::string::String {
179        ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME)
180    }
181}
182/// MsgData defines the data returned in a Result object during message
183/// execution.
184#[allow(clippy::derive_partial_eq_without_eq)]
185#[derive(Clone, PartialEq, ::prost::Message)]
186pub struct MsgData {
187    #[prost(string, tag = "1")]
188    pub msg_type: ::prost::alloc::string::String,
189    #[prost(bytes = "vec", tag = "2")]
190    pub data: ::prost::alloc::vec::Vec<u8>,
191}
192impl ::prost::Name for MsgData {
193    const NAME: &'static str = "MsgData";
194    const PACKAGE: &'static str = "cosmos.base.abci.v1beta1";
195    fn full_name() -> ::prost::alloc::string::String {
196        ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME)
197    }
198}
199/// TxMsgData defines a list of MsgData. A transaction will have a MsgData object
200/// for each message.
201#[allow(clippy::derive_partial_eq_without_eq)]
202#[derive(Clone, PartialEq, ::prost::Message)]
203pub struct TxMsgData {
204    /// data field is deprecated and not populated.
205    #[deprecated]
206    #[prost(message, repeated, tag = "1")]
207    pub data: ::prost::alloc::vec::Vec<MsgData>,
208    /// msg_responses contains the Msg handler responses packed into Anys.
209    ///
210    /// Since: cosmos-sdk 0.46
211    #[prost(message, repeated, tag = "2")]
212    pub msg_responses: ::prost::alloc::vec::Vec<::tendermint_proto::google::protobuf::Any>,
213}
214impl ::prost::Name for TxMsgData {
215    const NAME: &'static str = "TxMsgData";
216    const PACKAGE: &'static str = "cosmos.base.abci.v1beta1";
217    fn full_name() -> ::prost::alloc::string::String {
218        ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME)
219    }
220}
221/// SearchTxsResult defines a structure for querying txs pageable
222#[allow(clippy::derive_partial_eq_without_eq)]
223#[derive(Clone, PartialEq, ::prost::Message)]
224pub struct SearchTxsResult {
225    /// Count of all txs
226    #[prost(uint64, tag = "1")]
227    pub total_count: u64,
228    /// Count of txs in current page
229    #[prost(uint64, tag = "2")]
230    pub count: u64,
231    /// Index of current page, start from 1
232    #[prost(uint64, tag = "3")]
233    pub page_number: u64,
234    /// Count of total pages
235    #[prost(uint64, tag = "4")]
236    pub page_total: u64,
237    /// Max count txs per page
238    #[prost(uint64, tag = "5")]
239    pub limit: u64,
240    /// List of txs in current page
241    #[prost(message, repeated, tag = "6")]
242    pub txs: ::prost::alloc::vec::Vec<TxResponse>,
243}
244impl ::prost::Name for SearchTxsResult {
245    const NAME: &'static str = "SearchTxsResult";
246    const PACKAGE: &'static str = "cosmos.base.abci.v1beta1";
247    fn full_name() -> ::prost::alloc::string::String {
248        ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME)
249    }
250}
251/// SearchBlocksResult defines a structure for querying blocks pageable
252#[allow(clippy::derive_partial_eq_without_eq)]
253#[derive(Clone, PartialEq, ::prost::Message)]
254pub struct SearchBlocksResult {
255    /// Count of all blocks
256    #[prost(int64, tag = "1")]
257    pub total_count: i64,
258    /// Count of blocks in current page
259    #[prost(int64, tag = "2")]
260    pub count: i64,
261    /// Index of current page, start from 1
262    #[prost(int64, tag = "3")]
263    pub page_number: i64,
264    /// Count of total pages
265    #[prost(int64, tag = "4")]
266    pub page_total: i64,
267    /// Max count blocks per page
268    #[prost(int64, tag = "5")]
269    pub limit: i64,
270    /// List of blocks in current page
271    #[prost(message, repeated, tag = "6")]
272    pub blocks: ::prost::alloc::vec::Vec<::tendermint_proto::types::Block>,
273}
274impl ::prost::Name for SearchBlocksResult {
275    const NAME: &'static str = "SearchBlocksResult";
276    const PACKAGE: &'static str = "cosmos.base.abci.v1beta1";
277    fn full_name() -> ::prost::alloc::string::String {
278        ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME)
279    }
280}
281include!("cosmos.base.abci.v1beta1.serde.rs");
282// @@protoc_insertion_point(module)