Add Turing Network as a Kusama Parachain (prep for crowdloan) (#7161)
* Modify OAK Testnet wss endpoint * Add Turing Network as a Kusama parachain in prep for crowdloan Co-authored-by: imstar15 <imstar15@qq.com> Co-authored-by: Chris Li <chrisli30@users.noreply.github.com>
This commit is contained in:
parent
b946c662eb
commit
6bedf18ad3
@ -108,6 +108,7 @@ import substrateContractsNode from './substrateContractsNode';
|
||||
import swapdex from './swapdex';
|
||||
import ternoa from './ternoa';
|
||||
import trustbase from './trustbase';
|
||||
import turing from './turing';
|
||||
import uart from './uart';
|
||||
import unique from './unique';
|
||||
import unitv from './unitv';
|
||||
@ -254,6 +255,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
swapdex,
|
||||
ternoa,
|
||||
trustbase,
|
||||
turing,
|
||||
uart,
|
||||
'unit-node': unitv,
|
||||
'unit-parachain': unitv,
|
||||
|
||||
@ -11,41 +11,7 @@ const definitions: OverrideBundleDefinition = {
|
||||
{
|
||||
// on all versions
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
Contribution: {
|
||||
account_id: 'AccountId',
|
||||
value: 'Balance'
|
||||
},
|
||||
Grant: {
|
||||
contributions: 'Vec<Contribution>',
|
||||
is_approved: 'bool',
|
||||
is_canceled: 'bool',
|
||||
is_withdrawn: 'bool',
|
||||
matching_fund: 'Balance',
|
||||
project_index: 'ProjectIndex',
|
||||
withdrawal_expiration: 'BlockNumber'
|
||||
},
|
||||
Project: {
|
||||
create_block_number: 'BlockNumber',
|
||||
description: 'Vec<u8>',
|
||||
logo: 'Vec<u8>',
|
||||
name: 'Vec<u8>',
|
||||
owner: 'AccountId',
|
||||
website: 'Vec<u8>'
|
||||
},
|
||||
ProjectIndex: 'u32',
|
||||
ProjectOf: 'Project',
|
||||
Round: {
|
||||
end: 'BlockNumber',
|
||||
grants: 'Vec<Grant>',
|
||||
is_canceled: 'bool',
|
||||
is_finalized: 'bool',
|
||||
matching_fund: 'Balance',
|
||||
start: 'BlockNumber'
|
||||
},
|
||||
RoundIndex: 'u32',
|
||||
RoundOf: 'Round'
|
||||
}
|
||||
types: {}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
19
packages/apps-config/src/api/spec/turing.ts
Normal file
19
packages/apps-config/src/api/spec/turing.ts
Normal file
@ -0,0 +1,19 @@
|
||||
// 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: {}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -379,6 +379,17 @@ export function createKusama (t: TFunction): EndpointOption {
|
||||
Dappforce: 'wss://para.subsocial.network'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'turing',
|
||||
isUnreachable: true,
|
||||
homepage: 'https://oak.tech',
|
||||
paraId: 2114,
|
||||
text: t('rpc.turing.oak', 'Turing Network', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
OAK: 'wss://rpc.turing.oak.tech',
|
||||
OnFinality: 'wss://turing.api.onfinality.io/public-ws'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'unorthodox',
|
||||
homepage: 'https://standard.tech/',
|
||||
|
||||
@ -125,6 +125,7 @@ const chainSubDAO = 'linear-gradient(50deg, #F20092 0%, #FF4D5D 100%)';
|
||||
const chainSubsocial = '#b9018c';
|
||||
const chainSwapdex = '#E94082';
|
||||
const chainTrustBase = '#ff43aa';
|
||||
const chainTuring = '#A8278C';
|
||||
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%)';
|
||||
const chainVln = '#33cc33';
|
||||
@ -385,6 +386,7 @@ export const chainColors: Record<string, string> = Object.entries({
|
||||
Track: chainRoccoTrack,
|
||||
Trick: chainRoccoTrick,
|
||||
'TrustBase PC1': chainTrustBase,
|
||||
'Turing Network': chainTuring,
|
||||
'uni arts staging network': chainUniarts,
|
||||
'UniArts Mainnet': chainUniarts,
|
||||
'Unique Node': chainUnique,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/chains/turing.png
Normal file
BIN
packages/apps-config/src/ui/logos/chains/turing.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 130 KiB |
@ -43,6 +43,7 @@ import chainShiden from './chains/shiden.png';
|
||||
import chainSnakenet from './chains/snakenet.svg';
|
||||
import chainSpanner from './chains/spanner.png';
|
||||
import chainStandard from './chains/standard.png';
|
||||
import chainTuring from './chains/turing.png';
|
||||
import chainUnique from './chains/unique.svg';
|
||||
import chainUnorthodox from './chains/unorthodox.png';
|
||||
import extensionPolkadotJs from './extensions/polkadot-js.svg';
|
||||
@ -330,6 +331,7 @@ export const chainLogos = Object.entries({
|
||||
Trick: chainRococoTrick,
|
||||
trustbase: nodeTrustBase,
|
||||
'TrustBase PC1': nodeTrustBase,
|
||||
turing: chainTuring,
|
||||
'uni arts staging network': nodeUniarts,
|
||||
'UniArts Mainnet': nodeUniarts,
|
||||
Unique: chainUnique,
|
||||
@ -732,6 +734,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
swapdex: nodeSwapdex,
|
||||
'ternoa-testnet': nodeTernoa,
|
||||
trustbase: nodeTrustBase,
|
||||
turing: chainTuring,
|
||||
uniarts: nodeUniarts,
|
||||
unique: nodeUnique,
|
||||
unitv: nodeUnitv,
|
||||
|
||||
@ -242,6 +242,7 @@
|
||||
"rpc.test.zCloak": "zCloak-network",
|
||||
"rpc.test.zeitgeist": "Zeitgeist Battery Station",
|
||||
"rpc.test.zero": "Zero",
|
||||
"rpc.turing.oak": "Turing Network",
|
||||
"rpc.westend": "Westend",
|
||||
"rpc.westend.basilisk": "Basilisk Egg",
|
||||
"rpc.westend.charcoal": "Charcoal",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user