Expand description
Strongly typed parsers for Cardano genesis files and protocol parameters.
One module per era exposes the canonical genesis shape and a from_file
helper, so tools that need to reason about staking metadata, cost models,
or other configuration data don’t have to hand-roll JSON shapes.
§Usage
use pallas_configs::shelley;
let config = shelley::from_file(std::path::Path::new("genesis.json"))?;
if let Some(staking) = config.staking {
if let Some(pools) = staking.pools {
for (pool_id, pool) in pools {
println!("pool {pool_id} has pledge {}", pool.pledge);
}
}
}§Overview
byron,shelley,alonzo,conway— one module per era, each exposing aGenesisFile(or equivalent) struct and afrom_filehelper.cost_models— typed views over Plutus cost-model tables, shared across eras.
Modules§
- alonzo
- Alonzo-era genesis parameters (cost models, prices, max collateral).
- byron
- Byron-era genesis configuration. Parsing of Byron configuration data
- conway
- Conway-era genesis parameters (governance, committees, hard-fork init).
- cost_
models - Built-in Plutus V1/V2/V3 cost-model snapshots.
- shelley
- Shelley-era genesis configuration (network start, system start, k, …).