mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-18 00:11:03 +00:00
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user