Adjust create imports (#2834)

* Adjust create imports

* Restore create root exports

* Adjust unsafe creation
This commit is contained in:
Jaco Greeff
2020-11-10 11:14:38 +01:00
committed by GitHub
parent 5cf585c8dd
commit af9437f80a
42 changed files with 50 additions and 51 deletions
+2 -1
View File
@@ -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';
+2 -1
View File
@@ -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';
+1 -1
View File
@@ -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 './';
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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 '.';
+1 -1
View File
@@ -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';