Add Crust Rococo V1 Endpoint (#4486)
* Fix abnormal account type * Fix crust logo invisible * Add Crust Rococo V1 Endpoint
This commit is contained in:
parent
a3b240be53
commit
1eddf7d5d8
76
packages/apps-config/src/api/spec/crust-parachain.ts
Normal file
76
packages/apps-config/src/api/spec/crust-parachain.ts
Normal file
@ -0,0 +1,76 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// 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)>'
|
||||
}
|
||||
};
|
||||
@ -7,6 +7,7 @@ import canvas from './canvas';
|
||||
import centrifugeChain from './centrifuge-chain';
|
||||
import crab from './crab';
|
||||
import crust from './crust';
|
||||
import crustParachain from './crust-parachain';
|
||||
import testPara from './cumulus-test-parachain';
|
||||
import darwinia from './darwinia';
|
||||
import darwiniaParachain from './darwinia-parachain';
|
||||
@ -42,6 +43,7 @@ export default {
|
||||
canvas,
|
||||
'centrifuge-chain': centrifugeChain,
|
||||
crust,
|
||||
'crust-parachain': crustParachain,
|
||||
'cumulus-test-parachain': testPara,
|
||||
'darwinia-parachain': darwiniaParachain,
|
||||
'dock-main-runtime': dock,
|
||||
|
||||
@ -59,6 +59,14 @@ export function createRococo (t: TFunction): EndpointOption {
|
||||
Bifrost: 'wss://rococo-1.testnet.liebi.com'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'rococoCrust',
|
||||
paraId: 7777,
|
||||
text: t('rpc.rococo.crust', 'Crust PC1', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
Crust: 'wss://api-rococo.crust.network'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'rococoDarwinia',
|
||||
paraId: 18,
|
||||
|
||||
@ -66,6 +66,7 @@ export const chainColors: Record<string, any> = [
|
||||
['Bifrost PC1', chainRoccoBifrost],
|
||||
['Darwinia Crab', chainCrab],
|
||||
['crust maxwell cc2', chainCrust],
|
||||
['Crust PC1', chainCrust],
|
||||
['darwinia cc1', chainDarwinia],
|
||||
['Darwinia PC2', chainRoccoDarwinia],
|
||||
['Encointer PC1', nodeEncointerNotee],
|
||||
|
||||
@ -59,6 +59,7 @@ 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> = [
|
||||
['Crust PC1', nodeCrust],
|
||||
['darwinia crab', nodeCrab],
|
||||
['Darwinia PC2', nodeDarwinia],
|
||||
['Dusty', chainDusty],
|
||||
@ -97,6 +98,7 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['Centrifuge Chain Node', nodeCentrifuge],
|
||||
['darwinia crab', nodeCrab],
|
||||
['crust', nodeCrust],
|
||||
['Crust Collator', nodeCrust],
|
||||
['darwinia', nodeDarwinia],
|
||||
['darwinia parachain', nodeDarwinia],
|
||||
['Darwinia Runtime Module Library', nodeDarwinia],
|
||||
@ -174,6 +176,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
rococo: chainRococo,
|
||||
rococoAcala: nodeAcala,
|
||||
rococoBifrost: nodeBifrost,
|
||||
rococoCrust: nodeCrust,
|
||||
rococoDarwinia: nodeDarwinia,
|
||||
rococoKilt: nodeKilt,
|
||||
rococoLaminar: nodeLaminar,
|
||||
|
||||
@ -53,6 +53,7 @@
|
||||
"rpc.rococo": "Rococo",
|
||||
"rpc.rococo.acala": "Mandala PC2",
|
||||
"rpc.rococo.bifrost": "Bifrost PC1",
|
||||
"rpc.rococo.crust": "Crust PC1",
|
||||
"rpc.rococo.darwinia": "Darwinia PC2",
|
||||
"rpc.rococo.encointer": "Encointer PC1",
|
||||
"rpc.rococo.kilt": "KILT PC1",
|
||||
|
||||
@ -1325,6 +1325,7 @@
|
||||
"rpc.polkadot.w3f": "Polkadot",
|
||||
"rpc.rococo": "Rococo",
|
||||
"rpc.rococo.acala": "Mandala PC1",
|
||||
"rpc.rococo.crust": "Crust PC1",
|
||||
"rpc.rococo.darwinia": "Darwinia PC1",
|
||||
"rpc.rococo.laminar": "Turbulence PC1",
|
||||
"rpc.rococo.plasm": "Plasm PC1",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user