mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-07-19 19:35:40 +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,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 { ApiPromise } from '@polkadot/api';
|
||||
import type { DeriveAccountInfo } from '@polkadot/api-derive/types';
|
||||
import type { ApiPromise } from '@pezkuwi/api';
|
||||
import type { DeriveAccountInfo } from '@pezkuwi/api-derive/types';
|
||||
|
||||
import { keyring } from '@polkadot/ui-keyring';
|
||||
import { isFunction } from '@polkadot/util';
|
||||
import { keyring } from '@pezkuwi/ui-keyring';
|
||||
import { isFunction } from '@pezkuwi/util';
|
||||
|
||||
export function checkVisibility (api: ApiPromise, address: string, accountInfo: DeriveAccountInfo, filterName = '', onlyNamed = false): boolean {
|
||||
let isVisible = false;
|
||||
|
||||
@@ -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 { DropdownItemProps } from 'semantic-ui-react';
|
||||
|
||||
@@ -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 { AccountIdIsh } from '../types.js';
|
||||
|
||||
import { keyring } from '@polkadot/ui-keyring';
|
||||
import { keyring } from '@pezkuwi/ui-keyring';
|
||||
|
||||
export function getAccountCryptoType (accountId: AccountIdIsh): string {
|
||||
try {
|
||||
|
||||
@@ -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 { KeyringItemType, KeyringJson$Meta } from '@polkadot/ui-keyring/types';
|
||||
import type { KeyringItemType, KeyringJson$Meta } from '@pezkuwi/ui-keyring/types';
|
||||
|
||||
import { keyring } from '@polkadot/ui-keyring';
|
||||
import { keyring } from '@pezkuwi/ui-keyring';
|
||||
|
||||
export function getAddressMeta (address: string, type: KeyringItemType | null = null): KeyringJson$Meta {
|
||||
let meta: KeyringJson$Meta | undefined;
|
||||
|
||||
@@ -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 { KeyringItemType } from '@polkadot/ui-keyring/types';
|
||||
import type { KeyringItemType } from '@pezkuwi/ui-keyring/types';
|
||||
|
||||
import { getAddressMeta } from './getAddressMeta.js';
|
||||
// import { toShortAddress } from './toShortAddress.js';
|
||||
|
||||
@@ -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 { KeyringItemType } from '@polkadot/ui-keyring/types';
|
||||
import type { KeyringItemType } from '@pezkuwi/ui-keyring/types';
|
||||
|
||||
import { getAddressMeta } from './getAddressMeta.js';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2025 @polkadot/react-components authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { Abi } from '@polkadot/api-contract';
|
||||
import { statics } from '@polkadot/react-api/statics';
|
||||
import { Abi } from '@pezkuwi/api-contract';
|
||||
import { statics } from '@pezkuwi/react-api/statics';
|
||||
|
||||
import { getAddressMeta } from './getAddressMeta.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
|
||||
|
||||
export { checkVisibility } from './checkVisibility.js';
|
||||
|
||||
@@ -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 { Proposal } from '@polkadot/types/interfaces';
|
||||
import type { Proposal } from '@pezkuwi/types/interfaces';
|
||||
|
||||
export function isTreasuryProposalVote (proposal?: Proposal | null): boolean {
|
||||
if (!proposal) {
|
||||
|
||||
@@ -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 { keyring } from '@polkadot/ui-keyring';
|
||||
import { hexToU8a, isHex } from '@polkadot/util';
|
||||
import { ethereumEncode } from '@polkadot/util-crypto';
|
||||
import { keyring } from '@pezkuwi/ui-keyring';
|
||||
import { hexToU8a, isHex } from '@pezkuwi/util';
|
||||
import { ethereumEncode } from '@pezkuwi/util-crypto';
|
||||
|
||||
export function toAddress (value?: string | Uint8Array | null, allowIndices = false, bytesLength?: 20 | 32): string | undefined {
|
||||
if (value) {
|
||||
|
||||
@@ -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 { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces';
|
||||
import type { AccountId, AccountIndex, Address } from '@pezkuwi/types/interfaces';
|
||||
|
||||
export function toShortAddress (_address?: AccountId | AccountIndex | Address | string | null | Uint8Array): string {
|
||||
const address = (_address || '').toString();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2025 @polkadot/react-components authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type React from 'react';
|
||||
import type { RegistrarIndex } from '@polkadot/types/interfaces/identity/types';
|
||||
import type { RegistrarIndex } from '@pezkuwi/types/interfaces/identity/types';
|
||||
import type { DisplayedJudgement } from '../types.js';
|
||||
|
||||
export interface DropdownOption {
|
||||
|
||||
Reference in New Issue
Block a user