Skip to content

Commit

Permalink
remove staging-
Browse files Browse the repository at this point in the history
  • Loading branch information
asiniscalchi committed Oct 3, 2024
1 parent 6a04e3b commit 3546c83
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ cumulus-pallet-session-benchmarking = { git = "https://github.com/paritytech/pol
cumulus-primitives-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false }
cumulus-primitives-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false }
cumulus-primitives-utility = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false }
staging-parachain-info = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false }
parachain-info = { package = "staging-parachain-info", git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false }
parachains-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false }

# (native)
Expand Down Expand Up @@ -204,9 +204,9 @@ polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch
# XCM
# (wasm)
cumulus-pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false }
staging-xcm = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false }
staging-xcm-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false }
staging-xcm-executor = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false }
xcm = { package = "staging-xcm", git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false }
xcm-builder = { package = "staging-xcm-builder", git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false }
xcm-executor = { package = "staging-xcm-executor", git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false }

# (native)
polkadot-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0" }
Expand Down
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ substrate-prometheus-endpoint = { workspace = true }
polkadot-cli = { workspace = true, features = ["rococo-native"] }
polkadot-service = { workspace = true, features = ["rococo-native"] }
polkadot-primitives = { workspace = true }
staging-xcm = { workspace = true }
xcm = { workspace = true }
laos-primitives = { workspace = true }

# Cumulus
Expand Down
2 changes: 1 addition & 1 deletion node/src/chain_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub mod laos;
mod predefined_accounts;

/// The default XCM version to set in genesis config.
const SAFE_XCM_VERSION: u32 = staging_xcm::prelude::XCM_VERSION;
const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION;

