aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-22 06:33:37 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-22 06:34:47 +0800
commitf7fac34e03166533d92d2e0281103904e0b987f2 (patch)
tree58d4284ef73a72a5e341872a1fe50f862ce310fd /src
parent569cff01f3525359ce43752988b24c74f1781813 (diff)
downloaddexon-0x-contracts-f7fac34e03166533d92d2e0281103904e0b987f2.tar.gz
dexon-0x-contracts-f7fac34e03166533d92d2e0281103904e0b987f2.tar.zst
dexon-0x-contracts-f7fac34e03166533d92d2e0281103904e0b987f2.zip
Add bn.js types
Diffstat (limited to 'src')
-rw-r--r--src/globals.d.ts1
-rw-r--r--src/utils/utils.ts2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/globals.d.ts b/src/globals.d.ts
index 1faf468a7..3d19b96cc 100644
--- a/src/globals.d.ts
+++ b/src/globals.d.ts
@@ -2,7 +2,6 @@
/// <reference types='chai-as-promised-typescript-typings' />
declare module 'chai-bignumber';
declare module 'dirty-chai';
-declare module 'bn.js';
declare module 'request-promise-native';
declare module 'web3-provider-engine';
declare module 'web3-provider-engine/subproviders/rpc';
diff --git a/src/utils/utils.ts b/src/utils/utils.ts
index 6702de218..f2bf74860 100644
--- a/src/utils/utils.ts
+++ b/src/utils/utils.ts
@@ -1,9 +1,9 @@
import * as _ from 'lodash';
-import * as BN from 'bn.js';
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 BN = require('bn.js');
export const utils = {
/**