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;
}

Required Methods§

source

fn on_local_trigger( origin: &OriginFor<T>, trigger: LocalTrigger<T> ) -> Result<LocalStateExecutionView<T, Balance>, DispatchError>

source

fn load_local_state( origin: &OriginFor<T>, maybe_xtx_id: Option<T::Hash> ) -> Result<LocalStateExecutionView<T, Balance>, DispatchError>

source

fn on_signal( origin: &OriginFor<T>, signal: ExecutionSignal<T::Hash> ) -> DispatchResult

Implementors§