Files
pezkuwi-ui/packages/ui-keyring/src/ledger/transportsNode.ts
T
Jaco Greeff 337f377ee9 Ledger transports arrays for node vs web vs rn (#214)
* Ledger transports arrays for node vs web vs rn

* Flatten requires
2019-09-18 12:38:30 +02:00

19 lines
500 B
TypeScript

// Copyright 2017-2019 @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 LedgerHid from '@ledgerhq/hw-transport-node-hid';
const transports: TransportDef[] = [
{
create: (): Promise<Transport> =>
LedgerHid.create(),
type: 'hid'
}
];
export default transports;