Add Phala testnet PoC2 to testnet list (#3547)
* Add Phala testnet PoC2 to testnet list * Fix for lint
This commit is contained in:
parent
6c663f2ed9
commit
f1d54e6812
@ -3,7 +3,9 @@
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import Beresheet from './beresheet';
|
||||
import Phala from './phala';
|
||||
|
||||
export default {
|
||||
Beresheet
|
||||
Beresheet,
|
||||
'Phala PoC-2': Phala
|
||||
};
|
||||
|
||||
7
packages/apps-config/src/api/chain/phala.ts
Normal file
7
packages/apps-config/src/api/chain/phala.ts
Normal file
@ -0,0 +1,7 @@
|
||||
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
export default {
|
||||
SequenceType: 'u32'
|
||||
};
|
||||
@ -211,6 +211,11 @@ function createTest (t: TFunction): LinkOption[] {
|
||||
info: 'laminar',
|
||||
text: t<string>('rpc.turbulence', 'Turbulence (Laminar Testnet, hosted by Laminar)', { ns: 'apps-config' }),
|
||||
value: 'wss://testnet-node-1.laminar-chain.laminar.one/ws'
|
||||
},
|
||||
{
|
||||
info: 'phala',
|
||||
text: t<string>('rpc.phala', 'Phala PoC-2 (Phala Testnet, hosted by Phala Network)', { ns: 'apps-config' }),
|
||||
value: 'wss://poc2.phala.network/ws'
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
@ -17,6 +17,7 @@ const chainRoccoAcala = '#173DC9';
|
||||
const chainRoccoDarwinia = '#7C30DD';
|
||||
const laminarRoccoAcala = '#004FFF';
|
||||
const chainWestend = '#da68a7';
|
||||
const chainPhala = '#4dc56a';
|
||||
|
||||
const nodeCentrifuge = '#fcc367';
|
||||
const nodeEdgeware = '#0a95df';
|
||||
@ -41,7 +42,8 @@ const chainColors: Record<string, any> = [
|
||||
['acala mandala pc1', chainRoccoAcala],
|
||||
['darwinia parachain', chainRoccoDarwinia],
|
||||
['laminar turbulence pc1', laminarRoccoAcala],
|
||||
['Westend', chainWestend]
|
||||
['Westend', chainWestend],
|
||||
['phala poc 2', chainPhala]
|
||||
].reduce((colors, [chain, color]): Record<string, any> => ({
|
||||
...colors,
|
||||
[chain.toLowerCase()]: color
|
||||
|
||||
@ -11,7 +11,8 @@ const identityNodes: Record<string, string> = [
|
||||
['parity-polkadot', 'polkadot'],
|
||||
['polkadot-js', 'polkadot'],
|
||||
['subsocial-node', 'substrate'],
|
||||
['substrate-node', 'substrate']
|
||||
['substrate-node', 'substrate'],
|
||||
['phala-substrate-node', 'phala']
|
||||
].reduce((icons, [spec, icon]): Record<string, string> => ({
|
||||
...icons,
|
||||
[spec.toLowerCase().replace(/-/g, ' ')]: icon
|
||||
|
||||
@ -27,6 +27,7 @@ import nodeSubsocial from './nodes/subsocial.svg';
|
||||
import nodeSubstrate from './nodes/substrate-hexagon.svg';
|
||||
import nodeKulupu from './nodes/kulupu.svg';
|
||||
import nodeLaminar from './nodes/laminar-circle.svg';
|
||||
import nodePhala from './nodes/phala.svg';
|
||||
|
||||
// extensions
|
||||
import extensionPolkadotJs from './extensions/polkadot-js.svg';
|
||||
@ -73,7 +74,8 @@ const nodeLogos: Record<string, any> = [
|
||||
['parity-polkadot', nodePolkadot],
|
||||
['polkadot-js', nodePolkadotJs],
|
||||
['subsocial-node', nodeSubsocial],
|
||||
['substrate-node', nodeSubstrate]
|
||||
['substrate-node', nodeSubstrate],
|
||||
['phala-substrate-node', nodePhala]
|
||||
].reduce((logos, [node, logo]): Record<string, any> => ({
|
||||
...logos,
|
||||
[(node as string).toLowerCase().replace(/-/g, ' ')]: logo
|
||||
@ -92,6 +94,7 @@ const namedLogos: Record<string, any> = {
|
||||
kusama: chainKusama,
|
||||
laminar: nodeLaminar,
|
||||
nodle: nodeNodle,
|
||||
phala: nodePhala,
|
||||
polkadot: nodePolkadot,
|
||||
rococo: chainRococo,
|
||||
rococoAcala: nodeAcala,
|
||||
|
||||
3
packages/apps-config/src/ui/logos/nodes/phala.svg
Normal file
3
packages/apps-config/src/ui/logos/nodes/phala.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="1737" height="1737" viewBox="0 0 1737 1737" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M868.5 1737C1348.16 1737 1737 1348.16 1737 868.5C1737 388.841 1348.16 0 868.5 0C388.841 0 0 388.841 0 868.5C0 1348.16 388.841 1737 868.5 1737ZM868.652 1340.96C877.712 1340.96 877.712 1340.96 883.941 1335.29C886.958 1332.55 888.513 1331.14 889.316 1329.38C890.17 1327.51 890.17 1325.24 890.17 1320.57V1068.01C890.17 1061.69 890.17 1059.29 891.251 1057.56C891.913 1056.51 892.98 1055.71 894.701 1054.42C896.185 1053.31 897.183 1052.56 898.292 1052.05C900.569 1051.02 903.313 1051.02 911.689 1051.02H1031.74C1065.94 1051.02 1082.93 1051.02 1098.73 1046.69C1114.32 1042.42 1128.76 1033.92 1157.45 1017.04C1215.22 983.068 1215.22 983.068 1249.19 925.307L1249.19 925.306C1266.07 896.615 1274.56 882.176 1278.84 866.58C1283.17 850.779 1283.17 833.792 1283.17 799.593C1283.17 765.51 1283.17 748.522 1278.88 732.695C1274.62 716.967 1266.13 702.385 1249.19 673.313C1215.22 614.986 1215.22 614.986 1157.45 581.009C1128.76 564.132 1114.32 555.638 1098.73 551.363C1082.93 547.032 1065.94 547.032 1031.74 547.032H781.445C773.517 547.032 773.517 547.032 767.288 553.261C764.211 556.338 762.654 557.895 761.866 559.774C761.059 561.7 761.059 563.965 761.059 568.551V672.747C761.059 677.332 761.059 679.597 761.866 681.523C762.654 683.403 764.211 684.96 767.288 688.036C773.517 694.265 773.517 694.265 781.445 694.265H1031.74C1074.78 694.265 1074.78 694.265 1105.92 724.844C1121.42 740.055 1129.2 747.699 1133.11 756.977C1137.07 766.352 1137.07 777.394 1137.07 799.593C1137.07 820.98 1137.07 831.739 1133.25 840.904C1129.38 850.182 1121.59 857.826 1105.92 873.209L1105.92 873.21C1074.78 903.789 1074.78 903.789 1031.74 903.789H781.445C773.517 903.789 773.517 903.789 767.288 910.018C764.211 913.094 762.654 914.651 761.866 916.531C761.059 918.457 761.059 920.722 761.059 925.307V1320.57C761.059 1324.35 761.059 1326.33 761.735 1328.04C762.476 1329.92 764.03 1331.47 767.288 1334.73C773.517 1340.96 773.517 1340.96 781.445 1340.96H868.652ZM562.387 560.728C562.387 553.146 556.241 547 548.659 547H466.341C458.759 547 452.613 553.146 452.613 560.728L452.612 621.612L391.728 621.613C384.146 621.613 378 627.759 378 635.341V717.659C378 725.241 384.146 731.387 391.728 731.387L452.612 731.387L452.613 792.272C452.613 799.854 458.759 806 466.341 806H548.659C556.241 806 562.387 799.854 562.387 792.272L562.387 731.387L623.272 731.387C630.854 731.387 637 725.241 637 717.659V635.341C637 627.759 630.854 621.613 623.272 621.613L562.387 621.612L562.387 560.728Z" fill="black"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
Loading…
Reference in New Issue
Block a user