-
Notifications
You must be signed in to change notification settings - Fork 39
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
confusion around checking proposal shapes (featuring M
)
#739
Comments
Hi @tgrecojs , indeed, the makeInvitation Patterns are explained at We have not yet converted most old calls to At Agoric/agoric-sdk#6475 I have started on expressing more proposalShape arguments, but I haven't gotten very far yet. |
See also https://github.com/Agoric/agoric-sdk/wiki/Interfaces for the main current use of patterns. Has nothing to do with |
@erights thanks so much for the information! Initially, I was having a difficult time grasping the use of I've successfully used the Again, I've only begun using these patterns, but their flexibility is already becoming apparent. In my use case, Zoe needs to be able to accept offers that use different values for In regards to patterns not being specific to |
It's unclear how to properly check an offer's proposal shape, so I'm opening this issue to get clarity around the matter.
vscode informed me of
assertProposalShape
being deprecated, which led me to find this issue. In that issue, @erights informs us thatzcf.makeInvitation
takes an optionalproposalSeat
parameter which, if supplied, will be used by Zoe to verify an offer proposal. He also mentions that users can request information about the shape of an invitationsproposalSeat
from Zoe.I understood this to mean that the
proposalShape
parameter would mirror the parameters used inassertProposalShape,
but after several attempts, it was clear that this wasn't the case. I investigated a bit and couldn't find any instances in which this new approach was used. I foundfitProposalShape
inside the zoeHelpers.js file so I made an attempt to use that directly in my contract, but again, I had no luck.Among the things I discovered while investigating was the use of agoric/store's
M
being used to construct what looks as though it may be a validproposalShape
.In addition to my confusion around understanding
proposalShape
s, this also led me to realize I lacked any knowledge of the aforementionedM
API.Is the agoric documentation a suitable place for this information? It looks fairly robust and seems to be used quite a bit throughout the agoric-sdk, so I imagine that users of the SDK would benefit to have knowledge of it.
The text was updated successfully, but these errors were encountered: