Files
reth/crates/primitives/src/log.rs
Bjerg d14f995e1a test: improve slow tests (#3487)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-07-02 10:46:16 +00:00

22 lines
666 B
Rust

use crate::{Address, Bytes, H256};
use reth_codecs::{main_codec, Compact};
use reth_rlp::{RlpDecodable, RlpEncodable};
/// Ethereum Log
#[main_codec(rlp)]
#[derive(Clone, Debug, PartialEq, Eq, RlpDecodable, RlpEncodable, Default)]
pub struct Log {
/// Contract that emitted this log.
pub address: Address,
/// Topics of the log. The number of logs depend on what `LOG` opcode is used.
#[cfg_attr(
any(test, feature = "arbitrary"),
proptest(
strategy = "proptest::collection::vec(proptest::arbitrary::any::<H256>(), 0..=5)"
)
)]
pub topics: Vec<H256>,
/// Arbitrary length data.
pub data: Bytes,
}