parent
4e2cbb965f
commit
bbcbab032c
@ -69,6 +69,7 @@ import uart from './uart';
|
||||
import unique from './unique';
|
||||
import unitv from './unitv';
|
||||
import vln from './vln';
|
||||
import vlnrococo from './vln-rococo';
|
||||
import zeitgeist from './zeitgeist';
|
||||
import zenlink from './zenlink';
|
||||
import zero from './zero';
|
||||
@ -81,6 +82,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
'Darwinia PC2': darwiniaParachain,
|
||||
Equilibrium: equilibrium,
|
||||
VLN: vln,
|
||||
'VLN-PC': vlnrococo,
|
||||
acala,
|
||||
apron,
|
||||
'ares-parachain': aresParachain,
|
||||
|
||||
70
packages/apps-config/src/api/spec/vln-rococo.ts
Normal file
70
packages/apps-config/src/api/spec/vln-rococo.ts
Normal file
@ -0,0 +1,70 @@
|
||||
// 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: [
|
||||
{
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
Asset: {
|
||||
_enum: {
|
||||
Collateral: 'Collateral',
|
||||
Fiat: 'Fiat',
|
||||
Usdv: null
|
||||
}
|
||||
},
|
||||
Collateral: {
|
||||
_enum: [
|
||||
'Usdc'
|
||||
]
|
||||
},
|
||||
Fiat: {
|
||||
_enum: [
|
||||
'Cop',
|
||||
'Vez'
|
||||
]
|
||||
},
|
||||
CurrencyId: 'ForeignCurrencyId',
|
||||
OracleKey: 'Asset',
|
||||
OracleValue: 'FixedU128',
|
||||
CurrencyIdOf: 'ForeignCurrencyId',
|
||||
TimestampedValue: {
|
||||
value: 'OracleValue',
|
||||
timestamp: 'Moment'
|
||||
},
|
||||
TimestampedValueOf: 'TimestampedValue',
|
||||
OrderedSet: 'Vec<AccountId>',
|
||||
Share: 'Permill',
|
||||
XCurrencyId: {
|
||||
chain_id: 'ChainId',
|
||||
currency_id: 'Bytes'
|
||||
},
|
||||
ChainId: {
|
||||
_enum: {
|
||||
RelayChain: null,
|
||||
Parachain: 'ParaId'
|
||||
}
|
||||
},
|
||||
ForeignCurrencyId: {
|
||||
_enum: {
|
||||
Token: 'TokenSymbol'
|
||||
}
|
||||
},
|
||||
TokenSymbol: {
|
||||
_enum: [
|
||||
'ACA',
|
||||
'AUSD',
|
||||
'DOT',
|
||||
'USDV'
|
||||
]
|
||||
}
|
||||
}
|
||||
}]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -405,6 +405,14 @@ export function createRococo (t: TFunction): LinkOption[] {
|
||||
providers: {
|
||||
'Unit Network': 'wss://unitp.io'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'rococoVln',
|
||||
paraId: 3586,
|
||||
text: t('rpc.rococo.vln', 'Valiu Liquidity Network PC', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
Valiu: 'wss://vln.valiu.dev'
|
||||
}
|
||||
}
|
||||
]
|
||||
}]);
|
||||
|
||||
@ -64,6 +64,7 @@ const chainSubDAO = 'linear-gradient(50deg, #F20092 0%, #FF4D5D 100%)';
|
||||
const chainSubsocial = '#b9018c';
|
||||
const chainTrustBase = '#ff43aa';
|
||||
const chainUnitv = '#1452F0';
|
||||
const chainVln = '#33cc33';
|
||||
// based on node name
|
||||
// alphabetical
|
||||
const nodeApron = 'linear-gradient(45deg, #0099F7 0%, #2E49EB 100%)';
|
||||
@ -173,6 +174,7 @@ export const chainColors: Record<string, any> = [
|
||||
['TrustBase PC1', chainTrustBase],
|
||||
['uni arts staging network', chainUniarts],
|
||||
['Unique Node', chainUnique],
|
||||
['VLN PC', chainVln],
|
||||
['Westend', chainWestend],
|
||||
['Zenlink PC1', chainZenlink],
|
||||
['ZERO.IO', chainZero],
|
||||
|
||||
@ -145,7 +145,7 @@ export const chainLogos: Record<string, unknown> = [
|
||||
['TrustBase PC1', nodeTrustBase],
|
||||
['uni arts staging network', nodeUniarts],
|
||||
['Unique', chainUnique],
|
||||
['Vln', nodeVln],
|
||||
['VLN PC', nodeVln],
|
||||
['PHOENIX PC1', nodePhoenix],
|
||||
['mybank.network PC1', mybank],
|
||||
['Unit Network', nodeUnitv]
|
||||
@ -242,6 +242,7 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['uni arts node', nodeUniarts],
|
||||
['Unique Node', nodeUnique],
|
||||
['Vln', nodeVln],
|
||||
['VLN PC', nodeVln],
|
||||
['PHOENIX Node', nodePhoenix],
|
||||
['PHOENIX Collator', nodePhoenix],
|
||||
['Unit Node', nodeUnitv],
|
||||
@ -346,6 +347,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
rococoTrick: chainRococoTrick,
|
||||
rococoTrustBase: nodeTrustBase,
|
||||
rococoUnitv: nodeUnitv,
|
||||
rococoVln: nodeVln,
|
||||
rococoZenlink: nodeZenlink,
|
||||
sgc: nodeSgc,
|
||||
snakenet: chainSnakenet,
|
||||
|
||||
@ -106,6 +106,7 @@
|
||||
"rpc.rococo.trick": "Trick",
|
||||
"rpc.rococo.trustbase": "TrustBase PC1",
|
||||
"rpc.rococo.unitv": "Unit Network",
|
||||
"rpc.rococo.vln": "VLN PC",
|
||||
"rpc.rococo.zenlink": "Zenlink PC1",
|
||||
"rpc.sgc": "Sgc",
|
||||
"rpc.sora-substrate": "SORA-staging",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user