pub struct Event {
pub address: Address,
pub log_index: BigInt,
pub transaction_log_index: BigInt,
pub log_type: Option<String>,
pub block: Block,
pub transaction: Transaction,
pub parameters: IndexMap<String, Value>,
pub receipt: Option<TransactionReceipt>,
}
Expand description
Common representation for Ethereum smart contract events.
Fields§
§address: Address
§log_index: BigInt
§transaction_log_index: BigInt
§log_type: Option<String>
§block: Block
§transaction: Transaction
§parameters: IndexMap<String, Value>
§receipt: Option<TransactionReceipt>
Implementations§
source§impl Event
impl Event
sourcepub unsafe fn from_ptr_with_receipt(ptr: EventPtr) -> Self
pub unsafe fn from_ptr_with_receipt(ptr: EventPtr) -> Self
Creates an event from a raw pointer, including the transaction receipt.
This is currently not the default behaviour for events because the
receipts have non-deterministic null
fields.
Safety
This must be a pointer passed into a call handler and the transaction receipt is correctly initialized.
Trait Implementations§
impl Eq for Event
impl StructuralEq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.