Add ajuna network (#6979)

* add ajuna network

* fix lints

Co-authored-by: Eric <cowboy-bebug@users.noreply.github.com>
This commit is contained in:
Eric 2022-02-16 19:11:16 +13:00 committed by GitHub
parent 221e5f6041
commit 6b00a0be2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,20 @@
// Copyright 2017-2022 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleDefinition } from '@polkadot/types/types';
/* eslint-disable sort-keys */
const definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'MultiAddress',
LookupSource: 'MultiAddress'
}
}
]
};
export default definitions;

View File

@ -4,6 +4,7 @@
import type { OverrideBundleDefinition } from '@polkadot/types/types';
import acala from './acala';
import ajuna from './ajuna';
import altair from './altair';
import apron from './apron';
import aresGladios from './ares-gladios';
@ -132,6 +133,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
VLN: vln,
'VLN-PC': vlnrococo,
...acala,
ajuna,
altair,
apron,
'ares-gladios': aresGladios,

View File

@ -17,6 +17,13 @@ import { expandEndpoints } from './util';
export function createTesting (t: TFunction, firstOnly: boolean, withSort: boolean): LinkOption[] {
return expandEndpoints(t, [
// alphabetical based on chain name, e.g. Amber, Arcadia, Beresheet, ...
{
info: 'ajuna',
text: t('rpc.test.ajuna', 'Ajuna Network', { ns: 'apps-config' }),
providers: {
'Ajuna Network': 'wss://rpc-test.ajuna.network'
}
},
{
info: 'aleph',
text: t('rpc.test.aleph', 'Aleph Zero Testnet', { ns: 'apps-config' }),

View File

@ -15,6 +15,7 @@ const emptyColor = '#99999';
// alphabetical
const chainSherpax = '#6bbee8';
const chainAcala = '#645AFF';
const chainAjuna = 'linear-gradient(135deg, #0e0c14, #12203b, #1f3451)';
const chainAleph = '#00CCAB';
const chainAltair = '#ffb700';
const chainApron = 'linear-gradient(45deg, #0099F7 0%, #2E49EB 100%)';
@ -128,6 +129,7 @@ const chainWeb3games = '#000000';
const chainWestlake = 'linear-gradient(-90deg, #9400D3 0%, #5A5CA9 50%, #00BFFF 100%)';
// based on node name
// alphabetical
const nodeAjuna = 'linear-gradient(135deg, #0e0c14, #12203b, #1f3451)';
const nodeApron = 'linear-gradient(45deg, #0099F7 0%, #2E49EB 100%)';
const nodeAres = '#E56239';
const nodeAstar = '#1b6dc1d9';
@ -214,6 +216,7 @@ export const chainColors: Record<string, string> = Object.entries({
'Acala Dev': chainAcala,
'acala mandala pc1': chainRoccoMandala,
'acala mandala pc2': chainRoccoMandala,
Ajuna: chainAjuna,
'Aleph Zero': chainAleph,
'Aleph Zero Testnet': chainAleph,
Altair: chainAltair,
@ -396,6 +399,7 @@ export const chainColors: Record<string, string> = Object.entries({
// Alphabetical overrides based on the actual software node type
// NOTE: This is as retrieved via the system.name RPC
export const nodeColors = Object.entries({
Ajuna: nodeAjuna,
'Apron Node': nodeApron,
Astar: nodeAstar,
'Automata ContextFree Node': nodeAutomataContextFree,

View File

@ -53,6 +53,7 @@ import externalStatescan from './external/statescan.svg';
import externalSubId from './external/subid.svg';
import externalSubscan from './external/subscan.svg';
import externalSubsquare from './external/subsquare.svg';
import nodeAjuna from './nodes/ajuna.png';
import nodeApron from './nodes/apron.png';
import nodeAres from './nodes/ares.png';
import nodeAresGladios from './nodes/ares-gladios.svg';
@ -175,6 +176,7 @@ import emptyLogo from './empty.svg';
// Alphabetical overrides based on the actual matched chain name
// NOTE: This is as retrieved via system.chain RPC
export const chainLogos = Object.entries({
Ajuna: nodeAjuna,
'Aleph Zero': chainAleph,
'Aleph Zero Testnet': chainAleph,
Altair: chainAltair,
@ -339,6 +341,7 @@ export const chainLogos = Object.entries({
// NOTE: This is as retrieved via system.name RPC
export const nodeLogos = Object.entries({
'Acala Node': chainAcala,
Ajuna: nodeAjuna,
'Apron Node': nodeApron,
'Apron Parachain Collator': nodeApron,
'Ares Gladios': nodeAresGladios,
@ -520,6 +523,7 @@ export const specLogos = Object.entries({
// https://github.com/polkadot-js/common/blob/master/packages/networks/src/index.ts)
export const namedLogos: Record<string, unknown> = {
acala: chainAcala,
ajuna: nodeAjuna,
aleph: chainAleph,
alexander: nodePolkadot,
altair: chainAltair,

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -168,6 +168,7 @@
"rpc.rococo.zeitgeist": "Zeitgeist PC",
"rpc.rococo.zenlink": "Zenlink PC1",
"rpc.spanner": "Spanner",
"rpc.test.ajuna": "Ajuna Network",
"rpc.test.aleph": "Aleph Zero Testnet",
"rpc.test.amber": "Amber",
"rpc.test.ares.network": "Ares Gladios",
@ -250,4 +251,4 @@
"ss58.default": "Default for the connected node",
"testnet.kylin-node.co.uk": "Kylin Testnet",
"westend.kylin-node.co.uk": "Pichiu"
}
}