Skip to content

Instantly share code, notes, and snippets.

@nuevoalex
Last active July 20, 2018 17:28
Show Gist options
  • Save nuevoalex/17bb1c005bb22b28f29bdd757f5fa692 to your computer and use it in GitHub Desktop.
Save nuevoalex/17bb1c005bb22b28f29bdd757f5fa692 to your computer and use it in GitHub Desktop.
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

Deploy Contract

Deploy the contract in your way of choosing and note the compiler and optimization settings for verification on etherscan which should be done right after.

Initialize and Transfer Ownership of Controller

Initialize the EscapeHatchController by setting the address of the Controller contract:

EscapeHatchController.setController("0xb3337164e91b9f05c87c7662c7ac684e8e0ff3e7")

Transfer ownership of the Controller to the EscapeHatchController:

Controller.transferOwnership("0xTheAdddressOfTheEscapeHatchController")

You're done!

Keep that key safe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment