Skip to content

Commit

Permalink
wip: this commit is for testing new bitbox firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
edouardparis committed Sep 20, 2024
1 parent 6e55191 commit 42a290a
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 31 deletions.
158 changes: 129 additions & 29 deletions gui/Cargo.lock

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

2 changes: 1 addition & 1 deletion gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ path = "src/main.rs"

[dependencies]
async-trait = "0.1"
async-hwi = { version = "0.0.23" }
async-hwi = { git = "https://github.com/wizardsardine/async-hwi", branch = "bitbox-tapminiscript" }
liana = { git = "https://github.com/wizardsardine/liana", branch = "master", default-features = false, features = ["nonblocking_shutdown"] }
liana_ui = { path = "ui" }
backtrace = "0.3"
Expand Down
7 changes: 6 additions & 1 deletion gui/src/hw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ fn ledger_version_supported(version: Option<&Version>) -> bool {

// Kind and minimal version of devices supporting tapminiscript.
// We cannot use a lazy_static HashMap yet, because DeviceKind does not implement Hash.
const DEVICES_COMPATIBLE_WITH_TAPMINISCRIPT: [(DeviceKind, Option<Version>); 4] = [
const DEVICES_COMPATIBLE_WITH_TAPMINISCRIPT: [(DeviceKind, Option<Version>); 5] = [
(
DeviceKind::Ledger,
Some(Version {
Expand All @@ -894,6 +894,11 @@ const DEVICES_COMPATIBLE_WITH_TAPMINISCRIPT: [(DeviceKind, Option<Version>); 4]
prerelease: None,
}),
),
(
DeviceKind::BitBox02,
// TODO: change for the real firmware release version
None,
),
];

pub fn is_compatible_with_tapminiscript(
Expand Down

0 comments on commit 42a290a

Please sign in to comment.