This is a combination of 3 commits. (#6204)
Add Automata Mainnet and ContextFree testnet support append OnFinality as provider and modify logo image resolve conflicts Fix ordering
This commit is contained in:
parent
75b1883e5a
commit
107914a9c5
45
packages/apps-config/src/api/spec/automata.ts
Normal file
45
packages/apps-config/src/api/spec/automata.ts
Normal file
@ -0,0 +1,45 @@
|
||||
// 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: {
|
||||
ResourceId: '[u8; 32]',
|
||||
DepositNonce: 'u64',
|
||||
ProposalStatus: {
|
||||
_enum: [
|
||||
'Initiated',
|
||||
'Approved',
|
||||
'Rejected'
|
||||
]
|
||||
},
|
||||
ProposalVotes: {
|
||||
votes_for: 'Vec<AccountId>',
|
||||
votes_against: 'Vec<AccountId>',
|
||||
status: 'ProposalStatus'
|
||||
},
|
||||
BridgeTokenId: 'U256',
|
||||
BridgeChainId: 'u8',
|
||||
VestingPlan: {
|
||||
start_time: 'u64',
|
||||
cliff_duration: 'u64',
|
||||
total_duration: 'u64',
|
||||
interval: 'u64',
|
||||
initial_amount: 'Balance',
|
||||
total_amount: 'Balance',
|
||||
vesting_during_cliff: 'bool'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -9,6 +9,7 @@ import apron from './apron';
|
||||
import aresGladios from './ares-gladios';
|
||||
import aresParachain from './ares-parachain';
|
||||
import astar from './astar';
|
||||
import automata from './automata';
|
||||
import basilisk from './basilisk';
|
||||
import beresheet from './beresheet';
|
||||
import bifrost from './bifrost';
|
||||
@ -133,6 +134,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
'ares-parachain': aresParachain,
|
||||
asgard: bifrostAsgard,
|
||||
astar,
|
||||
automata: automata,
|
||||
basilisk,
|
||||
beresheet,
|
||||
bifrost: bifrost,
|
||||
@ -146,6 +148,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
clover,
|
||||
'clover-rococo': cloverRococo,
|
||||
coinversation,
|
||||
contextfree: automata,
|
||||
'crown-sterling': crownSterlingChain,
|
||||
crust,
|
||||
'crust-parachain': crust,
|
||||
|
||||
@ -24,6 +24,14 @@ export function createProduction (t: TFunction, firstOnly: boolean, withSort: bo
|
||||
'Aleph Zero Foundation': 'wss://ws.azero.dev'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'automata',
|
||||
text: t('rpc.prod.automata', 'Automata', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
Automata: 'wss://api.ata.network',
|
||||
OnFinality: 'wss://automata.api.onfinality.io/public-ws'
|
||||
}
|
||||
},
|
||||
{
|
||||
dnslink: 'centrifuge',
|
||||
info: 'centrifuge',
|
||||
|
||||
@ -45,6 +45,14 @@ export function createTesting (t: TFunction, firstOnly: boolean, withSort: boole
|
||||
'Ares Protocol': 'wss://gladios.aresprotocol.io'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'automata-contextfree',
|
||||
text: t('rpc.test.automata-contextfree', 'Automata ContextFree', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
'Automata ContextFree': 'wss://cf-api.ata.network',
|
||||
OnFinality: 'wss://contextfree.api.onfinality.io/public-ws'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'edgeware',
|
||||
text: t('rpc.test.beresheet', 'Beresheet', { ns: 'apps-config' }),
|
||||
|
||||
@ -17,6 +17,8 @@ const chainAcala = '#645AFF';
|
||||
const chainAleph = '#00CCAB';
|
||||
const chainApron = 'linear-gradient(45deg, #0099F7 0%, #2E49EB 100%)';
|
||||
const chainAstar = '#1b6dc1d9';
|
||||
const chainAutomata = '#EC7032';
|
||||
const chainAutomataContextFree = '#EC7032';
|
||||
const chainBitCountry = '#191a2e';
|
||||
const chainBitCountryPioneer = '#000000';
|
||||
const chainBeastEave = '#900048';
|
||||
@ -114,6 +116,8 @@ const chainWestlake = 'linear-gradient(-90deg, #9400D3 0%, #5A5CA9 50%, #00BFFF
|
||||
const nodeApron = 'linear-gradient(45deg, #0099F7 0%, #2E49EB 100%)';
|
||||
const nodeAres = '#E56239';
|
||||
const nodeAstar = '#1b6dc1d9';
|
||||
const nodeAutomata = '#EC7032';
|
||||
const nodeAutomataContextFree = '#EC7032';
|
||||
const nodeBasilisk = '#9eec1b';
|
||||
const nodeBitCountry = '#191a2e';
|
||||
const nodeBifrost = '#5a25f0';
|
||||
@ -199,6 +203,8 @@ export const chainColors: Record<string, string> = Object.entries({
|
||||
'Ares Odyssey': nodeOdyssey,
|
||||
'Ares PC1': chainRoccoAres,
|
||||
Astar: chainAstar,
|
||||
Automata: chainAutomata,
|
||||
'Automata ContextFree': chainAutomataContextFree,
|
||||
'Beast Developer': chainBeastEave,
|
||||
bifrost: chainRoccoBifrost,
|
||||
'Bifrost Asgard CC4': chainRoccoBifrost,
|
||||
@ -358,6 +364,8 @@ export const chainColors: Record<string, string> = Object.entries({
|
||||
export const nodeColors = Object.entries({
|
||||
'Apron Node': nodeApron,
|
||||
Astar: nodeAstar,
|
||||
'Automata ContextFree Node': nodeAutomataContextFree,
|
||||
'Automata Node': nodeAutomata,
|
||||
Basilisk: nodeBasilisk,
|
||||
'Bifrost Node': nodeBifrost,
|
||||
'Bit.Country Node': nodeBitCountry,
|
||||
|
||||
@ -53,6 +53,7 @@ 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 nodeAutomata from './nodes/automata.png';
|
||||
import nodeBasilisk from './nodes/basilisk.png';
|
||||
import nodeBeast from './nodes/beast.svg';
|
||||
import nodeBifrost from './nodes/bifrost.svg';
|
||||
@ -171,6 +172,8 @@ export const chainLogos = Object.entries({
|
||||
'Ares Odyssey': nodeAresGladios,
|
||||
'Ares PC1': nodeAres,
|
||||
Astar: chainAstar,
|
||||
Automata: nodeAutomata,
|
||||
'Automata ContextFree': nodeAutomata,
|
||||
'Beast Developer': nodeBeast,
|
||||
Bifrost: nodeBifrost,
|
||||
'Bifrost Asgard CC4': nodeBifrost,
|
||||
@ -317,6 +320,8 @@ export const nodeLogos = Object.entries({
|
||||
'Ares Node': nodeAres,
|
||||
'Ares Parachain Collator': nodeAres,
|
||||
Astar: nodeAstar,
|
||||
'Automata ContextFree Node': nodeAutomata,
|
||||
'Automata Node': nodeAutomata,
|
||||
Basilisk: nodeBasilisk,
|
||||
'Beast Node': nodeBeast,
|
||||
Bifrost: nodeBifrost,
|
||||
@ -489,6 +494,8 @@ export const namedLogos: Record<string, unknown> = {
|
||||
altair: chainAltair,
|
||||
'Ares Gladios': nodeAresGladios,
|
||||
astar: chainAstar,
|
||||
automata: nodeAutomata,
|
||||
'automata-contextfree': nodeAutomata,
|
||||
basilisk: nodeBasilisk,
|
||||
beast: nodeBeast,
|
||||
bifrost: nodeBifrost,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/automata.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/automata.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 126 KiB |
@ -68,6 +68,7 @@
|
||||
"rpc.polkadot.subdao": "SubDAO",
|
||||
"rpc.polkadot.subgame": "SubGame Gamma",
|
||||
"rpc.prod.aleph": "Aleph Zero",
|
||||
"rpc.prod.automata": "Automata",
|
||||
"rpc.prod.centrifuge": "Centrifuge",
|
||||
"rpc.prod.chainx": "ChainX",
|
||||
"rpc.prod.coinversation": "Coinversation",
|
||||
@ -153,6 +154,7 @@
|
||||
"rpc.test.aleph": "Aleph Zero Testnet",
|
||||
"rpc.test.amber": "Amber",
|
||||
"rpc.test.ares.network": "Ares Gladios",
|
||||
"rpc.test.automata-contextfree": "Automata ContextFree",
|
||||
"rpc.test.beresheet": "Beresheet",
|
||||
"rpc.test.bifrost": "Bifrost",
|
||||
"rpc.test.bitcountry": "Bit.Country Tewai",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user