mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-07-20 13:55:43 +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:
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { ReactNode } from 'react';
|
||||
import type { ApiPromise } from '@pezkuwi/api';
|
||||
import type { BrokerStatus, ChainConstants, PalletBrokerConfigRecord, PalletBrokerSaleInfoRecord } from '@pezkuwi/react-hooks/types';
|
||||
import type { BrokerStatus, ChainConstants, PezpalletBrokerConfigRecord, PezpalletBrokerSaleInfoRecord } from '@pezkuwi/react-hooks/types';
|
||||
import type { CurrentRegion } from './types.js';
|
||||
|
||||
import React, { createContext, useContext, useMemo } from 'react';
|
||||
@@ -19,10 +19,10 @@ interface BrokerProviderProps {
|
||||
}
|
||||
|
||||
interface BrokerContextProps {
|
||||
config: PalletBrokerConfigRecord | null,
|
||||
config: PezpalletBrokerConfigRecord | null,
|
||||
coretimeConsts: ChainConstants | null,
|
||||
currentRegion: CurrentRegion,
|
||||
saleInfo: PalletBrokerSaleInfoRecord | null,
|
||||
saleInfo: PezpalletBrokerSaleInfoRecord | null,
|
||||
status: BrokerStatus | null,
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiPromise } from '@pezkuwi/api';
|
||||
import type { PalletBrokerConfigRecord } from '@pezkuwi/react-hooks/types';
|
||||
import type { PezpalletBrokerConfigRecord } from '@pezkuwi/react-hooks/types';
|
||||
|
||||
import React, { useRef } from 'react';
|
||||
|
||||
@@ -15,7 +15,7 @@ import Workload from './Workload.js';
|
||||
interface Props {
|
||||
api: ApiPromise;
|
||||
core: number;
|
||||
config: PalletBrokerConfigRecord,
|
||||
config: PezpalletBrokerConfigRecord,
|
||||
workload?: CoreWorkloadType[],
|
||||
workplan?: CoreWorkplanType[],
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2026 @pezkuwi/app-broker authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { PalletBrokerConfigRecord } from '@pezkuwi/types/lookup';
|
||||
import type { PezpalletBrokerConfigRecord } from '@pezkuwi/types/lookup';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
@@ -14,7 +14,7 @@ interface Props {
|
||||
|
||||
function RegionLength ({ children, className }: Props): React.ReactElement<Props> | null {
|
||||
const { api } = useApi();
|
||||
const config = useCall<PalletBrokerConfigRecord>(api.query.broker?.configuration);
|
||||
const config = useCall<PezpalletBrokerConfigRecord>(api.query.broker?.configuration);
|
||||
const length = config?.toJSON()?.regionLength;
|
||||
|
||||
return (
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiPromise } from '@pezkuwi/api';
|
||||
import type { PalletBrokerConfigRecord, RegionInfo } from '@pezkuwi/react-hooks/types';
|
||||
import type { PezpalletBrokerConfigRecord, RegionInfo } from '@pezkuwi/react-hooks/types';
|
||||
import type { CoreWorkloadType, CoreWorkplanType, InfoRow } from '../types.js';
|
||||
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
@@ -21,7 +21,7 @@ interface Props {
|
||||
core: number;
|
||||
workload: CoreWorkloadType[] | undefined
|
||||
workplan?: CoreWorkplanType[] | undefined
|
||||
config: PalletBrokerConfigRecord
|
||||
config: PezpalletBrokerConfigRecord
|
||||
}
|
||||
|
||||
function Workload ({ api, config, core, workload, workplan }: Props): React.ReactElement<Props> {
|
||||
|
||||
Reference in New Issue
Block a user