Rename Base -> AbstractBase (#4943)
This commit is contained in:
@@ -8,7 +8,7 @@ import type { AnyJson, BareOpts, Codec, Inspect, IU8a, Registry } from '../types
|
||||
* @name Base
|
||||
* @description A type extends the Base class, when it holds a value
|
||||
*/
|
||||
export abstract class Base<T extends Codec> implements Codec {
|
||||
export abstract class AbstractBase<T extends Codec> implements Codec {
|
||||
public createdAtHash?: IU8a;
|
||||
|
||||
public readonly initialU8aLength?: number;
|
||||
@@ -1,5 +1,6 @@
|
||||
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { AbstractArray } from './AbstractArray';
|
||||
export { AbstractInt } from './AbstractInt';
|
||||
export { AbstractArray } from './Array';
|
||||
export { AbstractBase } from './Base';
|
||||
export { AbstractInt } from './Int';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { AnyNumber, CodecClass, Registry, UIntBitLength } from '../types';
|
||||
|
||||
import { AbstractInt } from '../abstract/AbstractInt';
|
||||
import { AbstractInt } from '../abstract/Int';
|
||||
|
||||
/**
|
||||
* @name Int
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { AnyTupleValue, Codec, CodecClass, Inspect, ITuple, Registry } from
|
||||
|
||||
import { isFunction, isHex, isString, isU8a, stringify, u8aConcatStrict, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { AbstractArray } from '../abstract/AbstractArray';
|
||||
import { AbstractArray } from '../abstract/Array';
|
||||
import { decodeU8a, mapToTypeMap, typeToConstructor } from '../utils';
|
||||
|
||||
type TupleType = (CodecClass | string);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { AnyNumber, CodecClass, Registry, UIntBitLength } from '../types';
|
||||
|
||||
import { AbstractInt } from '../abstract/AbstractInt';
|
||||
import { AbstractInt } from '../abstract/Int';
|
||||
|
||||
/**
|
||||
* @name UInt
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { Codec, CodecClass, Registry } from '../types';
|
||||
|
||||
import { assert, compactFromU8aLim, isU8a, logger, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { AbstractArray } from '../abstract/AbstractArray';
|
||||
import { AbstractArray } from '../abstract/Array';
|
||||
import { decodeU8aVec, typeToConstructor } from '../utils';
|
||||
|
||||
const MAX_LENGTH = 64 * 1024;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { Codec } from '../types';
|
||||
|
||||
import { AbstractArray } from '../abstract/AbstractArray';
|
||||
import { AbstractArray } from '../abstract/Array';
|
||||
|
||||
/**
|
||||
* @name VecAny
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { Codec, CodecClass, Inspect, Registry } from '../types';
|
||||
|
||||
import { isU8a, u8aConcatStrict } from '@polkadot/util';
|
||||
|
||||
import { AbstractArray } from '../abstract/AbstractArray';
|
||||
import { AbstractArray } from '../abstract/Array';
|
||||
import { decodeU8aVec, typeToConstructor } from '../utils';
|
||||
import { decodeVec } from './Vec';
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { Base } from './Base';
|
||||
export { Compact } from './Compact';
|
||||
export { DoNotConstruct } from './DoNotConstruct';
|
||||
export { Enum } from './Enum';
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { AnyJson, Codec, CodecClass, IMap, Inspect, IU8a, Registry } from '
|
||||
|
||||
import { compactFromU8aLim, compactToU8a, isHex, isObject, isU8a, logger, stringify, u8aConcatStrict, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { AbstractArray } from '../abstract/AbstractArray';
|
||||
import { AbstractArray } from '../abstract/Array';
|
||||
import { Enum } from '../base/Enum';
|
||||
import { Struct } from '../native/Struct';
|
||||
import { compareMap, decodeU8a, sortMap, typeToConstructor } from '../utils';
|
||||
|
||||
Reference in New Issue
Block a user