Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update pjs #154

Merged
merged 3 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@
"author": "Parity Technologies <admin@parity.io>",
"license": "Apache-2.0",
"devDependencies": {
"@polkadot/api": "^12.2.2",
"@polkadot/apps-config": "^0.142.1",
"@polkadot/api": "^13.0.1",
"@polkadot/apps-config": "^0.143.2",
"@substrate/dev": "0.7.1",
"@types/node-fetch": "^2.6.9",
"node-fetch": "2.6.7",
"vitest": "^1.4.0"
},
"resolutions": {
"@polkadot/types": "13.0.1"
},
"packageManager": "yarn@4.2.2"
}
11 changes: 7 additions & 4 deletions src/testHelpers/adjustedMockAssetHubKusamaApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { getSpecTypes } from '@polkadot/types-known';
import BN from 'bn.js';

import type { UnionXcmMultiLocation } from '../types';
import { assetHubKusamaV10400 } from './metadata/assetHubKusamaV10400';
import { assetHubKusamaV1003000 } from './metadata/assetHubKusamaV1003000';
import { mockAssetHubKusamaApi } from './mockAssetHubKusamaApi';
import { mockWeightInfo } from './mockWeightInfo';
/**
Expand All @@ -44,8 +44,8 @@ function createStatemineRegistry(specVersion: number): TypeRegistry {
registry.register(
getSpecTypes(registry, 'Statemine', 'statemine', specVersion),
);

registry.setMetadata(new Metadata(registry, assetHubKusamaV10400));
const metadata = new Metadata(registry, assetHubKusamaV1003000);
registry.setMetadata(metadata);

return registry;
}
Expand All @@ -72,7 +72,10 @@ const queryInfoCallAt = () =>

const getMetadata = () =>
Promise.resolve().then(() =>
mockAssetHubKusamaApi.registry.createType('Metadata', assetHubKusamaV10400),
mockAssetHubKusamaApi.registry.createType(
'Metadata',
assetHubKusamaV1003000,
),
);

const getHeader = (): Promise<Header> =>
Expand Down
4 changes: 4 additions & 0 deletions src/testHelpers/metadata/assetHubKusamaV1003000.ts

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/testHelpers/metadata/assetHubKusamaV10400.ts

This file was deleted.

4 changes: 4 additions & 0 deletions src/testHelpers/metadata/bifrostKusamaV12000.ts

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/testHelpers/metadata/bifrostKusamaV984.ts

This file was deleted.

4 changes: 4 additions & 0 deletions src/testHelpers/metadata/kusamaV1003000.ts

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/testHelpers/metadata/kusamaV9420.ts

This file was deleted.

4 changes: 4 additions & 0 deletions src/testHelpers/metadata/polkadotV1002007.ts

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/testHelpers/metadata/polkadotV10800.ts

This file was deleted.

7 changes: 4 additions & 3 deletions src/testHelpers/mockAssetHubKusamaApi.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Copyright 2023 Parity Technologies (UK) Ltd.

import { createApiWithAugmentations } from './createApiWithAugmentations';
import { assetHubKusamaV10400 } from './metadata/assetHubKusamaV10400';
import { assetHubKusamaV1003000 } from './metadata/assetHubKusamaV1003000';

export const mockAssetHubKusamaApi =
createApiWithAugmentations(assetHubKusamaV10400);
export const mockAssetHubKusamaApi = createApiWithAugmentations(
assetHubKusamaV1003000,
);
4 changes: 2 additions & 2 deletions src/testHelpers/mockBifrostKusamaParachainApi.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2023 Parity Technologies (UK) Ltd.

import { createApiWithAugmentations } from './createApiWithAugmentations';
import { bifrostKusamaV984 } from './metadata/bifrostKusamaV984';
import { bifrostKusamaV12000 } from './metadata/bifrostKusamaV12000';

export const mockBifrostKusamaParachainApi =
createApiWithAugmentations(bifrostKusamaV984);
createApiWithAugmentations(bifrostKusamaV12000);
4 changes: 2 additions & 2 deletions src/testHelpers/mockKusamaRelayApi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023 Parity Technologies (UK) Ltd.

import { createApiWithAugmentations } from './createApiWithAugmentations';
import { kusamaV9420 } from './metadata/kusamaV9420';
import { kusamaV1003000 } from './metadata/kusamaV1003000';

export const mockKusamaRelayApi = createApiWithAugmentations(kusamaV9420);
export const mockKusamaRelayApi = createApiWithAugmentations(kusamaV1003000);
4 changes: 2 additions & 2 deletions src/testHelpers/mockPolkadotRelayApi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2024 Parity Technologies (UK) Ltd.

import { createApiWithAugmentations } from './createApiWithAugmentations';
import { polkadotV10800 } from './metadata/polkadotV10800';
import { polkadotV1002007 } from './metadata/polkadotV1002007';

export const mockPolkadotApi = createApiWithAugmentations(polkadotV10800);
export const mockPolkadotApi = createApiWithAugmentations(polkadotV1002007);
Loading
Loading