Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Dec 16, 2024
1 parent e5d5384 commit 233b6fa
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 85 deletions.
12 changes: 5 additions & 7 deletions runtime/dancebox/src/tests/common/xcm/core_buyer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@
// along with Tanssi. If not, see <http://www.gnu.org/licenses/>

use {
crate::{
tests::common::xcm::{
core_buyer_common::*,
mocknets::{DanceboxRococoPara as Dancebox, RococoRelay as Rococo, RococoRelayPallet},
*,
},
crate::tests::common::xcm::{
core_buyer_common::*,
mocknets::{DanceboxRococoPara as Dancebox, RococoRelay as Rococo, RococoRelayPallet},
*,
},
polkadot_runtime_parachains::on_demand as parachains_assigner_on_demand,
staging_xcm::latest::{MaybeErrorCode, Response},
tp_traits::ParaId,
xcm_emulator::{Chain, assert_expected_events},
xcm_emulator::{assert_expected_events, Chain},
};

const PARATHREAD_ID: u32 = 3333;
Expand Down
18 changes: 8 additions & 10 deletions runtime/dancebox/src/tests/common/xcm/delivery_fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,22 @@
// along with Tanssi. If not, see <http://www.gnu.org/licenses/>

use {
crate::{
tests::common::xcm::{
mocknets::{
DanceboxPara as Dancebox, DanceboxParaPallet, DanceboxSender,
EthereumSender as FrontierTemplateSender, FrontierTemplatePara as FrontierTemplate,
FrontierTemplateParaPallet, SimpleTemplatePara as SimpleTemplate,
SimpleTemplateParaPallet, SimpleTemplateSender,
},
*,
crate::tests::common::xcm::{
mocknets::{
DanceboxPara as Dancebox, DanceboxParaPallet, DanceboxSender,
EthereumSender as FrontierTemplateSender, FrontierTemplatePara as FrontierTemplate,
FrontierTemplateParaPallet, SimpleTemplatePara as SimpleTemplate,
SimpleTemplateParaPallet, SimpleTemplateSender,
},
*,
},
frame_support::{assert_ok, traits::EnsureOrigin},
paste::paste,
staging_xcm::{
latest::prelude::{Junctions::X1, *},
VersionedLocation, VersionedXcm,
},
xcm_emulator::{Chain, assert_expected_events},
xcm_emulator::{assert_expected_events, Chain},
};

#[test]
Expand Down
12 changes: 5 additions & 7 deletions runtime/dancebox/src/tests/common/xcm/force_core_buyer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@
// along with Tanssi. If not, see <http://www.gnu.org/licenses/>

use {
crate::{
tests::common::xcm::{
core_buyer_common::*,
mocknets::{DanceboxRococoPara as Dancebox, RococoRelay as Rococo, RococoRelayPallet},
*,
},
crate::tests::common::xcm::{
core_buyer_common::*,
mocknets::{DanceboxRococoPara as Dancebox, RococoRelay as Rococo, RococoRelayPallet},
*,
},
polkadot_runtime_parachains::on_demand as parachains_assigner_on_demand,
staging_xcm::latest::{MaybeErrorCode, Response},
tp_traits::ParaId,
xcm_emulator::{Chain, assert_expected_events},
xcm_emulator::{assert_expected_events, Chain},
};

#[test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use {
VersionedLocation, VersionedXcm,
},
staging_xcm_executor::traits::ConvertLocation,
xcm_emulator::{Chain, assert_expected_events},
xcm_emulator::{assert_expected_events, Chain},
};

#[test]
Expand Down
17 changes: 7 additions & 10 deletions runtime/dancebox/src/tests/common/xcm/foreign_sovereigns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@
// along with Tanssi. If not, see <http://www.gnu.org/licenses/>

use {
crate::{
tests::common::xcm::{
mocknets::{
DanceboxPara as Dancebox, DanceboxParaPallet, EthereumEmptyReceiver,
EthereumSender, FrontierTemplatePara as FrontierTemplate,
FrontierTemplateParaPallet, WestendEmptyReceiver, WestendRelay as Westend,
WestendRelayPallet, WestendSender,
},
*,
crate::tests::common::xcm::{
mocknets::{
DanceboxPara as Dancebox, DanceboxParaPallet, EthereumEmptyReceiver, EthereumSender,
FrontierTemplatePara as FrontierTemplate, FrontierTemplateParaPallet,
WestendEmptyReceiver, WestendRelay as Westend, WestendRelayPallet, WestendSender,
},
*,
},
container_chain_template_frontier_runtime::currency::UNIT as FRONTIER_DEV,
frame_support::{
Expand All @@ -37,7 +34,7 @@ use {
},
staging_xcm_executor::traits::ConvertLocation,
westend_runtime_constants::currency::UNITS as WND,
xcm_emulator::{Chain, assert_expected_events},
xcm_emulator::{assert_expected_events, Chain},
};

#[test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@
// along with Tanssi. If not, see <http://www.gnu.org/licenses/>

use {
crate::{
tests::common::xcm::{
mocknets::{
DanceboxPara as Dancebox, DanceboxParaPallet, DanceboxReceiver,
SimpleTemplatePara as SimpleTemplate, SimpleTemplateParaPallet,
SimpleTemplateSender,
},
*,
crate::tests::common::xcm::{
mocknets::{
DanceboxPara as Dancebox, DanceboxParaPallet, DanceboxReceiver,
SimpleTemplatePara as SimpleTemplate, SimpleTemplateParaPallet, SimpleTemplateSender,
},
*,
},
frame_support::{
assert_ok,
Expand All @@ -35,7 +32,7 @@ use {
latest::prelude::{Junctions::*, *},
VersionedLocation,
},
xcm_emulator::{Chain, assert_expected_events},
xcm_emulator::{assert_expected_events, Chain},
};

#[allow(unused_assignments)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@
// along with Tanssi. If not, see <http://www.gnu.org/licenses/>

use {
crate::{
tests::common::xcm::{
mocknets::{
DanceboxPara as Dancebox, DanceboxParaPallet, DanceboxSender,
SimpleTemplatePara as SimpleTemplate, SimpleTemplateParaPallet,
SimpleTemplateReceiver,
},
*,
crate::tests::common::xcm::{
mocknets::{
DanceboxPara as Dancebox, DanceboxParaPallet, DanceboxSender,
SimpleTemplatePara as SimpleTemplate, SimpleTemplateParaPallet, SimpleTemplateReceiver,
},
*,
},
frame_support::{
assert_ok,
Expand All @@ -35,7 +32,7 @@ use {
latest::prelude::{Junctions::*, *},
VersionedLocation,
},
xcm_emulator::{Chain, assert_expected_events},
xcm_emulator::{assert_expected_events, Chain},
};

#[allow(unused_assignments)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@
// along with Tanssi. If not, see <http://www.gnu.org/licenses/>

use {
crate::{
tests::common::xcm::{
mocknets::{
DanceboxPara as Dancebox, DanceboxParaPallet, DanceboxReceiver,
WestendRelay as Westend, WestendRelayPallet, WestendSender,
},
*,
crate::tests::common::xcm::{
mocknets::{
DanceboxPara as Dancebox, DanceboxParaPallet, DanceboxReceiver,
WestendRelay as Westend, WestendRelayPallet, WestendSender,
},
*,
},
frame_support::{
assert_ok,
Expand All @@ -33,7 +31,7 @@ use {
latest::prelude::{Junctions::*, *},
VersionedLocation,
},
xcm_emulator::{Chain, assert_expected_events},
xcm_emulator::{assert_expected_events, Chain},
};

#[allow(unused_assignments)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@
// along with Tanssi. If not, see <http://www.gnu.org/licenses/>

use {
crate::{
tests::common::xcm::{
mocknets::{
EthereumReceiver, FrontierTemplatePara as FrontierTemplate,
FrontierTemplateParaPallet, WestendRelay as Westend, WestendRelayPallet,
WestendSender,
},
*,
crate::tests::common::xcm::{
mocknets::{
EthereumReceiver, FrontierTemplatePara as FrontierTemplate, FrontierTemplateParaPallet,
WestendRelay as Westend, WestendRelayPallet, WestendSender,
},
*,
},
frame_support::{
assert_ok,
Expand All @@ -35,7 +32,7 @@ use {
latest::prelude::{Junctions::*, *},
VersionedLocation,
},
xcm_emulator::{Chain, assert_expected_events},
xcm_emulator::{assert_expected_events, Chain},
};

#[allow(unused_assignments)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@
// along with Tanssi. If not, see <http://www.gnu.org/licenses/>

use {
crate::{
tests::common::xcm::{
mocknets::{
SimpleTemplatePara as SimpleTemplate, SimpleTemplateParaPallet,
SimpleTemplateReceiver, WestendRelay as Westend, WestendRelayPallet, WestendSender,
},
*,
crate::tests::common::xcm::{
mocknets::{
SimpleTemplatePara as SimpleTemplate, SimpleTemplateParaPallet, SimpleTemplateReceiver,
WestendRelay as Westend, WestendRelayPallet, WestendSender,
},
*,
},
frame_support::{
assert_ok,
Expand All @@ -33,7 +31,7 @@ use {
latest::prelude::{Junctions::*, *},
VersionedLocation,
},
xcm_emulator::{Chain, assert_expected_events},
xcm_emulator::{assert_expected_events, Chain},
};

#[allow(unused_assignments)]
Expand Down
12 changes: 5 additions & 7 deletions runtime/dancebox/src/tests/common/xcm/transact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
use crate::tests::common::xcm::*;

use {
crate::{
tests::common::xcm::mocknets::{
DanceboxPara as Dancebox, FrontierTemplatePara as FrontierTemplate,
FrontierTemplateParaPallet, SimpleTemplatePara as SimpleTemplate,
SimpleTemplateParaPallet, WestendRelay as Westend, WestendRelayPallet,
},
crate::tests::common::xcm::mocknets::{
DanceboxPara as Dancebox, FrontierTemplatePara as FrontierTemplate,
FrontierTemplateParaPallet, SimpleTemplatePara as SimpleTemplate, SimpleTemplateParaPallet,
WestendRelay as Westend, WestendRelayPallet,
},
frame_support::{
assert_ok,
Expand All @@ -35,7 +33,7 @@ use {
},
staging_xcm_builder::{ParentIsPreset, SiblingParachainConvertsVia},
staging_xcm_executor::traits::ConvertLocation,
xcm_emulator::{Chain, assert_expected_events},
xcm_emulator::{assert_expected_events, Chain},
};

#[test]
Expand Down

0 comments on commit 233b6fa

Please sign in to comment.