From bc47cfeefb71b0236400feb1768e40e0df866889 Mon Sep 17 00:00:00 2001 From: Joshy Orndorff Date: Thu, 26 Aug 2021 12:24:14 -0400 Subject: [PATCH] remove crate visibility limitation (#9565) --- substrate/frame/democracy/src/types.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/substrate/frame/democracy/src/types.rs b/substrate/frame/democracy/src/types.rs index 4e643006e5..5c4002a46d 100644 --- a/substrate/frame/democracy/src/types.rs +++ b/substrate/frame/democracy/src/types.rs @@ -28,20 +28,20 @@ use sp_runtime::{ #[derive(Encode, Decode, Default, Clone, PartialEq, Eq, RuntimeDebug)] pub struct Tally { /// The number of aye votes, expressed in terms of post-conviction lock-vote. - pub(crate) ayes: Balance, + pub ayes: Balance, /// The number of nay votes, expressed in terms of post-conviction lock-vote. - pub(crate) nays: Balance, + pub nays: Balance, /// The amount of funds currently expressing its opinion. Pre-conviction. - pub(crate) turnout: Balance, + pub turnout: Balance, } /// Amount of votes and capital placed in delegation for an account. #[derive(Encode, Decode, Default, Copy, Clone, PartialEq, Eq, RuntimeDebug)] pub struct Delegations { /// The number of votes (this is post-conviction). - pub(crate) votes: Balance, + pub votes: Balance, /// The amount of raw capital, used for the turnout. - pub(crate) capital: Balance, + pub capital: Balance, } impl Saturating for Delegations { @@ -162,15 +162,15 @@ impl< #[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug)] pub struct ReferendumStatus { /// When voting on this referendum will end. - pub(crate) end: BlockNumber, + pub end: BlockNumber, /// The hash of the proposal being voted on. - pub(crate) proposal_hash: Hash, + pub proposal_hash: Hash, /// The thresholding mechanism to determine whether it passed. - pub(crate) threshold: VoteThreshold, + pub threshold: VoteThreshold, /// The delay (in blocks) to wait after a successful referendum before deploying. - pub(crate) delay: BlockNumber, + pub delay: BlockNumber, /// The current tally of votes in this referendum. - pub(crate) tally: Tally, + pub tally: Tally, } /// Info regarding a referendum, present or past.