mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-05-08 04:37:56 +00:00
Reorganize repository into monorepo structure
Restructured the project to support multiple frontend applications: - Move web app to web/ directory - Create pezkuwi-sdk-ui/ for Polkadot SDK clone (planned) - Create mobile/ directory for mobile app development - Add shared/ directory with common utilities, types, and blockchain code - Update README.md with comprehensive documentation - Remove obsolete DKSweb/ directory This monorepo structure enables better code sharing and organized development across web, mobile, and SDK UI projects.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Blockchain utilities and helpers
|
||||
*
|
||||
* This module provides common blockchain interaction utilities
|
||||
* that can be used across web and mobile applications.
|
||||
*/
|
||||
|
||||
export * from './polkadot';
|
||||
|
||||
// Add more blockchain utility exports as needed
|
||||
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Polkadot/Substrate blockchain utilities
|
||||
*/
|
||||
|
||||
import type { BlockchainNetwork } from '../types/blockchain';
|
||||
|
||||
/**
|
||||
* Pezkuwi blockchain network configuration
|
||||
*/
|
||||
export const PEZKUWI_NETWORK: BlockchainNetwork = {
|
||||
name: 'Pezkuwi',
|
||||
endpoint: 'wss://pezkuwichain.app:9944',
|
||||
chainId: 'pezkuwi',
|
||||
};
|
||||
|
||||
/**
|
||||
* Common blockchain endpoints
|
||||
*/
|
||||
export const BLOCKCHAIN_ENDPOINTS = {
|
||||
pezkuwi: 'wss://pezkuwichain.app:9944',
|
||||
local: 'ws://127.0.0.1:9944',
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* 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}`;
|
||||
}
|
||||
Reference in New Issue
Block a user