-
Notifications
You must be signed in to change notification settings - Fork 26
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
adding orderinstructions message description #355
Conversation
… and message schema. added orderinstructions schema.
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.
I added some comments which I think should be addressed, but lgtm ✅
I don't see any issues which will arise out of this, but what was the original motivating factor? An application-level requirement?
Oh so, wait, at what point during the exchange is an So the happy path would be: RFQ --> Quote --> OrderInstructions --> Order --> OrderStatus --> Close |
Co-authored-by: Kendall Weihe <kendallweihe@gmail.com>
Happy path is RFQ > Quote > Order > OrderInstructions > {alice uses the instructions to execute payin} > OrderStatus(es) > Close |
The original motivating factor came about while testing with frontend. If Alice had to take action to pay in (i.e. use some link), it wasn't clear whether she should send the Order message and then pay, or pay and then send an Order message. having order instructions breaks out the steps more, so that she can:
|
adding |
@jiyoontbd does there need to be something added to the http client?
or would that come back in a new field in teh response in |
oh no I can't unsee it!
Thoughts on making it ... But on second thought, it does contains 2 order instructions, payin payout... so maybe thats fine :hmm: |
No strong opinions on the singular-vs-plural naming. Any of the above are fine. In my head the word "instructions" is always plural, but maybe that's just me. In which case, we should actually rename |
"kind": "orderinstructions", | ||
"id": "orderinstructions_01ha83f663e3e88fshb06h6g78", | ||
"createdAt": "2023-09-13T20:24:37.315Z", | ||
"protocol": "1.0" |
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.
will the protocol version be increased? if so, we wouldn't have an OrderInstructions message with 1.0 would we?
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.
hmm, we've certainly made quite a few changes to the protocol, but i wasn't part of the versioning discussion when this field first got added here so i will have @mistermoe / @frankhinek chime in here
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.
is |
order instructions is a net new message and is not returned as a response to submitting an order. so if you're following a pattern of |
good question @angiejones - i was thinking it would be required, but payin and payout instructions can be empty if there's no instructions needed (i.e. for an offering that's just a stored_balance > stored_balance transfer) |
hmm, programmatically, how do you envision a wallet app handling order instructions? Present the text from the message to the user? Then what? How does the Wallet know once those instructions have been executed? Do they wait for the PFI to provide an |
orderinstructions contains payin and payout, with link and/or instruction fields if there's a payment link that alice needs to navigate to in order to fulfill payin, the payin object of orderinstructions should be populated. once the payment is done, the wallet should detect completion and redirect back to the wallet view where alice is now waiting for PFI to confirm that her payin has been received, and PFI will initiate payout. cc-ing @ethan-tbd for how didpay accommodated redirect after payin was completed |
i'm going to merge this because we're up against an internal team deadline. creating issues for questions not yet resolved now |
|
closes #335