pub trait Submitter<Thing>where
    Thing: Encode + Decode,{
    // Required method
    fn submit(state: Thing) -> Result<(), Error>;
}
Expand description

This trait provides access for an executor to submit something on-chain.

Usually Something is a new Step containing side_effects, however this trait is kept generic.

Required Methods§

source

fn submit(state: Thing) -> Result<(), Error>

Submits something on-chain

Implementors§

source§

impl<AccountId, Balance, Hash> Submitter<SideEffects<AccountId, Balance, Hash>> for InkProviderwhere AccountId: Encode + Decode, Balance: Encode + Decode, Hash: Encode + Decode,

source§

impl<AccountId, Balance, Hash> Submitter<SideEffects<AccountId, Balance, Hash>> for Executorwhere AccountId: Encode + Decode, Balance: Encode + Decode, Hash: Encode + Decode,