Skip to content

Commit

Permalink
Remove court and global disputes from call filter for the main-net (#…
Browse files Browse the repository at this point in the history
…1226)

* remove from call filter

* update copyright
  • Loading branch information
Chralt98 authored Jan 8, 2024
1 parent 71c8464 commit 3761f96
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions runtime/zeitgeist/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-2023 Forecasting Technologies LTD.
// Copyright 2022-2024 Forecasting Technologies LTD.
// Copyright 2021-2022 Zeitgeist PM LLC.
//
// This file is part of Zeitgeist.
Expand Down Expand Up @@ -102,7 +102,7 @@ pub type ContractsCallfilter = Nothing;
#[derive(scale_info::TypeInfo)]
pub struct IsCallable;

// Currently disables Court, Rikiddo and creation of markets using Court or SimpleDisputes
// Currently disables Rikiddo and creation of markets using SimpleDisputes
// dispute mechanism.
impl Contains<RuntimeCall> for IsCallable {
fn contains(runtime_call: &RuntimeCall) -> bool {
Expand All @@ -121,8 +121,7 @@ impl Contains<RuntimeCall> for IsCallable {
use pallet_vesting::Call::force_vested_transfer;

use zeitgeist_primitives::types::{
MarketDisputeMechanism::{Court, SimpleDisputes},
ScoringRule::RikiddoSigmoidFeeMarketEma,
MarketDisputeMechanism::SimpleDisputes, ScoringRule::RikiddoSigmoidFeeMarketEma,
};
use zrml_prediction_markets::Call::{
admin_move_market_to_closed, admin_move_market_to_resolved,
Expand Down Expand Up @@ -161,21 +160,19 @@ impl Contains<RuntimeCall> for IsCallable {
},
// Membership is managed by the respective Membership instance
RuntimeCall::Council(set_members { .. }) => false,
RuntimeCall::Court(_) => false,
#[cfg(feature = "parachain")]
RuntimeCall::DmpQueue(service_overweight { .. }) => false,
RuntimeCall::GlobalDisputes(_) => false,
RuntimeCall::LiquidityMining(_) => false,
RuntimeCall::PredictionMarkets(inner_call) => {
match inner_call {
// Disable Rikiddo markets
create_market { scoring_rule: RikiddoSigmoidFeeMarketEma, .. } => false,
edit_market { scoring_rule: RikiddoSigmoidFeeMarketEma, .. } => false,
// Disable Court & SimpleDisputes dispute resolution mechanism
create_market { dispute_mechanism: Some(Court | SimpleDisputes), .. } => false,
edit_market { dispute_mechanism: Some(Court | SimpleDisputes), .. } => false,
// Disable SimpleDisputes dispute resolution mechanism
create_market { dispute_mechanism: Some(SimpleDisputes), .. } => false,
edit_market { dispute_mechanism: Some(SimpleDisputes), .. } => false,
create_cpmm_market_and_deploy_assets {
dispute_mechanism: Some(Court | SimpleDisputes),
dispute_mechanism: Some(SimpleDisputes),
..
} => false,
admin_move_market_to_closed { .. } => false,
Expand Down

0 comments on commit 3761f96

Please sign in to comment.