1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/shared/constants/keyring.ts
Mark Stacey d6b49ae383
Refactor KeyringTypes constant (#17490)
The `HardwareKeyringTypes` constant has been renamed to `KeyringTypes`
and moved to a separate constants module, to reflect that it contains
more than just hardware wallet keyring types. This corrects a mistake
made recently during a TypeScript conversion.
2023-03-21 12:13:22 -02:30

18 lines
361 B
TypeScript

import { HardwareKeyringType } from './hardware-wallets';
/**
* These are the keyrings that are managed entirely by MetaMask.
*/
export enum InternalKeyringType {
hdKeyTree = 'HD Key Tree',
imported = 'Simple Key Pair',
}
/**
* All keyrings supported by MetaMask.
*/
export const KeyringType = {
...HardwareKeyringType,
...InternalKeyringType,
};