-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
163 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,28 +9,38 @@ Enzyme is an Ethereum-based protocol for decentralized on-chain asset management | |
|
||
If you find a vulnerability that may affect live deployments, you can submit a report via: | ||
|
||
A. Immunefi(https://immunefi.com/bounty/enzymefinance/), or | ||
A. Immunefi (https://immunefi.com/bounty/enzymefinance/), or | ||
|
||
B. Direct email to [[email protected]](mailto:[email protected]) | ||
|
||
Please **DO NOT** open a public issue. | ||
|
||
## Using this Repository | ||
|
||
### A Tale of Two Frameworks | ||
|
||
:construction: | ||
|
||
This repo is currently in-flux for a gradual move from Hardhat to Foundry. All production contracts continue to live in `contracts/persistent/` and `contracts/release/` (deployed contracts [here](https://docs.enzyme.finance/developers/contracts)). | ||
This repository has been migrated from Hardhat to Foundry. All production contracts continue to live in `contracts/persistent/` and `contracts/release/` (deployed contracts [here](https://docs.enzyme.finance/developers/contracts)). | ||
|
||
If you are looking for the legacy test suite & test coverage please refer to the [hardhat branch](https://github.com/enzymefinance/protocol/tree/hardhat). | ||
|
||
### Prerequisites | ||
|
||
Make sure to have the following installed: | ||
#### Automatic | ||
|
||
This repository comes with a reproducible development environment based on `nix` and `direnv`. | ||
|
||
For the best possible developer experience, make sure you have the following installed: | ||
|
||
- [nix](https://nix.dev) | ||
- [direnv](https://direnv.net) | ||
|
||
Once you have these installed, your isolated local development environment will be set up automatically whenever you navigate to this directory. | ||
|
||
#### Manual | ||
|
||
If you don't want to use `nix`, make sure to have the following installed: | ||
|
||
- [foundry](https://github.com/foundry-rs/foundry) | ||
- [make](https://www.gnu.org/software/make/) | ||
- [make](https://www.gnu.org/software/make) | ||
- [bun](https://bun.sh) | ||
|
||
Then, clone this repository: | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; | ||
utils.url = "github:numtide/flake-utils"; | ||
foundry.url = "github:shazow/foundry.nix"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, utils, foundry, ... }: | ||
utils.lib.eachDefaultSystem (system: let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
overlays = [ foundry.overlay ]; | ||
}; | ||
in { | ||
formatter = pkgs.alejandra; | ||
|
||
devShells = { | ||
default = pkgs.mkShell { | ||
buildInputs = with pkgs; [ | ||
bun | ||
foundry-bin | ||
gnumake | ||
]; | ||
}; | ||
}; | ||
}); | ||
} |