Repository navigation
Update Indigo to v3 - #426
Conversation
|
That is not typically how it works, we maintain old versions. I would rather say can you check old version - if it is correct, if not fix it and then add a new version. In DeFi, versions stay forever because liquidity maybe locked still with older versions (no?), unless of course Indigio has admin keys and moves all the liquidity... (which I assume is not the case?) |
There is not liquidity in any old version script, and that is not because Indigo has admin keys, but because Indigo has upgrade procedures in place where liquidity migrates following on-chain rules governed by the DAO... In any case, here is what I have done: I have mostly added new records to the old versions (as many authentication minting policies that are used throughout all the versions, even from v1, were not registered) but haven't deleted any old scripts were liquidity lived. It might seem so as the scripts for the v2 release are "deleted", but in reality they are just added as a second version of the v1 scripts, instead of new scripts with "version 1". So, for example, before there was a CDP script for v1 (with "version: 1") and another CDP script for v2 (also with "version: 1"). Since the script serves the same purpose and share the same name (and liquidity migrated from one to the other), I thought it would be better to have it as a new version instead of a brand new script. You can check that all the v2 script hashes are still preserved. This also allows to build on top of it and add the v2.1 and v3 releases, keeping things more tidy. If this is a problem and the old v1 and v2 releases are to be treated as immutable (even if they are not as accurate as they could be), then I can keep the old records and strictly add new releases to them. |
|
If you use upgradable smart contracts and liquidity is automatically migrated, I see no big issue, speaking as a purist, I would still like to have a full history on this, because this repository is also used for cases where some old transaction interacted with former version of Indigio, so yes, if this is not too much trouble on your side. Lets have this as separate versions and assume it is immutable - for historical reasons. Let me know if this is an issue, I hope not... For instance Eternl wallet uses this repo and people may have old transactions with older Indigio contracts. |
|
Before we make any further changes, and because the changes made here so far can be a bit confusing, we would like to try our best to communicate them so we are on the same page and there are no misunderstandings. This will be as detailed of an explanation as possible, so it might be a bit long, but we hope this will help bring clarity and better advise on next steps. These are the changes made in this PR: For release number
For release number
Therefore, the changes made for Instead of: This allows us to add newer versions of the protocol such as Instead of: As the protocol evolves and new releases are added, it gets messier and harder to navigate and understand if we add a whole new script reference for each upgraded script. This is why we are restructuring the registry entry. History is not being deleted, as the old hashes from outdated versions are still kept, just reorganised as newer versions instead of new scripts. So our natural question for you is the following: is this new approach messing up with your maintained records and the display for users of old versions of the Indigo Protocol, or is it fine as the script hashes are still being registered, just under a different structure? Finally, following this new structure, releases Please let us know if this explanation changes your view on the appropriateness or correctness of this PR or if you still would like to see further changes made. |
No description provided.