aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package.json1
-rw-r--r--src/globals.d.ts1
-rw-r--r--src/utils/utils.ts2
-rw-r--r--tsconfig.json1
-rw-r--r--yarn.lock8
5 files changed, 10 insertions, 3 deletions
diff --git a/package.json b/package.json
index 63350e221..34ab8194e 100644
--- a/package.json
+++ b/package.json
@@ -83,6 +83,7 @@
"tslint": "^5.3.2",
"tslint-config-0xproject": "^0.0.2",
"typedoc": "^0.7.1",
+ "types-bn": "^0.0.1",
"typescript": "^2.4.1",
"web3-provider-engine": "^13.0.1",
"web3-typescript-typings": "^0.2.1",
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 = {
/**
diff --git a/tsconfig.json b/tsconfig.json
index e26c01048..9c045bb0b 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -13,6 +13,7 @@
"include": [
"./src/**/*",
"./test/**/*",
+ "./node_modules/types-bn/index.d.ts",
"./node_modules/web3-typescript-typings/index.d.ts",
"./node_modules/chai-typescript-typings/index.d.ts",
"./node_modules/chai-as-promised-typescript-typings/index.d.ts"
diff --git a/yarn.lock b/yarn.lock
index dcc8ace84..ef6bea4df 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -798,7 +798,7 @@ bn.js@4.11.6:
version "4.11.6"
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.6.tgz#53344adb14617a13f6e8dd2ce28905d1c0ba3215"
-bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.10.0, bn.js@^4.11.3, bn.js@^4.4.0, bn.js@^4.8.0:
+bn.js@4.11.7, bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.10.0, bn.js@^4.11.3, bn.js@^4.4.0, bn.js@^4.8.0:
version "4.11.7"
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.7.tgz#ddb048e50d9482790094c13eb3fcfc833ce7ab46"
@@ -4836,6 +4836,12 @@ typedoc@^0.7.1:
typedoc-default-themes "^0.5.0"
typescript "2.3.2"
+types-bn@^0.0.1:
+ version "0.0.1"
+ resolved "https://registry.yarnpkg.com/types-bn/-/types-bn-0.0.1.tgz#4253c7c7251b14e1d77cdca6f58800e5e2b82c4b"
+ dependencies:
+ bn.js "4.11.7"
+
typescript@2.3.2:
version "2.3.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.3.2.tgz#f0f045e196f69a72f06b25fd3bd39d01c3ce9984"