mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-06-12 19:21:14 +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:
@@ -21,8 +21,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@pezkuwi/api": "^16.5.6",
|
||||
"@pezkuwi/extension-compat-metamask": "^0.62.4",
|
||||
"@pezkuwi/extension-dapp": "^0.62.4",
|
||||
"@pezkuwi/extension-compat-metamask": "^0.62.13",
|
||||
"@pezkuwi/extension-dapp": "^0.62.13",
|
||||
"@pezkuwi/rpc-provider": "^16.5.6",
|
||||
"fflate": "^0.8.1",
|
||||
"rxjs": "^7.8.1"
|
||||
|
||||
@@ -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>;
|
||||
|
||||
@@ -5,6 +5,11 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx",
|
||||
"src/**/*.d.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"src/statics.ts",
|
||||
"src/types.ts",
|
||||
|
||||
Reference in New Issue
Block a user