diff --git a/packages/apps-config/src/links/edgscan.ts b/packages/apps-config/src/links/edgscan.ts new file mode 100644 index 00000000000..91024d87b03 --- /dev/null +++ b/packages/apps-config/src/links/edgscan.ts @@ -0,0 +1,22 @@ +// Copyright 2017-2022 @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: { + Edgeware: 'edgeware' + }, + create: (chain: string, path: string, data: BN | number | string): string => + `https://edgscan.ink/#/${path}/${data.toString()}`, + isActive: true, + logo: externalLogos.edgscan as string, + paths: { + address: 'accounts', + block: 'blocks', + extrinsic: 'extrinsics' + }, + url: 'https://edgscan.ink/' +}; diff --git a/packages/apps-config/src/links/index.ts b/packages/apps-config/src/links/index.ts index 30732bc0600..a5584a32df2 100644 --- a/packages/apps-config/src/links/index.ts +++ b/packages/apps-config/src/links/index.ts @@ -6,6 +6,7 @@ import type { ExternalDef } from './types'; import Commonwealth from './commonwealth'; import Dotreasury from './dotreasury'; import DotScanner from './dotscanner'; +import Edgscan from './edgscan'; import KodaDot from './kodadot'; import Polkaholic from './polkaholic'; import Polkascan from './polkascan'; @@ -21,6 +22,7 @@ export const externalLinks: Record = { Commonwealth, DotScanner, Dotreasury, + Edgscan, KodaDot, Polkaholic, Polkascan, diff --git a/packages/apps-config/src/ui/logos/external/edgscan.png b/packages/apps-config/src/ui/logos/external/edgscan.png new file mode 100644 index 00000000000..fbf05eaca63 Binary files /dev/null and b/packages/apps-config/src/ui/logos/external/edgscan.png differ diff --git a/packages/apps-config/src/ui/logos/index.ts b/packages/apps-config/src/ui/logos/index.ts index 3bab5645fe1..1c163234d0c 100644 --- a/packages/apps-config/src/ui/logos/index.ts +++ b/packages/apps-config/src/ui/logos/index.ts @@ -89,6 +89,7 @@ import extensionPolkadotJs from './extensions/polkadot-js.svg'; import externalCommonwealth from './external/commonwealth.png'; import externalDotreasury from './external/dotreasury.svg'; import externalDotScanner from './external/dotscanner.png'; +import externalEdgscan from './external/edgscan.png'; import externalKodaDot from './external/kodadot.png'; import externalPolkaholic from './external/polkaholic.png'; import externalPolkascan from './external/polkascan.png'; @@ -1024,6 +1025,7 @@ export const externalLogos: Record = { commonwealth: externalCommonwealth, dotreasury: externalDotreasury, dotscanner: externalDotScanner, + edgscan: externalEdgscan, kodadot: externalKodaDot, polkaholic: externalPolkaholic, polkascan: externalPolkascan,