pub struct RawEvent {
pub chain: ChainId,
pub tx_hash: String,
pub block_number: u64,
pub block_timestamp: i64,
pub log_index: u32,
pub topics: Vec<String>,
pub data: Vec<u8>,
pub address: String,
pub raw_receipt: Option<Value>,
}Expand description
A raw, undecoded event as received from an RPC node or batch loader. This is the input to every decoder.
Fields§
§chain: ChainIdThe chain this event came from
tx_hash: StringTransaction hash (hex-encoded with 0x prefix for EVM, base58 for Solana, etc.)
block_number: u64Block number / slot / height
block_timestamp: i64Block timestamp (Unix seconds, UTC)
log_index: u32Log / event index within the transaction
topics: Vec<String>EVM: topics[0] is the event signature hash; additional topics are indexed params. Solana: discriminator bytes. Cosmos: event type string.
data: Vec<u8>ABI-encoded non-indexed parameters (EVM) or raw instruction data (Solana/Cosmos).
address: StringContract address that emitted the event
raw_receipt: Option<Value>Optional raw transaction receipt for additional context
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawEvent
impl<'de> Deserialize<'de> for RawEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RawEvent
impl RefUnwindSafe for RawEvent
impl Send for RawEvent
impl Sync for RawEvent
impl Unpin for RawEvent
impl UnsafeUnpin for RawEvent
impl UnwindSafe for RawEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more