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
70 changes: 70 additions & 0 deletions packages/apps-config/src/api/spec/crust.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
export default {
Address: 'AccountId',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ranking with alphabetical order

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)>',
}
};
4 changes: 3 additions & 1 deletion packages/apps-config/src/api/spec/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import nodle from './nodle';
import plasm from './plasm';
import stablePoc from './stable-poc';
import subsocialNode from './subsocial';
import crust from './crust';

export default {
Crab: crab,
Expand All @@ -38,5 +39,6 @@ export default {
plasm,
'stable-poc': stablePoc,
stable_poc: stablePoc,
subsocial: subsocialNode
subsocial: subsocialNode,
crust
};
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 @@ -232,6 +232,11 @@ function createTestNetworks (t: TFunction): LinkOption[] {
info: 'westend',
text: t<string>('rpc.westend', 'Westend (Polkadot Testnet, hosted by Parity)', { ns: 'apps-config' }),
value: 'wss://westend-rpc.polkadot.io'
},
{
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/'
}
];
}
Expand Down
4 changes: 3 additions & 1 deletion packages/apps-config/src/ui/general/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const chainRoccoDarwinia = '#7C30DD';
const laminarRoccoAcala = '#004FFF';
const chainWestend = '#da68a7';
const chainPhala = '#4dc56a';
const chainCrust = '#ff8812'

const nodeCentrifuge = '#fcc367';
const nodeEdgeware = '#0a95df';
Expand All @@ -43,7 +44,8 @@ const chainColors: Record<string, any> = [
['darwinia parachain', chainRoccoDarwinia],
['laminar turbulence pc1', laminarRoccoAcala],
['Westend', chainWestend],
['phala poc 2', chainPhala]
['phala poc 2', chainPhala],
['crust maxwell cc2', chainCrust]
].reduce((colors, [chain, color]): Record<string, any> => ({
...colors,
[chain.toLowerCase()]: color
Expand Down
7 changes: 5 additions & 2 deletions packages/apps-config/src/ui/logos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import nodeSubstrate from './nodes/substrate-hexagon.svg';
import nodeKulupu from './nodes/kulupu.svg';
import nodeLaminar from './nodes/laminar-circle.svg';
import nodePhala from './nodes/phala.svg';
import nodeCrust from './nodes/crust.svg';

// extensions
import extensionPolkadotJs from './extensions/polkadot-js.svg';
Expand Down Expand Up @@ -79,7 +80,8 @@ const nodeLogos: Record<string, any> = [
['polkadot-js', nodePolkadotJs],
['subsocial-node', nodeSubsocial],
['substrate-node', nodeSubstrate],
['phala-substrate-node', nodePhala]
['phala-substrate-node', nodePhala],
['crust node', nodeCrust]
].reduce((logos, [node, logo]): Record<string, any> => ({
...logos,
[(node as string).toLowerCase().replace(/-/g, ' ')]: logo
Expand Down Expand Up @@ -112,7 +114,8 @@ const namedLogos: Record<string, any> = {
rococoTrick: chainRococoTrick,
subsocial: nodeSubsocial,
substrate: nodeSubstrate,
westend: nodePolkadot
westend: nodePolkadot,
crust: nodeCrust
};

// extension logos
Expand Down
1 change: 1 addition & 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.