pub struct Event {
pub key: U256,
pub value: U256,
pub is_first: bool,
pub shard_id: u8,
pub tx_number: u16,
}Expand description
Event emitted by EraVM.
vm2 records events only from the EventWriter system contract (0x800d), the sole contract
that runs the Event opcode in practice. zk_evm instead records events from any emitter
(keeping the emitter address) and filters down to the EventWriter later. Both yield the same
event set, so there is no address field here — the originating contract is encoded in the
event payload, as in zk_evm.
Fields§
§key: U256Event key.
value: U256Event value.
is_first: boolIs this event first in a chain of events?
shard_id: u8Shard identifier (currently, always set to 0).
tx_number: u160-based index of a transaction that has emitted this event.
Trait Implementations§
impl Copy for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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