Function generate_bags::generate_thresholds
source · pub fn generate_thresholds<T: Config>(
n_bags: usize,
output: &Path,
total_issuance: u128,
minimum_balance: u128,
) -> Result<(), Error>
Expand description
Write a thresholds module to the path specified.
Parameters:
n_bags
the number of bags to generate.output
the path to write to; should terminate with a Rust module name, i.e.foo/bar/thresholds.rs
.total_issuance
the total amount of the currency in the network.minimum_balance
the minimum balance of the currency required for an account to exist (i.e. existential deposit).
This generated module contains, in order:
- The contents of the header file in this repository’s root, if found.
- Module documentation noting that this is autogenerated and when.
- Some associated constants.
- The constant array of thresholds.