Skip to content

Commit

Permalink
Added Crust Network logos & endpoints (polkadot-js#3598)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
badkk and yashirooooo committed Sep 3, 2020
1 parent 199e9cd commit 846ceb8
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 0 deletions.
77 changes: 77 additions & 0 deletions packages/apps-config/src/api/spec/crust.ts
Original file line number Diff line number Diff line change
@@ -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)>'
}
};
2 changes: 2 additions & 0 deletions packages/apps-config/src/api/spec/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -23,6 +24,7 @@ export default {
Crab: crab,
acala,
'centrifuge-chain': centrifugeChain,
crust,
'cumulus-test-parachain': testPara,
'darwinia-parachain': darwiniaParachain,
dusty3: plasm,
Expand Down
5 changes: 5 additions & 0 deletions packages/apps-config/src/settings/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions packages/apps-config/src/ui/general/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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],
Expand Down
3 changes: 3 additions & 0 deletions packages/apps-config/src/ui/logos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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],
Expand All @@ -91,6 +93,7 @@ const namedLogos: Record<string, any> = {
alexander: nodePolkadot,
centrifuge: nodeCentrifuge,
crab: nodeCrab,
crust: nodeCrust,
dusty: chainDusty,
edgeware: nodeEdgeware,
empty: emptyLogo,
Expand Down
26 changes: 26 additions & 0 deletions packages/apps-config/src/ui/logos/nodes/crust.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 846ceb8

Please sign in to comment.