Add Pontem Testnet support (#5380)
This commit is contained in:
parent
16fd470bda
commit
7a15443e8d
@ -23,7 +23,8 @@
|
||||
"@sora-substrate/type-definitions": "^1.3.13",
|
||||
"@subsocial/types": "^0.5.2",
|
||||
"@zeitgeistpm/type-defs": "^0.1.51",
|
||||
"moonbeam-types-bundle": "1.1.17"
|
||||
"moonbeam-types-bundle": "1.1.17",
|
||||
"pontem-types-bundle": "^1.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"i18next": "^19.9.2"
|
||||
|
||||
@ -64,6 +64,7 @@ import polkabtc from './polkabtc';
|
||||
import polkadex from './polkadex';
|
||||
import polkafoundry from './polkafoundry';
|
||||
import polymesh from './polymesh';
|
||||
import pontem from './pontem';
|
||||
import prism from './prism';
|
||||
import realis from './realis';
|
||||
import riochain from './riochain';
|
||||
@ -167,6 +168,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
plasm,
|
||||
'plasm-parachain': plasmParachain,
|
||||
polymesh,
|
||||
pontem,
|
||||
prism,
|
||||
realis,
|
||||
'riochain-runtime': riochain,
|
||||
|
||||
6
packages/apps-config/src/api/spec/pontem.ts
Normal file
6
packages/apps-config/src/api/spec/pontem.ts
Normal file
@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { pontemDefinitions } from 'pontem-types-bundle';
|
||||
|
||||
export default pontemDefinitions;
|
||||
@ -280,6 +280,13 @@ export function createTesting (t: TFunction): LinkOption[] {
|
||||
Polymath: 'wss://itn-rpc.polymesh.live'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'pontem',
|
||||
text: t('rpc.pontem', 'Pontem', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
Pontem: 'wss://testnet.pontem.network/wss'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'prism',
|
||||
text: t('rpc.test.prism', 'Prism', { ns: 'apps-config' }),
|
||||
|
||||
@ -38,6 +38,7 @@ const chainPolkabtc = '#510101';
|
||||
const chainPolkadex = '#7C30DD';
|
||||
const chainPolkadot = '#e6007a';
|
||||
const chainPolkaFoundry = '#ff527c';
|
||||
const chainPontem = '#A92FAC';
|
||||
const chainPrism = 'linear-gradient(45deg, rgba(63,94,251,1) 0%, rgba(252,70,107,1) 100%)';
|
||||
const chainKilt = '#8c175b';
|
||||
const chainKonomi = '#007aff';
|
||||
@ -104,6 +105,7 @@ const nodePangolin = '#5744ff';
|
||||
const nodeParami = '#ee06e2';
|
||||
const nodePolkadex = '#7C30DD';
|
||||
const nodePolymesh = '#1348e4';
|
||||
const nodePontem = '#A92FAC';
|
||||
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';
|
||||
@ -200,6 +202,7 @@ export const chainColors: Record<string, string> = [
|
||||
['Polkadex Testnet', chainPolkadex],
|
||||
['Polkadot CC1', chainPolkadot],
|
||||
['Polkadot', chainPolkadot],
|
||||
['Pontem Testnet', chainPontem],
|
||||
['Prism Testnet', chainPrism],
|
||||
['Prism PC1', chainPrism],
|
||||
['ReAlis Network', nodeRealis],
|
||||
@ -266,6 +269,7 @@ export const nodeColors: Record<string, string> = [
|
||||
['Patract Node', nodeJupiter],
|
||||
['Polkadex Node', nodePolkadex],
|
||||
['Polymesh Node', nodePolymesh],
|
||||
['Pontem', nodePontem],
|
||||
['Prism Node', nodePrism],
|
||||
['Prism Collator', nodePrism],
|
||||
['ReAlis Network', nodeRealis],
|
||||
|
||||
@ -79,6 +79,7 @@ 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 nodePontem from './nodes/pontem.svg';
|
||||
import nodePrism from './nodes/prism.png';
|
||||
import nodeRealis from './nodes/realis.png';
|
||||
import nodeRiochain from './nodes/riochain.svg';
|
||||
@ -161,6 +162,7 @@ export const chainLogos: Record<string, unknown> = [
|
||||
['PolkaBTC Staging', nodePolkaBTC],
|
||||
['Polkadex Testnet', nodePolkadex],
|
||||
['PolkaFoundry PC1', nodePolkaFoundry],
|
||||
['Pontem Testnet', nodePontem],
|
||||
['Prism Testnet', nodePrism],
|
||||
['Prism PC1', nodePrism],
|
||||
['Phala PC1', nodePhala],
|
||||
@ -258,6 +260,7 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['Pangolin', nodePangolin],
|
||||
['Patract Node', nodeJupiter],
|
||||
['Polkadex Node', nodePolkadex],
|
||||
['Pontem', nodePontem],
|
||||
['Prism Node', nodePrism],
|
||||
['Prism Collator', nodePrism],
|
||||
['parity-polkadot', nodePolkadot],
|
||||
@ -272,6 +275,7 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['polkadot-js', nodePolkadotJs],
|
||||
['PolkaFoundry Node', nodePolkaFoundry],
|
||||
['PolkaFoundry Parachain Collator', nodePolkaFoundry],
|
||||
['Pontem', nodePontem],
|
||||
['ReAlis Network', nodeRealis],
|
||||
['Rio Defi Chain Node', nodeRiochain],
|
||||
['RioChain Staging', nodeRiochain],
|
||||
@ -380,6 +384,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
polkadot: nodePolkadot,
|
||||
polkafoundry: nodePolkaFoundry,
|
||||
polymesh: nodePolymesh,
|
||||
pontem: nodePontem,
|
||||
prism: nodePrism,
|
||||
realis: nodeRealis,
|
||||
riochain: nodeRiochain,
|
||||
|
||||
13
packages/apps-config/src/ui/logos/nodes/pontem.svg
Normal file
13
packages/apps-config/src/ui/logos/nodes/pontem.svg
Normal file
@ -0,0 +1,13 @@
|
||||
<svg width="620" height="620" viewBox="0 0 620 620" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<title>Pontem</title>
|
||||
<path d="M309.527 17C148.25 17 17 148.194 17 309.535C17 425.477 84.8591 525.928 182.924 573.235V573.413H183.341C221.59 591.764 264.367 602.071 309.527 602.071C470.805 602.071 602.055 470.817 602.055 309.535C602.055 148.254 470.805 17 309.527 17ZM309.527 41.0105C457.578 41.0105 578.045 161.48 578.045 309.535C578.045 352.075 568.036 392.291 550.401 428.099C511.735 409.331 472.473 395.39 432.854 385.976V161.957C432.854 154.212 426.658 147.896 419.091 147.896H369.88H245.958H196.746C189.12 147.896 182.984 154.212 182.984 161.957V386.989C144.556 396.462 106.367 410.106 68.7732 428.099C51.0786 392.291 41.0693 352.075 41.0693 309.476C41.0098 161.48 161.476 41.0105 309.527 41.0105ZM84.2037 455.267C116.018 439.478 149.084 427.384 182.924 419.043V546.245C142.828 524.737 108.869 493.279 84.2037 455.267ZM245.958 570.375V270.63C245.958 236.014 274.376 207.178 308.336 207.178C342.295 207.178 369.88 235.24 369.88 269.915C369.88 270.153 369.82 270.392 369.82 270.63H369.88V374.894C340.925 371.617 311.851 370.426 282.837 371.975L258.886 406.65C296.122 403.493 332.346 403.79 368.093 407.782C368.39 407.842 368.748 407.842 369.046 407.842C369.284 407.842 369.522 407.901 369.88 407.961C376.076 408.676 398.834 411.595 419.568 416.779L369.88 433.64V571.09C350.457 575.558 330.32 578.001 309.587 578.001C287.603 578.06 266.333 575.32 245.958 570.375ZM432.854 547.913V419.579C466.694 428.099 500.236 440.551 533.838 456.876C508.577 495.185 473.784 526.643 432.854 547.913Z" fill="url(#paint0_linear)"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear" x1="309.523" y1="614.834" x2="309.523" y2="-72.7024" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.0858" stop-color="#8D29C1"/>
|
||||
<stop offset="0.2383" stop-color="#942BBB"/>
|
||||
<stop offset="0.4667" stop-color="#A92FAC"/>
|
||||
<stop offset="0.7413" stop-color="#CA3793"/>
|
||||
<stop offset="1" stop-color="#F03F77"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@ -23,6 +23,13 @@
|
||||
"rpc.kylin-node.co.uk": "Kylin Network",
|
||||
"rpc.manta": "Manta Testnet",
|
||||
"rpc.polkadot.parity": "Polkadot",
|
||||
"rpc.polkadot.patractlabs": "Polkadot",
|
||||
"rpc.polkadot.w3f": "Polkadot",
|
||||
"rpc.polymesh": "Polymesh ITN",
|
||||
"rpc.pontem": "Pontem",
|
||||
"rpc.prism": "Prism",
|
||||
"rpc.realis": "Realis Network",
|
||||
"rpc.riochain": "RioChain",
|
||||
"rpc.prod.centrifuge": "Centrifuge",
|
||||
"rpc.prod.chainx": "ChainX",
|
||||
"rpc.prod.crab": "Darwinia Crab",
|
||||
@ -76,6 +83,7 @@
|
||||
"rpc.rococo.plasm": "Plasm PC2",
|
||||
"rpc.rococo.polkabtc": "PolkaBTC PC1",
|
||||
"rpc.rococo.polkafoundry": "PolkaFoundry PC1",
|
||||
"rpc.rococo.pontem": "Pontem Testnet",
|
||||
"rpc.rococo.prism": "Prism PC1",
|
||||
"rpc.rococo.robonomics": "Robonomics PC2",
|
||||
"rpc.rococo.statemint": "Statemint",
|
||||
@ -142,4 +150,4 @@
|
||||
"rpc.westend.moonshadow": "Moonshadow",
|
||||
"rpc.westend.shell": "Shell",
|
||||
"ss58.default": "Default for the connected node"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1327,6 +1327,7 @@
|
||||
"rpc.polkadot.parity": "Polkadot",
|
||||
"rpc.polkadot.w3f": "Polkadot",
|
||||
"rpc.polymesh": "Polymesh",
|
||||
"rpc.pontem": "Pontem",
|
||||
"rpc.rococo": "Rococo",
|
||||
"rpc.rococo.acala": "Mandala PC1",
|
||||
"rpc.rococo.clover": "Clover PC1",
|
||||
|
||||
@ -1288,6 +1288,7 @@
|
||||
"rpc.plasm": "플라즈마",
|
||||
"rpc.polkadot.parity": "폴카닷",
|
||||
"rpc.polkadot.w3f": "폴카닷",
|
||||
"rpc.pontem": "다리",
|
||||
"rpc.rococo": "로코코",
|
||||
"rpc.rococo.acala": "만달라 PC1",
|
||||
"rpc.rococo.darwinia": "다위니아 PC2",
|
||||
|
||||
12
yarn.lock
12
yarn.lock
@ -2540,6 +2540,7 @@ __metadata:
|
||||
"@zeitgeistpm/type-defs": ^0.1.51
|
||||
i18next: ^19.9.2
|
||||
moonbeam-types-bundle: 1.1.17
|
||||
pontem-types-bundle: ^1.0.4
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -14997,6 +14998,17 @@ fsevents@~2.1.2:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"pontem-types-bundle@npm:^1.0.4":
|
||||
version: 1.0.4
|
||||
resolution: "pontem-types-bundle@npm:1.0.4"
|
||||
dependencies:
|
||||
"@polkadot/keyring": ^6.5.2-1
|
||||
"@polkadot/types": ^4.11.3-0
|
||||
typescript: ^4.2.4
|
||||
checksum: dafd1726ec64a210e0f2f6f40826f8a8405f19db3a5bc0b25fffcf9d79d3ed4ffe1a1d8e832d64a04f311ad9a8b967fa4e8da70bcd21108d29fd0e230517d68c
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"popper.js@npm:^1.14.4":
|
||||
version: 1.16.1
|
||||
resolution: "popper.js@npm:1.16.1"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user