Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberHoward committed Sep 27, 2023
1 parent da02aa2 commit 2ca8598
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion framework/scripts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ clap = { workspace = true }
dirs = "5.0.1"

[patch.crates-io]
cw-orch-networks = {git = "https://github.com/AbstractSDK/cw-orchestrator", branch = "add/chaininfo_eq_derive" }
cw-orch-networks = { git = "https://github.com/AbstractSDK/cw-orchestrator", branch = "add/chaininfo_eq_derive" }
16 changes: 13 additions & 3 deletions framework/scripts/src/bin/full_deploy.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
use reqwest::Url;
use std::{fs::{self, File}, net::TcpStream, io::BufReader };
use std::{
fs::{self, File},
io::BufReader,
net::TcpStream,
};

use abstract_core::objects::gov_type::GovernanceDetails;
use abstract_interface::Abstract;
Expand Down Expand Up @@ -101,14 +105,20 @@ async fn ping_grpc(url_str: &str) -> anyhow::Result<()> {
}

fn write_deployment(status: &DeploymentStatus) -> anyhow::Result<()> {
let path = dirs::home_dir().unwrap().join(".cw-orchestrator").join("chains.json");
let path = dirs::home_dir()
.unwrap()
.join(".cw-orchestrator")
.join("chains.json");
let status_str = serde_json::to_string_pretty(status)?;
fs::write(path, status_str)?;
Ok(())
}

fn read_deployment() -> anyhow::Result<DeploymentStatus> {
let path = dirs::home_dir().unwrap().join(".cw-orchestrator").join("chains.json");
let path = dirs::home_dir()
.unwrap()
.join(".cw-orchestrator")
.join("chains.json");
let file = File::open(path)?;
let reader = BufReader::new(file);

Expand Down

0 comments on commit 2ca8598

Please sign in to comment.