aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/src
diff options
context:
space:
mode:
authorHsuan Lee <boczeratul@gmail.com>2019-03-06 14:50:42 +0800
committerHsuan Lee <boczeratul@gmail.com>2019-03-06 14:50:42 +0800
commitd20e81c449a717a79e1a78f83963cf64fbcddfd7 (patch)
tree57cf4d159ce6c8c83822656e83b78aae258e3448 /packages/subproviders/src
parent089d04de844a776df3c4095db22039a929ed3d65 (diff)
downloaddexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.tar
dexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.tar.gz
dexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.tar.bz2
dexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.tar.lz
dexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.tar.xz
dexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.tar.zst
dexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.zip
Add type definitions to web3-provider-engine
Diffstat (limited to 'packages/subproviders/src')
-rw-r--r--packages/subproviders/src/globals.d.ts4
-rw-r--r--packages/subproviders/src/index.ts2
-rw-r--r--packages/subproviders/src/subproviders/nonce_tracker.ts2
-rw-r--r--packages/subproviders/src/utils/subprovider_utils.ts2
4 files changed, 5 insertions, 5 deletions
diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts
index 3cbf84e37..d174c2912 100644
--- a/packages/subproviders/src/globals.d.ts
+++ b/packages/subproviders/src/globals.d.ts
@@ -4,13 +4,13 @@ declare module '*.json' {
export default json;
/* tslint:enable */
}
-declare module 'web3-provider-engine/util/rpc-cache-utils' {
+declare module '@dexon-foundation/web3-provider-engine/util/rpc-cache-utils' {
class ProviderEngineRpcUtils {
public static blockTagForPayload(payload: any): string | null;
}
export = ProviderEngineRpcUtils;
}
-declare module 'web3-provider-engine/subproviders/fixture' {
+declare module '@dexon-foundation/web3-provider-engine/subproviders/fixture' {
import { JSONRPCRequestPayload, JSONRPCResponsePayload } from 'ethereum-types';
class FixtureSubprovider {
constructor(staticResponses: any);
diff --git a/packages/subproviders/src/index.ts b/packages/subproviders/src/index.ts
index 050027f96..f438ea11a 100644
--- a/packages/subproviders/src/index.ts
+++ b/packages/subproviders/src/index.ts
@@ -1,6 +1,6 @@
import Eth from '@ledgerhq/hw-app-eth';
import TransportU2F from '@ledgerhq/hw-transport-u2f';
-export import Web3ProviderEngine = require('web3-provider-engine');
+export import Web3ProviderEngine = require('@dexon-foundation/web3-provider-engine');
import { LedgerEthereumClient } from './types';
diff --git a/packages/subproviders/src/subproviders/nonce_tracker.ts b/packages/subproviders/src/subproviders/nonce_tracker.ts
index eea722aee..4e4013d23 100644
--- a/packages/subproviders/src/subproviders/nonce_tracker.ts
+++ b/packages/subproviders/src/subproviders/nonce_tracker.ts
@@ -3,7 +3,7 @@ import * as _ from 'lodash';
import { BlockParamLiteral, JSONRPCRequestPayload } from 'ethereum-types';
import EthereumTx = require('ethereumjs-tx');
import ethUtil = require('ethereumjs-util');
-import providerEngineUtils = require('web3-provider-engine/util/rpc-cache-utils');
+import providerEngineUtils = require('@dexon-foundation/web3-provider-engine/util/rpc-cache-utils');
import { Callback, ErrorCallback, NextCallback, NonceSubproviderErrors } from '../types';
diff --git a/packages/subproviders/src/utils/subprovider_utils.ts b/packages/subproviders/src/utils/subprovider_utils.ts
index beda408ab..f63699de2 100644
--- a/packages/subproviders/src/utils/subprovider_utils.ts
+++ b/packages/subproviders/src/utils/subprovider_utils.ts
@@ -1,4 +1,4 @@
-import Web3ProviderEngine = require('web3-provider-engine');
+import Web3ProviderEngine = require('@dexon-foundation/web3-provider-engine');
import { Subprovider } from '../subproviders/subprovider';