[][src]Crate srml_treasury

Treasury Module

The treasury module keeps account of currency in a pot and manages the subsequent deployment of these funds.

Overview

Funds for treasury are raised in two ways:

  1. By minting new tokens, leading to inflation, and
  2. By channeling tokens from transaction fees and slashing.

Treasury funds can be used to pay for developers who provide software updates, any changes decided by referenda, and to generally keep the system running smoothly.

Treasury can be used with other modules, such as to tax validator rewards in the staking module.

Implementations

The treasury module provides an implementation for the following trait:

Interface

Dispatchable Functions

Please refer to the Call enum and its associated variants for documentation on each function.

Public Functions

See the module for details on publicly available functions.

The treasury module depends on the system and srml_support modules as well as Substrate Core libraries and the Rust standard library.

Structs

GenesisConfig
Module
Proposal

A spending proposal.

Enums

Call
RawEvent

Events for this module.

Traits

Trait

Type Definitions

Event

RawEvent specialized for the configuration Trait