Skip to content

Commit

Permalink
remove super
Browse files Browse the repository at this point in the history
  • Loading branch information
Aideepakchaudhary committed Jun 29, 2024
1 parent b1a8aec commit 88fc283
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions substrate/frame/babe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@ pub mod pallet {

/// Pending epoch configuration change that will be applied when the next epoch is enacted.
#[pallet::storage]
pub(super) type PendingEpochConfigChange<T> = StorageValue<_, NextConfigDescriptor>;
pub type PendingEpochConfigChange<T> = StorageValue<_, NextConfigDescriptor>;

/// Next epoch randomness.
#[pallet::storage]
pub(super) type NextRandomness<T> = StorageValue<_, BabeRandomness, ValueQuery>;
pub type NextRandomness<T> = StorageValue<_, BabeRandomness, ValueQuery>;

/// Next epoch authorities.
#[pallet::storage]
pub(super) type NextAuthorities<T: Config> = StorageValue<
pub type NextAuthorities<T: Config> = StorageValue<
_,
WeakBoundedVec<(AuthorityId, BabeAuthorityWeight), T::MaxAuthorities>,
ValueQuery,
Expand All @@ -246,11 +246,11 @@ pub mod pallet {
/// We reset all segments and return to `0` at the beginning of every
/// epoch.
#[pallet::storage]
pub(super) type SegmentIndex<T> = StorageValue<_, u32, ValueQuery>;
pub type SegmentIndex<T> = StorageValue<_, u32, ValueQuery>;

/// TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
#[pallet::storage]
pub(super) type UnderConstruction<T: Config> = StorageMap<
pub type UnderConstruction<T: Config> = StorageMap<
_,
Twox64Concat,
u32,
Expand All @@ -261,14 +261,14 @@ pub mod pallet {
/// Temporary value (cleared at block finalization) which is `Some`
/// if per-block initialization has already been called for current block.
#[pallet::storage]
pub(super) type Initialized<T> = StorageValue<_, Option<PreDigest>>;
pub type Initialized<T> = StorageValue<_, Option<PreDigest>>;

/// This field should always be populated during block processing unless
/// secondary plain slots are enabled (which don't contain a VRF output).
///
/// It is set in `on_finalize`, before it will contain the value from the last block.
#[pallet::storage]
pub(super) type AuthorVrfRandomness<T> = StorageValue<_, Option<BabeRandomness>, ValueQuery>;
pub type AuthorVrfRandomness<T> = StorageValue<_, Option<BabeRandomness>, ValueQuery>;

/// The block numbers when the last and current epoch have started, respectively `N-1` and
/// `N`.
Expand All @@ -285,17 +285,17 @@ pub mod pallet {
/// on block finalization. Querying this storage entry outside of block
/// execution context should always yield zero.
#[pallet::storage]
pub(super) type Lateness<T: Config> = StorageValue<_, BlockNumberFor<T>, ValueQuery>;
pub type Lateness<T: Config> = StorageValue<_, BlockNumberFor<T>, ValueQuery>;

/// The configuration for the current epoch. Should never be `None` as it is initialized in
/// genesis.
#[pallet::storage]
pub(super) type EpochConfig<T> = StorageValue<_, BabeEpochConfiguration>;
pub type EpochConfig<T> = StorageValue<_, BabeEpochConfiguration>;

/// The configuration for the next epoch, `None` if the config will not change
/// (you can fallback to `EpochConfig` instead in that case).
#[pallet::storage]
pub(super) type NextEpochConfig<T> = StorageValue<_, BabeEpochConfiguration>;
pub type NextEpochConfig<T> = StorageValue<_, BabeEpochConfiguration>;

/// A list of the last 100 skipped epochs and the corresponding session index
/// when the epoch was skipped.
Expand All @@ -306,7 +306,7 @@ pub mod pallet {
/// a validator was the owner of a given key on a given session, and what the
/// active epoch index was during that session.
#[pallet::storage]
pub(super) type SkippedEpochs<T> =
pub type SkippedEpochs<T> =
StorageValue<_, BoundedVec<(u64, SessionIndex), ConstU32<100>>, ValueQuery>;

#[derive(frame_support::DefaultNoBound)]
Expand Down

0 comments on commit 88fc283

Please sign in to comment.