mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-07-12 15:45:47 +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,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/react-components authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DropdownOptions } from '../util/types.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/react-components authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DropdownOptions } from '../util/types.js';
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Copyright 2017-2025 @polkadot/react-components authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiPromise } from '@polkadot/api';
|
||||
import type { ConstantCodec } from '@polkadot/types/metadata/decorate/types';
|
||||
import type { ApiPromise } from '@pezkuwi/api';
|
||||
import type { ConstantCodec } from '@pezkuwi/types/metadata/decorate/types';
|
||||
import type { DropdownOptions } from '../util/types.js';
|
||||
import type { ConstValue, ConstValueBase } from './types.js';
|
||||
|
||||
import React, { useCallback, useState } from 'react';
|
||||
|
||||
import { useApi } from '@polkadot/react-hooks';
|
||||
import { useApi } from '@pezkuwi/react-hooks';
|
||||
|
||||
import LinkedWrapper from '../InputExtrinsic/LinkedWrapper.js';
|
||||
import keyOptions from './options/key.js';
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
// Copyright 2017-2025 @polkadot/react-components authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiPromise } from '@polkadot/api';
|
||||
import type { ConstantCodec } from '@polkadot/types/metadata/decorate/types';
|
||||
import type { ApiPromise } from '@pezkuwi/api';
|
||||
import type { ConstantCodec } from '@pezkuwi/types/metadata/decorate/types';
|
||||
import type { DropdownOption, DropdownOptions } from '../../util/types.js';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { getSiName } from '@polkadot/types/metadata/util';
|
||||
import { getSiName } from '@pezkuwi/types/metadata/util';
|
||||
|
||||
export default function createOptions (api: ApiPromise, sectionName: string): DropdownOptions {
|
||||
const section = api.consts[sectionName];
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2025 @polkadot/react-components authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiPromise } from '@polkadot/api';
|
||||
import type { ApiPromise } from '@pezkuwi/api';
|
||||
import type { DropdownOptions } from '../../util/types.js';
|
||||
|
||||
export default function createOptions (api: ApiPromise): DropdownOptions {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Copyright 2017-2025 @polkadot/react-components authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { StorageEntryBase } from '@polkadot/api/types';
|
||||
import type { PalletConstantMetadataLatest } from '@polkadot/types/interfaces';
|
||||
import type { AnyTuple } from '@polkadot/types/types';
|
||||
import type { StorageEntryBase } from '@pezkuwi/api/types';
|
||||
import type { PezpalletConstantMetadataLatest } from '@pezkuwi/types/interfaces';
|
||||
import type { AnyTuple } from '@pezkuwi/types/types';
|
||||
|
||||
export type StorageEntryPromise = StorageEntryBase<'promise', any, AnyTuple>;
|
||||
|
||||
@@ -13,5 +13,5 @@ export interface ConstValueBase {
|
||||
}
|
||||
|
||||
export interface ConstValue extends ConstValueBase {
|
||||
meta: PalletConstantMetadataLatest;
|
||||
meta: PezpalletConstantMetadataLatest;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/react-components authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export class TokenUnit {
|
||||
|
||||
Reference in New Issue
Block a user