First stab at preparing CFG as parachain on Polkadot (#6662)
* First Stab at preping CFG as parachain * lint fix
This commit is contained in:
parent
46ab392083
commit
1daa67985a
35
packages/apps-config/src/api/spec/centrifuge.ts
Normal file
35
packages/apps-config/src/api/spec/centrifuge.ts
Normal file
@ -0,0 +1,35 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
const definitions: OverrideBundleDefinition = {
|
||||
types: [
|
||||
{
|
||||
// on all versions
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
ParachainAccountIdOf: 'AccountId',
|
||||
Proof: {
|
||||
leafHash: 'Hash',
|
||||
sortedHashes: 'Vec<Hash>'
|
||||
},
|
||||
ProxyType: {
|
||||
_enum: [
|
||||
'Any',
|
||||
'NonTransfer',
|
||||
'Governance',
|
||||
'_Staking',
|
||||
'NonProxy'
|
||||
]
|
||||
},
|
||||
RelayChainAccountId: 'AccountId',
|
||||
RootHashOf: 'Hash'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -19,6 +19,7 @@ import bitcountry from './bitcountry';
|
||||
import bitcountryPioneer from './bitcountry-pioneer';
|
||||
import bitcountryParachain from './bitcountry-rococo';
|
||||
import canvas from './canvas';
|
||||
import centrifuge from './centrifuge';
|
||||
import centrifugeChain from './centrifuge-chain';
|
||||
import chainx from './chainx';
|
||||
import clover from './clover';
|
||||
@ -144,6 +145,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
'bitcountry-node': bitcountry,
|
||||
'bitcountry-parachain': bitcountryParachain,
|
||||
canvas,
|
||||
centrifuge,
|
||||
'centrifuge-chain': centrifugeChain,
|
||||
chainx,
|
||||
'chainx-parachain': chainx,
|
||||
|
||||
@ -86,6 +86,16 @@ export function createPolkadot (t: TFunction): EndpointOption {
|
||||
Liebi: 'wss://bifrost-dot.liebi.com/ws'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'centrifuge',
|
||||
homepage: 'https://centrifuge.io',
|
||||
paraId: 2031,
|
||||
isUnreachable: true,
|
||||
text: t('rpc.polkadot.centrifuge', 'Centrifuge', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
Centrifuge: 'wss://fullnode.parachain.centrifuge.io'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'clover',
|
||||
homepage: 'https://clover.finance',
|
||||
|
||||
@ -9,6 +9,7 @@ export default {
|
||||
chains: {
|
||||
Altair: 'altair',
|
||||
Bifrost: 'bifrost',
|
||||
Centrifuge: 'centrifuge',
|
||||
'Centrifuge Mainnet': 'centrifuge',
|
||||
ChainX: 'chainx',
|
||||
Edgeware: 'edgeware',
|
||||
|
||||
@ -15,6 +15,7 @@ const emptyColor = '#99999';
|
||||
// alphabetical
|
||||
const chainAcala = '#645AFF';
|
||||
const chainAleph = '#00CCAB';
|
||||
const chainAltair = '#ffb700';
|
||||
const chainApron = 'linear-gradient(45deg, #0099F7 0%, #2E49EB 100%)';
|
||||
const chainAstar = '#1b6dc1d9';
|
||||
const chainAutomata = '#EC7032';
|
||||
@ -201,6 +202,7 @@ export const chainColors: Record<string, string> = Object.entries({
|
||||
'acala mandala pc2': chainRoccoMandala,
|
||||
'Aleph Zero': chainAleph,
|
||||
'Aleph Zero Testnet': chainAleph,
|
||||
Altair: chainAltair,
|
||||
'Apron PC1': chainApron,
|
||||
'Ares Gladios': chainAresGladios,
|
||||
'Ares Odyssey': nodeOdyssey,
|
||||
|
||||
@ -338,6 +338,7 @@ export const nodeLogos = Object.entries({
|
||||
'BitCountry Node': nodeBitCountry,
|
||||
'Calamari Parachain Collator': nodeCalamari,
|
||||
'Canvas Node': nodeCanvas,
|
||||
Centrifuge: nodeCentrifuge,
|
||||
'centrifuge chain': nodeCentrifuge,
|
||||
'Centrifuge Chain Node': nodeCentrifuge,
|
||||
'ChainX Node': nodeChainx,
|
||||
|
||||
@ -56,6 +56,7 @@
|
||||
"rpc.polkadot.acala": "Acala",
|
||||
"rpc.polkadot.astar": "Astar",
|
||||
"rpc.polkadot.bifrost": "Bifrost",
|
||||
"rpc.polkadot.centrifuge": "Centrifuge",
|
||||
"rpc.polkadot.clover": "Clover",
|
||||
"rpc.polkadot.clover-para": "Clover",
|
||||
"rpc.polkadot.coinversation": "Coinversation",
|
||||
@ -239,4 +240,4 @@
|
||||
"testnet.kylin-node.co.uk": "Kylin Testnet",
|
||||
"westend-opal.unique.network": "OPAL by UNIQUE",
|
||||
"westend.kylin-node.co.uk": "Pichiu Network"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user