aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-02-02 09:08:19 +0800
committerJacob Evans <jacob@dekz.net>2018-02-02 09:08:19 +0800
commit2eccb28dee6ad16f8b4a73102d36463067be8262 (patch)
tree485db364f489dd615953fbb968920caccbffad4f /packages
parent76eb1e9e7ff771a256b0ddeeabe2dc10e3861d14 (diff)
downloaddexon-sol-tools-2eccb28dee6ad16f8b4a73102d36463067be8262.tar
dexon-sol-tools-2eccb28dee6ad16f8b4a73102d36463067be8262.tar.gz
dexon-sol-tools-2eccb28dee6ad16f8b4a73102d36463067be8262.tar.bz2
dexon-sol-tools-2eccb28dee6ad16f8b4a73102d36463067be8262.tar.lz
dexon-sol-tools-2eccb28dee6ad16f8b4a73102d36463067be8262.tar.xz
dexon-sol-tools-2eccb28dee6ad16f8b4a73102d36463067be8262.tar.zst
dexon-sol-tools-2eccb28dee6ad16f8b4a73102d36463067be8262.zip
Enable CIRCLECI and declare web3
Diffstat (limited to 'packages')
-rw-r--r--packages/testnet-faucets/Dockerfile1
-rw-r--r--packages/testnet-faucets/package.json1
-rw-r--r--packages/testnet-faucets/src/ts/global.d.ts12
3 files changed, 14 insertions, 0 deletions
diff --git a/packages/testnet-faucets/Dockerfile b/packages/testnet-faucets/Dockerfile
index 57d72049b..346f461d8 100644
--- a/packages/testnet-faucets/Dockerfile
+++ b/packages/testnet-faucets/Dockerfile
@@ -3,6 +3,7 @@ FROM node
WORKDIR /src
RUN apt-get -qq update && apt-get install -y libhidapi-dev libusb-1.0-0-dev
+ENV CIRCLECI=true
COPY package.json .
RUN npm i
RUN npm install forever -g
diff --git a/packages/testnet-faucets/package.json b/packages/testnet-faucets/package.json
index f05899896..964401a67 100644
--- a/packages/testnet-faucets/package.json
+++ b/packages/testnet-faucets/package.json
@@ -16,6 +16,7 @@
"dependencies": {
"0x.js": "^0.31.1",
"@0xproject/utils": "^0.2.4",
+ "@0xproject/subproviders": "^0.3.5",
"body-parser": "^1.17.1",
"ethereumjs-tx": "^1.3.3",
"express": "^4.15.2",
diff --git a/packages/testnet-faucets/src/ts/global.d.ts b/packages/testnet-faucets/src/ts/global.d.ts
index 97cd35680..a790366fb 100644
--- a/packages/testnet-faucets/src/ts/global.d.ts
+++ b/packages/testnet-faucets/src/ts/global.d.ts
@@ -24,3 +24,15 @@ declare module 'ethereumjs-tx' {
}
export = EthereumTx;
}
+
+declare module 'web3-provider-engine' {
+ class Web3ProviderEngine {
+ public on(event: string, handler: () => void): void;
+ public send(payload: any): void;
+ public sendAsync(payload: any, callback: (error: any, response: any) => void): void;
+ public addProvider(provider: any): void;
+ public start(): void;
+ public stop(): void;
+ }
+ export = Web3ProviderEngine;
+} \ No newline at end of file