-
Notifications
You must be signed in to change notification settings - Fork 446
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 example for simple upgradeable contract #698
Comments
@cmichi Hey, are you still working on this? If not, can I give it a go? |
@HCastano Feel free to give it a go, but the whole thing is way more complicated unfortunately, which is why I've put it on hold in April. So the short version is that the issue needs a couple things to be implemented before it can be started. This is because the But the story doesn't stop there, this issue #739 is blocked by paritytech/substrate#8909 unfortunately though. But that one is about to be merged. So what you could do (if you want) is to review the Substrate PR, implement #739 as a follow-up and then implement this issue :-). |
@cmichi why'd you close this. We're close to actually having the primitives ( |
Take a look at the issue description, it refers to the Proxy/Forwarder pattern which I implemented for https://github.com/paritytech/ink/tree/master/examples/proxy. Feel free to create another issue once it's possible to make use of those new primitives. |
We should add an example for a simple upgradeable contract, which uses 3-layers:
delegate
contract which acts as a proxy and contains the address of thelogic
contract to call. Thelogic
contract address can be updated only by an authorized address.logic
contract which contains the business logic.data
/model
contract which exposes access to the data storage.The text was updated successfully, but these errors were encountered: