mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-28 13:07:56 +00:00
11678fe7cd
- 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
32 lines
858 B
TypeScript
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}`;
|
|
}
|