feat(circuit): provide all the necessary fields for on_local_trigger
@@ -3,9 +3,18 @@ use frame_system::pallet_prelude::OriginFor;
use frame_system::Config;
use sp_std::vec::Vec;
+pub struct LocalTrigger<T: Config> {
+ /// Id of the contract which generated the side effects
+ contract: T::AccountId,
+ /// Side effects generated from the contract call
+ side_effects: Vec<Vec<u8>>,
+ /// Breakpoints by outbound message index
+ round_breakpoints: Vec<u32>
+}
+
pub trait OnLocalTrigger<T: Config> {
fn on_local_trigger(
origin: &OriginFor<T>,
- side_effects: Vec<Vec<u8>>,
+ trigger: LocalTrigger<T>,
) -> DispatchResultWithPostInfo;
}
