TrueBitFoundation / truebit-os

[DEPRECATED] Interactive client
Apache License 2.0
82 stars 26 forks source link

Reusable contract config for different networks #39

Closed hswick closed 6 years ago

hswick commented 6 years ago

On #33

Currently contracts.json is hard coded in several places of the client. Would be better to be using a component implemented in a separate module so changes can be made in one place.

This contracts.json file is created by the deploy.js script, so we need to change this script to be more configurable.

The next step is to easily allow for the contract configuration to use a different exported JSON file based on which network is being used. Example development, rinkeby, main, etc. This way we can persist and reuse these configurations once deployed.