referrerpolicy=no-referrer-when-downgrade

staging_xcm_executor/traits/
mod.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot 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// Polkadot 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//! Various traits used in configuring the executor.
18
19mod conversion;
20pub use conversion::{CallDispatcher, ConvertLocation, ConvertOrigin, WithOriginFilter};
21mod drop_assets;
22pub use drop_assets::{ClaimAssets, DropAssets, TrapAndClaimAssets};
23mod asset_exchange;
24pub use asset_exchange::AssetExchange;
25mod asset_lock;
26pub use asset_lock::{AssetLock, Enact, LockError};
27mod asset_transfer;
28pub use asset_transfer::{Error as AssetTransferError, TransferType, XcmAssetTransfers};
29mod export;
30pub use export::{export_xcm, validate_export, ExportXcm};
31mod fee_manager;
32pub use fee_manager::{FeeManager, FeeReason, WaiveDeliveryFees};
33mod token_matching;
34pub use token_matching::{
35	Error, MatchesFungible, MatchesFungibles, MatchesInstance, MatchesNonFungible,
36	MatchesNonFungibles,
37};
38mod on_response;
39pub use on_response::{OnResponse, QueryHandler, QueryResponseStatus, VersionChangeNotifier};
40mod process_transaction;
41pub use process_transaction::ProcessTransaction;
42mod should_execute;
43pub use should_execute::{CheckSuspension, DenyExecution, Properties, ShouldExecute};
44mod transact_asset;
45pub use transact_asset::TransactAsset;
46mod hrmp;
47pub use hrmp::{
48	HandleHrmpChannelAccepted, HandleHrmpChannelClosing, HandleHrmpNewChannelOpenRequest,
49};
50mod event_emitter;
51mod record_xcm;
52mod weight;
53pub use event_emitter::EventEmitter;
54
55pub use record_xcm::RecordXcm;
56pub use weight::{WeightBounds, WeightTrader};
57
58pub mod prelude {
59	pub use super::{
60		export_xcm, validate_export, AssetExchange, AssetLock, ClaimAssets, ConvertOrigin,
61		DropAssets, Enact, Error, EventEmitter, ExportXcm, FeeManager, FeeReason, LockError,
62		MatchesFungible, MatchesFungibles, MatchesInstance, MatchesNonFungible,
63		MatchesNonFungibles, OnResponse, ProcessTransaction, ShouldExecute, TransactAsset,
64		TrapAndClaimAssets, VersionChangeNotifier, WeightBounds, WeightTrader, WithOriginFilter,
65	};
66}