Adjust create imports (#2834)
* Adjust create imports * Restore create root exports * Adjust unsafe creation
This commit is contained in:
@@ -17,8 +17,9 @@ import { memo } from '@polkadot/api-derive/util';
|
||||
import { Metadata, expandMetadata } from '@polkadot/metadata';
|
||||
import { RpcCore } from '@polkadot/rpc-core';
|
||||
import { WsProvider } from '@polkadot/rpc-provider';
|
||||
import { Option, Raw, StorageKey, Text, TypeRegistry, u64 } from '@polkadot/types';
|
||||
import { Option, Raw, StorageKey, Text, u64 } from '@polkadot/types';
|
||||
import { DEFAULT_VERSION as EXTRINSIC_DEFAULT_VERSION } from '@polkadot/types/extrinsic/constants';
|
||||
import { TypeRegistry } from '@polkadot/types/create';
|
||||
import { unwrapStorageType } from '@polkadot/types/primitive/StorageKey';
|
||||
import { assert, compactStripLength, logger, u8aToHex } from '@polkadot/util';
|
||||
|
||||
|
||||
@@ -10,7 +10,8 @@ import BN from 'bn.js';
|
||||
import { Observable, Subscription, of } from 'rxjs';
|
||||
import { map, switchMap } from 'rxjs/operators';
|
||||
import { Metadata } from '@polkadot/metadata';
|
||||
import { Text, TypeRegistry } from '@polkadot/types';
|
||||
import { Text } from '@polkadot/types';
|
||||
import { TypeRegistry } from '@polkadot/types/create';
|
||||
import { LATEST_EXTRINSIC_VERSION } from '@polkadot/types/extrinsic/Extrinsic';
|
||||
import { getSpecAlias, getSpecTypes, getUpgradeVersion } from '@polkadot/types-known';
|
||||
import { BN_ZERO, assert, logger, u8aEq, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
@@ -9,7 +9,7 @@ import { IExtrinsic, IMethod } from '@polkadot/types/types';
|
||||
import { ApiPromise } from '@polkadot/api';
|
||||
import { HeaderExtended } from '@polkadot/api-derive';
|
||||
import { TestKeyringMap, createTestPairs } from '@polkadot/keyring/testingPairs';
|
||||
import { createTypeUnsafe, TypeRegistry } from '@polkadot/types';
|
||||
import { createTypeUnsafe, TypeRegistry } from '@polkadot/types/create';
|
||||
|
||||
import { SubmittableResult } from './';
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { ApiOptions, SubmittableExtrinsic } from '../types';
|
||||
import { createPair } from '@polkadot/keyring/pair';
|
||||
import { createTestKeyring } from '@polkadot/keyring/testing';
|
||||
import Mock from '@polkadot/rpc-provider/mock/index';
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { TypeRegistry } from '@polkadot/types/create';
|
||||
import { hexToU8a } from '@polkadot/util';
|
||||
|
||||
import { SingleAccountSigner } from '../../test/util';
|
||||
|
||||
@@ -7,7 +7,7 @@ import { Observable } from 'rxjs';
|
||||
import { map, switchMap } from 'rxjs/operators';
|
||||
import { createTestPairs } from '@polkadot/keyring/testingPairs';
|
||||
import Mock from '@polkadot/rpc-provider/mock/index';
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { TypeRegistry } from '@polkadot/types/create';
|
||||
|
||||
import { SingleAccountSigner } from '../../test/util';
|
||||
import { ApiRx } from '.';
|
||||
|
||||
@@ -5,7 +5,7 @@ import { Storage } from '@polkadot/metadata/decorate/types';
|
||||
|
||||
import { Metadata, storageFromMeta } from '@polkadot/metadata';
|
||||
import metaStatic from '@polkadot/metadata/static';
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { TypeRegistry } from '@polkadot/types/create';
|
||||
|
||||
import { extractStorageArgs } from './validate';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user