/// Helper function to generate a crypto pair from seed
fn get_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Public {
Expand Down
22 changes: 11 additions & 11 deletions runtime/laos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ pallet-precompiles-benchmark = { workspace = true }
pallet-xcm = { workspace = true }
polkadot-runtime-common = { workspace = true }
polkadot-parachain-primitives = { workspace = true }
staging-xcm = { workspace = true }
staging-xcm-builder = { workspace = true }
staging-xcm-executor = { workspace = true }
xcm = { workspace = true }
xcm-builder = { workspace = true }
xcm-executor = { workspace = true }

# Cumulus
cumulus-pallet-aura-ext = { workspace = true }
Expand All @@ -90,7 +90,7 @@ cumulus-pallet-xcmp-queue = { workspace = true }
cumulus-primitives-core = { workspace = true }
cumulus-primitives-timestamp = { workspace = true }
cumulus-primitives-utility = { workspace = true }
staging-parachain-info = { workspace = true }
parachain-info = { workspace = true }
parachains-common = { workspace = true }

# Frontier
Expand Down Expand Up @@ -168,7 +168,7 @@ std = [
"pallet-precompiles-benchmark/std",
"pallet-transaction-payment/std",
"pallet-xcm/std",
"staging-parachain-info/std",
"parachain-info/std",
"polkadot-parachain-primitives/std",
"polkadot-runtime-common/std",
"sp-api/std",
Expand All @@ -185,9 +185,9 @@ std = [
"sp-version/std",
"sp-weights/std",
"sp-genesis-builder/std",
"staging-xcm-builder/std",
"staging-xcm-executor/std",
"staging-xcm/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
"substrate-wasm-builder",
# Frontier
"fp-evm/std",
Expand Down Expand Up @@ -237,7 +237,7 @@ runtime-benchmarks = [
"pallet-elections-phragmen/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"staging-xcm-builder/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"cumulus-pallet-session-benchmarking/runtime-benchmarks",
"cumulus-pallet-xcmp-queue/runtime-benchmarks",
"pallet-message-queue/runtime-benchmarks",
Expand All @@ -247,7 +247,7 @@ runtime-benchmarks = [
"pallet-sudo/runtime-benchmarks",
"polkadot-parachain-primitives/runtime-benchmarks",
"polkadot-runtime-common/runtime-benchmarks",
"staging-xcm-executor/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"pallet-asset-metadata-extender/runtime-benchmarks",
"pallet-vesting/runtime-benchmarks",
"pallet-scheduler/runtime-benchmarks",
Expand Down Expand Up @@ -285,7 +285,7 @@ try-runtime = [
"pallet-treasury/try-runtime",
"pallet-transaction-payment/try-runtime",
"pallet-xcm/try-runtime",
"staging-parachain-info/try-runtime",
"parachain-info/try-runtime",
"pallet-evm/try-runtime",
"pallet-evm-chain-id/try-runtime",
"pallet-ethereum/try-runtime",
Expand Down
2 changes: 1 addition & 1 deletion runtime/laos/src/configs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ parameter_types! {

impl cumulus_pallet_aura_ext::Config for Runtime {}
impl pallet_evm_chain_id::Config for Runtime {}
impl staging_parachain_info::Config for Runtime {}
impl parachain_info::Config for Runtime {}
10 changes: 5 additions & 5 deletions runtime/laos/src/configs/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ use frame_system::{EnsureRoot, RawOrigin as SystemRawOrigin};
use pallet_xcm::XcmPassthrough;
use polkadot_parachain_primitives::primitives::Sibling;
use sp_runtime::traits::TryConvert;
use staging_xcm::latest::prelude::*;
use staging_xcm_builder::{
use xcm::latest::prelude::*;
use xcm_builder::{
AccountKey20Aliases, AllowExplicitUnpaidExecutionFrom, AllowTopLevelPaidExecutionFrom,
DenyReserveTransferToRelayChain, DenyThenTry, EnsureXcmOrigin, FixedWeightBounds,
FrameTransactionalProcessor, FungibleAdapter, IsConcrete, NativeAsset, ParentIsPreset,
RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
SignedAccountKey20AsNative, SovereignSignedViaLocation, TakeWeightCredit, TrailingSetTopicAsId,
UsingComponents, WithComputedOrigin,
};
use staging_xcm_executor::XcmExecutor;
use xcm_executor::XcmExecutor;

parameter_types! {
pub const RelayLocation: Location = Location::parent();
Expand Down Expand Up @@ -128,7 +128,7 @@ pub type Barrier = TrailingSetTopicAsId<
>;

pub struct XcmConfig;
impl staging_xcm_executor::Config for XcmConfig {
impl xcm_executor::Config for XcmConfig {
type RuntimeCall = RuntimeCall;
type XcmSender = XcmRouter;
// How to withdraw and deposit an asset.
Expand Down Expand Up @@ -171,7 +171,7 @@ pub type LocalOriginToLocation = SignedToAccountId20<RuntimeOrigin, AccountId, R

/// The means for routing XCM messages which are not for local execution into the right message
/// queues.
pub type XcmRouter = staging_xcm_builder::WithUniqueTopic<(
pub type XcmRouter = xcm_builder::WithUniqueTopic<(
// Two routers - use UMP to communicate with the relay chain:
cumulus_primitives_utility::ParentAsUmp<crate::ParachainSystem, (), ()>,
// ..and XCMP to communicate with the sibling chains.
Expand Down
4 changes: 2 additions & 2 deletions runtime/laos/src/configs/xcm_message_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ impl pallet_message_queue::Config for Runtime {
type MessageProcessor =
pallet_message_queue::mock_helpers::NoopMessageProcessor<AggregateMessageOrigin>;
#[cfg(not(feature = "runtime-benchmarks"))]
type MessageProcessor = staging_xcm_builder::ProcessXcmMessage<
type MessageProcessor = xcm_builder::ProcessXcmMessage<
AggregateMessageOrigin,
staging_xcm_executor::XcmExecutor<super::xcm_config::XcmConfig>,
xcm_executor::XcmExecutor<super::xcm_config::XcmConfig>,
crate::RuntimeCall,
>;
type Size = u32;
Expand Down
2 changes: 1 addition & 1 deletion runtime/laos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ construct_runtime!(
System: frame_system = 0,
ParachainSystem: cumulus_pallet_parachain_system = 1,
Timestamp: pallet_timestamp = 2,
ParachainInfo: staging_parachain_info = 3,
ParachainInfo: parachain_info = 3,
Sudo: pallet_sudo = 4,
Utility: pallet_utility = 5,
Multisig: pallet_multisig = 6,
Expand Down

0 comments on commit 3546c83

Please sign in to comment.