Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Apr 17, 2023
1 parent c6a82f2 commit 921308a
Show file tree
Hide file tree
Showing 15 changed files with 1,318 additions and 1,318 deletions.
62 changes: 31 additions & 31 deletions runtime/khala/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ parameter_types! {
pub const RelayNetwork: NetworkId = NetworkId::Kusama;
pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
pub UniversalLocation: InteriorMultiLocation =
X2(GlobalConsensus(RelayNetwork::get()), Parachain(ParachainInfo::parachain_id().into()));
X2(GlobalConsensus(RelayNetwork::get()), Parachain(ParachainInfo::parachain_id().into()));
}

/// Type for specifying how a `MultiLocation` can be converted into an `AccountId`. This is used
Expand Down Expand Up @@ -1040,8 +1040,8 @@ parameter_types! {
pub UnitWeightCost: XCMWeight = XCMWeight::from_parts(200_000_000u64, 0);
pub const MaxInstructions: u32 = 100;
pub KhalaTreasuryAccount: AccountId = TreasuryPalletId::get().into_account_truncating();
pub CheckingAccountForCurrencyAdapter: Option<(AccountId, MintLocation)> = None;
pub CheckingAccountForFungibleAdapter: AccountId = PalletId(*b"checking").into_account_truncating();
pub CheckingAccountForCurrencyAdapter: Option<(AccountId, MintLocation)> = None;
pub CheckingAccountForFungibleAdapter: AccountId = PalletId(*b"checking").into_account_truncating();
}

pub type Barrier = (
Expand Down Expand Up @@ -1123,15 +1123,15 @@ impl Config for XcmConfig {
type AssetTrap = PolkadotXcm;
type AssetClaims = PolkadotXcm;
type SubscriptionService = PolkadotXcm;
type PalletInstancesInfo = AllPalletsWithSystem;
type PalletInstancesInfo = AllPalletsWithSystem;
type MaxAssetsIntoHolding = ConstU32<64>;
type AssetLocker = ();
type AssetExchanger = ();
type FeeManager = ();
type MessageExporter = ();
type UniversalAliases = Nothing;
type CallDispatcher = WithOriginFilter<BaseCallFilter>;
type SafeCallFilter = BaseCallFilter;
type AssetLocker = ();
type AssetExchanger = ();
type FeeManager = ();
type MessageExporter = ();
type UniversalAliases = Nothing;
type CallDispatcher = WithOriginFilter<BaseCallFilter>;
type SafeCallFilter = BaseCallFilter;
}
parameter_types! {
pub const MaxDownwardMessageWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(10);
Expand Down Expand Up @@ -1171,7 +1171,7 @@ impl cumulus_pallet_dmp_queue::Config for Runtime {

#[cfg(feature = "runtime-benchmarks")]
parameter_types! {
pub ReachableDest: Option<MultiLocation> = Some(Parent.into());
pub ReachableDest: Option<MultiLocation> = Some(Parent.into());
}
impl pallet_xcm::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
Expand All @@ -1189,14 +1189,14 @@ impl pallet_xcm::Config for Runtime {
type RuntimeCall = RuntimeCall;
const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;
type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;
type Currency = Balances;
type CurrencyMatcher = ();
type TrustedLockers = ();
type SovereignAccountOf = ();
type MaxLockers = ConstU32<8>;
type WeightInfo = crate::weights::pallet_xcm::WeightInfo<Runtime>;
#[cfg(feature = "runtime-benchmarks")]
type ReachableDest = ReachableDest;
type Currency = Balances;
type CurrencyMatcher = ();
type TrustedLockers = ();
type SovereignAccountOf = ();
type MaxLockers = ConstU32<8>;
type WeightInfo = crate::weights::pallet_xcm::WeightInfo<Runtime>;
#[cfg(feature = "runtime-benchmarks")]
type ReachableDest = ReachableDest;
}

impl xcmbridge::Config for Runtime {
Expand Down Expand Up @@ -1286,7 +1286,7 @@ impl pallet_elections_phragmen::Config for Runtime {
type TermDuration = TermDuration;
type MaxVoters = MaxVoters;
type MaxCandidates = MaxCandidates;
type MaxVotesPerVoter = MaxVotesPerVoter;
type MaxVotesPerVoter = MaxVotesPerVoter;
type PalletId = PhragmenElectionPalletId;
type WeightInfo = pallet_elections_phragmen::weights::SubstrateWeight<Runtime>;
}
Expand Down Expand Up @@ -1873,12 +1873,12 @@ impl_runtime_apis! {
fn query_fee_details(uxt: <Block as BlockT>::Extrinsic, len: u32) -> pallet_transaction_payment_rpc_runtime_api::FeeDetails<Balance> {
TransactionPayment::query_fee_details(uxt, len)
}
fn query_weight_to_fee(weight: Weight) -> Balance {
TransactionPayment::weight_to_fee(weight)
}
fn query_length_to_fee(length: u32) -> Balance {
TransactionPayment::length_to_fee(length)
}
fn query_weight_to_fee(weight: Weight) -> Balance {
TransactionPayment::weight_to_fee(weight)
}
fn query_length_to_fee(length: u32) -> Balance {
TransactionPayment::length_to_fee(length)
}
}

impl pallet_mq_runtime_api::MqApi<Block> for Runtime {
Expand Down Expand Up @@ -1994,11 +1994,11 @@ impl_runtime_apis! {
}

impl sygma_runtime_api::SygmaBridgeApi<Block> for Runtime {
fn is_proposal_executed(nonce: DepositNonce, domain_id: DomainID) -> bool {
fn is_proposal_executed(nonce: DepositNonce, domain_id: DomainID) -> bool {
// TODO: enable Sygma
false
}
}
false
}
}

#[cfg(feature = "try-runtime")]
impl frame_try_runtime::TryRuntime<Block> for Runtime {
Expand Down
6 changes: 3 additions & 3 deletions runtime/khala/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use frame_support::traits::OnRuntimeUpgrade;

pub struct PalletSchedulerMigration;
impl OnRuntimeUpgrade for PalletSchedulerMigration {
fn on_runtime_upgrade() -> frame_support::weights::Weight {
Scheduler::migrate_v1_to_v4()
}
fn on_runtime_upgrade() -> frame_support::weights::Weight {
Scheduler::migrate_v1_to_v4()
}
}
Loading

0 comments on commit 921308a

Please sign in to comment.