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
+5 -5
View File
@@ -7,9 +7,9 @@
import React, { createContext, useContext, useState, useEffect, useCallback } from 'react';
import { usePolkadot } from './PolkadotContext';
import { WALLET_ERRORS, formatBalance, ASSET_IDS } from '@pezkuwi/lib/wallet';
import type { InjectedAccountWithMeta } from '@polkadot/extension-inject/types';
import type { Signer } from '@polkadot/api/types';
import { web3FromAddress } from '@polkadot/extension-dapp';
import type { InjectedAccountWithMeta } from '@pezkuwi/extension-inject/types';
import type { Signer } from '@pezkuwi/api/types';
import { web3FromAddress } from '@pezkuwi/extension-dapp';
interface TokenBalances {
HEZ: string;
@@ -165,7 +165,7 @@ export const WalletProvider: React.FC<{ children: React.ReactNode }> = ({ childr
}
try {
const { web3FromAddress } = await import('@polkadot/extension-dapp');
const { web3FromAddress } = await import('@pezkuwi/extension-dapp');
const injector = await web3FromAddress(polkadot.selectedAccount.address);
// Sign and send transaction
@@ -188,7 +188,7 @@ export const WalletProvider: React.FC<{ children: React.ReactNode }> = ({ childr
}
try {
const { web3FromAddress } = await import('@polkadot/extension-dapp');
const { web3FromAddress } = await import('@pezkuwi/extension-dapp');
const injector = await web3FromAddress(polkadot.selectedAccount.address);
if (!injector.signer.signRaw) {