Remove from* variants, move fromString to stringTo (#233)

* Remove from* variants, move fromString to stringTo

* Bump
This commit is contained in:
Jaco Greeff
2018-10-18 10:30:14 +02:00
committed by GitHub
parent 35579c4d70
commit 57eddba598
56 changed files with 69 additions and 378 deletions
-15
View File
@@ -1,15 +0,0 @@
// Copyright 2017-2018 @polkadot/util authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import isFunction from '../is/function';
import { hexFromBn } from './index';
describe('hexFromBn', () => {
it('exists as a function', () => {
expect(
isFunction(hexFromBn)
).toEqual(true);
});
});
-13
View File
@@ -1,13 +0,0 @@
// Copyright 2017-2018 @polkadot/util authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import hexFromBn from '../bn/toHex';
/**
* @name hexFromBn
* @signature hexFromBn (value?: BN): string
* @summary Creates a hex value from a BN.js bignumber object.
* @alias bn/toHex
*/
export default hexFromBn;
-15
View File
@@ -1,15 +0,0 @@
// Copyright 2017-2018 @polkadot/util authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import isFunction from '../is/function';
import { hexFromNumber } from './index';
describe('hexFromNumber', () => {
it('exists as a function', () => {
expect(
isFunction(hexFromNumber)
).toEqual(true);
});
});
-13
View File
@@ -1,13 +0,0 @@
// Copyright 2017-2018 @polkadot/util authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import hexFromNumber from '../number/toHex';
/**
* @name hexFromNumber
* @signature hexFromNumber (value?: number): string
* @summary Creates a hex value from a number.
* @alias number/toHex
*/
export default hexFromNumber;
-4
View File
@@ -4,8 +4,6 @@
import hexAddPrefix from './addPrefix';
import hexFixLength from './fixLength';
import hexFromBn from './fromBn';
import hexFromNumber from './fromNumber';
import hexHasPrefix from './hasPrefix';
import hexStripPrefix from './stripPrefix';
import hexToBn from './toBn';
@@ -18,8 +16,6 @@ import hexToU8a from './toU8a';
export {
hexAddPrefix,
hexFixLength,
hexFromBn,
hexFromNumber,
hexHasPrefix,
hexStripPrefix,
hexToBn,