-
Notifications
You must be signed in to change notification settings - Fork 0
Proposed changes for DataHighway integration with Polkadot.js Apps #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0638c7a
a8a4d8f
743c57c
fa2d228
bb0ecc2
ce1116d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,20 +76,12 @@ export function createTesting (t: TFunction, firstOnly?: boolean): LinkOption[] | |
| } | ||
| }, | ||
| { | ||
| info: 'datahighway-harbour', | ||
| text: t('rpc.test.datahighway-harbour', 'DataHighway Harbour', { ns: 'apps-config' }), | ||
| info: 'datahighway-harbour-chain-testnet', | ||
| text: t('rpc.test.datahighway.harbour', 'DataHighway Harbour', { ns: 'apps-config' }), | ||
| providers: { | ||
| DataHighway: 'wss://testnet-harbour.datahighway.com' | ||
| } | ||
| }, | ||
| { | ||
| info: 'datahighway', | ||
| isDisabled: true, | ||
| text: t('rpc.test.datahighway.spreehafen', 'Spreehafen', { ns: 'apps-config' }), | ||
| providers: { | ||
| MXC: 'wss://spreehafen.datahighway.com' | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need to find out the relevance of this being |
||
| } | ||
| }, | ||
| { | ||
| info: 'dock-testnet', | ||
| isDisabled: false, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,7 +40,7 @@ import nodeClover from './nodes/clover.svg'; | |
| import nodeCrab from './nodes/crab.svg'; | ||
| import nodeCrust from './nodes/crust.svg'; | ||
| import nodeDarwinia from './nodes/darwinia.png'; | ||
| import nodeDataHighway from './nodes/datahighway.png'; | ||
| import nodeDataHighwayDefault from './nodes/datahighway-default-logo.png'; | ||
| import nodeDockMainnet from './nodes/dock-mainnet.png'; | ||
| import nodeDockTestnet from './nodes/dock-testnet.png'; | ||
| import nodeDotMog from './nodes/dotmog.svg'; | ||
|
|
@@ -107,7 +107,6 @@ import nodeUnique from './nodes/unique.svg'; | |
| import nodeUnitv from './nodes/unitv.png'; | ||
| import nodeVln from './nodes/valiu.png'; | ||
| import nodeWeb3games from './nodes/web3games.svg'; | ||
| import nodeWestlake from './nodes/westlake.png'; | ||
| import nodeWhala from './nodes/whala.svg'; | ||
| import nodeZeitgeist from './nodes/zeitgeist.png'; | ||
| import nodeZenlink from './nodes/zenlink.svg'; | ||
|
|
@@ -126,8 +125,12 @@ export const chainLogos: Record<string, unknown> = [ | |
| ['darwinia crab', nodeCrab], | ||
| ['Darwinia Crab PC2', nodeCrab], | ||
| ['Darwinia PC2', nodeDarwinia], | ||
| ['DataHighway', nodeDataHighway], | ||
| ['DataHighway Harbour', nodeWestlake], | ||
| // https://github.com/DataHighway-DHX/node/blob/master/node/src/chain_spec.rs#L478 | ||
| ['DataHighway Harbour Testnet', nodeDataHighwayDefault], | ||
| // https://github.com/DataHighway-DHX/node/blob/master/node/src/chain_spec.rs#L807 | ||
| ['DataHighway Westlake Mainnet', nodeDataHighwayDefault], | ||
| // https://github.com/DataHighway-DHX/node/blob/ilya/parachain/node/src/chain_spec.rs#L239 | ||
| ['DataHighway Spreehafen Parachain Collator Testnet', nodeDataHighwayDefault], | ||
| ['Dusty', chainDusty], | ||
| ['EquilibriumTestnet', chainGenshiro], | ||
| ['Equilibrium', chainEquilibrium], | ||
|
|
@@ -205,7 +208,6 @@ export const chainLogos: Record<string, unknown> = [ | |
| ['VLN PC', nodeVln], | ||
| ['Vln', nodeVln], | ||
| ['Web3games', nodeWeb3games], | ||
| ['Westlake', nodeWestlake], | ||
| ['Westmint', nodeStatemine], | ||
| ['Westmint Test', nodeStatemine] | ||
| ].reduce((logos, [chain, logo]): Record<string, unknown> => ({ | ||
|
|
@@ -239,10 +241,13 @@ export const nodeLogos: Record<string, unknown> = [ | |
| ['darwinia', nodeDarwinia], | ||
| ['darwinia parachain', nodeDarwinia], | ||
| ['Darwinia Runtime Module Library', nodeDarwinia], | ||
| ['DataHighway', nodeDataHighway], | ||
| ['DataHighwayChain', nodeWestlake], | ||
| ['DataHighway Node', nodeDataHighway], | ||
| ['DataHighway Parachain Collator', nodeDataHighway], | ||
| ['DataHighway', nodeDataHighwayDefault], // TODO - deprecated? | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should remove all lines that i've labelled |
||
| // https://github.com/DataHighway-DHX/node/blob/master/node/src/command.rs#L43 | ||
| ['DataHighwayChain', nodeDataHighwayDefault], // Harbour + Westlake | ||
| // https://github.com/DataHighway-DHX/node/blob/ilya/parachain/node/src/command.rs#L53 | ||
| ['DataHighway Collator', nodeDataHighwayDefault], // Spreehafen | ||
| ['DataHighway Node', nodeDataHighwayDefault], // TODO - deprecated? | ||
| ['DataHighway Parachain Collator', nodeDataHighwayDefault], // TODO - deprecated? | ||
| ['Dock Full Node', nodeDockMainnet], | ||
| ['DOTMog Node', nodeDotMog], | ||
| ['Eave Node', nodeEave], | ||
|
|
@@ -328,7 +333,7 @@ export const nodeLogos: Record<string, unknown> = [ | |
| ['Vln', nodeVln], | ||
| ['VLN PC', nodeVln], | ||
| ['Web3games', nodeWeb3games], | ||
| ['Westlake', nodeWestlake], | ||
| ['Westlake', nodeDataHighwayDefault], | ||
| ['Westmint Collator', nodeStatemine], | ||
| ['Whala', nodeWhala], | ||
| ['Whala Node', nodeWhala], | ||
|
|
@@ -343,6 +348,7 @@ export const nodeLogos: Record<string, unknown> = [ | |
|
|
||
| // Alphabetical overrides based on the actual specName | ||
| export const specLogos: Record<string, unknown> = [ | ||
| ['datahighway', nodeStatemine], | ||
| ['shell', nodeShell], | ||
| ['statemine', nodeStatemine], | ||
| ['statemint', nodeStatemine], | ||
|
|
@@ -370,8 +376,8 @@ export const namedLogos: Record<string, unknown> = { | |
| crab_redirect: nodeCrab, | ||
| crust: nodeCrust, | ||
| darwinia: nodeDarwinia, | ||
| datahighway: nodeDataHighway, | ||
| 'datahighway-harbour': nodeWestlake, | ||
| 'datahighway-harbour-chain-testnet': nodeDataHighwayDefault, | ||
| 'datahighway-westlake-chain-mainnet': nodeDataHighwayDefault, | ||
| 'dock-mainnet': nodeDockMainnet, | ||
| 'dock-testnet': nodeDockTestnet, | ||
| dotmog: nodeDotMog, | ||
|
|
@@ -437,7 +443,7 @@ export const namedLogos: Record<string, unknown> = { | |
| rococoCrab: nodeCrab, | ||
| rococoCrust: nodeCrust, | ||
| rococoDarwinia: nodeDarwinia, | ||
| rococoDataHighway: nodeDataHighway, | ||
| rococoDataHighway: nodeDataHighwayDefault, | ||
| rococoEave: nodeEave, | ||
| rococoEncointer: nodeEncointerNotee, | ||
| rococoGalital: nodeGalital, | ||
|
|
@@ -492,7 +498,6 @@ export const namedLogos: Record<string, unknown> = { | |
| vln: nodeVln, | ||
| web3games: nodeWeb3games, | ||
| westend: nodePolkadot, | ||
| westlake: nodeWestlake, | ||
| westmint: nodeStatemine, | ||
| whala: nodeWhala, | ||
| zeitgeist: nodeZeitgeist, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from a maintenance perspective, it might be easier if this was named
datahighway-harbourinstead ofdatahighway.harboursince find/replace would be quicker. what do you think?(same applies to
datahighway.spreehafenanddatahighway.westlake)