Update Zeitgeist values (#5648)

* Update Zeitgeist values

* Lint

* Update text values
This commit is contained in:
Caio 2021-06-22 11:30:23 -03:00 committed by GitHub
parent 47b8abe3b1
commit 9c4bc85e4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 10 deletions

View File

@ -8,7 +8,7 @@ import { createCustom, createDev, createOwn } from './development';
import { createProduction } from './production';
import { createProductionRelays } from './productionRelays';
import { createTesting } from './testing';
import { createTestingRelays } from './testingRelays';
import { createRococoRelays, createWestendRelays } from './testingRelays';
export { CUSTOM_ENDPOINT_KEY } from './development';
@ -31,12 +31,21 @@ export function createWsEndpoints (t: TFunction, firstOnly?: boolean): LinkOptio
textBy: '',
value: ''
},
...createTestingRelays(t, firstOnly),
...createRococoRelays(t, firstOnly),
{
isDisabled: false,
isHeader: true,
isSpaced: true,
text: t('rpc.header.live', 'Live networks', { ns: 'apps-config' }),
text: t('rpc.header.rococo.relay', 'Rococo test & parachains', { ns: 'apps-config' }),
textBy: '',
value: ''
},
...createWestendRelays(t, firstOnly),
{
isDisabled: false,
isHeader: true,
isSpaced: true,
text: t('rpc.header.westend.relay', 'Westend test & parachains', { ns: 'apps-config' }),
textBy: '',
value: ''
},

View File

@ -429,8 +429,7 @@ export function createRococo (t: TFunction): EndpointOption {
},
{
info: 'rococoZeitgeist',
isDisabled: true, // Rococo reset
paraId: 9123,
paraId: 2040,
text: t('rpc.rococo.zeitgeist', 'Zeitgeist PC', { ns: 'apps-config' }),
providers: {
Zeitgeist: 'wss://roc.zeitgeist.pm'

View File

@ -8,9 +8,10 @@ import { createRococo } from './testingRelayRococo';
import { createWestend } from './testingRelayWestend';
import { expandEndpoints } from './util';
export function createTestingRelays (t: TFunction, firstOnly?: boolean): LinkOption[] {
return expandEndpoints(t, [
createRococo(t),
createWestend(t)
], firstOnly);
export function createRococoRelays (t: TFunction, firstOnly?: boolean): LinkOption[] {
return expandEndpoints(t, [createRococo(t)], firstOnly);
}
export function createWestendRelays (t: TFunction, firstOnly?: boolean): LinkOption[] {
return expandEndpoints(t, [createWestend(t)], firstOnly);
}