Trait t3rn_sdk_primitives::signal::Signaller
source · pub trait Signaller<Hash>where
Hash: Encode + Decode + Debug + Clone,{
type Result;
// Required method
fn signal(signal: &ExecutionSignal<Hash>) -> Self::Result;
}
Expand description
This trait provides access for a provider to send/recieve signals. This is a bidirectional trait, both 3vm & sdk implement a variant of this with a differing error type.
This enables a contract to provide some feedback to the circuit and tell it if it should break or not. This also allows a pallet to enable signalling.