mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-10 15:05:24 -05:00
16 lines
454 B
Rust
16 lines
454 B
Rust
use crate::{Address, H256};
|
|
use reth_codecs::main_codec;
|
|
use reth_rlp::{RlpDecodable, RlpEncodable};
|
|
|
|
/// Ethereum Log
|
|
#[main_codec]
|
|
#[derive(Clone, Debug, PartialEq, Eq, RlpDecodable, RlpEncodable)]
|
|
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.
|
|
pub topics: Vec<H256>,
|
|
/// Arbitrary length data.
|
|
pub data: bytes::Bytes,
|
|
}
|