-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C4 audit fixes and mainnet deployment (#63)
C4 audit fixes and mainnet deployment to 0x00000000000000447e69651d841bD8D104Bed493
- Loading branch information
Showing
14 changed files
with
245 additions
and
171 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
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 |
---|---|---|
@@ -1,16 +1,26 @@ | ||
No files changed, compilation skipped | ||
|
||
Running 1 test for test/GasBenchmark.t.sol:GasBenchmark | ||
[32m[PASS][0m testGas(address,bytes32) (runs: 256, μ: 13573356, ~: 13573452) | ||
Test result: [32mok[0m. [32m1[0m passed; [31m0[0m failed; [33m0[0m skipped; finished in 247.64ms | ||
| src/DelegateRegistry.sol:DelegateRegistry contract | | | | | | | ||
|----------------------------------------------------|-----------------|--------|--------|--------|---------| | ||
| Deployment Cost | Deployment Size | | | | | | ||
| 1995913 | 10001 | | | | | | ||
| 2011327 | 10078 | | | | | | ||
| Function Name | min | avg | median | max | # calls | | ||
| checkDelegateForAll | 2910 | 3106 | 3106 | 3303 | 2 | | ||
| checkDelegateForContract | 5399 | 5807 | 5807 | 6216 | 2 | | ||
| checkDelegateForERC1155 | 7840 | 8458 | 8458 | 9077 | 2 | | ||
| checkDelegateForERC20 | 7790 | 8402 | 8402 | 9014 | 2 | | ||
| checkDelegateForERC721 | 7883 | 8515 | 8515 | 9148 | 2 | | ||
| checkDelegateForAll | 3002 | 3198 | 3198 | 3395 | 2 | | ||
| checkDelegateForContract | 5491 | 5899 | 5899 | 6308 | 2 | | ||
| checkDelegateForERC1155 | 7932 | 8550 | 8550 | 9169 | 2 | | ||
| checkDelegateForERC20 | 7882 | 8494 | 8494 | 9106 | 2 | | ||
| checkDelegateForERC721 | 7975 | 8607 | 8607 | 9240 | 2 | | ||
| delegateAll | 135825 | 135825 | 135825 | 135825 | 2 | | ||
| delegateContract | 114433 | 125383 | 125383 | 136333 | 2 | | ||
| delegateERC1155 | 5710 | 93282 | 93282 | 180854 | 2 | | ||
| delegateERC20 | 5357 | 81865 | 81865 | 158374 | 2 | | ||
| delegateERC721 | 136921 | 147871 | 147871 | 158821 | 2 | | ||
| multicall | 404294 | 404294 | 404294 | 404294 | 1 | | ||
| multicall | 404294 | 404294 | 404294 | 404294 | 1 | | ||
|
||
|
||
|
||
|
||
Ran 1 test suites: [32m1[0m tests passed, [31m0[0m failed, [33m0[0m skipped (1 total tests) |
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
ds-test/=lib/forge-std/lib/ds-test/src/ | ||
erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/ | ||
forge-std/=lib/forge-std/src/ | ||
murky/=lib/murky/src/ | ||
openzeppelin-contracts/=lib/openzeppelin-contracts/ | ||
openzeppelin/=lib/openzeppelin-contracts/contracts/ | ||
openzeppelin/=lib/openzeppelin-contracts/contracts/ |
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
Oops, something went wrong.