MyCrypto/common/components/WalletDecrypt/disables.ts

16 lines
495 B
TypeScript
Raw Normal View History

2018-01-20 20:06:28 +00:00
import { MiscWalletName, SecureWalletName, WalletName } from 'config';
enum WalletMode {
READ_ONLY = 'READ_ONLY',
UNABLE_TO_SIGN = 'UNABLE_TO_SIGN',
ONLINE_ONLY = 'ONLINE_ONLY'
}
const walletModes: { [key in WalletMode]: WalletName[] } = {
[WalletMode.READ_ONLY]: [MiscWalletName.VIEW_ONLY],
[WalletMode.UNABLE_TO_SIGN]: [SecureWalletName.TREZOR, MiscWalletName.VIEW_ONLY],
[WalletMode.ONLINE_ONLY]: [SecureWalletName.WEB3, SecureWalletName.TREZOR]
};
export default walletModes;