Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

feat: add safe-mode and tx-pause pallets #94

Merged
merged 6 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions runtime/devnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use frame_system::{
use pallet_xcm::{EnsureXcm, IsVoiceOfBody};
pub use runtime_common::{
AVERAGE_ON_INITIALIZE_RATIO, DAYS, HOURS, MAXIMUM_BLOCK_WEIGHT, MILLISECS_PER_BLOCK, MINUTES,
NORMAL_DISPATCH_RATIO, SLOT_DURATION, UNITS,
NORMAL_DISPATCH_RATIO, SLOT_DURATION,
};
pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;
pub use sp_runtime::{MultiAddress, Perbill, Permill};
Expand Down Expand Up @@ -630,9 +630,9 @@ impl Contains<RuntimeCall> for SafeModeWhitelistedCalls {

parameter_types! {
pub const EnterDuration: BlockNumber = 4 * HOURS;
pub const EnterDepositAmount: Balance = UNITS;
pub const EnterDepositAmount: Option<Balance> = None;
weezy20 marked this conversation as resolved.
Show resolved Hide resolved
pub const ExtendDuration: BlockNumber = 2 * HOURS;
pub const ExtendDepositAmount: Balance = UNITS / 2;
pub const ExtendDepositAmount: Option<Balance> = None;
pub const ReleaseDelay: u32 = 2 * DAYS;
}

Expand Down
6 changes: 3 additions & 3 deletions runtime/mainnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ use frame_system::{
use pallet_xcm::{EnsureXcm, IsVoiceOfBody};
pub use runtime_common::{
AVERAGE_ON_INITIALIZE_RATIO, DAYS, HOURS, MAXIMUM_BLOCK_WEIGHT, MILLISECS_PER_BLOCK, MINUTES,
NORMAL_DISPATCH_RATIO, SLOT_DURATION, UNITS,
NORMAL_DISPATCH_RATIO, SLOT_DURATION,
};
pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;
pub use sp_runtime::{MultiAddress, Perbill, Permill};
Expand Down Expand Up @@ -627,9 +627,9 @@ impl Contains<RuntimeCall> for SafeModeWhitelistedCalls {

parameter_types! {
pub const EnterDuration: BlockNumber = 4 * HOURS;
pub const EnterDepositAmount: Balance = UNITS;
pub const EnterDepositAmount: Option<Balance> = None;
pub const ExtendDuration: BlockNumber = 2 * HOURS;
pub const ExtendDepositAmount: Balance = UNITS / 2;
pub const ExtendDepositAmount: Option<Balance> = None;
pub const ReleaseDelay: u32 = 2 * DAYS;
}

Expand Down
Loading