Skip to content

Commit

Permalink
Merge pull request #93 from Cerebellum-Network/release/0.25.0
Browse files Browse the repository at this point in the history
Release 0.25.0
  • Loading branch information
shamilkhan authored Sep 19, 2023
2 parents ed72d21 + b1d16b6 commit a8e4cd8
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"url": "https://github.com/polkadot-js/apps.git"
},
"sideEffects": false,
"version": "0.24.0",
"version": "0.25.0",
"workspaces": [
"packages/*"
],
Expand Down
22 changes: 22 additions & 0 deletions packages/apps-config/src/links/cerestats.ts
Original file line number Diff line number Diff line change
@@ -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'
};
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 @@ -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';
Expand All @@ -19,6 +20,7 @@ import Subsquare from './subsquare';

export const externalLinks: Record<string, ExternalDef> = {
Commonwealth,
CereStats,
DotScanner,
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.
4 changes: 3 additions & 1 deletion packages/apps-config/src/ui/logos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -974,6 +975,7 @@ export const extensionLogos: Record<string, unknown> = {

// external logos, i.e. for explorers
export const externalLogos: Record<string, unknown> = {
cerestats: externalCereStats,
commonwealth: externalCommonwealth,
dotreasury: externalDotreasury,
dotscanner: externalDotScanner,
Expand All @@ -999,4 +1001,4 @@ export const emptyLogos: Record<string, unknown> = {
Object.values(imageSet).forEach((src): void => {
new Image().src = src as string;
});
});
});

0 comments on commit a8e4cd8

Please sign in to comment.