mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-24 16:57: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:
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2026 @pezkuwi/app-coretime authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ChainConstants, PalletBrokerConfigRecord, PalletBrokerSaleInfoRecord } from '@pezkuwi/react-hooks/types';
|
||||
import type { ChainConstants, PezpalletBrokerConfigRecord, PezpalletBrokerSaleInfoRecord } from '@pezkuwi/react-hooks/types';
|
||||
import type { GetResponse, PhaseConfig, RegionInfo, RelayName, SaleParameters } from '../types.js';
|
||||
|
||||
import { type ProgressBarSection } from '@pezkuwi/react-components/types';
|
||||
@@ -33,7 +33,7 @@ export const leadinFactorAt = (scaledWhen: BN): BN => {
|
||||
}
|
||||
};
|
||||
|
||||
export const getCorePriceAt = (blockNow: number | null, saleInfo: PalletBrokerSaleInfoRecord | undefined): BN => {
|
||||
export const getCorePriceAt = (blockNow: number | null, saleInfo: PezpalletBrokerSaleInfoRecord | undefined): BN => {
|
||||
if (!saleInfo || !blockNow) {
|
||||
return new BN(0);
|
||||
}
|
||||
@@ -78,7 +78,7 @@ export const getCorePriceAt = (blockNow: number | null, saleInfo: PalletBrokerSa
|
||||
export const getCurrentSaleNumber = (
|
||||
currentRegionEnd: number,
|
||||
relayName: RelayName,
|
||||
config: Pick<PalletBrokerConfigRecord, 'interludeLength' | 'leadinLength' | 'regionLength'>
|
||||
config: Pick<PezpalletBrokerConfigRecord, 'interludeLength' | 'leadinLength' | 'regionLength'>
|
||||
): number => {
|
||||
if (!relayName || !currentRegionEnd) {
|
||||
return -1;
|
||||
@@ -185,7 +185,7 @@ const getPhaseConfiguration = (
|
||||
};
|
||||
|
||||
export const getSaleParameters = (
|
||||
{ config, constants, salesInfo }: {salesInfo: RegionInfo, config: Pick<PalletBrokerConfigRecord, 'interludeLength' | 'leadinLength' | 'regionLength'>, constants: ChainConstants},
|
||||
{ config, constants, salesInfo }: {salesInfo: RegionInfo, config: Pick<PezpalletBrokerConfigRecord, 'interludeLength' | 'leadinLength' | 'regionLength'>, constants: ChainConstants},
|
||||
relayName: RelayName,
|
||||
lastCommittedTimeslice: number,
|
||||
chosenSaleNumber = -1
|
||||
|
||||
Reference in New Issue
Block a user