mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-12-01 02:09:55 +00:00
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:
1 parent
fe2cd390f6
commit
1295c36241
4678 files changed
+26389
-63316
No files matched your search
@@ -1,11 +1,11 @@
|
||||
// Copyright 2017-2025 @polkadot/app-staking authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/app-staking authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { LineData } from './types.js';
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
|
||||
import { Chart, Spinner, styled } from '@polkadot/react-components';
|
||||
import { Chart, Spinner, styled } from '@pezkuwi/react-components';
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// Copyright 2017-2025 @polkadot/app-staking authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/app-staking authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DeriveStakerPoints } from '@polkadot/api-derive/types';
|
||||
import type { DeriveStakerPoints } from '@pezkuwi/api-derive/types';
|
||||
import type { LineData, Props } from './types.js';
|
||||
|
||||
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
||||
|
||||
import { useApi, useCall } from '@polkadot/react-hooks';
|
||||
import { useApi, useCall } from '@pezkuwi/react-hooks';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
import Chart from './Chart.js';
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
// Copyright 2017-2025 @polkadot/app-staking authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/app-staking authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DeriveStakerPrefs } from '@polkadot/api-derive/types';
|
||||
import type { DeriveStakerPrefs } from '@pezkuwi/api-derive/types';
|
||||
import type { LineData, Props } from './types.js';
|
||||
|
||||
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
||||
|
||||
import { useApi, useCall } from '@polkadot/react-hooks';
|
||||
import { BN, BN_BILLION } from '@polkadot/util';
|
||||
import { useApi, useCall } from '@pezkuwi/react-hooks';
|
||||
import { BN, BN_BILLION } from '@pezkuwi/util';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
import Chart from './Chart.js';
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
// Copyright 2017-2025 @polkadot/app-staking authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/app-staking authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DeriveEraRewards, DeriveOwnSlashes, DeriveStakerPoints } from '@polkadot/api-derive/types';
|
||||
import type { DeriveEraRewards, DeriveOwnSlashes, DeriveStakerPoints } from '@pezkuwi/api-derive/types';
|
||||
import type { LineData, Props } from './types.js';
|
||||
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
|
||||
import { useApi, useCall } from '@polkadot/react-hooks';
|
||||
import { BN, formatBalance } from '@polkadot/util';
|
||||
import { useApi, useCall } from '@pezkuwi/react-hooks';
|
||||
import { BN, formatBalance } from '@pezkuwi/util';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
import Chart from './Chart.js';
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
// Copyright 2017-2025 @polkadot/app-staking authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/app-staking authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DeriveOwnExposure } from '@polkadot/api-derive/types';
|
||||
import type { DeriveOwnExposure } from '@pezkuwi/api-derive/types';
|
||||
import type { LineData, Props } from './types.js';
|
||||
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
|
||||
import { useApi, useCall } from '@polkadot/react-hooks';
|
||||
import { BN, BN_ZERO, formatBalance } from '@polkadot/util';
|
||||
import { useApi, useCall } from '@pezkuwi/react-hooks';
|
||||
import { BN, BN_ZERO, formatBalance } from '@pezkuwi/util';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
import Chart from './Chart.js';
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// Copyright 2017-2025 @polkadot/app-staking authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/app-staking authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Props } from './types.js';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { Columar, styled } from '@polkadot/react-components';
|
||||
import { Columar, styled } from '@pezkuwi/react-components';
|
||||
|
||||
import ChartPoints from './ChartPoints.js';
|
||||
import ChartPrefs from './ChartPrefs.js';
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
// Copyright 2017-2025 @polkadot/app-staking authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/app-staking authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { INumber } from '@polkadot/types/types';
|
||||
import type { INumber } from '@pezkuwi/types/types';
|
||||
|
||||
import React, { useCallback, useMemo, useState } from 'react';
|
||||
import { useParams } from 'react-router-dom';
|
||||
|
||||
import { Button, InputAddressSimple, Spinner } from '@polkadot/react-components';
|
||||
import { useApi, useCall } from '@polkadot/react-hooks';
|
||||
import { Button, InputAddressSimple, Spinner } from '@pezkuwi/react-components';
|
||||
import { useApi, useCall } from '@pezkuwi/react-hooks';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
import Validator from './Validator.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2025 @polkadot/app-staking authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/app-staking authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { BN } from '@pezkuwi/util';
|
||||
|
||||
export interface Props {
|
||||
className?: string;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Copyright 2017-2025 @polkadot/app-staking authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/app-staking authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DeriveSessionIndexes } from '@polkadot/api-derive/types';
|
||||
import type { u32 } from '@polkadot/types';
|
||||
import type { DeriveSessionIndexes } from '@pezkuwi/api-derive/types';
|
||||
import type { u32 } from '@pezkuwi/types';
|
||||
import type { SessionRewards } from '../types.js';
|
||||
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
import { createNamedHook, useApi, useCall, useIsMountedRef } from '@polkadot/react-hooks';
|
||||
import { BN_ONE, BN_ZERO, isFunction } from '@polkadot/util';
|
||||
import { createNamedHook, useApi, useCall, useIsMountedRef } from '@pezkuwi/react-hooks';
|
||||
import { BN_ONE, BN_ZERO, isFunction } from '@pezkuwi/util';
|
||||
|
||||
function useBlockCountsImpl (accountId: string, sessionRewards: SessionRewards[]): u32[] {
|
||||
const { api } = useApi();
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Copyright 2017-2025 @polkadot/app-staking authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/app-staking authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { BN } from '@pezkuwi/util';
|
||||
|
||||
import { BN_THOUSAND, BN_ZERO, isBn, isFunction } from '@polkadot/util';
|
||||
import { BN_THOUSAND, BN_ZERO, isBn, isFunction } from '@pezkuwi/util';
|
||||
|
||||
interface ToBN {
|
||||
toBn: () => BN;
|
||||
|
||||
Reference in new issue
Block a user