mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-23 08:18:17 +00:00
* Add support for the Archos Safe-T mini * Safe-T mini: Fix version requirements * Fix fade-in animation is not hitting the 5th wallet option * Disable safe-t on electron:
16 lines
708 B
TypeScript
16 lines
708 B
TypeScript
import { WalletTypes } from 'shared/enclave/client';
|
|
import { makeEnclaveWallet } from './enclave';
|
|
import { LedgerWallet as LedgerWalletWeb } from './ledger';
|
|
import { TrezorWallet as TrezorWalletWeb } from './trezor';
|
|
import { SafeTWallet as SafeTWalletWeb } from './safe-t';
|
|
|
|
function enclaveOrWallet<T>(type: WalletTypes, lib: T) {
|
|
return process.env.BUILD_ELECTRON ? makeEnclaveWallet(type) : lib;
|
|
}
|
|
|
|
export * from './mnemonic';
|
|
export * from './hardware';
|
|
export const LedgerWallet = enclaveOrWallet(WalletTypes.LEDGER, LedgerWalletWeb);
|
|
export const TrezorWallet = enclaveOrWallet(WalletTypes.TREZOR, TrezorWalletWeb);
|
|
export const SafeTWallet = enclaveOrWallet(WalletTypes.SAFE_T, SafeTWalletWeb);
|