aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-29 02:12:25 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-29 02:12:25 +0800
commit50bf6a991d75fab76fd5d5e2078d805528a32b45 (patch)
tree32b5fa61f9ffb4bddc92bb6504c71363100579a5 /packages/0x.js
parent1d584b1329427e0cf756f9312c54a1ed7a7d4b34 (diff)
downloaddexon-sol-tools-50bf6a991d75fab76fd5d5e2078d805528a32b45.tar.gz
dexon-sol-tools-50bf6a991d75fab76fd5d5e2078d805528a32b45.tar.zst
dexon-sol-tools-50bf6a991d75fab76fd5d5e2078d805528a32b45.zip
Normalise subprovider names
Diffstat (limited to 'packages/0x.js')
-rw-r--r--packages/0x.js/test/utils/subproviders/empty_wallet_subprovider.ts2
-rw-r--r--packages/0x.js/test/utils/subproviders/fake_gas_estimate_subprovider.ts2
-rw-r--r--packages/0x.js/test/utils/web3_factory.ts8
3 files changed, 6 insertions, 6 deletions
diff --git a/packages/0x.js/test/utils/subproviders/empty_wallet_subprovider.ts b/packages/0x.js/test/utils/subproviders/empty_wallet_subprovider.ts
index bc11e56d8..e5e279873 100644
--- a/packages/0x.js/test/utils/subproviders/empty_wallet_subprovider.ts
+++ b/packages/0x.js/test/utils/subproviders/empty_wallet_subprovider.ts
@@ -5,7 +5,7 @@ import {JSONRPCPayload} from '../../../src/types';
* that the provider has no addresses when queried.
* Source: https://github.com/MetaMask/provider-engine/blob/master/subproviders/subprovider.js
*/
-export class EmptyWalletSubProvider {
+export class EmptyWalletSubprovider {
// This method needs to be here to satisfy the interface but linter wants it to be static.
// tslint:disable-next-line:prefer-function-over-method
public handleRequest(payload: JSONRPCPayload, next: () => void, end: (err: Error|null, result: any) => void) {
diff --git a/packages/0x.js/test/utils/subproviders/fake_gas_estimate_subprovider.ts b/packages/0x.js/test/utils/subproviders/fake_gas_estimate_subprovider.ts
index 5eccb3d24..14a6b33cf 100644
--- a/packages/0x.js/test/utils/subproviders/fake_gas_estimate_subprovider.ts
+++ b/packages/0x.js/test/utils/subproviders/fake_gas_estimate_subprovider.ts
@@ -5,7 +5,7 @@ import {JSONRPCPayload} from '../../../src/types';
* the constant gas estimate when queried.
* Source: https://github.com/MetaMask/provider-engine/blob/master/subproviders/subprovider.js
*/
-export class FakeGasEstimateProvider {
+export class FakeGasEstimateSubprovider {
private constantGasAmount: number;
constructor(constantGasAmount: number) {
this.constantGasAmount = constantGasAmount;
diff --git a/packages/0x.js/test/utils/web3_factory.ts b/packages/0x.js/test/utils/web3_factory.ts
index 854c6091d..da4828943 100644
--- a/packages/0x.js/test/utils/web3_factory.ts
+++ b/packages/0x.js/test/utils/web3_factory.ts
@@ -7,8 +7,8 @@ import * as Web3 from 'web3';
import ProviderEngine = require('web3-provider-engine');
import RpcSubprovider = require('web3-provider-engine/subproviders/rpc');
-import {EmptyWalletSubProvider} from './subproviders/empty_wallet_subprovider';
-import {FakeGasEstimateProvider} from './subproviders/fake_gas_estimate_subprovider';
+import {EmptyWalletSubprovider} from './subproviders/empty_wallet_subprovider';
+import {FakeGasEstimateSubprovider} from './subproviders/fake_gas_estimate_subprovider';
import {constants} from './constants';
@@ -23,9 +23,9 @@ export const web3Factory = {
const provider = new ProviderEngine();
const rpcUrl = `http://${constants.RPC_HOST}:${constants.RPC_PORT}`;
if (!hasAddresses) {
- provider.addProvider(new EmptyWalletSubProvider());
+ provider.addProvider(new EmptyWalletSubprovider());
}
- provider.addProvider(new FakeGasEstimateProvider(constants.GAS_ESTIMATE));
+ provider.addProvider(new FakeGasEstimateSubprovider(constants.GAS_ESTIMATE));
provider.addProvider(new RpcSubprovider({
rpcUrl,
}));