diff --git a/CHANGELOG.md b/CHANGELOG.md index a77dacae2036..0f365ee06342 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ ## vNext ... +## 0.25.0 +- Added CereStats links for users to view blocks, accounts, and validators. + ## 0.24.0 - Added Type Bundle for Cere Mainnet to be able to see all historical blocks diff --git a/package.json b/package.json index 54e216e50502..fd1a57687170 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "url": "https://github.com/polkadot-js/apps.git" }, "sideEffects": false, - "version": "0.24.0", + "version": "0.25.0", "workspaces": [ "packages/*" ], diff --git a/packages/apps-config/src/links/cerestats.ts b/packages/apps-config/src/links/cerestats.ts new file mode 100644 index 000000000000..7e4a3a62d49e --- /dev/null +++ b/packages/apps-config/src/links/cerestats.ts @@ -0,0 +1,22 @@ +// Copyright 2017-2023 @polkadot/apps-config authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import type { BN } from '@polkadot/util'; + +import { externalLogos } from '../ui/logos'; + +export default { + chains: { + 'Cere Mainnet Beta': 'cere', + }, + create: (chain: string, path: string, data: BN | number | string): string => + `https://stats.cere.network/${path}/${data.toString()}`, + isActive: true, + logo: externalLogos.cerestats as string, + paths: { + address: 'account', + block: 'block', + validator: 'validator' + }, + url: 'https://stats.cere.network' +}; diff --git a/packages/apps-config/src/links/index.ts b/packages/apps-config/src/links/index.ts index 30732bc0600d..0c102878c320 100644 --- a/packages/apps-config/src/links/index.ts +++ b/packages/apps-config/src/links/index.ts @@ -4,6 +4,7 @@ import type { ExternalDef } from './types'; import Commonwealth from './commonwealth'; +import CereStats from './cerestats'; import Dotreasury from './dotreasury'; import DotScanner from './dotscanner'; import KodaDot from './kodadot'; @@ -19,6 +20,7 @@ import Subsquare from './subsquare'; export const externalLinks: Record = { Commonwealth, + CereStats, DotScanner, Dotreasury, KodaDot, diff --git a/packages/apps-config/src/ui/logos/external/cerestats.png b/packages/apps-config/src/ui/logos/external/cerestats.png new file mode 100644 index 000000000000..cb4ba7018f1b Binary files /dev/null and b/packages/apps-config/src/ui/logos/external/cerestats.png differ diff --git a/packages/apps-config/src/ui/logos/index.ts b/packages/apps-config/src/ui/logos/index.ts index 6d80e7397a9b..668bb9e0781b 100644 --- a/packages/apps-config/src/ui/logos/index.ts +++ b/packages/apps-config/src/ui/logos/index.ts @@ -76,6 +76,7 @@ import chainWatr from './chains/watr.png'; import chainEggnet from './chains/webb.png'; import chainWestendColl from './chains/westend-collectives.png'; import extensionPolkadotJs from './extensions/polkadot-js.svg'; +import externalCereStats from './external/cerestats.png'; import externalCommonwealth from './external/commonwealth.png'; import externalDotreasury from './external/dotreasury.svg'; import externalDotScanner from './external/dotscanner.png'; @@ -974,6 +975,7 @@ export const extensionLogos: Record = { // external logos, i.e. for explorers export const externalLogos: Record = { + cerestats: externalCereStats, commonwealth: externalCommonwealth, dotreasury: externalDotreasury, dotscanner: externalDotScanner, @@ -999,4 +1001,4 @@ export const emptyLogos: Record = { Object.values(imageSet).forEach((src): void => { new Image().src = src as string; }); -}); \ No newline at end of file +});