-
Notifications
You must be signed in to change notification settings - Fork 212
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
remove reallocate from ZCF #6678
Comments
How is this a contract-api-change? Oh... I guess the label wasn't clear. It doesn't mean changes to things like the Zoe API. It means changes to the external API of contracts such that clients (such as web UIs) are affected. I updated the description. |
#6678 will remove it completely but meanwhile we can ensure it's only used by ZCF
I think Mergify got confused by "This doesn't close #6678" in the PR. |
I've had this problem several times. I hate "guess my syntax" user interfaces. Do we know what the actual syntax is for a PR to say that it would close an Issue, so that we can reliably avoid saying that when it is not what we want to say? |
I was wrong about Mergify. GitHub attributes the action to the account that merged the PR. The magic syntax is https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword |
Thanks, that explains it. The cases I recently ran into were at #5903 (comment) due to the text
Apparently, the use of the word "fix" followed by the bug number was an adequate signal. |
Next steps:
The first three can be in a single release, or successive releases. There should be at least a short period between those and removing the older approach. |
update docs too |
Already in progress. |
@turadg, In order to install the change to ZCF on chain, we have to modify Zoe to support a mutable version of ZCF (#7946), and then we have to provide scripts that can be invoked by core-eval (#7966). This is complicated by the fact that 7966 will be merged into a state of the tree that already includes the new Zoe & ZCF, so its accompanying test doesn't actually verify that an upgrade from the status quo ante to the goal state will succeed. In order to validate that, we have a separate PR (#7969). It includes a copy of the same set of tooling, and installs bundles built by 7966 representing the target state of Zoe & ZCF. The test that validates the upgrade has some minor validations between 7966 and 7969, since the latter installs pre-built bundles (and the test results are expected to be slightly different.) My expectation is that that we'll now proceed to review and merge #7900, #7946, and #7966. The test in #7969 is intended to be convincing validation that the code in 7900 and 7946 will succeed when they are applied on-chain. A follow-up task is to build an upgrade test based on 7969 that applies the upgrade in the docker test environment. After that, the remaining steps of urging developers to migrate and removing support tor |
After #7900, #7946, and #7966, the following work will remain:
|
Thanks for writing that up @Chris-Hibbert . I put the "get onto chain" requirements into #7982 |
refs: #6678 refs: #7900 ## Description update VaultFactory to use zcf.atomicRearrange. This change **must not** be pushed to the chain before #7900. ### Security Considerations None ### Scaling Considerations None ### Documentation Considerations None ### Testing Considerations None ### Release considerations This requires a change to Zoe (#7900). Since VaultFactory gets upgraded separately from Zoe, this is staged as a separate PR. Once #7900 is on chain, this update can be made, even if it's in the same release cycle, as long as Zoe is upgraded first. This change is independent of changes to other contracts.
refs: #6678 refs: #7900 ## Description update Auction to use `zcf.atomicRearrange()`. This change must not be pushed to the chain before #7900. ### Security Considerations None ### Scaling Considerations None ### Documentation Considerations None ### Testing Considerations None ### Release considerations This requires a change to Zoe (#7900). Since the Auction gets upgraded separately from Zoe, this is staged as a separate PR. Once #7900 is on chain, this update can be made, even if it's in the same release cycle, as long as Zoe is upgraded first. This change is independent of changes to other contracts.
refs: #6678 ## Description We've already marked zcf.reallocate() as deprecated in many places, but I found another while searching on our docs site. https://docs.agoric.com/reference/agoric-sdk/modules/agoric_zoe.src_contractFacet_types_ambient.html#type-declaration-4next/ ### Security Considerations None. ### Scaling Considerations N/A ### Documentation Considerations Cleaning up docs. ### Testing Considerations N/A ### Upgrade Considerations None.
What is the Problem Being Solved?
#6577 Added a new reallocation API for Zoe, but didn't convert all the uses in existing contracts to the new version.
Description of the Design
#7136 convered all the uses of
reallocate
,incrementBy
, anddecrementBy
in agoric-sdk, except for the one in atomicRearrange and tests.Left to do is :
atomicRearrange
onto ZCFrealllocate
from ZCFSecurity Considerations
The new API is more robust. Version migration has to be done carefully.
Test Plan
This ends by deleting the old APIs, which is sufficient test that the methods are gone.
The text was updated successfully, but these errors were encountered: