Skip to content

Commit

Permalink
feat: add edgscan.ink explorer (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShankarWarang authored Jan 16, 2024
1 parent 34a4309 commit 6f53161
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/apps-config/src/links/edgscan.ts
Original file line number Diff line number Diff line change
@@ -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/'
};
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 @@ -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';
Expand All @@ -21,6 +22,7 @@ export const externalLinks: Record<string, ExternalDef> = {
Commonwealth,
DotScanner,
Dotreasury,
Edgscan,
KodaDot,
Polkaholic,
Polkascan,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions packages/apps-config/src/ui/logos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -1024,6 +1025,7 @@ export const externalLogos: Record<string, unknown> = {
commonwealth: externalCommonwealth,
dotreasury: externalDotreasury,
dotscanner: externalDotScanner,
edgscan: externalEdgscan,
kodadot: externalKodaDot,
polkaholic: externalPolkaholic,
polkascan: externalPolkascan,
Expand Down

1 comment on commit 6f53161

@vercel
Copy link

@vercel vercel bot commented on 6f53161 Jan 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.