Skip to content

Commit

Permalink
checkpoint move stuff over
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Oct 9, 2019
1 parent 9636640 commit 63289c9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions app/api/ada/lib/storage/database/legacy.js
@@ -1,6 +1,7 @@
// @flow

import { dumpByVersion } from './index';
import { RustModule } from '../../cardanoCrypto/rustLoader';

/**
* This file contains methods used to extract information
Expand All @@ -23,6 +24,26 @@ export type LegacyAdaAddress = {
cadIsUsed: boolean,
} & LegacyAddressingInfo;

type LegacyLocalStorageWallet = {
adaWallet: AdaWallet,
masterKey?: string, // unused in hardware wallets
// this is a per-account setting but we only have 1 account per wallet in Yoroi
lastReceiveAddressIndex: number
}

export type LegacyCryptoAccount = {
account: number,
// master public key
root_cached_key: RustModule.Wallet.Bip44AccountPublic,
derivation_scheme: string
}

type LegacyLocalStorageCryptoAccount = {
account: number,
root_cached_key: string, // MasterPublicKey
derivation_scheme: string
}

export const getLegacyAddressesList = (): Array<LegacyAdaAddress> => {
if (dumpByVersion.Addresses) {
return dumpByVersion.Addresses;
Expand Down

0 comments on commit 63289c9

Please sign in to comment.