pub type ReferendumStatusOf<T, I> = ReferendumStatus<TrackIdOf<T, I>, PalletsOriginOf<T>, BlockNumberFor<T, I>, BoundedCallOf<T, I>, BalanceOf<T, I>, TallyOf<T, I>, <T as Config>::AccountId, ScheduleAddressOf<T, I>>;
Aliased Type§
struct ReferendumStatusOf<T, I> {
pub track: <<T as Config<I>>::Tracks as TracksInfo<<<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance, <<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber>>::Id,
pub origin: <<T as Config>::RuntimeOrigin as OriginTrait>::PalletsOrigin,
pub proposal: Bounded<<T as Config<I>>::RuntimeCall, <T as Config>::Hashing>,
pub enactment: DispatchTime<<<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber>,
pub submitted: <<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber,
pub submission_deposit: Deposit<<T as Config>::AccountId, <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance>,
pub decision_deposit: Option<Deposit<<T as Config>::AccountId, <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance>>,
pub deciding: Option<DecidingStatus<<<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber>>,
pub tally: <T as Config<I>>::Tally,
pub in_queue: bool,
pub alarm: Option<(<<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber, <<T as Config<I>>::Scheduler as Anon<<<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber, <T as Config<I>>::RuntimeCall, <<T as Config>::RuntimeOrigin as OriginTrait>::PalletsOrigin>>::Address)>,
}
Fields§
§track: <<T as Config<I>>::Tracks as TracksInfo<<<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance, <<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber>>::Id
The track of this referendum.
origin: <<T as Config>::RuntimeOrigin as OriginTrait>::PalletsOrigin
The origin for this referendum.
proposal: Bounded<<T as Config<I>>::RuntimeCall, <T as Config>::Hashing>
The hash of the proposal up for referendum.
enactment: DispatchTime<<<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber>
The time the proposal should be scheduled for enactment.
submitted: <<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber
The time of submission. Once UndecidingTimeout
passes, it may be closed by anyone if
deciding
is None
.
submission_deposit: Deposit<<T as Config>::AccountId, <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance>
The deposit reserved for the submission of this referendum.
decision_deposit: Option<Deposit<<T as Config>::AccountId, <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance>>
The deposit reserved for this referendum to be decided.
deciding: Option<DecidingStatus<<<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber>>
The status of a decision being made. If None
, it has not entered the deciding period.
tally: <T as Config<I>>::Tally
The current tally of votes in this referendum.
in_queue: bool
Whether we have been placed in the queue for being decided or not.
alarm: Option<(<<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber, <<T as Config<I>>::Scheduler as Anon<<<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber, <T as Config<I>>::RuntimeCall, <<T as Config>::RuntimeOrigin as OriginTrait>::PalletsOrigin>>::Address)>
The next scheduled wake-up, if Some
.