-
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
Have proposal wants be amount patterns rather than just amounts #1905
Conversation
I might be missing your intention, but I was thinking that we don't change anything in ERTP but rather just change this line of Zoe:
|
After talking it over, I agree the additive changes to amountMath are the right thing! Also, here's the places in our current tests where having more flexible wants would be helpful:
|
Not really ready for review. But asking @katelynsills for help with problem discovered in |
We met and decided to shelve this #1905 spike because it is not required for hackathon. For those interested in looking at it anyway, the next step to make it actually work is to fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@katelynsills let's discuss how it compares. Note that much of the bulk is changes to marshal that have already been migrated to master.
19e184e
to
d30cc35
Compare
rebased. All the redundancy with modern |
The The transliteration also revealed a bug in the original, repaired by in the new one by an Attn @katelynsills |
No longer any reason to look at #2159 . All the relevant changes are now back in this PR |
@katelynsills I assigned it to you because it is now a candidate to replace or subsume #2156 . But it is not yet a candidate to merge into master. My preference is that you take this over from here. It does seem to be in a good working state. |
Thank you @erights! |
9f67079
to
5745944
Compare
a612620
to
49dcb5b
Compare
@@ -13,7 +13,7 @@ import { trade, satisfies } from '../contractSupport'; | |||
* https://agoric.com/documentation/zoe/guide/contracts/barter-exchange.html | |||
* | |||
* The Barter Exchange only accepts offers that look like | |||
* { give: { In: amount }, want: { Out: amount} } | |||
* { give: { In: amount }, want: { Out: amount} } // TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @erights , what are these TODOs for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To remind me (now you ;) ) to look for all uses, to make sure those are compat with this being an AmountPattern rather than an Amount. Like one we saw in a recent PR ;)
See #2230 @katelynsills , do you plan to work in the PR or start a new one with this for reference? If the latter, should we close this one? |
This one is just reference. We can close as long as it keeps the branch around |
WIP Spike Draft not ready for review