Adjust create imports (#2834)
* Adjust create imports * Restore create root exports * Adjust unsafe creation
This commit is contained in:
@@ -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 '.';
|
||||
|
||||
|
||||
@@ -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 '.';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import { DefinitionRpc } from '@polkadot/types/types';
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { TypeRegistry } from '@polkadot/types/create';
|
||||
|
||||
import { RpcCore } from '.';
|
||||
|
||||
|
||||
@@ -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 '.';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user