Update statescan/subsquare external links (#11143)

* Update statescan external links

* Fix lint errors

* Update external links of subsquare
This commit is contained in:
Yongfeng LI 2024-12-17 10:12:16 +08:00 committed by GitHub
parent 488fa2417f
commit 70ee383e28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 8 deletions

View File

@ -11,19 +11,20 @@ export const Statescan: ExternalDef = {
Collectives: 'Collectives',
Crust: 'crust-parachain',
'Crust Shadow': 'shadow',
'InvArch Network': 'invarch',
Kusama: 'kusama',
'Kusama Asset Hub': 'statemine',
'Kusama Asset Hub': 'assethub-kusama',
'Kusama BridgeHub': 'bridgehub-kusama',
'Kusama People': 'people-kusama',
'Laos Network': 'laos',
Litentry: 'litentry',
Litmus: 'litmus',
Parallel: 'parallel',
'Parallel Heiko': 'heiko',
'Paseo Testnet': 'paseo',
Polkadot: 'polkadot',
'Polkadot Asset Hub': 'statemint',
'Polkadot Asset Hub': 'assethub-polkadot',
'Polkadot BridgeHub': 'bridgehub-polkadot',
'Tangle Mainnet': 'tangle',
'Tangle Testnet': 'tangle-testnet',
'Westend Collectives': 'westend-collectives',
Westmint: 'westmint'
'Westend Asset Hub': 'assethub-westend'
},
create: (chain: string, path: string, data: BN | number | string): string =>
`https://${chain}.statescan.io/#/${path}/${data.toString()}`,

View File

@ -9,7 +9,9 @@ import { externalSubsquareSVG } from '../ui/logos/external/index.js';
export const Subsquare: ExternalDef = {
chains: {
Acala: 'acala',
'Ajuna Polkadot': 'ajuna',
Altair: 'altair',
Astar: 'astar',
Basilisk: 'basilisk',
Bifrost: 'bifrost-kusama',
'Bifrost Polkadot': 'bifrost-polkadot',
@ -22,9 +24,9 @@ export const Subsquare: ExternalDef = {
Khala: 'khala',
Kusama: 'kusama',
Litentry: 'litentry',
'Paseo Testnet': 'paseo',
Phala: 'phala',
Polkadot: 'polkadot',
Rococo: 'rococo',
'Shibuya Testnet': 'shibuya',
'Vara Network': 'vara',
Westend: 'westend',