Skip to content

Commit

Permalink
Companion for paritytech/cumulus#2067
Browse files Browse the repository at this point in the history
  • Loading branch information
Guantong committed Mar 2, 2023
1 parent 81caf33 commit a0e8679
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion node/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use cumulus_client_network::BlockAnnounceValidator;
use cumulus_client_service::{
prepare_node_config, start_collator, start_full_node, StartCollatorParams, StartFullNodeParams,
};
use cumulus_primitives_core::relay_chain::v2::CollatorPair;
use cumulus_primitives_core::relay_chain::CollatorPair;
use cumulus_primitives_core::ParaId;
use cumulus_primitives_parachain_inherent::{
MockValidationDataInherentDataProvider, MockXcmConfig,
Expand Down
2 changes: 1 addition & 1 deletion pallets/xcm-transactor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub mod pallet {

use crate::weights::WeightInfo;
use crate::CurrencyIdOf;
use cumulus_primitives_core::{relay_chain::v2::HrmpChannelId, ParaId};
use cumulus_primitives_core::{relay_chain::HrmpChannelId, ParaId};
use frame_support::{pallet_prelude::*, weights::constants::WEIGHT_REF_TIME_PER_SECOND};
use frame_system::{ensure_signed, pallet_prelude::*};
use orml_traits::location::{Parse, Reserve};
Expand Down
2 changes: 1 addition & 1 deletion pallets/xcm-transactor/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

use crate::mock::*;
use crate::*;
use cumulus_primitives_core::relay_chain::v2::HrmpChannelId;
use cumulus_primitives_core::relay_chain::HrmpChannelId;
use frame_support::dispatch::DispatchError;
use frame_support::{assert_noop, assert_ok, weights::constants::WEIGHT_REF_TIME_PER_SECOND};
use sp_std::boxed::Box;
Expand Down
2 changes: 1 addition & 1 deletion precompiles/relay-encoder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ where
handle.record_cost(RuntimeHelper::<Runtime>::db_read_gas_cost())?;

let encoded = RelayRuntime::hrmp_encode_call(HrmpAvailableCalls::CloseChannel(
relay_chain::v2::HrmpChannelId {
relay_chain::HrmpChannelId {
sender: sender.into(),
recipient: recipient.into(),
},
Expand Down
2 changes: 1 addition & 1 deletion precompiles/relay-encoder/src/test_relay_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

use crate::AvailableStakeCalls;
use crate::StakeEncodeCall;
use cumulus_primitives_core::{relay_chain::v2::HrmpChannelId, ParaId};
use cumulus_primitives_core::{relay_chain::HrmpChannelId, ParaId};
use parity_scale_codec::{Decode, Encode};
use sp_runtime::traits::{AccountIdLookup, StaticLookup};
use sp_runtime::AccountId32;
Expand Down
2 changes: 1 addition & 1 deletion primitives/xcm/src/transactor_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

// You should have received a copy of the GNU General Public License

use cumulus_primitives_core::{relay_chain::v2::HrmpChannelId, ParaId};
use cumulus_primitives_core::{relay_chain::HrmpChannelId, ParaId};
use sp_std::vec::Vec;
use xcm::latest::{Error as XcmError, MultiLocation};

Expand Down
2 changes: 1 addition & 1 deletion runtime/moonbase/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pub mod currency {
/// Maximum weight per block
pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_ref_time(WEIGHT_REF_TIME_PER_SECOND)
.saturating_div(2)
.set_proof_size(cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64);
.set_proof_size(cumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64);

pub const MILLISECS_PER_BLOCK: u64 = 12000;
pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonbase/tests/xcm_mock/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use sp_runtime::{
use sp_std::{convert::TryFrom, prelude::*};
use xcm::{latest::prelude::*, Version as XcmVersion, VersionedXcm};

use cumulus_primitives_core::relay_chain::v2::HrmpChannelId;
use cumulus_primitives_core::relay_chain::HrmpChannelId;
use orml_traits::parameter_type_with_key;
use polkadot_core_primitives::BlockNumber as RelayBlockNumber;
use polkadot_parachain::primitives::{Id as ParaId, Sibling};
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonbase/tests/xcm_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use xcm_primitives::UtilityEncodeCall;
use xcm_simulator::TestExt;
mod common;
use common::ExtBuilder;
use cumulus_primitives_core::relay_chain::v2::HrmpChannelId;
use cumulus_primitives_core::relay_chain::HrmpChannelId;
// Send a relay asset (like DOT) to a parachain A
#[test]
fn receive_relay_asset_from_relay() {
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonbeam/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub mod currency {
/// Maximum weight per block
pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_ref_time(WEIGHT_REF_TIME_PER_SECOND)
.saturating_div(2)
.set_proof_size(cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64);
.set_proof_size(cumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64);

pub const MILLISECS_PER_BLOCK: u64 = 12000;
pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonbeam/tests/xcm_mock/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use frame_support::{
PalletId,
};

use cumulus_primitives_core::relay_chain::v2::HrmpChannelId;
use cumulus_primitives_core::relay_chain::HrmpChannelId;
use frame_system::{EnsureNever, EnsureRoot};
use orml_traits::parameter_type_with_key;
use parity_scale_codec::{Decode, Encode};
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonbeam/tests/xcm_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use xcm_mock::parachain;
use xcm_mock::relay_chain;
use xcm_mock::*;

use cumulus_primitives_core::relay_chain::v2::HrmpChannelId;
use cumulus_primitives_core::relay_chain::HrmpChannelId;
use pallet_asset_manager::LocalAssetIdCreator;
use pallet_xcm_transactor::{
Currency, CurrencyPayment, HrmpInitParams, HrmpOperation, TransactWeights,
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonriver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ pub mod currency {
/// Maximum weight per block
pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_ref_time(WEIGHT_REF_TIME_PER_SECOND)
.saturating_div(2)
.set_proof_size(cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64);
.set_proof_size(cumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64);

pub const MILLISECS_PER_BLOCK: u64 = 12000;
pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonriver/tests/xcm_mock/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use sp_runtime::{
use sp_std::{convert::TryFrom, prelude::*};
use xcm::{latest::prelude::*, Version as XcmVersion, VersionedXcm};

use cumulus_primitives_core::relay_chain::v2::HrmpChannelId;
use cumulus_primitives_core::relay_chain::HrmpChannelId;
use orml_traits::parameter_type_with_key;
use polkadot_core_primitives::BlockNumber as RelayBlockNumber;
use polkadot_parachain::primitives::{Id as ParaId, Sibling};
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonriver/tests/xcm_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use xcm_mock::*;
use xcm_simulator::TestExt;
mod common;
use common::ExtBuilder;
use cumulus_primitives_core::relay_chain::v2::HrmpChannelId;
use cumulus_primitives_core::relay_chain::HrmpChannelId;
use pallet_xcm_transactor::{
Currency, CurrencyPayment, HrmpInitParams, HrmpOperation, TransactWeights,
};
Expand Down
2 changes: 1 addition & 1 deletion runtime/relay-encoder/src/kusama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// We want to avoid including the rococo-runtime here.
// TODO: whenever a conclusion is taken from https://github.com/paritytech/substrate/issues/8158

use cumulus_primitives_core::{relay_chain::v2::HrmpChannelId, ParaId};
use cumulus_primitives_core::{relay_chain::HrmpChannelId, ParaId};
use parity_scale_codec::{Decode, Encode};
use sp_runtime::traits::{AccountIdLookup, StaticLookup};
use sp_runtime::AccountId32;
Expand Down
2 changes: 1 addition & 1 deletion runtime/relay-encoder/src/polkadot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// We want to avoid including the rococo-runtime here.
// TODO: whenever a conclusion is taken from https://github.com/paritytech/substrate/issues/8158

use cumulus_primitives_core::{relay_chain::v2::HrmpChannelId, ParaId};
use cumulus_primitives_core::{relay_chain::HrmpChannelId, ParaId};
use parity_scale_codec::{Decode, Encode};
use sp_runtime::traits::{AccountIdLookup, StaticLookup};
use sp_runtime::AccountId32;
Expand Down
2 changes: 1 addition & 1 deletion runtime/relay-encoder/src/westend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// We want to avoid including the rococo-runtime here.
// TODO: whenever a conclusion is taken from https://github.com/paritytech/substrate/issues/8158

use cumulus_primitives_core::{relay_chain::v2::HrmpChannelId, ParaId};
use cumulus_primitives_core::{relay_chain::HrmpChannelId, ParaId};
use parity_scale_codec::{Decode, Encode};
use sp_runtime::traits::{AccountIdLookup, StaticLookup};
use sp_runtime::AccountId32;
Expand Down

0 comments on commit a0e8679

Please sign in to comment.