From 52a47613e5745438f4d583714e023fd42564fbb2 Mon Sep 17 00:00:00 2001 From: EugenWay Date: Sun, 30 Oct 2022 12:59:31 +0100 Subject: [PATCH] add Vara Network (#8285) * add Vara chain * add node Logo * change RPC vara endpoint * fix lint * fix test --- packages/apps-config/src/api/spec/index.ts | 1 + .../apps-config/src/endpoints/production.ts | 7 +++++ packages/apps-config/src/ui/colors.ts | 2 ++ .../apps-config/src/ui/logos/chains/vara.svg | 19 ++++++++++++ packages/apps-config/src/ui/logos/index.ts | 4 +++ .../apps-config/src/ui/logos/nodes/vara.svg | 30 +++++++++++++++++++ 6 files changed, 63 insertions(+) create mode 100644 packages/apps-config/src/ui/logos/chains/vara.svg create mode 100644 packages/apps-config/src/ui/logos/nodes/vara.svg diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index e4b6b4e054..8f69be0995 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -278,6 +278,7 @@ const spec: Record = { 'unit-parachain': unitv, unorthodox: standard, vanilla: parallel, + vara: standard, vodka, 'web3games-node': web3games, 'zcloak-network': zCloak, diff --git a/packages/apps-config/src/endpoints/production.ts b/packages/apps-config/src/endpoints/production.ts index 2420d748d8..9b2ecc70ed 100644 --- a/packages/apps-config/src/endpoints/production.ts +++ b/packages/apps-config/src/endpoints/production.ts @@ -309,6 +309,13 @@ export const prodChains: EndpointOption[] = [ UniArts: 'wss://mainnet.uniarts.vip:9443' } }, + { + info: 'vara', + text: 'Vara', + providers: { + 'Gear Tech': 'wss://rpc.vara-network.io' + } + }, { info: 'westlake', text: 'Westlake', diff --git a/packages/apps-config/src/ui/colors.ts b/packages/apps-config/src/ui/colors.ts index f7cb863464..716be0be22 100644 --- a/packages/apps-config/src/ui/colors.ts +++ b/packages/apps-config/src/ui/colors.ts @@ -153,6 +153,7 @@ const chainUniarts = 'linear-gradient(150deg, #333ef7 0%, #55adff 100%)'; const chainUnique = '#40BCFF'; const chainUnitv = '#1452F0'; const chainUnorthodox = 'radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(42,244,187,1) 35%, rgba(10,10,10,1) 100%)'; +const chainVara = '#32e37d'; const chainVirto = '#063970'; const chainVln = '#33cc33'; const chainWatr = '#373b39'; @@ -471,6 +472,7 @@ export const chainColors: Record = Object.entries({ 'UniArts Mainnet': chainUniarts, 'Unique Node': chainUnique, UNIT: chainUnitv, + 'Vara Network': chainVara, VirtoRococo: chainVirto, 'VLN PC': chainVln, Wapex: chainTotem, diff --git a/packages/apps-config/src/ui/logos/chains/vara.svg b/packages/apps-config/src/ui/logos/chains/vara.svg new file mode 100644 index 0000000000..d72fffed0d --- /dev/null +++ b/packages/apps-config/src/ui/logos/chains/vara.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + diff --git a/packages/apps-config/src/ui/logos/index.ts b/packages/apps-config/src/ui/logos/index.ts index 4e185884b2..6d57ca9781 100644 --- a/packages/apps-config/src/ui/logos/index.ts +++ b/packages/apps-config/src/ui/logos/index.ts @@ -71,6 +71,7 @@ import nodeTotem from './chains/totem.svg'; import chainTuring from './chains/turing.png'; import chainUnique from './chains/unique.svg'; import chainUnorthodox from './chains/unorthodox.png'; +import chainVara from './chains/vara.svg'; import chainVirto from './chains/virto.png'; import chainWatr from './chains/watr.png'; import chainEggnet from './chains/webb.png'; @@ -218,6 +219,7 @@ import nodeUniarts from './nodes/uniarts.png'; import nodeUnique from './nodes/unique.svg'; import nodeUnitv from './nodes/unitv.png'; import nodeVln from './nodes/valiu.png'; +import nodeVara from './nodes/vara.svg'; import nodeWeb3games from './nodes/web3games.svg'; import nodeWestend from './nodes/westend_colour.svg'; import nodeWestlake from './nodes/westlake.png'; @@ -440,6 +442,7 @@ export const chainLogos = Object.entries({ UNIQUE: chainUnique, 'Unit Network': nodeUnitv, Unorthodox: chainUnorthodox, + 'Vara Network': chainVara, VirtoRococo: chainVirto, Vln: nodeVln, 'VLN PC': nodeVln, @@ -944,6 +947,7 @@ export const namedLogos: Record = { unitv: nodeUnitv, unorthodox: chainUnorthodox, vanilla: nodeParallel, + vara: nodeVara, vln: nodeVln, web3games: nodeWeb3games, westend: nodeWestend, diff --git a/packages/apps-config/src/ui/logos/nodes/vara.svg b/packages/apps-config/src/ui/logos/nodes/vara.svg new file mode 100644 index 0000000000..4e7ff666f3 --- /dev/null +++ b/packages/apps-config/src/ui/logos/nodes/vara.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +