Skip to content

Add cardano-config package#671

Open
jasagredo wants to merge 1 commit into
masterfrom
js/cardano-config
Open

Add cardano-config package#671
jasagredo wants to merge 1 commit into
masterfrom
js/cardano-config

Conversation

@jasagredo

Copy link
Copy Markdown
Contributor

Introduce a new cardano-config library that provides a single entry-point for parsing the cardano-node configuration.

It defines:

  • A CLI options parser based on optparse-applicative (parseCliArgs).
  • JSON/YAML parsing of the configuration files, derived from autodocodec codecs (parseConfigurationFiles).
  • resolveConfiguration, combining both into a NodeConfiguration.

The configuration keys are grouped into components (Storage, Consensus, Mempool, Network, Protocol, Testing, Tracing). A bundled cardano-config-schema executable dumps the JSON Schema derived from the same codecs as the authoritative key listing.

Register the package in cabal.project.

Introduce a new `cardano-config` library that provides a single
entry-point for parsing the `cardano-node` configuration.

It defines:

- A CLI options parser based on `optparse-applicative` (`parseCliArgs`).
- JSON/YAML parsing of the configuration files, derived from
  `autodocodec` codecs (`parseConfigurationFiles`).
- `resolveConfiguration`, combining both into a `NodeConfiguration`.

The configuration keys are grouped into components (Storage, Consensus,
Mempool, Network, Protocol, Testing, Tracing). A bundled
`cardano-config-schema` executable dumps the JSON Schema derived from the
same codecs as the authoritative key listing.

Register the package in `cabal.project`.
@jasagredo jasagredo force-pushed the js/cardano-config branch from 1db4f79 to 0cb3b72 Compare June 19, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant