aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
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/website
parentfa346d94613a43034e1cdaf6b7a3d2de270c58fc (diff)
downloaddexon-sol-tools-1e9ea09f087c7b3120e758d931a88812b655da08.tar.gz
dexon-sol-tools-1e9ea09f087c7b3120e758d931a88812b655da08.tar.zst
dexon-sol-tools-1e9ea09f087c7b3120e758d931a88812b655da08.zip
Introduce new contract-addresses package and use it everywhere
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/package.json1
-rw-r--r--packages/website/ts/blockchain.ts13
2 files changed, 3 insertions, 11 deletions
diff --git a/packages/website/package.json b/packages/website/package.json
index efab95c80..f6da39666 100644
--- a/packages/website/package.json
+++ b/packages/website/package.json
@@ -20,6 +20,7 @@
"license": "Apache-2.0",
"dependencies": {
"0x.js": "^0.38.6",
+ "@0xproject/contract-addresses": "^1.0.0",
"@0xproject/contract-wrappers": "^2.0.2",
"@0xproject/json-schemas": "^1.0.7",
"@0xproject/order-utils": "^1.0.7",
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts
index 14ab73531..8a2489e07 100644
--- a/packages/website/ts/blockchain.ts
+++ b/packages/website/ts/blockchain.ts
@@ -1,4 +1,5 @@
import { ZeroEx } from '0x.js';
+import { getContractAddressesForNetwork } from '@0xproject/contract-addresses';
import {
BlockRange,
ContractWrappers,
@@ -863,17 +864,7 @@ export class Blockchain {
} else {
const contractWrappersConfig = {
networkId,
- // TODO(albrow): Load in real contract addresses here.
- contractAddresses: {
- erc20Proxy: '',
- erc721Proxy: '',
- zrxToken: '',
- etherToken: '',
- exchange: '',
- assetProxyOwner: '',
- forwarder: '',
- orderValidator: '',
- },
+ contractAddresses: getContractAddressesForNetwork(networkId),
};
this._contractWrappers = new ContractWrappers(provider, contractWrappersConfig);
}