Skip to main content

sp1_core_executor/events/
global.rs

1use deepsize2::DeepSizeOf;
2use serde::{Deserialize, Serialize};
3
4/// Global Interaction Event.
5///
6/// This event is emitted for all interactions that are sent or received across different shards.
7#[derive(Clone, Copy, Debug, Default, Serialize, Deserialize, DeepSizeOf)]
8#[repr(C)]
9pub struct GlobalInteractionEvent {
10    /// The message.
11    pub message: [u32; 8],
12    /// Whether the interaction is received or sent.
13    pub is_receive: bool,
14    /// The kind of the interaction event.
15    pub kind: u8,
16}