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/' +};