Cleanup & split createType (#1307)
* Cleanup & split createType * createType import * Reduce complexity somewhat * Simplify wrapper check * Revert "Simplify wrapper check" This reverts commit e072c7e05e30e68994152af0b5d7b624dc38bba1. * de-dup getTypeClass * Explicit extraction, cleanup getTypeDef * De-dup subType extraction * createType move
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
import { Constants, ConstantCodec, ModuleConstants } from '../types';
|
||||
|
||||
import { createTypeUnsafe } from '@polkadot/types/codec/createType';
|
||||
import { createTypeUnsafe } from '@polkadot/types/codec';
|
||||
import Metadata from '@polkadot/types/Metadata';
|
||||
import { stringCamelCase } from '@polkadot/util';
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { Codec } from '@polkadot/types/types';
|
||||
|
||||
import BN from 'bn.js';
|
||||
import { Bytes, Compact, StorageKey, U8a } from '@polkadot/types';
|
||||
import { createTypeUnsafe } from '@polkadot/types/codec/createType';
|
||||
import { createTypeUnsafe } from '@polkadot/types/codec';
|
||||
import { PlainType, StorageEntryMetadata, StorageEntryModifier, StorageEntryType } from '@polkadot/types/Metadata/v6/Storage';
|
||||
import { StorageEntry } from '@polkadot/types/primitive/StorageKey';
|
||||
import { assert, isNull, isUndefined, stringLowerFirst, stringToU8a, u8aConcat } from '@polkadot/util';
|
||||
|
||||
Reference in New Issue
Block a user