Add SORA-Substrate testnet (#4059)

* Add SORA-Substrate testnet

* Fix color and logo issues
This commit is contained in:
Stefan Popov 2020-11-24 09:51:04 +03:00 committed by GitHub
parent 2817297692
commit 61e4bf822a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 54 additions and 3 deletions

View File

@ -14,6 +14,7 @@
"@edgeware/node-types": "^3.0.7",
"@laminar/type-definitions": "^0.2.0-beta.141",
"@polkadot/networks": "^4.2.1",
"@sora-substrate/type-definitions": "^0.1.4",
"@subsocial/types": "^0.4.7"
},
"devDependencies": {

View File

@ -3,9 +3,11 @@
import acala from './acala';
import laminar from './laminar';
import soraSubstrate from './soraSubstrate';
export default {
acala,
laminar,
mandala: acala
mandala: acala,
'sora-substrate': soraSubstrate
};

View File

@ -0,0 +1,7 @@
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { slimOverrideBundle } from '@sora-substrate/type-definitions';
import { OverrideBundleDefinition } from '@polkadot/types/types';
export default slimOverrideBundle.spec.sora as OverrideBundleDefinition;

View File

@ -2,9 +2,12 @@
// SPDX-License-Identifier: Apache-2.0
import moonbeam from './moonbeam';
import soraSubstrate from './soraSubstrate';
// Add your rpc method definitions here
export default {
// Moonbeam rpc types (Frontier)
...moonbeam()
...moonbeam(),
// SORA-Substrate rpc
...soraSubstrate // FIXME: 'sora-substrate': soraSubstrate when resolve-by-specname is available
};

View File

@ -0,0 +1,7 @@
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { rpc } from '@sora-substrate/type-definitions';
import { DefinitionRpc } from '@polkadot/types/types';
export default rpc as Record<string, Record<string, DefinitionRpc>>;

View File

@ -331,6 +331,12 @@ function createTestNetworks (t: TFunction): LinkOption[] {
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Laminar' } }),
value: 'wss://testnet-node-1.laminar-chain.laminar.one/ws'
},
{
info: 'sora-substrate',
text: t('rpc.sora-substrate', 'SORA-Substrate', { ns: 'apps-config' }),
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Soramitsu' } }),
value: 'wss://ws.parachain-node-1.s1.dev.soraneo.soramitsu.co.jp'
},
{
dnslink: 'westend',
info: 'westend',

View File

@ -37,6 +37,7 @@ const nodeEquilibrium = '#1792ff';
const nodeMoonbeam = '#53cbc9';
const nodeNodle = '#1ab394';
const nodeKilt = '#eb5b2a';
const nodeSora = '#2D2926';
const nodeStafi = '#00F3AB';
const nodeSubsocial = '#b9018c';
@ -83,6 +84,7 @@ export const nodeColors: Record<string, any> = [
['Equilibrium node', nodeEquilibrium],
['kilt node', nodeKilt],
['nodle chain node', nodeNodle],
['SORA-Substrate Node', nodeSora],
['Stafi node', nodeStafi],
['subsocial node', nodeSubsocial]
// ['node template', emptyColor],

View File

@ -38,6 +38,7 @@ import nodePhala from './nodes/phala.svg';
import nodePlasm from './nodes/plasm.png';
import nodePolkadot from './nodes/polkadot-circle.svg';
import nodePolkadotJs from './nodes/polkadot-js.svg';
import nodeSora from './nodes/sora-substrate.svg';
import nodeRobonomics from './nodes/robonomics.svg';
import nodeStafi from './nodes/stafi.png';
import nodeSubsocial from './nodes/subsocial.svg';
@ -105,6 +106,7 @@ export const nodeLogos: Record<string, unknown> = [
['Plasm Node', nodePlasm],
['phala-substrate-node', nodePhala],
['polkadot-js', nodePolkadotJs],
['SORA-Substrate Node', nodeSora],
['Stafi Node', nodeStafi],
['Stafi', nodeStafi],
['subsocial-node', nodeSubsocial],
@ -154,6 +156,7 @@ export const namedLogos: Record<string, unknown> = {
rococoTick: chainRococoTick,
rococoTrack: chainRococoTrack,
rococoTrick: chainRococoTrick,
'sora-substrate': nodeSora,
stafi: nodeStafi,
subsocial: nodeSubsocial,
substrate: nodeSubstrate,

View File

@ -0,0 +1,5 @@
<svg width="121" height="121" viewBox="0 0 121 121" fill="none" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="60" cy="60.7656" rx="60" ry="60" fill="white"/>
<path d="M23.3236 60.9175V51.0673H55.0783V40.931H23.3236V31.0819H96.6817V40.931H64.9323V51.0662H96.6817V60.9169H64.9323L96.8096 108.385C110.924 97.4089 120.004 80.266 120.004 61.0019C120.004 27.8625 93.1396 1 60.0013 1C26.8646 1.00106 0 27.863 0 61.0024C0 80.2655 9.07853 97.4094 23.1936 108.385L55.0773 60.9175H23.3236V60.9175Z" fill="#E3232C"/>
<path d="M31.4341 113.778C39.9288 118.383 49.6607 121 60.0018 121C70.3445 121 80.0742 118.381 88.57 113.778L60.0018 71.2241L31.4341 113.778Z" fill="#E3232C"/>
</svg>

After

Width:  |  Height:  |  Size: 674 B

View File

@ -48,6 +48,7 @@
"rpc.rococo.tick": "Tick",
"rpc.rococo.track": "Track",
"rpc.rococo.trick": "Trick",
"rpc.sora-substrate": "SORA-Substrate",
"rpc.stafi": "Stafi",
"rpc.subsocial": "Subsocial",
"rpc.turbulence": "Turbulence",

View File

@ -969,6 +969,7 @@
"rpc.local": "Nodo local (propio, 127.0.0.1:9944)",
"rpc.mandala": "Mandala (Acala Testnet, hosted by Acala)",
"rpc.nodle-arcadia": "Arcadia (Testnet Nodle, ofrecido por Nodle)",
"rpc.sora-substrate": "SORA-Substrate (SORA-Substrate Testnet, hosted by Soramitsu)",
"rpc.turbulence": "Turbulence (Laminar Testnet, hosted by Laminar)",
"rpc.westend": "Westend (Testnet de Polkadot, ofrecido por Parity)",
"runners up": "primeros puestos",

View File

@ -508,6 +508,7 @@
"rpc.local": "Local Node (Own, 127.0.0.1:9944)",
"rpc.mandala": "Mandala (Acala Testnet, hosted by Acala)",
"rpc.nodle-arcadia": "Arcadia (Nodle Testnet, hosted by Nodle)",
"rpc.sora-substrate": "SORA-Substrate (SORA-Substrate Testnet, hosted by Soramitsu)",
"rpc.turbulence": "Turbulence (Laminar Testnet, hosted by Laminar)",
"rpc.westend": "Westend (Polkadot Testnet, hosted by Parity)",
"scheduling": "スケジューリング",

View File

@ -974,6 +974,7 @@
"rpc.local": "Nó local (Próprio, 127.0.0.1:9944)",
"rpc.mandala": "Mandala (Acala Testnet, hosted by Acala)",
"rpc.nodle-arcadia": "Arcadia (Nodle Testnet, hospedado por Nodle)",
"rpc.sora-substrate": "SORA-Substrate (SORA-Substrate Testnet, hosted by Soramitsu)",
"rpc.turbulence": "Turbulence (Laminar Testnet, hosted by Laminar)",
"rpc.westend": "Westend (Polkadot Testnet, hospedado pela Parity)",
"runners up": "finalistas",

View File

@ -987,6 +987,7 @@
"rpc.local": "Локальная нода (Own, 127.0.0.1:9944)",
"rpc.mandala": "Mandala (Acala Testnet, hosted by Acala)",
"rpc.nodle-arcadia": "Arcadia (Nodle Testnet, hosted by Nodle)",
"rpc.sora-substrate": "SORA-Substrate (SORA-Substrate Testnet, hosted by Soramitsu)",
"rpc.turbulence": "Turbulence (Laminar Testnet, hosted by Laminar)",
"rpc.westend": "Westend (Polkadot Testnet, hosted by Parity)",
"runners up": "претенденты",

View File

@ -158,7 +158,7 @@ function createWebpack (ENV, context) {
...mapChunks('polkadot', [
/* 00 */ /node_modules\/@polkadot\/(wasm)/,
/* 01 */ /node_modules\/(@polkadot\/(api|metadata|rpc|types))/,
/* 02 */ /node_modules\/(@polkadot\/(extension|keyring|networks|react|ui|util|vanitygen)|@acala-network|@edgeware|@laminar|@ledgerhq|@open-web3|@subsocial|@zondax|edgeware)/
/* 02 */ /node_modules\/(@polkadot\/(extension|keyring|networks|react|ui|util|vanitygen)|@acala-network|@edgeware|@laminar|@ledgerhq|@open-web3|@sora-substrate|@subsocial|@zondax|edgeware)/
]),
...mapChunks('react', [
/* 00 */ /node_modules\/(@fortawesome)/,

View File

@ -2261,6 +2261,7 @@ __metadata:
"@edgeware/node-types": ^3.0.7
"@laminar/type-definitions": ^0.2.0-beta.141
"@polkadot/networks": ^4.2.1
"@sora-substrate/type-definitions": ^0.1.4
"@subsocial/types": ^0.4.7
i18next: ^19.8.3
languageName: unknown
@ -2937,6 +2938,15 @@ __metadata:
languageName: node
linkType: hard
"@sora-substrate/type-definitions@npm:^0.1.4":
version: 0.1.4
resolution: "@sora-substrate/type-definitions@npm:0.1.4"
dependencies:
"@open-web3/orml-type-definitions": ^0.6.0-beta.26
checksum: a5e3035f9d7279010841fa656d3a8de582ce51988adaa53d5f813d44d77347780629d70c16671e5fe50db9398fba6f687e78ff383888b71393ffd656effa4ec8
languageName: node
linkType: hard
"@stardust-ui/react-component-event-listener@npm:~0.38.0":
version: 0.38.0
resolution: "@stardust-ui/react-component-event-listener@npm:0.38.0"