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
+1 -1
View File
@@ -234,7 +234,7 @@ export default function Dashboard() {
setRenouncingCitizenship(true);
try {
const { web3FromAddress } = await import('@polkadot/extension-dapp');
const { web3FromAddress } = await import('@pezkuwi/extension-dapp');
const injector = await web3FromAddress(selectedAccount.address);
if (import.meta.env.DEV) console.log('Renouncing citizenship...');
+1 -1
View File
@@ -11,7 +11,7 @@ const CodeSnippet = ({ language, code }: { language: string, code: string }) =>
);
const Developers: React.FC = () => {
const connectCode = `import { ApiPromise, WsProvider } from '@polkadot/api';
const connectCode = `import { ApiPromise, WsProvider } from '@pezkuwi/api';
// Connect to the PezkuwiChain node
const wsProvider = new WsProvider('wss://rpc.pezkuwichain.io');
+1 -1
View File
@@ -47,7 +47,7 @@ import {
type CandidateInfo,
} from '@pezkuwi/lib/welati';
// import { handleBlockchainError, handleBlockchainSuccess } from '@pezkuwi/lib/error-handler';
// import { web3FromAddress } from '@polkadot/extension-dapp';
// import { web3FromAddress } from '@pezkuwi/extension-dapp';
export default function Elections() {
const { api, isApiReady } = usePolkadot();
+1 -1
View File
@@ -186,7 +186,7 @@ const NetworkPage: React.FC<NetworkPageProps> = ({
<div className="bg-gray-950 rounded-lg p-4 border border-gray-800">
<pre className="text-sm overflow-x-auto">
<code className="text-gray-300">
{`import { ApiPromise, WsProvider } from '@polkadot/api';
{`import { ApiPromise, WsProvider } from '@pezkuwi/api';
const provider = new WsProvider('${endpoint}');
const api = await ApiPromise.create({ provider });