Skip to content

myfridayio/dss-simulation-scripts

 
 

Repository files navigation

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 <TO> $(cat ./calldata)
  • Once you have the failed transaction, you can either step through the debug console with:
seth debug <tx hash>

or look at the trace output with:

seth run-tx 0x6ecf099be8178c9a2e7d67f57f3a141e13f2393f15fff35e577fd1b3f3fc697d --trace

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.8%
  • Shell 36.3%
  • Solidity 1.9%