Skip to content

Commit

Permalink
test: replace movement cli with aptos cli in bridge setup
Browse files Browse the repository at this point in the history
  • Loading branch information
andygolay committed Dec 6, 2024
1 parent 71f30ee commit e6b2039
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions protocol-units/bridge/setup/src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ pub fn deploy_local_movement_node(config: &mut MovementConfig) -> Result<(), any

pub fn init_movement_node(config: &mut MovementConfig) -> Result<(), anyhow::Error> {
tracing::info!("Start deploy_local_movement_node rpc url:{}", config.mvt_rpc_connection_url());
let mut process = Command::new("movement") //--network
let mut process = Command::new("aptos") //--network
.args(&[
"init",
"--network",
Expand Down Expand Up @@ -257,7 +257,7 @@ pub fn init_movement_node(config: &mut MovementConfig) -> Result<(), anyhow::Err

pub fn deploy_on_movement_framework(config: &mut MovementConfig) -> Result<(), anyhow::Error> {
tracing::info!("Before compile move modules");
let compile_output = Command::new("movement")
let compile_output = Command::new("aptos")
.args(&["move", "compile", "--package-dir", "protocol-units/bridge/move-modules/"])
.stdout(Stdio::piped())
.stderr(Stdio::piped())
Expand All @@ -269,7 +269,7 @@ pub fn deploy_on_movement_framework(config: &mut MovementConfig) -> Result<(), a
if !compile_output.stderr.is_empty() {
tracing::info!("move compile stderr: {}", String::from_utf8_lossy(&compile_output.stderr));
}
let enable_bridge_feature_output = Command::new("movement")
let enable_bridge_feature_output = Command::new("aptos")
.args(&[
"move",
"run-script",
Expand All @@ -296,7 +296,7 @@ pub fn deploy_on_movement_framework(config: &mut MovementConfig) -> Result<(), a
);
}

let store_mint_burn_caps_output = Command::new("movement")
let store_mint_burn_caps_output = Command::new("aptos")
.args(&[
"move",
"run-script",
Expand All @@ -323,7 +323,7 @@ pub fn deploy_on_movement_framework(config: &mut MovementConfig) -> Result<(), a
);
}

let update_bridge_relayer_output = Command::new("movement")
let update_bridge_relayer_output = Command::new("aptos")
.args(&[
"move",
"run-script",
Expand Down Expand Up @@ -352,7 +352,7 @@ pub fn deploy_on_movement_framework(config: &mut MovementConfig) -> Result<(), a
);
}

let set_initiator_time_lock_script_output = Command::new("movement")
let set_initiator_time_lock_script_output = Command::new("aptos")
.args(&[
"move",
"run-script",
Expand Down Expand Up @@ -381,7 +381,7 @@ pub fn deploy_on_movement_framework(config: &mut MovementConfig) -> Result<(), a
);
}

let set_counterparty_time_lock_script_output = Command::new("movement")
let set_counterparty_time_lock_script_output = Command::new("aptos")
.args(&[
"move",
"run-script",
Expand Down Expand Up @@ -416,7 +416,7 @@ pub fn deploy_on_movement_framework(config: &mut MovementConfig) -> Result<(), a
}

fn update_mvt_account_address() -> Result<(), anyhow::Error> {
let config_file_path = std::env::current_dir()?.join(".movement/config.yaml");
let config_file_path = std::env::current_dir()?.join(".aptos/config.yaml");
let new_address = "0xA550C18";
let mut tmp_lines: Vec<String> = Vec::new();

Expand Down

0 comments on commit e6b2039

Please sign in to comment.