[−][src]Struct pallet_treasury::Module
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]
key: K
) -> Option<Proposal<T::AccountId, <<T as Trait<I>>::Currency as Currency<<T as Trait>::AccountId>>::Balance>>
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]
key: K
) -> Option<OpenTip<T::AccountId, <<T as Trait<I>>::Currency as Currency<<T as Trait>::AccountId>>::Balance, T::BlockNumber, T::Hash>>
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]
key: K
) -> Option<Bounty<T::AccountId, <<T as Trait<I>>::Currency as Currency<<T as Trait>::AccountId>>::Balance, T::BlockNumber>>
Bounties that have been made.
pub fn bounty_descriptions<K: EncodeLike<BountyIndex>>(
key: K
) -> Option<Vec<u8>>
[src]
key: K
) -> Option<Vec<u8>>
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]
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]
T: Debug,
I: Debug,
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]
fn integrity_test()
[src]
impl<T: Trait<I>, I: Instance> ModuleErrorMetadata for Module<T, I>
[src]
fn metadata() -> &'static [ErrorMetadata]
[src]
impl<T: Trait + Trait<I>, I: Instance> OffchainWorker<<T as Trait>::BlockNumber> for Module<T, I>
[src]
fn offchain_worker(_n: BlockNumber)
[src]
impl<T: Trait + Trait<I>, I: Instance> OnFinalize<<T as Trait>::BlockNumber> for Module<T, I>
[src]
fn on_finalize(_n: BlockNumber)
[src]
impl<T: Trait + Trait<I>, I: Instance> OnInitialize<<T as Trait>::BlockNumber> for Module<T, I>
[src]
fn on_initialize(n: T::BlockNumber) -> Weight
[src]
impl<T: Trait<I>, I: Instance> OnRuntimeUpgrade for Module<T, I>
[src]
fn on_runtime_upgrade() -> u64
[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]
fn on_nonzero_unbalanced(
amount: <<T as Trait<I>>::Currency as Currency<<T as Trait>::AccountId>>::NegativeImbalance
)
[src]
amount: <<T as Trait<I>>::Currency as Currency<<T as Trait>::AccountId>>::NegativeImbalance
)
fn on_unbalanceds<B>(amounts: impl Iterator<Item = Imbalance>) where
Imbalance: Imbalance<B>,
[src]
Imbalance: Imbalance<B>,
fn on_unbalanced(amount: Imbalance)
[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,
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I> Send for Module<T, I> where
I: Send,
T: Send,
I: Send,
T: Send,
impl<T, I> Sync for Module<T, I> where
I: Sync,
T: Sync,
I: Sync,
T: Sync,
impl<T, I> Unpin for Module<T, I> where
I: Unpin,
T: Unpin,
I: Unpin,
T: Unpin,
impl<T, I> UnwindSafe for Module<T, I> where
I: UnwindSafe,
T: UnwindSafe,
I: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
[src]
fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IsType<T> for T
[src]
fn from_ref(t: &T) -> &T
[src]
fn into_ref(&self) -> &T
[src]
fn from_mut(t: &mut T) -> &mut T
[src]
fn into_mut(&mut self) -> &mut T
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
fn from_mut(outer: &mut Outer) -> &mut T
Get a mutable reference to the inner from the outer.
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Member for T where
T: 'static + Clone + PartialEq<T> + Eq + Send + Sync + Debug,
[src]
T: 'static + Clone + PartialEq<T> + Eq + Send + Sync + Debug,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Self: UniqueSaturatedFrom<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Self: UniqueSaturatedInto<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
T: UncheckedFrom<S>,
fn unchecked_into(self) -> T
impl<T, S> UniqueSaturatedInto<T> for S where
S: TryInto<T>,
T: Bounded,
S: TryInto<T>,
T: Bounded,
fn unique_saturated_into(self) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,