Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ concurrency:

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0

jobs:
test-crates:
Expand Down
19 changes: 16 additions & 3 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ sui-indexer-alt-framework = { git = "https://github.com/MystenLabs/sui.git", rev
sui-rpc-api = { git = "https://github.com/MystenLabs/sui.git", rev = "211e22a5b0e08f8840f6a3e74120e1b4b04d5adb" }
sui-storage = { git = "https://github.com/MystenLabs/sui.git", rev = "211e22a5b0e08f8840f6a3e74120e1b4b04d5adb" }
sui-field-count = { git = "https://github.com/MystenLabs/sui.git", rev = "211e22a5b0e08f8840f6a3e74120e1b4b04d5adb"}
jsonrpc = { git = "https://github.com/mystenlabs/sui.git", rev = "3b96ab72dd5db2fb800837d6067bf45839178b62" }

# New Rust SDK
sui-sdk-types = { git = "https://github.com/MystenLabs/sui-rust-sdk", package = "sui-sdk-types", rev = "339c2272fd5b8fb4e1fa6662cfa9acdbb0d05704", features = ["hash", "serde"] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Commands:
help Print this message or the help of the given subcommand(s)

Options:
--resolve-move-dependencies <RESOLVE_MOVE_DEPENDENCIES>
--json Output the result in JSON format
-h, --help Print help
-V, --version Print version
--resolve-deps
--json Output the result in JSON format
-h, --help Print help
-V, --version Print version
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ Active environment switched to [mainnet]
Successfully added dependency pkg.sui/qwer/1 to your Move.toml

You can use this dependency in your modules by calling: use mvr_a::<module>;

Output from mvr:
│ [mvr] detected supported SUI CLI version
│ [mvr] resolving: "@pkg/qwer/1" on network: mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ source: crates/ci-tests/tests/use_case_tester.rs
expression: std_output
---
Active environment switched to [devnet]
[mvr] detected supported SUI CLI version
Error: The requested network (or chain identifier) is not supported. Only `mainnet` and `testnet` are supported.
If you are using this locally, you can set the `MVR_FALLBACK_NETWORK` environment variable to `mainnet` or `testnet`.
1 change: 1 addition & 0 deletions crates/mvr-api/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.env
.env.local
Move.lock
14 changes: 7 additions & 7 deletions crates/mvr-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mvr"
version = "0.0.14"
version = "0.1.0"
edition = "2021"
description = "MVR is a command line tool to interact with the Move Registry for the Sui network."
license = "Apache-2.0"
Expand All @@ -14,15 +14,15 @@ path = "src/main.rs"
name = "mvr"
path = "src/lib.rs"

[[test]]
name = "unit_tests"
path = "tests/unit_tests.rs"

[dependencies]
bin-version = { git = "https://github.com/mystenlabs/sui", package = "bin-version", rev = "3b96ab72dd5db2fb800837d6067bf45839178b62" }
jsonrpc.workspace = true

clap = { workspace = true, features = ["derive"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
reqwest = { version = "0.12", default-features = false, features = [
"json",
"rustls-tls",
] }
tempfile.workspace = true
tokio = { workspace = true, features = ["full"] }
toml_edit = "0.22"
Expand All @@ -37,7 +37,7 @@ thiserror.workspace = true
mvr-types = { path = "../mvr-types" }

# Rust SDK
sui-sdk-types.workspace = true
sui-sdk-types = { workspace = true, features = ["serde"] }

[dev-dependencies]
expect-test = "1.5.0"
Expand Down
5 changes: 1 addition & 4 deletions crates/mvr-cli/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ impl Display for CommandOutput {
let description = pkg
.metadata
.get("description")
.map(|s| s.as_str())
.flatten()
.and_then(|s| s.as_str())
.map(|s| s.to_string())
.unwrap_or("--".italic().to_string());

Expand Down Expand Up @@ -110,15 +109,13 @@ impl Display for CommandOutput {
"\n{}",
"There are multiple pages of results. Use the cursor to paginate through the results."
.italic()
.to_string()
)?;
writeln!(
f,
"{}",
format!("mvr search <query> --cursor {}", next_cursor)
.italic()
.blue()
.to_string()
)?;
}

Expand Down
2 changes: 1 addition & 1 deletion crates/mvr-cli/src/constants.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::fmt::{self, Display, Formatter};

pub const MINIMUM_BUILD_SUI_VERSION: (u32, u32) = (1, 35);
pub const MINIMUM_BUILD_SUI_VERSION: (u32, u32) = (1, 63);

pub enum EnvVariables {
SuiBinaryPath,
Expand Down
Loading