Skip to content

Commit

Permalink
fixes mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderian committed Dec 5, 2024
1 parent fa551bb commit 8a5709d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pallets/bootstrap/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ impl pallet_proof_of_stake::Config for Test {
type Min3rdPartyRewardVolume = ConstU128<10>;
type ValuationApi = Xyk;
type SchedulesPerBlock = ConstU32<5>;
type NontransferableTokens = Nothing;
}

impl BootstrapBenchmarkingConfig for Test {}
Expand Down
2 changes: 2 additions & 0 deletions pallets/proof-of-stake/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ impl pos::Config for Test {
type WeightInfo = ();
type ValuationApi = MockValuationApi;
type SchedulesPerBlock = ConstU32<5>;
type NontransferableTokens = Nothing;
}

#[cfg(feature = "runtime-benchmarks")]
Expand All @@ -294,6 +295,7 @@ impl pos::Config for Test {
type WeightInfo = ();
type ValuationApi = Xyk;
type SchedulesPerBlock = ConstU32<5>;
type NontransferableTokens = Nothing;
}

pub struct TokensActivationPassthrough<T: Config>(PhantomData<T>);
Expand Down
2 changes: 2 additions & 0 deletions pallets/xyk/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ impl pallet_proof_of_stake::Config for Test {
type Min3rdPartyRewardVolume = ConstU128<10>;
type ValuationApi = XykStorage;
type SchedulesPerBlock = ConstU32<5>;
type NontransferableTokens = Nothing;
}

#[cfg(feature = "runtime-benchmarks")]
Expand All @@ -329,6 +330,7 @@ impl pallet_proof_of_stake::Config for Test {
type Min3rdPartyRewardVolume = ConstU128<10>;
type ValuationApi = XykStorage;
type SchedulesPerBlock = ConstU32<5>;
type NontransferableTokens = Nothing;
}

pub struct TokensActivationPassthrough<T: Config>(PhantomData<T>);
Expand Down

0 comments on commit 8a5709d

Please sign in to comment.