Bump dev (w/ Node 16+ only) (#5603)

This commit is contained in:
Jaco
2023-04-21 13:47:31 +03:00
committed by GitHub
parent abdc50f405
commit 9c758cce95
55 changed files with 298 additions and 275 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues",
"description": "Implementation of the Parity codec",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"license": "Apache-2.0",
+3 -1
View File
@@ -3,7 +3,9 @@
/// <reference types="@polkadot/dev-test/globals.d.ts" />
import { CodecSet, Int } from '@polkadot/types-codec';
import type { CodecSet } from '@polkadot/types-codec';
import { Int } from '@polkadot/types-codec';
import { createClass, TypeRegistry } from './index.js';
@@ -5,10 +5,11 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
import type { GenericEthereumAccountId as AccountId } from './AccountId.js';
import { Raw } from '@polkadot/types-codec';
import { TypeRegistry } from '../create/index.js';
import { GenericEthereumAccountId as AccountId } from './AccountId.js';
describe('EthereumAccountId', (): void => {
const registry = new TypeRegistry();
@@ -3,9 +3,10 @@
/// <reference types="@polkadot/dev-test/globals.d.ts" />
import type { GenericAccountIndex as AccountIndex } from '../generic/index.js';
import type { GenericEthereumAccountId as AccountId, GenericEthereumLookupSource as Address } from './index.js';
import { TypeRegistry } from '../create/index.js';
import { GenericAccountIndex as AccountIndex } from '../generic/index.js';
import { GenericEthereumAccountId as AccountId, GenericEthereumLookupSource as Address } from './index.js';
describe('EthereumLookupSource', (): void => {
const registry = new TypeRegistry();
@@ -1,17 +1,18 @@
// Copyright 2017-2023 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Bytes } from '@polkadot/types-codec';
import type { AnyJson, BareOpts, Registry } from '@polkadot/types-codec/types';
import type { HexString } from '@polkadot/util/types';
import type { BlockHash } from '../interfaces/chain/index.js';
import type { ExtrinsicPayloadV4 } from '../interfaces/extrinsics/index.js';
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber } from '../types/index.js';
import type { GenericExtrinsicEra } from './ExtrinsicEra.js';
import { AbstractBase, Bytes } from '@polkadot/types-codec';
import { AbstractBase } from '@polkadot/types-codec';
import { u8aToHex } from '@polkadot/util';
import { DEFAULT_VERSION } from './constants.js';
import { GenericExtrinsicEra } from './ExtrinsicEra.js';
interface ExtrinsicPayloadOptions {
version?: number;
@@ -1,12 +1,13 @@
// Copyright 2017-2023 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Text, Vec } from '@polkadot/types-codec';
import type { Registry } from '@polkadot/types-codec/types';
import type { HexString } from '@polkadot/util/types';
import type { Address, BlockHash, Call, ExtrinsicEra, Hash } from '../interfaces/index.js';
import type { Codec, ICompact, INumber, IRuntimeVersion, ISignerPayload, SignerPayloadJSON, SignerPayloadRaw } from '../types/index.js';
import { Option, Struct, Text, Vec } from '@polkadot/types-codec';
import { Option, Struct } from '@polkadot/types-codec';
import { objectProperty, objectSpread, u8aToHex } from '@polkadot/util';
export interface SignerPayloadType extends Codec {
@@ -2,13 +2,14 @@
// SPDX-License-Identifier: Apache-2.0
import type { SignOptions } from '@polkadot/keyring/types';
import type { Bytes } from '@polkadot/types-codec';
import type { Inspect, Registry } from '@polkadot/types-codec/types';
import type { HexString } from '@polkadot/util/types';
import type { BlockHash } from '../../interfaces/chain/index.js';
import type { ExtrinsicEra } from '../../interfaces/extrinsics/index.js';
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../../types/index.js';
import { Bytes, Enum, Struct } from '@polkadot/types-codec';
import { Enum, Struct } from '@polkadot/types-codec';
import { objectSpread } from '@polkadot/util';
import { sign } from '../util.js';
@@ -1,10 +1,11 @@
// Copyright 2017-2023 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Option, Text, u32, Vec } from '@polkadot/types-codec';
import type { Registry } from '@polkadot/types-codec/types';
import type { Codec } from '../types/index.js';
import { Json, Option, Text, u32, Vec } from '@polkadot/types-codec';
import { Json } from '@polkadot/types-codec';
import { isFunction, isNull, isUndefined } from '@polkadot/util';
function createValue (registry: Registry, type: string, value: unknown, asArray = true): Option<Codec> {
@@ -1,10 +1,11 @@
// Copyright 2017-2023 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Bytes, u32 } from '@polkadot/types-codec';
import type { AnyU8a, Registry } from '@polkadot/types-codec/types';
import type { AccountId, RawAuraPreDigest, RawBabePreDigestCompat } from '../interfaces/index.js';
import { Bytes, U8aFixed, u32 } from '@polkadot/types-codec';
import { U8aFixed } from '@polkadot/types-codec';
import { BN, bnToU8a, isNumber, stringToU8a, u8aToHex, u8aToString } from '@polkadot/util';
export const CID_AURA = /*#__PURE__*/ stringToU8a('aura');
@@ -3,8 +3,9 @@
/// <reference types="@polkadot/dev-test/globals.d.ts" />
import type { GenericAccountId as AccountId, GenericAccountIndex as AccountIndex, GenericLookupSource as LookupSource } from './index.js';
import { TypeRegistry } from '../create/index.js';
import { GenericAccountId as AccountId, GenericAccountIndex as AccountIndex, GenericLookupSource as LookupSource } from './index.js';
describe('LookupSource', (): void => {
const registry = new TypeRegistry();
@@ -1,13 +1,13 @@
// Copyright 2017-2023 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Option, Text, Type, Vec } from '@polkadot/types-codec';
import type { Option, Text, Type, u32, Vec } from '@polkadot/types-codec';
import type { AnyString, LookupString, Registry } from '@polkadot/types-codec/types';
import type { ILookup, TypeDef } from '@polkadot/types-create/types';
import type { PortableType } from '../../interfaces/metadata/index.js';
import type { SiField, SiLookupTypeId, SiType, SiTypeDefArray, SiTypeDefBitSequence, SiTypeDefCompact, SiTypeDefComposite, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiTypeParameter, SiVariant } from '../../interfaces/scaleInfo/index.js';
import { sanitize, Struct, u32 } from '@polkadot/types-codec';
import { sanitize, Struct } from '@polkadot/types-codec';
import { getTypeDef, TypeDefInfo, withTypeString } from '@polkadot/types-create';
import { assertUnreachable, isNumber, isString, logger, objectSpread, stringCamelCase, stringify, stringPascalCase } from '@polkadot/util';
@@ -3,6 +3,7 @@
import type { ICompact, Inspect, INumber } from '@polkadot/types-codec/types';
import type { StorageEntryMetadataLatest, StorageHasher } from '../../../interfaces/metadata/index.js';
import type { StorageKey } from '../../../primitive/index.js';
import type { StorageEntry, StorageEntryIterator } from '../../../primitive/types.js';
import type { Registry } from '../../../types/index.js';
@@ -10,7 +11,6 @@ import { Raw } from '@polkadot/types-codec';
import { compactAddLength, compactStripLength, isUndefined, objectSpread, stringCamelCase, u8aConcat, u8aToU8a } from '@polkadot/util';
import { xxhashAsU8a } from '@polkadot/util-crypto';
import { StorageKey } from '../../../primitive/index.js';
import { getSiName } from '../../util/index.js';
import { getHasher } from './getHasher.js';
@@ -1,10 +1,10 @@
// Copyright 2017-2023 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Option, Text, u8 } from '@polkadot/types-codec';
import type { AnyJson, Registry } from '@polkadot/types-codec/types';
import type { MetadataLatest, PalletCallMetadataLatest } from '../../interfaces/metadata/index.js';
import { Option, Text, u8 } from '@polkadot/types-codec';
import { objectSpread } from '@polkadot/util';
interface ModuleMetadataTrimmed {
+2 -1
View File
@@ -1,10 +1,11 @@
// Copyright 2017-2023 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Bytes } from '@polkadot/types-codec';
import type { IU8a, Registry } from '@polkadot/types-codec/types';
import type { H256 } from '../interfaces/runtime/index.js';
import { Bytes, Enum } from '@polkadot/types-codec';
import { Enum } from '@polkadot/types-codec';
import { isString, isU8a, u8aToU8a } from '@polkadot/util';
/** @internal */