Closed mycognosist closed 1 year ago
See aquadoggo for a nice pattern, where module-level config is neatly separated and combined into a top-level configuration object: https://github.com/p2panda/aquadoggo/blob/main/aquadoggo/src/config.rs
aquadoggo
So we should end up with NetworkConfiguration, JsonRpcConfiguration, MuxRpcConfiguration and ReplicationConfiguration.
NetworkConfiguration
JsonRpcConfiguration
MuxRpcConfiguration
ReplicationConfiguration
This should also help with https://github.com/mycognosist/solar/issues/24
Make sure to implement a validate() method for the Cli struct.
validate()
Cli
struct
Done.
See
aquadoggo
for a nice pattern, where module-level config is neatly separated and combined into a top-level configuration object: https://github.com/p2panda/aquadoggo/blob/main/aquadoggo/src/config.rsSo we should end up with
NetworkConfiguration
,JsonRpcConfiguration
,MuxRpcConfiguration
andReplicationConfiguration
.This should also help with https://github.com/mycognosist/solar/issues/24