fix: update kodadot link & logo (#10060)

* fix: update kodadot link & logo

* 🔧 lint kodadot chains
This commit is contained in:
roiLeo 2023-12-11 11:25:26 +01:00 committed by GitHub
parent 4c483e5b9e
commit 17130a86e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 12 deletions

View File

@ -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()}`,
@ -27,6 +32,6 @@ export const KodaDot: ExternalDef = {
address: 'account'
},
ui: {
logo: externalKodadotPNG
logo: externalKodadotSVG
}
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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';

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

View File

@ -0,0 +1,15 @@
<svg width="149" height="121" viewBox="0 0 149 121" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M91.5176 16.3105C89.2355 19.5849 86.5565 23.5042 83.4806 28.0684C80.5039 32.6327 77.6264 37.445 74.8482 42.5053C72.1692 47.5657 69.8871 52.6261 68.0018 57.6864C66.1166 62.7468 65.174 67.3606 65.174 71.528C65.174 75.2984 65.9678 78.3247 67.5553 80.6069C69.2421 82.7898 71.3258 84.5261 73.8064 85.816C76.3862 87.1059 79.214 87.9493 82.2899 88.3462C85.465 88.7431 88.5409 88.9416 91.5176 88.9416V116.922C86.2588 116.922 81.0992 116.476 76.0389 115.583C71.0777 114.69 66.4143 113.202 62.0485 111.118C57.6827 109.034 53.7138 106.306 50.1418 102.932C46.5697 99.5584 43.5931 95.3414 41.2117 90.2811V116.922H13.2309V16.3105H41.2117V49.7982C43.097 43.8449 45.5279 38.0899 48.5046 32.5335C51.5805 26.977 54.7556 21.5694 58.03 16.3105H91.5176Z" fill="black"/>
<path d="M144.079 88.9416V116.922H116.098V88.9416H144.079Z" fill="black"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M99.3301 12.2329L94.8631 18.6421C92.601 21.8877 89.9403 25.78 86.8795 30.3216C83.9736 34.7788 81.1594 39.4846 78.4378 44.4404C75.843 49.3444 73.6396 54.2342 71.8231 59.11C70.0599 63.8428 69.2518 67.9666 69.2518 71.528C69.2518 74.6957 69.9079 76.8042 70.8487 78.1991C72.1503 79.8592 73.7418 81.1815 75.6594 82.1835C77.7913 83.2451 80.1625 83.9595 82.8044 84.3011C85.8211 84.6779 88.7249 84.8639 91.5178 84.8639H95.5955V121H91.5178C86.027 121 80.6301 120.534 75.3304 119.598L75.3236 119.597L75.3167 119.596C70.0127 118.641 64.9999 117.045 60.2923 114.798C55.5375 112.529 51.2177 109.557 47.3421 105.896C46.6351 105.229 45.951 104.533 45.2895 103.81V121H9.15346V12.2329H45.2895V29.9236C48.2885 24.5303 51.3815 19.2741 54.5686 14.1553L55.7656 12.2329H99.3301ZM45.2895 39.0837C43.7257 42.5808 42.3663 46.1523 41.2117 49.7982V16.3105H13.2309V116.922H41.2117V90.2811C42.4181 92.8447 43.7775 95.1919 45.2895 97.3226C46.7621 99.3977 48.3794 101.267 50.1418 102.932C53.7138 106.306 57.6827 109.034 62.0485 111.118C66.4143 113.202 71.0777 114.69 76.0389 115.583C79.7849 116.244 83.5854 116.66 87.4402 116.832C88.7927 116.892 90.1517 116.922 91.5176 116.922V88.9416C88.5409 88.9416 85.465 88.7431 82.2899 88.3462C79.214 87.9493 76.3862 87.1059 73.8064 85.816C71.3258 84.5261 69.2421 82.7898 67.5553 80.6069C65.9678 78.3247 65.174 75.2984 65.174 71.528C65.174 67.3606 66.1166 62.7468 68.0018 57.6864C69.8871 52.6261 72.1692 47.5657 74.8482 42.5053C77.6264 37.445 80.5039 32.6327 83.4806 28.0684C85.3698 25.2651 87.1095 22.705 88.6993 20.3882C89.6979 18.933 90.6372 17.5738 91.5176 16.3105H58.03C54.7556 21.5694 51.5805 26.977 48.5046 32.5335C47.3509 34.6871 46.2793 36.8705 45.2895 39.0837ZM148.157 84.8639V121H112.021V84.8639H148.157ZM144.079 88.9416H116.098V116.922H144.079V88.9416Z" fill="black"/>
<path d="M83.3622 4.07764C81.0801 7.352 78.4011 11.2713 75.3252 15.8355C72.3485 20.3998 69.471 25.2121 66.6928 30.2724C64.0138 35.3328 61.7317 40.3932 59.8464 45.4535C57.9612 50.5139 57.0186 55.1277 57.0186 59.2951C57.0186 63.0655 57.8124 66.0918 59.3999 68.3739C61.0867 70.5568 63.1704 72.2932 65.651 73.5831C68.2308 74.873 71.0586 75.7164 74.1345 76.1133C77.3096 76.5102 80.3855 76.7087 83.3622 76.7087V104.689C78.1034 104.689 72.9438 104.243 67.8835 103.35C62.9223 102.457 58.2589 100.969 53.8931 98.8849C49.5273 96.8012 45.5584 94.0726 41.9864 90.6991C38.4143 87.3255 35.4376 83.1085 33.0563 78.0482V104.689H5.07551V4.07764H33.0563V37.5653C34.9415 31.6119 37.3725 25.857 40.3492 20.3006C43.4251 14.7441 46.6002 9.33645 49.8746 4.07764H83.3622Z" fill="white"/>
<path d="M135.924 76.7087V104.689H107.943V76.7087H135.924Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M91.1747 0L86.7077 6.40921C84.4456 9.65484 81.7849 13.5471 78.7241 18.0887C75.8182 22.5459 73.004 27.2517 70.2824 32.2075C67.6875 37.1115 65.4842 42.0013 63.6677 46.8771C61.9045 51.6099 61.0964 55.7337 61.0964 59.2951C61.0964 62.4628 61.7525 64.5713 62.6933 65.9662C63.9949 67.6263 65.5864 68.9486 67.504 69.9506C69.6359 71.0122 72.0071 71.7266 74.649 72.0682C77.6656 72.445 80.5694 72.631 83.3624 72.631H87.44V108.767H83.3624C77.8716 108.767 72.4747 108.301 67.175 107.366L67.1681 107.364L67.1613 107.363C61.8573 106.408 56.8445 104.812 52.1369 102.565C47.3821 100.296 43.0623 97.3238 39.1867 93.6635C38.4797 92.9958 37.7956 92.3003 37.1341 91.5775V108.767H0.998047V0H37.1341V17.6907C40.1331 12.2974 43.2261 7.04118 46.4132 1.92237L47.6102 0H91.1747ZM37.1341 26.8508C35.5702 30.3479 34.2108 33.9194 33.0563 37.5653V4.07764H5.07551V104.689H33.0563V78.0482C34.2627 80.6118 35.6221 82.959 37.1341 85.0897C38.6067 87.1648 40.224 89.0346 41.9864 90.6991C45.5584 94.0726 49.5273 96.8012 53.8931 98.8849C58.2589 100.969 62.9223 102.457 67.8835 103.35C71.6295 104.011 75.43 104.427 79.2848 104.599C80.6373 104.659 81.9963 104.689 83.3622 104.689V76.7087C80.3855 76.7087 77.3096 76.5102 74.1345 76.1133C71.0586 75.7164 68.2308 74.873 65.651 73.5831C63.1704 72.2932 61.0867 70.5568 59.3999 68.3739C57.8124 66.0918 57.0186 63.0655 57.0186 59.2951C57.0186 55.1277 57.9612 50.5139 59.8464 45.4535C61.7317 40.3932 64.0138 35.3328 66.6928 30.2724C69.471 25.2121 72.3485 20.3998 75.3252 15.8355C77.2144 13.0321 78.9541 10.4721 80.5439 8.15529C81.5425 6.70008 82.4818 5.34087 83.3622 4.07764H49.8746C46.6002 9.33645 43.4251 14.7441 40.3492 20.3006C39.1955 22.4542 38.1239 24.6376 37.1341 26.8508ZM140.002 72.631V108.767H103.866V72.631H140.002ZM135.924 76.7087H107.943V104.689H135.924V76.7087Z" fill="black"/>
<path d="M9.15611 120.995L1.00003 108.761L1.59732 107.889L12.4446 106.605L13.5156 117.02L9.15611 120.995Z" fill="black"/>
<path d="M112.027 120.995L103.871 108.761L104.468 107.889L115.315 106.605L116.386 117.02L112.027 120.995Z" fill="black"/>
<path d="M148.152 84.8691L139.996 72.6349L138.369 76.761L138.774 86.4275L148.152 84.8691Z" fill="black"/>
<path d="M95.5844 84.8691L87.4284 72.6349L85.8013 76.761L86.2063 86.4275L95.5844 84.8691Z" fill="black"/>
<path d="M44.8631 11.8075L37.1052 0.0196627L35.4781 4.14576L35.8831 13.8122L44.8631 11.8075Z" fill="black"/>
<path d="M99.3262 12.2332L91.1701 0.00594526L86.1034 3.41805L80.7622 13.9976L99.1957 12.398L99.3262 12.2332Z" fill="black"/>
<path d="M32.9395 49.8641C32.9395 50.0848 36.5554 21.0706 51.9841 4.06239L47.8719 3.40393L40.4391 10.6358L33.0511 4.06239C33.0511 24.0043 32.9395 30.4675 32.9395 49.8641Z" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 6.2 KiB