Closed varunsrin closed 1 year ago
Coverage after merging varunsrin/storage-registry-review-2 into main will be
98.75% |
---|
File | Stmts | Branches | Funcs | Lines | Uncovered Lines |
---|---|---|---|---|---|
src | |||||
Bundler.sol | 100% | 100% | 100% | 100% | |
FnameResolver.sol | 100% | 100% | 100% | 100% | |
IdRegistry.sol | 100% | 100% | 100% | 100% | |
KeyRegistry.sol | 100% | 100% | 100% | 100% | |
StorageRegistry.sol | 100% | 100% | 100% | 100% | |
src/lib | |||||
Signatures.sol | 100% | 100% | 100% | 100% | |
TransferHelper.sol | 0% | 0% | 0% | 0% | 12, 17, 20, 20, 20 |
TrustedCaller.sol | 100% | 100% | 100% | 100% |
@horsefacts couple of things we could add in (but wanted to run by you):
- Should we hardcode the _initialDeprecationPeriod in the constructor to 1 year? I'm pretty sure we'll want to deploy with that default for now, so we can eliminate a configuration param.
Yeah, I'll make this refactor when I get a sec.
- We can probably use unchecked in a couple of places to reduce a little gas, but is it worth it given your testing of L2 gas usage?
Nah, probably not worth it at this point, based on our L2 profiling.
Motivation
Cleaning up comments and improving test coverage.
Change Summary
Cleaning up comments and improving test coverage.
Merge Checklist
PR-Codex overview
Detailed summary
testFuzzOnlyOwnerCanSetDeprecationTime
to test that only the owner can set the deprecation timestamp.testFuzzSetDeprecationTime
.testFuzzSetDeprecationTimeRevertsInPast
to test that setting the deprecation timestamp in the past reverts.testFuzzCannotSetMinAboveMax
totestFuzzCannotSetMinEqualOrAboveMax
.testFuzzCannotSetMaxBelowMin
totestFuzzCannotSetMaxEqualOrBelowMin
.testFuzzWithdrawal
totestFuzzRentAndWithdraw
.testFuzzWithdrawalRevertsInsufficientFunds
to test that withdrawing an insufficient amount reverts.testFuzzWithdrawalRevertsCallFailed
.testFuzzOnlyTreasurerCanWithdraw
to test that only the treasurer can withdraw funds.testFuzzWithdraw
to test the withdrawal of funds.