Add CereStats as an externalLink for Cere Mainnet. (#9887)

This commit is contained in:
Shamilkhan 2023-09-21 08:13:34 +04:00 committed by GitHub
parent 87b483c11f
commit 6f72cd7575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,25 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { BN } from '@polkadot/util';
import type { ExternalDef } from './types.js';
import { externalCerestatsPNG } from '../ui/logos/external/index.js';
export const CereStats: ExternalDef = {
chains: {
'Cere Mainnet Beta': 'cere'
},
create: (_: string, path: string, data: BN | number | string): string =>
`https://stats.cere.network/${path}/${data.toString()}`,
homepage: 'https://stats.cere.network',
isActive: true,
paths: {
address: 'account',
block: 'block',
validator: 'validator'
},
ui: {
logo: externalCerestatsPNG
}
};

View File

@ -3,6 +3,7 @@
import type { ExternalDef } from './types.js';
import { CereStats } from './cerestats.js';
import { Commonwealth } from './commonwealth.js';
import { Dotreasury } from './dotreasury.js';
import { KodaDot } from './kodadot.js';
@ -17,6 +18,7 @@ import { Subscan } from './subscan.js';
import { Subsquare } from './subsquare.js';
export const externalLinks: Record<string, ExternalDef> = {
CereStats,
Commonwealth,
Dotreasury,
KodaDot,

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@
// Do not edit. Auto-generated via node scripts/imgConvert.mjs
export { externalCerestatsPNG } from './generated/cerestatsPNG.js';
export { externalCommonwealthPNG } from './generated/commonwealthPNG.js';
export { externalDotreasurySVG } from './generated/dotreasurySVG.js';
export { externalDotscannerPNG } from './generated/dotscannerPNG.js';