mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
* Add safe_xcm_version to Genesis Specs (#743) * add safe_xcm_version to genesis specs * cargo +nightly fmt * Point to xcm latest version Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
This commit is contained in:
Generated
+2
@@ -6200,6 +6200,7 @@ dependencies = [
|
|||||||
"substrate-frame-rpc-system",
|
"substrate-frame-rpc-system",
|
||||||
"substrate-prometheus-endpoint",
|
"substrate-prometheus-endpoint",
|
||||||
"try-runtime-cli",
|
"try-runtime-cli",
|
||||||
|
"xcm",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -6853,6 +6854,7 @@ dependencies = [
|
|||||||
"tempfile",
|
"tempfile",
|
||||||
"try-runtime-cli",
|
"try-runtime-cli",
|
||||||
"westmint-runtime",
|
"westmint-runtime",
|
||||||
|
"xcm",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|||||||
@@ -96,3 +96,4 @@ polkadot-cli = { git = "https://github.com/paritytech/polkadot", branch = "maste
|
|||||||
polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "master" }
|
polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "master" }
|
||||||
polkadot-primitives = { git = "https://github.com/paritytech/polkadot", branch = "master" }
|
polkadot-primitives = { git = "https://github.com/paritytech/polkadot", branch = "master" }
|
||||||
polkadot-service = { git = "https://github.com/paritytech/polkadot", branch = "master" }
|
polkadot-service = { git = "https://github.com/paritytech/polkadot", branch = "master" }
|
||||||
|
xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "master" }
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ use sp_runtime::traits::{IdentifyAccount, Verify};
|
|||||||
pub type ChainSpec =
|
pub type ChainSpec =
|
||||||
sc_service::GenericChainSpec<parachain_template_runtime::GenesisConfig, Extensions>;
|
sc_service::GenericChainSpec<parachain_template_runtime::GenesisConfig, Extensions>;
|
||||||
|
|
||||||
|
/// The default XCM version to set in genesis config.
|
||||||
|
const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION;
|
||||||
|
|
||||||
/// Helper function to generate a crypto pair from seed
|
/// Helper function to generate a crypto pair from seed
|
||||||
pub fn get_public_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Public {
|
pub fn get_public_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Public {
|
||||||
TPublic::Pair::from_string(&format!("//{}", seed), None)
|
TPublic::Pair::from_string(&format!("//{}", seed), None)
|
||||||
@@ -211,5 +214,8 @@ fn testnet_genesis(
|
|||||||
aura: Default::default(),
|
aura: Default::default(),
|
||||||
aura_ext: Default::default(),
|
aura_ext: Default::default(),
|
||||||
parachain_system: Default::default(),
|
parachain_system: Default::default(),
|
||||||
|
polkadot_xcm: parachain_template_runtime::PolkadotXcmConfig {
|
||||||
|
safe_xcm_version: Some(SAFE_XCM_VERSION),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -620,7 +620,7 @@ construct_runtime!(
|
|||||||
|
|
||||||
// XCM helpers.
|
// XCM helpers.
|
||||||
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
||||||
PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin} = 31,
|
PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin, Config} = 31,
|
||||||
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
||||||
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,
|
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,
|
||||||
|
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ polkadot-primitives = { git = "https://github.com/paritytech/polkadot", branch =
|
|||||||
polkadot-service = { git = "https://github.com/paritytech/polkadot", branch = "master" }
|
polkadot-service = { git = "https://github.com/paritytech/polkadot", branch = "master" }
|
||||||
polkadot-cli = { git = "https://github.com/paritytech/polkadot", branch = "master" }
|
polkadot-cli = { git = "https://github.com/paritytech/polkadot", branch = "master" }
|
||||||
polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "master" }
|
polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "master" }
|
||||||
|
xcm = { git = "https://github.com/paritytech/polkadot", branch = "master" }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
substrate-build-script-utils = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
substrate-build-script-utils = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ std = [
|
|||||||
"pallet-sudo/std",
|
"pallet-sudo/std",
|
||||||
"pallet-transaction-payment/std",
|
"pallet-transaction-payment/std",
|
||||||
"pallet-transaction-payment-rpc-runtime-api/std",
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
||||||
|
"pallet-xcm/std",
|
||||||
"parachain-info/std",
|
"parachain-info/std",
|
||||||
"parachains-common/std",
|
"parachains-common/std",
|
||||||
"cumulus-pallet-aura-ext/std",
|
"cumulus-pallet-aura-ext/std",
|
||||||
|
|||||||
@@ -531,7 +531,7 @@ construct_runtime! {
|
|||||||
|
|
||||||
// XCM helpers.
|
// XCM helpers.
|
||||||
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 50,
|
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 50,
|
||||||
PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin} = 51,
|
PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin, Config} = 51,
|
||||||
CumulusXcm: cumulus_pallet_xcm::{Pallet, Call, Event<T>, Origin} = 52,
|
CumulusXcm: cumulus_pallet_xcm::{Pallet, Call, Event<T>, Origin} = 52,
|
||||||
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 53,
|
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 53,
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ pub type ShellChainSpec = sc_service::GenericChainSpec<shell_runtime::GenesisCon
|
|||||||
pub type SeedlingChainSpec =
|
pub type SeedlingChainSpec =
|
||||||
sc_service::GenericChainSpec<seedling_runtime::GenesisConfig, Extensions>;
|
sc_service::GenericChainSpec<seedling_runtime::GenesisConfig, Extensions>;
|
||||||
|
|
||||||
|
/// The default XCM version to set in genesis config.
|
||||||
|
const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION;
|
||||||
|
|
||||||
/// Helper function to generate a crypto pair from seed
|
/// Helper function to generate a crypto pair from seed
|
||||||
pub fn get_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Public {
|
pub fn get_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Public {
|
||||||
TPublic::Pair::from_string(&format!("//{}", seed), None)
|
TPublic::Pair::from_string(&format!("//{}", seed), None)
|
||||||
@@ -189,6 +192,9 @@ fn testnet_genesis(
|
|||||||
aura: rococo_parachain_runtime::AuraConfig { authorities: initial_authorities },
|
aura: rococo_parachain_runtime::AuraConfig { authorities: initial_authorities },
|
||||||
aura_ext: Default::default(),
|
aura_ext: Default::default(),
|
||||||
parachain_system: Default::default(),
|
parachain_system: Default::default(),
|
||||||
|
polkadot_xcm: rococo_parachain_runtime::PolkadotXcmConfig {
|
||||||
|
safe_xcm_version: Some(SAFE_XCM_VERSION),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -454,6 +460,9 @@ fn statemint_genesis(
|
|||||||
aura: Default::default(),
|
aura: Default::default(),
|
||||||
aura_ext: Default::default(),
|
aura_ext: Default::default(),
|
||||||
parachain_system: Default::default(),
|
parachain_system: Default::default(),
|
||||||
|
polkadot_xcm: statemint_runtime::PolkadotXcmConfig {
|
||||||
|
safe_xcm_version: Some(SAFE_XCM_VERSION),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -638,6 +647,9 @@ fn statemine_genesis(
|
|||||||
aura: Default::default(),
|
aura: Default::default(),
|
||||||
aura_ext: Default::default(),
|
aura_ext: Default::default(),
|
||||||
parachain_system: Default::default(),
|
parachain_system: Default::default(),
|
||||||
|
polkadot_xcm: statemine_runtime::PolkadotXcmConfig {
|
||||||
|
safe_xcm_version: Some(SAFE_XCM_VERSION),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -817,5 +829,8 @@ fn westmint_genesis(
|
|||||||
aura: Default::default(),
|
aura: Default::default(),
|
||||||
aura_ext: Default::default(),
|
aura_ext: Default::default(),
|
||||||
parachain_system: Default::default(),
|
parachain_system: Default::default(),
|
||||||
|
polkadot_xcm: westmint_runtime::PolkadotXcmConfig {
|
||||||
|
safe_xcm_version: Some(SAFE_XCM_VERSION),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ std = [
|
|||||||
"pallet-transaction-payment-rpc-runtime-api/std",
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
||||||
"pallet-uniques/std",
|
"pallet-uniques/std",
|
||||||
"pallet-utility/std",
|
"pallet-utility/std",
|
||||||
|
"pallet-xcm/std",
|
||||||
"parachain-info/std",
|
"parachain-info/std",
|
||||||
"cumulus-pallet-aura-ext/std",
|
"cumulus-pallet-aura-ext/std",
|
||||||
"pallet-asset-tx-payment/std",
|
"pallet-asset-tx-payment/std",
|
||||||
|
|||||||
@@ -737,7 +737,7 @@ construct_runtime!(
|
|||||||
|
|
||||||
// XCM helpers.
|
// XCM helpers.
|
||||||
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
||||||
PolkadotXcm: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 31,
|
PolkadotXcm: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin, Config} = 31,
|
||||||
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
||||||
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,
|
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,
|
||||||
|
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ std = [
|
|||||||
"pallet-transaction-payment-rpc-runtime-api/std",
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
||||||
"pallet-uniques/std",
|
"pallet-uniques/std",
|
||||||
"pallet-utility/std",
|
"pallet-utility/std",
|
||||||
|
"pallet-xcm/std",
|
||||||
"parachain-info/std",
|
"parachain-info/std",
|
||||||
"cumulus-pallet-aura-ext/std",
|
"cumulus-pallet-aura-ext/std",
|
||||||
"pallet-asset-tx-payment/std",
|
"pallet-asset-tx-payment/std",
|
||||||
|
|||||||
@@ -750,7 +750,7 @@ construct_runtime!(
|
|||||||
|
|
||||||
// XCM helpers.
|
// XCM helpers.
|
||||||
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
||||||
PolkadotXcm: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 31,
|
PolkadotXcm: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin, Config} = 31,
|
||||||
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
||||||
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,
|
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,
|
||||||
|
|
||||||
|
|||||||
@@ -139,6 +139,7 @@ std = [
|
|||||||
"pallet-transaction-payment-rpc-runtime-api/std",
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
||||||
"pallet-uniques/std",
|
"pallet-uniques/std",
|
||||||
"pallet-utility/std",
|
"pallet-utility/std",
|
||||||
|
"pallet-xcm/std",
|
||||||
"parachain-info/std",
|
"parachain-info/std",
|
||||||
"cumulus-pallet-aura-ext/std",
|
"cumulus-pallet-aura-ext/std",
|
||||||
"pallet-asset-tx-payment/std",
|
"pallet-asset-tx-payment/std",
|
||||||
|
|||||||
@@ -722,7 +722,7 @@ construct_runtime!(
|
|||||||
|
|
||||||
// XCM helpers.
|
// XCM helpers.
|
||||||
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
||||||
PolkadotXcm: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 31,
|
PolkadotXcm: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin, Config} = 31,
|
||||||
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
||||||
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,
|
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user