Swap to Metadata <-> registry path imports (#2934)
* Swap to Metadata <-> registry path imports * Call circulars
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
|
||||
import type { TypeDef } from '@polkadot/types/types';
|
||||
|
||||
import { getTypeDef } from '@polkadot/types/create';
|
||||
// we are attempting to avoid circular refs, hence the path import
|
||||
import { getTypeDef } from '@polkadot/types/create/getTypeDef';
|
||||
import { TypeDefInfo } from '@polkadot/types/types';
|
||||
|
||||
type Extracted = string | Extracted[];
|
||||
|
||||
@@ -6,14 +6,17 @@
|
||||
import type { ChainProperties, DispatchErrorModule, H256 } from '../interfaces/types';
|
||||
import type { CallFunction, Codec, Constructor, InterfaceTypes, RegisteredTypes, Registry, RegistryError, RegistryMetadata, RegistryTypes } from '../types';
|
||||
|
||||
import { extrinsicsFromMeta, Metadata } from '@polkadot/metadata';
|
||||
// we are attempting to avoid circular refs, hence the Metadata path import
|
||||
import { extrinsicsFromMeta } from '@polkadot/metadata/decorate/extrinsics/fromMetadata';
|
||||
import { Metadata } from '@polkadot/metadata/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';
|
||||
import { Json } from '../codec/Json';
|
||||
import { Raw } from '../codec/Raw';
|
||||
import { defaultExtensions, expandExtensionTypes, findUnknownExtensions } from '../extrinsic/signedExtensions';
|
||||
import { GenericEventData } from '../generic';
|
||||
import { DoNotConstruct } from '../primitive';
|
||||
import { GenericEventData } from '../generic/Event';
|
||||
import { DoNotConstruct } from '../primitive/DoNotConstruct';
|
||||
import { createClass, getTypeClass } from './createClass';
|
||||
import { createType } from './createType';
|
||||
import { getTypeDef } from './getTypeDef';
|
||||
|
||||
@@ -8,7 +8,8 @@ import { isHex, isObject, isU8a, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { Struct } from '../codec/Struct';
|
||||
import { U8aFixed } from '../codec/U8aFixed';
|
||||
import { getTypeClass, getTypeDef } from '../create';
|
||||
import { getTypeClass } from '../create/createClass';
|
||||
import { getTypeDef } from '../create/getTypeDef';
|
||||
|
||||
interface DecodeMethodInput {
|
||||
args: unknown;
|
||||
|
||||
Reference in New Issue
Block a user