ghost-portal/packages/apps-config/src/endpoints/casperTestnet.ts

29 lines
1.1 KiB
TypeScript

// Copyright 2017-2026 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { EndpointOption } from './types.js';
import { CASPER_TESTNET_GENESIS } from '../api/constants.js';
import { chainsCasperTestnetSVG } from '../ui/logos/chains/index.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 casperTestnet: Omit<EndpointOption, 'teleport'>[] = [
{
genesisHash: CASPER_TESTNET_GENESIS,
info: 'casper-testnet',
providers: {
CASPER: 'wss://casper-rpc.ghostchain.io' as unknown as `wss://${string}`
},
text: 'CASPER Testnet',
ui: {
color: '#F2E370',
logo: chainsCasperTestnetSVG
}
}
];