add zero testnet (#4221)
* feat(zero): add zero chain * feat(zero): add webpack for build * feat(docker): add docker-compose * feat(zero): add to testnet * feat(docker): rm compose * chore: change webpack to ^5.10.1 * chore: change webpack to ^5.10.1 * feat(zero): update spec * feat(zero): update spec * feat(zero): happy linter
This commit is contained in:
parent
e85203a727
commit
ad47acadf4
@ -93,6 +93,8 @@
|
||||
"styled-components": "^5.2.1",
|
||||
"stylelint": "^13.8.0",
|
||||
"stylelint-config-recommended": "^3.0.0",
|
||||
"stylelint-config-styled-components": "^0.1.1"
|
||||
"stylelint-config-styled-components": "^0.1.1",
|
||||
"webpack": "^5.10.1",
|
||||
"webpack-cli": "^4.2.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -27,6 +27,7 @@ import robonomics from './robonomics';
|
||||
import stablePoc from './stable-poc';
|
||||
import stafi from './stafi';
|
||||
import subsocial from './subsocial';
|
||||
import zero from './zero';
|
||||
|
||||
// mapping from specName in state.getRuntimeVersion
|
||||
export default {
|
||||
@ -58,5 +59,6 @@ export default {
|
||||
'stable-poc': stablePoc,
|
||||
stable_poc: stablePoc,
|
||||
stafi,
|
||||
subsocial
|
||||
subsocial,
|
||||
subzero: zero
|
||||
};
|
||||
|
||||
22
packages/apps-config/src/api/spec/zero.ts
Normal file
22
packages/apps-config/src/api/spec/zero.ts
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
export default {
|
||||
Address: 'AccountId',
|
||||
LookupSource: 'AccountId',
|
||||
Campaign: {
|
||||
id: 'Hash',
|
||||
manager: 'AccountId',
|
||||
deposit: 'Balance',
|
||||
expiry: 'BlockNumber',
|
||||
cap: 'Balance',
|
||||
name: 'Vec<u8>',
|
||||
protocol: 'u8',
|
||||
status: 'u8'
|
||||
},
|
||||
EventMessage: 'Vec<u8>',
|
||||
Nonce: 'u64'
|
||||
};
|
||||
@ -129,6 +129,13 @@ export function createTesting (t: TFunction): LinkOption[] {
|
||||
text: t('rpc.westend', 'Westend', { ns: 'apps-config' }),
|
||||
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Parity' } }),
|
||||
value: 'wss://westend-rpc.polkadot.io'
|
||||
},
|
||||
{
|
||||
dnslink: 'zero',
|
||||
info: 'zero',
|
||||
text: t('rpc.zero', 'zero', { ns: 'apps-config' }),
|
||||
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'ZERO' } }),
|
||||
value: 'wss://alphaville-0.zero.io'
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
@ -27,6 +27,7 @@ const chainRoccoTrack = '#bb2222';
|
||||
const chainRoccoTrick = '#2222bb';
|
||||
const chainWestend = '#da68a7';
|
||||
const chainGalois = '#000000';
|
||||
const chainZero = '#000000';
|
||||
|
||||
// based on node name
|
||||
// alphabetical
|
||||
@ -41,6 +42,7 @@ const nodeKilt = '#eb5b2a';
|
||||
const nodeSora = '#2D2926';
|
||||
const nodeStafi = '#00F3AB';
|
||||
const nodeSubsocial = '#b9018c';
|
||||
const nodeZero = '#0099cc';
|
||||
|
||||
export { emptyColor };
|
||||
|
||||
@ -69,7 +71,8 @@ export const chainColors: Record<string, any> = [
|
||||
['Track', chainRoccoTrack],
|
||||
['Trick', chainRoccoTrick],
|
||||
['Westend', chainWestend],
|
||||
['Galois', chainGalois]
|
||||
['Galois', chainGalois],
|
||||
['ZΞRO Alphaville', chainZero]
|
||||
].reduce((colors, [chain, color]): Record<string, any> => ({
|
||||
...colors,
|
||||
[chain.toLowerCase()]: color
|
||||
@ -88,7 +91,8 @@ export const nodeColors: Record<string, any> = [
|
||||
['nodle chain node', nodeNodle],
|
||||
['SORA-Substrate Node', nodeSora],
|
||||
['Stafi node', nodeStafi],
|
||||
['subsocial node', nodeSubsocial]
|
||||
['subsocial node', nodeSubsocial],
|
||||
['SUBZΞRO', nodeZero]
|
||||
// ['node template', emptyColor],
|
||||
// ['parity polkadot', emptyColor],
|
||||
// ['substrate node', emptyColor]
|
||||
|
||||
@ -47,6 +47,8 @@ import nodeSora from './nodes/sora-substrate.svg';
|
||||
import nodeStafi from './nodes/stafi.png';
|
||||
import nodeSubsocial from './nodes/subsocial.svg';
|
||||
import nodeSubstrate from './nodes/substrate-hexagon.svg';
|
||||
import nodeZero from './nodes/zero.svg';
|
||||
// last-resort fallback, just something empty
|
||||
import emptyLogo from './empty.svg';
|
||||
|
||||
// Alphabetical overrides based on the actual matched chain name
|
||||
@ -104,7 +106,8 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['subsocial-node', nodeSubsocial],
|
||||
['substrate-node', nodeSubstrate],
|
||||
['Equilibrium Node', nodeEquilibrium],
|
||||
['Equilibrium', nodeEquilibrium]
|
||||
['Equilibrium', nodeEquilibrium],
|
||||
['SUBZΞRO', nodeZero]
|
||||
].reduce((logos, [node, logo]): Record<string, unknown> => ({
|
||||
...logos,
|
||||
[(node as string).toLowerCase().replace(/-/g, ' ')]: logo
|
||||
@ -153,7 +156,8 @@ export const namedLogos: Record<string, unknown> = {
|
||||
stafi: nodeStafi,
|
||||
subsocial: nodeSubsocial,
|
||||
substrate: nodeSubstrate,
|
||||
westend: nodePolkadot
|
||||
westend: nodePolkadot,
|
||||
zero: nodeZero
|
||||
};
|
||||
|
||||
// extension logos
|
||||
|
||||
1
packages/apps-config/src/ui/logos/nodes/zero.svg
Normal file
1
packages/apps-config/src/ui/logos/nodes/zero.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 342 342"><defs><style>.a{fill:#000000;}.b{fill:#00adee;}.c{fill:#ec297b;}.d{fill:#37b34a;}.e{fill:#f6921e;}</style></defs><title>z-ctrl-45-col</title><rect class="a" width="342" height="342"/><path class="b" d="M152.35,170.46l-12.18-12.19a.5.5,0,0,0-.35-.14.48.48,0,0,0-.34.14l-34.41,34.41V106.15a.51.51,0,0,0-.3-.46l-.19,0a.52.52,0,0,0-.35.14L39.58,170.46a.49.49,0,0,0-.15.34.51.51,0,0,0,.15.35l12.18,12.18a.47.47,0,0,0,.35.14.45.45,0,0,0,.34-.14l34.41-34.41v86.54a.49.49,0,0,0,.3.45.43.43,0,0,0,.19,0,.45.45,0,0,0,.34-.15l64.66-64.65A.49.49,0,0,0,152.35,170.46Z"/><path class="c" d="M185.24,49.85,173.06,37.66a.49.49,0,0,0-.34-.14.52.52,0,0,0-.35.14l-56,56a.49.49,0,0,0,0,.69l12.18,12.19a.52.52,0,0,0,.35.14.49.49,0,0,0,.34-.14l56-56A.47.47,0,0,0,185.24,49.85Z"/><path class="c" d="M229.1,93.7,216.92,81.52a.51.51,0,0,0-.34-.14.52.52,0,0,0-.35.14l-56,56a.49.49,0,0,0,0,.69l12.18,12.19a.52.52,0,0,0,.35.14.49.49,0,0,0,.34-.14l56-56A.49.49,0,0,0,229.1,93.7Z"/><path class="c" d="M207.17,71.77,195,59.59a.49.49,0,0,0-.34-.14.52.52,0,0,0-.35.14l-56,56a.49.49,0,0,0,0,.69l12.18,12.19a.52.52,0,0,0,.35.14.49.49,0,0,0,.34-.14l56-56A.49.49,0,0,0,207.17,71.77Z"/><path class="d" d="M219.71,243.93H176.34V188.38a.49.49,0,0,0-.3-.45.43.43,0,0,0-.19,0,.49.49,0,0,0-.35.15l-64.65,64.65a.49.49,0,0,0,0,.69L123,265.57a.5.5,0,0,0,.35.14.48.48,0,0,0,.34-.14l34.41-34.41v74.35a.49.49,0,0,0,.49.49h17.23a.49.49,0,0,0,.49-.49V262.14h43.37a.49.49,0,0,0,.49-.49V244.42A.49.49,0,0,0,219.71,243.93Z"/><path class="e" d="M305.86,170.46l-56-56.05a.51.51,0,0,0-.7,0l-56,56.05a.48.48,0,0,0-.14.34.5.5,0,0,0,.14.35l56,56a.51.51,0,0,0,.7,0l56-56A.49.49,0,0,0,305.86,170.46Zm-56.39,31.33-31-31,31-31,31,31Z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue
Block a user