19 lines
760 B
TypeScript
19 lines
760 B
TypeScript
// Copyright 2017-2021 @polkadot/hw-ledger authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type Transport from '@ledgerhq/hw-transport';
|
|
import type { SubstrateApp } from '@zondax/ledger-substrate';
|
|
|
|
import { newDockApp, newEdgewareApp, newEquilibriumApp, newKusamaApp, newPolkadotApp, newPolymeshApp, newStatemineApp } from '@zondax/ledger-substrate';
|
|
|
|
// These match up with the keys of the knownLedger object in the @polkadot/networks/defaults.ts
|
|
export const ledgerApps: Record<string, (transport: Transport) => SubstrateApp> = {
|
|
'dock-mainnet': newDockApp,
|
|
edgeware: newEdgewareApp,
|
|
equilibrium: newEquilibriumApp,
|
|
kusama: newKusamaApp,
|
|
polkadot: newPolkadotApp,
|
|
polymesh: newPolymeshApp,
|
|
statemine: newStatemineApp
|
|
};
|