Trait orml_authority::AsOriginId

source ·
pub trait AsOriginId<Origin, PalletsOrigin> {
    // Required methods
    fn into_origin(self) -> PalletsOrigin;
    fn check_dispatch_from(&self, origin: Origin) -> DispatchResult;
}
Expand description

Represent an origin that can be dispatched by other origins with permission check.

Required Methods§

source

fn into_origin(self) -> PalletsOrigin

Convert into PalletsOrigin

source

fn check_dispatch_from(&self, origin: Origin) -> DispatchResult

Check if the origin is allow to dispatch call on behalf of this origin.

Implementors§