Cleanup imports from @polkadot/util (#315)

* Cleanup imports from @polkadot/util

* Example imports

* Alphabetic imports
This commit is contained in:
Jaco Greeff
2018-10-18 13:30:04 +02:00
committed by GitHub
parent 8b7b76ead8
commit 55ac4626d5
22 changed files with 29 additions and 46 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import hexToU8a from '@polkadot/util/hex/toU8a';
import { hexToU8a } from '@polkadot/util';
import Metadata from './Metadata';
import rpcdata from './Metadata.rpc';
+1 -2
View File
@@ -2,9 +2,8 @@
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import assert from '@polkadot/util/assert';
import { ExtrinsicFunction, Extrinsics } from '@polkadot/extrinsics/types';
import { isHex, isObject, isU8a } from '@polkadot/util';
import { assert, isHex, isObject, isU8a } from '@polkadot/util';
import Base from './codec/Base';
import { Constructor } from './types';
+2 -2
View File
@@ -2,8 +2,8 @@
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const fs = require('fs');
import { stringCamelCase, stringLowerFirst } from '@polkadot/util/string';
import fs from 'fs';
import { stringCamelCase, stringLowerFirst } from '@polkadot/util';
import interfaces from '../../../type-jsonrpc/src';
import Metadata from '../Metadata';