Skip to content

Commit

Permalink
Merge pull request #202 from mirathewhite/validate
Browse files Browse the repository at this point in the history
Uncommented new packages
  • Loading branch information
o-a-hudson committed Aug 15, 2018
2 parents 7109ff9 + fda1979 commit 6f7e5f5
Show file tree
Hide file tree
Showing 5 changed files with 928 additions and 64 deletions.
1 change: 1 addition & 0 deletions doc/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ else initializing the roles and trying to use it as a token or pass it off as a
)
```
3. Verify that all fields in the FiatToken have been initialized correctly and have the expected values.
See [README.validate.md](../validate/validate.js).

## Deploying a Proxy:

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"openzeppelin-solidity": "1.11.0",
"path": "^0.12.7",
"q": "^1.5.1",
"zos-lib": "1.3.0"
"zos-lib": "1.3.0",
"truffle-hdwallet-provider": "^0.0.6"
},
"devDependencies": {
"chai": "^4.1.2",
Expand Down
14 changes: 3 additions & 11 deletions truffle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// INFURA Setup
// Uncomment this code to enable validate/validate.js script
// See validate/README.validate.md for more info
/*
// INFURA Setup - see validate/README.validate.md for more info
var HDWalletProvider = require("truffle-hdwallet-provider"); // These keys will be used only for CALL
var mnemonic = "talisman";
var fs = require('fs');
Expand All @@ -11,7 +8,6 @@ try {
} catch (err) {
console.log("No Infura access token detected. Unit tests will still work. See ./validate/README.validate.md for more details.")
}
*/

module.exports = {
networks: {
Expand All @@ -36,18 +32,14 @@ module.exports = {
host: "ganache",
port: 8545,
network_id: "*" // Match any network id
}
// INFURA Setup
// Uncomment this code to enable validate/validate.js script
// See validate/README.validate.md for more info
/* ,
},
// INFURA Setup
infura_mainnet: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://mainnet.infura.io/" + access_token)
},
network_id: 1
}
*/
},
mocha: {
/*
Expand Down
9 changes: 4 additions & 5 deletions validate/README.validate.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ https://infura.io/dashboard to access your personal dashboard.
3. Create a new project - give it any name you want. Then whitelist the Token Proxy and the
current Token Implementation addresses.

4. Create a file `./validate/apikey.infura`. Copy the API Key from your project dashboard into
4. Create a local file `./validate/apikey.infura`. Copy the API Key from your project dashboard into
the file and save.

5. Open the file `truffle.js` and uncomment the lines at the top of the file marked `INFURA Setup` as well
as the section defining `infura_mainnet` (also marked `INFURA Setup`).

6. Run `npm install truffle-hdwallet-provider` to install the required dependencies.
# Configure Expected Values
Go to ./validate/validate.js and change the addresses at the top of the file, as
well as any other constants.

# Validation

Expand Down
Loading

0 comments on commit 6f7e5f5

Please sign in to comment.