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

1/// TxResponse defines a structure containing relevant tx data and metadata. The
2/// tags are stringified and the log is JSON decoded.
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct TxResponse {
6    /// The block height
7    #[prost(int64, tag = "1")]
8    pub height: i64,
9    /// The transaction hash.
10    #[prost(string, tag = "2")]
11    pub txhash: ::prost::alloc::string::String,
12    /// Namespace for the Code
13    #[prost(string, tag = "3")]
14    pub codespace: ::prost::alloc::string::String,
15    /// Response code.
16    #[prost(uint32, tag = "4")]
17    pub code: u32,
18    /// Result bytes, if any.
19    #[prost(string, tag = "5")]
20    pub data: ::prost::alloc::string::String,
21    /// The output of the application's logger (raw string). May be
22    /// non-deterministic.
23    #[prost(string, tag = "6")]
24    pub raw_log: ::prost::alloc::string::String,
25    /// The output of the application's logger (typed). May be non-deterministic.
26    #[prost(message, repeated, tag = "7")]
27    pub logs: ::prost::alloc::vec::Vec<AbciMessageLog>,
28    /// Additional information. May be non-deterministic.
29    #[prost(string, tag = "8")]
30    pub info: ::prost::alloc::string::String,
31    /// Amount of gas requested for transaction.
32    #[prost(int64, tag = "9")]
33    pub gas_wanted: i64,
34    /// Amount of gas consumed by transaction.
35    #[prost(int64, tag = "10")]
36    pub gas_used: i64,
37    /// The request transaction bytes.
38    #[prost(message, optional, tag = "11")]
39    pub tx: ::core::option::Option<::prost_types::Any>,
40    /// Time of the previous block. For heights > 1, it's the weighted median of
41    /// the timestamps of the valid votes in the block.LastCommit. For height == 1,
42    /// it's genesis time.
43    #[prost(string, tag = "12")]
44    pub timestamp: ::prost::alloc::string::String,
45    /// Events defines all the events emitted by processing a transaction. Note,
46    /// these events include those emitted by processing all the messages and those
47    /// emitted from the ante handler. Whereas Logs contains the events, with
48    /// additional metadata, emitted only by processing the messages.
49    ///
50    /// Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
51    #[prost(message, repeated, tag = "13")]
52    pub events: ::prost::alloc::vec::Vec<::tendermint_proto::abci::Event>,
53}
54/// ABCIMessageLog defines a structure containing an indexed tx ABCI message log.
55#[allow(clippy::derive_partial_eq_without_eq)]
56#[derive(Clone, PartialEq, ::prost::Message)]
57pub struct AbciMessageLog {
58    #[prost(uint32, tag = "1")]
59    pub msg_index: u32,
60    #[prost(string, tag = "2")]
61    pub log: ::prost::alloc::string::String,
62    /// Events contains a slice of Event objects that were emitted during some
63    /// execution.
64    #[prost(message, repeated, tag = "3")]
65    pub events: ::prost::alloc::vec::Vec<StringEvent>,
66}
67/// StringEvent defines en Event object wrapper where all the attributes
68/// contain key/value pairs that are strings instead of raw bytes.
69#[allow(clippy::derive_partial_eq_without_eq)]
70#[derive(Clone, PartialEq, ::prost::Message)]
71pub struct StringEvent {
72    #[prost(string, tag = "1")]
73    pub r#type: ::prost::alloc::string::String,
74    #[prost(message, repeated, tag = "2")]
75    pub attributes: ::prost::alloc::vec::Vec<Attribute>,
76}
77/// Attribute defines an attribute wrapper where the key and value are
78/// strings instead of raw bytes.
79#[allow(clippy::derive_partial_eq_without_eq)]
80#[derive(Clone, PartialEq, ::prost::Message)]
81pub struct Attribute {
82    #[prost(string, tag = "1")]
83    pub key: ::prost::alloc::string::String,
84    #[prost(string, tag = "2")]
85    pub value: ::prost::alloc::string::String,
86}
87/// GasInfo defines tx execution gas context.
88#[allow(clippy::derive_partial_eq_without_eq)]
89#[derive(Clone, PartialEq, ::prost::Message)]
90pub struct GasInfo {
91    /// GasWanted is the maximum units of work we allow this tx to perform.
92    #[prost(uint64, tag = "1")]
93    pub gas_wanted: u64,
94    /// GasUsed is the amount of gas actually consumed.
95    #[prost(uint64, tag = "2")]
96    pub gas_used: u64,
97}
98/// Result is the union of ResponseFormat and ResponseCheckTx.
99#[allow(clippy::derive_partial_eq_without_eq)]
100#[derive(Clone, PartialEq, ::prost::Message)]
101pub struct Result {
102    /// Data is any data returned from message or handler execution. It MUST be
103    /// length prefixed in order to separate data from multiple message executions.
104    #[prost(bytes = "vec", tag = "1")]
105    pub data: ::prost::alloc::vec::Vec<u8>,
106    /// Log contains the log information from message or handler execution.
107    #[prost(string, tag = "2")]
108    pub log: ::prost::alloc::string::String,
109    /// Events contains a slice of Event objects that were emitted during message
110    /// or handler execution.
111    #[prost(message, repeated, tag = "3")]
112    pub events: ::prost::alloc::vec::Vec<::tendermint_proto::abci::Event>,
113}
114/// SimulationResponse defines the response generated when a transaction is
115/// successfully simulated.
116#[allow(clippy::derive_partial_eq_without_eq)]
117#[derive(Clone, PartialEq, ::prost::Message)]
118pub struct SimulationResponse {
119    #[prost(message, optional, tag = "1")]
120    pub gas_info: ::core::option::Option<GasInfo>,
121    #[prost(message, optional, tag = "2")]
122    pub result: ::core::option::Option<Result>,
123}
124/// MsgData defines the data returned in a Result object during message
125/// execution.
126#[allow(clippy::derive_partial_eq_without_eq)]
127#[derive(Clone, PartialEq, ::prost::Message)]
128pub struct MsgData {
129    #[prost(string, tag = "1")]
130    pub msg_type: ::prost::alloc::string::String,
131    #[prost(bytes = "vec", tag = "2")]
132    pub data: ::prost::alloc::vec::Vec<u8>,
133}
134/// TxMsgData defines a list of MsgData. A transaction will have a MsgData object
135/// for each message.
136#[allow(clippy::derive_partial_eq_without_eq)]
137#[derive(Clone, PartialEq, ::prost::Message)]
138pub struct TxMsgData {
139    #[prost(message, repeated, tag = "1")]
140    pub data: ::prost::alloc::vec::Vec<MsgData>,
141}
142/// SearchTxsResult defines a structure for querying txs pageable
143#[allow(clippy::derive_partial_eq_without_eq)]
144#[derive(Clone, PartialEq, ::prost::Message)]
145pub struct SearchTxsResult {
146    /// Count of all txs
147    #[prost(uint64, tag = "1")]
148    pub total_count: u64,
149    /// Count of txs in current page
150    #[prost(uint64, tag = "2")]
151    pub count: u64,
152    /// Index of current page, start from 1
153    #[prost(uint64, tag = "3")]
154    pub page_number: u64,
155    /// Count of total pages
156    #[prost(uint64, tag = "4")]
157    pub page_total: u64,
158    /// Max count txs per page
159    #[prost(uint64, tag = "5")]
160    pub limit: u64,
161    /// List of txs in current page
162    #[prost(message, repeated, tag = "6")]
163    pub txs: ::prost::alloc::vec::Vec<TxResponse>,
164}