Skip to content
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

Create useHWStatus hook #4768

Closed
Tracked by #4041
soroushm opened this issue Jan 30, 2023 · 0 comments
Closed
Tracked by #4041

Create useHWStatus hook #4768

soroushm opened this issue Jan 30, 2023 · 0 comments
Assignees
Milestone

Comments

@soroushm
Copy link
Contributor

soroushm commented Jan 30, 2023

Description

UseHWStatus is a custom hook that allows for easy access to the status of a hardware wallet (HW) from within the application. It retrieves the status information from the HW Manager and makes it available to be used in different parts of the application, such as displaying the status on the top bar or prompting the user to reconnect the device before signing a transaction.

Acceptance Criteria

Retrieving the HW status from the HW Manager
Making the status information available to be used throughout the application
Make sure status is always is up to date. e.g. Subscribe to the events from HWManager and update the status accordingly
Add Unit test

Additional information

The status information returned by UseHWStatus should include the device ID, model, brand, and status of the HW, with possible values of "connected", and "standby". The "standby" status means that the framework channel is closed and needs to be reconfirmed.

The status object should have the following structure:

{
  deviceId: "",
  model: "",
  brand: "",
  status: "", // connected, standby
}
@reyraa reyraa changed the title UseHWStatus Create useHWStatus hook Jan 30, 2023
@reyraa reyraa changed the title Create useHWStatus hook Create the useHWStatus hook Jan 30, 2023
@soroushm soroushm changed the title Create the useHWStatus hook Create useHWStatus hook Jan 30, 2023
@sridharmeganathan sridharmeganathan added this to the Sprint 93 milestone Feb 13, 2023
@ikem-legend ikem-legend self-assigned this Feb 16, 2023
@github-project-automation github-project-automation bot moved this from Backlog to Done in Lisk Desktop Version 3.0.0 Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

3 participants