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§
sourcefn is_trusted_reserve(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
asset: VersionedAsset,
location: VersionedLocation,
) -> Result<XcmTrustedQueryResult, ApiError>
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
.
sourcefn is_trusted_teleporter(
&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>
Returns if the asset can be teleported to the location.
§Arguments
asset
:VersionedAsset
.location
:VersionedLocation
.