Update package versions to match root resolutions

This commit is contained in:
2026-01-17 18:42:49 +03:00
parent ce478eb493
commit a663274a7e
15 changed files with 55 additions and 60 deletions
+1 -1
View File
@@ -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"
},
@@ -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);
}
@@ -20,8 +20,8 @@ export class BountyFactory {
public aBountyIndex = (index = 0): BountyIndex =>
this.#registry.createType('BountyIndex', index);
public defaultBounty = (): PezpalletBountiesBounty =>
this.#registry.createType<PezpalletBountiesBounty>('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> = {}): PezpalletBountiesBounty =>
this.#registry.createType<PezpalletBountiesBounty>('Bounty', { fee, status, value });
public aBounty = ({ fee = balanceOf(10), status = this.aBountyStatus('Proposed'), value = balanceOf(500) }: Partial<PezpalletBountiesBounty> = {}): any =>
this.#registry.createType('Bounty', { fee, status, value });
}
@@ -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<Balance>', reg.createType('Balance', new BN(active)))
} as PezpalletStakingStakingLedger;
} as any;
}