Add Altair and move Charcoal to Westend (#5545)

* Add Altair to Kusama networks list

* Move Charcoal from Rococo to Westend

* Add chainAltair logo for Altair and Charcoal

* Fix URL for altair

* Switch Charcoal to CFG logo instead of AIR

* Add logo override for "Altair" chain
This commit is contained in:
Branan Riley 2021-06-09 21:45:55 -07:00 committed by GitHub
parent 301f831ce5
commit b357a961d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 57 additions and 9 deletions

View File

@ -43,6 +43,15 @@ export function createKusama (t: TFunction): EndpointOption {
/// (3) parachains with id, see Rococo (info here maps to the actual "named icon")
//
// NOTE: Added alphabetical based on chain name
{
info: 'altair',
isUnreachable: true,
paraId: 2021,
text: t('rpc.kusama.altair', 'Altair', { ns: 'apps-config' }),
providers: {
Centrifuge: 'wss://fullnode.altair.centrifuge.io'
}
},
{
info: 'bifrost',
homepage: 'https://thebifrost.io/',

View File

@ -98,15 +98,6 @@ export function createRococo (t: TFunction): EndpointOption {
BitCountry: 'wss://tewai-parachain.bit.country:9955'
}
},
{
info: 'rococoCentrifuge',
isDisabled: true, // Rococo reset
paraId: 10001,
text: t('rpc.rococo.centrifuge', 'Centrifuge Charcoal', { ns: 'apps-config' }),
providers: {
Centrifuge: 'wss://fullnode-collator.charcoal.centrifuge.io'
}
},
{
info: 'rococoClover',
isDisabled: true, // Rococo reset

View File

@ -53,6 +53,14 @@ export function createWestend (t: TFunction): EndpointOption {
HydraDX: 'wss://rpc-01.basilisk-testnet.hydradx.io'
}
},
{
info: 'charcoal',
paraId: 2010,
text: t('rpc.westend.charcoal', 'Charcoal', { ns: 'apps-config' }),
providers: {
Centrifuge: 'wss://fullnode-collator.charcoal.centrifuge.io'
}
},
{
info: 'moonshadow',
paraId: 2002,

View File

@ -0,0 +1,35 @@
<svg width="268" height="268" viewBox="0 0 268 268" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="268" height="268" fill="black"/>
<path d="M174.639 104.116C174.139 105.439 145.511 90.7747 127.666 103.38C117.19 112.031 113.432 126.265 117.19 138.777C119.22 145.534 120.205 148.3 123.539 153.062C125.983 156.554 129.412 160.364 134.173 163.062C135.259 163.864 149.846 172.65 167.558 170.565C195.417 167.288 217 130.71 217 130.71C217 130.71 211.974 141.527 211.51 142.515C198.056 171.15 175.7 178.782 175.7 178.782C155.828 185.566 135.939 176.882 133.744 175.777C119.392 168.557 113.199 161.889 111.27 158.267C108.125 152.359 100.241 129.277 107.796 112.031C113.395 99.2497 125.549 93.9 126.982 93.299C150.11 83.5959 175.094 102.914 174.639 104.116Z" fill="url(#paint0_linear)"/>
<path d="M174.64 104.116C173.7 104.991 166.949 96.8467 156.109 90.9646C153.01 89.2835 141.187 83.2406 126.746 83.5508C102.808 84.0627 86.8999 101.713 84.0631 104.984C69.8844 121.333 63.2087 146.508 71.1838 166.098C81.5481 191.556 117.379 209.353 113.719 206.389L110.546 205.184C106.886 203.734 61.9737 183.726 60.3648 143.206C59.4577 120.374 66.7616 101.883 71.1838 96.8353C78.9106 88.0158 85.1061 83.7699 90.3292 80.9655C100.824 75.3343 120.562 70.5089 135.211 72.7255C151.647 75.2135 161.964 86.7463 166.995 92.3703C171.534 97.4425 175.399 103.409 174.64 104.116Z" fill="url(#paint1_linear)"/>
<path d="M126.983 93.3021C123.651 95.1246 120.678 97.5412 118.21 100.433C116.16 102.863 112.501 108.023 110.692 119.669C109.141 129.65 107.431 140.659 112.652 152.586C121.131 171.946 141.104 178.319 145.866 179.839C158.044 183.581 171.078 183.461 183.186 179.496C198.086 174.672 208.507 164.701 209.423 165.867C209.99 166.591 206.154 170.629 203.491 173.097C195.364 180.475 185.409 185.53 174.666 187.733C167.094 189.242 159.318 189.43 151.682 188.289C145.409 187.367 126.749 184.646 112.418 168.733C108.405 164.276 97.0864 151.71 97.971 133.929C98.6095 121.12 105.258 112.069 107.513 109.082C112.683 102.368 119.351 96.9635 126.983 93.3021Z" fill="url(#paint2_linear)"/>
<path d="M174.64 104.116C175.75 103.621 173.234 89.7821 163.43 78.2524C159.477 73.5933 154.717 69.6875 149.379 66.7227C127.314 54.7087 101.674 64.9729 95.8014 67.3258C89.7857 69.7349 76.7878 75.1398 66.0117 88.6466C53.8648 103.873 52.0659 120.209 51.3743 127.36C48.4191 157.893 63.888 181.98 65.3478 181.511C66.4653 181.152 58.8335 166.043 60.3647 143.206C60.948 134.512 62.2035 118.867 73.1777 103.583C79.8255 94.5686 88.5292 87.2801 98.5616 82.3263C104.367 79.4452 124.068 69.6662 144.869 77.0411C151.207 79.334 157.042 82.8341 162.053 87.3483C171.109 95.663 173.731 104.523 174.64 104.116Z" fill="url(#paint3_linear)"/>
<path d="M137.468 188.173C136.947 189.064 107.303 181.091 93.7833 155.663C91.7484 151.838 81.1 131.651 87.2649 115.777C89.8432 109.137 94.9192 101.704 96.9694 99.3951C100.281 95.6662 107.544 94.798 114.678 91.7602C117.884 90.4274 121.474 90.1279 124.914 89.6684C128.324 89.2466 131.346 89.3372 134.766 89.6684C139.412 89.9755 158.538 95.8467 152.11 94.8318C146.078 93.8794 132.532 90.5745 124.914 94.8318C124.218 95.2208 123.433 95.7164 123.01 95.9836C116.857 99.8526 111.508 104.878 107.259 110.783C105.781 112.882 99.4834 122.07 98.9849 133.935C98.3669 148.781 106.487 159.612 111.279 166.006C123.378 182.135 137.845 187.535 137.468 188.173Z" fill="url(#paint4_linear)"/>
<path d="M123.062 82.9044C129.306 82.0002 134.649 81.6885 140.84 82.9044C147.944 84.3378 151.874 85.8152 156.713 88.3011C164.977 92.5471 175.437 103.434 174.64 105.069C173.221 107.981 139.214 82.6111 112.136 94.2411C97.5525 100.504 87.6498 119.001 86.2698 121.797C82.9426 127.964 82.744 133.116 82.4411 140.119C82.2133 148.435 84.5424 155.01 86.6671 161.006C89.6898 169.54 94.5553 178.642 94.4491 178.692C94.444 178.692 94.4266 178.67 94.4215 178.664C78.5695 155.459 76.8779 144.515 76.8779 144.515C76.1628 139.893 73.1095 120.147 86.2698 103.477C98.2676 88.2812 118.408 83.5852 123.062 82.9044Z" fill="url(#paint5_linear)"/>
<defs>
<linearGradient id="paint0_linear" x1="160.81" y1="90.5826" x2="160.81" y2="181.349" gradientUnits="userSpaceOnUse">
<stop stop-color="#FAB961"/>
<stop offset="1"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="117.512" y1="72.1749" x2="117.512" y2="206.712" gradientUnits="userSpaceOnUse">
<stop stop-color="#FAB961"/>
<stop offset="1"/>
</linearGradient>
<linearGradient id="paint2_linear" x1="153.701" y1="93.3021" x2="153.701" y2="189.024" gradientUnits="userSpaceOnUse">
<stop stop-color="#FAB961"/>
<stop offset="1"/>
</linearGradient>
<linearGradient id="paint3_linear" x1="112.941" y1="61" x2="112.941" y2="181.517" gradientUnits="userSpaceOnUse">
<stop/>
<stop offset="0.414296" stop-color="#FAB961"/>
</linearGradient>
<linearGradient id="paint4_linear" x1="114.385" y1="90.2343" x2="114.385" y2="188.239" gradientUnits="userSpaceOnUse">
<stop/>
<stop offset="1" stop-color="#FAB961"/>
</linearGradient>
<linearGradient id="paint5_linear" x1="125.371" y1="84.4647" x2="125.371" y2="178.692" gradientUnits="userSpaceOnUse">
<stop/>
<stop offset="1" stop-color="#FAB961"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@ -6,6 +6,7 @@
// anything for a specific chain, most would probably fit into the node category (but allow for chain-specific)
// alphabetical
import chainAltair from './chains/altair.svg';
import chainDusty from './chains/dusty.png';
import chainEquilibrium from './chains/equilibrium.svg';
import chainGenshiro from './chains/genshiro.svg';
@ -119,11 +120,13 @@ import emptyLogo from './empty.svg';
// Alphabetical overrides based on the actual matched chain name
// NOTE: This is as retrieved via system.chain RPC
export const chainLogos: Record<string, unknown> = [
['Altair', chainAltair],
['Apron PC1', nodeApron],
['Ares PC1', nodeAres],
['Beast Developer', nodeBeast],
['Crust PC1', nodeCrust],
['ChainX', nodeChainx],
['Charcoal Testnet', nodeCentrifuge],
['darwinia crab', nodeCrab],
['Darwinia Crab PC2', nodeCrab],
['Darwinia PC2', nodeDarwinia],
@ -359,6 +362,7 @@ export const specLogos: Record<string, unknown> = [
export const namedLogos: Record<string, unknown> = {
acala: nodeAcala,
alexander: nodePolkadot,
altair: chainAltair,
basilisk: nodeBasilisk,
beast: nodeBeast,
bifrost: nodeBifrost,
@ -366,6 +370,7 @@ export const namedLogos: Record<string, unknown> = {
canvas: nodeCanvas,
centrifuge: nodeCentrifuge,
chainx: nodeChainx,
charcoal: nodeCentrifuge,
clover: nodeClover,
crab: nodeCrab,
crab_redirect: nodeCrab,