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
1 change: 1 addition & 0 deletions packages/apps-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@laminar/type-definitions": "^0.3.1",
"@phala/typedefs": "0.1.0",
"@polkadot/networks": "^6.3.2-9",
"@polymathnetwork/polymesh-types": "^0.0.2",
"@snowfork/snowbridge-types": "^0.2.3",
"@sora-substrate/type-definitions": "^1.2.1",
"@subsocial/types": "^0.5.0-substrate2.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/apps-config/src/api/spec/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ import plasmParachain from './plasm-parachain';
import polkabtc from './polkabtc';
import polkadex from './polkadex';
import polkafoundry from './polkafoundry';
import polymesh from './polymesh';
import prism from './prism';
import realis from './realis';
import riochain from './riochain';
Expand Down Expand Up @@ -160,6 +161,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
plasm,
'plasm-parachain': plasmParachain,
polkafoundry,
polymesh,
prism,
realis,
'riochain-runtime': riochain,
Expand Down
19 changes: 19 additions & 0 deletions packages/apps-config/src/api/spec/polymesh.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { OverrideBundleDefinition } from '@polkadot/types/types';

import schema from '@polymathnetwork/polymesh-types';

const definitions: OverrideBundleDefinition = {
rpc: schema.rpc,
types: [
{
// on all versions
minmax: [0, undefined],
types: schema.types
}
]
};

export default definitions;
7 changes: 7 additions & 0 deletions packages/apps-config/src/endpoints/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ export function createTesting (t: TFunction): LinkOption[] {
Interlay: 'wss://beta.polkabtc.io/api/parachain'
}
},
{
info: 'polymesh',
text: t('rpc.polymesh', 'Polymesh ITN', { ns: 'apps-config' }),
providers: {
Polymath: 'wss://itn-rpc.polymesh.live'
}
},
{
info: 'prism',
text: t('rpc.prism', 'Prism', { ns: 'apps-config' }),
Expand Down
2 changes: 2 additions & 0 deletions packages/apps-config/src/ui/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const nodeNFTMart = '#307182';
const nodeNodle = '#1ab394';
const nodeParami = '#ee06e2';
const nodePolkadex = '#7C30DD';
const nodePolymesh = '#1348e4';
const nodePrism = 'linear-gradient(45deg, rgba(63,94,251,1) 0%, rgba(252,70,107,1) 100%)';
const nodeRealis = 'linear-gradient(45deg, #E8AAC9 0%, #C4D9E7 50%, #EFD6E0 100%)';
const nodeRiochain = '#1A3BB3';
Expand Down Expand Up @@ -235,6 +236,7 @@ export const nodeColors: Record<string, any> = [
['Parami Collator', nodeParami],
['Patract Node', nodeJupiter],
['Polkadex Node', nodePolkadex],
['Polymesh Node', nodePolymesh],
['Prism Node', nodePrism],
['Prism Collator', nodePrism],
['ReAlis Network', nodeRealis],
Expand Down
3 changes: 2 additions & 1 deletion packages/apps-config/src/ui/identityIcons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export const identityNodes: Record<string, string> = [
['phala-substrate-node', 'substrate'],
['polkadot-js', 'polkadot'],
['subsocial-node', 'substrate'],
['substrate-node', 'substrate']
['substrate-node', 'substrate'],
['polymesh-node', 'substrate']
].reduce((icons, [spec, icon]): Record<string, string> => ({
...icons,
[spec.toLowerCase().replace(/-/g, ' ')]: icon
Expand Down
3 changes: 3 additions & 0 deletions packages/apps-config/src/ui/logos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ import nodePolkadex from './nodes/polkadex.svg';
import nodePolkadot from './nodes/polkadot-circle.svg';
import nodePolkadotJs from './nodes/polkadot-js.svg';
import nodePolkaFoundry from './nodes/polkafoundry.svg';
import nodePolymesh from './nodes/polymesh.svg';
import nodePrism from './nodes/prism.png';
import nodeRealis from './nodes/realis.png';
import nodeRiochain from './nodes/riochain.svg';
Expand Down Expand Up @@ -143,6 +144,7 @@ export const chainLogos: Record<string, unknown> = [
['PolkaBTC Staging', nodePolkaBTC],
['Polkadex Testnet', nodePolkadex],
['PolkaFoundry PC1', nodePolkaFoundry],
['Polymesh', nodePolymesh],
['Prism Testnet', nodePrism],
['Prism PC1', nodePrism],
['Phala PC1', nodePhala],
Expand Down Expand Up @@ -333,6 +335,7 @@ export const namedLogos: Record<string, unknown> = {
polkadex: nodePolkadex,
polkadot: nodePolkadot,
polkafoundry: nodePolkaFoundry,
polymesh: nodePolymesh,
prism: nodePrism,
realis: nodeRealis,
riochain: nodeRiochain,
Expand Down
1 change: 1 addition & 0 deletions packages/apps-config/src/ui/logos/nodes/polymesh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/apps/public/locales/en/apps-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"rpc.polkadot.parity": "Polkadot",
"rpc.polkadot.patractlabs": "Polkadot",
"rpc.polkadot.w3f": "Polkadot",
"rpc.polymesh": "Polymesh ITN",
"rpc.prism": "Prism",
"rpc.realis": "Realis Network",
"rpc.riochain": "RioChain",
Expand Down
1 change: 1 addition & 0 deletions packages/apps/public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,7 @@
"rpc.polkabtc": "PolkaBTC",
"rpc.polkadot.parity": "Polkadot",
"rpc.polkadot.w3f": "Polkadot",
"rpc.polymesh": "Polymesh",
"rpc.rococo": "Rococo",
"rpc.rococo.acala": "Mandala PC1",
"rpc.rococo.clover": "Clover PC1",
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2513,6 +2513,7 @@ __metadata:
"@laminar/type-definitions": ^0.3.1
"@phala/typedefs": 0.1.0
"@polkadot/networks": ^6.3.2-9
"@polymathnetwork/polymesh-types": ^0.0.2
"@snowfork/snowbridge-types": ^0.2.3
"@sora-substrate/type-definitions": ^1.2.1
"@subsocial/types": ^0.5.0-substrate2.0
Expand Down Expand Up @@ -3247,6 +3248,13 @@ __metadata:
languageName: node
linkType: hard

"@polymathnetwork/polymesh-types@npm:^0.0.2":
version: 0.0.2
resolution: "@polymathnetwork/polymesh-types@npm:0.0.2"
checksum: 5dd78f39c4a1216e34dfe311c46bd892de2061db16899c8d8d9345d31f607ecec63a1a65bd9d79b6bacb7ae105597fefd7187f039216adc4d81049018f2e0f8b
languageName: node
linkType: hard

"@rushstack/eslint-patch@npm:^1.0.6":
version: 1.0.6
resolution: "@rushstack/eslint-patch@npm:1.0.6"
Expand Down