2
2
// SPDX-License-Identifier: Apache-2.0
3
3
4
4
import { ChainInfoMap } from '@subwallet/chain-list' ;
5
- import { LedgerNetwork , MigrationLedgerNetwork } from '@subwallet/extension-base/background/KoniTypes' ;
5
+ import { LEDGER_SCHEME , LedgerNetwork , MigrationLedgerNetwork } from '@subwallet/extension-base/background/KoniTypes' ;
6
6
7
7
export const SUBSTRATE_GENERIC_KEY = 'substrate_generic' ;
8
8
export const SUBSTRATE_MIGRATION_KEY = 'substrate_migration' ;
@@ -292,7 +292,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
292
292
slug : ChainInfoMap . statemint . slug ,
293
293
slip44 : 354 ,
294
294
ss58_addr_type : 0 ,
295
- isHide : true
295
+ isHide : true ,
296
+ scheme : LEDGER_SCHEME . ED25519
296
297
} ,
297
298
{
298
299
accountName : 'Statemine' ,
@@ -302,7 +303,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
302
303
network : 'statemine' ,
303
304
slug : ChainInfoMap . statemine . slug ,
304
305
slip44 : 434 ,
305
- ss58_addr_type : 2
306
+ ss58_addr_type : 2 ,
307
+ scheme : LEDGER_SCHEME . ED25519
306
308
} ,
307
309
{
308
310
accountName : 'Kusama' ,
@@ -312,7 +314,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
312
314
network : 'kusama' ,
313
315
slug : ChainInfoMap . kusama . slug ,
314
316
slip44 : 434 ,
315
- ss58_addr_type : 2
317
+ ss58_addr_type : 2 ,
318
+ scheme : LEDGER_SCHEME . ED25519
316
319
} ,
317
320
{
318
321
accountName : 'Acala' ,
@@ -322,7 +325,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
322
325
network : 'acala' ,
323
326
slug : ChainInfoMap . acala . slug ,
324
327
slip44 : 787 ,
325
- ss58_addr_type : 10
328
+ ss58_addr_type : 10 ,
329
+ scheme : LEDGER_SCHEME . ED25519
326
330
} ,
327
331
{
328
332
accountName : 'Aleph Zero' ,
@@ -332,7 +336,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
332
336
network : 'aleph-node' ,
333
337
slug : ChainInfoMap . aleph . slug ,
334
338
slip44 : 643 ,
335
- ss58_addr_type : 42
339
+ ss58_addr_type : 42 ,
340
+ scheme : LEDGER_SCHEME . ED25519
336
341
} ,
337
342
{
338
343
accountName : 'Ajuna' ,
@@ -343,7 +348,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
343
348
slug : ChainInfoMap . ajunaPolkadot . slug ,
344
349
slip44 : 354 ,
345
350
ss58_addr_type : 1328 ,
346
- isHide : true
351
+ isHide : true ,
352
+ scheme : LEDGER_SCHEME . ED25519
347
353
} ,
348
354
{
349
355
accountName : 'Bifrost' ,
@@ -353,7 +359,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
353
359
network : 'ajuna' ,
354
360
slug : ChainInfoMap . bifrost_dot . slug ,
355
361
slip44 : 788 ,
356
- ss58_addr_type : 6
362
+ ss58_addr_type : 6 ,
363
+ scheme : LEDGER_SCHEME . ED25519
357
364
} ,
358
365
{
359
366
accountName : 'Astar' ,
@@ -363,7 +370,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
363
370
network : 'astar' ,
364
371
slug : ChainInfoMap . astar . slug ,
365
372
slip44 : 810 ,
366
- ss58_addr_type : 5
373
+ ss58_addr_type : 5 ,
374
+ scheme : LEDGER_SCHEME . ED25519
367
375
} ,
368
376
{
369
377
accountName : 'Karura' ,
@@ -373,7 +381,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
373
381
network : 'karura' ,
374
382
slug : ChainInfoMap . karura . slug ,
375
383
slip44 : 686 ,
376
- ss58_addr_type : 8
384
+ ss58_addr_type : 8 ,
385
+ scheme : LEDGER_SCHEME . ED25519
377
386
} ,
378
387
{
379
388
accountName : 'Edgeware' ,
@@ -383,7 +392,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
383
392
network : 'edgeware' ,
384
393
slug : ChainInfoMap . edgeware . slug ,
385
394
slip44 : 523 ,
386
- ss58_addr_type : 7
395
+ ss58_addr_type : 7 ,
396
+ scheme : LEDGER_SCHEME . ED25519
387
397
} ,
388
398
{
389
399
accountName : 'XX Network' ,
@@ -393,7 +403,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
393
403
network : 'xxnetwork' ,
394
404
slug : ChainInfoMap . xx_network . slug ,
395
405
slip44 : 1955 ,
396
- ss58_addr_type : 55
406
+ ss58_addr_type : 55 ,
407
+ scheme : LEDGER_SCHEME . ED25519
397
408
} ,
398
409
{
399
410
accountName : 'Polymesh' ,
@@ -403,7 +414,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
403
414
network : 'polymesh' ,
404
415
slug : ChainInfoMap . polymesh . slug ,
405
416
slip44 : 595 ,
406
- ss58_addr_type : 12
417
+ ss58_addr_type : 12 ,
418
+ scheme : LEDGER_SCHEME . ED25519
407
419
} ,
408
420
{
409
421
accountName : 'Polkadex' ,
@@ -413,7 +425,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
413
425
network : 'polkadex' ,
414
426
slug : ChainInfoMap . polkadex . slug ,
415
427
slip44 : 799 ,
416
- ss58_addr_type : 88
428
+ ss58_addr_type : 88 ,
429
+ scheme : LEDGER_SCHEME . ED25519
417
430
} ,
418
431
{
419
432
accountName : 'Centrifuge' ,
@@ -423,7 +436,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
423
436
network : 'centrifuge' ,
424
437
slug : ChainInfoMap . centrifuge . slug ,
425
438
slip44 : 747 ,
426
- ss58_addr_type : 36
439
+ ss58_addr_type : 36 ,
440
+ scheme : LEDGER_SCHEME . ED25519
427
441
} ,
428
442
{
429
443
accountName : 'Darwinia' ,
@@ -434,7 +448,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
434
448
slug : ChainInfoMap . darwinia2 . slug ,
435
449
slip44 : 354 ,
436
450
ss58_addr_type : 18 ,
437
- isHide : true
451
+ isHide : true ,
452
+ scheme : LEDGER_SCHEME . ED25519
438
453
} ,
439
454
{
440
455
accountName : 'Hydration' ,
@@ -445,7 +460,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
445
460
slug : ChainInfoMap . hydradx_main . slug ,
446
461
slip44 : 354 ,
447
462
ss58_addr_type : 63 ,
448
- isHide : true
463
+ isHide : true ,
464
+ scheme : LEDGER_SCHEME . ED25519
449
465
} ,
450
466
{
451
467
accountName : 'Khala' ,
@@ -455,7 +471,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
455
471
network : 'khala' ,
456
472
slug : ChainInfoMap . khala . slug ,
457
473
slip44 : 434 ,
458
- ss58_addr_type : 30
474
+ ss58_addr_type : 30 ,
475
+ scheme : LEDGER_SCHEME . ED25519
459
476
} ,
460
477
{
461
478
accountName : 'Nodle' ,
@@ -465,7 +482,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
465
482
network : 'nodle' ,
466
483
slug : ChainInfoMap . nodle . slug ,
467
484
slip44 : 1003 ,
468
- ss58_addr_type : 37
485
+ ss58_addr_type : 37 ,
486
+ scheme : LEDGER_SCHEME . ED25519
469
487
} ,
470
488
{
471
489
accountName : 'Parallel' ,
@@ -476,7 +494,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
476
494
slug : ChainInfoMap . parallel . slug ,
477
495
slip44 : 354 ,
478
496
ss58_addr_type : 172 ,
479
- isHide : true
497
+ isHide : true ,
498
+ scheme : LEDGER_SCHEME . ED25519
480
499
} ,
481
500
{
482
501
accountName : 'Phala' ,
@@ -487,7 +506,8 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
487
506
slug : ChainInfoMap . phala . slug ,
488
507
slip44 : 354 ,
489
508
ss58_addr_type : 30 ,
490
- isHide : true
509
+ isHide : true ,
510
+ scheme : LEDGER_SCHEME . ED25519
491
511
} ,
492
512
{
493
513
accountName : 'Pendulum' ,
@@ -498,7 +518,20 @@ export const PredefinedMigrationLedgerNetwork: MigrationLedgerNetwork[] = [
498
518
slug : ChainInfoMap . pendulum . slug ,
499
519
slip44 : 354 ,
500
520
ss58_addr_type : 56 ,
501
- isHide : true
521
+ isHide : true ,
522
+ scheme : LEDGER_SCHEME . ED25519
523
+ } ,
524
+
525
+ {
526
+ accountName : 'Mythos' ,
527
+ appName : 'mythos' ,
528
+ networkName : 'Mythos network' ,
529
+ genesisHash : ChainInfoMap . mythos . substrateInfo ?. genesisHash || '0xf6ee56e9c5277df5b4ce6ae9983ee88f3cbed27d31beeb98f9f84f997a1ab0b9' ,
530
+ network : 'mythos' ,
531
+ slug : ChainInfoMap . mythos . slug ,
532
+ slip44 : 60 ,
533
+ ss58_addr_type : 42 ,
534
+ scheme : LEDGER_SCHEME . ECDSA
502
535
}
503
536
// {
504
537
// accountName: 'Unique',
0 commit comments