xcm_runtime_apis/lib.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3// SPDX-License-Identifier: Apache-2.0
4
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17//! Various runtime APIs to support XCM processing and manipulation.
18
19#![cfg_attr(not(feature = "std"), no_std)]
20
21extern crate alloc;
22
23/// Runtime APIs for querying XCM authorized aliases.
24pub mod authorized_aliases;
25/// Exposes runtime APIs for various XCM-related conversions.
26pub mod conversions;
27/// Dry-run API.
28/// Given an extrinsic or an XCM program, it returns the outcome of its execution.
29pub mod dry_run;
30/// Fee estimation API.
31/// Given an XCM program, it will return the fees needed to execute it properly or send it.
32pub mod fees;
33/// Exposes runtime API for querying whether a Location is trusted as a reserve or teleporter for a
34/// given Asset.
35pub mod trusted_query;