mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-21 22:27:57 +00:00
Update package versions to match root resolutions
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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>) => 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);
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
+4
-4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user