Bump dev (sort imports) (#2923)
* Bump dev (sort imports) * Resort * Adjust ApiInterfaceRx
This commit is contained in:
@@ -6,7 +6,8 @@ import type { AnyNumber, Codec, Registry } from '../types';
|
||||
import type { UIntBitLength } from './types';
|
||||
|
||||
import BN from 'bn.js';
|
||||
import { BN_ZERO, assert, bnToBn, bnToHex, bnToU8a, formatBalance, formatNumber, hexToBn, isHex, isString, isU8a, u8aToBn } from '@polkadot/util';
|
||||
|
||||
import { assert, BN_ZERO, bnToBn, bnToHex, bnToU8a, formatBalance, formatNumber, hexToBn, isHex, isString, isU8a, u8aToBn } from '@polkadot/util';
|
||||
|
||||
export const DEFAULT_UINT_BITS = 64;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Constructor, Codec, InterfaceTypes, Registry } from '../types';
|
||||
import type { Codec, Constructor, InterfaceTypes, Registry } from '../types';
|
||||
|
||||
import { CodecMap } from './Map';
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ import type { CodecTo } from '../types';
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { Text, U32 } from '../primitive';
|
||||
|
||||
import { BTreeSet, Struct } from '.';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { H256 } from '../interfaces/runtime';
|
||||
import type { AnyJson, Constructor, Codec, InterfaceTypes, Registry } from '../types';
|
||||
import type { AnyJson, Codec, Constructor, InterfaceTypes, Registry } from '../types';
|
||||
|
||||
import { isHex, hexToU8a, isU8a, logger, u8aConcat, u8aToHex, u8aToU8a, compactFromU8a, compactToU8a } from '@polkadot/util';
|
||||
import { compactFromU8a, compactToU8a, hexToU8a, isHex, isU8a, logger, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { compareSet, decodeU8a, typeToConstructor } from './utils';
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import type { AnyJson, AnyNumber, Constructor, ICompact, InterfaceTypes, Registr
|
||||
import type { CompactEncodable, UIntBitLength } from './types';
|
||||
|
||||
import BN from 'bn.js';
|
||||
|
||||
import { compactFromU8a, compactToU8a, isBigInt, isBn, isNumber, isString } from '@polkadot/util';
|
||||
|
||||
import { typeToConstructor } from './utils';
|
||||
|
||||
@@ -6,6 +6,7 @@ import type { AnyNumber, Codec, Registry } from '../types';
|
||||
import type { UIntBitLength } from './types';
|
||||
|
||||
import BN from 'bn.js';
|
||||
|
||||
import { bnToBn, bnToHex, bnToU8a, isString, isU8a, u8aToBn } from '@polkadot/util';
|
||||
|
||||
const BITLENGTH: UIntBitLength = 64;
|
||||
|
||||
@@ -7,8 +7,8 @@ import type { AnyJson, Codec, Constructor, InterfaceTypes, Registry } from '../t
|
||||
import { assert, hexToU8a, isHex, isNumber, isObject, isString, isU8a, isUndefined, stringCamelCase, stringUpperFirst, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { Null } from '../primitive/Null';
|
||||
import { mapToTypeMap } from './utils';
|
||||
import { Struct } from './Struct';
|
||||
import { mapToTypeMap } from './utils';
|
||||
|
||||
// export interface, this is used in Enum.with, so required as public by TS
|
||||
export interface EnumConstructor<T = Codec> {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Constructor, Codec, InterfaceTypes, Registry } from '../types';
|
||||
import type { Codec, Constructor, InterfaceTypes, Registry } from '../types';
|
||||
|
||||
import { CodecMap } from './Map';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Constructor, Codec, InterfaceTypes, Registry } from '../types';
|
||||
import type { Codec, Constructor, InterfaceTypes, Registry } from '../types';
|
||||
|
||||
import { Option } from './Option';
|
||||
import { Struct } from './Struct';
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { H256 } from '../interfaces/runtime';
|
||||
import type { AnyJson, Constructor, Codec, InterfaceTypes, Registry } from '../types';
|
||||
import type { AnyJson, Codec, Constructor, InterfaceTypes, Registry } from '../types';
|
||||
|
||||
import { isHex, hexToU8a, isObject, isU8a, logger, u8aConcat, u8aToHex, u8aToU8a, compactFromU8a, compactToU8a } from '@polkadot/util';
|
||||
import { compactFromU8a, compactToU8a, hexToU8a, isHex, isObject, isU8a, logger, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { compareMap, decodeU8a, typeToConstructor } from './utils';
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
import { hexToString } from '@polkadot/util';
|
||||
|
||||
import { u32, Text } from '../primitive';
|
||||
import { TypeRegistry } from '../create';
|
||||
import { Text, u32 } from '../primitive';
|
||||
import { Result } from '.';
|
||||
|
||||
describe('Result', (): void => {
|
||||
|
||||
@@ -5,7 +5,8 @@ import type { H256 } from '../interfaces/runtime';
|
||||
import type { Codec, Constructor, Registry } from '../types';
|
||||
|
||||
import BN from 'bn.js';
|
||||
import { assert, bnToBn, bnToU8a, isBn, isU8a, isNumber, isString, isUndefined, stringCamelCase, stringUpperFirst, u8aToHex, u8aToBn, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { assert, bnToBn, bnToU8a, isBn, isNumber, isString, isU8a, isUndefined, stringCamelCase, stringUpperFirst, u8aToBn, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { compareArray } from './utils';
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { AnyNumber, AnyU8a, AnyString, Codec, Constructor, InterfaceTypes, Registry } from '../types';
|
||||
import type { AnyNumber, AnyString, AnyU8a, Codec, Constructor, InterfaceTypes, Registry } from '../types';
|
||||
|
||||
import { isU8a, isHex, hexToU8a, u8aConcat } from '@polkadot/util';
|
||||
import { hexToU8a, isHex, isU8a, u8aConcat } from '@polkadot/util';
|
||||
|
||||
import { decodeU8a, mapToTypeMap, typeToConstructor } from './utils';
|
||||
import { AbstractArray } from './AbstractArray';
|
||||
import { decodeU8a, mapToTypeMap, typeToConstructor } from './utils';
|
||||
|
||||
type AnyTuple = AnyU8a | string | (Codec | AnyU8a | AnyNumber | AnyString | undefined | null)[];
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ import type { Codec, Constructor, InterfaceTypes, Registry } from '../types';
|
||||
|
||||
import { assert, compactFromU8a, logger, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { decodeU8a, typeToConstructor } from './utils';
|
||||
import { AbstractArray } from './AbstractArray';
|
||||
import { decodeU8a, typeToConstructor } from './utils';
|
||||
|
||||
const MAX_LENGTH = 64 * 1024;
|
||||
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
import type { Codec, Constructor, InterfaceTypes, Registry } from '../types';
|
||||
|
||||
import { assert, isU8a, u8aConcat, compactToU8a } from '@polkadot/util';
|
||||
import { assert, compactToU8a, isU8a, u8aConcat } from '@polkadot/util';
|
||||
|
||||
import { AbstractArray } from './AbstractArray';
|
||||
import { Vec } from './Vec';
|
||||
import { typeToConstructor } from './utils';
|
||||
import { Vec } from './Vec';
|
||||
|
||||
/**
|
||||
* @name VecFixed
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Codec } from '../../types';
|
||||
|
||||
import { TypeRegistry } from '../../create';
|
||||
import { U32 } from '../../primitive';
|
||||
import { compareMap } from '.';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { UIntBitLength, U8aBitLength } from '../codec/types';
|
||||
import type { U8aBitLength, UIntBitLength } from '../codec/types';
|
||||
import type { Codec, Constructor, InterfaceTypes, Registry } from '../types';
|
||||
import type { FromReg, TypeDef } from './types';
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { TypeDefInfo } from './types';
|
||||
|
||||
import { encodeTypeDef } from './encodeTypes';
|
||||
import { TypeDefInfo } from './types';
|
||||
|
||||
describe('encodeTypeDef', (): void => {
|
||||
it('correctly encodes a complex struct', (): void => {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { TypeDefInfo } from './types';
|
||||
import { TypeRegistry, getTypeDef } from '.';
|
||||
import { getTypeDef, TypeRegistry } from '.';
|
||||
|
||||
describe('getTypeDef', (): void => {
|
||||
it('maps empty tuples to empty tuple', (): void => {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
|
||||
import type { ChainProperties, DispatchErrorModule, H256 } from '../interfaces/types';
|
||||
import type { CallFunction, Codec, Constructor, InterfaceTypes, RegistryError, RegistryTypes, Registry, RegistryMetadata, RegisteredTypes } from '../types';
|
||||
import type { CallFunction, Codec, Constructor, InterfaceTypes, RegisteredTypes, Registry, RegistryError, RegistryMetadata, RegistryTypes } from '../types';
|
||||
|
||||
import { Metadata, extrinsicsFromMeta } from '@polkadot/metadata';
|
||||
import { BN_ZERO, assert, assertReturn, formatBalance, isFunction, isString, isU8a, logger, stringCamelCase, u8aToHex } from '@polkadot/util';
|
||||
import { extrinsicsFromMeta, Metadata } from '@polkadot/metadata';
|
||||
import { assert, assertReturn, BN_ZERO, formatBalance, isFunction, isString, isU8a, logger, stringCamelCase, u8aToHex } from '@polkadot/util';
|
||||
import { blake2AsU8a } from '@polkadot/util-crypto';
|
||||
|
||||
import { Json, Raw } from '../codec';
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { Raw } from '../codec/Raw';
|
||||
import { TypeRegistry } from '../create';
|
||||
import { GenericEthereumAccountId as AccountId } from './AccountId';
|
||||
|
||||
describe('EthereumAccountId', (): void => {
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
import type { Registry } from '../types';
|
||||
|
||||
import BN from 'bn.js';
|
||||
import { isBigInt, isBn, isHex, isNumber, isU8a, u8aConcat, u8aToHex, u8aToU8a, u8aToBn } from '@polkadot/util';
|
||||
|
||||
import { isBigInt, isBn, isHex, isNumber, isU8a, u8aConcat, u8aToBn, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
import { decodeAddress } from '@polkadot/util-crypto';
|
||||
|
||||
import { Base } from '../codec/Base';
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { FunctionMetadataLatest } from '../interfaces/metadata/types';
|
||||
import type { EcdsaSignature, Ed25519Signature, ExtrinsicUnknown, ExtrinsicV4, Sr25519Signature } from '../interfaces/extrinsics';
|
||||
import type { FunctionMetadataLatest } from '../interfaces/metadata/types';
|
||||
import type { Address, Balance, Call, Index } from '../interfaces/runtime';
|
||||
import type { AnyJson, AnyU8a, ArgsDef, Codec, ExtrinsicPayloadValue, IExtrinsic, IKeyringPair, InterfaceTypes, Registry, SignatureOptions } from '../types';
|
||||
import type { GenericExtrinsicEra } from './ExtrinsicEra';
|
||||
import type { ExtrinsicValueV4 } from './v4/Extrinsic';
|
||||
|
||||
import { assert, compactAddLength, compactFromU8a, isHex, isU8a, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { Base } from '../codec/Base';
|
||||
import { Compact } from '../codec/Compact';
|
||||
import { ExtrinsicValueV4 } from './v4/Extrinsic';
|
||||
import { GenericExtrinsicEra } from './ExtrinsicEra';
|
||||
import { BIT_SIGNED, BIT_UNSIGNED, DEFAULT_VERSION, UNMASK_VERSION } from './constants';
|
||||
|
||||
interface CreateOptions {
|
||||
|
||||
@@ -4,11 +4,12 @@
|
||||
import type { AnyU8a, IExtrinsicEra, Registry } from '../types';
|
||||
|
||||
import BN from 'bn.js';
|
||||
import { assert, bnToBn, formatNumber, hexToU8a, isHex, isU8a, isObject, u8aToBn, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { assert, bnToBn, formatNumber, hexToU8a, isHex, isObject, isU8a, u8aToBn, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { Enum } from '../codec/Enum';
|
||||
import { Tuple } from '../codec/Tuple';
|
||||
import { Raw } from '../codec/Raw';
|
||||
import { Tuple } from '../codec/Tuple';
|
||||
import { u64 as U64 } from '../primitive/U64';
|
||||
import { IMMORTAL_ERA } from './constants';
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ import { Base } from '../codec/Base';
|
||||
import { Compact } from '../codec/Compact';
|
||||
import { Raw } from '../codec/Raw';
|
||||
import { u32 } from '../primitive/U32';
|
||||
import { GenericExtrinsicEra } from './ExtrinsicEra';
|
||||
import { DEFAULT_VERSION } from './constants';
|
||||
import { GenericExtrinsicEra } from './ExtrinsicEra';
|
||||
|
||||
interface ExtrinsicPayloadOptions {
|
||||
version?: number;
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import BN from 'bn.js';
|
||||
|
||||
import { createTestPairs } from '@polkadot/keyring/testingPairs';
|
||||
import { Metadata, extrinsicsFromMeta } from '@polkadot/metadata';
|
||||
import { extrinsicsFromMeta, Metadata } from '@polkadot/metadata';
|
||||
import rpcMetadata from '@polkadot/metadata/static';
|
||||
|
||||
import { TypeRegistry } from '../../create';
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { Raw } from '../codec/Raw';
|
||||
import { TypeRegistry } from '../create';
|
||||
import jsonVec from '../json/AccountIdVec.001.json';
|
||||
import { GenericAccountId as AccountId } from '.';
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { AnyString, AnyU8a, Registry } from '../types';
|
||||
|
||||
import { hexToU8a, isHex, isString, isU8a, u8aToU8a, assert } from '@polkadot/util';
|
||||
import { assert, hexToU8a, isHex, isString, isU8a, u8aToU8a } from '@polkadot/util';
|
||||
import { decodeAddress, encodeAddress } from '@polkadot/util-crypto';
|
||||
|
||||
import { U8aFixed } from '../codec/U8aFixed';
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
import type { AnyNumber, Registry } from '../types';
|
||||
|
||||
import BN from 'bn.js';
|
||||
import { bnToBn, isBn, isBigInt, isNumber, isU8a, isHex } from '@polkadot/util';
|
||||
|
||||
import { bnToBn, isBigInt, isBn, isHex, isNumber, isU8a } from '@polkadot/util';
|
||||
import { decodeAddress, encodeAddress } from '@polkadot/util-crypto';
|
||||
|
||||
import { u32 } from '../primitive/U32';
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Vec } from '../codec/Vec';
|
||||
import type { GenericExtrinsic } from '../extrinsic/Extrinsic';
|
||||
import type { Digest, DigestItem, H256, Header } from '../interfaces/runtime';
|
||||
import type { AnyNumber, AnyU8a, Registry } from '../types';
|
||||
|
||||
import { GenericExtrinsic } from '../extrinsic/Extrinsic';
|
||||
import { Struct } from '../codec/Struct';
|
||||
import { Vec } from '../codec/Vec';
|
||||
|
||||
export interface HeaderValue {
|
||||
digest?: Digest | { logs: DigestItem[] };
|
||||
|
||||
@@ -6,9 +6,9 @@ import type { AnyJson, AnyU8a, ArgsDef, CallFunction, Codec, IMethod, Registry }
|
||||
|
||||
import { isHex, isObject, isU8a, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { getTypeDef, getTypeClass } from '../create';
|
||||
import { Struct } from '../codec/Struct';
|
||||
import { U8aFixed } from '../codec/U8aFixed';
|
||||
import { getTypeClass, getTypeDef } from '../create';
|
||||
|
||||
interface DecodeMethodInput {
|
||||
args: unknown;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { GenericConsensusEngineId as ConsensusEngineId, CID_AURA, CID_BABE, CID_GRPA } from './ConsensusEngineId';
|
||||
import { CID_AURA, CID_BABE, CID_GRPA, GenericConsensusEngineId as ConsensusEngineId } from './ConsensusEngineId';
|
||||
|
||||
describe('ConsensusEngineId', (): void => {
|
||||
it('creates a valid id for aura', (): void => {
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { AccountId } from '../interfaces/runtime';
|
||||
import type { AccountId } from '../interfaces/runtime';
|
||||
|
||||
import BN from 'bn.js';
|
||||
|
||||
import { bnToBn } from '@polkadot/util';
|
||||
|
||||
import { Bytes } from '../primitive/Bytes';
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
import type { Registry } from '../types';
|
||||
|
||||
import BN from 'bn.js';
|
||||
import { isBigInt, isBn, isHex, isNumber, isU8a, u8aConcat, u8aToHex, u8aToU8a, u8aToBn } from '@polkadot/util';
|
||||
|
||||
import { isBigInt, isBn, isHex, isNumber, isU8a, u8aConcat, u8aToBn, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
import { decodeAddress } from '@polkadot/util-crypto';
|
||||
|
||||
import { Base } from '../codec/Base';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { AnyJson, ArrayElementType, Registry } from '../types';
|
||||
import type { AllConvictions } from '../interfaces/democracy/definitions';
|
||||
import type { Conviction } from '../interfaces/democracy';
|
||||
import type { AllConvictions } from '../interfaces/democracy/definitions';
|
||||
import type { AnyJson, ArrayElementType, Registry } from '../types';
|
||||
|
||||
import { isBoolean, isNumber, isU8a, isUndefined } from '@polkadot/util';
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ import type { Codec } from './types';
|
||||
import { Metadata } from '@polkadot/metadata';
|
||||
import metadataStatic from '@polkadot/metadata/static';
|
||||
|
||||
import * as definitions from './interfaces/definitions';
|
||||
import { createTypeUnsafe, TypeRegistry } from './create';
|
||||
import * as exported from './index.types';
|
||||
import * as definitions from './interfaces/definitions';
|
||||
|
||||
// NOTE This is not a shortcut to implementing types incorrectly. This is here
|
||||
// specifically for the types that _should_ throw in the constrtuctor, i.e
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
|
||||
import { ExtrinsicStatus } from './types';
|
||||
import type { ExtrinsicStatus } from './types';
|
||||
|
||||
import { TypeRegistry } from '../../create';
|
||||
import rpc from '../../json/ExtrinsicStatus.001.json';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { TypeRegistry, createType } from '../../create';
|
||||
import { createType, TypeRegistry } from '../../create';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { TypeRegistry, createTypeUnsafe } from '../../create';
|
||||
import { createTypeUnsafe, TypeRegistry } from '../../create';
|
||||
|
||||
const ACTUAL = '0x' +
|
||||
// Vec<ValidatorIndex>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
import type { CodecTo } from '../types';
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { Raw } from '../codec/Raw';
|
||||
import { TypeRegistry } from '../create';
|
||||
import { Text } from '.';
|
||||
|
||||
describe('Text', (): void => {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import type { H256 } from '../interfaces/runtime';
|
||||
import type { AnyU8a, Codec, Registry } from '../types';
|
||||
|
||||
import { assert, hexToU8a, isHex, isString, stringToU8a, u8aToString, u8aToHex, compactFromU8a, compactAddLength } from '@polkadot/util';
|
||||
import { assert, compactAddLength, compactFromU8a, hexToU8a, isHex, isString, stringToU8a, u8aToHex, u8aToString } from '@polkadot/util';
|
||||
|
||||
import { Raw } from '../codec/Raw';
|
||||
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { H256 } from '../interfaces/runtime';
|
||||
import { AnyJson, BareOpts } from './helpers';
|
||||
import { Registry } from './registry';
|
||||
|
||||
import BN from 'bn.js';
|
||||
import type BN from 'bn.js';
|
||||
import type { H256 } from '../interfaces/runtime';
|
||||
import type { AnyJson, BareOpts } from './helpers';
|
||||
import type { Registry } from './registry';
|
||||
|
||||
export type CodecTo = 'toHex' | 'toJSON' | 'toString' | 'toU8a';
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { Codec } from './codec';
|
||||
|
||||
import BN from 'bn.js';
|
||||
import type BN from 'bn.js';
|
||||
import type { Codec } from './codec';
|
||||
|
||||
export type AnyFunction = (...args: any[]) => any;
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type BN from 'bn.js';
|
||||
import { SignOptions } from '@polkadot/keyring/types';
|
||||
import type { SignOptions } from '@polkadot/keyring/types';
|
||||
|
||||
import { Hash } from '../interfaces/runtime';
|
||||
import { FunctionMetadataLatest } from '../interfaces/metadata';
|
||||
import { Hash } from '../interfaces/runtime';
|
||||
import { ArgsDef, Codec } from './codec';
|
||||
|
||||
export interface ICompact<T> extends Codec {
|
||||
|
||||
Reference in New Issue
Block a user