anychain_ethereum/transaction/
mod.rs1pub mod contract;
2pub mod eip1559;
3pub mod eip3009;
4pub mod eip7702;
5pub mod legacy;
6
7pub use contract::*;
8pub use eip1559::*;
9pub use eip3009::*;
10pub use eip7702::*;
11pub use legacy::*;
12
13use anychain_core::{hex, TransactionId};
14use core::fmt;
15
16#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
17pub struct EthereumTransactionId {
18 pub txid: Vec<u8>,
19}
20
21impl TransactionId for EthereumTransactionId {}
22
23impl fmt::Display for EthereumTransactionId {
24 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
25 write!(f, "0x{}", hex::encode(&self.txid))
26 }
27}