mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-07-22 10:15:51 +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,15 +1,15 @@
|
||||
// Copyright 2017-2025 @polkadot/react-hooks authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-hooks authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { PalletBrokerScheduleItem } from '@polkadot/types/lookup';
|
||||
import type { PezpalletBrokerScheduleItem } from '@pezkuwi/types/lookup';
|
||||
|
||||
import { BN } from '@polkadot/util';
|
||||
import { BN } from '@pezkuwi/util';
|
||||
|
||||
export function hexToBin (hex: string): string {
|
||||
return parseInt(hex, 16).toString(2);
|
||||
}
|
||||
|
||||
export function processHexMask (mask: PalletBrokerScheduleItem['mask'] | undefined): string[] {
|
||||
export function processHexMask (mask: PezpalletBrokerScheduleItem['mask'] | undefined): string[] {
|
||||
if (!mask) {
|
||||
return [];
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2025 @polkadot/react-hooks authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-hooks authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiPromise } from '@polkadot/api';
|
||||
import type { AnyNumber } from '@polkadot/types-codec/types';
|
||||
import type { ApiPromise } from '@pezkuwi/api';
|
||||
import type { AnyNumber } from '@pezkuwi/types-codec/types';
|
||||
import type { AssetInfoComplete } from '../types.js';
|
||||
|
||||
export const getFeeAssetLocation = (api: ApiPromise, feeAsset: AssetInfoComplete | null): AnyNumber | object | undefined => {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// Copyright 2017-2025 @polkadot/react-hooks authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-hooks authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DeriveAccountRegistration } from '@polkadot/api-derive/types';
|
||||
import type { DisplayedJudgement } from '@polkadot/react-components/types';
|
||||
import type { SortedJudgements } from '@polkadot/react-components/util/types';
|
||||
import type { RegistrationJudgement } from '@polkadot/types/interfaces';
|
||||
import type { DeriveAccountRegistration } from '@pezkuwi/api-derive/types';
|
||||
import type { DisplayedJudgement } from '@pezkuwi/react-components/types';
|
||||
import type { SortedJudgements } from '@pezkuwi/react-components/util/types';
|
||||
import type { RegistrationJudgement } from '@pezkuwi/types/interfaces';
|
||||
|
||||
function extractIndexes (registrars: RegistrationJudgement[]) {
|
||||
return registrars.map((judgement) => judgement[0]);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2025 @polkadot/react-hooks authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-hooks authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Struct } from '@polkadot/types-codec';
|
||||
import type { Struct } from '@pezkuwi/types-codec';
|
||||
|
||||
export const isEmpty = (struct: Struct) => {
|
||||
if (struct.values) {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// Copyright 2017-2025 @polkadot/react-hooks authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-hooks authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { GenericExtrinsic, Vec } from '@polkadot/types';
|
||||
import type { AccountId, EventRecord } from '@polkadot/types/interfaces';
|
||||
import type { AnyTuple } from '@polkadot/types-codec/types';
|
||||
import type { GenericExtrinsic, Vec } from '@pezkuwi/types';
|
||||
import type { AccountId, EventRecord } from '@pezkuwi/types/interfaces';
|
||||
import type { AnyTuple } from '@pezkuwi/types-codec/types';
|
||||
|
||||
import { stringToHex } from '@polkadot/util';
|
||||
import { stringToHex } from '@pezkuwi/util';
|
||||
|
||||
export const isEventFromMyAccounts = (newEvent: EventRecord, extrinsics: Vec<GenericExtrinsic<AnyTuple>>, author: AccountId | undefined, allAccounts: string[]) => {
|
||||
const { event, phase } = newEvent;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2025 @polkadot/react-hooks authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-hooks authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Judgement } from '@polkadot/react-components/types';
|
||||
import type { SortedJudgements } from '@polkadot/react-components/util/types';
|
||||
import type { Judgement } from '@pezkuwi/react-components/types';
|
||||
import type { SortedJudgements } from '@pezkuwi/react-components/util/types';
|
||||
import type { Registrar } from '../types.js';
|
||||
|
||||
export function matchRegistrarAccountsWithIndexes (
|
||||
|
||||
Reference in New Issue
Block a user