althea_proto/prost/
ethermint.types.v1.rs

1// This file is @generated by prost-build.
2/// EthAccount implements the authtypes.AccountI interface and embeds an
3/// authtypes.BaseAccount type. It is compatible with the auth AccountKeeper.
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct EthAccount {
6    #[prost(message, optional, tag = "1")]
7    pub base_account: ::core::option::Option<
8        cosmos_sdk_proto::cosmos::auth::v1beta1::BaseAccount,
9    >,
10    #[prost(string, tag = "2")]
11    pub code_hash: ::prost::alloc::string::String,
12}
13/// TxResult is the value stored in eth tx indexer
14#[derive(Clone, Copy, PartialEq, ::prost::Message)]
15pub struct TxResult {
16    /// the block height
17    #[prost(int64, tag = "1")]
18    pub height: i64,
19    /// cosmos tx index
20    #[prost(uint32, tag = "2")]
21    pub tx_index: u32,
22    /// the msg index in a batch tx
23    #[prost(uint32, tag = "3")]
24    pub msg_index: u32,
25    /// eth tx index, the index in the list of valid eth tx in the block,
26    /// aka. the transaction list returned by eth_getBlock api.
27    #[prost(int32, tag = "4")]
28    pub eth_tx_index: i32,
29    /// if the eth tx is failed
30    #[prost(bool, tag = "5")]
31    pub failed: bool,
32    /// gas used by tx, if exceeds block gas limit,
33    /// it's set to gas limit which is what's actually deducted by ante handler.
34    #[prost(uint64, tag = "6")]
35    pub gas_used: u64,
36    /// the cumulative gas used within current batch tx
37    #[prost(uint64, tag = "7")]
38    pub cumulative_gas_used: u64,
39}
40#[derive(Clone, PartialEq, ::prost::Message)]
41pub struct ExtensionOptionsWeb3Tx {
42    /// typed data chain id used only in EIP712 Domain and should match
43    /// Ethereum network ID in a Web3 provider (e.g. Metamask).
44    #[prost(uint64, tag = "1")]
45    pub typed_data_chain_id: u64,
46    /// fee payer is an account address for the fee payer. It will be validated
47    /// during EIP712 signature checking.
48    #[prost(string, tag = "2")]
49    pub fee_payer: ::prost::alloc::string::String,
50    /// fee payer sig is a signature data from the fee paying account,
51    /// allows to perform fee delegation when using EIP712 Domain.
52    #[prost(bytes = "vec", tag = "3")]
53    pub fee_payer_sig: ::prost::alloc::vec::Vec<u8>,
54}