Skip to content

Commit

Permalink
fix: update kodadot link & logo (#10060)
Browse files Browse the repository at this point in the history
* fix: update kodadot link & logo

* 🔧 lint kodadot chains
  • Loading branch information
roiLeo authored Dec 11, 2023
1 parent 4c483e5 commit 17130a8
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 12 deletions.
15 changes: 10 additions & 5 deletions packages/apps-config/src/links/kodadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,25 @@
import type { BN } from '@polkadot/util';
import type { ExternalDef } from './types.js';

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

const getNetwork = (_chain: string) => {
const chain = _chain === 'kusama' ? 'rmrk' : _chain;
const chain = {
basilisk: 'bsx',
kusama: 'rmrk',
statemine: 'ahk',
statemint: 'ahp'
}[_chain];

return `https://kodadot.xyz/${chain}/u/`;
};

export const KodaDot: ExternalDef = {
chains: {
Basilisk: 'basilisk',
Kusama: 'kusama',
Statemine: 'statemine',
Westend: 'westend',
Westmint: 'westmint'
Statemint: 'statemint'
},
create: (_chain: string, _path: string, data: BN | number | string): string =>
`${getNetwork(_chain)}${data.toString()}`,
Expand All @@ -27,6 +32,6 @@ export const KodaDot: ExternalDef = {
address: 'account'
},
ui: {
logo: externalKodadotPNG
logo: externalKodadotSVG
}
};

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright 2017-2023 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0

// Do not edit. Auto-generated via node scripts/imgConvert.mjs

export const externalKodadotSVG = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ5IiBoZWlnaHQ9IjEyMSIgdmlld0JveD0iMCAwIDE0OSAxMjEiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik05MS41MTc2IDE2LjMxMDVDODkuMjM1NSAxOS41ODQ5IDg2LjU1NjU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MxNSAxMDYuNjA1TDExNi4zODYgMTE3LjAyTDExMi4wMjcgMTIwLjk5NVoiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik0xNDguMTUyIDg0Ljg2OTFMMTM5Ljk5NiA3Mi42MzQ5TDEzOC4zNjkgNzYuNzYxTDEzOC43NzQgODYuNDI3NUwxNDguMTUyIDg0Ljg2OTFaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOTUuNTg0NCA4NC44NjkxTDg3LjQyODQgNzIuNjM0OUw4NS44MDEzIDc2Ljc2MUw4Ni4yMDYzIDg2LjQyNzVMOTUuNTg0NCA4NC44NjkxWiIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTQ0Ljg2MzEgMTEuODA3NUwzNy4xMDUyIDAuMDE5NjYyN0wzNS40NzgxIDQuMTQ1NzZMMzUuODgzMSAxMy44MTIyTDQ0Ljg2MzEgMTEuODA3NVoiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik05OS4zMjYyIDEyLjIzMzJMOTEuMTcwMSAwLjAwNTk0NTI2TDg2LjEwMzQgMy40MTgwNUw4MC43NjIyIDEzLjk5NzZMOTkuMTk1NyAxMi4zOThMOTkuMzI2MiAxMi4yMzMyWiIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTMyLjkzOTUgNDkuODY0MUMzMi45Mzk1IDUwLjA4NDggMzYuNTU1NCAyMS4wNzA2IDUxLjk4NDEgNC4wNjIzOUw0Ny44NzE5IDMuNDAzOTNMNDAuNDM5MSAxMC42MzU4TDMzLjA1MTEgNC4wNjIzOUMzMy4wNTExIDI0LjAwNDMgMzIuOTM5NSAzMC40Njc1IDMyLjkzOTUgNDkuODY0MVoiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=';
2 changes: 1 addition & 1 deletion packages/apps-config/src/ui/logos/external/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export { externalCommonwealthPNG } from './generated/commonwealthPNG.js';
export { externalDotreasurySVG } from './generated/dotreasurySVG.js';
export { externalDotscannerPNG } from './generated/dotscannerPNG.js';
export { externalEmptySVG } from './generated/emptySVG.js';
export { externalKodadotPNG } from './generated/kodadotPNG.js';
export { externalKodadotSVG } from './generated/kodadotSVG.js';
export { externalMoonbeamAppsSVG } from './generated/moonbeamAppsSVG.js';
export { externalPolkaholicPNG } from './generated/polkaholicPNG.js';
export { externalPolkascanPNG } from './generated/polkascanPNG.js';
Expand Down
Binary file not shown.
15 changes: 15 additions & 0 deletions packages/apps-config/src/ui/logos/external/kodadot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 17130a8

Please sign in to comment.