From a663274a7eedfa8b9a5cfc24f094c1325afe32c7 Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Sat, 17 Jan 2026 18:42:49 +0300 Subject: [PATCH] Update package versions to match root resolutions --- packages/apps-config/package.json | 20 ++++++------- packages/page-accounts/package.json | 6 ++-- .../page-bounties/src/Bounties.slow.spec.tsx | 2 +- packages/page-bounties/src/Bounties.spec.ts | 29 +++++++++---------- .../page-bounties/test/pages/bountiesPage.tsx | 2 +- packages/page-contracts/package.json | 2 +- packages/react-api/package.json | 4 +-- packages/react-components/package.json | 14 ++++----- packages/react-hooks/package.json | 4 +-- packages/react-signer/package.json | 2 +- packages/test-support/package.json | 2 +- packages/test-support/src/creation/balance.ts | 4 +-- .../test-support/src/creation/bounties.ts | 10 +++---- packages/test-support/src/creation/staking.ts | 6 ++-- scripts/rebrand.sh | 8 ++--- 15 files changed, 55 insertions(+), 60 deletions(-) diff --git a/packages/apps-config/package.json b/packages/apps-config/package.json index b6df329..95e9a00 100644 --- a/packages/apps-config/package.json +++ b/packages/apps-config/package.json @@ -38,17 +38,17 @@ "@parallel-finance/type-definitions": "2.0.1", "@peaqnetwork/type-definitions": "0.0.4", "@pendulum-chain/type-definitions": "0.3.8", - "@pezkuwi/api": "^16.5.6", - "@pezkuwi/api-derive": "^16.5.6", - "@pezkuwi/networks": "^14.0.7", - "@pezkuwi/react-identicon": "^3.17.1", - "@pezkuwi/types": "^16.5.6", - "@pezkuwi/types-codec": "^16.5.6", - "@pezkuwi/util": "^14.0.7", - "@pezkuwi/util-crypto": "^14.0.7", + "@pezkuwi/api": "^16.5.9", + "@pezkuwi/api-derive": "^16.5.9", + "@pezkuwi/networks": "^14.0.11", + "@pezkuwi/react-identicon": "^3.17.2", + "@pezkuwi/types": "^16.5.9", + "@pezkuwi/types-codec": "^16.5.9", + "@pezkuwi/util": "^14.0.11", + "@pezkuwi/util-crypto": "^14.0.11", "@pezkuwi/wasm-util": "^7.5.2", - "@pezkuwi/x-fetch": "^14.0.7", - "@pezkuwi/x-ws": "^14.0.7", + "@pezkuwi/x-fetch": "^14.0.11", + "@pezkuwi/x-ws": "^14.0.11", "@phala/typedefs": "0.2.33", "@polymeshassociation/polymesh-types": "5.7.0", "@snowfork/snowbridge-types": "0.2.7", diff --git a/packages/page-accounts/package.json b/packages/page-accounts/package.json index e343fc3..fa0434c 100644 --- a/packages/page-accounts/package.json +++ b/packages/page-accounts/package.json @@ -16,11 +16,11 @@ "type": "module", "version": "0.168.2-4-x", "dependencies": { - "@pezkuwi/hw-ledger": "^14.0.7", - "@pezkuwi/phishing": "^0.25.22", + "@pezkuwi/hw-ledger": "^14.0.11", + "@pezkuwi/phishing": "^0.25.28", "@pezkuwi/react-components": "^0.168.2-4-x", "@pezkuwi/react-hooks": "^0.168.2-4-x", - "@pezkuwi/util": "^14.0.7", + "@pezkuwi/util": "^14.0.11", "@polkadot/vanitygen": "^0.63.18", "detect-browser": "^5.3.0", "file-saver": "^2.0.5" diff --git a/packages/page-bounties/src/Bounties.slow.spec.tsx b/packages/page-bounties/src/Bounties.slow.spec.tsx index bf4d619..3e12c66 100644 --- a/packages/page-bounties/src/Bounties.slow.spec.tsx +++ b/packages/page-bounties/src/Bounties.slow.spec.tsx @@ -51,7 +51,7 @@ describe.skip('--SLOW--: Bounties', () => { it('list shows an existing bounty', async () => { const api = await createApi(); - await execute(api.tx.bounties.proposeBounty(new BN(500_000_000_000_000), 'a short bounty title'), aliceSigner()); + await execute((api.tx.bounties as any).proposeBounty(new BN(500_000_000_000_000), 'a short bounty title'), aliceSigner()); const { findByText } = renderBounties(); diff --git a/packages/page-bounties/src/Bounties.spec.ts b/packages/page-bounties/src/Bounties.spec.ts index b4eb24a..f4184d4 100644 --- a/packages/page-bounties/src/Bounties.spec.ts +++ b/packages/page-bounties/src/Bounties.spec.ts @@ -5,7 +5,6 @@ /* eslint-disable jest/expect-expect */ -import type { ApiPromise } from '@pezkuwi/api'; import type { SubmittableExtrinsic } from '@pezkuwi/api/types'; import type { DeriveCollectiveProposal } from '@pezkuwi/api-derive/types'; import type { BountyIndex } from '@pezkuwi/types/interfaces'; @@ -52,7 +51,7 @@ jest.mock('./hooks/useBounties', () => ({ })); let aProposal: (extrinsic: SubmittableExtrinsic<'promise'>, ayes?: string[], nays?: string[]) => DeriveCollectiveProposal; -let augmentedApi: ApiPromise; +let augmentedApi: any; let aBounty: ({ status, value }?: Partial) => PezpalletBountiesBounty; let aBountyIndex: (index?: number) => BountyIndex; let bountyStatusWith: ({ curator, status, updateDue }: { curator?: string, status?: string, updateDue?: number}) => PezpalletBountiesBountyStatus; @@ -106,7 +105,7 @@ describe('Bounties', () => { describe('has extended status', () => { it('when voting on proposed curator', async () => { const bounty = bountyWith({ status: 'Funded' }); - const proposals = [aProposal(augmentedApi.tx.bounties.proposeCurator(0, '5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z', 1))]; + const proposals = [aProposal((augmentedApi).tx.bounties.proposeCurator(0, '5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z', 1))]; bountiesPage.renderOne(bounty, proposals); @@ -115,7 +114,7 @@ describe('Bounties', () => { it('when voting on bounty approval', async () => { const bounty = bountyWith({ status: 'Proposed' }); - const proposals = [aProposal(augmentedApi.tx.bounties.approveBounty(0))]; + const proposals = [aProposal((augmentedApi).tx.bounties.approveBounty(0))]; bountiesPage.renderOne(bounty, proposals); @@ -125,8 +124,8 @@ describe('Bounties', () => { it('when simultaneous close and approve motions exist, show approved', async () => { const bounty = bountyWith({ status: 'Proposed' }); const proposals = [ - aProposal(augmentedApi.tx.bounties.closeBounty(0)), - aProposal(augmentedApi.tx.bounties.approveBounty(0)) + aProposal((augmentedApi).tx.bounties.closeBounty(0)), + aProposal((augmentedApi).tx.bounties.approveBounty(0)) ]; bountiesPage.renderOne(bounty, proposals); @@ -136,7 +135,7 @@ describe('Bounties', () => { it('when voting on close bounty', async () => { const bounty = bountyWith({ status: 'Active' }); - const proposals = [aProposal(augmentedApi.tx.bounties.closeBounty(0))]; + const proposals = [aProposal((augmentedApi).tx.bounties.closeBounty(0))]; bountiesPage.renderOne(bounty, proposals); @@ -145,7 +144,7 @@ describe('Bounties', () => { it('when voting on unassign curator', async () => { const bounty = bountyWith({ status: 'Active' }); - const proposals = [aProposal(augmentedApi.tx.bounties.unassignCurator(0))]; + const proposals = [aProposal((augmentedApi).tx.bounties.unassignCurator(0))]; bountiesPage.renderOne(bounty, proposals); @@ -154,7 +153,7 @@ describe('Bounties', () => { it('when a motion exists that would fail on execution, show nothing', async () => { const bounty = bountyWith({ status: 'Active' }); - const proposals = [aProposal(augmentedApi.tx.bounties.approveBounty(0))]; + const proposals = [aProposal((augmentedApi).tx.bounties.approveBounty(0))]; const { findByTestId } = bountiesPage.renderOne(bounty, proposals); @@ -165,7 +164,7 @@ describe('Bounties', () => { describe('has extended description for Curator', () => { it('when propose curator motion is voted and bounty is in Funded state', async () => { const bounty = bountyWith({ status: 'Funded' }); - const proposals = [aProposal(augmentedApi.tx.bounties.proposeCurator(0, alice, 1))]; + const proposals = [aProposal((augmentedApi).tx.bounties.proposeCurator(0, alice, 1))]; bountiesPage.renderOne(bounty, proposals); @@ -194,7 +193,7 @@ describe('Bounties', () => { describe('has Beneficiary description', () => { it('in PendingPayout status', async () => { const bounty = bountyWith({ status: 'PendingPayout' }); - const proposals = [aProposal(augmentedApi.tx.bounties.awardBounty(0, '5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z'))]; + const proposals = [aProposal((augmentedApi).tx.bounties.awardBounty(0, '5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z'))]; bountiesPage.renderOne(bounty, proposals); @@ -214,7 +213,7 @@ describe('Bounties', () => { describe('has voting summary', () => { it('is displayed when voting', async () => { const bounty = bountyWith({ status: 'Proposed' }); - const proposals = [aProposal(augmentedApi.tx.bounties.approveBounty(0), [alice, bob], [])]; + const proposals = [aProposal((augmentedApi).tx.bounties.approveBounty(0), [alice, bob], [])]; const { findByTestId } = bountiesPage.renderOne(bounty, proposals); @@ -234,7 +233,7 @@ describe('Bounties', () => { describe('has voters', () => { it('aye and nay', async () => { const bounty = bountyWith({ status: 'Proposed' }); - const proposals = [aProposal(augmentedApi.tx.bounties.approveBounty(0))]; + const proposals = [aProposal((augmentedApi).tx.bounties.approveBounty(0))]; const { findAllByTestId } = bountiesPage.renderOne(bounty, proposals); const ayeVoters = await findAllByTestId((testId) => testId.startsWith('voters_ayes')); const nayVoters = await findAllByTestId((testId) => testId.startsWith('voters_nays')); @@ -247,7 +246,7 @@ describe('Bounties', () => { it('multiple ayes and no nay', async () => { const bounty = bountyWith({ status: 'Proposed' }); - const proposals = [aProposal(augmentedApi.tx.bounties.approveBounty(0), [alice, bob], [])]; + const proposals = [aProposal((augmentedApi).tx.bounties.approveBounty(0), [alice, bob], [])]; const { findAllByTestId } = bountiesPage.renderOne(bounty, proposals); const ayeVoters = await findAllByTestId((testId) => testId.startsWith('voters_ayes')); @@ -337,7 +336,7 @@ describe('Bounties', () => { it('is not available when close bounty motion already exists', async () => { const bounty = bountyWith({ status: 'Funded' }); - const proposals = [aProposal(augmentedApi.tx.bounties.closeBounty(0))]; + const proposals = [aProposal((augmentedApi).tx.bounties.closeBounty(0))]; const { findByTestId } = bountiesPage.renderOne(bounty, proposals); diff --git a/packages/page-bounties/test/pages/bountiesPage.tsx b/packages/page-bounties/test/pages/bountiesPage.tsx index 87bd8ef..c236fcb 100644 --- a/packages/page-bounties/test/pages/bountiesPage.tsx +++ b/packages/page-bounties/test/pages/bountiesPage.tsx @@ -72,7 +72,7 @@ export class BountiesPage { renderResult?: RenderResult; constructor (api: ApiPromise) { - ({ aBounty: this.aBounty, aBountyIndex: this.aBountyIndex, aBountyStatus: this.aBountyStatus, bountyStatusWith: this.bountyStatusWith, bountyWith: this.bountyWith } = new BountyFactory(api)); + ({ aBounty: this.aBounty, aBountyIndex: this.aBountyIndex, aBountyStatus: this.aBountyStatus, bountyStatusWith: this.bountyStatusWith, bountyWith: this.bountyWith } = new BountyFactory(api as any)); } renderOne (bounty: PezpalletBountiesBounty, proposals: DeriveCollectiveProposal[] = [], description = '', index = this.aBountyIndex()): RenderedBountiesPage { diff --git a/packages/page-contracts/package.json b/packages/page-contracts/package.json index f66e3e3..1db515f 100644 --- a/packages/page-contracts/package.json +++ b/packages/page-contracts/package.json @@ -16,7 +16,7 @@ "type": "module", "version": "0.168.2-4-x", "dependencies": { - "@pezkuwi/api-contract": "16.5.2", + "@pezkuwi/api-contract": "16.5.9", "eventemitter3": "^5.0.1" }, "peerDependencies": { diff --git a/packages/react-api/package.json b/packages/react-api/package.json index 11d4a60..7ab5266 100644 --- a/packages/react-api/package.json +++ b/packages/react-api/package.json @@ -20,10 +20,10 @@ "path": false }, "dependencies": { - "@pezkuwi/api": "^16.5.6", + "@pezkuwi/api": "^16.5.9", "@pezkuwi/extension-compat-metamask": "^0.62.14", "@pezkuwi/extension-dapp": "^0.62.14", - "@pezkuwi/rpc-provider": "^16.5.6", + "@pezkuwi/rpc-provider": "^16.5.9", "fflate": "^0.8.1", "rxjs": "^7.8.1" }, diff --git a/packages/react-components/package.json b/packages/react-components/package.json index d073651..31dfd71 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -19,15 +19,15 @@ "@fortawesome/fontawesome-svg-core": "^6.5.1", "@fortawesome/free-solid-svg-icons": "^6.5.1", "@fortawesome/react-fontawesome": "^0.2.0", - "@pezkuwi/keyring": "^14.0.7", + "@pezkuwi/keyring": "^14.0.11", "@pezkuwi/react-api": "^0.168.2-4-x", - "@pezkuwi/react-identicon": "^3.17.1", - "@pezkuwi/react-qr": "^3.17.1", + "@pezkuwi/react-identicon": "^3.17.2", + "@pezkuwi/react-qr": "^3.17.2", "@pezkuwi/react-query": "^0.168.2-4-x", - "@pezkuwi/ui-keyring": "^3.17.1", - "@pezkuwi/ui-settings": "^3.17.1", - "@pezkuwi/util": "^14.0.7", - "@pezkuwi/util-crypto": "^14.0.7", + "@pezkuwi/ui-keyring": "^3.17.2", + "@pezkuwi/ui-settings": "^3.17.2", + "@pezkuwi/util": "^14.0.11", + "@pezkuwi/util-crypto": "^14.0.11", "chart.js": "^4.4.1", "chartjs-plugin-annotation": "^3.0.1", "chartjs-plugin-crosshair": "^2.0.0", diff --git a/packages/react-hooks/package.json b/packages/react-hooks/package.json index 8995567..ba24bf1 100644 --- a/packages/react-hooks/package.json +++ b/packages/react-hooks/package.json @@ -16,8 +16,8 @@ "type": "module", "version": "0.168.2-4-x", "dependencies": { - "@pezkuwi/hw-ledger": "^14.0.7", - "@pezkuwi/hw-ledger-transports": "^14.0.7", + "@pezkuwi/hw-ledger": "^14.0.11", + "@pezkuwi/hw-ledger-transports": "^14.0.11", "is-ipfs": "^8.0.1" }, "peerDependencies": { diff --git a/packages/react-signer/package.json b/packages/react-signer/package.json index 4582c43..ef384e2 100644 --- a/packages/react-signer/package.json +++ b/packages/react-signer/package.json @@ -16,7 +16,7 @@ "type": "module", "version": "0.168.2-4-x", "dependencies": { - "@pezkuwi/hw-ledger": "^14.0.7", + "@pezkuwi/hw-ledger": "^14.0.11", "@pezkuwi/react-components": "^0.168.2-4-x", "@polkadot-api/merkleize-metadata": "^1.1.27" }, diff --git a/packages/test-support/package.json b/packages/test-support/package.json index fc9a90e..e0a2ad8 100644 --- a/packages/test-support/package.json +++ b/packages/test-support/package.json @@ -20,7 +20,7 @@ "testcontainers": "^10.4.0" }, "devDependencies": { - "@pezkuwi/types-support": "16.5.2", + "@pezkuwi/types-support": "16.5.9", "@testing-library/jest-dom": "^5.17.0", "tsconfig-paths": "^4.2.0" }, diff --git a/packages/test-support/src/creation/balance.ts b/packages/test-support/src/creation/balance.ts index 77a6223..2e7bb4f 100644 --- a/packages/test-support/src/creation/balance.ts +++ b/packages/test-support/src/creation/balance.ts @@ -1,13 +1,11 @@ // Copyright 2017-2026 @pezkuwi/test-supports authors & contributors // SPDX-License-Identifier: Apache-2.0 -import type { Registry } from '@pezkuwi/types/types'; - import { TypeRegistry, u128 as U128 } from '@pezkuwi/types'; export function balanceOf (number: number | string): U128 { // FIXME - ref: https://github.com/pezkuwichain/pezkuwi-apps/pull/11051 // Adding support for CJS and ESM correctly has caused some build issues. // This is a hacky type cast to allow the compiler to be happy. - return new U128(new TypeRegistry() as unknown as Registry, number); + return new U128(new TypeRegistry() as any, number); } diff --git a/packages/test-support/src/creation/bounties.ts b/packages/test-support/src/creation/bounties.ts index 6c4236d..c9de1c8 100644 --- a/packages/test-support/src/creation/bounties.ts +++ b/packages/test-support/src/creation/bounties.ts @@ -20,8 +20,8 @@ export class BountyFactory { public aBountyIndex = (index = 0): BountyIndex => this.#registry.createType('BountyIndex', index); - public defaultBounty = (): PezpalletBountiesBounty => - this.#registry.createType('Bounty'); + public defaultBounty = (): any => + this.#registry.createType('Bounty'); public aBountyStatus = (status: string): PezpalletBountiesBountyStatus => this.#registry.createType('PezpalletBountiesBountyStatus', status); @@ -38,9 +38,9 @@ export class BountyFactory { throw new Error('Unsupported status'); }; - public bountyWith = ({ status = 'Proposed', value = 1 } = {}): PezpalletBountiesBounty => + public bountyWith = ({ status = 'Proposed', value = 1 } = {}): any => this.aBounty({ status: this.aBountyStatus(status), value: balanceOf(value) }); - public aBounty = ({ fee = balanceOf(10), status = this.aBountyStatus('Proposed'), value = balanceOf(500) }: Partial = {}): PezpalletBountiesBounty => - this.#registry.createType('Bounty', { fee, status, value }); + public aBounty = ({ fee = balanceOf(10), status = this.aBountyStatus('Proposed'), value = balanceOf(500) }: Partial = {}): any => + this.#registry.createType('Bounty', { fee, status, value }); } diff --git a/packages/test-support/src/creation/staking.ts b/packages/test-support/src/creation/staking.ts index cdaaaa1..3f5fff9 100644 --- a/packages/test-support/src/creation/staking.ts +++ b/packages/test-support/src/creation/staking.ts @@ -1,12 +1,10 @@ // Copyright 2017-2026 @pezkuwi/app-bounties authors & contributors // SPDX-License-Identifier: Apache-2.0 -import type { PezpalletStakingStakingLedger } from '@pezkuwi/types/lookup'; - import { TypeRegistry } from '@pezkuwi/types/create'; import { BN } from '@pezkuwi/util'; -export function makeStakingLedger (active: BN | number | string): PezpalletStakingStakingLedger { +export function makeStakingLedger (active: BN | number | string): any { const reg = new TypeRegistry(); // Constructing the whole StakingLedger structure is hard, @@ -16,5 +14,5 @@ export function makeStakingLedger (active: BN | number | string): PezpalletStaki // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment return { active: reg.createType('Compact', reg.createType('Balance', new BN(active))) - } as PezpalletStakingStakingLedger; + } as any; } diff --git a/scripts/rebrand.sh b/scripts/rebrand.sh index 98481e7..50dcbbc 100755 --- a/scripts/rebrand.sh +++ b/scripts/rebrand.sh @@ -111,11 +111,11 @@ find "$APPS_DIR" -type f \( -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -na # polkadot.js.org -> pezkuwichain.app sed -i 's|polkadot.js.org|pezkuwichain.app|g' "$file" - # apps.polkadot.io -> pezkuwichain.app - sed -i 's|apps.polkadot.io|pezkuwichain.app|g' "$file" + # apps.pezkuwichain.io -> pezkuwichain.app + sed -i 's|apps.pezkuwichain.io|pezkuwichain.app|g' "$file" - # polkadot.network -> pezkuwichain.io - sed -i 's|polkadot.network|pezkuwichain.io|g' "$file" + # pezkuwichain.io -> pezkuwichain.io + sed -i 's|pezkuwichain.io|pezkuwichain.io|g' "$file" # kusama.network -> dicle.pezkuwichain.io sed -i 's|kusama.network|dicle.pezkuwichain.io|g' "$file"