Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Oct 31, 2024
1 parent 1295cad commit 44cd54e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion bridges/snowbridge/pallets/inbound-queue-v2/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use snowbridge_core::{
inbound::{Log, Proof, VerificationError},
TokenId,
};
use sp_core::{ConstU128, H160, ConstU8};
use sp_core::{ConstU128, ConstU8, H160};
use sp_runtime::{
traits::{IdentifyAccount, IdentityLookup, MaybeEquivalence, Verify},
BuildStorage, MultiSignature,
Expand Down
2 changes: 1 addition & 1 deletion bridges/snowbridge/pallets/outbound-queue-v2/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use snowbridge_core::{
pricing::{PricingParameters, Rewards},
ParaId,
};
use sp_core::{ConstU128, ConstU8, ConstU32, H160, H256};
use sp_core::{ConstU128, ConstU32, ConstU8, H160, H256};
use sp_runtime::{
traits::{BlakeTwo256, IdentityLookup, Keccak256},
AccountId32, BuildStorage, FixedU128,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use crate::imports::*;
use bridge_hub_westend_runtime::EthereumInboundQueue;
use hex_literal::hex;
use snowbridge_core::rewards::RewardLedger;
use snowbridge_router_primitives::inbound::{
v1::{Command, Destination, MessageV1, VersionedMessage},
use snowbridge_router_primitives::inbound::v1::{
Command, Destination, MessageV1, VersionedMessage,
};
use testnet_parachains_constants::westend::snowbridge::EthereumNetwork;

Expand Down Expand Up @@ -202,11 +202,12 @@ fn claim_rewards_works() {
]
);

let relayer_location = Location::new(1, [Parachain(1000), Junction::AccountId32{ id: reward_address.into(), network: None}]);
let result = BridgeRelayers::claim(
RuntimeOrigin::signed(relayer.clone()),
relayer_location.clone(),
let relayer_location = Location::new(
1,
[Parachain(1000), Junction::AccountId32 { id: reward_address.into(), network: None }],
);
let result =
BridgeRelayers::claim(RuntimeOrigin::signed(relayer.clone()), relayer_location.clone());
assert_ok!(result);

let events = BridgeHubWestend::events();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,12 @@
//! GRANDPA tracking pallet only needs to be aware of one chain.
use super::{weights, AccountId, Balance, Balances, BlockNumber, Runtime, RuntimeEvent};
use crate::{xcm_config, XcmRouter};
use bp_messages::LegacyLaneId;
use frame_support::parameter_types;
use sp_core::H160;
use sp_runtime::traits::{ConstU128, ConstU32, ConstU8};
use testnet_parachains_constants::westend::snowbridge::EthereumNetwork;
use crate::XcmRouter;
use crate::xcm_config;
use sp_runtime::traits::ConstU32;
use sp_runtime::traits::ConstU128;
use sp_runtime::traits::ConstU8;

parameter_types! {
pub storage RequiredStakeForStakeAndSlash: Balance = 1_000_000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@

#[cfg(not(feature = "runtime-benchmarks"))]
use crate::XcmRouter;
use crate::BridgeRelayers;
use crate::{
xcm_config,
xcm_config::{TreasuryAccount, UniversalLocation},
Balances, EthereumInboundQueue, EthereumOutboundQueue, EthereumSystem, MessageQueue, Runtime,
RuntimeEvent, TransactionByteFee,
Balances, BridgeRelayers, EthereumInboundQueue, EthereumOutboundQueue, EthereumSystem,
MessageQueue, Runtime, RuntimeEvent, TransactionByteFee,
};
use parachains_common::{AccountId, Balance};
use snowbridge_beacon_primitives::{Fork, ForkVersions};
Expand All @@ -31,12 +30,12 @@ use snowbridge_router_primitives::{
outbound::{v1::EthereumBlobExporter, v2::EthereumBlobExporter as EthereumBlobExporterV2},
};
use sp_core::H160;
use sp_runtime::traits::ConstU8;
use testnet_parachains_constants::westend::{
currency::*,
fee::WeightToFee,
snowbridge::{EthereumLocation, EthereumNetwork, INBOUND_QUEUE_PALLET_INDEX},
};
use sp_runtime::traits::ConstU8;

use crate::xcm_config::RelayNetwork;
#[cfg(feature = "runtime-benchmarks")]
Expand Down

0 comments on commit 44cd54e

Please sign in to comment.