diff --git a/packages/apps-config/src/api/spec/crown-sterling.ts b/packages/apps-config/src/api/spec/crown-sterling.ts new file mode 100644 index 0000000000..843bf0fa37 --- /dev/null +++ b/packages/apps-config/src/api/spec/crown-sterling.ts @@ -0,0 +1,53 @@ +// Copyright 2017-2021 @polkadot/apps-config authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import type { OverrideBundleDefinition } from '@polkadot/types/types'; + +// structs need to be in order +/* eslint-disable sort-keys */ + +const definitions: OverrideBundleDefinition = { + types: [ + { + // on all versions + minmax: [0, undefined], + types: { + Address: 'MultiAddress', + LookupSource: 'MultiAddress', + AccountInfo: { + nonce: 'Index', + consumers: 'RefCount', + providers: 'RefCount', + data: 'AccountData' + }, + Balance: 'u128', + BalanceOf: 'Balance', + AuthorityOf: 'AccountId', + PaymentId: '[u8;16]', + Payment: { + id: 'PaymentId', + account_id: 'AccountId', + success_url: 'Vec', + failure_url: 'Vec', + paid: 'bool', + pay_to: 'AccountId' + }, + PeerId: '(Vec)', + Amendment: { + statement: 'Vec', + owners: 'Vec' + }, + BlockNumber: 'u32', + VestingSchedule: { + start: 'BlockNumber', + period: 'BlockNumber', + period_count: 'BlockNumber', + per_period: 'Compact' + }, + VestingScheduleOf: 'VestingSchedule' + } + } + ] +}; + +export default definitions; diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index a96ed4b886..6e8a71376f 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -19,6 +19,7 @@ import chainx from './chainx'; import clover from './clover'; import cloverRococo from './clover-rococo'; import crab from './crab'; +import crownSterlingChain from './crown-sterling'; import crust from './crust'; import testPara from './cumulus-test-parachain'; import darwinia from './darwinia'; @@ -129,6 +130,7 @@ const spec: Record = { 'chainx-parachain': chainx, clover, 'clover-rococo': cloverRococo, + 'crown-sterling': crownSterlingChain, crust, 'crust-parachain': crust, 'cumulus-subsocial-parachain': subsocial, diff --git a/packages/apps-config/src/endpoints/production.ts b/packages/apps-config/src/endpoints/production.ts index 06cc764d5c..bf85a92a4e 100644 --- a/packages/apps-config/src/endpoints/production.ts +++ b/packages/apps-config/src/endpoints/production.ts @@ -33,6 +33,13 @@ export function createProduction (t: TFunction, firstOnly: boolean, withSort: bo 'Patract Elara': 'wss://pub.elara.patract.io/chainx' } }, + { + info: 'crown-sterling', + text: t('rpc.prod.crown-sterling', 'Crown Sterling', { ns: 'apps-config' }), + providers: { + 'Crown Sterling': 'wss://blockchain.crownsterling.io' + } + }, { info: 'crust', text: t('rpc.prod.crust', 'Crust Network', { ns: 'apps-config' }), diff --git a/packages/apps-config/src/ui/colors.ts b/packages/apps-config/src/ui/colors.ts index e7bc9717e3..2a44bb696c 100644 --- a/packages/apps-config/src/ui/colors.ts +++ b/packages/apps-config/src/ui/colors.ts @@ -19,6 +19,7 @@ const chainBitCountry = '#191a2e'; const chainBeastEave = '#900048'; const chainComposable = '#FF8500'; const chainCrab = '#7C30DD'; +const chainCrownSterling = '#13264b'; const chainCrust = '#ff8812'; const chainCrustMaxwell = '#2E333B'; const chainClover = 'linear-gradient(to right, #52ad75, #7cc773)'; @@ -104,6 +105,7 @@ const nodeBitCountry = '#191a2e'; const nodeBifrost = '#5a25f0'; const nodeCanvas = '#c77cff'; const nodeCentrifuge = '#fcc367'; +const nodeCrownSterling = '#13264b'; const nodeDotMog = '#020609'; const nodeEdgeware = '#0a95df'; const nodeEncointerNotee = '#cc0000'; @@ -178,6 +180,7 @@ export const chainColors: Record = Object.entries({ ChainX: chainChainx, Clover: chainClover, Composable: chainComposable, + 'Crown Sterling': chainCrownSterling, crust: chainCrust, 'crust maxwell': chainCrustMaxwell, 'Crust PC1': chainCrust, @@ -314,6 +317,7 @@ export const nodeColors = Object.entries({ 'Canvas Node': nodeCanvas, 'centrifuge chain': nodeCentrifuge, 'Centrifuge Chain Node': nodeCentrifuge, + 'Crown Sterling': nodeCrownSterling, 'DOTMog Node': nodeDotMog, 'edgeware node': nodeEdgeware, 'Encointer Node': nodeEncointerNotee, diff --git a/packages/apps-config/src/ui/logos/chains/crown-sterling.png b/packages/apps-config/src/ui/logos/chains/crown-sterling.png new file mode 100644 index 0000000000..b872b4e23d Binary files /dev/null and b/packages/apps-config/src/ui/logos/chains/crown-sterling.png differ diff --git a/packages/apps-config/src/ui/logos/index.ts b/packages/apps-config/src/ui/logos/index.ts index c6a7fee674..abbab93428 100644 --- a/packages/apps-config/src/ui/logos/index.ts +++ b/packages/apps-config/src/ui/logos/index.ts @@ -11,6 +11,7 @@ import { sanitize } from '../util'; import chainAleph from './chains/aleph.svg'; import chainAltair from './chains/altair.svg'; +import chainCrownSterling from './chains/crown-sterling.png'; import chainDusty from './chains/dusty.png'; import chainEquilibrium from './chains/equilibrium.svg'; import chainGenshiro from './chains/genshiro.svg'; @@ -51,6 +52,7 @@ import nodeCentrifuge from './nodes/centrifuge.png'; import nodeChainx from './nodes/chainx.svg'; import nodeClover from './nodes/clover.svg'; import nodeCrab from './nodes/crab.svg'; +import nodeCrownSterling from './nodes/crown-sterling.png'; import nodeCrust from './nodes/crust.svg'; import nodeCrustMaxwell from './nodes/crust-maxwell.svg'; import nodeDarwinia from './nodes/darwinia.png'; @@ -152,6 +154,7 @@ export const chainLogos = Object.entries({ Calamari: nodeCalamari, ChainX: nodeChainx, 'Charcoal Testnet': nodeCentrifuge, + 'Crown Sterling': chainCrownSterling, 'Crust Maxwell': nodeCrustMaxwell, 'Crust PC1': nodeCrust, 'darwinia crab': nodeCrab, @@ -284,6 +287,7 @@ export const nodeLogos = Object.entries({ 'Centrifuge Chain Node': nodeCentrifuge, 'ChainX Node': nodeChainx, 'Clover Node': nodeClover, + 'Crown Sterling': nodeCrownSterling, crust: nodeCrust, 'Crust Collator': nodeCrust, 'Crust Maxwell': nodeCrustMaxwell, @@ -439,6 +443,7 @@ export const namedLogos: Record = { charcoal: nodeCentrifuge, clover: nodeClover, crab: nodeCrab, + 'crown-sterling': chainCrownSterling, crust: nodeCrust, 'Crust Maxwell': nodeCrustMaxwell, darwinia: nodeDarwinia, diff --git a/packages/apps-config/src/ui/logos/nodes/crown-sterling.png b/packages/apps-config/src/ui/logos/nodes/crown-sterling.png new file mode 100644 index 0000000000..b872b4e23d Binary files /dev/null and b/packages/apps-config/src/ui/logos/nodes/crown-sterling.png differ diff --git a/packages/apps/public/locales/en/apps-config.json b/packages/apps/public/locales/en/apps-config.json index 438dfa9817..cbcd59188a 100644 --- a/packages/apps/public/locales/en/apps-config.json +++ b/packages/apps/public/locales/en/apps-config.json @@ -49,6 +49,7 @@ "rpc.prod.centrifuge": "Centrifuge", "rpc.prod.chainx": "ChainX", "rpc.prod.crab": "Darwinia Crab", + "rpc.prod.crown-sterling": "Crown Sterling", "rpc.prod.crust": "Crust Network", "rpc.prod.darwinia": "Darwinia", "rpc.prod.dock-mainnet": "Dock",