Open julien51 opened 4 months ago
Checking coverage can be done with yarn workspace @unlock-protocol/smart-contracts coverage
@julien51 I want to work on this issue.
@deepsea514 we will attach a 300 USDC bounty here!
@julien51 There are some codes uncovered because of mainnet features. And also deprecated functionalities because of upgrading. This will prevent to make coverage 100%. How should I handle it?
@julien51
I don't understand the usage of UnlockProtocolGoverner.sol
and UnlockProtocolTimeLock.sol
.
It seems they are duplicated.
They are not. Please read our docs and the open Zeppelin docs to distinguish between a governor and a time lock contract.
I mean these contracts.
contracts/tokens/UDT/UnlockProtocolGoverner.sol
and contracts/tokens/UP/UPGoverner.sol
contracts/tokens/UDT/UnlockProtocolTimelock.sol
and contracts/tokens/UP/UPTimlock.sol
And tests for CardPurchaser.sol
is working on mainnet only.
It is skipped by you. @julien51
@julien51 Could you please comment?
@julien51 Here is the lines to prevent the make coverage 100%
Deprecated Impl (L502) Mainnet Feature (L623)
Unused Private Functions (L59)
Unused Private Functions (L60)
Unused Private Functions (L68)
Cannot be called in hardhat because migrate is done only mainnet (L70)
Unused private function (L132)
I have left same comment on the pr
Our smart-contracts have a very good test suite, but the coverage is not 100%. Here is the report as of May 13th:
IMO the priority should be on
Unlock.sol
, as well ascontracts/mixins/
. Once these are cleared, we should look atCardPurchaser.sol
andcontracts/hooks/