Bump deps (#33)

* Bump deps

* Bump deps, enable Alexander (testing)
This commit is contained in:
Jaco Greeff
2018-12-21 16:31:25 +01:00
committed by GitHub
parent 0f02e4ea0b
commit 08b0a02183
5 changed files with 33 additions and 29 deletions
+7 -1
View File
@@ -22,12 +22,18 @@ const CHAINS: ChainsInfo = [
networkId: 68,
tokenDecimals: 15,
tokenSymbol: 'CHR'
},
{
name: 'Alexander',
networkId: 3,
tokenDecimals: 15,
tokenSymbol: 'DOT'
}
];
const ENDPOINTS: Options = [
{ text: 'Alexander (Polkadot, hosted by Parity)', value: 'wss://poc3-rpc.polkadot.io/' },
{ text: 'Charred Cherry (Substrate, hosted by Parity)', value: 'wss://substrate-rpc.parity.io/' },
{ disabled: true, text: 'Alexander (Polkadot, hosted by Parity)', value: 'wss://polkadot-rpc.polkadot.io/' },
{ text: 'Local Node (127.0.0.1:9944)', value: 'ws://127.0.0.1:9944/' }
];
+1 -3
View File
@@ -16,9 +16,7 @@ class Settings implements SettingsStruct {
constructor () {
const settings = store.get('settings') || {};
// FIXME Here we have the defaults for Charred Cherry, swap to Polkadot as soon as poc-3 is there
// FIXME WS_URL first, then substrate-rpc
this._apiUrl = settings.apiUrl || ENDPOINTS[0].value || process.env.WS_URL;
this._apiUrl = settings.apiUrl || process.env.WS_URL || ENDPOINTS[0].value;
this._i18nLang = settings.i18nLang || LANGUAGES[0].value;
this._uiMode = settings.uiMode || process.env.UI_MODE || UIMODES[0].value;
this._uiTheme = settings.uiTheme || process.env.UI_THEME || UITHEMES[0].value;