xcm_fee_payment_runtime_api/lib.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Substrate is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Substrate is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Polkadot.  If not, see <http://www.gnu.org/licenses/>.
16
17//! Runtime APIs for estimating xcm fee payment.
18//! This crate offers two APIs, one for estimating fees,
19//! which can be used for any type of message, and another one
20//! for returning the specific messages used for transfers, a common
21//! feature.
22//! Users of these APIs should call the transfers API and pass the result to the
23//! fees API.
24
25#![cfg_attr(not(feature = "std"), no_std)]
26
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;