Clean subsocial info and add testnets(rococo and solochain) (#7374)

* Clean subsocial info and add testnets(rococo and solochain)

* Change logos

* Change testnet url

* Fix sort
This commit is contained in:
Oleh Mell 2022-04-16 09:56:48 +03:00 committed by GitHub
parent e8e3373e1d
commit eeb77d10aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 90 additions and 41 deletions

View File

@ -38,7 +38,7 @@
"@polymathnetwork/polymesh-types": "0.0.2",
"@snowfork/snowbridge-types": "0.2.7",
"@sora-substrate/type-definitions": "1.8.6",
"@subsocial/types": "0.6.5",
"@subsocial/types": "0.6.8",
"@unique-nft/types": "0.3.1",
"@zeitgeistpm/type-defs": "0.4.5",
"@zeroio/type-definitions": "0.0.14",

View File

@ -164,7 +164,6 @@ const spec: Record<string, OverrideBundleDefinition> = {
'crown-sterling': crownSterlingChain,
crust,
'crust-parachain': crust,
'cumulus-subsocial-parachain': subsocial,
'cumulus-test-parachain': testPara,
datahighway: westlake,
'datahighway-parachain': datahighwayParachain,

View File

@ -4,6 +4,8 @@
// We only load the definitions here explicitly - if we try to go via
// import { types } from '@subsocial/types/substrate';
// we end up with multiple version of types/API
import definitions from '@subsocial/types/substrate/interfaces/subsocial/definitions';
import { types } from '@subsocial/types';
export default definitions;
export default {
types
};

View File

@ -401,10 +401,10 @@ export function createKusama (t: TFunction): EndpointOption {
}
},
{
info: 'subsocial',
info: 'subsocialX',
homepage: 'https://subsocial.network/',
paraId: 2100,
text: t('rpc.kusama.subsocial', 'Subsocial', { ns: 'apps-config' }),
text: t('rpc.kusama.subsocial', 'SubsocialX', { ns: 'apps-config' }),
providers: {
Dappforce: 'wss://para.subsocial.network'
}

View File

@ -472,6 +472,13 @@ export function createTesting (t: TFunction, firstOnly: boolean, withSort: boole
Snowfork: 'wss://parachain-rpc.snowbridge.network'
}
},
{
info: 'soonsocial',
text: t('rpc.test.subsocial', 'Soonsocial', { ns: 'apps-config' }),
providers: {
DappForce: 'wss://testnet.subsocial.network'
}
},
{
info: 'sora-substrate',
isDisabled: true, // https://github.com/polkadot-js/apps/issues/7093

View File

@ -324,6 +324,14 @@ export function createRococo (t: TFunction): EndpointOption {
'Kylin Network': 'wss://rpc.kylin-node.co.uk'
}
},
{
info: 'rococoSubsocial',
paraId: 2100,
text: t('rpc.rococo.subsocial', 'SoonsocialX', { ns: 'apps-config' }),
providers: {
DappForce: 'wss://rco-para.subsocial.network'
}
},
{
info: 'rococoSpreehafen',
paraId: 2116,
@ -512,15 +520,6 @@ export function createRococo (t: TFunction): EndpointOption {
SubDAONetwork: 'wss://parachain.subdao.network'
}
},
{
info: 'rococoSubsocial',
isDisabled: true, // Rococo reset
paraId: 28,
text: t('rpc.rococo.subsocial', 'Subsocial PC1', { ns: 'apps-config' }),
providers: {
DappForce: 'wss://roc.subsocial.network'
}
},
{
info: 'rococoTrustBase',
isDisabled: true, // Rococo reset

View File

@ -131,7 +131,6 @@ const chainUniarts = 'linear-gradient(150deg, #333ef7 0%, #55adff 100%)';
const chainUnique = '#40BCFF';
const chainIdavoll = '#ff43ff';
const chainSubDAO = 'linear-gradient(50deg, #F20092 0%, #FF4D5D 100%)';
const chainSubsocial = '#b9018c';
const chainSwapdex = '#E94082';
const chainTinker = '#161616';
const chainTrustBase = '#ff43aa';
@ -203,6 +202,7 @@ const nodeSora = '#2D2926';
const nodeStafi = '#00F3AB';
const nodeSubDAO = 'linear-gradient(50deg, #F20092 0%, #FF4D5D 100%)';
const nodeSubsocial = '#b9018c';
const nodeSubsocialX = '#69058C';
const nodeSubspace = '#562b8e';
const nodeSwapdex = '#E94082';
const nodeTernoa = '#d622ff';
@ -406,7 +406,6 @@ export const chainColors: Record<string, string> = Object.entries({
subgame: nodeSubGame,
'SubGame Gamma': nodeSubGame,
'SubGame Staging': nodeSubGame,
'Subsocial PC1': chainSubsocial,
Subspace: nodeSubspace,
swapdex: chainSwapdex,
Tick: chainRoccoTick,
@ -518,6 +517,7 @@ export const nodeColors = Object.entries({
subgame: nodeSubGame,
'SubGame Gamma': nodeSubGame,
'SubGame Staging': nodeSubGame,
'Subsocial Collator': nodeSubsocialX,
'subsocial node': nodeSubsocial,
Subspace: nodeSubspace,
'subzero node': nodeZero,

View File

@ -162,12 +162,15 @@ import nodeShadow from './nodes/shadow.svg';
import nodeShell from './nodes/shell.svg';
import nodeSherpax from './nodes/sherpax.png';
import nodeSingLavender from './nodes/singlavender.svg';
import nodeSoonsocial from './nodes/soonsocial.png';
import nodeSoonsocialX from './nodes/soonsocialX.png';
import nodeSora from './nodes/sora-substrate.svg';
import nodeStafi from './nodes/stafi.png';
import nodeStatemine from './nodes/statemine.svg';
import nodeSubDAO from './nodes/subdao.png';
import nodeSubGame from './nodes/subgame.svg';
import nodeSubsocial from './nodes/subsocial.svg';
import nodeSubsocialX from './nodes/subsocialX.svg';
import nodeSubspace from './nodes/subspace.png';
import nodeSubstrateContractsNode from './nodes/substrate-contracts-node.png';
import nodeSubstrate from './nodes/substrate-hexagon.svg';
@ -337,6 +340,8 @@ export const chainLogos = Object.entries({
'Sherpax Testnet': nodeSherpax,
Shiden: chainShiden,
SingLavender: nodeSingLavender,
soonsocial: nodeSoonsocial,
soonsocialX: nodeSoonsocialX,
SORA: nodeSora,
'SORA Kusama': nodeSora,
Spanner: chainSpanner,
@ -350,8 +355,8 @@ export const chainLogos = Object.entries({
subgame: nodeSubGame,
'SubGame Gamma': nodeSubGame,
'SubGame Staging': nodeSubGame,
Subsocial: nodeSubsocial,
'Subsocial PC': nodeSubsocial,
subsocial: nodeSubsocial,
subsocialX: nodeSubsocialX,
subspace: nodeSubspace,
swapdex: nodeSwapdex,
Tick: chainRococoTick,
@ -531,9 +536,6 @@ export const nodeLogos = Object.entries({
subgame: nodeSubGame,
'SubGame Gamma': nodeSubGame,
'SubGame Staging': nodeSubGame,
'Subsocial Node': nodeSubsocial,
'Subsocial PC': nodeSubsocial,
'subsocial-node': nodeSubsocial,
subspace: nodeSubspace,
'substrate-contracts-node': nodeSubstrateContractsNode,
'substrate-node': nodeSubstrate,
@ -751,7 +753,7 @@ export const namedLogos: Record<string, unknown> = {
rococoStandard: chainStandard,
rococoStatemint: nodeStatemine,
rococoSubDAO: nodeSubDAO,
rococoSubsocial: nodeSubsocial,
rococoSubsocial: nodeSoonsocialX,
rococoTick: chainRococoTick,
rococoTinker: chainTinker,
rococoTrack: chainRococoTrack,
@ -769,6 +771,7 @@ export const namedLogos: Record<string, unknown> = {
shiden: chainShiden,
singLavender: nodeSingLavender,
snakenet: chainSnakenet,
soonsocial: nodeSoonsocial,
sora: nodeSora,
'sora-substrate': nodeSora,
sora_ksm: nodeSora,
@ -783,6 +786,7 @@ export const namedLogos: Record<string, unknown> = {
'SubGame Gamma': nodeSubGame,
'SubGame Staging': nodeSubGame,
subsocial: nodeSubsocial,
subsocialX: nodeSubsocialX,
subspace: nodeSubspace,
'subspace-farmnet': nodeSubspace,
substrate: nodeSubstrate,

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

View File

@ -0,0 +1,10 @@
<svg width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="200" cy="200" r="200" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M400 200C400 310.457 310.457 400 200 400C89.5431 400 0 310.457 0 200C0 89.5431 89.5431 0 200 0C310.457 0 400 89.5431 400 200ZM199.333 353.333C240.202 353.333 273.333 320.202 273.333 279.333V231.333C273.333 190.464 240.202 157.333 199.333 157.333C193.597 157.333 188.013 157.986 182.652 159.221C179.432 159.963 178.529 163.936 180.918 166.218L181.318 166.601L223.949 207.318C230.559 213.739 234.667 222.723 234.667 232.667V278C234.667 297.514 218.847 313.333 199.333 313.333C179.819 313.333 164 297.514 164 278V261.333C164 259.124 162.209 257.333 160 257.333H129.333C127.124 257.333 125.333 259.124 125.333 261.333V279.333C125.333 320.202 158.464 353.333 199.333 353.333ZM125.318 116.652C125.318 75.7826 158.449 42.6517 199.318 42.6517C240.187 42.6517 273.318 75.7826 273.318 116.652V134.667C273.318 136.876 271.527 138.667 269.318 138.667H238.652C236.442 138.667 234.652 136.876 234.652 134.667V117.985C234.652 98.4709 218.832 82.6517 199.318 82.6517C179.804 82.6517 163.985 98.4709 163.985 117.985V163.318C163.985 173.262 168.092 182.246 174.703 188.667L217.333 229.384L217.734 229.767C220.123 232.049 219.219 236.022 216 236.764C210.639 237.999 205.055 238.652 199.318 238.652C158.449 238.652 125.318 205.521 125.318 164.652V116.652Z" fill="url(#paint0_linear_1624_20)"/>
<defs>
<linearGradient id="paint0_linear_1624_20" x1="200" y1="0" x2="200" y2="400" gradientUnits="userSpaceOnUse">
<stop stop-color="#720497"/>
<stop offset="1"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -53,7 +53,7 @@
"rpc.kusama.standard": "Unorthodox",
"rpc.kusama.statemine": "Statemine",
"rpc.kusama.subgame": "SubGame Gamma",
"rpc.kusama.subsocial": "Subsocial",
"rpc.kusama.subsocial": "SubsocialX",
"rpc.kusama.tanganika": "Tanganika",
"rpc.kusama.trustbase": "TrustBase",
"rpc.kusama.zeitgeist": "Zeitgeist",
@ -174,7 +174,7 @@
"rpc.rococo.standard": "Standard",
"rpc.rococo.statemint": "Statemint",
"rpc.rococo.subdao": "SubDAO PC1",
"rpc.rococo.subsocial": "Subsocial PC1",
"rpc.rococo.subsocial": "SoonsocialX",
"rpc.rococo.tick": "Tick",
"rpc.rococo.tinker": "InvArch Tinkernet",
"rpc.rococo.track": "Track",
@ -245,6 +245,7 @@
"rpc.test.subgame": "SubGame Staging",
"rpc.test.subspace": "Subspace Testnet",
"rpc.test.subspace.farmnet": "Subspace Farmnet",
"rpc.test.subsocial": "Soonsocial",
"rpc.test.ternoa-testnet": "Ternoa Testnet",
"rpc.test.turbulence": "Turbulence",
"rpc.test.uniarts": "UniArts",

View File

@ -1792,7 +1792,7 @@
"rpc.kusama.standard": "Unorthodox",
"rpc.kusama.statemine": "Statemine",
"rpc.kusama.subgame": "SubGame Gamma",
"rpc.kusama.subsocial": "Subsocial",
"rpc.kusama.subsocial": "SubsocialX",
"rpc.kusama.trustbase": "TrustBase",
"rpc.kusama.w3f": "Kusama (Polkadot Canary, hosted by Web3 Foundation)",
"rpc.kusama.zeitgeist": "Zeitgeist",

View File

@ -2972,7 +2972,7 @@ __metadata:
"@polymathnetwork/polymesh-types": 0.0.2
"@snowfork/snowbridge-types": 0.2.7
"@sora-substrate/type-definitions": 1.8.6
"@subsocial/types": 0.6.5
"@subsocial/types": 0.6.8
"@unique-nft/types": 0.3.1
"@zeitgeistpm/type-defs": 0.4.5
"@zeroio/type-definitions": 0.0.14
@ -3965,27 +3965,40 @@ __metadata:
languageName: node
linkType: hard
"@subsocial/types@npm:0.6.5":
version: 0.6.5
resolution: "@subsocial/types@npm:0.6.5"
"@subsocial/definitions@npm:0.6.8":
version: 0.6.8
resolution: "@subsocial/definitions@npm:0.6.8"
dependencies:
"@polkadot/types": 6.9.2
"@polkadot/types-known": 6.9.2
"@polkadot/types-support": 6.9.2
"@subsocial/utils": ^0.6.5
cids: ^0.7.1
checksum: 4a02a6a19c449bab19b6ecbac89359562e1461c76020d5f4b53a1dc9471f361f0f2f364ab48c3c852a1b8db3cd82cdbc0b6bbf08cbe268038907cbc7ca2697f3
"@polkadot/api": latest
lodash.camelcase: ^4.3.0
checksum: 03d8bea55f19d0fe2f8d8ee8f51a4506e6b550dd33ae5e3734b32906df48405bfac05ea2095d8b41ad3f2caeeb67e87614d67f89ab71ca090f7d579b05e104e0
languageName: node
linkType: hard
"@subsocial/utils@npm:^0.6.5":
version: 0.6.5
resolution: "@subsocial/utils@npm:0.6.5"
"@subsocial/types@npm:0.6.8":
version: 0.6.8
resolution: "@subsocial/types@npm:0.6.8"
dependencies:
"@polkadot/util-crypto": 7.8.2
"@polkadot/types": latest
"@polkadot/types-known": latest
"@polkadot/types-support": latest
"@subsocial/definitions": 0.6.8
"@subsocial/utils": 0.6.8
cids: ^0.7.1
checksum: ef7a6dd218e70c3df6fa4b6d157aefece5ea11427f7bd0753a9cdf8fececade57cee3ff7c7c8ae53514c0b953e69204d4e057abefd9157d1c998415b9b0ab9ba
languageName: node
linkType: hard
"@subsocial/utils@npm:0.6.8":
version: 0.6.8
resolution: "@subsocial/utils@npm:0.6.8"
dependencies:
"@polkadot/util-crypto": ^8.4.1
"@sindresorhus/slugify": ^1.1.0
bignumber.js: ^9.0.1
bn.js: ^5.1.1
chalk: ^3.0.0
dayjs: ^1.10.7
lodash.isempty: ^4.4.0
lodash.memoize: ^4.1.2
lodash.truncate: ^4.4.2
@ -3995,7 +4008,7 @@ __metadata:
remark-gfm: ^1.0.0
remark-html: ^13.0.1
strip-markdown: ^4.0.0
checksum: e303c6c8d5fa8ece95779800cf469084e5654c771119f049c1041a91e6a575420b885120e4e0bfea691d14919ce3dbb8e53ac612f26910cc9bc876f4ee149161
checksum: 5a80dbcf193a5be774227f4d7eee724202d52f85b25a0ca92f93a081b35f26b2b198ac3c98d8151a19d192c89b96141d265d58223da6e70d679bdaf34b32e6ab
languageName: node
linkType: hard
@ -6309,6 +6322,13 @@ __metadata:
languageName: node
linkType: hard
"bignumber.js@npm:^9.0.1":
version: 9.0.2
resolution: "bignumber.js@npm:9.0.2"
checksum: 8637b71d0a99104b20413c47578953970006fec6b4df796b9dcfd9835ea9c402ea0e727eba9a5ca9f9a393c1d88b6168c5bbe0887598b708d4f8b4870ad62e1f
languageName: node
linkType: hard
"binary-extensions@npm:^2.0.0":
version: 2.1.0
resolution: "binary-extensions@npm:2.1.0"
@ -8033,6 +8053,13 @@ __metadata:
languageName: node
linkType: hard
"dayjs@npm:^1.10.7":
version: 1.11.0
resolution: "dayjs@npm:1.11.0"
checksum: 2d36f6d71345114cdcd89147adf9e05b4f8fe81684e08c8bf1f86b140aa0b86ecc3cae661a9348d96feb7fbefd03e1bc3697303688e95209670abcb36b4ece15
languageName: node
linkType: hard
"debug@npm:2.6.9, debug@npm:^2.2.0, debug@npm:^2.6.8, debug@npm:^2.6.9":
version: 2.6.9
resolution: "debug@npm:2.6.9"