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:
Ed. 2025-01-18 10:38:14 -03:00 committed by GitHub
parent 88e18174e6
commit fc285cba20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 81 additions and 1 deletions

View File

@ -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,

View 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;

View File

@ -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": [
{

View File

@ -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

View File

@ -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';

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB