-
Notifications
You must be signed in to change notification settings - Fork 121
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
Add general RFQ accept wire msg type #937
Conversation
This commit adds a quote accept message type which serves as a single wire message type for both buy and sell quote accept messages.
Type `sellAcceptMsgData` is redundant and can be removed following the introduction of type `acceptWireMsgData`.
Type `buyAcceptMsgData` is redundant and can be removed following the introduction of type `acceptWireMsgData`.
The `AssetAmount` field is redundant as it is a copy of the value found in `rfqmsg.BuyAccept.Request.AssetAmount`. It is therefore removed in this commit.
The `AssetAmount` field is redundant as it is a copy of the value found in `rfqmsg.SellAccept.Request.AssetAmount`. It is therefore removed in this commit.
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.
Very nice! tACK, verified against the integration test 💯
// Sig is a signature over the serialized contents of the message. | ||
Sig tlv.RecordT[tlv.TlvType3, [64]byte] | ||
|
||
InOutRateTick acceptInOutRateTick |
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.
nit: missing Godoc comments.
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 address in my PR.
Closes #914
This is the final PR towards closing #914 .
This PR introduces a new quote accept wire message type that can be used by both buy and sell accept messages. Effectively using a single wire message type for both buy and sell.
In this PR we also remove a redundant field from the buy/sell message types.