use hylix::{config::ContainerEnvConfig, BackendType, HylixConfig};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = HylixConfig::load()?;
println!("Loaded config: {:?}", config);
let new_config = HylixConfig {
default_backend: BackendType::Risc0,
devnet: hylix::config::DevnetConfig {
node_image: "ghcr.io/hyli-org/hyli:0.14.0-rc3".to_string(),
wallet_server_image: "ghcr.io/hyli-org/wallet/wallet-server:main".to_string(),
wallet_ui_image: "ghcr.io/hyli-org/wallet/wallet-ui:main".to_string(),
node_port: 8080,
da_port: 4141,
wallet_api_port: 3000,
wallet_ws_port: 8081,
wallet_ui_port: 8080,
indexer_port: 8081,
postgres_port: 5432,
auto_start: true,
container_env: ContainerEnvConfig::default(),
},
..Default::default()
};
new_config.save()?;
println!("Saved new configuration");
Ok(())
}