mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-07-24 06:35:42 +00:00
Add UNfrastructure for Alex (#153)
This commit is contained in:
@@ -8,8 +8,21 @@ import { Options } from './types';
|
|||||||
// tslint:disable-next-line
|
// tslint:disable-next-line
|
||||||
const isPolkadot = typeof window !== 'undefined' && window.location.host.indexOf('polkadot') !== -1;
|
const isPolkadot = typeof window !== 'undefined' && window.location.host.indexOf('polkadot') !== -1;
|
||||||
|
|
||||||
const WSS_POLKADOT = 'wss://poc3-rpc.polkadot.io/';
|
const WSS_NODES = {
|
||||||
const WSS_SUBSTRATE = 'wss://substrate-rpc.parity.io/';
|
parity: {
|
||||||
|
hosted: 'hosted by Parity',
|
||||||
|
nodes: {
|
||||||
|
alex: 'wss://poc3-rpc.polkadot.io/',
|
||||||
|
elm: 'wss://substrate-rpc.parity.io/'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unfra: {
|
||||||
|
hosted: 'hosted by UNfrastructure',
|
||||||
|
nodes: {
|
||||||
|
alex: 'wss://alex.unfrastructure.io/public/ws'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
const LANGUAGE_DEFAULT = 'default';
|
const LANGUAGE_DEFAULT = 'default';
|
||||||
const LOCKING_DEFAULT = 'session';
|
const LOCKING_DEFAULT = 'session';
|
||||||
|
|
||||||
@@ -19,8 +32,9 @@ const CRYPTOS: Options = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const ENDPOINTS: Options = [
|
const ENDPOINTS: Options = [
|
||||||
{ text: 'Alexander (Polkadot, hosted by Parity)', value: WSS_POLKADOT },
|
{ text: `Alexander (Polkadot, ${WSS_NODES.parity.hosted})`, value: WSS_NODES.parity.nodes.alex },
|
||||||
{ text: 'Emberic Elm (Substrate, hosted by Parity)', value: WSS_SUBSTRATE },
|
{ text: `Alexander (Polkadot, ${WSS_NODES.unfra.hosted})`, value: WSS_NODES.unfra.nodes.alex },
|
||||||
|
{ text: `Emberic Elm (Substrate, ${WSS_NODES.parity.hosted})`, value: WSS_NODES.parity.nodes.elm },
|
||||||
{ text: 'Local Node (127.0.0.1:9944)', value: 'ws://127.0.0.1:9944/' }
|
{ text: 'Local Node (127.0.0.1:9944)', value: 'ws://127.0.0.1:9944/' }
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -44,8 +58,8 @@ const UITHEMES: Options = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const ENDPOINT_DEFAULT = isPolkadot
|
const ENDPOINT_DEFAULT = isPolkadot
|
||||||
? WSS_POLKADOT
|
? WSS_NODES.parity.nodes.alex
|
||||||
: WSS_SUBSTRATE;
|
: WSS_NODES.parity.nodes.elm;
|
||||||
|
|
||||||
const UITHEME_DEFAULT = isPolkadot
|
const UITHEME_DEFAULT = isPolkadot
|
||||||
? 'polkadot'
|
? 'polkadot'
|
||||||
|
|||||||
Reference in New Issue
Block a user