nduchak / spells-goerli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 DssSpellCollateralOnboarding.sol.
  2. Update the values in src/tests/collaterals.sol
  3. uncomment the onboardNewCollaterals(); in the actions() function in DssSpellAction

Build

$ make

Test (DappTools with 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

About

License:GNU Affero General Public License v3.0


Languages

Language:Solidity 99.6%Language:Shell 0.2%Language:Python 0.2%Language:Makefile 0.0%Language:Nix 0.0%