aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-04 02:58:18 +0800
committerGitHub <noreply@github.com>2018-04-04 02:58:18 +0800
commit674e56cea69fe96ddd0071d3c4c5b5ea8ae299bf (patch)
tree19ddd0c0312eed054595c0d3431ecddead18e857 /packages/subproviders
parent4a9752d7cda05f616d2709e34f4687da813d3090 (diff)
parent61809130a6659335c7550cf35c55e20b3e579a6f (diff)
downloaddexon-sol-tools-674e56cea69fe96ddd0071d3c4c5b5ea8ae299bf.tar
dexon-sol-tools-674e56cea69fe96ddd0071d3c4c5b5ea8ae299bf.tar.gz
dexon-sol-tools-674e56cea69fe96ddd0071d3c4c5b5ea8ae299bf.tar.bz2
dexon-sol-tools-674e56cea69fe96ddd0071d3c4c5b5ea8ae299bf.tar.lz
dexon-sol-tools-674e56cea69fe96ddd0071d3c4c5b5ea8ae299bf.tar.xz
dexon-sol-tools-674e56cea69fe96ddd0071d3c4c5b5ea8ae299bf.tar.zst
dexon-sol-tools-674e56cea69fe96ddd0071d3c4c5b5ea8ae299bf.zip
Merge pull request #496 from 0xProject/removeUnusedDeps
Remove unused deps + Remove Dharma from website
Diffstat (limited to 'packages/subproviders')
-rw-r--r--packages/subproviders/package.json1
-rw-r--r--packages/subproviders/src/globals.d.ts2
-rw-r--r--packages/subproviders/src/subproviders/subprovider.ts4
-rw-r--r--packages/subproviders/test/integration/ledger_subprovider_test.ts2
4 files changed, 3 insertions, 6 deletions
diff --git a/packages/subproviders/package.json b/packages/subproviders/package.json
index 3f13424aa..cadbac0e8 100644
--- a/packages/subproviders/package.json
+++ b/packages/subproviders/package.json
@@ -43,7 +43,6 @@
"@ledgerhq/hw-app-eth": "^4.3.0",
"@ledgerhq/hw-transport-u2f": "^4.3.0",
"bn.js": "^4.11.8",
- "es6-promisify": "^5.0.0",
"ethereumjs-tx": "^1.3.3",
"ethereumjs-util": "^5.1.1",
"ganache-core": "0xProject/ganache-core",
diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts
index 916fed807..580c5aaa5 100644
--- a/packages/subproviders/src/globals.d.ts
+++ b/packages/subproviders/src/globals.d.ts
@@ -1,5 +1,3 @@
-declare module 'es6-promisify';
-
// tslint:disable:max-classes-per-file
// tslint:disable:class-name
// tslint:disable:async-suffix
diff --git a/packages/subproviders/src/subproviders/subprovider.ts b/packages/subproviders/src/subproviders/subprovider.ts
index 26ce19305..c51462f07 100644
--- a/packages/subproviders/src/subproviders/subprovider.ts
+++ b/packages/subproviders/src/subproviders/subprovider.ts
@@ -1,5 +1,5 @@
import { JSONRPCRequestPayload, JSONRPCResponsePayload } from '@0xproject/types';
-import promisify = require('es6-promisify');
+import { promisify } from '@0xproject/utils';
import * as Web3 from 'web3';
import { JSONRPCRequestPayloadWithMethod } from '../types';
@@ -40,7 +40,7 @@ export class Subprovider {
*/
public async emitPayloadAsync(payload: Partial<JSONRPCRequestPayloadWithMethod>): Promise<JSONRPCResponsePayload> {
const finalPayload = Subprovider._createFinalPayload(payload);
- const response = await promisify(this._engine.sendAsync, this._engine)(finalPayload);
+ const response = await promisify<JSONRPCResponsePayload>(this._engine.sendAsync, this._engine)(finalPayload);
return response;
}
/**
diff --git a/packages/subproviders/test/integration/ledger_subprovider_test.ts b/packages/subproviders/test/integration/ledger_subprovider_test.ts
index 969081ad5..bc60b4330 100644
--- a/packages/subproviders/test/integration/ledger_subprovider_test.ts
+++ b/packages/subproviders/test/integration/ledger_subprovider_test.ts
@@ -1,10 +1,10 @@
import { JSONRPCResponsePayload } from '@0xproject/types';
+import { promisify } from '@0xproject/utils';
import Eth from '@ledgerhq/hw-app-eth';
// HACK: This depdency is optional and tslint skips optional depdencies
// tslint:disable-next-line:no-implicit-dependencies
import TransportNodeHid from '@ledgerhq/hw-transport-node-hid';
import * as chai from 'chai';
-import promisify = require('es6-promisify');
import * as ethUtils from 'ethereumjs-util';
import * as _ from 'lodash';
import Web3 = require('web3');