Skip to content

Commit 8f3e0d8

Browse files
authored
Merge pull request #91 from movementlabsxyz/l-monninger/fix-movement-aptos-core
fix: movement-aptos-core
2 parents 0883953 + 8d5a447 commit 8f3e0d8

File tree

24 files changed

+1804
-1357
lines changed

24 files changed

+1804
-1357
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
target
22
*.pem
33
.debug
4+
debug
45
.env*
56
.idea
67
.direnv

Cargo.lock

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

Cargo.toml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ futures = "0.3.17"
4545
futures-channel = "0.3.17"
4646
serde = "1.0"
4747
serde_json = "1.0.140"
48+
serde_yaml = "0.8.24"
4849
serde_derive = "1.0"
4950
thiserror = "1.0.50"
5051
tracing = "0.1.40"
@@ -94,6 +95,7 @@ reqwest = { version = "0.12.11", features = ["json"] }
9495
either = "1.8.1"
9596
tempdir = "0.3.7"
9697
sysinfo = "0.34.2"
98+
portpicker = "0.1.0"
9799

98100

99101
# movement
@@ -104,17 +106,17 @@ movement-types = { git = "https://github.com/movementlabsxyz/movement.git", rev
104106
maptos-execution-util = { git = "https://github.com/movementlabsxyz/movement.git", rev = "aa1ffed1a113441a65662792d15682ad52406108" }
105107

106108
# aptos-core
107-
aptos-executor = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "2941ee2b5876ab93cfb8010154c9466d7d593ed9" }
108-
aptos-vm = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "2941ee2b5876ab93cfb8010154c9466d7d593ed9" }
109-
aptos-rest-client = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "2941ee2b5876ab93cfb8010154c9466d7d593ed9" }
110-
aptos-storage-interface = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "2941ee2b5876ab93cfb8010154c9466d7d593ed9" }
111-
aptos-types = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "2941ee2b5876ab93cfb8010154c9466d7d593ed9" }
112-
aptos-db = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "2941ee2b5876ab93cfb8010154c9466d7d593ed9" }
113-
aptos_schemadb = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "2941ee2b5876ab93cfb8010154c9466d7d593ed9" }
114-
aptos-config = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "2941ee2b5876ab93cfb8010154c9466d7d593ed9" }
115-
aptos-db-indexer = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "2941ee2b5876ab93cfb8010154c9466d7d593ed9" }
116-
aptos-node = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "2941ee2b5876ab93cfb8010154c9466d7d593ed9" }
117-
aptos-cached-packages = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "2941ee2b5876ab93cfb8010154c9466d7d593ed9" }
109+
aptos-executor = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "cb3b7b02f68c7d6982257e4c59955d0e63b513db" }
110+
aptos-vm = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "cb3b7b02f68c7d6982257e4c59955d0e63b513db" }
111+
aptos-rest-client = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "cb3b7b02f68c7d6982257e4c59955d0e63b513db" }
112+
aptos-storage-interface = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "cb3b7b02f68c7d6982257e4c59955d0e63b513db" }
113+
aptos-types = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "cb3b7b02f68c7d6982257e4c59955d0e63b513db" }
114+
aptos-db = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "cb3b7b02f68c7d6982257e4c59955d0e63b513db" }
115+
aptos_schemadb = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "cb3b7b02f68c7d6982257e4c59955d0e63b513db" }
116+
aptos-config = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "cb3b7b02f68c7d6982257e4c59955d0e63b513db" }
117+
aptos-db-indexer = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "cb3b7b02f68c7d6982257e4c59955d0e63b513db" }
118+
aptos-node = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "cb3b7b02f68c7d6982257e4c59955d0e63b513db" }
119+
aptos-cached-packages = { git = "https://github.com/movementlabsxyz/aptos-core.git", rev = "cb3b7b02f68c7d6982257e4c59955d0e63b513db" }
118120

119121

