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