/spells-goerli-05-aug-2022

adding stratfi mkr vesting

Primary LanguageSolidityGNU Affero General Public License v3.0AGPL-3.0

spells-goerli

Build Status

Staging repo for MakerDAO's Goerli executive spells.

Instructions

Getting Started

$ git clone git@github.com:makerdao/spells-goerli.git
$ dapp update

Adding Collaterals to the System

If the weekly executive needs to onboard a new collateral:

  1. Update the onboardNewCollaterals() function in Goerli-DssSpellCollateral.sol
  2. Update the values in src/test/config.sol
  3. Add onboardNewCollaterals(); in the actions() function in DssSpellAction

Removing Collaterals from the System

If the weekly executive needs to offboard collaterals:

  1. Update the offboardCollaterals() function in Goerli-DssSpellCollateral.sol
  2. Update the values in src/test/config.sol
  3. Add offboardCollaterals(); in the actions() function in DssSpellAction

Build

$ make

Test (DappTools without Optimizations)

Set ETH_RPC_URL to a Goerli node.

$ export ETH_RPC_URL=<Goerli URL>
$ make test

Test (Forge without Optimizations)

Prerequisites

  1. Install Rust.
  2. Install Forge.

Operation

Set ETH_RPC_URL to a Goerli node.

$ export ETH_RPC_URL=<Goerli URL>
$ make test-forge

Deploy

Set ETH_RPC_URL to a Goerli node and ensure ETH_GAS is set to a high enough number to deploy the contract.

$ export ETH_RPC_URL=<Goerli URL>
$ export ETH_GAS=8000000
$ export ETH_GAS_PRICE=$(seth --to-wei 3 "gwei")
$ make deploy