chore: add gas-report
This commit is contained in:
parent
64df3b71ea
commit
706a5c9163
|
@ -0,0 +1,18 @@
|
|||
| script/Deploy.s.sol:Deploy contract | | | | | |
|
||||
|-------------------------------------|-----------------|--------|--------|--------|---------|
|
||||
| Deployment Cost | Deployment Size | | | | |
|
||||
| 320782 | 2729 | | | | |
|
||||
| Function Name | min | avg | median | max | # calls |
|
||||
| run | 221942 | 221942 | 221942 | 221942 | 1 |
|
||||
|
||||
|
||||
| src/Foo.sol:Foo contract | | | | | |
|
||||
|--------------------------|-----------------|-----|--------|-----|---------|
|
||||
| Deployment Cost | Deployment Size | | | | |
|
||||
| 20275 | 131 | | | | |
|
||||
| Function Name | min | avg | median | max | # calls |
|
||||
| id | 235 | 235 | 235 | 235 | 1 |
|
||||
|
||||
|
||||
|
||||
|
|
@ -8,6 +8,7 @@ Ensure you completed **all of the steps** below before submitting your pull requ
|
|||
|
||||
- [ ] Added natspec comments?
|
||||
- [ ] Ran `forge snapshot`?
|
||||
- [ ] Ran `pnpm gas:report`?
|
||||
- [ ] Ran `pnpm lint`?
|
||||
- [ ] Ran `forge test`?
|
||||
- [ ] Ran `pnpm verify`?
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
"verify": "certoraRun certora/certora.conf",
|
||||
"lint:sol": "forge fmt --check && pnpm solhint {script,src,test,certora}/**/*.sol",
|
||||
"prettier:check": "prettier --check **/*.{json,md,yml} --ignore-path=.prettierignore",
|
||||
"prettier:write": "prettier --write **/*.{json,md,yml} --ignore-path=.prettierignore"
|
||||
"prettier:write": "prettier --write **/*.{json,md,yml} --ignore-path=.prettierignore",
|
||||
"gas-report": "forge test --gas-report 2>&1 | (tee /dev/tty | awk '/Test result:/ {found=1; buffer=\"\"; next} found && !/Ran/ {buffer=buffer $0 ORS} /Ran/ {found=0} END {printf \"%s\", buffer}' > .gas-report)"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue