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 uups upgradability #8

Merged
merged 10 commits into from
Aug 24, 2023
Merged

Add uups upgradability #8

merged 10 commits into from
Aug 24, 2023

Conversation

Robert-H-Leonard
Copy link
Contributor

@Robert-H-Leonard Robert-H-Leonard commented Aug 17, 2023

Updating the DidRegistry to be an UUPS upgradable contract using openzeppelins library: https://docs.openzeppelin.com/contracts/4.x/api/proxy#UUPSUpgradeable

  • Disabled constructor to prevent upgrade takeover
  • Contracts initial owner is who ever deployed the contract and the contract implementation proxy can only be updated by the owner

Link to proxy address deployed on testnet: https://testnet.bscscan.com/address/0x75837371d170bb8e5b74a968ade00edeaf59ad56#code

Link to implementation contract: https://testnet.bscscan.com/address/0xd506307bf5d08ef0965acdfb16356e5a8c214f58#code

Using openzeppelin defender to manage the contract looks like this:

Screen.Recording.2023-08-17.at.7.26.18.PM.mov

@Robert-H-Leonard Robert-H-Leonard changed the title (WIP) Add uups upgradability Add uups upgradability Aug 17, 2023
.gitmodules Outdated Show resolved Hide resolved
@rado0x54
Copy link
Contributor

Apart from the submodule comment from Julian this looks good to me!

@Robert-H-Leonard Robert-H-Leonard merged commit af07426 into main Aug 24, 2023
@Robert-H-Leonard Robert-H-Leonard deleted the add-uups-upgrdability branch August 26, 2023 14:11
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.

3 participants