Skip to content

Commit bfc4503

Browse files
weichweichwischli
andauthored
feat: xcm (#382)
Co-authored-by: William Freudenberger <william@kilt.io>
1 parent aa39f8d commit bfc4503

File tree

12 files changed

+673
-62
lines changed

12 files changed

+673
-62
lines changed

Cargo.lock

+95-30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodes/parachain/src/chain_spec/peregrine.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use cumulus_primitives_core::ParaId;
2222
use hex_literal::hex;
2323
use peregrine_runtime::{
2424
BalancesConfig, CouncilConfig, GenesisConfig, InflationInfo, ParachainInfoConfig, ParachainStakingConfig,
25-
SessionConfig, SudoConfig, SystemConfig, TechnicalCommitteeConfig, VestingConfig, WASM_BINARY,
25+
PolkadotXcmConfig, SessionConfig, SudoConfig, SystemConfig, TechnicalCommitteeConfig, VestingConfig, WASM_BINARY,
2626
};
2727
use runtime_common::{
2828
constants::{kilt_inflation_config, staking::MinCollatorStake, MAX_COLLATOR_STAKE},
@@ -34,6 +34,8 @@ use sp_runtime::traits::Zero;
3434

3535
use crate::chain_spec::{get_account_id_from_seed, get_from_seed, get_properties, Extensions, DEFAULT_PARA_ID};
3636

37+
const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION;
38+
3739
/// Specialized `ChainSpec` for the normal parachain runtime.
3840
pub type ChainSpec = sc_service::GenericChainSpec<GenesisConfig, Extensions>;
3941

@@ -214,5 +216,8 @@ fn testnet_genesis(
214216
})
215217
.collect::<Vec<_>>(),
216218
},
219+
polkadot_xcm: PolkadotXcmConfig {
220+
safe_xcm_version: Some(SAFE_XCM_VERSION),
221+
},
217222
}
218223
}

0 commit comments

Comments
 (0)