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

Commit

Permalink
DappsStaking bench improvements (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
shunsukew committed Nov 9, 2022
1 parent 772d63c commit bdd4d43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frame/dapps-staking/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pallet-dapps-staking"
version = "3.7.0"
version = "3.8.0"
authors = ["Stake Technologies <devops@stake.co.jp>"]
edition = "2021"
homepage = "https://astar.network/"
Expand Down
4 changes: 4 additions & 0 deletions frame/dapps-staking/src/pallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ pub mod pallet {

/// Denotes whether pallet is disabled (in maintenance mode) or not
#[pallet::storage]
#[pallet::whitelist_storage]
#[pallet::getter(fn pallet_disabled)]
pub type PalletDisabled<T: Config> = StorageValue<_, bool, ValueQuery>;

Expand All @@ -114,6 +115,7 @@ pub mod pallet {

/// The current era index.
#[pallet::storage]
#[pallet::whitelist_storage]
#[pallet::getter(fn current_era)]
pub type CurrentEra<T> = StorageValue<_, EraIndex, ValueQuery>;

Expand All @@ -129,11 +131,13 @@ pub mod pallet {

/// Mode of era forcing.
#[pallet::storage]
#[pallet::whitelist_storage]
#[pallet::getter(fn force_era)]
pub type ForceEra<T> = StorageValue<_, Forcing, ValueQuery, ForceEraOnEmpty>;

/// Stores the block number of when the next era starts
#[pallet::storage]
#[pallet::whitelist_storage]
#[pallet::getter(fn next_era_starting_block)]
pub type NextEraStartingBlock<T: Config> = StorageValue<_, T::BlockNumber, ValueQuery>;

Expand Down

0 comments on commit bdd4d43

Please sign in to comment.