[][src]Trait pallet_evm::EnsureAddressOrigin

pub trait EnsureAddressOrigin<OuterOrigin> {
    type Success;
    fn try_address_origin(
        address: &H160,
        origin: OuterOrigin
    ) -> Result<Self::Success, OuterOrigin>; fn ensure_address_origin(
        address: &H160,
        origin: OuterOrigin
    ) -> Result<Self::Success, BadOrigin> { ... } }

Associated Types

type Success

Success return type.

Loading content...

Required methods

fn try_address_origin(
    address: &H160,
    origin: OuterOrigin
) -> Result<Self::Success, OuterOrigin>

Try with origin.

Loading content...

Provided methods

fn ensure_address_origin(
    address: &H160,
    origin: OuterOrigin
) -> Result<Self::Success, BadOrigin>

Perform the origin check.

Loading content...

Implementors

impl<OuterOrigin> EnsureAddressOrigin<OuterOrigin> for EnsureAddressSame where
    OuterOrigin: Into<Result<RawOrigin<H160>, OuterOrigin>> + From<RawOrigin<H160>>, 
[src]

type Success = H160

impl<OuterOrigin> EnsureAddressOrigin<OuterOrigin> for EnsureAddressTruncated where
    OuterOrigin: Into<Result<RawOrigin<AccountId32>, OuterOrigin>> + From<RawOrigin<AccountId32>>, 
[src]

type Success = AccountId32

impl<OuterOrigin, AccountId> EnsureAddressOrigin<OuterOrigin> for EnsureAddressNever<AccountId>[src]

type Success = AccountId

impl<OuterOrigin, AccountId> EnsureAddressOrigin<OuterOrigin> for EnsureAddressRoot<AccountId> where
    OuterOrigin: Into<Result<RawOrigin<AccountId>, OuterOrigin>> + From<RawOrigin<AccountId>>, 
[src]

type Success = ()

Loading content...