Files
pwap/shared/blockchain/polkadot.ts
T
pezkuwichain 11678fe7cd 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
2025-12-11 00:33:47 +03:00

32 lines
858 B
TypeScript

/**
* Polkadot/Substrate blockchain utilities
*/
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: getCurrentNetworkConfig().wsEndpoint,
chainId: 'pezkuwi',
};
/**
* Default endpoint (reads from environment variables)
*/
export const DEFAULT_ENDPOINT = getCurrentNetworkConfig().wsEndpoint;
/**
* Get block explorer URL for a transaction
* @param txHash - Transaction hash
* @returns Block explorer URL
*/
export function getExplorerUrl(txHash: string): string {
// Update with your actual block explorer URL
return `https://explorer.pezkuwichain.app/tx/${txHash}`;
}