add zCloak network (#5791)

* feat(page): add zCloak network

* feat(page): add zCloak network

* feat(page): add zCloak network

* feat(page): add zCloak network

* feat(page): add zCloak network spec

* feat(page): add zCloak network spec

* feat(page): add zCloak network spec

* feat(page): add zCloak network types

* feat(page): add zCloak network
This commit is contained in:
Lohsea 2021-07-11 13:26:52 +08:00 committed by GitHub
parent 3b9dfee14b
commit 03b68001ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 69 additions and 2 deletions

View File

@ -94,6 +94,7 @@ import vlnrococo from './vln-rococo';
import vodka from './vodka';
import web3games from './web3games';
import westlake from './westlake';
import zCloak from './zCloak';
import zeitgeist from './zeitgeist';
import zenlink from './zenlink';
import zero from './zero';
@ -210,6 +211,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
'unit-parachain': unitv,
vodka,
'web3games-node': web3games,
'zcloak-network': zCloak,
zeitgeist: zeitgeist
};

View File

@ -0,0 +1,49 @@
// Copyright 2017-2021 @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: {
Class: 'Vec<u8>',
TaskStatus: {
_enum: [
'JustCreated',
'Verifying',
'VerifiedTrue',
'VerifiedFalse'
]
},
Status: {
verifiers: 'Vec<u32>',
ayes: 'u32',
nays: 'u32'
},
VerificationReceipt: {
program_hash: '[u8; 32]',
passed: 'bool',
submit_at: 'BlockNumber',
auth_index: 'u32',
validator_len: 'u32'
},
TaskInfo: {
proof_id: 'Vec<u8>',
inputs: 'Vec<u128>',
outputs: 'Vec<u128>',
program_hash: '[u8; 32]',
is_task_finish: 'Option<TaskStatus>',
expiration: 'Option<BlockNumber>'
}
}
}
]
};
export default definitions;

View File

@ -426,6 +426,13 @@ export function createTesting (t: TFunction, firstOnly?: boolean): LinkOption[]
Web3Games: 'wss://substrate.org.cn:4443'
}
},
{
info: 'zCloak',
text: t('rpc.test.zCloak', 'zCloak-network', { ns: 'apps-config' }),
providers: {
'zCloak Network': 'wss://test1.zcloak.network'
}
},
{
info: 'zeitgeist',
text: t('rpc.test.zeitgeist', 'Zeitgeist Battery Park', { ns: 'apps-config' }),

View File

@ -143,6 +143,7 @@ const nodeZeitgeist = 'linear-gradient(180deg, rgba(32,90,172,1) 0%, rgba(26,72,
const nodeZero = '#0099cc';
const nodeZenlink = 'linear-gradient(45deg, #F20082 0%, #FF4D4D 100%)';
const nodeSubGame = '#EB027D';
const nodeZCloak = 'linear-gradient(to right, #7DA6D4, #B996E5)';
// based on the spec name
const specShell = '#2e86ab'; // '#0596FC';
@ -277,6 +278,7 @@ export const chainColors: Record<string, string> = Object.entries({
'Westmint Test': specWestmint,
Whala: chainWhala,
WILT: chainKilt,
'zcloak poc1': nodeZCloak,
'Zenlink PC1': chainZenlink,
'ZERO.IO': chainZero
}).reduce<Record<string, string>>((colors, [chain, color]) => ({
@ -349,6 +351,7 @@ export const nodeColors = Object.entries({
Web3games: nodeWeb3games,
Westlake: nodeWestlake,
'Westmint Collator': specWestmint,
'zcloak node': nodeZCloak,
'Zeitgeist Collator': nodeZeitgeist,
'Zeitgeist Node': nodeZeitgeist,
'Zenlink Collator': nodeZenlink

View File

@ -119,6 +119,7 @@ import nodeVln from './nodes/valiu.png';
import nodeWeb3games from './nodes/web3games.svg';
import nodeWestlake from './nodes/westlake.png';
import nodeWhala from './nodes/whala.svg';
import nodeZCloak from './nodes/zCloak.svg';
import nodeZeitgeist from './nodes/zeitgeist.png';
import nodeZenlink from './nodes/zenlink.svg';
import nodeZero from './nodes/zero.svg';
@ -232,7 +233,8 @@ export const chainLogos = Object.entries({
Westlake: nodeWestlake,
Westmint: nodeStatemine,
'Westmint Test': nodeStatemine,
WILT: nodeKilt
WILT: nodeKilt,
'zcloak poc1': nodeZCloak
}).reduce<Record<string, unknown>>((logos, [chain, logo]) => ({
...logos,
[sanitize(chain)]: logo
@ -366,6 +368,7 @@ export const nodeLogos = Object.entries({
Whala: nodeWhala,
'Whala Node': nodeWhala,
WILT: nodeKilt,
'zcloak node': nodeZCloak,
'Zeitgeist Collator': nodeZeitgeist,
'Zeitgeist Node': nodeZeitgeist,
Zenlink: nodeZenlink,
@ -543,6 +546,7 @@ export const namedLogos: Record<string, unknown> = {
westlake: nodeWestlake,
westmint: nodeStatemine,
whala: nodeWhala,
zCloak: nodeZCloak,
zeitgeist: nodeZeitgeist,
zero: nodeZero
};

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -158,6 +158,7 @@
"rpc.test.unitv": "Unit Network",
"rpc.test.vodka": "Vodka",
"rpc.test.web3games": "Web3Games",
"rpc.test.zCloak": "zCloack",
"rpc.test.zeitgeist": "Zeitgeist Battery Park",
"rpc.test.zero": "Zero",
"rpc.westend": "Westend",
@ -172,4 +173,4 @@
"rpc.westend.whala": "Whala",
"ss58.default": "Default for the connected node",
"testnet.kylin-node.co.uk": "Kylin Testnet"
}
}