You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows for easy access to the accounts stored on a hardware wallet (HW) from within the application. It works in conjunction with the HW Manager, which is a singleton class that communicates with the HW.
The HW Manager has to memoize the account list in it, HW manager will fetch list of public address from HW then it will call the utility function utilityFunction(publicKey, accountIndex) in order to check account is initialised and generate the account object.
This utility function receives a publicKey and account Index, and uses HW info and returns the account information in the format defined below. Said utility should return account object if the account is initialized, otherwise return null.
Acceptance Criteria
Reading the accounts from the HW Manager and checking with utilityFunction for initialized
Storing the accounts in HWManager
By disconnecting the HW, account list should be erased
Merging the account names with existing names from redux, to keep user data compatible. It shouldn't have to change in redux structure
Create and merge account object
Add unit test
Additional information
The HW Provider should be used in combination with the HW Manager, which should be placed at the top level of the application as a bootstrap child. The HW Provider allows for easy access to the accounts stored on the HW, by storing the accounts in the context and providing them via the useContext hook. This allows the account manager to have continuous access to the list of HW accounts
Description
This allows for easy access to the accounts stored on a hardware wallet (HW) from within the application. It works in conjunction with the HW Manager, which is a singleton class that communicates with the HW.
The HW Manager has to memoize the account list in it, HW manager will fetch list of public address from HW then it will call the utility function
utilityFunction(publicKey, accountIndex)
in order to check account is initialised and generate the account object.This utility function receives a
publicKey
and account Index, and uses HW info and returns the account information in the format defined below. Said utility should return account object if the account is initialized, otherwise returnnull
.Acceptance Criteria
Additional information
The HW Provider should be used in combination with the HW Manager, which should be placed at the top level of the application as a bootstrap child. The HW Provider allows for easy access to the accounts stored on the HW, by storing the accounts in the context and providing them via the useContext hook. This allows the account manager to have continuous access to the list of HW accounts
The text was updated successfully, but these errors were encountered: