Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Refactor ledger data handling to save it persistent #2376

Merged
merged 7 commits into from
Aug 27, 2022

Conversation

veado
Copy link
Collaborator

@veado veado commented Aug 24, 2022

  • Refactor ledger data to be a "flat" list (no nested maps, no nested RD)
  • Update LedgerServices: reloadPersistentLedgerAddresses, persistentLedgerAddresses$, saveLedgerAddresses, verifyLedgerAddress$
  • Renaming things: isEnabledWallet -> isEnabledLedger, askLedgerAddress$ -> addLedgerAddress, AskLedgerAddressesHandler -> AddLedgerAddressHandler, GetLedgerAddressHandler -> GetLedgerAddressHandler
  • Remove WalletAddressesAsync
  • Add useLedgerAddresses hook
  • Add IOs: ipcKeystoreWalletIO, ipcLedgerAddress(es)IO, ethDerivationModeIO
  • Helpers: ledgerAddressToWalletAddress, fromIPCLedgerAddressesIO, toIPCLedgerAddressesIO
  • AppView: Add renderImportLedgerAddressesError
  • Pass ethDerivationMode to misc. func
  • useLedger: Remove network from getLedgerAddress$, ethDerivationMode as a needed param for addAddress/verifyLedgerAddress
  • Update i18n

Part of #1601
Close #2064

@veado veado self-assigned this Aug 24, 2022
@veado veado changed the title [WIP] Store ledger data persistent Refactor ledger data handling to save it persistent Aug 26, 2022
@veado veado marked this pull request as ready for review August 26, 2022 16:36
@veado veado merged commit 293cf3f into develop Aug 27, 2022
@veado veado deleted the issue-1601-15/persist-ledger branch August 27, 2022 12:16
veado added a commit that referenced this pull request Aug 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ledger] Store/Restore ledger addresses on app restart
1 participant