Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/makerdao/dss-simulation-scripts


https://github.com/makerdao/dss-simulation-scripts

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# dss-simulation-scripts

## Start the server

```
./bin/start.sh
```

## Running Scripts

### Trigger ES
```
HARDHAT_NETWORK=localhost ./scripts/cageMCD.js
```

### Void the OSM for ETH
```
HARDHAT_NETWORK=localhost ./scripts/voidOSM.js
```

### warp ahead by seconds
```
HARDHAT_NETWORK=localhost ./scripts/warp.js 7200
```

### set the OSM price for an asset
```
HARDHAT_NETWORK=localhost ./scripts/setOSMPrice.js "ETH-A" ${PIP_ETH} 4000
```

## debug notes

- Set the RPC host to be an archive node in `hardhat.config.js`.

- Set the `ETH_RPC_URL` to be the same archive node.

- Set the block where the error happened in the `hardhat.config.js` file.

- make point client at http://127.0.0.1:8545/

- reproduce error if you can. You can see the error message in the hardhat
output. If you get the bytes for the transaction, save it to a file called
`calldata` and then you can send it with `seth`:
```
seth send $(cat ./calldata)
```

- Once you have the failed transaction, you can either step through the debug
console with:
```
seth debug
```

or look at the trace output with:
```
seth run-tx 0x6ecf099be8178c9a2e7d67f57f3a141e13f2393f15fff35e577fd1b3f3fc697d --trace
```