aboutsummaryrefslogtreecommitdiffstats
path: root/packages/testnet-faucets
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-02-02 08:26:49 +0800
committerJacob Evans <jacob@dekz.net>2018-02-02 08:26:49 +0800
commit76eb1e9e7ff771a256b0ddeeabe2dc10e3861d14 (patch)
tree57acab4e9c53877d3ddcf49f61d551a022764021 /packages/testnet-faucets
parentb7af597668668124a4bc28f2e621ef5d07d4bd5a (diff)
downloaddexon-0x-contracts-76eb1e9e7ff771a256b0ddeeabe2dc10e3861d14.tar
dexon-0x-contracts-76eb1e9e7ff771a256b0ddeeabe2dc10e3861d14.tar.gz
dexon-0x-contracts-76eb1e9e7ff771a256b0ddeeabe2dc10e3861d14.tar.bz2
dexon-0x-contracts-76eb1e9e7ff771a256b0ddeeabe2dc10e3861d14.tar.lz
dexon-0x-contracts-76eb1e9e7ff771a256b0ddeeabe2dc10e3861d14.tar.xz
dexon-0x-contracts-76eb1e9e7ff771a256b0ddeeabe2dc10e3861d14.tar.zst
dexon-0x-contracts-76eb1e9e7ff771a256b0ddeeabe2dc10e3861d14.zip
Test faucets to use new NonceTracker
Diffstat (limited to 'packages/testnet-faucets')
-rw-r--r--packages/testnet-faucets/Dockerfile1
-rw-r--r--packages/testnet-faucets/src/ts/handler.ts4
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/testnet-faucets/Dockerfile b/packages/testnet-faucets/Dockerfile
index 6d6ddc192..57d72049b 100644
--- a/packages/testnet-faucets/Dockerfile
+++ b/packages/testnet-faucets/Dockerfile
@@ -2,6 +2,7 @@ FROM node
WORKDIR /src
+RUN apt-get -qq update && apt-get install -y libhidapi-dev libusb-1.0-0-dev
COPY package.json .
RUN npm i
RUN npm install forever -g
diff --git a/packages/testnet-faucets/src/ts/handler.ts b/packages/testnet-faucets/src/ts/handler.ts
index bf5b3e81e..121112fd3 100644
--- a/packages/testnet-faucets/src/ts/handler.ts
+++ b/packages/testnet-faucets/src/ts/handler.ts
@@ -1,9 +1,9 @@
+import { NonceTrackerSubprovider } from '@0xproject/subproviders';
import { addressUtils } from '@0xproject/utils';
import * as express from 'express';
import * as _ from 'lodash';
import ProviderEngine = require('web3-provider-engine');
import HookedWalletSubprovider = require('web3-provider-engine/subproviders/hooked-wallet');
-import NonceSubprovider = require('web3-provider-engine/subproviders/nonce-tracker');
import RpcSubprovider = require('web3-provider-engine/subproviders/rpc');
import { EtherRequestQueue } from './ether_request_queue';
@@ -96,7 +96,7 @@ export class Handler {
// tslint:disable-next-line:prefer-function-over-method
private _createProviderEngine(rpcUrl: string) {
const engine = new ProviderEngine();
- engine.addProvider(new NonceSubprovider());
+ engine.addProvider(new NonceTrackerSubprovider());
engine.addProvider(new HookedWalletSubprovider(idManagement));
engine.addProvider(
new RpcSubprovider({