From bf22a3a1ee73f137dc9fcf1b19659ff6b4e380c9 Mon Sep 17 00:00:00 2001 From: "Shankar D. Warang" Date: Sun, 5 Nov 2023 17:05:53 +0530 Subject: [PATCH] Create edgscan.ts --- packages/apps-config/src/links/edgscan.ts | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 packages/apps-config/src/links/edgscan.ts diff --git a/packages/apps-config/src/links/edgscan.ts b/packages/apps-config/src/links/edgscan.ts new file mode 100644 index 000000000000..21d1cc5f8b85 --- /dev/null +++ b/packages/apps-config/src/links/edgscan.ts @@ -0,0 +1,29 @@ +// 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: 'account', + block: 'block', + bounty: 'bounty', + council: 'council', + extrinsic: 'extrinsic', + proposal: 'democracy_proposal', + referendum: 'referenda', + tip: 'treasury_tip', + treasury: 'treasury', + validator: 'validator' + }, + url: 'https://edgscan.ink/' +};