diff --git a/packages/apps-config/src/api/spec/automata.ts b/packages/apps-config/src/api/spec/automata.ts new file mode 100644 index 0000000000..e9048ea0c9 --- /dev/null +++ b/packages/apps-config/src/api/spec/automata.ts @@ -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', + votes_against: 'Vec', + 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; diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index b71cbd2a49..8557c47da2 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -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 = { 'ares-parachain': aresParachain, asgard: bifrostAsgard, astar, + automata: automata, basilisk, beresheet, bifrost: bifrost, @@ -146,6 +148,7 @@ const spec: Record = { clover, 'clover-rococo': cloverRococo, coinversation, + contextfree: automata, 'crown-sterling': crownSterlingChain, crust, 'crust-parachain': crust, diff --git a/packages/apps-config/src/endpoints/production.ts b/packages/apps-config/src/endpoints/production.ts index e9859f9119..b503b1a301 100644 --- a/packages/apps-config/src/endpoints/production.ts +++ b/packages/apps-config/src/endpoints/production.ts @@ -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', diff --git a/packages/apps-config/src/endpoints/testing.ts b/packages/apps-config/src/endpoints/testing.ts index 6704707ce5..3e1afb1e44 100644 --- a/packages/apps-config/src/endpoints/testing.ts +++ b/packages/apps-config/src/endpoints/testing.ts @@ -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' }), diff --git a/packages/apps-config/src/ui/colors.ts b/packages/apps-config/src/ui/colors.ts index 066a88768e..c47b8a8939 100644 --- a/packages/apps-config/src/ui/colors.ts +++ b/packages/apps-config/src/ui/colors.ts @@ -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 = 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 = 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, diff --git a/packages/apps-config/src/ui/logos/index.ts b/packages/apps-config/src/ui/logos/index.ts index 6028448df5..85991eb708 100644 --- a/packages/apps-config/src/ui/logos/index.ts +++ b/packages/apps-config/src/ui/logos/index.ts @@ -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 = { altair: chainAltair, 'Ares Gladios': nodeAresGladios, astar: chainAstar, + automata: nodeAutomata, + 'automata-contextfree': nodeAutomata, basilisk: nodeBasilisk, beast: nodeBeast, bifrost: nodeBifrost, diff --git a/packages/apps-config/src/ui/logos/nodes/automata.png b/packages/apps-config/src/ui/logos/nodes/automata.png new file mode 100644 index 0000000000..1f9f1a436e Binary files /dev/null and b/packages/apps-config/src/ui/logos/nodes/automata.png differ diff --git a/packages/apps/public/locales/en/apps-config.json b/packages/apps/public/locales/en/apps-config.json index 0e2ce0872a..3cc85de5ed 100644 --- a/packages/apps/public/locales/en/apps-config.json +++ b/packages/apps/public/locales/en/apps-config.json @@ -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",