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: consolidate proposal shapes #1012

Merged
merged 3 commits into from
Mar 20, 2024
Merged

docs: consolidate proposal shapes #1012

merged 3 commits into from
Mar 20, 2024

Conversation

dckc
Copy link
Member

@dckc dckc commented Mar 20, 2024

fixes #951
closes #739
closes #880

Turns out Proposal Shape was documented already, under E(zoe).offer(...). And the endo reference docs cover Pattern Matchers pretty well.

It was also mentioned under zcf.makeInvitation. Since this is the more directly relevant API, I moved the material here and cross-referenced it.

And I copied the Matchers interface that gives all the methods of M.

My editor does markdown lint on save; I hope it's not too distracting that I mixed in work on #945 here. I did put it in separate commits.

@dckc dckc requested a review from LuqiPan March 20, 2024 03:20
@dckc dckc changed the title docs: consolidate proposal shapes; shorten zoe overview docs: consolidate proposal shapes Mar 20, 2024
@dckc
Copy link
Member Author

dckc commented Mar 20, 2024

@kriskowal thanks for moving Agoric/agoric-sdk#8536 along, but I suspect the ci failure here is due to a regression from that change. Clues?

Failed with Error: make error Error: spawn make ENOENT
    at ChildProcess.<anonymous> (file:///home/runner/work/documentation/documentation/agoric-sdk/packages/xsnap/src/build.js:39:16)

cc @michaelfig

Copy link
Member

@gibson042 gibson042 left a comment

Choose a reason for hiding this comment

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

👍

Comment on lines 108 to 113
The optional **proposalShape** argument can be used to describe the required and allowed components of each proposal.

### Proposal Shapes

Proposals that don't match the pattern will be rejected by Zoe without even being sent to the contract.

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
The optional **proposalShape** argument can be used to describe the required and allowed components of each proposal.
### Proposal Shapes
Proposals that don't match the pattern will be rejected by Zoe without even being sent to the contract.
The optional **proposalShape** argument can be used to describe the required and allowed components of each proposal.
Proposals that don't match the provided pattern will be rejected by Zoe without even being sent to the contract.
### Proposal Shapes

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it was like that before; doesn't that mean people have to read before the heading to get the main point?

@dckc dckc merged commit 83db247 into main Mar 20, 2024
3 of 4 checks passed
@dckc dckc deleted the dc-patterns-shapes branch March 20, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants