pub trait OnLocalTrigger<T, Balance>where
T: Config,{
// Required methods
fn on_local_trigger(
origin: &<T as Config>::RuntimeOrigin,
trigger: LocalTrigger<T>
) -> Result<LocalStateExecutionView<T, Balance>, DispatchError>;
fn load_local_state(
origin: &<T as Config>::RuntimeOrigin,
maybe_xtx_id: Option<<T as Config>::Hash>
) -> Result<LocalStateExecutionView<T, Balance>, DispatchError>;
fn on_signal(
origin: &<T as Config>::RuntimeOrigin,
signal: ExecutionSignal<<T as Config>::Hash>
) -> Result<(), DispatchError>;
}