Rebrand: polkadot → pezkuwi build fixes

- Fixed TypeScript type assertion issues
- Updated imports from api-augment/substrate to api-augment/bizinikiwi
- Fixed imgConvert.mjs header and imports
- Added @ts-expect-error for runtime-converted types
- Fixed all @polkadot copyright headers to @pezkuwi
This commit is contained in:
2026-01-07 02:32:54 +03:00
parent fe2cd390f6
commit 1295c36241
4678 changed files with 26389 additions and 63316 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 615 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 KiB

+3 -3
View File
@@ -3,9 +3,9 @@
// ========================================
// Handles citizenship verification, status checks, and workflow logic
import type { ApiPromise } from '@polkadot/api';
import { web3FromAddress } from '@polkadot/extension-dapp';
import type { InjectedAccountWithMeta } from '@polkadot/extension-inject/types';
import type { ApiPromise } from '@pezkuwi/api';
import { web3FromAddress } from '@pezkuwi/extension-dapp';
import type { InjectedAccountWithMeta } from '@pezkuwi/extension-inject/types';
// ========================================
// TYPE DEFINITIONS
+2 -2
View File
@@ -3,8 +3,8 @@
// ========================================
// Convert blockchain errors to human-readable messages
import type { ApiPromise } from '@polkadot/api';
import type { DispatchError } from '@polkadot/types/interfaces';
import type { ApiPromise } from '@pezkuwi/api';
import type { DispatchError } from '@pezkuwi/types/interfaces';
// ========================================
// ERROR MESSAGE MAPPINGS
+1 -1
View File
@@ -3,7 +3,7 @@
// ========================================
// Functions to check user permissions for protected routes
import type { ApiPromise } from '@polkadot/api';
import type { ApiPromise } from '@pezkuwi/api';
// ========================================
// CITIZENSHIP STATUS CHECK
+3 -3
View File
@@ -3,10 +3,10 @@
// ========================================
// Full on-chain multisig using Substrate pallet-multisig
import type { ApiPromise } from '@polkadot/api';
import type { SubmittableExtrinsic } from '@polkadot/api/types';
import type { ApiPromise } from '@pezkuwi/api';
import type { SubmittableExtrinsic } from '@pezkuwi/api/types';
import { Tiki } from './tiki';
import { encodeAddress, sortAddresses } from '@polkadot/util-crypto';
import { encodeAddress, sortAddresses } from '@pezkuwi/util-crypto';
// ========================================
// MULTISIG CONFIGURATION
+3 -3
View File
@@ -10,8 +10,8 @@
* - No blockchain transactions during actual P2P trading
*/
import { ApiPromise } from '@polkadot/api';
import { InjectedAccountWithMeta } from '@polkadot/extension-inject/types';
import { ApiPromise } from '@pezkuwi/api';
import { InjectedAccountWithMeta } from '@pezkuwi/extension-inject/types';
import { toast } from 'sonner';
import { supabase } from '@/lib/supabase';
@@ -630,7 +630,7 @@ async function signAndSendTx(
tx: any
): Promise<string> {
// Get signer from Polkadot.js extension
const { web3FromSource } = await import('@polkadot/extension-dapp');
const { web3FromSource } = await import('@pezkuwi/extension-dapp');
const injector = await web3FromSource(account.meta.source);
return new Promise((resolve, reject) => {
+3 -3
View File
@@ -1,6 +1,6 @@
import { ApiPromise } from '@polkadot/api';
import { SubmittableExtrinsic } from '@polkadot/api/types';
import { InjectedAccountWithMeta } from '@polkadot/extension-inject/types';
import { ApiPromise } from '@pezkuwi/api';
import { SubmittableExtrinsic } from '@pezkuwi/api/types';
import { InjectedAccountWithMeta } from '@pezkuwi/extension-inject/types';
import { toast } from 'sonner';
import { supabase } from '@/lib/supabase';
+2 -2
View File
@@ -1,5 +1,5 @@
import type { ApiPromise } from '@polkadot/api';
import type { InjectedAccountWithMeta } from '@polkadot/extension-inject/types';
import type { ApiPromise } from '@pezkuwi/api';
import type { InjectedAccountWithMeta } from '@pezkuwi/extension-inject/types';
/**
* Referral System Integration with pallet_referral
+1 -1
View File
@@ -3,7 +3,7 @@
// ========================================
// Centralized score fetching from blockchain pallets
import type { ApiPromise } from '@polkadot/api';
import type { ApiPromise } from '@pezkuwi/api';
// ========================================
// TYPE DEFINITIONS
+1 -1
View File
@@ -3,7 +3,7 @@
// ========================================
// Helper functions for pallet_staking and pallet_staking_score integration
import { ApiPromise } from '@polkadot/api';
import { ApiPromise } from '@pezkuwi/api';
import { formatBalance } from './wallet';
export interface StakingLedger {
+1 -1
View File
@@ -4,7 +4,7 @@
// This file handles all tiki-related blockchain interactions
// Based on: /Pezkuwi-SDK/pezkuwi/pallets/tiki/src/lib.rs
import type { ApiPromise } from '@polkadot/api';
import type { ApiPromise } from '@pezkuwi/api';
// ========================================
// TIKI TYPES (from Rust enum)
+1 -1
View File
@@ -3,7 +3,7 @@
// ========================================
// Handles wUSDT minting, burning, and reserve management
import type { ApiPromise } from '@polkadot/api';
import type { ApiPromise } from '@pezkuwi/api';
import { ASSET_IDS, ASSET_CONFIGS } from './wallet';
import { getMultisigMembers, createMultisigTx } from './multisig';
+2 -2
View File
@@ -1,5 +1,5 @@
import { ApiPromise } from '@polkadot/api';
import { InjectedAccountWithMeta } from '@polkadot/extension-inject/types';
import { ApiPromise } from '@pezkuwi/api';
import { InjectedAccountWithMeta } from '@pezkuwi/extension-inject/types';
import { toast } from 'sonner';
/**
+1 -1
View File
@@ -3,7 +3,7 @@
// ========================================
// This file configures wallet connectivity for Substrate-based chains
import type { InjectedAccountWithMeta } from '@polkadot/extension-inject/types';
import type { InjectedAccountWithMeta } from '@pezkuwi/extension-inject/types';
import { getCurrentNetworkConfig } from '../blockchain/endpoints';
// ========================================
+3 -3
View File
@@ -9,9 +9,9 @@
* - Collective Proposals (Parliament/Diwan voting)
*/
import type { ApiPromise } from '@polkadot/api';
import type { Option, Vec } from '@polkadot/types';
import type { AccountId, BlockNumber } from '@polkadot/types/interfaces';
import type { ApiPromise } from '@pezkuwi/api';
import type { Option, Vec } from '@pezkuwi/types';
import type { AccountId, BlockNumber } from '@pezkuwi/types/interfaces';
// ============================================================================
// TYPE DEFINITIONS
+2 -2
View File
@@ -8,8 +8,8 @@
* BETA+ MODE: Real XCM with Rococo/Westend Asset Hub
*/
import { ApiPromise, WsProvider } from '@polkadot/api';
import type { Signer } from '@polkadot/api/types';
import { ApiPromise, WsProvider } from '@pezkuwi/api';
import type { Signer } from '@pezkuwi/api/types';
// Detect mock mode (alfa testnet)
const IS_MOCK_MODE = typeof process !== 'undefined'
+2 -2
View File
@@ -5,8 +5,8 @@
* and XCM transfer testing for PezkuwiChain.
*/
import type { ApiPromise } from '@polkadot/api';
import type { InjectedAccountWithMeta } from '@polkadot/extension-inject/types';
import type { ApiPromise } from '@pezkuwi/api';
import type { InjectedAccountWithMeta } from '@pezkuwi/extension-inject/types';
// ========================================
// TYPES
+1 -1
View File
@@ -1,4 +1,4 @@
import { ApiPromise } from '@polkadot/api';
import { ApiPromise } from '@pezkuwi/api';
import { KNOWN_TOKENS, PoolInfo, SwapQuote, UserLiquidityPosition } from '@pezkuwi/types/dex';
/**