Trait t3rn_primitives::circuit::traits::OnLocalTrigger
source · pub trait OnLocalTrigger<T: ConfigSystem, Balance> {
// Required methods
fn on_local_trigger(
origin: &OriginFor<T>,
trigger: LocalTrigger<T>
) -> Result<LocalStateExecutionView<T, Balance>, DispatchError>;
fn load_local_state(
origin: &OriginFor<T>,
maybe_xtx_id: Option<T::Hash>
) -> Result<LocalStateExecutionView<T, Balance>, DispatchError>;
fn on_signal(
origin: &OriginFor<T>,
signal: ExecutionSignal<T::Hash>
) -> DispatchResult;
}