Skip to content

Commit

Permalink
CI: Fix fmt + typescript api update
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthDesai committed Sep 11, 2024
1 parent 465ad1b commit 9d98231
Show file tree
Hide file tree
Showing 10 changed files with 850 additions and 848 deletions.
2 changes: 1 addition & 1 deletion pallets/collator-assignment/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
#![cfg_attr(not(feature = "std"), no_std)]

use core::ops::Mul;
use {
crate::assignment::{Assignment, ChainNumCollators},
core::ops::Mul,
frame_support::{pallet_prelude::*, traits::Currency},
frame_system::pallet_prelude::BlockNumberFor,
rand::{seq::SliceRandom, SeedableRng},
Expand Down
3 changes: 1 addition & 2 deletions pallets/collator-assignment/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
// You should have received a copy of the GNU General Public License
// along with Tanssi. If not, see <http://www.gnu.org/licenses/>

use crate::CoreAllocationConfiguration;
use {
crate::{
self as pallet_collator_assignment, pallet::CollatorContainerChain,
GetRandomnessForNextBlock, RotateCollatorsEveryNSessions,
CoreAllocationConfiguration, GetRandomnessForNextBlock, RotateCollatorsEveryNSessions,
},
frame_support::{
parameter_types,
Expand Down
1,338 changes: 678 additions & 660 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

11 changes: 1 addition & 10 deletions runtime/dancebox/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ pub mod weights;
#[cfg(test)]
mod tests;

use pallet_collator_assignment::CoreAllocationConfiguration;
use {
cumulus_pallet_parachain_system::{
RelayChainStateProof, RelayNumberMonotonicallyIncreases, RelaychainDataProvider,
Expand Down Expand Up @@ -887,14 +886,6 @@ impl RemoveParaIdsWithNoCredits for RemoveParaIdsWithNoCreditsImpl {
}
}

pub struct GetCoreAllocationConfigurationImpl;

impl Get<Option<CoreAllocationConfiguration>> for GetCoreAllocationConfigurationImpl {
fn get() -> Option<CoreAllocationConfiguration> {
None
}
}

impl pallet_collator_assignment::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type HostConfiguration = Configuration;
Expand All @@ -910,7 +901,7 @@ impl pallet_collator_assignment::Config for Runtime {
type CollatorAssignmentTip = ServicesPayment;
type Currency = Balances;
type ForceEmptyOrchestrator = ConstBool<false>;
type CoreAllocationConfiguration = GetCoreAllocationConfigurationImpl;
type CoreAllocationConfiguration = ();
type WeightInfo = weights::pallet_collator_assignment::SubstrateWeight<Runtime>;
}

Expand Down
11 changes: 1 addition & 10 deletions runtime/flashbox/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ pub mod weights;
#[cfg(test)]
mod tests;

use pallet_collator_assignment::CoreAllocationConfiguration;
use {
cumulus_pallet_parachain_system::RelayNumberMonotonicallyIncreases,
cumulus_primitives_core::{relay_chain::SessionIndex, BodyId, ParaId},
Expand Down Expand Up @@ -734,14 +733,6 @@ impl ShouldRotateAllCollators<u32> for NeverRotateCollators {
}
}

pub struct GetCoreAllocationConfigurationImpl;

impl Get<Option<CoreAllocationConfiguration>> for GetCoreAllocationConfigurationImpl {
fn get() -> Option<CoreAllocationConfiguration> {
None
}
}

impl pallet_collator_assignment::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type HostConfiguration = Configuration;
Expand All @@ -756,7 +747,7 @@ impl pallet_collator_assignment::Config for Runtime {
type CollatorAssignmentTip = ServicesPayment;
type Currency = Balances;
type ForceEmptyOrchestrator = ConstBool<false>;
type CoreAllocationConfiguration = GetCoreAllocationConfigurationImpl;
type CoreAllocationConfiguration = ();
type WeightInfo = weights::pallet_collator_assignment::SubstrateWeight<Runtime>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

use crate::{Configuration, GetCoreAllocationConfigurationImpl};
use frame_support::dispatch::RawOrigin;
use frame_system::Origin;
use primitives::vstaging::SchedulerParams;
use sp_core::Get;
use {
Expand Down
Loading

0 comments on commit 9d98231

Please sign in to comment.