Struct governance_os_pallet_conviction_voting::Module [−][src]
pub struct Module<T: Config>(_);
Implementations
impl<T: Config + 'static> Module<T>[src]
impl<T: Config + 'static> Module<T>[src]pub fn proposals<K: EncodeLike<T::Hash>>(
key: K
) -> ProposalState<<T as Config>::AccountId, <<T as Config>::Currencies as Currencies<<T as Config>::AccountId>>::Balance, <T as Config>::BlockNumber, <<T as Config>::Currencies as Currencies<<T as Config>::AccountId>>::CurrencyId>[src]
key: K
) -> ProposalState<<T as Config>::AccountId, <<T as Config>::Currencies as Currencies<<T as Config>::AccountId>>::Balance, <T as Config>::BlockNumber, <<T as Config>::Currencies as Currencies<<T as Config>::AccountId>>::CurrencyId>
pub fn locks<K: EncodeLike<(<<T as Config>::Currencies as Currencies<<T as Config>::AccountId>>::CurrencyId, T::AccountId)>>(
key: K
) -> Vec<(T::Hash, bool, <<T as Config>::Currencies as Currencies<<T as Config>::AccountId>>::Balance)>[src]
key: K
) -> Vec<(T::Hash, bool, <<T as Config>::Currencies as Currencies<<T as Config>::AccountId>>::Balance)>
impl<T: Config> Module<T>[src]
impl<T: Config> Module<T>[src]pub fn now() -> T::BlockNumber[src]
Simple helper function to return the current block number.
Trait Implementations
impl<T: Config> GetPalletVersion for Module<T>[src]
impl<T: Config> GetPalletVersion for Module<T>[src]fn current_version() -> PalletVersion[src]
fn storage_version() -> Option<PalletVersion>[src]
impl<T: Config> IntegrityTest for Module<T>[src]
impl<T: Config> IntegrityTest for Module<T>[src]pub fn integrity_test()[src]
impl<T: Config> ModuleErrorMetadata for Module<T>[src]
impl<T: Config> ModuleErrorMetadata for Module<T>[src]impl<T: Config + Config> OffchainWorker<<T as Config>::BlockNumber> for Module<T>[src]
impl<T: Config + Config> OffchainWorker<<T as Config>::BlockNumber> for Module<T>[src]pub fn offchain_worker(_n: BlockNumber)[src]
impl<T: Config + Config> OnFinalize<<T as Config>::BlockNumber> for Module<T>[src]
impl<T: Config + Config> OnFinalize<<T as Config>::BlockNumber> for Module<T>[src]pub fn on_finalize(_n: BlockNumber)[src]
impl<T: Config + Config> OnInitialize<<T as Config>::BlockNumber> for Module<T>[src]
impl<T: Config + Config> OnInitialize<<T as Config>::BlockNumber> for Module<T>[src]pub fn on_initialize(_n: BlockNumber) -> u64[src]
impl<T: Config> OnRuntimeUpgrade for Module<T>[src]
impl<T: Config> OnRuntimeUpgrade for Module<T>[src]fn on_runtime_upgrade() -> Weight[src]
impl<T: Config> StandardizedVoting for Module<T>[src]
impl<T: Config> StandardizedVoting for Module<T>[src]type ProposalId = T::Hash
How we represent the a proposal as passed to the underlying functions. This can be used to fetch any state associated to the proposal. Read more
type Parameters = VotingParameters<T::BlockNumber, <<T as Config>::Currencies as Currencies<<T as Config>::AccountId>>::CurrencyId>
How the parameters of a voting system are represented and set at the organization level. Read more
type VoteData = Conviction<<<T as Config>::Currencies as Currencies<<T as Config>::AccountId>>::Balance>
How voting data is passed to the underlying pallet.
type AccountId = T::AccountId
How accounts are represented, used to identify voters.
fn initiate(
proposal: Self::ProposalId,
parameters: Self::Parameters
) -> DispatchResult[src]
proposal: Self::ProposalId,
parameters: Self::Parameters
) -> DispatchResult
fn veto(proposal: Self::ProposalId) -> DispatchResult[src]
fn vote(
proposal: Self::ProposalId,
voter: &Self::AccountId,
data: Self::VoteData
) -> DispatchResult[src]
proposal: Self::ProposalId,
voter: &Self::AccountId,
data: Self::VoteData
) -> DispatchResult
fn close(proposal: Self::ProposalId) -> Result<ProposalResult, DispatchError>[src]
impl<T: Copy + Config> Copy for Module<T>[src]
impl<T: Eq + Config> Eq for Module<T>[src]
impl<T: Config> StructuralEq for Module<T>[src]
impl<T: Config> StructuralPartialEq for Module<T>[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Module<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Module<T> where
T: Send,
T: Send,
impl<T> Sync for Module<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Module<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Module<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> CheckedConversion for T[src]
impl<T> CheckedConversion for T[src]pub fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>, [src]
Self: TryFrom<T>,
pub fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>, [src]
Self: TryInto<T>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>, [src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>, [src]impl<T> SaturatedConversion for T[src]
impl<T> SaturatedConversion for T[src]pub fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>, [src]
Self: UniqueSaturatedFrom<T>,
pub fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>, [src]
Self: UniqueSaturatedInto<T>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]pub fn unchecked_into(self) -> T[src]
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>, [src]
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>, [src]pub fn unique_saturated_into(self) -> T[src]
impl<T> MaybeDebug for T where
T: Debug, [src]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug, [src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> Member for T where
T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone, [src]
T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone,