mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-06-15 21:41:02 +00:00
Upgrade generic-template to polkadot-stable2503 (#414)
* 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
This commit is contained in:
@@ -82,6 +82,7 @@ pub fn para_ext(para_id: u32) -> sp_io::TestExternalities {
|
||||
|
||||
pallet_balances::GenesisConfig::<Runtime> {
|
||||
balances: vec![(ALICE, INITIAL_BALANCE), (parent_account_id(), INITIAL_BALANCE)],
|
||||
..Default::default()
|
||||
}
|
||||
.assimilate_storage(&mut t)
|
||||
.unwrap();
|
||||
@@ -106,6 +107,7 @@ pub fn relay_ext() -> sp_io::TestExternalities {
|
||||
(child_account_id(1), INITIAL_BALANCE),
|
||||
(child_account_id(2), INITIAL_BALANCE),
|
||||
],
|
||||
..Default::default()
|
||||
}
|
||||
.assimilate_storage(&mut t)
|
||||
.unwrap();
|
||||
|
||||
@@ -3,7 +3,7 @@ use core::marker::PhantomData;
|
||||
|
||||
use frame_support::{
|
||||
construct_runtime, derive_impl, parameter_types,
|
||||
traits::{ConstU128, ContainsPair, Everything, Nothing},
|
||||
traits::{ConstU128, ContainsPair, Disabled, Everything, Nothing},
|
||||
weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight},
|
||||
};
|
||||
use frame_system::EnsureRoot;
|
||||
@@ -70,6 +70,8 @@ pub type TrustedLockers = TrustedLockerCase<RelayTokenForRelay>;
|
||||
impl pallet_xcm::Config for Runtime {
|
||||
type AdminOrigin = EnsureRoot<AccountId>;
|
||||
type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;
|
||||
// Aliasing is disabled: xcm_executor::Config::Aliasers is set to `Nothing`.
|
||||
type AuthorizedAliasConsideration = Disabled;
|
||||
type Currency = Balances;
|
||||
type CurrencyMatcher = ();
|
||||
type ExecuteXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;
|
||||
|
||||
@@ -42,6 +42,7 @@ impl xcm_executor::Config for XcmConfig {
|
||||
type UniversalAliases = Nothing;
|
||||
type UniversalLocation = constants::UniversalLocation;
|
||||
type Weigher = weigher::Weigher;
|
||||
type XcmEventEmitter = PolkadotXcm;
|
||||
type XcmRecorder = PolkadotXcm;
|
||||
type XcmSender = XcmRouter;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
mod xcm_config;
|
||||
use frame_support::{
|
||||
construct_runtime, derive_impl, parameter_types,
|
||||
traits::{ConstU128, Everything, Nothing, ProcessMessage, ProcessMessageError},
|
||||
traits::{ConstU128, Disabled, Everything, Nothing, ProcessMessage, ProcessMessageError},
|
||||
weights::{Weight, WeightMeter},
|
||||
};
|
||||
use frame_system::EnsureRoot;
|
||||
@@ -55,6 +55,8 @@ pub type LocalOriginToLocation =
|
||||
impl pallet_xcm::Config for Runtime {
|
||||
type AdminOrigin = EnsureRoot<AccountId>;
|
||||
type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;
|
||||
// Aliasing is disabled: xcm_executor::Config::Aliasers is set to `Nothing`.
|
||||
type AuthorizedAliasConsideration = Disabled;
|
||||
type Currency = Balances;
|
||||
type CurrencyMatcher = IsConcrete<constants::TokenLocation>;
|
||||
// Anyone can execute XCM messages locally...
|
||||
|
||||
@@ -43,6 +43,7 @@ impl Config for XcmConfig {
|
||||
type UniversalAliases = Nothing;
|
||||
type UniversalLocation = constants::UniversalLocation;
|
||||
type Weigher = weigher::Weigher;
|
||||
type XcmEventEmitter = XcmPallet;
|
||||
type XcmRecorder = XcmPallet;
|
||||
type XcmSender = XcmRouter;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user