Skip to content

Commit

Permalink
Remove migrations and dead code (#1241)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
maltekliemann and mergify[bot] authored Jan 23, 2024
1 parent dcbb006 commit e1ff1e1
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 1,713 deletions.
13 changes: 0 additions & 13 deletions primitives/src/market.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,19 +343,6 @@ pub enum ResolutionMechanism {
Noop,
}

/// Contains a market id and the market period.
///
/// * `BN`: Block Number
/// * `MO`: Moment (Time moment)
/// * `MI`: Market Id
#[derive(TypeInfo, Clone, Eq, PartialEq, Decode, Encode, MaxEncodedLen, RuntimeDebug)]
pub struct SubsidyUntil<BN, MO, MI> {
/// Market id of associated market.
pub market_id: MI,
/// Market start and end.
pub period: MarketPeriod<BN, MO>,
}

#[cfg(test)]
mod tests {
use crate::{market::*, types::Asset};
Expand Down
13 changes: 1 addition & 12 deletions runtime/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,12 @@ macro_rules! decl_common_types {
use orml_traits::MultiCurrency;
use sp_runtime::{generic, DispatchError, DispatchResult, SaturatedConversion};
use zeitgeist_primitives::traits::{DeployPoolApi, DistributeFees, MarketCommonsPalletApi};
use zrml_market_commons::migrations::MigrateScoringRuleAndMarketStatus;
use zrml_neo_swaps::migration::MigrateToLiquidityTree;
use zrml_orderbook::migrations::TranslateOrderStructure;
use zrml_prediction_markets::migrations::DrainDeprecatedStorage;
use zrml_swaps::migrations::MigratePools;

pub type Block = generic::Block<Header, UncheckedExtrinsic>;

type Address = sp_runtime::MultiAddress<AccountId, ()>;

type Migrations = (
MigratePools<Runtime>,
DrainDeprecatedStorage<Runtime>,
MigrateScoringRuleAndMarketStatus<Runtime>,
TranslateOrderStructure<Runtime>,
MigrateToLiquidityTree<Runtime>,
);
type Migrations = ();

pub type Executive = frame_executive::Executive<
Runtime,
Expand Down
Loading

0 comments on commit e1ff1e1

Please sign in to comment.