From 175f44b733cc3bfe62c1a8916fb0400e0d55f666 Mon Sep 17 00:00:00 2001 From: Nikhil Saboo Date: Sun, 9 Jun 2024 23:05:00 +0530 Subject: [PATCH] Remove OldOutcomeInfo and related structs --- zrml/global-disputes/src/types.rs | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/zrml/global-disputes/src/types.rs b/zrml/global-disputes/src/types.rs index 10c83a49b..9a675cb80 100644 --- a/zrml/global-disputes/src/types.rs +++ b/zrml/global-disputes/src/types.rs @@ -93,35 +93,6 @@ pub enum GdStatus { Destroyed, } -// TODO(#986): to remove after the storage migration - -/// The information about a voting outcome of a global dispute. -#[derive(Debug, TypeInfo, Decode, Encode, MaxEncodedLen, Clone, PartialEq, Eq)] -pub struct OldOutcomeInfo { - /// The current sum of all locks on this outcome. - pub outcome_sum: Balance, - /// The vector of owners of the outcome. - pub owners: OwnerInfo, -} - -/// The information about the current highest winning outcome. -#[derive(TypeInfo, Decode, Encode, MaxEncodedLen, Clone, PartialEq, Eq)] -pub struct OldWinnerInfo { - /// The outcome, which is in the lead. - pub outcome: OutcomeReport, - /// The information about the winning outcome. - pub outcome_info: OldOutcomeInfo, - /// Check, if the global dispute is finished. - pub is_finished: bool, -} - -impl OldWinnerInfo { - pub fn new(outcome: OutcomeReport, vote_sum: Balance) -> Self { - let outcome_info = OldOutcomeInfo { outcome_sum: vote_sum, owners: Default::default() }; - OldWinnerInfo { outcome, is_finished: false, outcome_info } - } -} - /// An initial vote outcome item with the outcome owner and the initial vote amount. pub struct InitialItem { /// The outcome which is added as initial global dispute vote possibility.