Add polkabtc (#4264)
This commit is contained in:
parent
89e2ad5965
commit
45b05428d7
@ -12,6 +12,7 @@
|
||||
"@acala-network/type-definitions": "^0.5.1",
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@edgeware/node-types": "^3.0.11",
|
||||
"@interlay/polkabtc-types": "^0.2.9",
|
||||
"@laminar/type-definitions": "^0.2.0-beta.141",
|
||||
"@polkadot/networks": "^5.1.1",
|
||||
"@sora-substrate/type-definitions": "^0.1.8",
|
||||
|
||||
@ -5,11 +5,13 @@ import acala from './acala';
|
||||
import equilibrium from './equilibrium';
|
||||
import laminar from './laminar';
|
||||
import moonbeam from './moonbeam';
|
||||
import polkabtc from './polkabtc';
|
||||
import soraSubstrate from './soraSubstrate';
|
||||
|
||||
export default {
|
||||
Equilibrium: equilibrium,
|
||||
acala,
|
||||
'btc-parachain': polkabtc,
|
||||
laminar,
|
||||
mandala: acala,
|
||||
'moonbase-alphanet': moonbeam,
|
||||
|
||||
8
packages/apps-config/src/api/bundle/spec/polkabtc.ts
Normal file
8
packages/apps-config/src/api/bundle/spec/polkabtc.ts
Normal file
@ -0,0 +1,8 @@
|
||||
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import definitions from '@interlay/polkabtc-types';
|
||||
|
||||
export default definitions as OverrideBundleDefinition;
|
||||
6
packages/apps-config/src/api/spec/polkabtc.ts
Normal file
6
packages/apps-config/src/api/spec/polkabtc.ts
Normal file
@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import definitions from '@interlay/polkabtc-types';
|
||||
|
||||
export default { rpc: definitions.rpc, types: definitions.types[0].types };
|
||||
@ -127,6 +127,12 @@ export function createTesting (t: TFunction): LinkOption[] {
|
||||
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Phala Network' } }),
|
||||
value: 'wss://poc3a.phala.network/ws'
|
||||
},
|
||||
{
|
||||
info: 'polkabtc',
|
||||
text: t('rpc.polkabtc', 'PolkaBTC', { ns: 'apps-config' }),
|
||||
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Interlay' } }),
|
||||
value: 'wss://alpha.polkabtc.io/api/parachain'
|
||||
},
|
||||
{
|
||||
info: 'laminar',
|
||||
text: t('rpc.turbulence', 'Turbulence', { ns: 'apps-config' }),
|
||||
|
||||
@ -16,6 +16,7 @@ const chainHanonycash = '#0099CC';
|
||||
const chainKulupu = '#003366';
|
||||
const chainPhala = '#a7e300';
|
||||
const chainPlasm = '#2096F3';
|
||||
const chainPolkabtc = '#510101';
|
||||
const chainPolkadot = '#e6007a';
|
||||
const chainKusama = '#000000';
|
||||
const chainRocco = '#6f36dc';
|
||||
@ -66,6 +67,7 @@ export const chainColors: Record<string, any> = [
|
||||
['Moonbase Alpha', nodeMoonbeam],
|
||||
['Phala poc 3', chainPhala],
|
||||
['Plasm', chainPlasm],
|
||||
['PolkaBTC', chainPolkabtc],
|
||||
['Polkadot', chainPolkadot],
|
||||
['Polkadot CC1', chainPolkadot],
|
||||
['Rococo', chainRocco],
|
||||
|
||||
@ -40,6 +40,7 @@ import moonbeam from './nodes/moonbeam.png';
|
||||
import nodeNodle from './nodes/nodle.svg';
|
||||
import nodePhala from './nodes/phala.svg';
|
||||
import nodePlasm from './nodes/plasm.png';
|
||||
import nodePolkaBTC from './nodes/polkabtc.png';
|
||||
import nodePolkadot from './nodes/polkadot-circle.svg';
|
||||
import nodePolkadotJs from './nodes/polkadot-js.svg';
|
||||
import nodeRobonomics from './nodes/robonomics.svg';
|
||||
@ -62,6 +63,7 @@ export const chainLogos: Record<string, unknown> = [
|
||||
['Kusama CC2', chainKusama],
|
||||
['Kusama CC3', chainKusama],
|
||||
['Moonbase Alpha', moonbeam],
|
||||
['PolkaBTC', nodePolkaBTC],
|
||||
['Rococo', chainRococo],
|
||||
['Tick', chainRococoTick],
|
||||
['Track', chainRococoTrack],
|
||||
@ -144,6 +146,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
nodle: nodeNodle,
|
||||
phala: nodePhala,
|
||||
plasm: nodePlasm,
|
||||
polkabtc: nodePolkaBTC,
|
||||
polkadot: nodePolkadot,
|
||||
rococo: chainRococo,
|
||||
rococoAcala: nodeAcala,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/polkabtc.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/polkabtc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
@ -42,6 +42,7 @@
|
||||
"rpc.nodle-main": "Nodle Main",
|
||||
"rpc.phala": "Phala PoC-3",
|
||||
"rpc.plasm": "Plasm",
|
||||
"rpc.polkabtc": "PolkaBTC",
|
||||
"rpc.polkadot.onfinality": "Polkadot",
|
||||
"rpc.polkadot.parity": "Polkadot",
|
||||
"rpc.polkadot.patractlabs": "Polkadot",
|
||||
@ -62,4 +63,4 @@
|
||||
"rpc.westend": "Westend",
|
||||
"rpc.zero": "zero",
|
||||
"ss58.default": "Default for the connected node"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1319,6 +1319,7 @@
|
||||
"rpc.nodle-main": "Nodle Main",
|
||||
"rpc.phala": "Phala PoC-3",
|
||||
"rpc.plasm": "Plasm",
|
||||
"rpc.polkabtc": "PolkaBTC",
|
||||
"rpc.polkadot.parity": "Polkadot",
|
||||
"rpc.polkadot.w3f": "Polkadot",
|
||||
"rpc.rococo": "Rococo",
|
||||
@ -1519,4 +1520,4 @@
|
||||
"{{threshold}}, not passing": "{{seuil} }, ne dépassant pas",
|
||||
"{{threshold}}, passing": "{{seuil}}, passant",
|
||||
"{{value}}x voting balance, locked for {{lock}}x enactment ({{period}} days)": "{{value}} x solde de vote, verrouillé pendant {{lock}} x décret ({{period}} jours)"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1567,6 +1567,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@interlay/polkabtc-types@npm:^0.2.9":
|
||||
version: 0.2.9
|
||||
resolution: "@interlay/polkabtc-types@npm:0.2.9"
|
||||
checksum: bbe3b7cb10a0543ba7e7d1a3139510e7403cd4024029a8197f5728440834c9ec5c6c1df85c20cfb7d5dc9d86835a772f19ab911e551501ee11b20d4417058db4
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@istanbuljs/load-nyc-config@npm:^1.0.0":
|
||||
version: 1.1.0
|
||||
resolution: "@istanbuljs/load-nyc-config@npm:1.1.0"
|
||||
@ -2230,6 +2237,7 @@ __metadata:
|
||||
"@acala-network/type-definitions": ^0.5.1
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@edgeware/node-types": ^3.0.11
|
||||
"@interlay/polkabtc-types": ^0.2.9
|
||||
"@laminar/type-definitions": ^0.2.0-beta.141
|
||||
"@polkadot/networks": ^5.1.1
|
||||
"@sora-substrate/type-definitions": ^0.1.8
|
||||
|
||||
Loading…
Reference in New Issue
Block a user