Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makerdao/dss-simulation-scripts
https://github.com/makerdao/dss-simulation-scripts
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/makerdao/dss-simulation-scripts
- Owner: makerdao
- License: apache-2.0
- Created: 2021-10-08T18:49:47.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T15:46:18.000Z (almost 2 years ago)
- Last Synced: 2023-04-05T23:40:53.003Z (almost 2 years ago)
- Language: JavaScript
- Size: 1.64 MB
- Stars: 2
- Watchers: 5
- Forks: 4
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```