feat: Add Torus Network Chain (#11175)
* feat: Add Torus Network Chain * feat: Add Torus logo to production endpoints * fix: Update copyright year in auto-generated Torus PNG file * fix: sort torus url in `production.ts`
This commit is contained in:
parent
88e18174e6
commit
fc285cba20
@ -126,6 +126,7 @@ import substrateContractsNode from './substrateContractsNode.js';
|
||||
import swapdex from './swapdex.js';
|
||||
import t0rn from './t0rn.js';
|
||||
import ternoa from './ternoa.js';
|
||||
import torus from './torus.js';
|
||||
import trustbase from './trustbase.js';
|
||||
import turing from './turing.js';
|
||||
import uart from './uart.js';
|
||||
@ -305,6 +306,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
ternoa,
|
||||
'testnet-interlay': interbtc,
|
||||
'testnet-kintsugi': interbtc,
|
||||
torus,
|
||||
trustbase,
|
||||
turing,
|
||||
uart,
|
||||
|
||||
34
packages/apps-config/src/api/spec/torus.ts
Normal file
34
packages/apps-config/src/api/spec/torus.ts
Normal file
@ -0,0 +1,34 @@
|
||||
// Copyright 2017-2025 @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: 'u128',
|
||||
ValidatorFee: {
|
||||
stakingFee: 'Percent',
|
||||
weightControlFee: 'Percent'
|
||||
},
|
||||
AgentMetadata: {
|
||||
key: 'AccountId32',
|
||||
name: 'Vec<u8>',
|
||||
url: 'Vec<u8>',
|
||||
metadata: 'Vec<u8>',
|
||||
weight_penalty_factor: 'Percent',
|
||||
registration_block: 'u64',
|
||||
fees: 'ValidatorFee'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -98875,6 +98875,32 @@ export const typesBundle = {
|
||||
}
|
||||
}
|
||||
},
|
||||
"torus": {
|
||||
"types": [
|
||||
{
|
||||
"minmax": [
|
||||
0,
|
||||
null
|
||||
],
|
||||
"types": {
|
||||
"Balance": "u128",
|
||||
"ValidatorFee": {
|
||||
"stakingFee": "Percent",
|
||||
"weightControlFee": "Percent"
|
||||
},
|
||||
"AgentMetadata": {
|
||||
"key": "AccountId32",
|
||||
"name": "Vec<u8>",
|
||||
"url": "Vec<u8>",
|
||||
"metadata": "Vec<u8>",
|
||||
"weight_penalty_factor": "Percent",
|
||||
"registration_block": "u64",
|
||||
"fees": "ValidatorFee"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"trustbase": {
|
||||
"types": [
|
||||
{
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import type { EndpointOption } from './types.js';
|
||||
|
||||
import { chains3dpassSVG, chainsAlephSVG, chainsAnalogSVG, chainsBittensorPNG, chainsChainflipPNG, chainsCommuneaiPNG, chainsCreditcoinPNG, chainsDebioSVG, chainsFragnovaPNG, chainsJurPNG, chainsLiberlandPNG, chainsLogionPNG, chainsMyriadPNG, chainsSpannerPNG, chainsTanglePNG, chainsVaraPNG, chainsVtbPNG } from '../ui/logos/chains/index.js';
|
||||
import { chains3dpassSVG, chainsAlephSVG, chainsAnalogSVG, chainsBittensorPNG, chainsChainflipPNG, chainsCommuneaiPNG, chainsCreditcoinPNG, chainsDebioSVG, chainsFragnovaPNG, chainsJurPNG, chainsLiberlandPNG, chainsLogionPNG, chainsMyriadPNG, chainsSpannerPNG, chainsTanglePNG, chainsTorusPNG, chainsVaraPNG, chainsVtbPNG } from '../ui/logos/chains/index.js';
|
||||
import { nodesAresOdysseySVG, nodesAutonomysPNG, 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';
|
||||
@ -605,6 +605,17 @@ export const prodChains: Omit<EndpointOption, 'teleport'>[] = [
|
||||
logo: nodesTernoaSVG
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'torus',
|
||||
providers: {
|
||||
mainnet: 'wss://api.torus.network'
|
||||
},
|
||||
text: 'Torus',
|
||||
ui: {
|
||||
color: '#070A0E',
|
||||
logo: chainsTorusPNG
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'uniarts',
|
||||
providers: {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -76,6 +76,7 @@ export { chainsStandardPNG } from './generated/standardPNG.js';
|
||||
export { chainsT0rnPNG } from './generated/t0rnPNG.js';
|
||||
export { chainsTanglePNG } from './generated/tanglePNG.js';
|
||||
export { chainsTinkerPNG } from './generated/tinkerPNG.js';
|
||||
export { chainsTorusPNG } from './generated/torusPNG.js';
|
||||
export { chainsTotemSVG } from './generated/totemSVG.js';
|
||||
export { chainsTuringPNG } from './generated/turingPNG.js';
|
||||
export { chainsUnorthodoxPNG } from './generated/unorthodoxPNG.js';
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/chains/torus.png
Normal file
BIN
packages/apps-config/src/ui/logos/chains/torus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.6 KiB |
Loading…
Reference in New Issue
Block a user