Add Polkadex types and Logo to PolkadotJS Apps (#4343)
* Add Polkadex types and Logo * Fixed Bug * Changed Polkadex Runtime Spec name * Fixed Lint Errors * Fixed Lint Errors
This commit is contained in:
parent
ffd68a459b
commit
df14d80174
@ -22,6 +22,7 @@ import kilt from './kilt';
|
||||
import nodle from './nodle';
|
||||
import phala from './phala';
|
||||
import plasm from './plasm';
|
||||
import polkadex from './polkadex';
|
||||
import robonomics from './robonomics';
|
||||
import stablePoc from './stable-poc';
|
||||
import stafi from './stafi';
|
||||
@ -50,6 +51,7 @@ export default {
|
||||
hanonycash,
|
||||
jupiter,
|
||||
'mashnet-node': kilt,
|
||||
'node-polkadex': polkadex,
|
||||
'nodle-chain': nodle,
|
||||
'phala-node': phala,
|
||||
plasm,
|
||||
|
||||
72
packages/apps-config/src/api/spec/polkadex.ts
Normal file
72
packages/apps-config/src/api/spec/polkadex.ts
Normal file
@ -0,0 +1,72 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable sort-keys */
|
||||
export default {
|
||||
OrderType: {
|
||||
_enum: [
|
||||
'BidLimit',
|
||||
'BidMarket',
|
||||
'AskLimit',
|
||||
'AskMarket'
|
||||
]
|
||||
},
|
||||
Order: {
|
||||
id: 'Hash',
|
||||
trading_pair: 'Hash',
|
||||
trader: 'AccountId',
|
||||
price: 'FixedU128',
|
||||
quantity: 'FixedU128',
|
||||
order_type: 'OrderType'
|
||||
},
|
||||
Order4RPC: {
|
||||
id: '[u8;32]',
|
||||
trading_pair: '[u8;32]',
|
||||
trader: '[u8;32]',
|
||||
price: 'Vec<u8>',
|
||||
quantity: 'Vec<u8>',
|
||||
order_type: 'OrderType'
|
||||
},
|
||||
MarketData: {
|
||||
low: 'FixedU128',
|
||||
high: 'FixedU128',
|
||||
volume: 'FixedU128',
|
||||
open: 'FixedU128',
|
||||
close: 'FixedU128'
|
||||
|
||||
},
|
||||
LinkedPriceLevel: {
|
||||
next: 'Option<FixedU128>',
|
||||
prev: 'Option<FixedU128>',
|
||||
orders: 'Vec<Order>'
|
||||
},
|
||||
LinkedPriceLevelRpc: {
|
||||
next: 'Vec<u8>',
|
||||
prev: 'Vec<u8>',
|
||||
orders: 'Vec<Order4RPC>'
|
||||
},
|
||||
Orderbook: {
|
||||
trading_pair: 'Hash',
|
||||
base_asset_id: 'u32',
|
||||
quote_asset_id: 'u32',
|
||||
best_bid_price: 'FixedU128',
|
||||
best_ask_price: 'FixedU128'
|
||||
},
|
||||
OrderbookRPC: {
|
||||
trading_pair: '[u8;32]',
|
||||
base_asset_id: 'u32',
|
||||
quote_asset_id: 'u32',
|
||||
best_bid_price: 'Vec<u8>',
|
||||
best_ask_price: 'Vec<u8>'
|
||||
},
|
||||
FrontendPricelevel: {
|
||||
price: 'FixedU128',
|
||||
quantity: 'FixedU128'
|
||||
},
|
||||
OrderbookUpdates: {
|
||||
bids: 'Vec<FrontendPricelevel>',
|
||||
asks: 'Vec<FrontendPricelevel>'
|
||||
},
|
||||
LookupSource: 'AccountId',
|
||||
Address: 'AccountId'
|
||||
};
|
||||
@ -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: 'polkadex',
|
||||
text: t('rpc.polkadex', 'Polkadex', { ns: 'apps-config' }),
|
||||
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Polkadex Team' } }),
|
||||
value: 'wss://blockchain.polkadex.trade'
|
||||
},
|
||||
{
|
||||
info: 'polkabtc',
|
||||
text: t('rpc.polkabtc', 'PolkaBTC', { ns: 'apps-config' }),
|
||||
|
||||
@ -17,6 +17,7 @@ const chainKulupu = '#003366';
|
||||
const chainPhala = '#a7e300';
|
||||
const chainPlasm = '#2096F3';
|
||||
const chainPolkabtc = '#510101';
|
||||
const chainPolkadex = '#7C30DD';
|
||||
const chainPolkadot = '#e6007a';
|
||||
const chainKusama = '#000000';
|
||||
const chainRocco = '#6f36dc';
|
||||
@ -43,6 +44,7 @@ const nodeEquilibrium = '#1792ff';
|
||||
const nodeMoonbeam = '#53cbc9';
|
||||
const nodeNodle = '#1ab394';
|
||||
const nodeKilt = '#eb5b2a';
|
||||
const nodePolkadex = '#7C30DD';
|
||||
const nodeSora = '#2D2926';
|
||||
const nodeStafi = '#00F3AB';
|
||||
const nodeSubsocial = '#b9018c';
|
||||
@ -70,6 +72,7 @@ export const chainColors: Record<string, any> = [
|
||||
['Phala poc 3', chainPhala],
|
||||
['Plasm', chainPlasm],
|
||||
['PolkaBTC', chainPolkabtc],
|
||||
['Polkadex Testnet', chainPolkadex],
|
||||
['Polkadot', chainPolkadot],
|
||||
['Polkadot CC1', chainPolkadot],
|
||||
['Rococo', chainRocco],
|
||||
@ -99,6 +102,7 @@ export const nodeColors: Record<string, any> = [
|
||||
['Equilibrium node', nodeEquilibrium],
|
||||
['kilt node', nodeKilt],
|
||||
['nodle chain node', nodeNodle],
|
||||
['Polkadex Node', nodePolkadex],
|
||||
['SORA-staging Node', nodeSora],
|
||||
['Stafi node', nodeStafi],
|
||||
['subsocial node', nodeSubsocial],
|
||||
|
||||
@ -42,6 +42,7 @@ 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 nodePolkadex from './nodes/polkadex.svg';
|
||||
import nodePolkadot from './nodes/polkadot-circle.svg';
|
||||
import nodePolkadotJs from './nodes/polkadot-js.svg';
|
||||
import nodeRobonomics from './nodes/robonomics.svg';
|
||||
@ -65,6 +66,7 @@ export const chainLogos: Record<string, unknown> = [
|
||||
['Kusama CC3', chainKusama],
|
||||
['Moonbase Alpha', moonbeam],
|
||||
['PolkaBTC', nodePolkaBTC],
|
||||
['Polkadex Testnet', nodePolkadex],
|
||||
['Rococo', chainRococo],
|
||||
['Tick', chainRococoTick],
|
||||
['Track', chainRococoTrack],
|
||||
@ -98,6 +100,7 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['kulupu', nodeKulupu],
|
||||
['node-template', nodeSubstrate],
|
||||
['Nodle Chain Node', nodeNodle],
|
||||
['Polkadex Node', nodePolkadex],
|
||||
['parity-polkadot', nodePolkadot],
|
||||
['Plasm', nodePlasm],
|
||||
['Plasm Node', nodePlasm],
|
||||
@ -150,6 +153,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
phala: nodePhala,
|
||||
plasm: nodePlasm,
|
||||
polkabtc: nodePolkaBTC,
|
||||
polkadex: nodePolkadex,
|
||||
polkadot: nodePolkadot,
|
||||
rococo: chainRococo,
|
||||
rococoAcala: nodeAcala,
|
||||
|
||||
11
packages/apps-config/src/ui/logos/nodes/polkadex.svg
Normal file
11
packages/apps-config/src/ui/logos/nodes/polkadex.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="183.227" height="181.136" viewBox="0 0 183.227 181.136">
|
||||
<g id="Icon" transform="translate(0 0)">
|
||||
<g id="Letter" transform="translate(183.227 181.136) rotate(180)">
|
||||
<path id="Path_1" data-name="Path 1" d="M0,0V24.855L42.582,67.837H68.229Z" transform="translate(0 24.457)"/>
|
||||
<path id="Path_3" data-name="Path 3" d="M68.229,67.837V42.982L25.647,0H0Z" transform="translate(114.998 86.751)"/>
|
||||
<path id="Path_4" data-name="Path 4" d="M68.229,0V24.855L25.647,67.837,68.229,110.43V136.4L0,67.837Z" transform="translate(160.86 112.907) rotate(90)"/>
|
||||
<path id="Path_5" data-name="Path 5" d="M68.229,136.4V111.548L25.647,68.566,68.229,25.973V0L0,68.566Z" transform="translate(20.276 68.229) rotate(-90)"/>
|
||||
</g>
|
||||
<circle id="Ellipse" cx="11.585" cy="11.585" r="11.585" transform="translate(80.371 81.255)" fill="#e6007a"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 910 B |
Loading…
Reference in New Issue
Block a user