Add new ledger app settings (#796)

* Add ledger app settings

* Add ledgerApp

* Add to setting struct

* add available ledger apps

* fix info
This commit is contained in:
Tarik Gul
2024-07-22 13:27:58 -07:00
committed by GitHub
parent b61b7f25b8
commit 0f03a8c2bf
4 changed files with 35 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import type { Option } from '../types.js';
export { CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER } from './crypto.js';
export { ENDPOINT_DEFAULT, ENDPOINTS } from './endpoints.js';
export { LEDGER_CONN, LEDGER_CONN_DEFAULT } from './ledger.js';
export { LEDGER_APP, LEDGER_APP_DEFAULT, LEDGER_CONN, LEDGER_CONN_DEFAULT } from './ledger.js';
export { PREFIX_DEFAULT, PREFIXES } from './ss58.js';
export { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, NOTIFICATION_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './ui.js';
@@ -28,3 +28,23 @@ export const LEDGER_CONN: Option[] = [
value: 'hid'
}
];
export const LEDGER_APP_DEFAULT = 'generic';
export const LEDGER_APP: Option[] = [
{
info: 'generic',
text: 'Use the Ledger Polkadot Generic App',
value: 'generic'
},
{
info: 'migration',
text: 'Use the Ledger Migration App',
value: 'migration'
},
{
info: 'legacy',
text: 'Use the Ledger Legacy App',
value: 'legacy'
}
];