aboutsummaryrefslogtreecommitdiffstats
path: root/packages/testnet-faucets/src/ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-10 14:10:33 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-10-16 04:38:33 +0800
commit1e9ea09f087c7b3120e758d931a88812b655da08 (patch)
treeb0da3efc0733d566356ed2a938d18eb08192f674 /packages/testnet-faucets/src/ts
parentfa346d94613a43034e1cdaf6b7a3d2de270c58fc (diff)
downloaddexon-sol-tools-1e9ea09f087c7b3120e758d931a88812b655da08.tar
dexon-sol-tools-1e9ea09f087c7b3120e758d931a88812b655da08.tar.gz
dexon-sol-tools-1e9ea09f087c7b3120e758d931a88812b655da08.tar.bz2
dexon-sol-tools-1e9ea09f087c7b3120e758d931a88812b655da08.tar.lz
dexon-sol-tools-1e9ea09f087c7b3120e758d931a88812b655da08.tar.xz
dexon-sol-tools-1e9ea09f087c7b3120e758d931a88812b655da08.tar.zst
dexon-sol-tools-1e9ea09f087c7b3120e758d931a88812b655da08.zip
Introduce new contract-addresses package and use it everywhere
Diffstat (limited to 'packages/testnet-faucets/src/ts')
-rw-r--r--packages/testnet-faucets/src/ts/handler.ts13
1 files changed, 2 insertions, 11 deletions
diff --git a/packages/testnet-faucets/src/ts/handler.ts b/packages/testnet-faucets/src/ts/handler.ts
index b2d2226f4..262f6d889 100644
--- a/packages/testnet-faucets/src/ts/handler.ts
+++ b/packages/testnet-faucets/src/ts/handler.ts
@@ -11,6 +11,7 @@ import {
SignedOrder,
Web3ProviderEngine,
} from '0x.js';
+import { getContractAddressesForNetwork } from '@0xproject/contract-addresses';
import { NonceTrackerSubprovider, PrivateKeyWalletSubprovider } from '@0xproject/subproviders';
import { logUtils } from '@0xproject/utils';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
@@ -67,17 +68,7 @@ export class Handler {
const networkId = parseInt(networkIdString, 10);
const contractWrappersConfig = {
networkId,
- // TODO(albrow): Load in real contract addresses here.
- contractAddresses: {
- erc20Proxy: '',
- erc721Proxy: '',
- zrxToken: '',
- etherToken: '',
- exchange: '',
- assetProxyOwner: '',
- forwarder: '',
- orderValidator: '',
- },
+ contractAddresses: getContractAddressesForNetwork(networkId),
};
const contractWrappers = new ContractWrappers(providerObj, contractWrappersConfig);
const dispatchQueue = new DispatchQueue();