mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-07-15 20:45:46 +00:00
Allow Ledger support for Dock (#425)
Signed-off-by: lovesh <lovesh.bond@gmail.com>
This commit is contained in:
committed by
GitHub
parent
97d74944cb
commit
214fa1538a
@@ -4,7 +4,7 @@
|
||||
import type Transport from '@ledgerhq/hw-transport';
|
||||
import type { AccountOptions, LedgerAddress, LedgerSignature, LedgerTypes, LedgerVersion } from './types';
|
||||
|
||||
import { newKusamaApp, newPolkadotApp, ResponseBase, SubstrateApp } from '@zondax/ledger-polkadot';
|
||||
import { newDockApp, newKusamaApp, newPolkadotApp, ResponseBase, SubstrateApp } from '@zondax/ledger-polkadot';
|
||||
|
||||
import { transports } from '@polkadot/ledger-transports';
|
||||
import { assert, bufferToU8a, u8aToBuffer, u8aToHex } from '@polkadot/util';
|
||||
@@ -18,6 +18,7 @@ export const LEDGER_DEFAULT_INDEX = 0x80000000;
|
||||
const SUCCESS_CODE = 0x9000;
|
||||
|
||||
const APPS: Record<string, (transport: Transport) => SubstrateApp> = {
|
||||
dock: newDockApp,
|
||||
kusama: newKusamaApp,
|
||||
polkadot: newPolkadotApp
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user