referrerpolicy=no-referrer-when-downgrade
penpal_runtime::xcm_config

Type Alias LocalOriginToLocation

Source
pub type LocalOriginToLocation = SignedToAccountId32<RuntimeOrigin, AccountId, RelayNetwork>;
Expand description

Converts a local signed origin into an XCM location. Forms the basis for local origins sending/executing XCMs.

Aliased Type§

struct LocalOriginToLocation(/* private fields */);

Trait Implementations

Source§

impl<RuntimeOrigin, AccountId, Network> TryConvert<RuntimeOrigin, Location> for SignedToAccountId32<RuntimeOrigin, AccountId, Network>
where RuntimeOrigin: OriginTrait + Clone, AccountId: Into<[u8; 32]>, Network: Get<Option<NetworkId>>, <RuntimeOrigin as OriginTrait>::PalletsOrigin: From<RawOrigin<AccountId>> + TryInto<RawOrigin<AccountId>, Error = <RuntimeOrigin as OriginTrait>::PalletsOrigin>,

Source§

fn try_convert(o: RuntimeOrigin) -> Result<Location, RuntimeOrigin>

Attempt to make conversion. If returning Result::Err, the inner must always be a.