add astar chain (#6501)
Co-authored-by: Will Park <korea651@gmail.com> Co-authored-by: Hoon Kim <40356749+hoonsubin@users.noreply.github.com>
This commit is contained in:
parent
0ec7787ce9
commit
7741ff345f
42
packages/apps-config/src/api/spec/astar.ts
Normal file
42
packages/apps-config/src/api/spec/astar.ts
Normal file
@ -0,0 +1,42 @@
|
||||
// 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: [
|
||||
{
|
||||
// on all versions
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
Keys: 'AccountId',
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
AmountOf: 'Amount',
|
||||
Amount: 'i128',
|
||||
SmartContract: {
|
||||
_enum: {
|
||||
Evm: 'H160',
|
||||
Wasm: 'AccountId'
|
||||
}
|
||||
},
|
||||
EraStakingPoints: {
|
||||
total: 'Balance',
|
||||
stakers: 'BTreeMap<AccountId, Balance>',
|
||||
formerStakedEra: 'EraIndex',
|
||||
claimedRewards: 'Balance'
|
||||
},
|
||||
EraRewardAndStake: {
|
||||
rewards: 'Balance',
|
||||
staked: 'Balance'
|
||||
},
|
||||
EraIndex: 'u32'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -8,6 +8,7 @@ import altair from './altair';
|
||||
import apron from './apron';
|
||||
import aresGladios from './ares-gladios';
|
||||
import aresParachain from './ares-parachain';
|
||||
import astar from './astar';
|
||||
import basilisk from './basilisk';
|
||||
import beresheet from './beresheet';
|
||||
import bifrost from './bifrost';
|
||||
@ -130,6 +131,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
'ares-gladios': aresGladios,
|
||||
'ares-parachain': aresParachain,
|
||||
asgard: bifrostAsgard,
|
||||
astar,
|
||||
basilisk,
|
||||
beresheet,
|
||||
bifrost: bifrost,
|
||||
|
||||
@ -54,6 +54,16 @@ export function createPolkadot (t: TFunction): EndpointOption {
|
||||
'Polkawallet 0': 'wss://acala.polkawallet.io'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'astar',
|
||||
homepage: 'https://astar.network',
|
||||
paraId: 2006,
|
||||
isUnreachable: true,
|
||||
text: t('rpc.polkadot.astar', 'Astar', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
Astar: 'wss://rpc.astar.network'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'bifrost',
|
||||
homepage: 'https://dot.bifrost.app/?ref=polkadotjs',
|
||||
|
||||
@ -16,6 +16,7 @@ const emptyColor = '#99999';
|
||||
const chainAcala = '#645AFF';
|
||||
const chainAleph = '#00CCAB';
|
||||
const chainApron = 'linear-gradient(45deg, #0099F7 0%, #2E49EB 100%)';
|
||||
const chainAstar = '#1b6dc1d9';
|
||||
const chainBitCountry = '#191a2e';
|
||||
const chainBitCountryPioneer = '#000000';
|
||||
const chainBeastEave = '#900048';
|
||||
@ -110,6 +111,7 @@ const chainWestlake = 'linear-gradient(-90deg, #9400D3 0%, #5A5CA9 50%, #00BFFF
|
||||
// alphabetical
|
||||
const nodeApron = 'linear-gradient(45deg, #0099F7 0%, #2E49EB 100%)';
|
||||
const nodeAres = '#E56239';
|
||||
const nodeAstar = '#1b6dc1d9';
|
||||
const nodeBasilisk = '#9eec1b';
|
||||
const nodeBitCountry = '#191a2e';
|
||||
const nodeBifrost = '#5a25f0';
|
||||
@ -190,6 +192,7 @@ export const chainColors: Record<string, string> = Object.entries({
|
||||
'Apron PC1': chainApron,
|
||||
'Ares Gladios': chainAresGladios,
|
||||
'Ares PC1': chainRoccoAres,
|
||||
Astar: chainAstar,
|
||||
'Beast Developer': chainBeastEave,
|
||||
bifrost: chainRoccoBifrost,
|
||||
'Bifrost Asgard CC4': chainRoccoBifrost,
|
||||
@ -346,6 +349,7 @@ export const chainColors: Record<string, string> = Object.entries({
|
||||
// NOTE: This is as retrieved via the system.name RPC
|
||||
export const nodeColors = Object.entries({
|
||||
'Apron Node': nodeApron,
|
||||
Astar: nodeAstar,
|
||||
Basilisk: nodeBasilisk,
|
||||
'Bifrost Node': nodeBifrost,
|
||||
'Bit.Country Node': nodeBitCountry,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/chains/astar.png
Normal file
BIN
packages/apps-config/src/ui/logos/chains/astar.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@ -12,6 +12,7 @@ import { sanitize } from '../util';
|
||||
import chainAcala from './chains/acala.svg';
|
||||
import chainAleph from './chains/aleph.svg';
|
||||
import chainAltair from './chains/altair.svg';
|
||||
import chainAstar from './chains/astar.png';
|
||||
import chainCrownSterling from './chains/crown-sterling.png';
|
||||
import chainDusty from './chains/dusty.png';
|
||||
import chainEquilibrium from './chains/equilibrium.svg';
|
||||
@ -49,6 +50,7 @@ import nodeApron from './nodes/apron.png';
|
||||
import nodeAres from './nodes/ares.svg';
|
||||
import nodeAresGladios from './nodes/ares-gladios.svg';
|
||||
import nodeAresMars from './nodes/ares-mars.png';
|
||||
import nodeAstar from './nodes/astar.png';
|
||||
import nodeBasilisk from './nodes/basilisk.png';
|
||||
import nodeBeast from './nodes/beast.svg';
|
||||
import nodeBifrost from './nodes/bifrost.svg';
|
||||
@ -162,6 +164,7 @@ export const chainLogos = Object.entries({
|
||||
'Apron PC1': nodeApron,
|
||||
'Ares Gladios': nodeAresGladios,
|
||||
'Ares PC1': nodeAres,
|
||||
Astar: chainAstar,
|
||||
'Beast Developer': nodeBeast,
|
||||
Bifrost: nodeBifrost,
|
||||
'Bifrost Asgard CC4': nodeBifrost,
|
||||
@ -305,6 +308,7 @@ export const nodeLogos = Object.entries({
|
||||
'Ares Gladios': nodeAresGladios,
|
||||
'Ares Node': nodeAres,
|
||||
'Ares Parachain Collator': nodeAres,
|
||||
Astar: nodeAstar,
|
||||
Basilisk: nodeBasilisk,
|
||||
'Beast Node': nodeBeast,
|
||||
Bifrost: nodeBifrost,
|
||||
@ -473,6 +477,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
alexander: nodePolkadot,
|
||||
altair: chainAltair,
|
||||
'Ares Gladios': nodeAresGladios,
|
||||
astar: chainAstar,
|
||||
basilisk: nodeBasilisk,
|
||||
beast: nodeBeast,
|
||||
bifrost: nodeBifrost,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/astar.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/astar.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@ -49,6 +49,7 @@
|
||||
"rpc.manta": "Manta Testnet",
|
||||
"rpc.origintrail": "OriginTrail Parachain Testnet",
|
||||
"rpc.polkadot.acala": "Acala",
|
||||
"rpc.polkadot.astar": "Astar",
|
||||
"rpc.polkadot.bifrost": "Bifrost",
|
||||
"rpc.polkadot.clover": "Clover",
|
||||
"rpc.polkadot.clover-para": "Clover",
|
||||
@ -213,4 +214,4 @@
|
||||
"testnet.kylin-node.co.uk": "Kylin Testnet",
|
||||
"westend-opal.unique.network": "OPAL by UNIQUE",
|
||||
"westend.kylin-node.co.uk": "Pichiu Network"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user