Skip to content

Commit

Permalink
Adjust RPC translation keys (polkadot-js#5294)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored May 15, 2021
1 parent 8115408 commit 2c5b137
Show file tree
Hide file tree
Showing 29 changed files with 172 additions and 457 deletions.
8 changes: 4 additions & 4 deletions packages/apps-config/src/endpoints/development.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ export function createCustom (t: TFunction): LinkOption[] {
? [
{
isHeader: true,
text: t('rpc.custom', 'Custom environment', { ns: 'apps-config' }),
text: t('rpc.dev.custom', 'Custom environment', { ns: 'apps-config' }),
textBy: '',
value: ''
},
{
info: 'WS_URL',
text: t('rpc.custom.entry', 'Custom {{WS_URL}}', { ns: 'apps-config', replace: { WS_URL } }),
text: t('rpc.dev.custom.entry', 'Custom {{WS_URL}}', { ns: 'apps-config', replace: { WS_URL } }),
textBy: WS_URL,
value: WS_URL
}
Expand All @@ -47,7 +47,7 @@ export function createOwn (t: TFunction): LinkOption[] {

return items.map((textBy) => ({
info: 'local',
text: t('rpc.custom.own', 'Custom', { ns: 'apps-config' }),
text: t('rpc.dev.custom.own', 'Custom', { ns: 'apps-config' }),
textBy,
value: textBy
}));
Expand All @@ -64,7 +64,7 @@ export function createDev (t: TFunction): LinkOption[] {
{
dnslink: 'local',
info: 'local',
text: t('rpc.local', 'Local Node', { ns: 'apps-config' }),
text: t('rpc.dev.local', 'Local Node', { ns: 'apps-config' }),
textBy: '127.0.0.1:9944',
value: 'ws://127.0.0.1:9944'
}
Expand Down
38 changes: 19 additions & 19 deletions packages/apps-config/src/endpoints/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,37 @@ export function createProduction (t: TFunction): LinkOption[] {
{
dnslink: 'centrifuge',
info: 'centrifuge',
text: t('rpc.centrifuge', 'Centrifuge', { ns: 'apps-config' }),
text: t('rpc.prod.centrifuge', 'Centrifuge', { ns: 'apps-config' }),
providers: {
Centrifuge: 'wss://fullnode.centrifuge.io'
}
},
{
info: 'crab',
text: t('rpc.crab', 'Darwinia Crab', { ns: 'apps-config' }),
text: t('rpc.prod.crab', 'Darwinia Crab', { ns: 'apps-config' }),
providers: {
'Darwinia Network': 'wss://crab-rpc.darwinia.network'
}
},
{
info: 'chainx',
text: t('rpc.chainx', 'ChainX', { ns: 'apps-config' }),
text: t('rpc.prod.chainx', 'ChainX', { ns: 'apps-config' }),
providers: {
ChainX: 'wss://mainnet.chainx.org/ws',
'Patract Elara': 'wss://chainx.elara.patract.io'
}
},
{
info: 'darwinia',
text: t('rpc.darwinia', 'Darwinia', { ns: 'apps-config' }),
text: t('rpc.prod.darwinia', 'Darwinia', { ns: 'apps-config' }),
providers: {
'Darwinia Network': 'wss://rpc.darwinia.network',
'Patract Elara': 'wss://darwinia.elara.patract.io'
}
},
{
info: 'dock-mainnet',
text: t('rpc.dock-mainnet', 'Dock', { ns: 'apps-config' }),
text: t('rpc.prod.dock-mainnet', 'Dock', { ns: 'apps-config' }),
providers: {
'Dock Association': 'wss://mainnet-node.dock.io',
'Patract Elara': 'wss://dock.elara.patract.io'
Expand All @@ -59,7 +59,7 @@ export function createProduction (t: TFunction): LinkOption[] {
{
dnslink: 'edgeware',
info: 'edgeware',
text: t('rpc.edgeware', 'Edgeware', { ns: 'apps-config' }),
text: t('rpc.prod.edgeware', 'Edgeware', { ns: 'apps-config' }),
providers: {
'Commonwealth Labs': 'wss://mainnet1.edgewa.re',
'Patract Elara': 'wss://edgeware.elara.patract.io',
Expand All @@ -68,21 +68,21 @@ export function createProduction (t: TFunction): LinkOption[] {
},
{
info: 'equilibrium',
text: t('rpc.equilibrium', 'Equilibrium', { ns: 'apps-config' }),
text: t('rpc.prod.equilibrium', 'Equilibrium', { ns: 'apps-config' }),
providers: {
Equilibrium: 'wss://node.equilibrium.io'
}
},
{
info: 'hanonycash',
text: t('rpc.hanonycash', 'Hanonycash', { ns: 'apps-config' }),
text: t('rpc.prod.hanonycash', 'Hanonycash', { ns: 'apps-config' }),
providers: {
Hanonycash: 'wss://rpc.hanonycash.com'
}
},
{
info: 'snakenet',
text: t('rpc.hydra', 'HydraDX', { ns: 'apps-config' }),
text: t('rpc.prod.hydra', 'HydraDX', { ns: 'apps-config' }),
providers: {
HydraDX: 'wss://rpc-01.snakenet.hydradx.io',
'Galactic Council': 'wss://rpc-02.snakenet.hydradx.io',
Expand All @@ -92,76 +92,76 @@ export function createProduction (t: TFunction): LinkOption[] {
{
dnslink: 'kulupu',
info: 'kulupu',
text: t('rpc.kulupu', 'Kulupu', { ns: 'apps-config' }),
text: t('rpc.prod.kulupu', 'Kulupu', { ns: 'apps-config' }),
providers: {
Kulupu: 'wss://rpc.kulupu.corepaper.org/ws',
'Patract Elara': 'wss://kulupu.elara.patract.io'
}
},
{
info: 'neatcoin',
text: t('rpc.neatcoin', 'Neatcoin', { ns: 'apps-config' }),
text: t('rpc.prod.neatcoin', 'Neatcoin', { ns: 'apps-config' }),
providers: {
Neatcoin: 'wss://rpc.neatcoin.org/ws'
}
},
{
info: 'nodle',
text: t('rpc.nodle-main', 'Nodle', { ns: 'apps-config' }),
text: t('rpc.prod.nodle-main', 'Nodle', { ns: 'apps-config' }),
providers: {
Nodle: 'wss://main3.nodleprotocol.io',
'Patract Elara': 'wss://nodle.elara.patract.io'
}
},
{
info: 'plasm',
text: t('rpc.plasm', 'Plasm', { ns: 'apps-config' }),
text: t('rpc.prod.plasm', 'Plasm', { ns: 'apps-config' }),
providers: {
'Stake Technologies': 'wss://rpc.plasmnet.io/',
'Patract Elara': 'wss://plasm.elara.patract.io'
}
},
{
info: 'riochain',
text: t('rpc.riochain', 'RioChain', { ns: 'apps-config' }),
text: t('rpc.prod.riochain', 'RioChain', { ns: 'apps-config' }),
providers: {
RioChain: 'wss://node.v1.riochain.io'
}
},
{
info: 'sora-substrate',
text: t('rpc.sora-substrate', 'SORA', { ns: 'apps-config' }),
text: t('rpc.prod.sora-substrate', 'SORA', { ns: 'apps-config' }),
providers: {
Soramitsu: 'wss://ws.sora2.soramitsu.co.jp'
}
},
{
info: 'stafi',
isDisabled: true, // Cannot find type ChainId
text: t('rpc.stafi', 'Stafi', { ns: 'apps-config' }),
text: t('rpc.prod.stafi', 'Stafi', { ns: 'apps-config' }),
providers: {
'Stafi Foundation': 'wss://mainnet-rpc.stafi.io',
'Patract Elara': 'wss://stafi.elara.patract.io'
}
},
{
info: 'subsocial',
text: t('rpc.subsocial', 'Subsocial', { ns: 'apps-config' }),
text: t('rpc.prod.subsocial', 'Subsocial', { ns: 'apps-config' }),
providers: {
DappForce: 'wss://rpc.subsocial.network',
'Patract Elara': 'wss://subsocial.elara.patract.io'
}
},
{
info: 'uniarts',
text: t('rpc.uniarts', 'UniArts', { ns: 'apps-config' }),
text: t('rpc.prod.uniarts', 'UniArts', { ns: 'apps-config' }),
providers: {
UniArts: 'wss://mainnet.uniarts.vip:9443'
}
},
{
info: 'westlake',
text: t('rpc.westlake', 'Westlake', { ns: 'apps-config' }),
text: t('rpc.prod.westlake', 'Westlake', { ns: 'apps-config' }),
providers: {
DataHighway: 'wss://westlake.datahighway.com'
}
Expand Down
11 changes: 8 additions & 3 deletions packages/apps-config/src/endpoints/productionRelayKusama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ export function createKusama (t: TFunction): EndpointOption {
'Patract Elara': 'wss://kusama.elara.patract.io'
},
linked: [
// parachains with id, see Rococo
// alphabetical based on chain name
// (1) system parachains (none available yet)
// ...
// (2) common good, leave as second group (none available yet)
// ...
/// (3) parachains with id, see Rococo (info here maps to the actual "named icon")
//
// NOTE: Added alphabetical based on chain name
{
info: 'crust shadow',
paraId: 2012,
Expand All @@ -46,7 +51,7 @@ export function createKusama (t: TFunction): EndpointOption {
{
info: 'kilt',
paraId: 2005,
text: t('rpc.kilt', 'KILT Mainnet', { ns: 'apps-config' }),
text: t('rpc.kusama.kilt', 'KILT Mainnet', { ns: 'apps-config' }),
providers: {
'KILT Protocol': 'wss://mainnet.kilt.io/'
}
Expand Down
9 changes: 7 additions & 2 deletions packages/apps-config/src/endpoints/productionRelayPolkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ export function createPolkadot (t: TFunction): EndpointOption {
'Patract Elara': 'wss://polkadot.elara.patract.io'
},
linked: [
// parachains with id, see Rococo
// alphabetical based on chain name
// (1) system parachains (none available yet)
// ...
// (2) common good, leave as second group (none available yet)
// ...
/// (3) parachains with id, see Rococo (info here maps to the actual "named icon")
//
// NOTE: Added alphabetical based on chain name
]
};
}
Loading

0 comments on commit 2c5b137

Please sign in to comment.