Skip to content

Commit

Permalink
chore(deps): update pjs (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
marshacb authored Sep 17, 2024
1 parent 8af7196 commit 112c98b
Show file tree
Hide file tree
Showing 15 changed files with 424 additions and 494 deletions.
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 <[email protected]>",
"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": "[email protected]"
}
10 changes: 6 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,7 @@ function createStatemineRegistry(specVersion: number): TypeRegistry {
registry.register(
getSpecTypes(registry, 'Statemine', 'statemine', specVersion),
);

registry.setMetadata(new Metadata(registry, assetHubKusamaV10400));
registry.setMetadata(new Metadata(registry, assetHubKusamaV1003000));

return registry;
}
Expand All @@ -72,7 +71,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

0 comments on commit 112c98b

Please sign in to comment.