Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions packages/apps-config/src/api/spec/crust.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// 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>',
Expand All @@ -11,36 +18,36 @@ export default {
IASSig: 'Vec<u8>',
Identity: {
pub_key: 'Vec<u8>',
code: 'Vec<u8>',
code: 'Vec<u8>'
},
ISVBody: 'Vec<u8>',
LookupSource: 'AccountId',
MerchantInfo: {
address: 'Vec<u8>',
storage_price: 'Balance',
file_map: 'Vec<(Vec<u8>, Vec<Hash>)>',
file_map: 'Vec<(Vec<u8>, Vec<Hash>)>'
},
MerchantPunishment: {
success: 'EraIndex',
failed: 'EraIndex',
value: 'Balance',
value: 'Balance'
},
MerkleRoot: 'Vec<u8>',
OrderStatus: {
_enum: ['Success', 'Failed', 'Pending'],
_enum: ['Success', 'Failed', 'Pending']
},
PaymentLedger: {
total: 'Balance',
paid: 'Balance',
unreserved: 'Balance',
unreserved: 'Balance'
},
Pledge: {
total: 'Balance',
used: 'Balance',
used: 'Balance'
},
ReportSlot: 'u64',
Releases: {
_enum: ['V1_0_0', 'V2_0_0'],
_enum: ['V1_0_0', 'V2_0_0']
},
Status: {
_enum: ['Free', 'Reserved']
Expand All @@ -54,7 +61,7 @@ export default {
provider: 'AccountId',
client: 'AccountId',
amount: 'Balance',
order_status: 'OrderStatus',
order_status: 'OrderStatus'
},
SworkerCert: 'Vec<u8>',
SworkerCode: 'Vec<u8>',
Expand All @@ -65,6 +72,6 @@ export default {
used: 'u64',
reserved: 'u64',
cached_reserved: 'u64',
files: 'Vec<(Vec<u8>, u64)>',
files: 'Vec<(Vec<u8>, u64)>'
}
};
};
4 changes: 2 additions & 2 deletions packages/apps-config/src/api/spec/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default {
Crab: crab,
acala,
'centrifuge-chain': centrifugeChain,
crust,
'cumulus-test-parachain': testPara,
'darwinia-parachain': darwiniaParachain,
dusty3: plasm,
Expand All @@ -39,6 +40,5 @@ export default {
plasm,
'stable-poc': stablePoc,
stable_poc: stablePoc,
subsocial: subsocialNode,
crust
subsocial: subsocialNode
};
2 changes: 1 addition & 1 deletion packages/apps-config/src/ui/general/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const chainRoccoDarwinia = '#7C30DD';
const laminarRoccoAcala = '#004FFF';
const chainWestend = '#da68a7';
const chainPhala = '#4dc56a';
const chainCrust = '#ff8812'
const chainCrust = '#ff8812';

const nodeCentrifuge = '#fcc367';
const nodeEdgeware = '#0a95df';
Expand Down
4 changes: 2 additions & 2 deletions packages/apps-config/src/ui/logos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const namedLogos: Record<string, any> = {
alexander: nodePolkadot,
centrifuge: nodeCentrifuge,
crab: nodeCrab,
crust: nodeCrust,
dusty: chainDusty,
edgeware: nodeEdgeware,
empty: emptyLogo,
Expand All @@ -114,8 +115,7 @@ const namedLogos: Record<string, any> = {
rococoTrick: chainRococoTrick,
subsocial: nodeSubsocial,
substrate: nodeSubstrate,
westend: nodePolkadot,
crust: nodeCrust
westend: nodePolkadot
};

// extension logos
Expand Down