Added Crust Network logos & endpoints (#3598)

* Add Crust Network logos & endpoints (#1)

* Add Crust Network logos & endpoints

* fix

* fix

* fix

* [CI] Fix yarn lint (#2)

* [CI] Fix alpha order lint (#3)

Co-authored-by: Yashiro <51014425+yuhui1208@users.noreply.github.com>
This commit is contained in:
Kun 2020-09-03 14:40:50 +08:00 committed by GitHub
parent 199e9cd5c5
commit 846ceb8f43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 115 additions and 0 deletions

View File

@ -0,0 +1,77 @@
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
// structs need to be in order
/* eslint-disable sort-keys */
export default {
Address: 'AccountId',
AddressInfo: 'Vec<u8>',
FileAlias: 'Vec<u8>',
Guarantee: {
targets: 'Vec<IndividualExposure<AccountId, Balance>>',
total: 'Compact<Balance>',
submitted_in: 'EraIndex',
suppressed: 'bool'
},
IASSig: 'Vec<u8>',
Identity: {
pub_key: 'Vec<u8>',
code: 'Vec<u8>'
},
ISVBody: 'Vec<u8>',
LookupSource: 'AccountId',
MerchantInfo: {
address: 'Vec<u8>',
storage_price: 'Balance',
file_map: 'Vec<(Vec<u8>, Vec<Hash>)>'
},
MerchantPunishment: {
success: 'EraIndex',
failed: 'EraIndex',
value: 'Balance'
},
MerkleRoot: 'Vec<u8>',
OrderStatus: {
_enum: ['Success', 'Failed', 'Pending']
},
PaymentLedger: {
total: 'Balance',
paid: 'Balance',
unreserved: 'Balance'
},
Pledge: {
total: 'Balance',
used: 'Balance'
},
ReportSlot: 'u64',
Releases: {
_enum: ['V1_0_0', 'V2_0_0']
},
Status: {
_enum: ['Free', 'Reserved']
},
StorageOrder: {
file_identifier: 'Vec<u8>',
file_size: 'u64',
created_on: 'BlockNumber',
completed_on: 'BlockNumber',
expired_on: 'BlockNumber',
provider: 'AccountId',
client: 'AccountId',
amount: 'Balance',
order_status: 'OrderStatus'
},
SworkerCert: 'Vec<u8>',
SworkerCode: 'Vec<u8>',
SworkerPubKey: 'Vec<u8>',
SworkerSignature: 'Vec<u8>',
WorkReport: {
block_number: 'u64',
used: 'u64',
reserved: 'u64',
cached_reserved: 'u64',
files: 'Vec<(Vec<u8>, u64)>'
}
};

View File

@ -5,6 +5,7 @@
import acala from './acala';
import centrifugeChain from './centrifuge-chain';
import crab from './crab';
import crust from './crust';
import darwiniaParachain from './darwinia-parachain';
import testPara from './cumulus-test-parachain';
import edgeware from './edgeware';
@ -23,6 +24,7 @@ export default {
Crab: crab,
acala,
'centrifuge-chain': centrifugeChain,
crust,
'cumulus-test-parachain': testPara,
'darwinia-parachain': darwiniaParachain,
dusty3: plasm,

View File

@ -191,6 +191,11 @@ function createTestNetworks (t: TFunction): LinkOption[] {
text: t<string>('rpc.beresheet', 'Beresheet (Edgeware Testnet, hosted by Commonwealth Labs)', { ns: 'apps-config' }),
value: 'wss://beresheet1.edgewa.re'
},
{
info: 'crust',
text: t<string>('rpc.crust.network', 'Crust Maxwell CC2 (Crust Testnet, hosted by Crust Network)', { ns: 'apps-config' }),
value: 'wss://api.crust.network/'
},
{
info: 'datahighway',
isDisabled: true,

View File

@ -6,6 +6,7 @@ const defaultColor = undefined; // '#f19135'
const emptyColor = '#999';
const chainCrab = '#7C30DD';
const chainCrust = '#ff8812';
const chainKulupu = '#003366';
const chainPolkadot = '#e6007a';
const chainKusama = '#000'; // '#d32e79';
@ -40,6 +41,7 @@ const chainColors: Record<string, any> = [
['Track', chainRoccoTrack],
['Trick', chainRoccoTrick],
['acala mandala pc1', chainRoccoAcala],
['crust maxwell cc2', chainCrust],
['darwinia parachain', chainRoccoDarwinia],
['laminar turbulence pc1', laminarRoccoAcala],
['Westend', chainWestend],

View File

@ -16,6 +16,7 @@ import chainRococoTrick from './chains/rococo-trick.svg';
import nodeAcala from './nodes/acala-circle.svg';
import nodeCentrifuge from './nodes/centrifuge.png';
import nodeCrab from './nodes/crab.svg';
import nodeCrust from './nodes/crust.svg';
import nodeDarwinia from './nodes/darwinia.png';
import nodeEdgeware from './nodes/edgeware-circle.svg';
import nodeEncointerNotee from './nodes/encointer-notee.svg';
@ -65,6 +66,7 @@ const nodeLogos: Record<string, any> = [
['centrifuge chain', nodeCentrifuge],
['Centrifuge Chain Node', nodeCentrifuge],
['crab', nodeCrab],
['crust node', nodeCrust],
['darwinia parachain', nodeDarwinia],
['Edgeware Node', nodeEdgeware],
['Encointer Node', nodeEncointerNotee],
@ -91,6 +93,7 @@ const namedLogos: Record<string, any> = {
alexander: nodePolkadot,
centrifuge: nodeCentrifuge,
crab: nodeCrab,
crust: nodeCrust,
dusty: chainDusty,
edgeware: nodeEdgeware,
empty: emptyLogo,

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="1028px" height="1028px" viewBox="0 0 1028 1028" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>group</title>
<defs>
<radialGradient cx="49.9966152%" cy="50.0014665%" fx="49.9966152%" fy="50.0014665%" r="64.1690427%" gradientTransform="translate(0.499966,0.500015),scale(0.660584,1.000000),translate(-0.499966,-0.500015)" id="radialGradient-1">
<stop stop-color="#FDA649" offset="0%"></stop>
<stop stop-color="#FFBC75" offset="50%"></stop>
<stop stop-color="#FA8C16" offset="100%"></stop>
</radialGradient>
<radialGradient cx="50.002707%" cy="50.0051014%" fx="50.002707%" fy="50.0051014%" r="56.8694256%" gradientTransform="translate(0.500027,0.500051),scale(0.794171,1.000000),translate(-0.500027,-0.500051)" id="radialGradient-2">
<stop stop-color="#FDA649" offset="0%"></stop>
<stop stop-color="#FFBC75" offset="50%"></stop>
<stop stop-color="#FA8C16" offset="100%"></stop>
</radialGradient>
</defs>
<g id="page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="group" transform="translate(-0.004229, 0.000000)" fill-rule="nonzero">
<circle id="oval" fill="#FFFFFF" transform="translate(514.000000, 514.000000) rotate(-90.000000) translate(-514.000000, -514.000000) " cx="514" cy="514" r="514"></circle>
<g id="group-2" transform="translate(225.004229, 158.000000)">
<path d="M16.4596698,174.958777 L312.248797,4.41061054 C322.436829,-1.47020351 334.99396,-1.47020351 345.181991,4.41061054 L531.503233,111.836861 C540.364532,116.936624 546.351885,125.856896 547.708553,135.980393 C549.065221,146.10389 545.637348,156.282549 538.430703,163.529864 L475.224464,226.914672 C464.692808,237.489935 448.352024,239.659741 435.41922,232.200199 L345.528365,180.368832 C335.12217,174.378698 322.308618,174.378698 311.902424,180.368832 L0,362 L0,203.434205 C0,191.687348 6.27300337,180.832205 16.4596698,174.958777 Z" id="route" fill="url(#radialGradient-1)"></path>
<path d="M532.544967,632.653603 L345.375743,740.584309 C335.185824,746.471897 322.623879,746.471897 312.43396,740.584309 L16.470892,569.851008 C6.2772803,563.971204 0,553.104277 0,541.344669 L0,397.372421 L152.508257,309 L152.508257,453.332387 C152.509512,465.091229 158.78763,475.956831 168.979148,481.838725 L312.461688,564.587447 C322.651608,570.475035 335.213553,570.475035 345.403472,564.587447 L436.187477,512.228865 C449.097531,504.779507 465.406031,506.921271 475.950539,517.450872 L539.324652,580.84908 C546.577031,588.080688 550.049991,598.271079 548.721582,608.421638 C547.393173,618.572198 541.414546,627.527957 532.544967,632.653603 L532.544967,632.653603 Z" id="route" fill="url(#radialGradient-2)"></path>
</g>
</g>
<path d="" id="route-2" stroke="#979797"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB