Add Zeitgeist battery park endpoint (#5000)
* Add Zeitgeist battery park endpoint * Fix type location in type-defs package Use semver version Fix package
This commit is contained in:
parent
2e4f0d4f46
commit
c4e61df5e8
@ -19,6 +19,7 @@
|
||||
"@snowfork/snowbridge-types": "^0.2.3",
|
||||
"@sora-substrate/type-definitions": "^0.6.11",
|
||||
"@subsocial/types": "^0.4.35-beta.2",
|
||||
"@zeitgeistpm/type-defs": "^0.1.35",
|
||||
"moonbeam-types-bundle": "1.1.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -60,6 +60,7 @@ import trustbase from './trustbase';
|
||||
import uniarts from './uniarts';
|
||||
import unique from './unique';
|
||||
import vln from './vln';
|
||||
import zeitgeist from './zeitgeist';
|
||||
import zenlink from './zenlink';
|
||||
import zero from './zero';
|
||||
|
||||
@ -134,7 +135,8 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
subzero: zero,
|
||||
ternoa,
|
||||
trustbase,
|
||||
uniarts
|
||||
uniarts,
|
||||
zeitgeist: zeitgeist
|
||||
};
|
||||
|
||||
export default spec;
|
||||
|
||||
17
packages/apps-config/src/api/spec/zeitgeist.ts
Normal file
17
packages/apps-config/src/api/spec/zeitgeist.ts
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import * as typeDefs from '@zeitgeistpm/type-defs';
|
||||
|
||||
import { typesFromDefs } from '../util';
|
||||
|
||||
const bundle = {
|
||||
types: [{
|
||||
minmax: [0, undefined],
|
||||
types: { ...typesFromDefs(typeDefs) }
|
||||
}]
|
||||
};
|
||||
|
||||
export default bundle as OverrideBundleDefinition;
|
||||
@ -270,6 +270,13 @@ export function createTesting (t: TFunction): LinkOption[] {
|
||||
'NodeFactory(Vedran)': 'wss://westend.vedran.nodefactory.io/ws'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'zeitgeist',
|
||||
text: t('rpc.zeitgeist', 'Zeitgeist Battery Park', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
Zeitgeist: 'wss://bp-rpc.zeitgeist.pm'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'zero',
|
||||
text: t('rpc.zero', 'Zero', { ns: 'apps-config' }),
|
||||
|
||||
@ -77,6 +77,7 @@ const nodeSubDAO = 'linear-gradient(50deg, #F20092 0%, #FF4D5D 100%)';
|
||||
const nodeSubsocial = '#b9018c';
|
||||
const nodeTernoa = '#d622ff';
|
||||
const nodeUnique = chainUnique;
|
||||
const nodeZeitgeist = 'linear-gradient(180deg, rgba(32,90,172,1) 0%, rgba(26,72,138,1) 50%, rgba(13,36,69,1) 100%)';
|
||||
const nodeZero = '#0099cc';
|
||||
const nodeZenlink = 'linear-gradient(45deg, #F20082 0%, #FF4D4D 100%)';
|
||||
|
||||
@ -176,6 +177,8 @@ export const nodeColors: Record<string, any> = [
|
||||
['subzero node', nodeZero],
|
||||
['Ternoa Node', nodeTernoa],
|
||||
['Unique Node', nodeUnique],
|
||||
['Zeitgeist Node', nodeZeitgeist],
|
||||
['Zeitgeist Collator', nodeZeitgeist],
|
||||
['Zenlink Collator', nodeZenlink],
|
||||
['SubDAO Collator', nodeSubDAO]
|
||||
// ['node template', emptyColor],
|
||||
|
||||
@ -73,6 +73,7 @@ import nodeTrustBase from './nodes/trustbase.png';
|
||||
import nodeUniarts from './nodes/uniarts.png';
|
||||
import nodeUnique from './nodes/unique.svg';
|
||||
import nodeVln from './nodes/valiu.png';
|
||||
import nodeZeitgeist from './nodes/zeitgeist.png';
|
||||
import nodeZenlink from './nodes/zenlink.svg';
|
||||
import nodeZero from './nodes/zero.svg';
|
||||
// last-resort fallback, just something empty
|
||||
@ -203,7 +204,9 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['Unique Node', nodeUnique],
|
||||
['Vln', nodeVln],
|
||||
['PHOENIX Node', nodePhoenix],
|
||||
['PHOENIX Collator', nodePhoenix]
|
||||
['PHOENIX Collator', nodePhoenix],
|
||||
['Zeitgeist Node', nodeZeitgeist],
|
||||
['Zeitgeist Collator', nodeZeitgeist]
|
||||
].reduce((logos, [node, logo]): Record<string, unknown> => ({
|
||||
...logos,
|
||||
[(node as string).toLowerCase().replace(/-/g, ' ')]: logo
|
||||
@ -298,6 +301,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
unique: nodeUnique,
|
||||
vln: nodeVln,
|
||||
westend: nodePolkadot,
|
||||
zeitgeist: nodeZeitgeist,
|
||||
zero: nodeZero
|
||||
};
|
||||
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/zeitgeist.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/zeitgeist.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 113 KiB |
@ -2432,6 +2432,7 @@ __metadata:
|
||||
"@snowfork/snowbridge-types": ^0.2.3
|
||||
"@sora-substrate/type-definitions": ^0.6.11
|
||||
"@subsocial/types": ^0.4.35-beta.2
|
||||
"@zeitgeistpm/type-defs": ^0.1.35
|
||||
i18next: ^19.9.2
|
||||
moonbeam-types-bundle: 1.1.12
|
||||
languageName: unknown
|
||||
@ -4324,6 +4325,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@zeitgeistpm/type-defs@npm:^0.1.35":
|
||||
version: 0.1.35
|
||||
resolution: "@zeitgeistpm/type-defs@npm:0.1.35"
|
||||
checksum: ede8b1df7301d2ce2ea14c0567570a3cb1b5f312cca7b3d6791199bd9108ce9d457215b4582c9f4893e12a8552390c16cc207d8260eb71a30522e13d71b90d19
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@zondax/ledger-polkadot@npm:^0.13.4":
|
||||
version: 0.13.4
|
||||
resolution: "@zondax/ledger-polkadot@npm:0.13.4"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user