forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathss58.ts
More file actions
71 lines (69 loc) · 2.02 KB
/
ss58.ts
File metadata and controls
71 lines (69 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { TFunction } from 'i18next';
import { Option } from './types';
// Definitions here are with the following values -
// info: the name of a logo as defined in ../logos, specifically in namedLogos
// text: The text you wish to display in the dropdown
// value: The actual ss5Format value (as registered)
export default function create (t: TFunction): Option[] {
return [
// base defaults
{
info: 'default',
text: t<string>('ss58.default', 'Default for the connected node', { ns: 'apps-config' }),
value: -1
},
{
info: 'polkadot',
text: t<string>('ss58.polkadot', 'Polkadot (live)', { ns: 'apps-config' }),
value: 0
},
{
info: 'kusama',
text: t<string>('ss58.kusama', 'Kusama (canary)', { ns: 'apps-config' }),
value: 2
},
{
info: 'substrate',
text: t<string>('ss58.substrate', 'Substrate (generic)', { ns: 'apps-config' }),
value: 42
},
// alphabetical extended chains
{
info: 'centrifuge',
text: t<string>('ss58.centrifuge', 'Centrifuge (live)', { ns: 'apps-config' }),
value: 36
},
{
info: 'edgeware',
text: t<string>('ss58.edgeware', 'Edgeware (live)', { ns: 'apps-config' }),
value: 7
},
{
info: 'plasm',
text: t<string>('ss58.plasm', 'Plasm (live)', { ns: 'apps-config' }),
value: 5
},
{
info: 'stafi',
text: t<string>('ss58.stafi', 'Stafi (live)', { ns: 'apps-config' }),
value: 20
},
{
info: 'dock-testnet',
text: t<string>('ss58.dock-testnet', 'Dock Testnet (test)', { ns: 'apps-config' }),
value: 21
},
{
info: 'dock-mainnet',
text: t<string>('ss58.dock-mainnet', 'Dock Mainnet (live)', { ns: 'apps-config' }),
value: 22
},
{
info: 'subsocial',
text: t<string>('ss58.subsocial', 'Subsocial (live)', { ns: 'apps-config' }),
value: 28
}
];
}