Skip to content

Commit 0aa2de1

Browse files
authored
Merge pull request #671 from galacticcouncil/opengov_tweaks
feat: Opengov tweaks
2 parents c7a0f1b + 8f148ca commit 0aa2de1

5 files changed

Lines changed: 22 additions & 11 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/basilisk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "basilisk-runtime"
3-
version = "120.0.0"
3+
version = "121.0.0"
44
authors = ["GalacticCouncil"]
55
edition = "2021"
66
homepage = "https://github.com/galacticcouncil/Basilisk-node"

runtime/basilisk/src/governance/tracks.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const APP_RECIP: Curve = Curve::make_reciprocal(1, 7, percent(80), percent(50),
3333
const SUP_LINEAR: Curve = Curve::make_linear(7, 7, percent(0), percent(50));
3434
const SUP_RECIP: Curve = Curve::make_reciprocal(5, 7, percent(1), percent(0), percent(50));
3535
const SUP_FAST_RECIP: Curve = Curve::make_reciprocal(3, 7, percent(1), percent(0), percent(50));
36-
const SUP_WHITELISTED_CALLER: Curve = Curve::make_reciprocal(1, 28, percent(20), percent(1), percent(50));
36+
const SUP_WHITELISTED_CALLER: Curve = Curve::make_linear(1, 7, percent(0), percent(1));
3737

3838
const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 8] = [
3939
(
@@ -57,8 +57,8 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 8]
5757
max_deciding: 10,
5858
decision_deposit: 1_000_000 * UNITS,
5959
prepare_period: 10 * MINUTES,
60-
decision_period: 7 * DAYS,
61-
confirm_period: 10 * MINUTES,
60+
decision_period: DAYS,
61+
confirm_period: 4 * HOURS,
6262
min_enactment_period: 10 * MINUTES,
6363
min_approval: APP_RECIP,
6464
min_support: SUP_WHITELISTED_CALLER,
@@ -71,8 +71,8 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 8]
7171
max_deciding: 10,
7272
decision_deposit: 10_000_000 * UNITS,
7373
prepare_period: 60 * MINUTES,
74-
decision_period: 7 * DAYS,
75-
confirm_period: 24 * HOURS,
74+
decision_period: 3 * DAYS,
75+
confirm_period: 12 * HOURS,
7676
min_enactment_period: 10 * MINUTES,
7777
min_approval: APP_LINEAR_FLAT,
7878
min_support: SUP_FAST_RECIP,
@@ -85,7 +85,7 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 8]
8585
max_deciding: 10,
8686
decision_deposit: 50_000_000 * UNITS,
8787
prepare_period: 60 * MINUTES,
88-
decision_period: 7 * DAYS,
88+
decision_period: 3 * DAYS,
8989
confirm_period: 3 * HOURS,
9090
min_enactment_period: 10 * MINUTES,
9191
min_approval: APP_LINEAR_FLAT,

runtime/basilisk/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
100100
spec_name: create_runtime_str!("basilisk"),
101101
impl_name: create_runtime_str!("basilisk"),
102102
authoring_version: 1,
103-
spec_version: 120,
103+
spec_version: 121,
104104
impl_version: 0,
105105
apis: apis::RUNTIME_API_VERSIONS,
106106
transaction_version: 1,

runtime/basilisk/src/system.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,14 @@ impl Contains<RuntimeCall> for BaseFilter {
6060
fn contains(call: &RuntimeCall) -> bool {
6161
if matches!(
6262
call,
63-
RuntimeCall::System(_) | RuntimeCall::Timestamp(_) | RuntimeCall::ParachainSystem(_)
63+
RuntimeCall::System(_)
64+
| RuntimeCall::ConvictionVoting(_)
65+
| RuntimeCall::Timestamp(_)
66+
| RuntimeCall::ParachainSystem(_)
67+
| RuntimeCall::Preimage(_)
68+
| RuntimeCall::Referenda(_)
69+
| RuntimeCall::TransactionPause(_)
70+
| RuntimeCall::Whitelist(_)
6471
) {
6572
// always allow
6673
// Note: this is done to avoid unnecessary check of paused storage.
@@ -308,7 +315,11 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
308315
ProxyType::CancelProxy => matches!(c, RuntimeCall::Proxy(pallet_proxy::Call::reject_announcement { .. })),
309316
ProxyType::Governance => matches!(
310317
c,
311-
RuntimeCall::TechnicalCommittee(..) | RuntimeCall::Treasury(..) | RuntimeCall::Utility(..)
318+
RuntimeCall::ConvictionVoting(..)
319+
| RuntimeCall::Referenda(..)
320+
| RuntimeCall::TechnicalCommittee(..)
321+
| RuntimeCall::Treasury(..)
322+
| RuntimeCall::Utility(..)
312323
),
313324
ProxyType::Exchange => matches!(c, RuntimeCall::XYK(..) | RuntimeCall::LBP(..) | RuntimeCall::NFT(..)),
314325
// Transfer group doesn't include cross-chain transfers

0 commit comments

Comments
 (0)