Skip to content

Commit

Permalink
chore: reorg testnet ids.
Browse files Browse the repository at this point in the history
  • Loading branch information
l-monninger committed Jan 24, 2024
1 parent d0c6260 commit a294604
Show file tree
Hide file tree
Showing 50 changed files with 267 additions and 247 deletions.
20 changes: 20 additions & 0 deletions movement-sdk/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions movement-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ members = [
"clis/movement",

# artifacts
"artifact/artifacts",
"artifacts",

# services
"services",

# util
"util/util",
Expand All @@ -42,7 +45,8 @@ rust-version = "1.70"
[workspace.dependencies]
util = { path = "util/util", features = ["logging"] }
test-helpers = { path = "util/test-helpers" }
artifacts = { path = "artifact/artifacts" }
artifacts = { path = "artifacts" }
services = { path = "services" }

async-trait = { version = "0.1" }
anyhow = { version = "1" } # For flexible error handling
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ impl Constructor {
Artifact::self_contained_script(
"subnet".to_string(),
r#"
mkdir -p $MOVEMENT_DIR/bin
source "$HOME/.cargo/env"
echo $MOVEMENT_DIR
cd $MOVEMENT_DIR/src/m1-with-submodules/m1
cargo build -p subnet
# for now use the debug build
cp target/debug/subnet $MOVEMENT_DIR/bin
cp target/debug/subnet $MOVEMENT_DIR/bin/subnet
"#.to_string(),
).with_dependencies(vec![
cargo::Constructor::default().into(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl ConstructorOperations for Constructor {
let testnet_id = testnet_id::Constructor::default_with_version(version);

Artifact::self_contained_script(
"subnet".to_string(),
"testnet".to_string(),
r#"
echo $MOVEMENT_DIR
cp $MOVEMENT_DIR/bin/subnet $MOVEMENT_DIR/bin/$(cat $MOVEMENT_DIR/rsc/testnet-id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Constructor {
cd $MOVEMENT_DIR/src/m1-with-submodules/movement-sdk
cargo build -p movement
# for now use the debug build
cp target/debug/movement $MOVEMENT_DIR/bin
cp target/debug/movement $MOVEMENT_DIR/bin/movement
"#.to_string(),
).with_dependencies(vec![
cargo::Constructor::default().into(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ impl ConstructorOperations for Constructor {
(echo; echo 'export PATH="$HOME/bin:$PATH"') >> "$HOME/.bash_profile"
export PATH="$HOME/bin:$PATH"
# copy avalanche to movement bin
mkdir -p $MOVEMENT_DIR/bin
cp $(which avalanche) $MOVEMENT_DIR/bin/avalanche
avalanche --version
"#.to_string(),
).with_dependencies(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ impl ConstructorOperations for Constructor {
Artifact::self_contained_script(
"cargo".to_string(),
r#"
mkdir -p $MOVEMENT_DIR/bin
git clone [email protected]:ava-labs/avalanchego.git
cd avalanchego
./scripts/build.sh
mkdir -p $HOME/bin
mv ./build/avalanchego $HOME/bin/avalanchego
cp $HOME/bin/avalanchego $MOVEMENT_DIR/bin/avalanchego
cd ..
rm -rf avalanchego
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl ConstructorOperations for Constructor {
#[cfg(target_os = "macos")]
let git = Artifact::noop("git".to_string()); // Should already be installed on macOS

#[cfg(not(target_os = "ubuntu"))]
#[cfg(target_os = "ubuntu")]
let git = Artifact::self_contained_script(
"git".to_string(),
r#"
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion movement-sdk/clis/movement/src/ctl/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pub mod ctl;
pub use ctl::Ctl;
pub mod services;
pub mod start;
pub mod stop;
pub mod status;
Expand Down
55 changes: 0 additions & 55 deletions movement-sdk/clis/movement/src/ctl/services/m1/m1.rs

This file was deleted.

3 changes: 0 additions & 3 deletions movement-sdk/clis/movement/src/ctl/services/m1/mod.rs

This file was deleted.

2 changes: 0 additions & 2 deletions movement-sdk/clis/movement/src/ctl/services/m1/proxy/mod.rs

This file was deleted.

32 changes: 0 additions & 32 deletions movement-sdk/clis/movement/src/ctl/services/m1/proxy/proxy.rs

This file was deleted.

31 changes: 0 additions & 31 deletions movement-sdk/clis/movement/src/ctl/services/m1/subnet/fuji.rs

This file was deleted.

31 changes: 0 additions & 31 deletions movement-sdk/clis/movement/src/ctl/services/m1/subnet/local.rs

This file was deleted.

6 changes: 0 additions & 6 deletions movement-sdk/clis/movement/src/ctl/services/m1/subnet/mod.rs

This file was deleted.

55 changes: 0 additions & 55 deletions movement-sdk/clis/movement/src/ctl/services/m1/subnet/subnet.rs

This file was deleted.

Empty file.
Empty file.
5 changes: 0 additions & 5 deletions movement-sdk/clis/movement/src/ctl/services/mod.rs

This file was deleted.

14 changes: 0 additions & 14 deletions movement-sdk/clis/movement/src/ctl/services/service.rs

This file was deleted.

Loading

0 comments on commit a294604

Please sign in to comment.