Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Companion for paritytech/cumulus#1876
Browse files Browse the repository at this point in the history
  • Loading branch information
Guantong committed Jan 17, 2023
1 parent 6079a59 commit 4e1012c
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pallet/deposit/tests/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl frame_system::Config for Runtime {
impl pallet_timestamp::Config for Runtime {
type MinimumPeriod = ();
type Moment = Moment;
type OnTimestampSet = ();
type OnTimestampSet = Aura;
type WeightInfo = ();
}

Expand Down
2 changes: 1 addition & 1 deletion pallet/message-gadget/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl frame_system::Config for Runtime {
impl pallet_timestamp::Config for Runtime {
type MinimumPeriod = ();
type Moment = u128;
type OnTimestampSet = ();
type OnTimestampSet = Aura;
type WeightInfo = ();
}

Expand Down
2 changes: 1 addition & 1 deletion pallet/message-transact/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ frame_support::parameter_types! {
impl pallet_timestamp::Config for TestRuntime {
type MinimumPeriod = MinimumPeriod;
type Moment = u64;
type OnTimestampSet = ();
type OnTimestampSet = Aura;
type WeightInfo = ();
}

Expand Down
2 changes: 1 addition & 1 deletion pallet/staking/tests/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl frame_system::Config for Runtime {
impl pallet_timestamp::Config for Runtime {
type MinimumPeriod = ();
type Moment = Moment;
type OnTimestampSet = ();
type OnTimestampSet = Aura;
type WeightInfo = ();
}

Expand Down
2 changes: 1 addition & 1 deletion precompile/assets/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl pallet_balances::Config for TestRuntime {
impl pallet_timestamp::Config for TestRuntime {
type MinimumPeriod = ();
type Moment = u64;
type OnTimestampSet = ();
type OnTimestampSet = Aura;
type WeightInfo = ();
}
pub struct TestPrecompiles<R>(PhantomData<R>);
Expand Down
2 changes: 1 addition & 1 deletion precompile/deposit/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl pallet_balances::Config for TestRuntime {
impl pallet_timestamp::Config for TestRuntime {
type MinimumPeriod = ();
type Moment = u128;
type OnTimestampSet = ();
type OnTimestampSet = Aura;
type WeightInfo = ();
}

Expand Down
2 changes: 1 addition & 1 deletion precompile/staking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl pallet_balances::Config for TestRuntime {
impl pallet_timestamp::Config for TestRuntime {
type MinimumPeriod = ();
type Moment = u128;
type OnTimestampSet = ();
type OnTimestampSet = Aura;
type WeightInfo = ();
}

Expand Down
2 changes: 1 addition & 1 deletion precompile/state-storage/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl pallet_balances::Config for TestRuntime {
impl pallet_timestamp::Config for TestRuntime {
type MinimumPeriod = ();
type Moment = u64;
type OnTimestampSet = ();
type OnTimestampSet = Aura;
type WeightInfo = ();
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/crab/src/pallets/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ impl pallet_timestamp::Config for Runtime {
type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>;
/// A timestamp: milliseconds since the unix epoch.
type Moment = u64;
type OnTimestampSet = ();
type OnTimestampSet = Aura;
type WeightInfo = weights::pallet_timestamp::WeightInfo<Self>;
}
2 changes: 1 addition & 1 deletion runtime/darwinia/src/pallets/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ impl pallet_timestamp::Config for Runtime {
type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>;
/// A timestamp: milliseconds since the unix epoch.
type Moment = u64;
type OnTimestampSet = ();
type OnTimestampSet = Aura;
type WeightInfo = weights::pallet_timestamp::WeightInfo<Self>;
}
2 changes: 1 addition & 1 deletion runtime/pangolin/src/pallets/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ impl pallet_timestamp::Config for Runtime {
type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>;
/// A timestamp: milliseconds since the unix epoch.
type Moment = u64;
type OnTimestampSet = ();
type OnTimestampSet = Aura;
type WeightInfo = weights::pallet_timestamp::WeightInfo<Self>;
}

0 comments on commit 4e1012c

Please sign in to comment.