add swapdex network (#6967)
* add swapdex network * add swapdex network * add swapdex network
This commit is contained in:
parent
60889fe8f3
commit
2bbc2a3fd9
@ -103,6 +103,7 @@ import subgame from './subgame';
|
||||
import subsocial from './subsocial';
|
||||
import subspace from './subspace';
|
||||
import substrateContractsNode from './substrateContractsNode';
|
||||
import swapdex from './swapdex';
|
||||
import ternoa from './ternoa';
|
||||
import trustbase from './trustbase';
|
||||
import uart from './uart';
|
||||
@ -245,6 +246,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
subspace,
|
||||
'substrate-contracts-node': substrateContractsNode,
|
||||
subzero: zero,
|
||||
swapdex,
|
||||
ternoa,
|
||||
trustbase,
|
||||
uart,
|
||||
|
||||
43
packages/apps-config/src/api/spec/swapdex.ts
Normal file
43
packages/apps-config/src/api/spec/swapdex.ts
Normal file
@ -0,0 +1,43 @@
|
||||
// Copyright 2017-2022 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
const definitions: OverrideBundleDefinition = {
|
||||
types: [
|
||||
{
|
||||
// on all versions
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
EvmAddress: 'H160',
|
||||
EthereumTxHash: 'H256',
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
AccountInfo: 'AccountInfoWithTripleRefCount',
|
||||
Account: {
|
||||
nonce: 'U256',
|
||||
balance: 'U256'
|
||||
},
|
||||
Transaction: {
|
||||
nonce: 'U256',
|
||||
action: 'String',
|
||||
gas_price: 'u64',
|
||||
gas_limit: 'u64',
|
||||
value: 'U256',
|
||||
input: 'Vec<u8>',
|
||||
signature: 'Signature'
|
||||
},
|
||||
Signature: {
|
||||
v: 'u64',
|
||||
r: 'H256',
|
||||
s: 'H256'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -287,6 +287,13 @@ export function createProduction (t: TFunction, firstOnly: boolean, withSort: bo
|
||||
DappForce: 'wss://rpc.subsocial.network'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'swapdex',
|
||||
text: t('rpc.prod.swapdex', 'Swapdex', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
Swapdex: 'wss://ws.swapdex.network'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'uniarts',
|
||||
text: t('rpc.prod.uniarts', 'UniArts', { ns: 'apps-config' }),
|
||||
|
||||
@ -119,6 +119,7 @@ const chainUnique = '#40BCFF';
|
||||
const chainIdavoll = '#ff43ff';
|
||||
const chainSubDAO = 'linear-gradient(50deg, #F20092 0%, #FF4D5D 100%)';
|
||||
const chainSubsocial = '#b9018c';
|
||||
const chainSwapdex = '#E94082';
|
||||
const chainTrustBase = '#ff43aa';
|
||||
const chainUnitv = '#1452F0';
|
||||
const chainUnorthodox = 'radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(42,244,187,1) 35%, rgba(10,10,10,1) 100%)';
|
||||
@ -185,6 +186,7 @@ const nodeStafi = '#00F3AB';
|
||||
const nodeSubDAO = 'linear-gradient(50deg, #F20092 0%, #FF4D5D 100%)';
|
||||
const nodeSubsocial = '#b9018c';
|
||||
const nodeSubspace = '#562b8e';
|
||||
const nodeSwapdex = '#E94082';
|
||||
const nodeTernoa = '#d622ff';
|
||||
const nodeUniarts = chainUniarts;
|
||||
const nodeUnique = chainUnique;
|
||||
@ -366,6 +368,7 @@ export const chainColors: Record<string, string> = Object.entries({
|
||||
'SubGame Staging': nodeSubGame,
|
||||
'Subsocial PC1': chainSubsocial,
|
||||
Subspace: nodeSubspace,
|
||||
swapdex: chainSwapdex,
|
||||
Tick: chainRoccoTick,
|
||||
Track: chainRoccoTrack,
|
||||
Trick: chainRoccoTrick,
|
||||
@ -464,6 +467,7 @@ export const nodeColors = Object.entries({
|
||||
'subsocial node': nodeSubsocial,
|
||||
Subspace: nodeSubspace,
|
||||
'subzero node': nodeZero,
|
||||
swapdex: nodeSwapdex,
|
||||
'Ternoa Node': nodeTernoa,
|
||||
'uni arts node': nodeUniarts,
|
||||
'UniArts Node': nodeUniarts,
|
||||
|
||||
29
packages/apps-config/src/ui/logos/chains/swapdex.svg
Normal file
29
packages/apps-config/src/ui/logos/chains/swapdex.svg
Normal file
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 300 300" style="enable-background:new 0 0 300 300;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:url(#SVGID_1_);}
|
||||
.st1{fill:url(#SVGID_2_);}
|
||||
</style>
|
||||
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="4.8442" y1="150.4221" x2="218.8309" y2="150.4221">
|
||||
<stop offset="0" style="stop-color:#E94081"/>
|
||||
<stop offset="0.2171" style="stop-color:#E63F81"/>
|
||||
<stop offset="0.4368" style="stop-color:#DF3D82"/>
|
||||
<stop offset="0.6576" style="stop-color:#D23983"/>
|
||||
<stop offset="0.878" style="stop-color:#C03384"/>
|
||||
<stop offset="1" style="stop-color:#B33085"/>
|
||||
</linearGradient>
|
||||
<path class="st0" d="M4.8,276.1c0-54.7,0-108.7,0-163.2C6.5,114,48.8,149,55,154c1.3,1,2.4,0.9,3.5-0.3
|
||||
c5.1-5.3,121-123.7,124.8-127.7c1.9-2,2.7-1.9,5.7,1.1c4.6,4.5,26.6,27.2,29.8,30.5C147.7,130.3,76.5,203,4.8,276.1z"/>
|
||||
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="-1176.6617" y1="660.4056" x2="-1385.3871" y2="660.4056" gradientTransform="matrix(-1 0 0 -1 -1089.5677 811.5134)">
|
||||
<stop offset="6.961042e-02" style="stop-color:#E94081"/>
|
||||
<stop offset="8.148406e-02" style="stop-color:#E84081"/>
|
||||
<stop offset="0.3497" style="stop-color:#D13984"/>
|
||||
<stop offset="0.6003" style="stop-color:#C13486"/>
|
||||
<stop offset="0.8245" style="stop-color:#B63187"/>
|
||||
<stop offset="1" style="stop-color:#B23087"/>
|
||||
</linearGradient>
|
||||
<path class="st1" d="M295.8,27.9c0,54.7-0.3,109.7-0.3,164.2c-1.6-1.2-38.4-42-44.7-47.1c-1.3-1-2.4-0.9-3.5,0.3
|
||||
c-5.1,5.3-121,123.7-124.8,127.7c-1.9,2-2.7,1.9-5.7-1.1c-4.6-4.5-26.6-27.2-29.8-30.5C158.3,168.8,224.2,101,295.8,27.9z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@ -154,6 +154,7 @@ import nodeSubsocial from './nodes/subsocial.svg';
|
||||
import nodeSubspace from './nodes/subspace.png';
|
||||
import nodeSubstrateContractsNode from './nodes/substrate-contracts-node.png';
|
||||
import nodeSubstrate from './nodes/substrate-hexagon.svg';
|
||||
import nodeSwapdex from './nodes/swapdex.svg';
|
||||
import nodeTernoa from './nodes/ternoa.svg';
|
||||
import nodeTrustBase from './nodes/trustbase.png';
|
||||
import nodeUniarts from './nodes/uniarts.png';
|
||||
@ -309,6 +310,7 @@ export const chainLogos = Object.entries({
|
||||
Subsocial: nodeSubsocial,
|
||||
'Subsocial PC': nodeSubsocial,
|
||||
subspace: nodeSubspace,
|
||||
swapdex: nodeSwapdex,
|
||||
Tick: chainRococoTick,
|
||||
Track: chainRococoTrack,
|
||||
Trick: chainRococoTrick,
|
||||
@ -473,6 +475,7 @@ export const nodeLogos = Object.entries({
|
||||
'substrate-contracts-node': nodeSubstrateContractsNode,
|
||||
'substrate-node': nodeSubstrate,
|
||||
'subzero node': nodeZero,
|
||||
swapdex: nodeSwapdex,
|
||||
'Ternoa Node': nodeTernoa,
|
||||
'TrustBase Collator': nodeTrustBase,
|
||||
'TrustBase Node': nodeTrustBase,
|
||||
@ -697,6 +700,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
'subspace-farmnet': nodeSubspace,
|
||||
substrate: nodeSubstrate,
|
||||
substrateContractsNode: nodeSubstrateContractsNode,
|
||||
swapdex: nodeSwapdex,
|
||||
'ternoa-testnet': nodeTernoa,
|
||||
trustbase: nodeTrustBase,
|
||||
uniarts: nodeUniarts,
|
||||
|
||||
29
packages/apps-config/src/ui/logos/nodes/swapdex.svg
Normal file
29
packages/apps-config/src/ui/logos/nodes/swapdex.svg
Normal file
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 300 300" style="enable-background:new 0 0 300 300;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:url(#SVGID_1_);}
|
||||
.st1{fill:url(#SVGID_2_);}
|
||||
</style>
|
||||
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="4.8442" y1="150.4221" x2="218.8309" y2="150.4221">
|
||||
<stop offset="0" style="stop-color:#E94081"/>
|
||||
<stop offset="0.2171" style="stop-color:#E63F81"/>
|
||||
<stop offset="0.4368" style="stop-color:#DF3D82"/>
|
||||
<stop offset="0.6576" style="stop-color:#D23983"/>
|
||||
<stop offset="0.878" style="stop-color:#C03384"/>
|
||||
<stop offset="1" style="stop-color:#B33085"/>
|
||||
</linearGradient>
|
||||
<path class="st0" d="M4.8,276.1c0-54.7,0-108.7,0-163.2C6.5,114,48.8,149,55,154c1.3,1,2.4,0.9,3.5-0.3
|
||||
c5.1-5.3,121-123.7,124.8-127.7c1.9-2,2.7-1.9,5.7,1.1c4.6,4.5,26.6,27.2,29.8,30.5C147.7,130.3,76.5,203,4.8,276.1z"/>
|
||||
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="-1176.6617" y1="660.4056" x2="-1385.3871" y2="660.4056" gradientTransform="matrix(-1 0 0 -1 -1089.5677 811.5134)">
|
||||
<stop offset="6.961042e-02" style="stop-color:#E94081"/>
|
||||
<stop offset="8.148406e-02" style="stop-color:#E84081"/>
|
||||
<stop offset="0.3497" style="stop-color:#D13984"/>
|
||||
<stop offset="0.6003" style="stop-color:#C13486"/>
|
||||
<stop offset="0.8245" style="stop-color:#B63187"/>
|
||||
<stop offset="1" style="stop-color:#B23087"/>
|
||||
</linearGradient>
|
||||
<path class="st1" d="M295.8,27.9c0,54.7-0.3,109.7-0.3,164.2c-1.6-1.2-38.4-42-44.7-47.1c-1.3-1-2.4-0.9-3.5,0.3
|
||||
c-5.1,5.3-121,123.7-124.8,127.7c-1.9,2-2.7,1.9-5.7-1.1c-4.6-4.5-26.6-27.2-29.8-30.5C158.3,168.8,224.2,101,295.8,27.9z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@ -113,6 +113,7 @@
|
||||
"rpc.prod.stafi": "Stafi",
|
||||
"rpc.prod.subgame": "SubGame",
|
||||
"rpc.prod.subsocial": "Subsocial",
|
||||
"rpc.prod.swapdex": "Swapdex",
|
||||
"rpc.prod.uniarts": "UniArts",
|
||||
"rpc.prod.westlake": "Westlake",
|
||||
"rpc.rocco.litentry": "Litentry Rostock",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user