-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: compound borrow gas profiling (#94)
* feat: compound borrow gas profiling Signed-off-by: Reinis Martinsons <reinis@umaproject.org> * fix Signed-off-by: Reinis Martinsons <reinis@umaproject.org> * fix Signed-off-by: Reinis Martinsons <reinis@umaproject.org> --------- Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
- Loading branch information
1 parent
35d5f7c
commit d580565
Showing
30 changed files
with
827 additions
and
59 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 |
---|---|---|
|
@@ -19,3 +19,4 @@ lcov.info | |
# Scripts | ||
scripts/node_modules | ||
scripts/dist | ||
scripts/contract-types |
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,4 @@ | ||
# Copy this template to .env and fill in the values below | ||
TENDERLY_USER= | ||
TENDERLY_PROJECT= | ||
TENDERLY_ACCESS_KEY= |
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,38 @@ | ||
# OEVShare scripts | ||
|
||
This package contains scripts for gas profiling of OEVShare. | ||
|
||
## Installation | ||
|
||
```bash | ||
yarn | ||
``` | ||
|
||
## Build | ||
|
||
Start with generating contract typings: | ||
|
||
```bash | ||
yarn generate-contract-types | ||
``` | ||
|
||
Then compile the scripts: | ||
|
||
```bash | ||
yarn build | ||
``` | ||
|
||
## Usage | ||
|
||
Make sure to copy `.env.example` to `.env` and fill in the required values. | ||
|
||
Run gas profiling: | ||
|
||
```bash | ||
yarn gas-profiling | ||
``` | ||
|
||
The script will create Tenderly forks that have Note starting with `Generated: 0x...`. This is used by the script to | ||
identify the forks that it had created and delete them when creating the same type of simulation. If you are sharing | ||
Tenderly forks with other people, it is better to remove the `Generated: 0x...` Note from the fork through Tenderly | ||
UI. |
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
Oops, something went wrong.