Create the flattened contract code by running the following from the augur-core repo:
npm run build:flattener
cd source/contracts
../../venv/bin/solidity_flattener --allow . external/EscapeHatchController.sol > FlatEscapeHatchController.sol
| [ | |
| { | |
| "constant": true, | |
| "inputs": [], | |
| "name": "name", | |
| "outputs": [ | |
| { | |
| "name": "", | |
| "type": "string" | |
| } | 
Create the flattened contract code by running the following from the augur-core repo:
npm run build:flattener
cd source/contracts
../../venv/bin/solidity_flattener --allow . external/EscapeHatchController.sol > FlatEscapeHatchController.sol
| pragma solidity ^0.4.20; | |
| contract Controller { | |
| function addToWhitelist(address _target) public returns (bool); | |
| function removeFromWhitelist(address _target) public returns (bool); | |
| function assertIsWhitelisted(address _target) public view returns (bool); | |
| function registerContract(bytes32 _key, address _address, bytes20 _commitHash, bytes32 _bytecodeHash) public returns (bool); | |
| function getContractDetails(bytes32 _key) public view returns (address, bytes20, bytes32); | |
| function unregisterContract(bytes32 _key) public returns (bool); | |
| function lookup(bytes32 _key) public view returns (address); | 
| [ | |
| { | |
| "constant": true, | |
| "inputs": [], | |
| "name": "name", | |
| "outputs": [ | |
| { | |
| "name": "", | |
| "type": "string" | |
| } | 
| contract /home/alex/Work/augur-core/source/contracts/Controlled.sol:Controlled: | |
| ============ Results =========== | |
| EVM Code Coverage: 97.6% | |
| Parity Multisig Bug 2: False | |
| Callstack Depth Attack Vulnerability: False | |
| Transaction-Ordering Dependence (TOD): True | |
| Timestamp Dependency: False | |
| Re-Entrancy Vulnerability: False | |
| Assertion Failure: False | |
| Flow1 | 
| var Augur = require("augur.js"); | |
| var augur = new Augur(); | |
| var ethereumNode = { http: "http://127.0.0.1:8545", ws: "ws://127.0.0.1:8546" }; | |
| augur.connect({ ethereumNode }); | |
| augur.api.Cash.approve({ | |
| _spender: augur.contracts.addresses[augur.rpc.getNetworkID()].Augur, | 
| 0xcf820822fccf17a1241bac4f799d53724aea7138 | 
I hereby claim:
To claim this, I am signing this object: