Skip to content

Commit

Permalink
Merge branch 'main' into mkl-neo-swaps
Browse files Browse the repository at this point in the history
  • Loading branch information
maltekliemann committed Sep 29, 2023
2 parents b4d9e8d + e2cacc0 commit 7e347b2
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions zrml/authorized/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,28 +364,31 @@ where
T: crate::Config,
{
use frame_support::traits::Get;
use sp_runtime::traits::AccountIdConversion;
use zeitgeist_primitives::types::{Asset, MarketBonds, ScoringRule};
use sp_runtime::{traits::AccountIdConversion, Perbill};
use zeitgeist_primitives::types::{
Asset, Deadlines, MarketBonds, MarketCreation, MarketDisputeMechanism, MarketPeriod,
MarketStatus, MarketType, ScoringRule,
};

zeitgeist_primitives::types::Market {
base_asset: Asset::Ztg,
creation: zeitgeist_primitives::types::MarketCreation::Permissionless,
creator_fee: sp_runtime::Perbill::zero(),
creation: MarketCreation::Permissionless,
creator_fee: Perbill::zero(),
creator: T::PalletId::get().into_account_truncating(),
market_type: zeitgeist_primitives::types::MarketType::Scalar(0..=100),
market_type: MarketType::Scalar(0..=100),
dispute_mechanism: Some(MarketDisputeMechanism::Authorized),
metadata: Default::default(),
oracle: T::PalletId::get().into_account_truncating(),
period: zeitgeist_primitives::types::MarketPeriod::Block(Default::default()),
deadlines: zeitgeist_primitives::types::Deadlines {
period: MarketPeriod::Block(Default::default()),
deadlines: Deadlines {
grace_period: 1_u32.into(),
oracle_duration: 1_u32.into(),
dispute_duration: 1_u32.into(),
},
report: None,
resolved_outcome: None,
scoring_rule: ScoringRule::CPMM,
status: zeitgeist_primitives::types::MarketStatus::Disputed,
status: MarketStatus::Disputed,
bonds: MarketBonds::default(),
}
}

0 comments on commit 7e347b2

Please sign in to comment.