From cf29737e35c826ed126e6ff119a4f42d216618b7 Mon Sep 17 00:00:00 2001 From: Kyilkhor <90967841+kyilkhor@users.noreply.github.com> Date: Wed, 12 Jul 2023 07:02:57 +0200 Subject: [PATCH] Moonsama listing + types (#9682) * Moonsama listing + types (#1) * moonsama: basic types + bundle, ethereum visibility * moonsama: logo and production entry * moonsama: remove types * moonsama: remove uncessary moonsama types import * moonsama: correct paraId * Moonsama: remove providers key to fix lint Co-authored-by: Jaco --------- Co-authored-by: Pratchett Sama <132891020+sirpsama@users.noreply.github.com> Co-authored-by: Pratchett Sama Co-authored-by: Jaco --- .../src/api/spec/moonsama-development.ts | 22 ------------------- .../src/endpoints/productionRelayPolkadot.ts | 15 ++++++++++++- .../src/settings/ethereumChains.ts | 1 + .../ui/logos/nodes/generated/moonsamaSVG.ts | 6 +++++ .../apps-config/src/ui/logos/nodes/index.ts | 1 + .../src/ui/logos/nodes/moonsama.svg | 17 ++++++++++++++ 6 files changed, 39 insertions(+), 23 deletions(-) delete mode 100644 packages/apps-config/src/api/spec/moonsama-development.ts create mode 100644 packages/apps-config/src/ui/logos/nodes/generated/moonsamaSVG.ts create mode 100644 packages/apps-config/src/ui/logos/nodes/moonsama.svg diff --git a/packages/apps-config/src/api/spec/moonsama-development.ts b/packages/apps-config/src/api/spec/moonsama-development.ts deleted file mode 100644 index f6e17ba63646..000000000000 --- a/packages/apps-config/src/api/spec/moonsama-development.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2017-2023 @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: { - Address: 'AccountId', - LookupSource: 'AccountId' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/endpoints/productionRelayPolkadot.ts b/packages/apps-config/src/endpoints/productionRelayPolkadot.ts index c8a90c0162c4..ecba80cd4247 100644 --- a/packages/apps-config/src/endpoints/productionRelayPolkadot.ts +++ b/packages/apps-config/src/endpoints/productionRelayPolkadot.ts @@ -5,7 +5,7 @@ import type { EndpointOption } from './types.js'; import { POLKADOT_GENESIS } from '../api/constants.js'; import { chainsAcalaSVG, chainsBitgreenPNG, chainsComposableFinancePNG, chainsEquilibriumSVG, chainsFrequencySVG, chainsGeminisPNG, chainsInvarchJPEG, chainsOakPNG, chainsOrigintrailPNG, chainsPeaqPNG, chainsPendulumSVG, chainsPolkadotCircleSVG, chainsSnakenetSVG, chainsTotemSVG, chainsWatrPNG } from '../ui/logos/chains/index.js'; -import { nodesAjunaPNG, nodesAresOdysseySVG, nodesAssetHubSVG, nodesAstarPNG, nodesAventusSVG, nodesBifrostSVG, nodesBridgeHubSVG, nodesCentrifugePNG, nodesCloverSVG, nodesCoinversationPNG, nodesCrustParachainSVG, nodesDarwiniaSVG, nodesEfinitySVG, nodesHashedPNG, nodesIntegriteeSVG, nodesInterlaySVG, nodesKiltPNG, nodesKylinPNG, nodesLitentryPNG, nodesMantaPNG, nodesMoonbeamSVG, nodesNodleSVG, nodesOmnibtcSVG, nodesParallelSVG, nodesPhalaSVG, nodesPolkadexSVG, nodesSoraSubstrateSVG, nodesSubdaoPNG, nodesSubgameSVG, nodesSubsocialSVG, nodesT3rnPNG, nodesUniqueSVG, nodesZeitgeistPNG } from '../ui/logos/nodes/index.js'; +import { nodesAjunaPNG, nodesAresOdysseySVG, nodesAssetHubSVG, nodesAstarPNG, nodesAventusSVG, nodesBifrostSVG, nodesBridgeHubSVG, nodesCentrifugePNG, nodesCloverSVG, nodesCoinversationPNG, nodesCrustParachainSVG, nodesDarwiniaSVG, nodesEfinitySVG, nodesHashedPNG, nodesIntegriteeSVG, nodesInterlaySVG, nodesKiltPNG, nodesKylinPNG, nodesLitentryPNG, nodesMantaPNG, nodesMoonbeamSVG, nodesMoonsamaSVG, nodesNodleSVG, nodesOmnibtcSVG, nodesParallelSVG, nodesPhalaSVG, nodesPolkadexSVG, nodesSoraSubstrateSVG, nodesSubdaoPNG, nodesSubgameSVG, nodesSubsocialSVG, nodesT3rnPNG, nodesUniqueSVG, nodesZeitgeistPNG } from '../ui/logos/nodes/index.js'; import { getTeleports } from './util.js'; // The available endpoints that will show in the dropdown. For the most part (with the exception of @@ -427,6 +427,19 @@ export const prodParasPolkadot: Omit[] = [ logo: nodesMoonbeamSVG } }, + { + homepage: 'https://moonsama.com', + info: 'moonsama', + paraId: 3334, + providers: { + Moonsama: 'wss://rpc.moonsama.com/ws' + }, + text: 'Moonsama', + ui: { + color: '#1a202c', + logo: nodesMoonsamaSVG + } + }, { homepage: 'https://nodle.com', info: 'nodle', diff --git a/packages/apps-config/src/settings/ethereumChains.ts b/packages/apps-config/src/settings/ethereumChains.ts index a0f3286113de..e57cc073af2c 100644 --- a/packages/apps-config/src/settings/ethereumChains.ts +++ b/packages/apps-config/src/settings/ethereumChains.ts @@ -10,6 +10,7 @@ export const ethereumChains = [ 'moonbase', 'moonbeam', 'moonriver', + 'moonsama', 'moonshadow', 'altbeacon', 'alt-producer', diff --git a/packages/apps-config/src/ui/logos/nodes/generated/moonsamaSVG.ts b/packages/apps-config/src/ui/logos/nodes/generated/moonsamaSVG.ts new file mode 100644 index 000000000000..a83e3a9a08ac --- /dev/null +++ b/packages/apps-config/src/ui/logos/nodes/generated/moonsamaSVG.ts @@ -0,0 +1,6 @@ +// Copyright 2017-2023 @polkadot/apps authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +// Do not edit. Auto-generated via node scripts/imgConvert.mjs + +export const nodesMoonsamaSVG = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDIwMDEwOTA0Ly9FTiIKICJodHRwOi8vd3d3LnczLm9yZy9UUi8yMDAxL1JFQy1TVkctMjAwMTA5MDQvRFREL3N2ZzEwLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4wIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiB3aWR0aD0iNDguMDAwMDAwcHQiIGhlaWdodD0iNDguMDAwMDAwcHQiIHZpZXdCb3g9IjAgMCA0OC4wMDAwMDAgNDguMDAwMDAwIgogcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCI+Cgo8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCw0OC4wMDAwMDApIHNjYWxlKDAuMTAwMDAwLC0wLjEwMDAwMCkiCmZpbGw9IiMwMDAwMDAiIHN0cm9rZT0ibm9uZSI+CjxwYXRoIGQ9Ik0xODcgNDI5IGMtNTkgLTE0IC0xMDMgLTU1IC0xMjYgLTExOSAtMzkgLTExMCAtOSAtMjE3IDcyIC0yNTEgNDEKLTE4IDE3MyAtMTggMjE0IDAgODEgMzQgMTExIDE0MSA3MiAyNTEgLTIzIDYzIC02MyAxMDIgLTEyNSAxMTkgLTQ0IDEyIC01NAoxMiAtMTA3IDB6IG0tMTkgLTI1MiBjMiAtMTAgLTMgLTE3IC0xMiAtMTcgLTEwIDAgLTE2IDkgLTE2IDIxIDAgMjQgMjMgMjEgMjgKLTR6IG0xNzUgMyBjLTYgLTIyIC0zMyAtMjggLTMzIC03IDAgMTcgMTAgMjcgMjYgMjcgNyAwIDEwIC04IDcgLTIweiBtLTY3Ci00MSBjMTMgLTE1IDE2IC0yNCA4IC0zNiAtMTggLTI4IC00MiAtMzkgLTYxIC0yNyAtMzIgMjAgLTM5IDQxIC0xOSA2MyAyNCAyNwo0OCAyNyA3MiAweiIvPgo8L2c+Cjwvc3ZnPg=='; diff --git a/packages/apps-config/src/ui/logos/nodes/index.ts b/packages/apps-config/src/ui/logos/nodes/index.ts index cf6e03406a03..c45731d2cf4a 100644 --- a/packages/apps-config/src/ui/logos/nodes/index.ts +++ b/packages/apps-config/src/ui/logos/nodes/index.ts @@ -89,6 +89,7 @@ export { nodesMoonbaseAlphaSVG } from './generated/moonbase_alphaSVG.js'; export { nodesMoonbeamSVG } from './generated/moonbeamSVG.js'; export { nodesMoonriverSVG } from './generated/moonriverSVG.js'; export { nodesMoonrockPNG } from './generated/moonrockPNG.js'; +export { nodesMoonsamaSVG } from './generated/moonsamaSVG.js'; export { nodesMoonshadowPNG } from './generated/moonshadowPNG.js'; export { nodesMybankPNG } from './generated/mybankPNG.js'; export { nodesNftmartPNG } from './generated/nftmartPNG.js'; diff --git a/packages/apps-config/src/ui/logos/nodes/moonsama.svg b/packages/apps-config/src/ui/logos/nodes/moonsama.svg new file mode 100644 index 000000000000..c6730b02e93c --- /dev/null +++ b/packages/apps-config/src/ui/logos/nodes/moonsama.svg @@ -0,0 +1,17 @@ + + + + + + + + \ No newline at end of file