Companion for #9061 (#3200)

* migrate pallet-randomness-collective-flip to new pallet attr macro

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* fix some nits

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* fix

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* some nits

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
Qinxuan Chen
2021-06-14 19:29:39 +08:00
committed by GitHub
parent 93e42fb213
commit e05bd988ed
8 changed files with 169 additions and 155 deletions
+155 -155
View File
File diff suppressed because it is too large Load Diff
@@ -205,6 +205,8 @@ impl frame_system::Config for Runtime {
type OnSetCode = ();
}
impl pallet_randomness_collective_flip::Config for Runtime {}
impl pallet_aura::Config for Runtime {
type AuthorityId = AuraId;
}
@@ -212,6 +212,8 @@ impl frame_system::Config for Runtime {
type OnSetCode = ();
}
impl pallet_randomness_collective_flip::Config for Runtime {}
impl pallet_aura::Config for Runtime {
type AuthorityId = AuraId;
}
+2
View File
@@ -484,6 +484,8 @@ mod tests {
type OnSetCode = ();
}
impl pallet_randomness_collective_flip::Config for Test {}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
}
+2
View File
@@ -192,6 +192,8 @@ impl frame_system::Config for Runtime {
type OnSetCode = ();
}
impl pallet_randomness_collective_flip::Config for Runtime {}
parameter_types! {
pub MaximumSchedulerWeight: Weight = Perbill::from_percent(80) *
BlockWeights::get().max_block;
+2
View File
@@ -177,6 +177,8 @@ impl frame_system::Config for Runtime {
type OnSetCode = ();
}
impl pallet_randomness_collective_flip::Config for Runtime {}
parameter_types! {
pub MaximumSchedulerWeight: Weight = Perbill::from_percent(80) *
BlockWeights::get().max_block;
+2
View File
@@ -161,6 +161,8 @@ impl<C> frame_system::offchain::SendTransactionTypes<C> for Runtime where
type Extrinsic = UncheckedExtrinsic;
}
impl pallet_randomness_collective_flip::Config for Runtime {}
parameter_types! {
pub storage EpochDuration: u64 = EPOCH_DURATION_IN_SLOTS as u64;
pub storage ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK;
+2
View File
@@ -183,6 +183,8 @@ impl frame_system::Config for Runtime {
type OnSetCode = ();
}
impl pallet_randomness_collective_flip::Config for Runtime {}
parameter_types! {
pub MaximumSchedulerWeight: Weight = Perbill::from_percent(80) *
BlockWeights::get().max_block;