Rari-Capital / fuse-simulations

DappTools project for simulating Fuse parameter changes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fuse-simulations

DappTools project to simulate Fuse parameter changes.

Installation

Toolset

  • First, install Nix:
# User must be in sudoers
curl -L https://nixos.org/nix/install | sh

# Run this or login again to use Nix
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
  • Then, install DappTools:
curl https://dapp.tools/install | sh

Project Setup

  • First, clone the repo locally:
git clone https://github.com/rari-capital/fuse-simulations
cd fuse-simulations
  • Then, install the project's dependencies:
make
  • Finally, rename .env.example to .env and set ETH_RPC_URL to a valid Ethereum RPC URL:
# Inside .env

ETH_RPC_URL=https://eth-mainnet.alchemyapi.io/v2/YOUR_ALCHEMY_KEY_HERE

Simulating

  • First, update Simulations.t.sol to perform the actions you want to simulate on a mainnet fork.

  • Then, simply run dapp test to view the results of your simulation.

About

DappTools project for simulating Fuse parameter changes.

License:GNU Affero General Public License v3.0


Languages

Language:Solidity 93.1%Language:Shell 4.2%Language:Nix 1.4%Language:Makefile 1.2%