Skip to content

Spell contract to deploy a new collateral type (TBTC) in the DSS system.

License

Notifications You must be signed in to change notification settings

keep-network/tbtc-makerdao-mcd

Repository files navigation

Dss Add Ilk Spell

Spell contract to deploy a new collateral type (TBTC) in the DSS system.

Resources

Steps:

Clone the repo.

git clone https://github.com/keep-network/tbtc-makerdao-mcd --recursive --quiet

Install Nix + Dapptools

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.

Run

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.

  1. Run source account.sh to configure a Ropsten account preloaded with Ether, and some environment variables for Dapptools.

  2. Compile the spell contracts.

  • dapp update
    dapp build --extract
  1. 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
  1. Wait for the Spell to be elected. This is where your friendly neighbourhood MKR whale can help. 😉

  2. Schedule Spell, Wait for Pause delay (0 on Ropsten, 5 minutes on mainnet), Cast Spell

  • ./2-cast-spell.sh $SPELL

About

Spell contract to deploy a new collateral type (TBTC) in the DSS system.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published