Skip to content

Instantly share code, notes, and snippets.

[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
@nuevoalex
nuevoalex / EscapeHatchControllerProcedure.md
Last active July 20, 2018 17:28
EscapeHatchController Procedure

EscapeHatchController Procedure

Create Flattened Contract

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

Keybase proof

I hereby claim:

  • I am nuevoalex on github.
  • I am nuevoalex (https://keybase.io/nuevoalex) on keybase.
  • I have a public key ASBcasK32uI68O4iOgYkEl0fkWrwA9xOH6JhQdsGeN8CEgo

To claim this, I am signing this object: