From 472713beab779759c26bc950a92763522f01c7e9 Mon Sep 17 00:00:00 2001 From: shamilkhan Date: Mon, 18 Sep 2023 15:39:08 +0400 Subject: [PATCH 1/2] Add CereStats as an externalLink to view blocks, accounts, and validators. --- CHANGELOG.md | 2 +- packages/apps-config/src/links/cerestats.ts | 22 ++++++++++++++++++ packages/apps-config/src/links/index.ts | 2 ++ .../src/ui/logos/external/cerestats.png | Bin 0 -> 8199 bytes packages/apps-config/src/ui/logos/index.ts | 4 +++- 5 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 packages/apps-config/src/links/cerestats.ts create mode 100644 packages/apps-config/src/ui/logos/external/cerestats.png diff --git a/CHANGELOG.md b/CHANGELOG.md index a77dacae2036..3ad8ce76c6ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # CHANGELOG ## vNext -... +- 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/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 0000000000000000000000000000000000000000..cb4ba7018f1b6f187b0f18a964c3b71e37199b03 GIT binary patch literal 8199 zcmaKR1yCH%w)gBV?k>R=NU-3}0zrdoum}!|1!o~Ri-+LB2_77R6CecG-~obL&?OT08oZpe|n(jG$CQ3(3nGo**9smG@sw#@l?t9cfgoAb8K3j0a z1^@ytdj$m@dn+pd@SaOCve!?Vp;}x{2n%B-AO*>FN=2~a6MN%acJ#@RWs6z{1!eC@|In}cxo^RsW>@4V9sP0~O_jG0BC<@6|lXE6>Au|Y3&IM}u;B+C-K{9Q|3%~;tFl}dB z0wL2XqKH9gPQCXSz!5m_BRd7x5h!#XIENSbQ<@(zA|s8tQy>d+K*&=}c>z=kh(_Po zm<6l30wkUm^_LQ8qD2Pn*=AncjgIV2P~#n4S!$X9K(?!WnLJz8bmZFmE{z@ZY?^f3ce0&{CapD?$9A_cDwNCy{2KBr;C zN0C8U|J04Sy_6Euen1OBkwDp14FouWA;3MSP?+V#;Lk#C)p6g%6CX9XQYsl9eelcb z)~$j`olmz%VAUAITtN;#6;*5$h~rAoe$EcS0z{e{I3x@QX-!R`G>e0}IBWSL*f&0Y=^^&q=&N&yw zbxwU;&P>1YKjEE;xS3a@>Ll2p&To+q{8tMw!V_|~9XBw{{K#;bllvnv_Ffi>u`_^rTH?$gRjEYG2fg{!6;7O7J}Q=1?M7D-N!U0P3# zSk4bSUS0@CD}<5t>wq5>-eK-Pm0`{&foesU`Y~KAn6e3l&<@AgC<&U_;lt923V&~y z!@`J)rR{@Yc};QJ{=EvlPkRG;4V379uX%4e{-JK74;L+Mlum}89hr{CHL&k0M2^WJ z_!)pF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vlR=wV!3JlEieDY@I{7Ui7 zTEpi-a~NKQSDS#$y&4U$K^3ALd~{H4Ceo;K@yIpbYoN1o{o+`W7Xr+OqaCk>9rV$9(=n~&f`2O_%()F7pW_anW;A|(I#OA8i426c6uEUb<=qBRDFdcO6~KcQ-s+OJ>( z1B>!CIO5dJq(Nu1s|uKRr{^7cLoR^QQqKOpIt8%d)#uG~z;F#8@2MSx&k_s)!_#%# z`eBK0Ryz(AVlng7MKE3=gFx*_Gu1q@R%6UYymQe5o`HrPul2E=)2@&A`DvenATa85 zak3uF2NwIi%%0K_{o`a?1g#OaZ~sDc*K201cCdaztrmZj+GHJ5udlHZ;O*1S7nkyC z!OMf3iAekSQG6 zE9_*MzE^RkxV&Y|Sd{aO6>A-Y@aas~BVu@CJR zS&O3SthCVucqWYq*D%yS*#I z-o+VEwD)jzwD6&(OKHA`K>vYwxY!`xSh&LhI|Rbj1IEW^?_^;MzbAXE*Ss$7wqHjW zvhT4p|6uj)Je@3IFhv(DPbauD0tVB$hk5`4C3mfS{|%%1j};h91^%ySMFhlMo`1>x zcUb>r=f5yU_SOhH;2v^aw$*tLq5Th6n)Xg`gpVs6_*YbXuFkeHb%t91&5ox2Jqi#I z6%r8^78Vo`W|6>5xQ7t`haEk8UpT-oFP~iSWanNa`yV2MXR3gWy(9d7=zIt#S3VmH zFMBH&XAeFr34XZXeON-GRu*D{7UE)-Lc)TA5|%b%mT)0qD*;4-HTAtMK=rAXVwJpk G$o~T*eH!`z literal 0 HcmV?d00001 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 +}); From b1d16b67ee0f58e401f5096b5a15222f9796da22 Mon Sep 17 00:00:00 2001 From: shamilkhan Date: Mon, 18 Sep 2023 18:03:33 +0400 Subject: [PATCH 2/2] Release 0.25.0 --- CHANGELOG.md | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ad8ce76c6ee..0f365ee06342 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # CHANGELOG ## vNext +... + +## 0.25.0 - Added CereStats links for users to view blocks, accounts, and validators. ## 0.24.0 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/*" ],