Remove "pre" in polkascan URLs (#2831)

* Remove "pre" in polkascan URLs

* Update with new link locations

* Kusama -> #000
This commit is contained in:
Jaco Greeff 2020-05-27 12:07:07 +02:00 committed by GitHub
parent 9541d85e79
commit 3bb0561a72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 deletions

View File

@ -10,16 +10,17 @@ export default {
Kulupu: 'kulupu',
Kusama: 'kusama',
'Kusama CC3': 'kusama',
'Polkadot CC1': 'polkadot-cc1',
Westend: 'westend'
},
create: (chain: string, path: string, data: BN | number | string): string =>
`https://polkascan.io/pre/${chain}/${path}/${data.toString()}`,
`https://polkascan.io/${chain}/${path}/${data.toString()}`,
isActive: true,
paths: {
address: 'module/account',
block: 'system/block',
address: 'account',
block: 'block',
council: 'council/motion',
extrinsic: 'system/extrinsic',
extrinsic: 'transaction',
proposal: 'democracy/proposal',
referendum: 'democracy/referendum',
techcomm: 'techcomm/proposal',

View File

@ -7,7 +7,8 @@ import BN from 'bn.js';
export default {
chains: {
Kusama: 'kusama',
'Kusama CC3': 'kusama'
'Kusama CC3': 'kusama',
'Polkadot CC1': 'polkadot-cc1'
},
create: (chain: string, path: string, data: BN | number | string): string =>
`https://${chain}.subscan.io/${path}/${data.toString()}`,

View File

@ -7,7 +7,7 @@ const emptyColor = '#999';
const chainKulupu = '#003366';
const chainPolkadot = '#e6007a';
const chainKusama = '#d32e79';
const chainKusama = '#000'; // '#d32e79';
const chainWestend = '#da68a7';
const nodeCentrifuge = '#fcc367';