-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [sc-2168] LBPFactoryNoAccessControl #116
base: development
Are you sure you want to change the base?
Conversation
Removed the onlyOwner() modifier from the function deployLBPManager. This was done because the Celo Safe is flaky so it has been removed from the LBPManager creation flow.
This pull request has been linked to Shortcut Story #2168: LBPFactoryNoAccessControl. |
Codecov ReportBase: 63.84% // Head: 61.12% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## development #116 +/- ##
===============================================
- Coverage 63.84% 61.12% -2.73%
===============================================
Files 9 10 +1
Lines 426 445 +19
Branches 106 110 +4
===============================================
Hits 272 272
- Misses 154 173 +19
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Options
- Don't actually do versioning for LBP
- IF do versioning, then need to clean up some exports, .jsons, renaming, and version number
@@ -16,13 +16,14 @@ pragma solidity 0.8.17; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should rename this file too to include "V1"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BUT, I'm also fine with maybe not versioning LBP for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not add the version to the standard LBPManagerFactory because for now, we will only use the other one
|
||
/** | ||
* @title LBPManager Factory | ||
* @dev Governance to create new LBPManager contracts. | ||
*/ | ||
contract LBPManagerFactory is CloneFactory, Ownable { | ||
bytes6 public version = "2.1.0"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expected to see "1.0.0" here, since LBP is still v1?
I also expect LBP and Seed versioning to be independent.
MAYBE we can find a case to tie the versions together, but I doubt that.
@@ -16,13 +16,14 @@ pragma solidity 0.8.17; | |||
|
|||
import "../utils/CloneFactory.sol"; | |||
import "@openzeppelin/contracts/access/Ownable.sol"; | |||
import "./LBPManager.sol"; | |||
import "./LBPManagerV1.sol"; | |||
|
|||
/** | |||
* @title LBPManager Factory | |||
* @dev Governance to create new LBPManager contracts. | |||
*/ | |||
contract LBPManagerFactory is CloneFactory, Ownable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contract LBPManagerFactory is CloneFactory, Ownable { | |
contract LBPManagerFactoryV1 is CloneFactory, Ownable { |
@@ -0,0 +1,785 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file should be removed for the "V1" one?
@@ -2,6 +2,1522 @@ | |||
"name": "celo", | |||
"chainId": "42220", | |||
"contracts": { | |||
"LBPManager": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What has been done?
onlyOwner()
modifier fromLBPManagerFactory.deployLBPManager()
LBPManagerFactory
->LBPManagerFactoryNoAccessControl
Additional Notes
For the reviewer
This branch will get merged into the development branch, not in the main branch. The reason for this is that the code coverage would otherwise be lowered. In this way, we can make sure that the code coverage is 100% before we merge development into main
Front End change
The frontend should pull the ABIs from the development branch once this is merged. Only once we move to production should the FE pull from the main branch
Implemented review comments