mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-25 11:47:58 +00:00
435a9b3cd4
* Bump deps * Remove unused deps * Bump berry * Bump berry
26 lines
684 B
TypeScript
26 lines
684 B
TypeScript
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
|
// This software may be modified and distributed under the terms
|
|
// of the Apache-2.0 license. See the LICENSE file for details.
|
|
|
|
import { TransportDef } from './types';
|
|
|
|
import Transport from '@ledgerhq/hw-transport';
|
|
import LedgerWebUSB from '@ledgerhq/hw-transport-webusb';
|
|
|
|
const transports: TransportDef[] = [
|
|
// deprecated
|
|
// import LedgerU2F from '@ledgerhq/hw-transport-u2f';
|
|
// {
|
|
// create: (): Promise<Transport> =>
|
|
// LedgerU2F.create(),
|
|
// type: 'u2f'
|
|
// },
|
|
{
|
|
create: (): Promise<Transport> =>
|
|
LedgerWebUSB.create(),
|
|
type: 'webusb'
|
|
}
|
|
];
|
|
|
|
export default transports;
|