Add pallet-timestamp

Ensures the timestamp is sent, within expected parameters, and the correctness
in relation to `pallet-babe`.
This commit is contained in:
Luke Parker
2025-11-14 09:57:18 -05:00
parent 82ca889ed3
commit 556d294157
20 changed files with 234 additions and 134 deletions

View File

@@ -10,6 +10,7 @@ construct_runtime!(
pub enum Test
{
System: frame_system,
Timestamp: pallet_timestamp,
Core: serai_core_pallet,
Coins: coins::<CoinsInstance>,
}
@@ -22,6 +23,9 @@ impl frame_system::Config for Test {
type Block = frame_system::mocking::MockBlock<Test>;
}
#[derive_impl(pallet_timestamp::config_preludes::TestDefaultConfig)]
impl pallet_timestamp::Config for Test {}
impl serai_core_pallet::Config for Test {}
impl crate::Config<CoinsInstance> for Test {