Skip to content

Commit e54eb7b

Browse files
committed
Merge branch 'main' of https://github.com/movementlabsxyz/movement-migration into l-monninger/docker-build-with-d-in-d
2 parents 25de9df + b4e05b8 commit e54eb7b

File tree

7 files changed

+21
-70
lines changed

7 files changed

+21
-70
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
command:
1212
# cargo checks and tests
1313
- cargo check --all-targets
14-
- RUST_MIN_STACK=8388608 cargo test
14+
- RUST_MIN_STACK=8388608 cargo test -- --nocapture
1515

1616
with:
1717
command: ${{ matrix.command }}

Cargo.lock

Lines changed: 0 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,4 @@ debug = true
254254
[patch.crates-io]
255255
serde-reflection = { git = "https://github.com/aptos-labs/serde-reflection", rev = "73b6bbf748334b71ff6d7d09d06a29e3062ca075" }
256256
merlin = { git = "https://github.com/aptos-labs/merlin" }
257-
x25519-dalek = { git = "https://github.com/aptos-labs/x25519-dalek", branch = "zeroize_v1" }
258-
futures = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
259-
futures-channel = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
260-
futures-executor = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
261-
futures-core = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
262-
futures-util = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
263-
futures-sink = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
264-
futures-io = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
265-
futures-task = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
257+
x25519-dalek = { git = "https://github.com/aptos-labs/x25519-dalek", branch = "zeroize_v1" }

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ MOVEMENT => MOVEMENT APTOS
99
`movement-to-movement-aptos` herein abbreviated as `mtma` is the logic and validation of migration from [`movement`](https://github.com/movementlabsxyz/movement) to [`movement-aptos`](https://github.com/movementlabsxyz/movement-aptos-core).
1010

1111
## Getting started
12+
13+
We have a video motivating, abstracting, and demonstrating this repository. Please review it [here](https://www.loom.com/share/b0b121ac3cec4823ab9938163cdefe83?sid=ff45bf58-46fe-429d-bb9d-9f68b3c5bbb5).
14+
1215
To run or work with existing migration tools check the [CLI documentation](./docs/cli/README.md).
1316

14-
To get an initial grounding, we recommend spending 10-15 minutes reading the [checks](./checks/README.md) and working down into various elements of the API from there. This should provide you with a sense of both the high-level requirements against which we are attempting to implement and validate as well as the approaches we are taking to perform the migration.
17+
To further your initial grounding, we recommend spending 10-15 minutes reading the [checks](./checks/README.md) and working down into various elements of the API from there. This should provide you with a sense of both the high-level requirements against which we are attempting to implement and validate as well as the approaches we are taking to perform the migration.
1518

1619
Once you have completed the above, review the following:
1720

checks/migrator/checks/pre-l1-merge/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ publish = { workspace = true }
99
rust-version = { workspace = true }
1010

1111
[dependencies]
12-
hex = { workspace = true }
1312
mtma-types = { workspace = true }
1413
mtma-migrator-types = { workspace = true }
1514
mtma-migrator-test-types = { workspace = true }

checks/migrator/checks/pre-l1-merge/src/pre_l1_merge.rs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,19 @@
22
pub mod test {
33

44
use anyhow::Context;
5-
use mtma_node_test_types::criterion::movement_executor::maptos_opt_executor::aptos_types::account_address::AccountAddress;
5+
use movement_core::Movement;
66
use mtma_migrator_pre_l1_merge_core::config::Config as PreL1MergeConfig;
77
use mtma_migrator_test_accounts_equal_criterion::AccountsEqual;
88
use mtma_migrator_test_types::check::checked_migration;
9-
use mtma_migrator_types::migrator::{movement_migrator::{Overlays, MovementMigrator, Runner}};
9+
use mtma_migrator_types::migrator::movement_migrator::{MovementMigrator, Overlays, Runner};
1010
use mtma_node_test_types::prelude::Prelude;
11-
use std::str::FromStr;
12-
use tracing::info;
13-
use movement_core::Movement;
14-
use mtma_types::movement::movement_config::Config as MovementConfig;
15-
use hex;
1611
use mtma_types::movement::aptos_sdk::types::account_config::aptos_test_root_address;
12+
use mtma_types::movement::movement_config::Config as MovementConfig;
13+
use tracing::info;
1714

1815
#[tokio::test(flavor = "multi_thread")]
1916
#[tracing_test::traced_test]
20-
async fn test_accounts_equal() -> Result<(), anyhow::Error> {
17+
async fn test_pre_l1_merge() -> Result<(), anyhow::Error> {
2118
// use a scope to ensure everything is dropped
2219
{
2320
// Create a MovementConfig with the correct port
@@ -56,7 +53,7 @@ pub mod test {
5653

5754
// wait for the rest client to be ready
5855
info!("Waiting for REST client to be ready (timeout: 600s)");
59-
let mut rest_api_url = movement_migrator
56+
let rest_api_url = movement_migrator
6057
.wait_for_rest_api_url(tokio::time::Duration::from_secs(600))
6158
.await?;
6259
info!("REST API URL: {}", rest_api_url);
@@ -112,13 +109,13 @@ pub mod test {
112109
}
113110
info!("Migration succeeded");
114111

115-
// Let the task run in the background and let the Drop implementation handle the shutdown
116-
drop(movement_migrator_task);
112+
kestrel::end!(movement_migrator_task)?;
117113
}
118114

119115
// exit the test is fine when you only have one test per crate because when cargo test is run across a workspace, it actually multi-processes the tests by crate
120116
std::process::exit(0);
121117

118+
#[allow(unreachable_code)]
122119
Ok(())
123120
}
124121
}

migration/core/migrator/pre-l1-merge/src/migrate/config.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
use crate::Migrate;
22
use anyhow::Context;
3-
use aptos_framework_pre_l1_merge_release::maptos_framework_release_util::LocalAccountReleaseSigner;
4-
use aptos_framework_pre_l1_merge_release::maptos_framework_release_util::OverrideAccountAddressReleaseSigner;
3+
use aptos_framework_pre_l1_merge_release::maptos_framework_release_util::{
4+
LocalAccountReleaseSigner, OverrideAccountAddressReleaseSigner,
5+
};
56
use clap::Parser;
6-
use movement_core::movement::{Celestia, Eth};
7-
use movement_core::Config as MovementCoreConfig;
8-
use movement_signer::key::TryFromCanonicalString;
9-
use movement_signer_loader::identifiers::{local::Local, SignerIdentifier};
7+
use movement_core::{
8+
movement::{Celestia, Eth},
9+
Config as MovementCoreConfig,
10+
};
1011
use mtma_node_null_core::Config as MtmaNodeNullConfig;
1112
use mtma_types::movement::aptos_sdk::types::{
1213
account_address::AccountAddress, account_config::aptos_test_root_address, LocalAccount,

0 commit comments

Comments
 (0)