Add prefixes to settings (#158)

This commit is contained in:
Jaco Greeff
2019-07-16 21:16:08 +02:00
committed by GitHub
parent 467c97eef8
commit 0cf92844f5
7 changed files with 51 additions and 29 deletions
+11
View File
@@ -47,6 +47,13 @@ const LOCKING: Options = [
{ text: 'On each transaction', value: 'tx' }
];
const PREFIXES: Options = [
{ text: 'Default for the connected node', value: -1 },
{ text: 'Substrate (development)', value: 42 },
{ text: 'Kusama (canary)', value: 2 },
{ text: 'Polkadot (live)', value: 0 }
];
const UIMODES: Options = [
{ value: 'full', text: 'Fully featured' },
{ value: 'light', text: 'Basic features only' }
@@ -61,6 +68,8 @@ const ENDPOINT_DEFAULT = isPolkadot
? WSS_NODES.parity.nodes.alex
: WSS_NODES.parity.nodes.elm;
const PREFIX_DEFAULT = -1;
const UITHEME_DEFAULT = isPolkadot
? 'polkadot'
: 'substrate';
@@ -78,6 +87,8 @@ export {
LANGUAGES,
LOCKING_DEFAULT,
LOCKING,
PREFIX_DEFAULT,
PREFIXES,
UIMODE_DEFAULT,
UIMODES,
UITHEME_DEFAULT,