Remove /index imports (swap to bare) (#362)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { hexToU8a } from '@polkadot/util/index';
|
||||
import { hexToU8a } from '@polkadot/util';
|
||||
|
||||
import decode from './decode';
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { compactStripLength, logger } from '@polkadot/util/index';
|
||||
import { compactStripLength, logger } from '@polkadot/util';
|
||||
|
||||
import NodeHeader, { BranchHeader, NibbleHeader } from './NodeHeader';
|
||||
import { NODE_TYPE_NULL, NODE_TYPE_BRANCH, NODE_TYPE_EXT, NODE_TYPE_LEAF } from './constants';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { hexToU8a } from '@polkadot/util/index';
|
||||
import { hexToU8a } from '@polkadot/util';
|
||||
|
||||
import encode from './encode';
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { compactAddLength, u8aConcat, isU8a, logger } from '@polkadot/util/index';
|
||||
import { compactAddLength, u8aConcat, isU8a, logger } from '@polkadot/util';
|
||||
|
||||
import NodeHeader from './NodeHeader';
|
||||
import { NODE_TYPE_BRANCH, NODE_TYPE_EXT, NODE_TYPE_LEAF, NODE_TYPE_NULL } from './constants';
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { blake2AsU8a as hashing } from '@polkadot/util-crypto/index';
|
||||
import { blake2AsU8a as hashing } from '@polkadot/util-crypto';
|
||||
|
||||
export default hashing;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { u8aConcat } from '@polkadot/util/index';
|
||||
import { u8aConcat } from '@polkadot/util';
|
||||
|
||||
import { BRANCH_NODE_NO_VALUE, BRANCH_NODE_WITH_VALUE } from '../constants';
|
||||
import createValue from './createValue';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { u8aConcat } from '@polkadot/util/index';
|
||||
import { u8aConcat } from '@polkadot/util';
|
||||
|
||||
import { fuseNibbles } from '../util';
|
||||
import createValue from './createValue';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { compactAddLength } from '@polkadot/util/index';
|
||||
import { compactAddLength } from '@polkadot/util';
|
||||
|
||||
const NO_VALUE = new Uint8Array();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { assert, u8aConcat } from '@polkadot/util/index';
|
||||
import { assert, u8aConcat } from '@polkadot/util';
|
||||
|
||||
import { EXTENSION_NODE_BIG, EXTENSION_NODE_OFFSET, LEAF_NODE_BIG, LEAF_NODE_OFFSET } from '../constants';
|
||||
import fromNibbles from './fromNibbles';
|
||||
|
||||
Reference in New Issue
Block a user