mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-22 11:17:59 +00:00
fix: update extension packages and fix type compatibility for pezkuwi-sdk
- Update @pezkuwi/extension-inject to ^0.62.13 with proper /types exports - Update @pezkuwi/extension-dapp to ^0.62.13 - Update @pezkuwi/extension-compat-metamask to ^0.62.13 - Fix IconTheme type to include 'bizinikiwi' and 'pezkuwi' themes - Fix endpoint array issues (getTeleports -> direct array references) - Add type assertions for external package compatibility (acala, moonbeam, parallel) - Fix subspace.ts dynamic class typing - Fix conviction type in page-referenda - Update Pallet type names to Pezpallet prefix across codebase - Define InjectedExtension types locally for module resolution - Add styled-components DefaultTheme augmentation - Add react-copy-to-clipboard type declaration for React 18 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,10 +5,34 @@ import type { Blockchain } from '@acala-network/chopsticks-core';
|
||||
import type React from 'react';
|
||||
import type { ApiPromise } from '@pezkuwi/api';
|
||||
import type { SubmittableExtrinsicFunction } from '@pezkuwi/api/promise/types';
|
||||
import type { Signer as InjectedSigner } from '@pezkuwi/api/types';
|
||||
import type { LinkOption } from '@pezkuwi/apps-config/endpoints/types';
|
||||
import type { InjectedExtension } from '@pezkuwi/extension-inject/types';
|
||||
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
||||
|
||||
// InjectedExtension type from extension-inject (defined locally for module resolution)
|
||||
interface InjectedExtensionInfo {
|
||||
name: string;
|
||||
version: string;
|
||||
}
|
||||
|
||||
interface InjectedAccount {
|
||||
address: string;
|
||||
genesisHash?: string | null;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
interface InjectedAccounts {
|
||||
get: (anyType?: boolean) => Promise<InjectedAccount[]>;
|
||||
subscribe: (cb: (accounts: InjectedAccount[]) => void | Promise<void>) => () => void;
|
||||
}
|
||||
|
||||
interface Injected {
|
||||
accounts: InjectedAccounts;
|
||||
signer: InjectedSigner;
|
||||
}
|
||||
|
||||
export interface InjectedExtension extends InjectedExtensionInfo, Injected {}
|
||||
|
||||
// helpers for HOC props
|
||||
export type OmitProps<T, K> = Pick<T, Exclude<keyof T, K>>;
|
||||
export type SubtractProps<T, K> = OmitProps<T, keyof K>;
|
||||
|
||||
Reference in New Issue
Block a user