-
Notifications
You must be signed in to change notification settings - Fork 17
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
Feature - Upgradable trait #12
Comments
@bymoses brilliant! Let me take a look at it 😎 |
There's also comment in tact repo by @wedvjin himself tact-lang/tact#27 (comment) |
@bymoses This idea looks fantastic! Would you be willing to try writing this upgradeable contract pattern example and become one of the open-source contributors to tondynasty-contracts? |
@alan890104 Sure, I've made basic commit at my fork 9e4ac70 . Issue with 11 exit code is there, could you take a look at compiled funC code? I need some assistance here because I don't have experience with this language. |
I've got some matters to handle these days, so I might not be able to check this for you until after Wednesday. In the meantime, could you please take a look at this webpage? |
@bymoses There's a strange issue: when I call the get counter method (a GET method) after upgrading to v3, I encounter an exit code 9. This is quite unusual and seems to suggest there might be something hidden within the mechanism of the Tact language. |
@bymoses Thank you for the time you have invested. After discussing with other teams, instead of incorporating the trait for upgrading contracts into the tondynasty contract, I would suggest that the Tact compiler team include this trait as a built-in feature. This way, everyone can use it upon installation. |
Disclaimer: Hi guys, I'm relative new to TON ecosystem but AFAIK there's no standardized approach for upgradable contracts in Tact.
Motivation
Motivation for this issue is to discuss some approaches for making contract upgrades here because tondynasty is relatively popular and it will be easier to find this information for newcomers.
Solution
A couple weeks ago @wedvjin created proof of concept repo.
Using his example and tondynasty's traits approach I've created a basic Upgradable trait:
Limitations
https://github.com/wedvjin/ton-tact-contract-upgrade?tab=readme-ov-file#issue
@alan890104 @howardpen9 please take a look, maybe you have some different approaches for this
The text was updated successfully, but these errors were encountered: