Remove from* variants, move fromString to stringTo (#233)
* Remove from* variants, move fromString to stringTo * Bump
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
@@ -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;
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
@@ -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,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,
|
||||
|
||||
Reference in New Issue
Block a user