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

Add owner #43

Merged
merged 8 commits into from
Jul 6, 2023
Merged

Add owner #43

merged 8 commits into from
Jul 6, 2023

Conversation

MerlinEgalite
Copy link
Contributor

I have several questions/thoughts:

  • should we create a dependencies folder?
  • Classic Ownable(or Owned) or Ownable2Step #15 I would lean toward the simplest way of doing this but it's debtable
  • I decided not to put msg.sender as owner so that it can easily be deployed by a deployer contract using CREATE2 without transferring the ownership.

Depending on the answer of the above questions I can move forward with the related features requiring an owner (#41, #29)

Copy link
Contributor

@MathisGD MathisGD left a comment

Choose a reason for hiding this comment

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

NB: Blue does not even need an owner now, so we might temporize a little bit this one.

src/dependencies/Owned.sol Outdated Show resolved Hide resolved
src/dependencies/Owned.sol Outdated Show resolved Hide resolved
src/dependencies/Owned.sol Outdated Show resolved Hide resolved
src/dependencies/Owned.sol Outdated Show resolved Hide resolved
src/dependencies/Owned.sol Outdated Show resolved Hide resolved
src/Blue.sol Outdated Show resolved Hide resolved
src/Blue.sol Outdated Show resolved Hide resolved
src/dependencies/Owned.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@MathisGD MathisGD left a comment

Choose a reason for hiding this comment

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

Also it lacks some testing

@MerlinEgalite
Copy link
Contributor Author

NB: Blue does not even need an owner now, so we might temporize a little bit this one.

Yes that's why I wrote:

Depending on the answer of the above questions I can move forward with the related features requiring an owner

@MerlinEgalite
Copy link
Contributor Author

MerlinEgalite commented Jul 5, 2023

The last 2 commits are not verified, I need to fix that

EDIT: done

pakim249CAL
pakim249CAL previously approved these changes Jul 5, 2023
test/forge/Blue.t.sol Show resolved Hide resolved
test/forge/Blue.t.sol Show resolved Hide resolved
src/Ownable.sol Outdated Show resolved Hide resolved
src/Ownable.sol Outdated Show resolved Hide resolved
src/Ownable.sol Outdated Show resolved Hide resolved
src/Ownable.sol Outdated Show resolved Hide resolved
src/Ownable.sol Outdated Show resolved Hide resolved
src/Ownable.sol Outdated Show resolved Hide resolved
@MathisGD
Copy link
Contributor

MathisGD commented Jul 6, 2023

I would like to see an alternative version, that's included in Blue.sol directly (similar to UniV3)

@MathisGD MathisGD mentioned this pull request Jul 6, 2023
@MathisGD
Copy link
Contributor

MathisGD commented Jul 6, 2023

Example in #67

Rubilmax
Rubilmax previously approved these changes Jul 6, 2023
makcandrov
makcandrov previously approved these changes Jul 6, 2023
@MerlinEgalite MerlinEgalite dismissed stale reviews from makcandrov and Rubilmax via d36f6a0 July 6, 2023 14:19
@MerlinEgalite MerlinEgalite merged commit 2ee005b into dev Jul 6, 2023
1 check passed
@MerlinEgalite MerlinEgalite deleted the feat/owner branch July 6, 2023 17:25
@MathisGD MathisGD mentioned this pull request Jul 6, 2023
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Classic Ownable(or Owned) or Ownable2Step
6 participants