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_bagsthe number of bags to generate.outputthe path to write to; should terminate with a Rust module name, i.e.foo/bar/thresholds.rs.total_issuancethe total amount of the currency in the network.minimum_balancethe 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.