mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-23 09:31:01 +00:00
feat(web): add network subpages and subdomains listing page
- Add /subdomains page listing all 20 PezkuwiChain subdomains - Add Back to Home button to Subdomains page - Create NetworkPage reusable component for network details - Add 7 network subpages: /mainnet, /staging, /testnet, /beta, /alfa, /development, /local - Update ChainSpecs network cards to navigate to network subpages - Add i18n translations for chainSpecs section in en.ts - Add SDK docs with rebranding support (rebrand-rustdoc.cjs) - Add generate-docs-structure.cjs for automatic docs generation - Update shared libs: endpoints, polkadot, wallet, xcm-bridge - Add new token logos: TYR, ZGR, pezkuwi_icon - Add new pages: Explorer, Docs, Wallet, Api, Faucet, Developers, Grants, Wiki, Forum, Telemetry
This commit is contained in:
@@ -3,46 +3,22 @@
|
||||
*/
|
||||
|
||||
import type { BlockchainNetwork } from '../types/blockchain';
|
||||
import { getCurrentNetworkConfig } from './endpoints';
|
||||
|
||||
/**
|
||||
* Pezkuwi blockchain network configuration
|
||||
* Uses BETA endpoint from centralized endpoints.ts (source of truth)
|
||||
*/
|
||||
export const PEZKUWI_NETWORK: BlockchainNetwork = {
|
||||
name: 'Pezkuwi',
|
||||
endpoint: 'wss://beta-rpc.pezkuwi.art',
|
||||
endpoint: getCurrentNetworkConfig().wsEndpoint,
|
||||
chainId: 'pezkuwi',
|
||||
};
|
||||
|
||||
/**
|
||||
* Common blockchain endpoints
|
||||
*/
|
||||
export const BLOCKCHAIN_ENDPOINTS = {
|
||||
mainnet: 'wss://mainnet.pezkuwichain.io',
|
||||
testnet: 'wss://ws.pezkuwichain.io',
|
||||
local: 'ws://127.0.0.1:9944',
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Get the appropriate WebSocket endpoint based on environment
|
||||
*/
|
||||
function getWebSocketEndpoint(): string {
|
||||
const network = import.meta.env.VITE_NETWORK || 'local';
|
||||
|
||||
switch (network) {
|
||||
case 'mainnet':
|
||||
return import.meta.env.VITE_WS_ENDPOINT_MAINNET || BLOCKCHAIN_ENDPOINTS.mainnet;
|
||||
case 'testnet':
|
||||
return import.meta.env.VITE_WS_ENDPOINT_TESTNET || BLOCKCHAIN_ENDPOINTS.testnet;
|
||||
case 'local':
|
||||
default:
|
||||
return import.meta.env.VITE_WS_ENDPOINT_LOCAL || BLOCKCHAIN_ENDPOINTS.local;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Default endpoint (reads from environment variables)
|
||||
*/
|
||||
export const DEFAULT_ENDPOINT = getWebSocketEndpoint();
|
||||
export const DEFAULT_ENDPOINT = getCurrentNetworkConfig().wsEndpoint;
|
||||
|
||||
/**
|
||||
* Get block explorer URL for a transaction
|
||||
|
||||
Reference in New Issue
Block a user