diff --git a/packages/apps-config/src/api/spec/centrifuge.ts b/packages/apps-config/src/api/spec/centrifuge.ts new file mode 100644 index 0000000000..316280dfb1 --- /dev/null +++ b/packages/apps-config/src/api/spec/centrifuge.ts @@ -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' + }, + ProxyType: { + _enum: [ + 'Any', + 'NonTransfer', + 'Governance', + '_Staking', + 'NonProxy' + ] + }, + RelayChainAccountId: 'AccountId', + RootHashOf: 'Hash' + } + } + ] +}; + +export default definitions; diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index d7db77822c..dca2ef05fa 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -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 = { 'bitcountry-node': bitcountry, 'bitcountry-parachain': bitcountryParachain, canvas, + centrifuge, 'centrifuge-chain': centrifugeChain, chainx, 'chainx-parachain': chainx, diff --git a/packages/apps-config/src/endpoints/productionRelayPolkadot.ts b/packages/apps-config/src/endpoints/productionRelayPolkadot.ts index dc477eff8e..e9d60abb5e 100644 --- a/packages/apps-config/src/endpoints/productionRelayPolkadot.ts +++ b/packages/apps-config/src/endpoints/productionRelayPolkadot.ts @@ -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', diff --git a/packages/apps-config/src/links/subid.ts b/packages/apps-config/src/links/subid.ts index 183dc06242..5045ae6cfe 100644 --- a/packages/apps-config/src/links/subid.ts +++ b/packages/apps-config/src/links/subid.ts @@ -9,6 +9,7 @@ export default { chains: { Altair: 'altair', Bifrost: 'bifrost', + Centrifuge: 'centrifuge', 'Centrifuge Mainnet': 'centrifuge', ChainX: 'chainx', Edgeware: 'edgeware', diff --git a/packages/apps-config/src/ui/colors.ts b/packages/apps-config/src/ui/colors.ts index 58a38345b8..df59f6355b 100644 --- a/packages/apps-config/src/ui/colors.ts +++ b/packages/apps-config/src/ui/colors.ts @@ -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 = Object.entries({ 'acala mandala pc2': chainRoccoMandala, 'Aleph Zero': chainAleph, 'Aleph Zero Testnet': chainAleph, + Altair: chainAltair, 'Apron PC1': chainApron, 'Ares Gladios': chainAresGladios, 'Ares Odyssey': nodeOdyssey, diff --git a/packages/apps-config/src/ui/logos/index.ts b/packages/apps-config/src/ui/logos/index.ts index ebbf202f50..6daf56fa14 100644 --- a/packages/apps-config/src/ui/logos/index.ts +++ b/packages/apps-config/src/ui/logos/index.ts @@ -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, diff --git a/packages/apps/public/locales/en/apps-config.json b/packages/apps/public/locales/en/apps-config.json index 49141e8d8c..81079b82d8 100644 --- a/packages/apps/public/locales/en/apps-config.json +++ b/packages/apps/public/locales/en/apps-config.json @@ -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" -} \ No newline at end of file +}