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

Macro for upgradable contracts #11

Closed
roshaans opened this issue Jul 21, 2022 · 5 comments · Fixed by #84
Closed

Macro for upgradable contracts #11

roshaans opened this issue Jul 21, 2022 · 5 comments · Fixed by #84
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@roshaans
Copy link

It would be very neat to have a standardized way of upgrading a smart contract and migrating its state to mitigate common security vulnerabilities.

  • Should provide a callback for calling a migration state
  • Can only be executed with a full access key or by the contract owner.
  • Possibly support storing the previous state of the contract in case of an immediate rollback
@encody
Copy link
Member

encody commented Aug 2, 2022

Depends on #16

@encody encody self-assigned this Aug 2, 2022
@encody encody added the enhancement New feature or request label Aug 2, 2022
@encody encody added this to the Audit-ready milestone Aug 20, 2022
@kenobijon kenobijon self-assigned this Aug 22, 2022
@kenobijon
Copy link
Contributor

Denys recommended checking out this SputnickDAO implementation of Upgradability: https://github.com/near-daos/sputnik-dao-contract/blob/main/README.md#upgradability

@encody
Copy link
Member

encody commented Sep 19, 2022

#48

@encody
Copy link
Member

encody commented Oct 5, 2022

@nearken Is the macro for upgradable contracts done?

@kenobijon
Copy link
Contributor

no, reopening

@kenobijon kenobijon reopened this Oct 5, 2022
@encody encody linked a pull request Nov 10, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants