Dried Danta (#82)

* Dried Danta

* Remove (now-unused) chain config
This commit is contained in:
Jaco Greeff
2019-02-20 14:55:01 +01:00
committed by GitHub
parent df343123eb
commit f61f41be24
11 changed files with 46 additions and 77 deletions
+2 -30
View File
@@ -2,38 +2,11 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { ChainsInfo, Options } from './types';
const CHAINS: ChainsInfo = [
{
name: 'Development',
networkId: 42,
tokenDecimals: 0,
tokenSymbol: 'Unit'
},
{
name: 'Local Testnet',
networkId: 42,
tokenDecimals: 0,
tokenSymbol: 'Unit'
},
{
name: 'Charred Cherry',
networkId: 42,
tokenDecimals: 15,
tokenSymbol: 'CHR'
},
{
name: 'Alexander',
networkId: 42,
tokenDecimals: 15,
tokenSymbol: 'DOT'
}
];
import { Options } from './types';
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/' },
{ text: 'Dried Danta (Substrate, hosted by Parity)', value: 'wss://substrate-rpc.parity.io/' },
{ text: 'Local Node (127.0.0.1:9944)', value: 'ws://127.0.0.1:9944/' }
];
@@ -52,7 +25,6 @@ const UITHEMES: Options = [
];
export {
CHAINS,
ENDPOINTS,
LANGUAGES,
UIMODES,
+2 -6
View File
@@ -4,8 +4,8 @@
import store from 'store';
import { CHAINS, ENDPOINTS, LANGUAGES, UIMODES, UITHEMES } from './defaults';
import { ChainsInfo, Options, SettingsStruct } from './types';
import { ENDPOINTS, LANGUAGES, UIMODES, UITHEMES } from './defaults';
import { Options, SettingsStruct } from './types';
class Settings implements SettingsStruct {
private _apiUrl: string;
@@ -38,10 +38,6 @@ class Settings implements SettingsStruct {
return this._uiTheme;
}
get availableChains (): ChainsInfo {
return CHAINS;
}
get availableNodes (): Options {
return ENDPOINTS;
}
-7
View File
@@ -2,13 +2,6 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
export type ChainsInfo = Array<{
name: string,
networkId: number,
tokenDecimals: number,
tokenSymbol: string
}>;
export type Options = Array<{
disabled?: boolean,
text: string,