feat: add 3dpass network (#8540)

This commit is contained in:
Mikhail Fedosov 2022-12-14 21:42:39 +03:00 committed by GitHub
parent 9564bbffaa
commit f88d603e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 0 deletions

View File

@ -16,6 +16,13 @@ export * from './productionRelayPolkadot';
//
// IMPORTANT: Alphabetical based on text
export const prodChains: EndpointOption[] = [
{
info: '3dpass',
text: '3DPass',
providers: {
'3dpass': 'wss://rpc2.3dpass.org'
}
},
{
info: 'aleph',
text: 'Aleph Zero',

View File

@ -16,6 +16,13 @@ export * from './testingRelayWestend';
//
// IMPORTANT: Alphabetical based on text
export const testChains: EndpointOption[] = [
{
info: '3dpass-testnet',
text: '3DPass Testnet',
providers: {
'3dpass': 'wss://test-rpc.3dpass.org'
}
},
{
info: 'ajuna',
text: 'Ajuna Testnet',

View File

@ -15,6 +15,7 @@ const emptyColor = '#99999';
// based on chain name
// alphabetical
const chainSherpax = '#6bbee8';
const chain3dpass = '#323232';
const chainAcala = '#645AFF';
const chainAjuna = '#161212';
const chainAleph = '#00CCAB';
@ -270,6 +271,8 @@ export { emptyColor };
// Alphabetical overrides based on the actual matched chain name
// NOTE: This is as retrieved via the system.chain RPC
export const chainColors: Record<string, string> = Object.entries({
'3DP testnet': chain3dpass,
'3dpass - The Ledger of Things': chain3dpass,
Acala: chainAcala,
'Acala Dev': chainAcala,
'acala mandala pc1': chainRoccoMandala,

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -9,6 +9,7 @@
// anything for a specific chain, most would probably fit into the node category (but allow for chain-specific)
// alphabetical
import { sanitize } from '../util';
import chain3dpass from './chains/3dpass.png';
import chainAcala from './chains/acala.svg';
import chainAleph from './chains/aleph.svg';
import chainAltair from './chains/altair.svg';
@ -712,6 +713,8 @@ export const specLogos = Object.entries({
// (Generally would be the 'network' key in the known ss58 as per
// https://github.com/polkadot-js/common/blob/master/packages/networks/src/index.ts)
export const namedLogos: Record<string, unknown> = {
'3dpass': chain3dpass,
'3dpass-testnet': chain3dpass,
acala: chainAcala,
ajuna: nodeAjuna,
aleph: chainAleph,