Open dylanschultzie opened 1 year ago
Thanks for the suggestion, we will definitely consider it!
cool to have this feature, where config for each chain on a separated file. And great if its possible to override values in the main config file. Atm I have to implement it using bash script; there is a bash file to store configs for all chains as vars. https://github.com/notional-labs/cosmosia/blob/main/relay/chains.sh
Then include them into the main config template https://github.com/notional-labs/cosmosia/blob/main/relay/osmosis_config.toml#L5
Then using envsubst
to make the final config file
Summary
The current implementation necessitates a single config.toml file under
~/.hermes/config.toml
. It'd be wildly helpful to allow for having a chains directory that contains each individual chains configuration.Problem Definition
When supporting more than a few chains, a single config file becomes cumbersome. To help mitigate that, splitting up the config file would be beneficial for ease of modification.
Proposal
Add a separate config dir that the config.toml file can access.
Where config.toml would maintain the header portion:
And then each individual chain would have its own file under
~/.hermes/chains.d/{{ CHAIN }}
:Acceptance Criteria
For Admin Use