diff --git a/package.json b/package.json index f341c27ee6..20de6bc44d 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "test:one": "polkadot-dev-run-test --env node" }, "devDependencies": { - "@polkadot/dev": "^0.71.5", + "@polkadot/dev": "^0.71.6", "@polkadot/typegen": "workspace:packages/typegen", "@types/node": "^18.15.0" }, diff --git a/packages/api-contract/src/Abi/Abi.spec.ts b/packages/api-contract/src/Abi/Abi.spec.ts index f2324a5e23..878fcc355a 100644 --- a/packages/api-contract/src/Abi/Abi.spec.ts +++ b/packages/api-contract/src/Abi/Abi.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/api-contract authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { Registry } from '@polkadot/types/types'; diff --git a/packages/api-contract/src/Abi/toLatest.spec.ts b/packages/api-contract/src/Abi/toLatest.spec.ts index db0b62d6e9..3a7fb0550e 100644 --- a/packages/api-contract/src/Abi/toLatest.spec.ts +++ b/packages/api-contract/src/Abi/toLatest.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/api-contract authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; diff --git a/packages/api-contract/src/base/Code.spec.ts b/packages/api-contract/src/base/Code.spec.ts index 4e1eb61d7f..ae6ec55546 100644 --- a/packages/api-contract/src/base/Code.spec.ts +++ b/packages/api-contract/src/base/Code.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/api-contract authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import fs from 'node:fs'; import path from 'node:path'; diff --git a/packages/api-derive/src/bounties/bounties.spec.ts b/packages/api-derive/src/bounties/bounties.spec.ts index 63896d46c9..ca15e3cafa 100644 --- a/packages/api-derive/src/bounties/bounties.spec.ts +++ b/packages/api-derive/src/bounties/bounties.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/api-derive authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { SubmittableExtrinsic } from '@polkadot/api-base/types'; import type { Bytes, Option, StorageKey } from '@polkadot/types'; diff --git a/packages/api-derive/src/chain/getBlock.ts b/packages/api-derive/src/chain/getBlock.ts index bb702bbf65..269d3f30cb 100644 --- a/packages/api-derive/src/chain/getBlock.ts +++ b/packages/api-derive/src/chain/getBlock.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import type { Observable } from 'rxjs'; -import type { SignedBlockExtended } from '../type/types'; +import type { SignedBlockExtended } from '../type/types.js'; import type { DeriveApi } from '../types.js'; import { combineLatest, map, of, switchMap } from 'rxjs'; diff --git a/packages/api-derive/src/chain/getBlockByNumber.ts b/packages/api-derive/src/chain/getBlockByNumber.ts index bbd2c9e691..21e5df34b9 100644 --- a/packages/api-derive/src/chain/getBlockByNumber.ts +++ b/packages/api-derive/src/chain/getBlockByNumber.ts @@ -3,7 +3,7 @@ import type { Observable } from 'rxjs'; import type { AnyNumber } from '@polkadot/types/types'; -import type { SignedBlockExtended } from '../type/types'; +import type { SignedBlockExtended } from '../type/types.js'; import type { DeriveApi } from '../types.js'; import { switchMap } from 'rxjs'; diff --git a/packages/api-derive/src/chain/getHeader.ts b/packages/api-derive/src/chain/getHeader.ts index 1d9f39ab2c..8e3fa905b8 100644 --- a/packages/api-derive/src/chain/getHeader.ts +++ b/packages/api-derive/src/chain/getHeader.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import type { Observable } from 'rxjs'; -import type { HeaderExtended } from '../type/types'; +import type { HeaderExtended } from '../type/types.js'; import type { DeriveApi } from '../types.js'; import { combineLatest, map, switchMap } from 'rxjs'; diff --git a/packages/api-derive/src/chain/subscribeFinalizedBlocks.ts b/packages/api-derive/src/chain/subscribeFinalizedBlocks.ts index ecf8fa6e17..4bbf912cb4 100644 --- a/packages/api-derive/src/chain/subscribeFinalizedBlocks.ts +++ b/packages/api-derive/src/chain/subscribeFinalizedBlocks.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import type { Observable } from 'rxjs'; -import type { SignedBlockExtended } from '../type/types'; +import type { SignedBlockExtended } from '../type/types.js'; import type { DeriveApi } from '../types.js'; import { switchMap } from 'rxjs'; diff --git a/packages/api-derive/src/index.spec.ts b/packages/api-derive/src/index.spec.ts index d1c082a366..9a20254b69 100644 --- a/packages/api-derive/src/index.spec.ts +++ b/packages/api-derive/src/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/api-derive authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable @typescript-eslint/no-unsafe-return */ /* eslint-disable @typescript-eslint/no-unsafe-call */ diff --git a/packages/api-derive/src/util/approvalFlagToBools.spec.ts b/packages/api-derive/src/util/approvalFlagToBools.spec.ts index b117820ac2..63a52bc450 100644 --- a/packages/api-derive/src/util/approvalFlagToBools.spec.ts +++ b/packages/api-derive/src/util/approvalFlagToBools.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/api-derive authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { ApprovalFlag } from '@polkadot/types/interfaces'; diff --git a/packages/api/src/promise/Combinators.spec.ts b/packages/api/src/promise/Combinators.spec.ts index e14db3ac47..264c19693e 100644 --- a/packages/api/src/promise/Combinators.spec.ts +++ b/packages/api/src/promise/Combinators.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/api authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { UnsubscribePromise } from '../types/index.js'; diff --git a/packages/api/src/promise/index.spec.ts b/packages/api/src/promise/index.spec.ts index 5999806efe..ba37180f08 100644 --- a/packages/api/src/promise/index.spec.ts +++ b/packages/api/src/promise/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/api authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { HexString } from '@polkadot/util/types'; import type { SubmittableExtrinsic } from '../types/index.js'; diff --git a/packages/api/src/util/augmentObject.spec.ts b/packages/api/src/util/augmentObject.spec.ts index 7a280415cd..5b44bb02e6 100644 --- a/packages/api/src/util/augmentObject.spec.ts +++ b/packages/api/src/util/augmentObject.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/api authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { augmentObject } from './augmentObject.js'; diff --git a/packages/api/src/util/validate.spec.ts b/packages/api/src/util/validate.spec.ts index a2abbd7a60..0833c214e3 100644 --- a/packages/api/src/util/validate.spec.ts +++ b/packages/api/src/util/validate.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/api authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { decorateStorage, Metadata, TypeRegistry } from '@polkadot/types'; import metaStatic from '@polkadot/types-support/metadata/static-substrate'; diff --git a/packages/rpc-core/src/cached.spec.ts b/packages/rpc-core/src/cached.spec.ts index 559e0bdefb..1dcb6ca62e 100644 --- a/packages/rpc-core/src/cached.spec.ts +++ b/packages/rpc-core/src/cached.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-core authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { RpcInterface } from './types/index.js'; diff --git a/packages/rpc-core/src/index.spec.ts b/packages/rpc-core/src/index.spec.ts index 924c51c0ad..5dfcb8751d 100644 --- a/packages/rpc-core/src/index.spec.ts +++ b/packages/rpc-core/src/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-core authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { ProviderInterface } from '@polkadot/rpc-provider/types'; diff --git a/packages/rpc-core/src/methodSend.spec.ts b/packages/rpc-core/src/methodSend.spec.ts index deaaea7b95..0d731aec7b 100644 --- a/packages/rpc-core/src/methodSend.spec.ts +++ b/packages/rpc-core/src/methodSend.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-core authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { ProviderInterface } from '@polkadot/rpc-provider/types'; import type { DefinitionRpc } from '@polkadot/types/types'; diff --git a/packages/rpc-core/src/replay.spec.ts b/packages/rpc-core/src/replay.spec.ts index 06e543e68c..f8fadcb619 100644 --- a/packages/rpc-core/src/replay.spec.ts +++ b/packages/rpc-core/src/replay.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-core authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { RpcInterface } from './types/index.js'; diff --git a/packages/rpc-core/src/util/drr.spec.ts b/packages/rpc-core/src/util/drr.spec.ts index d40ef1d0a2..28b55d6206 100644 --- a/packages/rpc-core/src/util/drr.spec.ts +++ b/packages/rpc-core/src/util/drr.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/api-derive authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { of, timer } from 'rxjs'; diff --git a/packages/rpc-provider/src/coder/decodeResponse.spec.ts b/packages/rpc-provider/src/coder/decodeResponse.spec.ts index 6a590656a0..14da937b31 100644 --- a/packages/rpc-provider/src/coder/decodeResponse.spec.ts +++ b/packages/rpc-provider/src/coder/decodeResponse.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { JsonRpcResponse } from '../types.js'; diff --git a/packages/rpc-provider/src/coder/encodeJson.spec.ts b/packages/rpc-provider/src/coder/encodeJson.spec.ts index 76da2ff714..ff6fba5fc2 100644 --- a/packages/rpc-provider/src/coder/encodeJson.spec.ts +++ b/packages/rpc-provider/src/coder/encodeJson.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { RpcCoder } from './index.js'; diff --git a/packages/rpc-provider/src/coder/encodeObject.spec.ts b/packages/rpc-provider/src/coder/encodeObject.spec.ts index 493ea408c0..6e1c84a93a 100644 --- a/packages/rpc-provider/src/coder/encodeObject.spec.ts +++ b/packages/rpc-provider/src/coder/encodeObject.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { RpcCoder } from './index.js'; diff --git a/packages/rpc-provider/src/coder/error.spec.ts b/packages/rpc-provider/src/coder/error.spec.ts index db7a3ad7d5..486c63adde 100644 --- a/packages/rpc-provider/src/coder/error.spec.ts +++ b/packages/rpc-provider/src/coder/error.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { isError } from '@polkadot/util'; diff --git a/packages/rpc-provider/src/http/index.spec.ts b/packages/rpc-provider/src/http/index.spec.ts index 90ee0f04d5..1bcbaa7f37 100644 --- a/packages/rpc-provider/src/http/index.spec.ts +++ b/packages/rpc-provider/src/http/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TEST_HTTP_URL } from '../mock/mockHttp.js'; import { HttpProvider } from './index.js'; diff --git a/packages/rpc-provider/src/http/send.spec.ts b/packages/rpc-provider/src/http/send.spec.ts index c5e8659aa3..bce4401a37 100644 --- a/packages/rpc-provider/src/http/send.spec.ts +++ b/packages/rpc-provider/src/http/send.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { Mock } from '../mock/types.js'; diff --git a/packages/rpc-provider/src/lru.spec.ts b/packages/rpc-provider/src/lru.spec.ts index 4d860b6b19..9543b52e97 100644 --- a/packages/rpc-provider/src/lru.spec.ts +++ b/packages/rpc-provider/src/lru.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { LRUCache } from './lru.js'; diff --git a/packages/rpc-provider/src/mock/on.spec.ts b/packages/rpc-provider/src/mock/on.spec.ts index fdeb7036be..0fad63432b 100644 --- a/packages/rpc-provider/src/mock/on.spec.ts +++ b/packages/rpc-provider/src/mock/on.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { ProviderInterfaceEmitted } from '../types.js'; diff --git a/packages/rpc-provider/src/mock/send.spec.ts b/packages/rpc-provider/src/mock/send.spec.ts index 719d67f25a..0b0499dc63 100644 --- a/packages/rpc-provider/src/mock/send.spec.ts +++ b/packages/rpc-provider/src/mock/send.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types/create'; diff --git a/packages/rpc-provider/src/mock/subscribe.spec.ts b/packages/rpc-provider/src/mock/subscribe.spec.ts index fc8cb9b1ee..28acd0343f 100644 --- a/packages/rpc-provider/src/mock/subscribe.spec.ts +++ b/packages/rpc-provider/src/mock/subscribe.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types/create'; diff --git a/packages/rpc-provider/src/mock/unsubscribe.spec.ts b/packages/rpc-provider/src/mock/unsubscribe.spec.ts index b36297aed8..deb14e9384 100644 --- a/packages/rpc-provider/src/mock/unsubscribe.spec.ts +++ b/packages/rpc-provider/src/mock/unsubscribe.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types/create'; diff --git a/packages/rpc-provider/src/substrate-connect/index.spec.ts b/packages/rpc-provider/src/substrate-connect/index.spec.ts index 22937a9419..8eab9b5259 100644 --- a/packages/rpc-provider/src/substrate-connect/index.spec.ts +++ b/packages/rpc-provider/src/substrate-connect/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable sort-keys */ /* eslint-disable promise/param-names */ diff --git a/packages/rpc-provider/src/ws/connect.spec.ts b/packages/rpc-provider/src/ws/connect.spec.ts index d3850ab6d0..23430f5056 100644 --- a/packages/rpc-provider/src/ws/connect.spec.ts +++ b/packages/rpc-provider/src/ws/connect.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { Mock } from '../mock/types.js'; diff --git a/packages/rpc-provider/src/ws/index.spec.ts b/packages/rpc-provider/src/ws/index.spec.ts index e3e8a93b89..dc066c5693 100644 --- a/packages/rpc-provider/src/ws/index.spec.ts +++ b/packages/rpc-provider/src/ws/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { Request } from '../mock/mockWs.js'; import type { Mock } from '../mock/types.js'; diff --git a/packages/rpc-provider/src/ws/send.spec.ts b/packages/rpc-provider/src/ws/send.spec.ts index 95932c0d49..3472141cce 100644 --- a/packages/rpc-provider/src/ws/send.spec.ts +++ b/packages/rpc-provider/src/ws/send.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { Request } from '../mock/mockWs.js'; diff --git a/packages/rpc-provider/src/ws/state.spec.ts b/packages/rpc-provider/src/ws/state.spec.ts index 1db84e4fdf..23c9ec3f11 100644 --- a/packages/rpc-provider/src/ws/state.spec.ts +++ b/packages/rpc-provider/src/ws/state.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { WsProvider } from './index.js'; diff --git a/packages/rpc-provider/src/ws/subscribe.spec.ts b/packages/rpc-provider/src/ws/subscribe.spec.ts index 3e63ad3c4d..4b1554f2ec 100644 --- a/packages/rpc-provider/src/ws/subscribe.spec.ts +++ b/packages/rpc-provider/src/ws/subscribe.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { Request } from '../mock/mockWs.js'; import type { Global, Mock } from './../mock/types.js'; diff --git a/packages/rpc-provider/src/ws/unsubscribe.spec.ts b/packages/rpc-provider/src/ws/unsubscribe.spec.ts index f879b1060c..ec7827ca5e 100644 --- a/packages/rpc-provider/src/ws/unsubscribe.spec.ts +++ b/packages/rpc-provider/src/ws/unsubscribe.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { Request } from '../mock/mockWs.js'; import type { Global, Mock } from './../mock/types.js'; diff --git a/packages/typegen/src/util/derived.spec.ts b/packages/typegen/src/util/derived.spec.ts index 4f91805eeb..c9bee5288f 100644 --- a/packages/typegen/src/util/derived.spec.ts +++ b/packages/typegen/src/util/derived.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/typegen authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types/create'; diff --git a/packages/typegen/src/util/formatting.spec.ts b/packages/typegen/src/util/formatting.spec.ts index 71a0941374..f29d658698 100644 --- a/packages/typegen/src/util/formatting.spec.ts +++ b/packages/typegen/src/util/formatting.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/typegen authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; diff --git a/packages/types-codec/src/base/Compact.spec.ts b/packages/types-codec/src/base/Compact.spec.ts index 88791f3f85..50b013d532 100644 --- a/packages/types-codec/src/base/Compact.spec.ts +++ b/packages/types-codec/src/base/Compact.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { CodecDate, Compact, U32 } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/base/DoNotConstruct.spec.ts b/packages/types-codec/src/base/DoNotConstruct.spec.ts index dcc8ba8dda..9c7bedb3dc 100644 --- a/packages/types-codec/src/base/DoNotConstruct.spec.ts +++ b/packages/types-codec/src/base/DoNotConstruct.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { DoNotConstruct } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/base/Enum.spec.ts b/packages/types-codec/src/base/Enum.spec.ts index d8a4be1635..63d56e69e5 100644 --- a/packages/types-codec/src/base/Enum.spec.ts +++ b/packages/types-codec/src/base/Enum.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { Registry } from '@polkadot/types-codec/types'; diff --git a/packages/types-codec/src/base/Int.spec.ts b/packages/types-codec/src/base/Int.spec.ts index 4a3f9cf0ac..24dc8e611d 100644 --- a/packages/types-codec/src/base/Int.spec.ts +++ b/packages/types-codec/src/base/Int.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { Int } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/base/Null.spec.ts b/packages/types-codec/src/base/Null.spec.ts index bfb6789834..fa5e270a15 100644 --- a/packages/types-codec/src/base/Null.spec.ts +++ b/packages/types-codec/src/base/Null.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { Null } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/base/Option.spec.ts b/packages/types-codec/src/base/Option.spec.ts index f5ea2a3284..aa81de7b74 100644 --- a/packages/types-codec/src/base/Option.spec.ts +++ b/packages/types-codec/src/base/Option.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { bool, Bytes, Null, Option, Text, U32 } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/base/Result.spec.ts b/packages/types-codec/src/base/Result.spec.ts index a14585881d..e8b1d901aa 100644 --- a/packages/types-codec/src/base/Result.spec.ts +++ b/packages/types-codec/src/base/Result.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { Result, Text, u32 } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/base/Tuple.spec.ts b/packages/types-codec/src/base/Tuple.spec.ts index 35ff3e5609..79457b8074 100644 --- a/packages/types-codec/src/base/Tuple.spec.ts +++ b/packages/types-codec/src/base/Tuple.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { BlockNumber, VoteThreshold } from '@polkadot/types/interfaces'; import type { AnyTupleValue, CodecTo } from '@polkadot/types-codec/types'; diff --git a/packages/types-codec/src/base/UInt.spec.ts b/packages/types-codec/src/base/UInt.spec.ts index 980c9fc4a4..dfd171e17b 100644 --- a/packages/types-codec/src/base/UInt.spec.ts +++ b/packages/types-codec/src/base/UInt.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { UInt } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/base/Vec.spec.ts b/packages/types-codec/src/base/Vec.spec.ts index 47f2331521..e5cc3af06c 100644 --- a/packages/types-codec/src/base/Vec.spec.ts +++ b/packages/types-codec/src/base/Vec.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { PropIndex } from '@polkadot/types/interfaces/democracy'; import type { Codec, CodecTo, ITuple } from '@polkadot/types-codec/types'; diff --git a/packages/types-codec/src/base/VecFixed.spec.ts b/packages/types-codec/src/base/VecFixed.spec.ts index 8c6ffc7691..cbc74ab5be 100644 --- a/packages/types-codec/src/base/VecFixed.spec.ts +++ b/packages/types-codec/src/base/VecFixed.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { Text, u16, VecFixed } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/extended/BTreeMap.spec.ts b/packages/types-codec/src/extended/BTreeMap.spec.ts index a1b7d5a547..a83586669a 100644 --- a/packages/types-codec/src/extended/BTreeMap.spec.ts +++ b/packages/types-codec/src/extended/BTreeMap.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { CodecClass, ITuple } from '@polkadot/types-codec/types'; diff --git a/packages/types-codec/src/extended/BTreeSet.spec.ts b/packages/types-codec/src/extended/BTreeSet.spec.ts index b51becee3d..8d58e73e0d 100644 --- a/packages/types-codec/src/extended/BTreeSet.spec.ts +++ b/packages/types-codec/src/extended/BTreeSet.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { CodecClass, CodecTo } from '@polkadot/types-codec/types'; diff --git a/packages/types-codec/src/extended/BitVec.spec.ts b/packages/types-codec/src/extended/BitVec.spec.ts index 9ba915d9ac..b71b8037cd 100644 --- a/packages/types-codec/src/extended/BitVec.spec.ts +++ b/packages/types-codec/src/extended/BitVec.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { hexToU8a } from '@polkadot/util'; diff --git a/packages/types-codec/src/extended/Bytes.spec.ts b/packages/types-codec/src/extended/Bytes.spec.ts index 929b4c8108..091a9393ed 100644 --- a/packages/types-codec/src/extended/Bytes.spec.ts +++ b/packages/types-codec/src/extended/Bytes.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { Bytes } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/extended/HashMap.spec.ts b/packages/types-codec/src/extended/HashMap.spec.ts index bd913bc611..d36703c6d8 100644 --- a/packages/types-codec/src/extended/HashMap.spec.ts +++ b/packages/types-codec/src/extended/HashMap.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { HashMap, Struct, Text, U32 } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/extended/Linkage.spec.ts b/packages/types-codec/src/extended/Linkage.spec.ts index 12b306cde8..10270b4138 100644 --- a/packages/types-codec/src/extended/Linkage.spec.ts +++ b/packages/types-codec/src/extended/Linkage.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { Linkage } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/extended/Map.spec.ts b/packages/types-codec/src/extended/Map.spec.ts index 17f9baa4d3..e3a4cd453a 100644 --- a/packages/types-codec/src/extended/Map.spec.ts +++ b/packages/types-codec/src/extended/Map.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { CodecTo } from '@polkadot/types-codec/types'; diff --git a/packages/types-codec/src/extended/OptionBool.spec.ts b/packages/types-codec/src/extended/OptionBool.spec.ts index 1fc3665c4a..d1f9e8ba94 100644 --- a/packages/types-codec/src/extended/OptionBool.spec.ts +++ b/packages/types-codec/src/extended/OptionBool.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { OptionBool } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/extended/Range.spec.ts b/packages/types-codec/src/extended/Range.spec.ts index 8dabbe54c3..47c3ad7c1c 100644 --- a/packages/types-codec/src/extended/Range.spec.ts +++ b/packages/types-codec/src/extended/Range.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { Range, U32 } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/extended/Type.spec.ts b/packages/types-codec/src/extended/Type.spec.ts index 0cadd225e8..5dfbc4533b 100644 --- a/packages/types-codec/src/extended/Type.spec.ts +++ b/packages/types-codec/src/extended/Type.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { Text, Type } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/extended/U8aFixed.spec.ts b/packages/types-codec/src/extended/U8aFixed.spec.ts index 90a70895e0..0695b8b388 100644 --- a/packages/types-codec/src/extended/U8aFixed.spec.ts +++ b/packages/types-codec/src/extended/U8aFixed.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { U8aFixed } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/extended/WrapperKeepOpaque.spec.ts b/packages/types-codec/src/extended/WrapperKeepOpaque.spec.ts index 8d5744bfab..d4b7aff295 100644 --- a/packages/types-codec/src/extended/WrapperKeepOpaque.spec.ts +++ b/packages/types-codec/src/extended/WrapperKeepOpaque.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { Bytes, Raw, u32, WrapperKeepOpaque } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/extended/WrapperOpaque.spec.ts b/packages/types-codec/src/extended/WrapperOpaque.spec.ts index f4e6360d74..8cbdd28e1e 100644 --- a/packages/types-codec/src/extended/WrapperOpaque.spec.ts +++ b/packages/types-codec/src/extended/WrapperOpaque.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { WrapperOpaque } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/native/Bool.spec.ts b/packages/types-codec/src/native/Bool.spec.ts index 7b5764d9a4..72b2ec4c20 100644 --- a/packages/types-codec/src/native/Bool.spec.ts +++ b/packages/types-codec/src/native/Bool.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { CodecTo } from '@polkadot/types-codec/types'; diff --git a/packages/types-codec/src/native/Date.spec.ts b/packages/types-codec/src/native/Date.spec.ts index 0afe0c11ea..1eeb46f318 100644 --- a/packages/types-codec/src/native/Date.spec.ts +++ b/packages/types-codec/src/native/Date.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { CodecTo } from '@polkadot/types-codec/types'; diff --git a/packages/types-codec/src/native/Float.spec.ts b/packages/types-codec/src/native/Float.spec.ts index 3a917067a9..26fd82ea51 100644 --- a/packages/types-codec/src/native/Float.spec.ts +++ b/packages/types-codec/src/native/Float.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { F32, F64 } from '@polkadot/types-codec'; diff --git a/packages/types-codec/src/native/Raw.spec.ts b/packages/types-codec/src/native/Raw.spec.ts index aac8657217..7dfd6281c3 100644 --- a/packages/types-codec/src/native/Raw.spec.ts +++ b/packages/types-codec/src/native/Raw.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { AnyU8a, CodecTo } from '@polkadot/types-codec/types'; diff --git a/packages/types-codec/src/native/Set.spec.ts b/packages/types-codec/src/native/Set.spec.ts index 29de87542d..c330ae865b 100644 --- a/packages/types-codec/src/native/Set.spec.ts +++ b/packages/types-codec/src/native/Set.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable sort-keys */ diff --git a/packages/types-codec/src/native/Struct.spec.ts b/packages/types-codec/src/native/Struct.spec.ts index 404327def6..6a1f3cad06 100644 --- a/packages/types-codec/src/native/Struct.spec.ts +++ b/packages/types-codec/src/native/Struct.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable sort-keys */ diff --git a/packages/types-codec/src/native/Text.spec.ts b/packages/types-codec/src/native/Text.spec.ts index 4a335188b6..e4d303c508 100644 --- a/packages/types-codec/src/native/Text.spec.ts +++ b/packages/types-codec/src/native/Text.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { CodecTo } from '@polkadot/types-codec/types'; diff --git a/packages/types-codec/src/utils/sanitize.spec.ts b/packages/types-codec/src/utils/sanitize.spec.ts index b5ffb2572c..2ce08ffe4d 100644 --- a/packages/types-codec/src/utils/sanitize.spec.ts +++ b/packages/types-codec/src/utils/sanitize.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { alias, flattenSingleTuple, removeColons, removeExtensions } from './sanitize.js'; diff --git a/packages/types-create/src/util/encodeTypes.spec.ts b/packages/types-create/src/util/encodeTypes.spec.ts index e789f7ba3b..219bd021f9 100644 --- a/packages/types-create/src/util/encodeTypes.spec.ts +++ b/packages/types-create/src/util/encodeTypes.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { encodeTypeDef, TypeDefInfo } from '@polkadot/types-create'; diff --git a/packages/types-create/src/util/getTypeDef.spec.ts b/packages/types-create/src/util/getTypeDef.spec.ts index 83b29a6a68..1cf5a060db 100644 --- a/packages/types-create/src/util/getTypeDef.spec.ts +++ b/packages/types-create/src/util/getTypeDef.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '@polkadot/types'; import { getTypeDef, TypeDefInfo } from '@polkadot/types-create'; diff --git a/packages/types-create/src/util/typeSplit.spec.ts b/packages/types-create/src/util/typeSplit.spec.ts index e7f212f136..1550a4d260 100644 --- a/packages/types-create/src/util/typeSplit.spec.ts +++ b/packages/types-create/src/util/typeSplit.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { typeSplit } from '@polkadot/types-create'; diff --git a/packages/types-known/src/upgrades/e2e/index.spec.ts b/packages/types-known/src/upgrades/e2e/index.spec.ts index 9001104db6..c0671e087b 100644 --- a/packages/types-known/src/upgrades/e2e/index.spec.ts +++ b/packages/types-known/src/upgrades/e2e/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-known authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { HexString } from '@polkadot/util/types'; import type { ChainUpgradesExpanded } from '../types.js'; diff --git a/packages/types-known/src/upgrades/index.spec.ts b/packages/types-known/src/upgrades/index.spec.ts index d549603769..34d5844b69 100644 --- a/packages/types-known/src/upgrades/index.spec.ts +++ b/packages/types-known/src/upgrades/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-known authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { ChainUpgradesExpanded, ChainUpgradesRaw } from './types.js'; diff --git a/packages/types/src/create/createClass.spec.ts b/packages/types/src/create/createClass.spec.ts index 008ee41182..697dd56ab6 100644 --- a/packages/types/src/create/createClass.spec.ts +++ b/packages/types/src/create/createClass.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeDefInfo } from '@polkadot/types-create'; diff --git a/packages/types/src/create/createType.spec.ts b/packages/types/src/create/createType.spec.ts index 989cdd8ef4..dfcc8db4bf 100644 --- a/packages/types/src/create/createType.spec.ts +++ b/packages/types/src/create/createType.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { CodecSet, Int } from '@polkadot/types-codec'; diff --git a/packages/types/src/create/registry.spec.ts b/packages/types/src/create/registry.spec.ts index 79fb72fe63..1f810c5102 100644 --- a/packages/types/src/create/registry.spec.ts +++ b/packages/types/src/create/registry.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable @typescript-eslint/no-unsafe-member-access */ diff --git a/packages/types/src/ethereum/AccountId.spec.ts b/packages/types/src/ethereum/AccountId.spec.ts index a1c215a909..52a474500e 100644 --- a/packages/types/src/ethereum/AccountId.spec.ts +++ b/packages/types/src/ethereum/AccountId.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable @typescript-eslint/no-unsafe-member-access */ diff --git a/packages/types/src/ethereum/LookupSource.spec.ts b/packages/types/src/ethereum/LookupSource.spec.ts index d8abb807f0..41cb21ecf7 100644 --- a/packages/types/src/ethereum/LookupSource.spec.ts +++ b/packages/types/src/ethereum/LookupSource.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../create/index.js'; import { GenericAccountIndex as AccountIndex } from '../generic/index.js'; diff --git a/packages/types/src/extrinsic/Extrinsic.spec.ts b/packages/types/src/extrinsic/Extrinsic.spec.ts index 87987c4b4e..0c9d907ded 100644 --- a/packages/types/src/extrinsic/Extrinsic.spec.ts +++ b/packages/types/src/extrinsic/Extrinsic.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import rpcMetadata from '@polkadot/types-support/metadata/static-substrate'; diff --git a/packages/types/src/extrinsic/ExtrinsicEra.spec.ts b/packages/types/src/extrinsic/ExtrinsicEra.spec.ts index 2e5136ac26..1195b197a2 100644 --- a/packages/types/src/extrinsic/ExtrinsicEra.spec.ts +++ b/packages/types/src/extrinsic/ExtrinsicEra.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../create/index.js'; import { GenericExtrinsicEra as ExtrinsicEra } from './index.js'; diff --git a/packages/types/src/extrinsic/ExtrinsicPayload.spec.ts b/packages/types/src/extrinsic/ExtrinsicPayload.spec.ts index a6047e75bc..e8d0ce4356 100644 --- a/packages/types/src/extrinsic/ExtrinsicPayload.spec.ts +++ b/packages/types/src/extrinsic/ExtrinsicPayload.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { u8aToHex } from '@polkadot/util'; diff --git a/packages/types/src/extrinsic/SignerPayload.spec.ts b/packages/types/src/extrinsic/SignerPayload.spec.ts index ecce822e46..8aab5191ec 100644 --- a/packages/types/src/extrinsic/SignerPayload.spec.ts +++ b/packages/types/src/extrinsic/SignerPayload.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import rpcMetadata from '@polkadot/types-support/metadata/static-substrate'; diff --git a/packages/types/src/extrinsic/v4/Extrinsic.spec.ts b/packages/types/src/extrinsic/v4/Extrinsic.spec.ts index 25941f69d2..cae69d4389 100644 --- a/packages/types/src/extrinsic/v4/Extrinsic.spec.ts +++ b/packages/types/src/extrinsic/v4/Extrinsic.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { createTestPairs } from '@polkadot/keyring/testingPairs'; import rpcMetadata from '@polkadot/types-support/metadata/static-substrate'; diff --git a/packages/types/src/extrinsic/v4/ExtrinsicPayload.spec.ts b/packages/types/src/extrinsic/v4/ExtrinsicPayload.spec.ts index 4faf07ef00..360c6eec94 100644 --- a/packages/types/src/extrinsic/v4/ExtrinsicPayload.spec.ts +++ b/packages/types/src/extrinsic/v4/ExtrinsicPayload.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import rpcMetadata from '@polkadot/types-support/metadata/static-substrate'; diff --git a/packages/types/src/extrinsic/v4/ExtrinsicSignature.spec.ts b/packages/types/src/extrinsic/v4/ExtrinsicSignature.spec.ts index 09d32d275a..64914f16d2 100644 --- a/packages/types/src/extrinsic/v4/ExtrinsicSignature.spec.ts +++ b/packages/types/src/extrinsic/v4/ExtrinsicSignature.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { createTestPairs } from '@polkadot/keyring/testingPairs'; import metadataStatic from '@polkadot/types-support/metadata/static-substrate'; diff --git a/packages/types/src/generic/AccountId.spec.ts b/packages/types/src/generic/AccountId.spec.ts index 76236e5111..ed4a1c1d52 100644 --- a/packages/types/src/generic/AccountId.spec.ts +++ b/packages/types/src/generic/AccountId.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable @typescript-eslint/no-unsafe-member-access */ diff --git a/packages/types/src/generic/AccountIndex.spec.ts b/packages/types/src/generic/AccountIndex.spec.ts index 63672af348..1d9f46d837 100644 --- a/packages/types/src/generic/AccountIndex.spec.ts +++ b/packages/types/src/generic/AccountIndex.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { BN } from '@polkadot/util'; diff --git a/packages/types/src/generic/Block.spec.ts b/packages/types/src/generic/Block.spec.ts index 04649ed3b5..710f7de8ec 100644 --- a/packages/types/src/generic/Block.spec.ts +++ b/packages/types/src/generic/Block.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable sort-keys */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ diff --git a/packages/types/src/generic/Call.spec.ts b/packages/types/src/generic/Call.spec.ts index 052a5de0de..415a8593fc 100644 --- a/packages/types/src/generic/Call.spec.ts +++ b/packages/types/src/generic/Call.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import metadataStatic from '@polkadot/types-support/metadata/static-substrate'; diff --git a/packages/types/src/generic/ChainProperties.spec.ts b/packages/types/src/generic/ChainProperties.spec.ts index 2ab9450765..12b5f8d074 100644 --- a/packages/types/src/generic/ChainProperties.spec.ts +++ b/packages/types/src/generic/ChainProperties.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../create/index.js'; diff --git a/packages/types/src/generic/ConsensusEngineId.spec.ts b/packages/types/src/generic/ConsensusEngineId.spec.ts index 29c0d0040f..e12ba2115c 100644 --- a/packages/types/src/generic/ConsensusEngineId.spec.ts +++ b/packages/types/src/generic/ConsensusEngineId.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../create/index.js'; import { CID_AURA, GenericConsensusEngineId as ConsensusEngineId } from './ConsensusEngineId.js'; diff --git a/packages/types/src/generic/LookupSource.spec.ts b/packages/types/src/generic/LookupSource.spec.ts index 8aaca884df..44968f665c 100644 --- a/packages/types/src/generic/LookupSource.spec.ts +++ b/packages/types/src/generic/LookupSource.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../create/index.js'; import { GenericAccountId as AccountId, GenericAccountIndex as AccountIndex, GenericLookupSource as LookupSource } from './index.js'; diff --git a/packages/types/src/generic/MultiAddress.spec.ts b/packages/types/src/generic/MultiAddress.spec.ts index b638d07fb8..aae602c1e5 100644 --- a/packages/types/src/generic/MultiAddress.spec.ts +++ b/packages/types/src/generic/MultiAddress.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../create/index.js'; diff --git a/packages/types/src/generic/Vote.spec.ts b/packages/types/src/generic/Vote.spec.ts index 328496109d..5541ef6dff 100644 --- a/packages/types/src/generic/Vote.spec.ts +++ b/packages/types/src/generic/Vote.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../create/index.js'; import { GenericVote } from './index.js'; diff --git a/packages/types/src/interfaces/alias.spec.ts b/packages/types/src/interfaces/alias.spec.ts index 48d99dc28a..56df8b0834 100644 --- a/packages/types/src/interfaces/alias.spec.ts +++ b/packages/types/src/interfaces/alias.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types-known authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../create/registry.js'; import { getAliasTypes } from './alias.js'; diff --git a/packages/types/src/interfaces/author/ExtrinsicStatus.spec.ts b/packages/types/src/interfaces/author/ExtrinsicStatus.spec.ts index dd03e23361..d9e77e5010 100644 --- a/packages/types/src/interfaces/author/ExtrinsicStatus.spec.ts +++ b/packages/types/src/interfaces/author/ExtrinsicStatus.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable @typescript-eslint/no-unsafe-member-access */ diff --git a/packages/types/src/interfaces/extrinsics/EdcsaSignature.spec.ts b/packages/types/src/interfaces/extrinsics/EdcsaSignature.spec.ts index 75112ee782..cbf35d518e 100644 --- a/packages/types/src/interfaces/extrinsics/EdcsaSignature.spec.ts +++ b/packages/types/src/interfaces/extrinsics/EdcsaSignature.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { hexToU8a } from '@polkadot/util'; diff --git a/packages/types/src/interfaces/grandpa/ReportedRoundStates.spec.ts b/packages/types/src/interfaces/grandpa/ReportedRoundStates.spec.ts index ea6c8b65c2..33ad758f1c 100644 --- a/packages/types/src/interfaces/grandpa/ReportedRoundStates.spec.ts +++ b/packages/types/src/interfaces/grandpa/ReportedRoundStates.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable @typescript-eslint/no-unsafe-member-access */ diff --git a/packages/types/src/interfaces/identity/IdentityFields.spec.ts b/packages/types/src/interfaces/identity/IdentityFields.spec.ts index 0e88a0b48a..82934bee29 100644 --- a/packages/types/src/interfaces/identity/IdentityFields.spec.ts +++ b/packages/types/src/interfaces/identity/IdentityFields.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../../create/index.js'; diff --git a/packages/types/src/interfaces/identity/Registration.spec.ts b/packages/types/src/interfaces/identity/Registration.spec.ts index 1744042f4c..a94ab59ede 100644 --- a/packages/types/src/interfaces/identity/Registration.spec.ts +++ b/packages/types/src/interfaces/identity/Registration.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { createType, TypeRegistry } from '../../create/index.js'; diff --git a/packages/types/src/interfaces/offchain/definitions.spec.ts b/packages/types/src/interfaces/offchain/definitions.spec.ts index ed40a2b3ee..46db2e3a72 100644 --- a/packages/types/src/interfaces/offchain/definitions.spec.ts +++ b/packages/types/src/interfaces/offchain/definitions.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../../create/index.js'; diff --git a/packages/types/src/interfaces/parachains/SystemInherentData.spec.ts b/packages/types/src/interfaces/parachains/SystemInherentData.spec.ts index 61487a90c6..8c286c7909 100644 --- a/packages/types/src/interfaces/parachains/SystemInherentData.spec.ts +++ b/packages/types/src/interfaces/parachains/SystemInherentData.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../../create/index.js'; diff --git a/packages/types/src/interfaces/runtime/Digest.spec.ts b/packages/types/src/interfaces/runtime/Digest.spec.ts index 29f567965c..b7a1b05c94 100644 --- a/packages/types/src/interfaces/runtime/Digest.spec.ts +++ b/packages/types/src/interfaces/runtime/Digest.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable @typescript-eslint/no-unsafe-member-access */ diff --git a/packages/types/src/interfaces/runtime/Header.spec.ts b/packages/types/src/interfaces/runtime/Header.spec.ts index d09f50848a..32ae320c7f 100644 --- a/packages/types/src/interfaces/runtime/Header.spec.ts +++ b/packages/types/src/interfaces/runtime/Header.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable @typescript-eslint/no-unsafe-member-access */ diff --git a/packages/types/src/interfaces/runtime/KeyValue.spec.ts b/packages/types/src/interfaces/runtime/KeyValue.spec.ts index f2e6c66f54..bfc7f7ce47 100644 --- a/packages/types/src/interfaces/runtime/KeyValue.spec.ts +++ b/packages/types/src/interfaces/runtime/KeyValue.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../../create/index.js'; diff --git a/packages/types/src/interfaces/staking/CompactAssignments.spec.ts b/packages/types/src/interfaces/staking/CompactAssignments.spec.ts index 9b2d9ba2b9..4bb75d5b8b 100644 --- a/packages/types/src/interfaces/staking/CompactAssignments.spec.ts +++ b/packages/types/src/interfaces/staking/CompactAssignments.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../../create/index.js'; diff --git a/packages/types/src/interfaces/staking/Exposure.spec.ts b/packages/types/src/interfaces/staking/Exposure.spec.ts index 366e034ec7..2485edcb7c 100644 --- a/packages/types/src/interfaces/staking/Exposure.spec.ts +++ b/packages/types/src/interfaces/staking/Exposure.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../../create/index.js'; diff --git a/packages/types/src/interfaces/state/KeyValueOption.spec.ts b/packages/types/src/interfaces/state/KeyValueOption.spec.ts index 8fadfee6fa..a3017ba1bf 100644 --- a/packages/types/src/interfaces/state/KeyValueOption.spec.ts +++ b/packages/types/src/interfaces/state/KeyValueOption.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../../create/index.js'; diff --git a/packages/types/src/interfaces/state/RuntimeVersion.spec.ts b/packages/types/src/interfaces/state/RuntimeVersion.spec.ts index 61b68e5c63..0690697c40 100644 --- a/packages/types/src/interfaces/state/RuntimeVersion.spec.ts +++ b/packages/types/src/interfaces/state/RuntimeVersion.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable @typescript-eslint/no-unsafe-member-access */ diff --git a/packages/types/src/interfaces/state/StorageChangeSet.spec.ts b/packages/types/src/interfaces/state/StorageChangeSet.spec.ts index d1b90f9907..49a1392131 100644 --- a/packages/types/src/interfaces/state/StorageChangeSet.spec.ts +++ b/packages/types/src/interfaces/state/StorageChangeSet.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable @typescript-eslint/no-unsafe-member-access */ diff --git a/packages/types/src/interfaces/system/EventRecord.spec.ts b/packages/types/src/interfaces/system/EventRecord.spec.ts index 2328f835a1..01c5988964 100644 --- a/packages/types/src/interfaces/system/EventRecord.spec.ts +++ b/packages/types/src/interfaces/system/EventRecord.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ diff --git a/packages/types/src/metadata/MagicNumber.spec.ts b/packages/types/src/metadata/MagicNumber.spec.ts index 9dc047db8e..ea91b23efc 100644 --- a/packages/types/src/metadata/MagicNumber.spec.ts +++ b/packages/types/src/metadata/MagicNumber.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../create/index.js'; import { MAGIC_NUMBER, MagicNumber } from './MagicNumber.js'; diff --git a/packages/types/src/metadata/Metadata.spec.ts b/packages/types/src/metadata/Metadata.spec.ts index 37827bd099..41cfbb068a 100644 --- a/packages/types/src/metadata/Metadata.spec.ts +++ b/packages/types/src/metadata/Metadata.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { HexString } from '@polkadot/util/types'; diff --git a/packages/types/src/metadata/PortableRegistry/PortableRegistry.Range.spec.ts b/packages/types/src/metadata/PortableRegistry/PortableRegistry.Range.spec.ts index e2c5ca8820..baecf411e4 100644 --- a/packages/types/src/metadata/PortableRegistry/PortableRegistry.Range.spec.ts +++ b/packages/types/src/metadata/PortableRegistry/PortableRegistry.Range.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../../create/index.js'; import { PortableRegistry } from './index.js'; diff --git a/packages/types/src/metadata/decorate/constants/index.spec.ts b/packages/types/src/metadata/decorate/constants/index.spec.ts index a06e3e3a33..12d3b4a210 100644 --- a/packages/types/src/metadata/decorate/constants/index.spec.ts +++ b/packages/types/src/metadata/decorate/constants/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { HexString } from '@polkadot/util/types'; import type { BlockNumber } from '../../../interfaces/index.js'; diff --git a/packages/types/src/metadata/decorate/errors/index.spec.ts b/packages/types/src/metadata/decorate/errors/index.spec.ts index bad97cd6c4..2d403ebe80 100644 --- a/packages/types/src/metadata/decorate/errors/index.spec.ts +++ b/packages/types/src/metadata/decorate/errors/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import rpcMetadata from '@polkadot/types-support/metadata/static-substrate'; diff --git a/packages/types/src/metadata/decorate/events/index.spec.ts b/packages/types/src/metadata/decorate/events/index.spec.ts index 7ba8bbb96c..da56a23f11 100644 --- a/packages/types/src/metadata/decorate/events/index.spec.ts +++ b/packages/types/src/metadata/decorate/events/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import rpcMetadata from '@polkadot/types-support/metadata/static-substrate'; diff --git a/packages/types/src/metadata/decorate/extrinsics/index.spec.ts b/packages/types/src/metadata/decorate/extrinsics/index.spec.ts index 0bc0ee235b..2fc5e4a75d 100644 --- a/packages/types/src/metadata/decorate/extrinsics/index.spec.ts +++ b/packages/types/src/metadata/decorate/extrinsics/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { createTestPairs } from '@polkadot/keyring/testingPairs'; import metadataStatic from '@polkadot/types-support/metadata/v13/substrate-hex'; diff --git a/packages/types/src/metadata/decorate/index.spec.ts b/packages/types/src/metadata/decorate/index.spec.ts index 913cb6dacc..12c7a8d4e2 100644 --- a/packages/types/src/metadata/decorate/index.spec.ts +++ b/packages/types/src/metadata/decorate/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { u32 } from '@polkadot/types-codec'; import json from '@polkadot/types-support/metadata/static-substrate'; diff --git a/packages/types/src/metadata/decorate/storage/createFunction.spec.ts b/packages/types/src/metadata/decorate/storage/createFunction.spec.ts index e64d000d41..49b6eb95b3 100644 --- a/packages/types/src/metadata/decorate/storage/createFunction.spec.ts +++ b/packages/types/src/metadata/decorate/storage/createFunction.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { u8aToHex } from '@polkadot/util'; diff --git a/packages/types/src/metadata/decorate/storage/getHasher.spec.ts b/packages/types/src/metadata/decorate/storage/getHasher.spec.ts index f6638826bf..ba16b7fe2b 100644 --- a/packages/types/src/metadata/decorate/storage/getHasher.spec.ts +++ b/packages/types/src/metadata/decorate/storage/getHasher.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { stringToU8a } from '@polkadot/util'; import { xxhashAsU8a } from '@polkadot/util-crypto'; diff --git a/packages/types/src/metadata/decorate/storage/getStorage.spec.ts b/packages/types/src/metadata/decorate/storage/getStorage.spec.ts index c6f13164f9..de0232d04b 100644 --- a/packages/types/src/metadata/decorate/storage/getStorage.spec.ts +++ b/packages/types/src/metadata/decorate/storage/getStorage.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import metadataStatic from '@polkadot/types-support/metadata/static-substrate'; import { compactAddLength, u8aToU8a } from '@polkadot/util'; diff --git a/packages/types/src/metadata/decorate/storage/index.spec.ts b/packages/types/src/metadata/decorate/storage/index.spec.ts index f3f6e61213..f4dcd00e9c 100644 --- a/packages/types/src/metadata/decorate/storage/index.spec.ts +++ b/packages/types/src/metadata/decorate/storage/index.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { createTestPairs } from '@polkadot/keyring/testingPairs'; import rpcMetadata from '@polkadot/types-support/metadata/static-substrate'; diff --git a/packages/types/src/metadata/decorate/storage/substrate.spec.ts b/packages/types/src/metadata/decorate/storage/substrate.spec.ts index ab02ed6cc2..d7b40c6500 100644 --- a/packages/types/src/metadata/decorate/storage/substrate.spec.ts +++ b/packages/types/src/metadata/decorate/storage/substrate.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import metadataStatic from '@polkadot/types-support/metadata/static-substrate'; import { compactAddLength, u8aToU8a } from '@polkadot/util'; diff --git a/packages/types/src/metadata/util/flattenUniq.spec.ts b/packages/types/src/metadata/util/flattenUniq.spec.ts index 35550cce50..f9ee6ea8fa 100644 --- a/packages/types/src/metadata/util/flattenUniq.spec.ts +++ b/packages/types/src/metadata/util/flattenUniq.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { flattenUniq } from './index.js'; diff --git a/packages/types/src/metadata/util/testUtil.ts b/packages/types/src/metadata/util/testUtil.ts index 1131cafdc8..b89c70a56c 100644 --- a/packages/types/src/metadata/util/testUtil.ts +++ b/packages/types/src/metadata/util/testUtil.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import type { Registry } from '@polkadot/types-codec/types'; import type { Check } from './types.js'; diff --git a/packages/types/src/metadata/util/toCallsOnly.spec.ts b/packages/types/src/metadata/util/toCallsOnly.spec.ts index 10345ebdd7..94c38657e8 100644 --- a/packages/types/src/metadata/util/toCallsOnly.spec.ts +++ b/packages/types/src/metadata/util/toCallsOnly.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import staticLatest from '@polkadot/types-support/metadata/static-substrate'; import staticV13 from '@polkadot/types-support/metadata/v13/substrate-hex'; diff --git a/packages/types/src/primitive/Data.spec.ts b/packages/types/src/primitive/Data.spec.ts index b5a7e0beba..dde81d2120 100644 --- a/packages/types/src/primitive/Data.spec.ts +++ b/packages/types/src/primitive/Data.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import { TypeRegistry } from '../create/index.js'; import { Data } from './index.js'; diff --git a/packages/types/src/primitive/StorageKey.spec.ts b/packages/types/src/primitive/StorageKey.spec.ts index f53d96c5c3..2c6d49121b 100644 --- a/packages/types/src/primitive/StorageKey.spec.ts +++ b/packages/types/src/primitive/StorageKey.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -/// +/// import rpcDataV11 from '@polkadot/types-support/metadata/v11/substrate-hex'; diff --git a/tsconfig.base.json b/tsconfig.base.json index 16bceaa418..3cdcdc45a3 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -65,7 +65,7 @@ "@polkadot/types-known/packageInfo": ["types-known/src/packageInfo.ts"], "@polkadot/types-support": ["types-support/src/index.ts"], "@polkadot/types-support/json/*": ["types-support/src/json/*"], - "@polkadot/types-support/metadata/*": ["types-support/src/metadata/*"], + "@polkadot/types-support/metadata/*": ["types-support/src/metadata/*.ts"], "@polkadot/types-support/packageInfo": ["types-support/src/packageInfo.ts"] }, "skipLibCheck": true diff --git a/yarn.lock b/yarn.lock index 665e09db19..ace2f34bbc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -452,9 +452,9 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/dev@npm:^0.71.5": - version: 0.71.5 - resolution: "@polkadot/dev@npm:0.71.5" +"@polkadot/dev@npm:^0.71.6": + version: 0.71.6 + resolution: "@polkadot/dev@npm:0.71.6" dependencies: "@eslint/js": ^8.36.0 "@rollup/plugin-alias": ^4.0.3 @@ -519,7 +519,7 @@ __metadata: polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs - checksum: 07f199334c273173c010406fa50b9d584b378a16a4c096c6012e0a303707c786e6e0dca5642d5631a25243b2fbfd1bb2e88d2a84e7b000a3169e348e3b0e11c9 + checksum: 545b078faf62d5f5b0c8dc3b70c0da7dfe1c0d8f8545b8fa3c6c47cc8439c0e0053241590788a31d03e6379ea3f9d86733db5d31f0e647f1f40d6a731b6d9463 languageName: node linkType: hard @@ -7422,7 +7422,7 @@ fsevents@~2.3.2: version: 0.0.0-use.local resolution: "root-workspace-0b6124@workspace:." dependencies: - "@polkadot/dev": ^0.71.5 + "@polkadot/dev": ^0.71.6 "@polkadot/typegen": "workspace:packages/typegen" "@types/node": ^18.15.0 languageName: unknown