Add communeai (#10630)
* Add communeai * Fix build for adding communeai * Fix export api spec typesbundle
This commit is contained in:
parent
5395f36fca
commit
6b78c062b0
44
packages/apps-config/src/api/spec/communeai.ts
Normal file
44
packages/apps-config/src/api/spec/communeai.ts
Normal file
@ -0,0 +1,44 @@
|
||||
// Copyright 2017-2024 @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: {
|
||||
Balance: 'u64',
|
||||
NeuronMetadata: {
|
||||
version: 'u32',
|
||||
ip: 'u128',
|
||||
port: 'u16',
|
||||
ipType: 'u8',
|
||||
uid: 'u32',
|
||||
netuid: 'u16',
|
||||
modality: 'u8',
|
||||
hotkey: 'AccountId',
|
||||
coldkey: 'AccountId',
|
||||
active: 'u32',
|
||||
lastUpdate: 'u64',
|
||||
priority: 'u64',
|
||||
stake: 'u64',
|
||||
rank: 'u64',
|
||||
trust: 'u64',
|
||||
consensus: 'u64',
|
||||
incentive: 'u64',
|
||||
dividends: 'u64',
|
||||
emission: 'u64',
|
||||
bonds: 'Vec<(u32, u64)>',
|
||||
weights: 'Vec<(u32, u32)>'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -25,6 +25,7 @@ import chainx from './chainx.js';
|
||||
import clover from './clover.js';
|
||||
import cloverRococo from './clover-rococo.js';
|
||||
import coinversation from './coinversation.js';
|
||||
import communeai from './communeai.js';
|
||||
import competitorsClub from './competitors-club.js';
|
||||
import contracts from './contracts.js';
|
||||
import crownSterlingChain from './crown-sterling.js';
|
||||
@ -167,6 +168,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
clover,
|
||||
'clover-rococo': cloverRococo,
|
||||
coinversation,
|
||||
communeai,
|
||||
'competitors-club': competitorsClub,
|
||||
'continuum-runtime': bitcountryPioneer,
|
||||
contracts,
|
||||
|
||||
@ -43135,6 +43135,42 @@ export const typesBundle = {
|
||||
}
|
||||
]
|
||||
},
|
||||
"communeai": {
|
||||
"types": [
|
||||
{
|
||||
"minmax": [
|
||||
0,
|
||||
null
|
||||
],
|
||||
"types": {
|
||||
"Balance": "u64",
|
||||
"NeuronMetadata": {
|
||||
"version": "u32",
|
||||
"ip": "u128",
|
||||
"port": "u16",
|
||||
"ipType": "u8",
|
||||
"uid": "u32",
|
||||
"netuid": "u16",
|
||||
"modality": "u8",
|
||||
"hotkey": "AccountId",
|
||||
"coldkey": "AccountId",
|
||||
"active": "u32",
|
||||
"lastUpdate": "u64",
|
||||
"priority": "u64",
|
||||
"stake": "u64",
|
||||
"rank": "u64",
|
||||
"trust": "u64",
|
||||
"consensus": "u64",
|
||||
"incentive": "u64",
|
||||
"dividends": "u64",
|
||||
"emission": "u64",
|
||||
"bonds": "Vec<(u32, u64)>",
|
||||
"weights": "Vec<(u32, u32)>"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"competitors-club": {
|
||||
"types": [
|
||||
{
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import type { EndpointOption } from './types.js';
|
||||
|
||||
import { chains3dpassSVG, chainsAlephSVG, chainsBittensorPNG, chainsChainflipPNG, chainsCreditcoinPNG, chainsDebioSVG, chainsFragnovaPNG, chainsJurPNG, chainsLiberlandPNG, chainsLogionPNG, chainsMyriadPNG, chainsSpannerPNG, chainsTanglePNG, chainsVaraPNG, chainsVtbPNG } from '../ui/logos/chains/index.js';
|
||||
import { chains3dpassSVG, chainsAlephSVG, chainsBittensorPNG, chainsChainflipPNG, chainsCommuneaiPNG, chainsCreditcoinPNG, chainsDebioSVG, chainsFragnovaPNG, chainsJurPNG, chainsLiberlandPNG, chainsLogionPNG, chainsMyriadPNG, chainsSpannerPNG, chainsTanglePNG, chainsVaraPNG, chainsVtbPNG } from '../ui/logos/chains/index.js';
|
||||
import { nodesAresOdysseySVG, nodesCentrifugePNG, nodesCereSVG, nodesChainxSVG, nodesCompetitorsClubPNG, nodesCrownSterlingPNG, nodesCrustSVG, nodesDatahighwayPNG, nodesDockPNG, nodesEdgewareWhitePNG, nodesEfinitySVG, nodesElysiumPNG, nodesHanyonycashPNG, nodesHumanodePNG, nodesInnovatorPNG, nodesJoystreamSVG, nodesKulupuSVG, nodesKusariSVG, nodesMathSVG, nodesMinixPNG, nodesNftmartPNG, nodesNodleSVG, nodesPolkadexSVG, nodesPolymeshSVG, nodesRiochainSVG, nodesRobonomicsSVG, nodesSherpaxPNG, nodesSoraSubstrateSVG, nodesStafiPNG, nodesSubgameSVG, nodesSubsocialSVG, nodesSwapdexSVG, nodesTernoaSVG, nodesThebifrostPNG, nodesUniartsPNG, nodesUnitnetworkPNG } from '../ui/logos/nodes/index.js';
|
||||
|
||||
export * from './productionRelayKusama.js';
|
||||
@ -122,6 +122,17 @@ export const prodChains: Omit<EndpointOption, 'teleport'>[] = [
|
||||
logo: nodesChainxSVG
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'communeai',
|
||||
providers: {
|
||||
Bitconnect: 'wss://commune-api-node-1.communeai.net'
|
||||
},
|
||||
text: 'Commune AI',
|
||||
ui: {
|
||||
color: '#060606',
|
||||
logo: chainsCommuneaiPNG
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'competitors-club',
|
||||
providers: {
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/chains/communeai.png
Normal file
BIN
packages/apps-config/src/ui/logos/chains/communeai.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
File diff suppressed because one or more lines are too long
@ -17,6 +17,7 @@ export { chainsBitgreenPNG } from './generated/bitgreenPNG.js';
|
||||
export { chainsBittensorPNG } from './generated/bittensorPNG.js';
|
||||
export { chainsBrainstormPNG } from './generated/brainstormPNG.js';
|
||||
export { chainsChainflipPNG } from './generated/chainflipPNG.js';
|
||||
export { chainsCommuneaiPNG } from './generated/communeaiPNG.js';
|
||||
export { chainsComposableFinancePNG } from './generated/composableFinancePNG.js';
|
||||
export { chainsCoretimeKusamaSVG } from './generated/coretime-kusamaSVG.js';
|
||||
export { chainsCreditcoinTestPNG } from './generated/creditcoin-testPNG.js';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user