-
Notifications
You must be signed in to change notification settings - Fork 208
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
move atomicTransfer from helper into Zoe #6679
Comments
Since #3850 is about the Zoe API and not about usage in some contracts, I re-opened it. I don't think it's worth tracking this separately; I suggest closing this as a dup. |
#3850 is generic and has nothing specific to say about this approach, or how close it is to being finished. This issue is very focussed and indicates what work remains. It's the one I want to look at when I think about what to do next. |
fair enough. |
The work involved includes |
Is there more of that to do? #6577 did a pretty thorough job of it, AFAICT. |
I don't know of anything that was missed, but the old methods are still there, so we can check before closing the issue. |
#7900 added the functionality into ZCF. |
I believe there are no remaining contracts in There are still docs, comments and tests that refer to it. I will clean some of that up. When we remove the method from ZCF, we can get any that remains. Is there any reason to believe there's any code in other repos (other than abandoned projects) that continues to use |
I can't think of any relevant code that might be using it. We could do an audit of mainnet bundles to be certain. It seems straightforward, if somewhat laborious. |
There aren't very many contracts on MainNet (and fewer that do any allocation), so it shouldn't take long. I've been thinking of making a list of the versions of code in each vat. My main interest is tracking which version of ZCF got included in each contract as they upgraded, but it would also be helpful to track contract bundles. |
What is the Problem Being Solved?
#6577 added a new way to reallocate assets between Seats. In order to reduce the transition cost, the initial version was done as a helper method rather than building it into Zoe, and the previous approach (stagings) continues to be supported.
Description of the Design
Remove the support for the old approach from Zoe, and move the implementation of the new approach into
ZCF
.atomicRearrange
becomes a method onZCF
.Security Considerations
Better usability and robustness for developers. The only security implications are in the migration.
Test Plan
#6577 didn't add tests. It instead relied on contract's usage to exercise the new API. We should add tests as we move it into Zoe.
Action Steps
copying from a comment lower down so github can help with tracking:
The work involved includes
and then later
Tasks
The text was updated successfully, but these errors were encountered: