[][src]Struct pallet_treasury::Module

pub struct Module<T: Trait<I>, I: Instance = DefaultInstance>(_);

Implementations

impl<T: Trait<I> + 'static, I: Instance> Module<T, I>[src]

pub fn proposal_count() -> ProposalIndex[src]

Number of proposals that have been made.

pub fn proposals<K: EncodeLike<ProposalIndex>>(
    key: K
) -> Option<Proposal<T::AccountId, <<T as Trait<I>>::Currency as Currency<<T as Trait>::AccountId>>::Balance>>
[src]

Proposals that have been made.

pub fn approvals() -> Vec<ProposalIndex>[src]

Proposal indices that have been approved but not yet awarded.

pub fn tips<K: EncodeLike<T::Hash>>(
    key: K
) -> Option<OpenTip<T::AccountId, <<T as Trait<I>>::Currency as Currency<<T as Trait>::AccountId>>::Balance, T::BlockNumber, T::Hash>>
[src]

Tips that are not yet completed. Keyed by the hash of (reason, who) from the value. This has the insecure enumerable hash function since the key itself is already guaranteed to be a secure hash.

pub fn reasons<K: EncodeLike<T::Hash>>(key: K) -> Option<Vec<u8>>[src]

Simple preimage lookup from the reason's hash to the original data. Again, has an insecure enumerable hash since the key is guaranteed to be the result of a secure hash.

pub fn bounty_count() -> BountyIndex[src]

Number of bounty proposals that have been made.

pub fn bounties<K: EncodeLike<BountyIndex>>(
    key: K
) -> Option<Bounty<T::AccountId, <<T as Trait<I>>::Currency as Currency<<T as Trait>::AccountId>>::Balance, T::BlockNumber>>
[src]

Bounties that have been made.

pub fn bounty_descriptions<K: EncodeLike<BountyIndex>>(
    key: K
) -> Option<Vec<u8>>
[src]

The description of each bounty.

pub fn bounty_approvals() -> Vec<BountyIndex>[src]

Bounty indices that have been approved but not yet funded.

impl<T: Trait<I>, I: Instance> Module<T, I>[src]

pub fn account_id() -> T::AccountId[src]

The account ID of the treasury pot.

This actually does computation. If you need to keep using it, then make sure you cache the value and only call this once.

pub fn bounty_account_id(id: BountyIndex) -> T::AccountId[src]

The account ID of a bounty account

pub fn migrate_retract_tip_for_tip_new()[src]

Trait Implementations

impl<T: Trait<I>, I: Instance> Callable<T> for Module<T, I>[src]

type Call = Call<T, I>

impl<T: Clone + Trait<I>, I: Clone + Instance> Clone for Module<T, I>[src]

impl<T: Copy + Trait<I>, I: Copy + Instance> Copy for Module<T, I>[src]

impl<T: Trait<I>, I: Instance> Debug for Module<T, I> where
    T: Debug,
    I: Debug
[src]

impl<T: Eq + Trait<I>, I: Eq + Instance> Eq for Module<T, I>[src]

impl<T: Trait<I>, I: Instance> IntegrityTest for Module<T, I>[src]

impl<T: Trait<I>, I: Instance> ModuleErrorMetadata for Module<T, I>[src]

impl<T: Trait + Trait<I>, I: Instance> OffchainWorker<<T as Trait>::BlockNumber> for Module<T, I>[src]

impl<T: Trait + Trait<I>, I: Instance> OnFinalize<<T as Trait>::BlockNumber> for Module<T, I>[src]

impl<T: Trait + Trait<I>, I: Instance> OnInitialize<<T as Trait>::BlockNumber> for Module<T, I>[src]

impl<T: Trait<I>, I: Instance> OnRuntimeUpgrade for Module<T, I>[src]

impl<T: Trait<I>, I: Instance> OnUnbalanced<<<T as Trait<I>>::Currency as Currency<<T as Trait>::AccountId>>::NegativeImbalance> for Module<T, I>[src]

impl<T: PartialEq + Trait<I>, I: PartialEq + Instance> PartialEq<Module<T, I>> for Module<T, I>[src]

impl<T: Trait<I>, I: Instance> StructuralEq for Module<T, I>[src]

impl<T: Trait<I>, I: Instance> StructuralPartialEq for Module<T, I>[src]

Auto Trait Implementations

impl<T, I> RefUnwindSafe for Module<T, I> where
    I: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, I> Send for Module<T, I> where
    I: Send,
    T: Send

impl<T, I> Sync for Module<T, I> where
    I: Sync,
    T: Sync

impl<T, I> Unpin for Module<T, I> where
    I: Unpin,
    T: Unpin

impl<T, I> UnwindSafe for Module<T, I> where
    I: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IsType<T> for T[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 
[src]

fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

impl<T> Member for T where
    T: 'static + Clone + PartialEq<T> + Eq + Send + Sync + Debug
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]