GithubHelp home page GithubHelp logo

godsflaw / tbtc-makerdao-mcd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from keep-network/tbtc-makerdao-mcd

0.0 2.0 0.0 975 KB

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

Home Page: https://tbtc.network

License: GNU Affero General Public License v3.0

Makefile 1.63% Shell 98.37%

tbtc-makerdao-mcd's Introduction

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

tbtc-makerdao-mcd's People

Contributors

gbalabasquer avatar liamzebedee avatar godsflaw avatar brianmcmichael avatar zdumitru avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.