Add Paseo testnet (#10200)
* Add Paseo Testnet * include locale * Update packages/apps-config/src/api/constants.ts Co-authored-by: Jaco <jacogr@gmail.com> * lint * Update packages/apps-config/src/endpoints/index.ts Co-authored-by: Jaco <jacogr@gmail.com> --------- Co-authored-by: Jaco <jacogr@gmail.com>
This commit is contained in:
parent
d7d7168c05
commit
ff3ea32d43
@ -23,6 +23,8 @@ export const POLKADOT_DENOM_BLOCK = new BN(1248328);
|
||||
|
||||
export const ROCOCO_GENESIS = getGenesis('rococo');
|
||||
|
||||
export const PASEO_GENESIS = '0x74300973617e2936e22d46e94fee5016a1a514747ae108277b770d02b47d37d9';
|
||||
|
||||
export const WESTEND_GENESIS = getGenesis('westend');
|
||||
|
||||
export const NEATCOIN_GENESIS = '0xfbb541421d30423c9a753ffa844b64fd44d823f513bf49e3b73b3a656309a595';
|
||||
|
||||
@ -7,6 +7,7 @@ import type { LinkOption } from './types.js';
|
||||
import { createCustom, createDev, createOwn } from './development.js';
|
||||
import { prodChains, prodRelayKusama, prodRelayPolkadot } from './production.js';
|
||||
import { testChains, testRelayRococo, testRelayWestend } from './testing.js';
|
||||
import { testRelayPaseo } from './testingRelayPaseo.js';
|
||||
import { expandEndpoints } from './util.js';
|
||||
|
||||
export { CUSTOM_ENDPOINT_KEY } from './development.js';
|
||||
@ -62,6 +63,16 @@ export function createWsEndpoints (t: TFunction = defaultT, firstOnly = false, w
|
||||
value: ''
|
||||
},
|
||||
...expandEndpoints(t, [testRelayRococo], firstOnly, withSort),
|
||||
{
|
||||
isDisabled: false,
|
||||
isHeader: true,
|
||||
isSpaced: true,
|
||||
text: t('rpc.header.paseo.relay', 'Test Paseo & parachains', { ns: 'apps-config' }),
|
||||
textBy: '',
|
||||
ui: {},
|
||||
value: ''
|
||||
},
|
||||
...expandEndpoints(t, [testRelayPaseo], firstOnly, withSort),
|
||||
{
|
||||
isDisabled: false,
|
||||
isHeader: true,
|
||||
|
||||
69
packages/apps-config/src/endpoints/testingRelayPaseo.ts
Normal file
69
packages/apps-config/src/endpoints/testingRelayPaseo.ts
Normal file
@ -0,0 +1,69 @@
|
||||
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { EndpointOption } from './types.js';
|
||||
|
||||
import { PASEO_GENESIS } from '../api/constants.js';
|
||||
import { } from '../ui/logos/chains/index.js';
|
||||
// import { testnetParachainSVG } 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
|
||||
// Polkadot) we try to keep this to live chains only, with RPCs hosted by the community/chain vendor
|
||||
// info: The chain logo name as defined in ../ui/logos/index.ts in namedLogos (this also needs to align with @polkadot/networks)
|
||||
// text: The text to display on the dropdown
|
||||
// providers: The actual hosted secure websocket endpoint
|
||||
//
|
||||
// IMPORTANT: Alphabetical based on text
|
||||
export const testParasPaseo: Omit<EndpointOption, 'teleport'>[] = [
|
||||
// {
|
||||
// homepage: 'https://testPaseoParachainExample.com',
|
||||
// info: 'paseoparachain',
|
||||
// paraId: 2345,
|
||||
// providers: {
|
||||
// Acurast: 'wss://paseo-parachain-testnet-ws.prod.gke.papers.tech'
|
||||
// },
|
||||
// text: 'Testnet Parachain',
|
||||
// ui: {
|
||||
// color: '#000000',
|
||||
// logo: testnetParachainSVG
|
||||
// }
|
||||
// }
|
||||
];
|
||||
|
||||
export const testParasPaseoCommon: EndpointOption[] = [
|
||||
// {
|
||||
// info: 'PaseoAssetHub',
|
||||
// paraId: 1000,
|
||||
// providers: {
|
||||
// Dwellir: 'wss://paseo-asset-hub-rpc.dwellir.com',
|
||||
// Parity: 'wss://paseo-asset-hub-rpc.polkadot.io'
|
||||
// },
|
||||
// teleport: [-1],
|
||||
// text: 'AssetHub',
|
||||
// ui: {
|
||||
// color: '#77bb77',
|
||||
// logo: nodesAssetHubSVG
|
||||
// }
|
||||
// }
|
||||
];
|
||||
|
||||
export const testRelayPaseo: EndpointOption = {
|
||||
dnslink: 'paseo',
|
||||
genesisHash: PASEO_GENESIS,
|
||||
info: 'paseo',
|
||||
linked: [
|
||||
...testParasPaseoCommon,
|
||||
...testParasPaseo
|
||||
],
|
||||
providers: {
|
||||
Amforc: 'wss://paseo.rpc.amforc.com'
|
||||
// 'light client': 'light://substrate-connect/paseo'
|
||||
},
|
||||
teleport: getTeleports(testParasPaseoCommon),
|
||||
text: 'Paseo',
|
||||
ui: {
|
||||
color: '#e6007a',
|
||||
identityIcon: 'polkadot'
|
||||
}
|
||||
};
|
||||
@ -10,6 +10,7 @@
|
||||
"rpc.header.live": "Live networks",
|
||||
"rpc.header.polkadot.relay": "Polkadot & parachains",
|
||||
"rpc.header.rococo.relay": "Test Rococo & parachains",
|
||||
"rpc.header.paseo.relay": "Test Paseo & parachains",
|
||||
"rpc.header.test": "Test networks",
|
||||
"rpc.header.westend.relay": "Test Westend & parachains",
|
||||
"rpc.hosted.via": "via {{host}}",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user