feat:add vln testnet spec (#4864)
* feat:add vln testnet spec * fix lint * update types * fix lint
This commit is contained in:
parent
bc152396b5
commit
0ca6588bf1
@ -58,6 +58,7 @@ import ternoa from './ternoa';
|
||||
import trustbase from './trustbase';
|
||||
import uniarts from './uniarts';
|
||||
import unique from './unique';
|
||||
import vln from './vln';
|
||||
import zenlink from './zenlink';
|
||||
import zero from './zero';
|
||||
|
||||
@ -66,6 +67,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
Crab: crab,
|
||||
Darwinia: darwinia,
|
||||
Equilibrium: equilibrium,
|
||||
VLN: vln,
|
||||
acala,
|
||||
'ares-parachain': aresParachain,
|
||||
bifrost: bifrost,
|
||||
|
||||
47
packages/apps-config/src/api/spec/vln.ts
Normal file
47
packages/apps-config/src/api/spec/vln.ts
Normal file
@ -0,0 +1,47 @@
|
||||
// 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: 'Asset',
|
||||
OracleKey: 'Asset',
|
||||
OracleValue: 'FixedU128',
|
||||
CurrencyIdOf: 'Asset',
|
||||
TimestampedValue: {
|
||||
value: 'OracleValue',
|
||||
timestamp: 'Moment'
|
||||
},
|
||||
TimestampedValueOf: 'TimestampedValue',
|
||||
OrderedSet: 'Vec<AccountId>',
|
||||
Share: 'Permill'
|
||||
}
|
||||
}]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -239,6 +239,13 @@ export function createTesting (t: TFunction): LinkOption[] {
|
||||
Unique: 'wss://testnet2.uniquenetwork.io'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'vln',
|
||||
text: t('rpc.vln', 'Valiu Liquidity Network', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
Valiu: 'wss://vln.valiu.dev'
|
||||
}
|
||||
},
|
||||
{
|
||||
dnslink: 'westend',
|
||||
info: 'westend',
|
||||
|
||||
@ -70,6 +70,7 @@ import nodeTernoa from './nodes/ternoa.svg';
|
||||
import nodeTrustBase from './nodes/trustbase.png';
|
||||
import nodeUniarts from './nodes/uniarts.png';
|
||||
import nodeUnique from './nodes/unique.png';
|
||||
import nodeVln from './nodes/valiu.png';
|
||||
import nodeZenlink from './nodes/zenlink.svg';
|
||||
import nodeZero from './nodes/zero.svg';
|
||||
// last-resort fallback, just something empty
|
||||
@ -114,7 +115,8 @@ export const chainLogos: Record<string, unknown> = [
|
||||
['Trick', chainRococoTrick],
|
||||
['TrustBase PC1', nodeTrustBase],
|
||||
['Uniarts', nodeUniarts],
|
||||
['Unique', chainUnique]
|
||||
['Unique', chainUnique],
|
||||
['Vln', nodeVln]
|
||||
].reduce((logos, [chain, logo]): Record<string, unknown> => ({
|
||||
...logos,
|
||||
[(chain as string).toLowerCase()]: logo
|
||||
@ -189,7 +191,8 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['Zenlink Collator', nodeZenlink],
|
||||
['SubDAO Collator', nodeSubDAO],
|
||||
['Uniarts', nodeUniarts],
|
||||
['Unique Node', nodeUnique]
|
||||
['Unique Node', nodeUnique],
|
||||
['Vln', nodeVln]
|
||||
].reduce((logos, [node, logo]): Record<string, unknown> => ({
|
||||
...logos,
|
||||
[(node as string).toLowerCase().replace(/-/g, ' ')]: logo
|
||||
@ -275,6 +278,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
'ternoa-chaos': nodeTernoa,
|
||||
uniarts: nodeUniarts,
|
||||
unique: nodeUnique,
|
||||
vln: nodeVln,
|
||||
westend: nodePolkadot,
|
||||
zero: nodeZero
|
||||
};
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/valiu.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/valiu.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.8 KiB |
@ -94,6 +94,7 @@
|
||||
"rpc.trustbase": "TrustBase",
|
||||
"rpc.turbulence": "Turbulence",
|
||||
"rpc.uniarts": "Uniarts",
|
||||
"rpc.vln" : "Valiu",
|
||||
"rpc.unique": "Unique",
|
||||
"rpc.westend": "Westend",
|
||||
"rpc.zero": "Zero",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user