Skip to content

Commit

Permalink
Merge pull request #18 from LedgerHQ/develop
Browse files Browse the repository at this point in the history
Merge into master
  • Loading branch information
yogh333 authored Feb 12, 2025
2 parents 43eb6e1 + 189b267 commit 40a3e6a
Show file tree
Hide file tree
Showing 28 changed files with 29 additions and 12 deletions.
Binary file modified ragger-tests/snapshots/flex/test_app_mainmenu/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/flex/test_sign_tx_blind_sign_1/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/flex/test_sign_tx_blind_sign_2/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/flex/test_sign_tx_blind_sign_2/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/flex/test_sign_tx_refused/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/flex/test_sign_tx_refused/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/flex/test_sign_tx_refused/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/flex/test_sign_tx_sui_transfer/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/flex/test_sign_tx_sui_transfer/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/flex/test_sign_tx_sui_transfer/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/nanosp/test_app_mainmenu/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/nanox/test_app_mainmenu/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/stax/test_app_mainmenu/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/stax/test_sign_tx_blind_sign_1/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/stax/test_sign_tx_blind_sign_2/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/stax/test_sign_tx_blind_sign_2/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/stax/test_sign_tx_refused/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/stax/test_sign_tx_refused/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/stax/test_sign_tx_refused/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/stax/test_sign_tx_sui_transfer/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/stax/test_sign_tx_sui_transfer/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ragger-tests/snapshots/stax/test_sign_tx_sui_transfer/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions rust-app/Cargo.lock

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

8 changes: 4 additions & 4 deletions rust-app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sui"
version = "0.2.2"
version = "0.2.3"
authors = ["Obsidian Systems"]
edition = "2018"
autobins = false
Expand Down Expand Up @@ -28,14 +28,14 @@ extra_debug = ["ledger-log/log_trace"]
pending_review_screen = []

[target.'cfg(target_family = "bolos")'.dependencies]
ledger_device_sdk = "1.19.1"
ledger_secure_sdk_sys = "1.6.1"
ledger_device_sdk = "1.19.5"
ledger_secure_sdk_sys = "1.6.2"

[target.'cfg(any(target_os = "nanosplus", target_os = "nanox"))'.dependencies]
ledger-prompts-ui = { git = "https://github.com/alamgu/ledger-prompts-ui" }

[target.'cfg(target_family = "bolos")'.dev-dependencies.ledger_device_sdk]
version = "1.19.1"
version = "1.19.5"
features = [ "speculos" ]

[[bin]]
Expand Down
12 changes: 11 additions & 1 deletion rust-app/src/main_nanos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub fn app_main() {
}
io::Event::Ticker => {
if UxEvent::Event.request() != BOLOS_UX_OK {
UxEvent::block();
UxEvent::block_and_get_event::<Dummy>(&mut comm.borrow_mut());
// Redisplay application menu here
menu(states.borrow(), &idle_menu, &busy_menu);
}
Expand All @@ -125,3 +125,13 @@ pub fn app_main() {
}
}
}

// Trick to manage pin code
use core::convert::TryFrom;
struct Dummy {}
impl TryFrom<io::ApduHeader> for Dummy {
type Error = io::StatusWords;
fn try_from(_header: io::ApduHeader) -> Result<Self, Self::Error> {
Ok(Self {})
}
}
11 changes: 9 additions & 2 deletions rust-app/src/ui/nbgl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,15 @@ impl UserInterface {

let success = NbglReview::new()
.glyph(&APP_ICON)
.titles("Transfer SUI", "", "Sign Transaction?")
.titles(
"Review transaction to transfer SUI",
"",
"Sign transaction to transfer SUI",
)
.show(&tx_fields);
NbglReviewStatus::new()
.status_type(StatusType::Transaction)
.show(success);
if success {
Some(())
} else {
Expand All @@ -96,7 +103,7 @@ impl UserInterface {
let success = NbglReview::new()
.glyph(&APP_ICON)
.blind()
.titles("Blind Sign Transaction", "", "Sign Transaction?")
.titles("Review transaction", "", "Sign transaction")
.show(&tx_fields);
NbglReviewStatus::new()
.status_type(StatusType::Transaction)
Expand Down

0 comments on commit 40a3e6a

Please sign in to comment.