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
+1 -1
View File
@@ -3,7 +3,7 @@
import { createTestPairs } from '@polkadot/keyring/testingPairs';
import MockProvider from '@polkadot/rpc-provider/mock';
import { TypeRegistry } from '@polkadot/types';
import { TypeRegistry } from '@polkadot/types/create';
import { RpcCore } from '.';
+1 -1
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import MockProvider from '@polkadot/rpc-provider/mock';
import { TypeRegistry } from '@polkadot/types';
import { TypeRegistry } from '@polkadot/types/create';
import { isFunction } from '@polkadot/util';
import { RpcCore } from '.';
+2 -1
View File
@@ -10,7 +10,8 @@ import memoizee from 'memoizee';
import { Observable, Observer } from 'rxjs';
import { publishReplay, refCount } from 'rxjs/operators';
import jsonrpc from '@polkadot/types/interfaces/jsonrpc';
import { Option, StorageKey, Vec, createClass, createTypeUnsafe } from '@polkadot/types';
import { Option, StorageKey, Vec } from '@polkadot/types';
import { createClass, createTypeUnsafe } from '@polkadot/types/create';
import { assert, hexToU8a, isFunction, isNull, isUndefined, logger, u8aToU8a } from '@polkadot/util';
import normalizer from './normalizer';
+1 -1
View File
@@ -3,7 +3,7 @@
import { DefinitionRpc } from '@polkadot/types/types';
import { TypeRegistry } from '@polkadot/types';
import { TypeRegistry } from '@polkadot/types/create';
import { RpcCore } from '.';
+1 -1
View File
@@ -3,7 +3,7 @@
import { Observable, of } from 'rxjs';
import MockProvider from '@polkadot/rpc-provider/mock';
import { TypeRegistry } from '@polkadot/types';
import { TypeRegistry } from '@polkadot/types/create';
import { RpcCore } from '.';