Skip to content

Commit

Permalink
activate court and GD on battery station
Browse files Browse the repository at this point in the history
  • Loading branch information
Chralt98 committed Aug 23, 2023
1 parent 6e27186 commit e12ca11
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 19 deletions.
4 changes: 0 additions & 4 deletions docs/changelog_for_devs.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ All things about Global Disputes Fix ⚠️ :
- Use pallet-asset-tx-payment for allowing to pay transaction fees in foreign
currencies ([#1022]). This requires each transaction to specify the fee
payment token with `asset_id` (`None` is ZTG).
> > > > > > > chralt98-court-overhaul

## v0.3.9

Expand All @@ -123,9 +122,6 @@ All things about Global Disputes Fix ⚠️ :

- ⚠️ Add `outsider` field to `MarketBonds` struct. In particular, the `Market`
struct's layout has changed ([#903]).

# v0.3.9

- Adjust `deposit` function used to calculate storage fees for the following
pallets: identity, multisig, preimage, proxy. The cost of adding an identity
reduced from a minimum of 125 ZTG to a minimum of 1.5243 ZTG ([#1011])
Expand Down
7 changes: 0 additions & 7 deletions runtime/battery-station/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,10 @@ impl Contains<RuntimeCall> for IsCallable {
edit_market {
scoring_rule: ScoringRule::RikiddoSigmoidFeeMarketEma, ..
} => false,
// Disable Court dispute resolution mechanism
create_market { dispute_mechanism: MarketDisputeMechanism::Court, .. } => false,
create_cpmm_market_and_deploy_assets {
dispute_mechanism: MarketDisputeMechanism::Court,
..
} => false,
create_cpmm_market_and_deploy_assets {
dispute_mechanism: MarketDisputeMechanism::SimpleDisputes,
..
} => false,
edit_market { dispute_mechanism: MarketDisputeMechanism::Court, .. } => false,
edit_market {
dispute_mechanism: MarketDisputeMechanism::SimpleDisputes,
..
Expand Down
1 change: 0 additions & 1 deletion runtime/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ macro_rules! decl_common_types {
// IMPORTANT that AddDisputeBond comes before MoveDataToSimpleDisputes!!!
zrml_prediction_markets::migrations::AddDisputeBond<Runtime>,
zrml_prediction_markets::migrations::MoveDataToSimpleDisputes<Runtime>,
// TODO check when to execute this migration and what happens for main-net, since global-disputes was only present on battery station
zrml_global_disputes::migrations::ModifyGlobalDisputesStructures<Runtime>,
);

Expand Down
10 changes: 6 additions & 4 deletions runtime/zeitgeist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,21 @@ 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 SimpleDisputes dispute resolution mechanism
create_market { dispute_mechanism: SimpleDisputes, .. } => false,
edit_market { dispute_mechanism: SimpleDisputes, .. } => false,
// Disable Court & SimpleDisputes dispute resolution mechanism
create_market { dispute_mechanism: Court | SimpleDisputes, .. } => false,
edit_market { dispute_mechanism: Court | SimpleDisputes, .. } => false,
create_cpmm_market_and_deploy_assets {
dispute_mechanism: SimpleDisputes,
dispute_mechanism: Court | SimpleDisputes,
..
} => false,
_ => true,
Expand Down
2 changes: 1 addition & 1 deletion zrml/prediction-markets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,7 @@ mod pallet {
#[pallet::storage_version(STORAGE_VERSION)]
pub struct Pallet<T>(PhantomData<T>);

// TODO after storage migration of release-dispute-system branch is complete, delete this Disputes storage item
// TODO(#986) after storage migration of release-dispute-system branch is complete, delete this Disputes storage item
/// For each market, this holds the dispute information for each dispute that's
/// been issued.
#[pallet::storage]
Expand Down
4 changes: 2 additions & 2 deletions zrml/prediction-markets/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const MARKET_COMMONS: &[u8] = b"MarketCommons";
#[cfg(any(feature = "try-runtime", test))]
const MARKETS: &[u8] = b"Markets";

const MARKET_COMMONS_REQUIRED_STORAGE_VERSION: u16 = 5;
const MARKET_COMMONS_NEXT_STORAGE_VERSION: u16 = 6;
const MARKET_COMMONS_REQUIRED_STORAGE_VERSION: u16 = 6;
const MARKET_COMMONS_NEXT_STORAGE_VERSION: u16 = 7;

#[derive(Clone, Decode, Encode, PartialEq, Eq, RuntimeDebug, TypeInfo)]
pub struct OldMarketBonds<AI, BA> {
Expand Down

0 comments on commit e12ca11

Please sign in to comment.