Skip to content

Commit

Permalink
Add CereStats as an externalLink for Cere Mainnet.
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilkhan committed Sep 19, 2023
1 parent 6a94825 commit 0de0ac1
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/apps-config/src/links/cerestats.ts
Original file line number Diff line number Diff line change
@@ -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()}`,
isActive: true,
homepage: 'https://stats.cere.network',
paths: {
address: 'account',
block: 'block',
validator: 'validator'
},
ui: {
logo: externalCerestatsPNG
},
};
2 changes: 2 additions & 0 deletions packages/apps-config/src/links/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -17,6 +18,7 @@ import { Subscan } from './subscan.js';
import { Subsquare } from './subsquare.js';

export const externalLinks: Record<string, ExternalDef> = {
CereStats,
Commonwealth,
Dotreasury,
KodaDot,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/apps-config/src/ui/logos/external/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 0de0ac1

Please sign in to comment.