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