[][src]Trait pallet_treasury::Trait

Associated Types

type ModuleId: Get<ModuleId>

The treasury's module id, used for deriving its sovereign account ID.

type Currency: Currency<Self::AccountId> + ReservableCurrency<Self::AccountId>

The staking balance.

type ApproveOrigin: EnsureOrigin<Self::Origin>

Origin from which approvals must come.

type RejectOrigin: EnsureOrigin<Self::Origin>

Origin from which rejections must come.

type Tippers: Contains<Self::AccountId> + ContainsLengthBound

Origin from which tippers must come.

ContainsLengthBound::max_len must be cost free (i.e. no storage read or heavy operation).

type TipCountdown: Get<Self::BlockNumber>

The period for which a tip remains open after is has achieved threshold tippers.

type TipFindersFee: Get<Percent>

The percent of the final tip which goes to the original reporter of the tip.

type TipReportDepositBase: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>

The amount held on deposit for placing a tip report.

type TipReportDepositPerByte: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>

The amount held on deposit per byte within the tip report reason.

type Event: From<Event<Self>> + Into<Self::Event>

The overarching event type.

type ProposalRejection: OnUnbalanced<<Self::Currency as Currency<Self::AccountId>>::NegativeImbalance>

Handler for the unbalanced decrease when slashing for a rejected proposal.

type ProposalBond: Get<Permill>

Fraction of a proposal's value that should be bonded in order to place the proposal. An accepted proposal gets these back. A rejected proposal does not.

type ProposalBondMinimum: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>

Minimum amount of funds that should be placed in a deposit for making a proposal.

type SpendPeriod: Get<Self::BlockNumber>

Period between successive spends.

type Burn: Get<Permill>

Percentage of spare funds (if any) that are burnt per spend period.

type BurnDestination: OnUnbalanced<<Self::Currency as Currency<Self::AccountId>>::NegativeImbalance>

Handler for the unbalanced decrease when treasury funds are burned.

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

Loading content...

Implementors

Loading content...