Add competitors club network (#6754)
Co-authored-by: J.K. Lurie <jkl@JKs-MacBook-Pro.local>
This commit is contained in:
parent
f7c5269c15
commit
3eefd9ab2c
82
packages/apps-config/src/api/spec/competitors-club.ts
Normal file
82
packages/apps-config/src/api/spec/competitors-club.ts
Normal file
@ -0,0 +1,82 @@
|
||||
// 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: {
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
ClassId: 'u64',
|
||||
ClassInfoOf: 'ClassId',
|
||||
BalanceOf: 'Balance',
|
||||
BalanceReservableOf: 'BalanceOf',
|
||||
Moment: 'u64',
|
||||
Place: {
|
||||
spot: 'u32',
|
||||
payout: 'Balance'
|
||||
},
|
||||
Competitor: {
|
||||
vie_id: '[u8;16]',
|
||||
staked: 'bool',
|
||||
submitted_winner: 'bool'
|
||||
},
|
||||
Vie: {
|
||||
operator: 'AccountId',
|
||||
stake: 'Balance',
|
||||
places: 'Vec<Place>',
|
||||
time: 'Moment',
|
||||
competitors: 'Vec<AccountId>',
|
||||
memo: 'Vec<u8>'
|
||||
},
|
||||
VieOf: 'Vie',
|
||||
VieReq: {
|
||||
stake: 'Balance',
|
||||
places: 'Vec<Place>',
|
||||
competitors: 'Vec<AccountId>',
|
||||
memo: 'Vec<u8>'
|
||||
},
|
||||
VieRequestOf: 'VieReq',
|
||||
Participants: {
|
||||
AccountId: '[u8;16]'
|
||||
},
|
||||
Operators: {
|
||||
AccountId: '[u8;16]'
|
||||
},
|
||||
StandingReq: {
|
||||
competitor: 'AccountId',
|
||||
spot: 'u32'
|
||||
},
|
||||
PodiumReq: {
|
||||
champion: 'AccountId',
|
||||
podium: 'Vec<StandingReq>'
|
||||
},
|
||||
PodiumReqOf: 'PodiumReq',
|
||||
Trophy: {
|
||||
trophy: '[u8; 16]',
|
||||
competitors: 'Vec<AccountId>',
|
||||
stake: 'Balance',
|
||||
memo: 'Vec<u8>',
|
||||
time: 'u64',
|
||||
podium: 'Vec<StandingReq>'
|
||||
},
|
||||
TokenId: 'u64',
|
||||
TokenInfo: {
|
||||
metadata: 'Vec<u8>',
|
||||
owner: 'AccountId',
|
||||
data: 'Trophy'
|
||||
},
|
||||
TokenInfoOf: 'TokenInfo'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -25,6 +25,7 @@ import chainx from './chainx';
|
||||
import clover from './clover';
|
||||
import cloverRococo from './clover-rococo';
|
||||
import coinversation from './coinversation';
|
||||
import competitorsClub from './competitors-club';
|
||||
import crab from './crab';
|
||||
import crownSterlingChain from './crown-sterling';
|
||||
import crust from './crust';
|
||||
@ -152,6 +153,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
clover,
|
||||
'clover-rococo': cloverRococo,
|
||||
coinversation,
|
||||
'competitors-club': competitorsClub,
|
||||
contextfree: automata,
|
||||
'crown-sterling': crownSterlingChain,
|
||||
crust,
|
||||
|
||||
@ -57,6 +57,13 @@ export function createProduction (t: TFunction, firstOnly: boolean, withSort: bo
|
||||
Coinversation: 'wss://rpc.coinversation.io/'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'competitors-club',
|
||||
text: t('rpc.prod.competitors-club', 'Competitors Club', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
'Competitors Club': 'wss://node0.competitors.club/wss'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'crown-sterling',
|
||||
text: t('rpc.prod.crown-sterling', 'Crown Sterling', { ns: 'apps-config' }),
|
||||
|
||||
@ -26,6 +26,7 @@ const chainBitCountryPioneer = '#000000';
|
||||
const chainBeastEave = '#900048';
|
||||
const chainCalamari = '#000000';
|
||||
const chainCoinversation = '#e6017a';
|
||||
const chainCompetitorsClub = '#213830';
|
||||
const chainComposable = '#FF8500';
|
||||
const chainComposableFinance = '#861660';
|
||||
const chainCrab = '#7C30DD';
|
||||
@ -130,6 +131,7 @@ const nodeBitCountry = '#191a2e';
|
||||
const nodeBifrost = '#5a25f0';
|
||||
const nodeCentrifuge = '#fcc367';
|
||||
const nodeCoinversation = '#e6017a';
|
||||
const nodeCompetitorsClub = '#213830';
|
||||
const nodeCrownSterling = '#13264b';
|
||||
const nodeDotMog = '#020609';
|
||||
const nodeEdgeware = '#111111';
|
||||
@ -226,6 +228,7 @@ export const chainColors: Record<string, string> = Object.entries({
|
||||
ChainX: chainChainx,
|
||||
Clover: chainClover,
|
||||
Coinversation: chainCoinversation,
|
||||
'Competitors Club': chainCompetitorsClub,
|
||||
Composable: chainComposable,
|
||||
'Composable Finance': chainComposableFinance,
|
||||
'Crown Sterling': chainCrownSterling,
|
||||
@ -386,6 +389,7 @@ export const nodeColors = Object.entries({
|
||||
'centrifuge chain': nodeCentrifuge,
|
||||
'Centrifuge Chain Node': nodeCentrifuge,
|
||||
Coinversation: nodeCoinversation,
|
||||
'Competitors Club': nodeCompetitorsClub,
|
||||
'Crown Sterling': nodeCrownSterling,
|
||||
'DOTMog Node': nodeDotMog,
|
||||
'edgeware node': nodeEdgeware,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/chains/competitors-club.png
Normal file
BIN
packages/apps-config/src/ui/logos/chains/competitors-club.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
@ -14,6 +14,7 @@ import chainAleph from './chains/aleph.svg';
|
||||
import chainAltair from './chains/altair.svg';
|
||||
import chainAstar from './chains/astar.png';
|
||||
import chainCoinversation from './chains/coinversation.png';
|
||||
import chainCompetitorsClub from './chains/competitors-club.png';
|
||||
import chainComposableFinance from './chains/composableFinance.png';
|
||||
import chainCrownSterling from './chains/crown-sterling.png';
|
||||
import chainDusty from './chains/dusty.png';
|
||||
@ -66,6 +67,7 @@ import nodeCentrifuge from './nodes/centrifuge.png';
|
||||
import nodeChainx from './nodes/chainx.svg';
|
||||
import nodeClover from './nodes/clover.svg';
|
||||
import nodeCoinversation from './nodes/coinversation.png';
|
||||
import nodeCompetitorsClub from './nodes/competitors-club.png';
|
||||
import nodeCrab from './nodes/crab.svg';
|
||||
import nodeCrownSterling from './nodes/crown-sterling.png';
|
||||
import nodeCrust from './nodes/crust.svg';
|
||||
@ -189,6 +191,7 @@ export const chainLogos = Object.entries({
|
||||
ChainX: nodeChainx,
|
||||
'Charcoal Testnet': nodeCentrifuge,
|
||||
Coinversation: chainCoinversation,
|
||||
'Competitors Club': chainCompetitorsClub,
|
||||
'Crown Sterling': chainCrownSterling,
|
||||
'Crust Maxwell': nodeCrustMaxwell,
|
||||
'Crust PC1': nodeCrust,
|
||||
@ -348,6 +351,7 @@ export const nodeLogos = Object.entries({
|
||||
'ChainX Node': nodeChainx,
|
||||
'Clover Node': nodeClover,
|
||||
Coinversation: nodeCoinversation,
|
||||
'Competitors Club': nodeCompetitorsClub,
|
||||
'Crown Sterling': nodeCrownSterling,
|
||||
crust: nodeCrust,
|
||||
'Crust Collator': nodeCrust,
|
||||
@ -522,6 +526,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
charcoal: nodeCentrifuge,
|
||||
clover: nodeClover,
|
||||
coinversation: chainCoinversation,
|
||||
'competitors-club': chainCompetitorsClub,
|
||||
composableFinance: chainComposableFinance,
|
||||
crab: nodeCrab,
|
||||
'crown-sterling': chainCrownSterling,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/competitors-club.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/competitors-club.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
Loading…
Reference in New Issue
Block a user