Skip to content
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

docs: drop all references to reallocate() and its helpers #1266

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Chris-Hibbert
Copy link
Collaborator

@Chris-Hibbert Chris-Hibbert commented Jan 22, 2025

closes: #798
See #10871

We converted from zcf.reallocate() to zcf.atomicRearrange() over the course of several releases. The old code will be completely gone as of #10871. This PR cleans up the last of the remaining documentation.

Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved presuming you'll make the requested changes

contract-->>-zoe: reallocate()
contract-->>-zoe: atomicRearrange()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That page also has a link to a web editor which works fine for small diagrams like this, and allowed me to save as svg.

@@ -21,7 +21,7 @@ Trading with a contract using Zoe typically goes through these steps:
1. Parties call [E(zoe).offer(invitation, proposal, assets)](/reference/zoe-api/zoe#e-zoe-offer-invitation-proposal-paymentpkeywordrecord-offerargs). Zoe escrows the assets.
2. Zoe relays the proposal to the contract identified in the invitation.
3. The contract handles proposals using its custom business logic.
4. The contract instructs Zoe to [reallocate](/reference/zoe-api/zoe-contract-facet#zcf-reallocate-seats) assets among the parties.
4. The contract instructs Zoe to [reallocate](/reference/zoe-api/zoe-contract-facet.html#zcf-atomicrearrange-transfers) assets among the parties.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
4. The contract instructs Zoe to [reallocate](/reference/zoe-api/zoe-contract-facet.html#zcf-atomicrearrange-transfers) assets among the parties.
4. The contract instructs Zoe to [reallocate](/reference/zoe-api/zoe-contract-facet#zcf-atomicrearrange-transfers) assets among the parties.

cf writing links

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link

cloudflare-workers-and-pages bot commented Jan 23, 2025

Deploying documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0156fd8
Status: ✅  Deploy successful!
Preview URL: https://f7ae1ed6.documentation-7tp.pages.dev
Branch Preview URL: https://10871-excisereallocate.documentation-7tp.pages.dev

View logs

Copy link

Cloudflare deployment logs are available here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prepare for migration to zcf atomicTransfer()
2 participants