Skip to content

Commit

Permalink
feat: add edgscan.ink explorer (#10186)
Browse files Browse the repository at this point in the history
* add edgscan.ink explorer (1/5)

* add edgscan.ink explorer (2/5)

* add edgscan.ink explorer (3/5)

* add edgscan.ink explorer (4/5)

* add edgscan.ink explorer (5/5)

* typo fix
  • Loading branch information
ShankarWarang authored Jan 21, 2024
1 parent cf65342 commit 17396df
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/apps-config/src/links/edgscan.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { BN } from '@polkadot/util';
import type { ExternalDef } from './types.js';

import { externalEdgscanPNG } from '../ui/logos/external/index.js';

export const Edgscan: ExternalDef = {
chains: {
Edgeware: 'edgeware'
},
create: (path: string, data: BN | number | string): string =>
`https://edgscan.ink/#/${path}/${data.toString()}`,
homepage: 'https://edgscan.ink/',
isActive: true,
paths: {
address: 'accounts',
block: 'blocks',
extrinsic: 'extrinsics'
},
ui: {
logo: externalEdgscanPNG
}
};
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.js';
import { CereStats } from './cerestats.js';
import { Commonwealth } from './commonwealth.js';
import { Dotreasury } from './dotreasury.js';
import { Edgscan } from './edgscan.js';
import { KodaDot } from './kodadot.js';
import { MoonbeamApps } from './moonbeamApps.js';
import { Polkaholic } from './polkaholic.js';
Expand All @@ -21,6 +22,7 @@ export const externalLinks: Record<string, ExternalDef> = {
CereStats,
Commonwealth,
Dotreasury,
Edgscan,
KodaDot,
MoonbeamApps,
Polkaholic,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/apps-config/src/ui/logos/external/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export { externalCerestatsPNG } from './generated/cerestatsPNG.js';
export { externalCommonwealthPNG } from './generated/commonwealthPNG.js';
export { externalDotreasurySVG } from './generated/dotreasurySVG.js';
export { externalDotscannerPNG } from './generated/dotscannerPNG.js';
export { externalEdgscanPNG } from './generated/edgscanPNG.js';
export { externalEmptySVG } from './generated/emptySVG.js';
export { externalKodadotSVG } from './generated/kodadotSVG.js';
export { externalMoonbeamAppsSVG } from './generated/moonbeamAppsSVG.js';
Expand Down

0 comments on commit 17396df

Please sign in to comment.