mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-22 03:17:56 +00:00
93d31c3ed5
* init * upgrade tanssi deps used in generic template moonkit and dancekit * upgrade orml to 2503 * upgrade moonbeam to 2503 * upgrade abstractions to 2503 * DecodeWithMemTracking to fix 15 of 44 errors for runtime compilation * toml sort * use str array instead of raw strings for gov track names * fix weight info implementations abstractions require more updates * more fixes still wip * fix imports * generic runtime compiles * update node network starter to match latest changes in polkadot sdk * toml sort generic cargo toml * update generic xcm mocks * update fuzzer * fix import still debugging async backing compilation errors * fix clippy errors by using tx extensions to replace signed extra * toml sort * accept clippy suggestion
49 lines
1.7 KiB
Rust
49 lines
1.7 KiB
Rust
pub mod asset_transactor;
|
|
pub mod barrier;
|
|
pub mod constants;
|
|
pub mod location_converter;
|
|
pub mod origin_converter;
|
|
pub mod weigher;
|
|
|
|
use frame_support::traits::{Everything, Nothing};
|
|
use xcm_builder::{EnsureDecodableXcm, FixedRateOfFungible, FrameTransactionalProcessor};
|
|
|
|
use crate::xcm_mock::parachain::{MsgQueue, PolkadotXcm, RuntimeCall};
|
|
|
|
// Generated from `decl_test_network!`
|
|
pub type XcmRouter = EnsureDecodableXcm<crate::xcm_mock::ParachainXcmRouter<MsgQueue>>;
|
|
|
|
pub struct XcmConfig;
|
|
impl xcm_executor::Config for XcmConfig {
|
|
type Aliasers = Nothing;
|
|
type AssetClaims = ();
|
|
type AssetExchanger = ();
|
|
type AssetLocker = PolkadotXcm;
|
|
type AssetTransactor = asset_transactor::AssetTransactor;
|
|
type AssetTrap = ();
|
|
type Barrier = barrier::Barrier;
|
|
type CallDispatcher = RuntimeCall;
|
|
type FeeManager = ();
|
|
type HrmpChannelAcceptedHandler = ();
|
|
type HrmpChannelClosingHandler = ();
|
|
type HrmpNewChannelOpenRequestHandler = ();
|
|
type IsReserve = ();
|
|
type IsTeleporter = ();
|
|
type MaxAssetsIntoHolding = constants::MaxAssetsIntoHolding;
|
|
type MessageExporter = ();
|
|
type OriginConverter = origin_converter::OriginConverter;
|
|
type PalletInstancesInfo = ();
|
|
type ResponseHandler = ();
|
|
type RuntimeCall = RuntimeCall;
|
|
type SafeCallFilter = Everything;
|
|
type SubscriptionService = ();
|
|
type Trader = FixedRateOfFungible<constants::KsmPerSecondPerByte, ()>;
|
|
type TransactionalProcessor = FrameTransactionalProcessor;
|
|
type UniversalAliases = Nothing;
|
|
type UniversalLocation = constants::UniversalLocation;
|
|
type Weigher = weigher::Weigher;
|
|
type XcmEventEmitter = PolkadotXcm;
|
|
type XcmRecorder = PolkadotXcm;
|
|
type XcmSender = XcmRouter;
|
|
}
|