120122
# secure-signing
@@ -123,12 +125,12 @@ secure-signer-loader = { git = "https://github.com/movementlabsxyz/secure-signin
123125
secure-signer-aws-kms = { git = "https://github.com/movementlabsxyz/secure-signing.git", rev = "f37eebd6d494d21b26b2faa44e1188de42ff1007" }
124126

125127
# kestrel
126-
kestrel = { git = "https://github.com/movementlabsxyz/kestrel.git", rev = "96fa1a31088af992748c8dbe6b8fe4ccfba771fa" }
127-
jsonlvar = { git = "https://github.com/movementlabsxyz/kestrel.git", rev = "96fa1a31088af992748c8dbe6b8fe4ccfba771fa" }
128-
commander = { git = "https://github.com/movementlabsxyz/kestrel.git", rev = "96fa1a31088af992748c8dbe6b8fe4ccfba771fa" }
129-
include-dir = { git = "https://github.com/movementlabsxyz/kestrel.git", rev = "96fa1a31088af992748c8dbe6b8fe4ccfba771fa" }
130-
include-vendor = { git = "https://github.com/movementlabsxyz/kestrel.git", rev = "96fa1a31088af992748c8dbe6b8fe4ccfba771fa" }
131-
ready-docker = { git = "https://github.com/movementlabsxyz/kestrel.git", rev = "96fa1a31088af992748c8dbe6b8fe4ccfba771fa" }
128+
kestrel = { git = "https://github.com/movementlabsxyz/kestrel.git", rev = "9c56eb9f6dde1564493835c7e2c61b9fd2b00a6c" }
129+
jsonlvar = { git = "https://github.com/movementlabsxyz/kestrel.git", rev = "9c56eb9f6dde1564493835c7e2c61b9fd2b00a6c" }
130+
commander = { git = "https://github.com/movementlabsxyz/kestrel.git", rev = "9c56eb9f6dde1564493835c7e2c61b9fd2b00a6c" }
131+
include-dir = { git = "https://github.com/movementlabsxyz/kestrel.git", rev = "9c56eb9f6dde1564493835c7e2c61b9fd2b00a6c" }
132+
include-vendor = { git = "https://github.com/movementlabsxyz/kestrel.git", rev = "9c56eb9f6dde1564493835c7e2c61b9fd2b00a6c" }
133+
ready-docker = { git = "https://github.com/movementlabsxyz/kestrel.git", rev = "9c56eb9f6dde1564493835c7e2c61b9fd2b00a6c" }
132134

133135
# orfile
134136
orfile = { git = "https://github.com/movementlabsxyz/orfile.git", rev = "b49cb42495816fa00a1107be5bbf41aff3a8255d" }
@@ -181,6 +183,7 @@ mtma-migrator-test-types = { path = "checks/migrator/util/types" }
181183
movement-syncing = { path = "util/movement/movement-syncing" }
182184
movement-core = { path = "util/movement/movement-core" }
183185
movement-util = { path = "util/movement/movement-util" }
186+
movement-aptos = { path = "util/movement-aptos/movement-aptos" }
184187
movement-aptos-core = { path = "util/movement-aptos/movement-aptos-core" }
185188

186189
[workspace.lints.clippy]

checks/migrator/checks/sketchpad/src/example.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pub mod test {
66
use mtma_node_null_core::config::Config as MtmaNullConfig;
77
use mtma_node_test_types::prelude::Prelude;
88

9+
#[ignore] // this is just an example, so it's not expected to pass
910
#[tokio::test]
1011
#[tracing_test::traced_test]
1112
async fn test_global_storage_includes_null() -> Result<(), anyhow::Error> {

checks/migrator/util/types/src/check.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ use mtma_node_test_types::prelude::Prelude;
55
/// Errors thrown when working with the [Config].
66
#[derive(Debug, thiserror::Error)]
77
pub enum CheckError {
8-
#[error("failed to run prelude: {0}")]
8+
#[error("checked migration encountered an error while running prelude: {0}")]
99
Prelude(#[source] Box<dyn std::error::Error + Send + Sync>),
10-
#[error("failed to run migration: {0}")]
10+
#[error("checked migration encountered an error while running migration: {0}")]
1111
Migration(#[source] Box<dyn std::error::Error + Send + Sync>),
12-
#[error("failed to satisfy criteria: {0}")]
12+
#[error("checked migration encountered an error while satisfying criteria: {0}")]
1313
Criteria(#[source] Box<dyn std::error::Error + Send + Sync>),
14-
#[error("internal error: {0}")]
14+
#[error("checked migration encountered an internal error: {0}")]
1515
Internal(#[source] Box<dyn std::error::Error + Send + Sync>),
1616
}
1717

checks/migrator/util/types/src/criterion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl MovementMigratorClient {
4242
/// Errors thrown when working with the [Config].
4343
#[derive(Debug, thiserror::Error)]
4444
pub enum CriterionError {
45-
#[error("failed to build from config: {0}")]
45+
#[error("criterion was not satisfied: {0}")]
4646
Unsatisfied(#[source] Box<dyn std::error::Error + Send + Sync>),
4747
}
4848

checks/node/util/types/src/check.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ use mtma_node_types::migration::Migrationish;
55
/// Errors thrown when working with the [Config].
66
#[derive(Debug, thiserror::Error)]
77
pub enum CheckError {
8-
#[error("failed to run prelude: {0}")]
8+
#[error("check encountered an error while running prelude: {0}")]
99
Prelude(#[source] Box<dyn std::error::Error + Send + Sync>),
10-
#[error("failed to run migration: {0}")]
10+
#[error("check encountered an error while running migration: {0}")]
1111
Migration(#[source] Box<dyn std::error::Error + Send + Sync>),
12-
#[error("failed to satisfy criteria: {0}")]
12+
#[error("check encountered an error while satisfying criteria: {0}")]
1313
Criteria(#[source] Box<dyn std::error::Error + Send + Sync>),
14-
#[error("internal error: {0}")]
14+
#[error("check encountered an internal error: {0}")]
1515
Internal(#[source] Box<dyn std::error::Error + Send + Sync>),
1616
}
1717

checks/node/util/types/src/criterion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ pub use mtma_node_types::executor::movement_executor::MovementNode;
77
/// Errors thrown when working with the [Config].
88
#[derive(Debug, thiserror::Error)]
99
pub enum CriterionError {
10-
#[error("the criterion is unsatisfied: {0}")]
10+
#[error("the criterion was not satisfied: {0}")]
1111
Unsatisfied(#[source] Box<dyn std::error::Error + Send + Sync>),
12-
#[error("internal error: {0}")]
12+
#[error("criterion encountered an internal error: {0}")]
1313
Internal(#[source] Box<dyn std::error::Error + Send + Sync>),
1414
}
1515

checks/node/util/types/src/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const DEFAULT_ROUND: u64 = 0;
1717
/// Errors thrown when working with the [Config].
1818
#[derive(Debug, thiserror::Error)]
1919
pub enum PreludeError {
20-
#[error("internal error: {0}")]
20+
#[error("prelude encountered an internal error: {0}")]
2121
Internal(#[source] Box<dyn std::error::Error + Send + Sync>),
2222
}
2323

clap-markdown-list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
movement
2+
movement-aptos
23
mtma-check
34
mtma-check-dev
45
mtma-migrate

0 commit comments

Comments
 (0)