Spell contract to deploy a new collateral type (TBTC) in the DSS system.
Clone the repo.
git clone https://github.com/keep-network/tbtc-makerdao-mcd --recursive --quiet
Dapptools is the MakerDAO toolset for Ethereum transactions. We need to install an older version, as the newer one is broken (see this issue for more).
For ease of setup, we'll install Dapptools-latest and then proceed to rebuild an older version.
curl https://dapp.tools/install | sh
Now Nix + dapptools should be installed, let's install the older (working) version.
cd dapptools/
git submodule update --init --remote --quiet
nix-env -f . -iA dapp seth solc hevm ethsign
It should be installed. Test by running which seth
, and if after reloading your terminal it fails, add . $HOME/.nix-profile/etc/profile.d/nix.sh
to your profile.
There are scripts which automate the majority of the steps found in the original guide.
Note: scripts are configured to use Ropsten by default, though with some find+replace you can configure Kovan too.
-
Run
source account.sh
to configure a Ropsten account preloaded with Ether, and some environment variables for Dapptools. -
Compile the spell contracts.
-
dapp update dapp build --extract
- Deploy the spell and slate it for voting. This should output the spell contract address. We'll need to store this into
$SPELL
afterwards.
./1-deploy-spell.sh
-
Wait for the Spell to be elected. This is where your friendly neighbourhood MKR whale can help. 😉
-
Schedule Spell, Wait for Pause delay (0 on Ropsten, 5 minutes on mainnet), Cast Spell
./2-cast-spell.sh $SPELL