aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-21 20:11:06 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-21 20:11:06 +0800
commita1c363a8af3cbfa2d843aaf7ddd05390db7b8f9b (patch)
tree7f4d4ee9ad766860288d22ee7875f70f0d951af0 /src
parent40a7be0690c81d2e42543aa075ef8da6606e7b7e (diff)
downloaddexon-sol-tools-a1c363a8af3cbfa2d843aaf7ddd05390db7b8f9b.tar.gz
dexon-sol-tools-a1c363a8af3cbfa2d843aaf7ddd05390db7b8f9b.tar.zst
dexon-sol-tools-a1c363a8af3cbfa2d843aaf7ddd05390db7b8f9b.zip
Fall back to import x = require() syntax
Diffstat (limited to 'src')
-rw-r--r--src/0x.ts2
-rw-r--r--src/contract_wrappers/contract_wrapper.ts4
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts10
-rw-r--r--src/contract_wrappers/token_registry_wrapper.ts4
-rw-r--r--src/contract_wrappers/token_wrapper.ts2
-rw-r--r--src/types.ts2
-rw-r--r--src/utils/assert.ts14
-rw-r--r--src/utils/decorators.ts2
-rw-r--r--src/utils/utils.ts4
-rw-r--r--src/web3_wrapper.ts2
10 files changed, 23 insertions, 23 deletions
diff --git a/src/0x.ts b/src/0x.ts
index eee74b21b..71acf0438 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -1,4 +1,4 @@
-import isUndefined from 'lodash/isUndefined';
+import isUndefined = require('lodash/isUndefined');
import * as BigNumber from 'bignumber.js';
import {bigNumberConfigs} from './bignumber_config';
import * as ethUtil from 'ethereumjs-util';
diff --git a/src/contract_wrappers/contract_wrapper.ts b/src/contract_wrappers/contract_wrapper.ts
index dd403ce8b..f5d2cd4eb 100644
--- a/src/contract_wrappers/contract_wrapper.ts
+++ b/src/contract_wrappers/contract_wrapper.ts
@@ -1,5 +1,5 @@
-import includes from 'lodash/includes';
-import isUndefined from 'lodash/isUndefined';
+import includes = require('lodash/includes');
+import isUndefined = require('lodash/isUndefined');
import contract = require('truffle-contract');
import {Web3Wrapper} from '../web3_wrapper';
import {ZeroExError, Artifact, ContractInstance} from '../types';
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 4f9d03539..6d42dc110 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -1,8 +1,8 @@
-import map from 'lodash/map';
-import isEmpty from 'lodash/isEmpty';
-import find from 'lodash/find';
-import isUndefined from 'lodash/isUndefined';
-import unzip from 'lodash/unzip';
+import map = require('lodash/map');
+import isEmpty = require('lodash/isEmpty');
+import find = require('lodash/find');
+import isUndefined = require('lodash/isUndefined');
+import unzip = require('lodash/unzip');
import * as BigNumber from 'bignumber.js';
import promisify = require('es6-promisify');
import {Web3Wrapper} from '../web3_wrapper';
diff --git a/src/contract_wrappers/token_registry_wrapper.ts b/src/contract_wrappers/token_registry_wrapper.ts
index dd27192a7..971b2d43c 100644
--- a/src/contract_wrappers/token_registry_wrapper.ts
+++ b/src/contract_wrappers/token_registry_wrapper.ts
@@ -1,5 +1,5 @@
-import map from 'lodash/map';
-import isUndefined from 'lodash/isUndefined';
+import map = require('lodash/map');
+import isUndefined = require('lodash/isUndefined');
import {Web3Wrapper} from '../web3_wrapper';
import {Token, TokenRegistryContract, TokenMetadata} from '../types';
import {assert} from '../utils/assert';
diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts
index ea24b5901..5db7248e8 100644
--- a/src/contract_wrappers/token_wrapper.ts
+++ b/src/contract_wrappers/token_wrapper.ts
@@ -1,4 +1,4 @@
-import isUndefined from 'lodash/isUndefined';
+import isUndefined = require('lodash/isUndefined');
import * as BigNumber from 'bignumber.js';
import {Web3Wrapper} from '../web3_wrapper';
import {assert} from '../utils/assert';
diff --git a/src/types.ts b/src/types.ts
index e08d7f963..d59ed67cf 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -1,4 +1,4 @@
-import reduce from 'lodash/reduce';
+import reduce = require('lodash/reduce');
import * as Web3 from 'web3';
// Utility function to create a K:V from a list of strings
diff --git a/src/utils/assert.ts b/src/utils/assert.ts
index c4f1915e7..efc7ed366 100644
--- a/src/utils/assert.ts
+++ b/src/utils/assert.ts
@@ -1,10 +1,10 @@
-import uniq from 'lodash/uniq';
-import isEmpty from 'lodash/isEmpty';
-import isObject from 'lodash/isObject';
-import isFinite from 'lodash/isFinite';
-import isString from 'lodash/isString';
-import isBoolean from 'lodash/isBoolean';
-import isUndefined from 'lodash/isUndefined';
+import uniq = require('lodash/uniq');
+import isEmpty = require('lodash/isEmpty');
+import isObject = require('lodash/isObject');
+import isFinite = require('lodash/isFinite');
+import isString = require('lodash/isString');
+import isBoolean = require('lodash/isBoolean');
+import isUndefined = require('lodash/isUndefined');
import * as BigNumber from 'bignumber.js';
import * as Web3 from 'web3';
import {Web3Wrapper} from '../web3_wrapper';
diff --git a/src/utils/decorators.ts b/src/utils/decorators.ts
index f8786dbbe..b06e96747 100644
--- a/src/utils/decorators.ts
+++ b/src/utils/decorators.ts
@@ -1,4 +1,4 @@
-import includes from 'lodash/includes';
+import includes = require('lodash/includes');
import {constants} from './constants';
import {AsyncMethod, ZeroExError} from '../types';
diff --git a/src/utils/utils.ts b/src/utils/utils.ts
index e4e7b77ab..2db611ccb 100644
--- a/src/utils/utils.ts
+++ b/src/utils/utils.ts
@@ -1,5 +1,5 @@
-import map from 'lodash/map';
-import includes from 'lodash/includes';
+import map = require('lodash/map');
+import includes = require('lodash/includes');
import * as BN from 'bn.js';
import * as ethABI from 'ethereumjs-abi';
import * as ethUtil from 'ethereumjs-util';
diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts
index 7218b5739..d7cf6df58 100644
--- a/src/web3_wrapper.ts
+++ b/src/web3_wrapper.ts
@@ -1,4 +1,4 @@
-import includes from 'lodash/includes';
+import includes = require('lodash/includes');
import * as Web3 from 'web3';
import * as BigNumber from 'bignumber.js';
import promisify = require('es6-promisify');