Skip to content

Feat: add mithril-client CLI command for UTxO-HD ledger state snapshot conversion #2518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
75583fb
feat(client-cli): scaffold new command to convert ledger state snapshots
dlachaume May 20, 2025
1d6fe27
feat(client-cli): use `unstable` flag for tools command execution
dlachaume Jun 3, 2025
4b92a70
feat(client-cli): implement download of Cardano node distribution to …
dlachaume May 20, 2025
4a89058
feat(client-cli): implement unpack of Cardano node distribution
dlachaume Jun 3, 2025
81b1f7d
feat(client-cli): implement directory copy functionality
dlachaume Jun 3, 2025
7c45a7e
feat(client-cli): execute the `snapshot-converter` binary
dlachaume Jun 3, 2025
1b62f34
feat(client-cli): add `--commit` option to replace ledger state with …
dlachaume Jun 4, 2025
ecc9430
feat(client-cli): add cleanup logic to delete temporary directories a…
dlachaume Jun 4, 2025
a0c94cb
refactor(client-cli): rephrase error messages and add console output …
dlachaume Jun 4, 2025
efb7743
feat(client-cli): display guidance message for UTxO-HD snapshot conve…
dlachaume Jun 4, 2025
25a7bb7
refactor(client-cli): move `HttpDownloader` trait in a dedicated `int…
dlachaume Jun 5, 2025
3892a40
refactor(client-cli): rename `github_release.rs` to `model.rs`
dlachaume Jun 5, 2025
28c79ef
refactor(client-cli): rename `reqwest_http_downloader.rs` to `reqwest…
dlachaume Jun 5, 2025
e574dc1
refactor(client-cli): move `ArchiveFormat` trait in a dedicated `inte…
dlachaume Jun 5, 2025
2bcfaad
refactor(client-cli): only remove contents of the ledger directory, n…
dlachaume Jun 5, 2025
eb0c854
refactor(client-cli): refactor `find_oldest_ledger_state_snapshot`
dlachaume Jun 5, 2025
f8ec5ff
test(client): add tests for `ReqwestGitHubApiClient`
dlachaume Jun 5, 2025
e007d17
refactor(client-cli): fix and enhance command documentation
dlachaume Jun 5, 2025
ff0a127
chore: update `Cargo.lock` (missing in the previous merge on main)
dlachaume Jun 5, 2025
5b39c59
chore: upgrade crate versions
dlachaume Jun 5, 2025
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
151 changes: 149 additions & 2 deletions Cargo.lock

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

14 changes: 13 additions & 1 deletion mithril-client-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mithril-client-cli"
version = "0.12.6"
version = "0.12.7"
description = "A Mithril Client"
authors = { workspace = true }
edition = { workspace = true }
Expand Down Expand Up @@ -31,13 +31,21 @@ chrono = { workspace = true }
clap = { workspace = true }
cli-table = "0.5.0"
config = { workspace = true }
flate2 = "1.1.1"
fs2 = "0.4.3"
futures = "0.3.31"
human_bytes = { version = "0.4.3", features = ["fast"] }
indicatif = { version = "0.17.11", features = ["tokio"] }
mithril-cli-helper = { path = "../internal/mithril-cli-helper" }
mithril-client = { path = "../mithril-client", features = ["fs", "unstable"] }
mithril-doc = { path = "../internal/mithril-doc" }
reqwest = { workspace = true, features = [
"default",
"gzip",
"zstd",
"deflate",
"brotli"
] }
serde = { workspace = true }
serde_json = { workspace = true }
slog = { workspace = true, features = [
Expand All @@ -47,8 +55,12 @@ slog = { workspace = true, features = [
slog-async = { workspace = true }
slog-bunyan = { workspace = true }
slog-term = { workspace = true }
tar = "0.4.44"
thiserror = { workspace = true }
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
zip = "4.0.0"

[dev-dependencies]
httpmock = "0.7.0"
mithril-common = { path = "../mithril-common", features = ["test_tools"] }
mockall = { workspace = true }
Loading
Loading