rns_hooks/result.rs
1pub use rns_hooks_abi::result::{HookResult, Verdict};
2
3#[derive(Debug, Clone)]
4pub struct EmittedProviderEvent {
5 pub hook_name: String,
6 pub payload_type: String,
7 pub payload: Vec<u8>,
8}
9
10/// Result of executing a single program or a chain, with owned data extracted
11/// from WASM memory before the store is dropped.
12#[derive(Debug, Clone)]
13pub struct ExecuteResult {
14 pub hook_result: Option<HookResult>,
15 pub injected_actions: Vec<crate::wire::ActionWire>,
16 pub provider_events: Vec<EmittedProviderEvent>,
17 pub modified_data: Option<Vec<u8>>,
18}