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,14 +4,14 @@
|
||||
|
||||
// Simple non-runnable checks to test type definitions in the editor itself
|
||||
|
||||
import { ConstantCodec } from '@polkadot/api-metadata/consts/types';
|
||||
import { Balance, Header, Index } from '@polkadot/types/interfaces';
|
||||
import { IExtrinsic, IMethod } from '@polkadot/types/types';
|
||||
|
||||
import { ApiPromise } from '@polkadot/api';
|
||||
import { HeaderExtended } from '@polkadot/api-derive';
|
||||
import { ConstantCodec } from '@polkadot/api-metadata/consts/types';
|
||||
import testKeyring, { TestKeyringMap } from '@polkadot/keyring/testingPairs';
|
||||
import { IExtrinsic, IMethod } from '@polkadot/types/types';
|
||||
import createType, { createTypeUnsafe } from '@polkadot/types/codec/createType';
|
||||
import { createType, createTypeUnsafe } from '@polkadot/types/codec';
|
||||
|
||||
import { SubmittableResult } from './';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user