Skip to content
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

Open
wants to merge 7 commits into
base: development
Choose a base branch
from

Conversation

Zitzak
Copy link
Contributor

@Zitzak Zitzak commented Dec 6, 2022

What has been done?

  • Remove onlyOwner() modifier from LBPManagerFactory.deployLBPManager()
  • Renamed LBPManagerFactory -> LBPManagerFactoryNoAccessControl
  • Added script to deploy contract
  • Deployed contracts to Celo and Goerli
  • Export ABIs

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

  • Add version number to contract
  • Add URL to find Balancer/Symmetric deployment addresses
  • Exported ABIs again

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #2168: LBPFactoryNoAccessControl.

@Zitzak Zitzak self-assigned this Dec 6, 2022
@Zitzak Zitzak requested a review from hiaux0 December 6, 2022 19:47
@Zitzak Zitzak changed the base branch from main to development December 6, 2022 19:53
@PrimeDAO PrimeDAO deleted a comment from codecov bot Dec 6, 2022
@codecov
Copy link

codecov bot commented Dec 6, 2022

Codecov Report

Base: 63.84% // Head: 61.12% // Decreases project coverage by -2.72% ⚠️

Coverage data is based on head (1e7eafc) compared to base (4f2879e).
Patch coverage: 0.00% of modified lines in pull request are covered.

❗ Current head 1e7eafc differs from pull request most recent head 1c476a5. Consider uploading reports for the commit 1c476a5 to get more accurate results

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     
Impacted Files Coverage Δ
contracts/lbp/LBPManagerFactoryNoAccessControl.sol 0.00% <0.00%> (ø)

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

exports/celo.json Outdated Show resolved Hide resolved
exports/goerli.json Outdated Show resolved Hide resolved
@Zitzak Zitzak requested a review from hiaux0 December 8, 2022 13:33
Copy link
Contributor

@hiaux0 hiaux0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Options

  1. Don't actually do versioning for LBP
  2. IF do versioning, then need to clean up some exports, .jsons, renaming, and version number

@@ -16,13 +16,14 @@ pragma solidity 0.8.17;

Copy link
Contributor

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"?

Copy link
Contributor

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

Copy link
Contributor Author

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";
Copy link
Contributor

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
contract LBPManagerFactory is CloneFactory, Ownable {
contract LBPManagerFactoryV1 is CloneFactory, Ownable {

@@ -0,0 +1,785 @@
{
Copy link
Contributor

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": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

both contracts are the same, aren't they?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants