referrerpolicy=no-referrer-when-downgrade
pub trait TrustedQueryApi<Block: BlockT>: Core<Block> {
    // Provided methods
    fn is_trusted_reserve(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        asset: VersionedAsset,
        location: VersionedLocation,
    ) -> Result<XcmTrustedQueryResult, ApiError> { ... }
    fn is_trusted_teleporter(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        asset: VersionedAsset,
        location: VersionedLocation,
    ) -> Result<XcmTrustedQueryResult, ApiError> { ... }
}

Provided Methods§

source

fn is_trusted_reserve( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, asset: VersionedAsset, location: VersionedLocation, ) -> Result<XcmTrustedQueryResult, ApiError>

Returns if the location is a trusted reserve for the asset.

§Arguments
  • asset: VersionedAsset.
  • location: VersionedLocation.
source

fn is_trusted_teleporter( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, asset: VersionedAsset, location: VersionedLocation, ) -> Result<XcmTrustedQueryResult, ApiError>

Returns if the asset can be teleported to the location.

§Arguments
  • asset: VersionedAsset.
  • location: VersionedLocation.

Trait Implementations§

source§

impl<Block: BlockT> RuntimeApiInfo for dyn TrustedQueryApi<Block>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§