-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Paseo Testnet * include locale * Update packages/apps-config/src/api/constants.ts Co-authored-by: Jaco <[email protected]> * lint * Update packages/apps-config/src/endpoints/index.ts Co-authored-by: Jaco <[email protected]> --------- Co-authored-by: Jaco <[email protected]>
- Loading branch information
Showing
4 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters