aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/utils.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-26 03:22:23 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-10-26 03:22:23 +0800
commit744a9b89312c825ee94195106b9aa8aa11f43b77 (patch)
tree29009ec3e75e9d0396e744993065c05ef04c650b /src/utils/utils.ts
parent45c4042e2bb6d4c13510a5922602ba49bb5108ef (diff)
downloaddexon-sol-tools-744a9b89312c825ee94195106b9aa8aa11f43b77.tar
dexon-sol-tools-744a9b89312c825ee94195106b9aa8aa11f43b77.tar.gz
dexon-sol-tools-744a9b89312c825ee94195106b9aa8aa11f43b77.tar.bz2
dexon-sol-tools-744a9b89312c825ee94195106b9aa8aa11f43b77.tar.lz
dexon-sol-tools-744a9b89312c825ee94195106b9aa8aa11f43b77.tar.xz
dexon-sol-tools-744a9b89312c825ee94195106b9aa8aa11f43b77.tar.zst
dexon-sol-tools-744a9b89312c825ee94195106b9aa8aa11f43b77.zip
Upgrade bignumber to the version with native typings and remove typings
Diffstat (limited to 'src/utils/utils.ts')
-rw-r--r--src/utils/utils.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/utils.ts b/src/utils/utils.ts
index f2bf74860..280f3e979 100644
--- a/src/utils/utils.ts
+++ b/src/utils/utils.ts
@@ -2,7 +2,7 @@ import * as _ from 'lodash';
import * as ethABI from 'ethereumjs-abi';
import * as ethUtil from 'ethereumjs-util';
import {Order, SignedOrder, SolidityTypes} from '../types';
-import * as BigNumber from 'bignumber.js';
+import BigNumber from 'bignumber.js';
import BN = require('bn.js');
export const utils = {
@@ -12,7 +12,7 @@ export const utils = {
* expects values of Solidity type `uint` to be passed as type `BN`.
* We do not use BN anywhere else in the codebase.
*/
- bigNumberToBN(value: BigNumber.BigNumber) {
+ bigNumberToBN(value: BigNumber) {
return new BN(value.toString(), 10);
},
consoleLog(message: string): void {
@@ -49,7 +49,7 @@ export const utils = {
const hashHex = ethUtil.bufferToHex(hashBuff);
return hashHex;
},
- getCurrentUnixTimestamp(): BigNumber.BigNumber {
+ getCurrentUnixTimestamp(): BigNumber {
return new BigNumber(Date.now() / 1000);
},
};