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

feat: Wrap dlc messages with 10101 messages #2473

Merged
merged 2 commits into from
Apr 28, 2024

Conversation

holzeis
Copy link
Contributor

@holzeis holzeis commented Apr 25, 2024

This is primarily a refactoring, moving the dlc message handler from the rust-dlc dependency to 10101, allowing us in following steps to enrich and adapt protocol messages with 10101 meta data.

I figured I already open a PR for this change, before adapting the messages with 10101 meta data. My aim is to create custom messages for 10101 custom flows

  • Expiry
  • Liquidation
  • Rollover
  • Resizing

fixes #2380
fixes #2013

@holzeis holzeis self-assigned this Apr 25, 2024
@holzeis holzeis force-pushed the feat/wrap-rust-dlc-messages-with-10101-messages branch from 096dd96 to b2bc8f2 Compare April 25, 2024 14:17
@luckysori luckysori changed the title feat: Warp dlc messages with 10101 messages feat: Wrap dlc messages with 10101 messages Apr 26, 2024
Copy link
Contributor

@luckysori luckysori left a comment

Choose a reason for hiding this comment

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

Large but straightforward diff. LGTM!

I know you wanted to talk about something, so maybe I've missed something in my review.

The only question I have is if this PR is backwards-compatible. This definitely looks like a breaking change to me, but I was wondering if we have to migrate anything at the database level, since we have a dlc_messages table. I guess not, since the PR passes CI.

I think we could label the 2nd commit as a refactor. Also, since we've been using conventional commits for a while, we could go a bit further with the commit message e.g.

refactor!: Wrap DLC messages with TenTenOneMessages

This is primarily a refactoring, moving the DLC message handler from the `rust-dlc` dependency to 10101, allowing us in following steps to enrich and adapt protocol messages with 10101 meta data.

BREAKING CHANGE: The format of the messages we send over the wire has changed.

mobile/native/src/trade/order/mod.rs Show resolved Hide resolved
}

impl TenTenOneMessage {
pub fn get_reference_id(&self) -> Option<ReferenceId> {
Copy link
Contributor

Choose a reason for hiding this comment

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

🤡 Eventually we can actually move the reference ID onto the TenTenOneMessage.

This is primarily a refactoring, moving the DLC message handler from the `rust-dlc` dependency to 10101, allowing us in following steps to enrich and adapt protocol messages with 10101 metadata.

BREAKING CHANGE: The format of the messages we send over the wire has changed.
@holzeis holzeis force-pushed the feat/wrap-rust-dlc-messages-with-10101-messages branch from b2bc8f2 to 1ff6dcb Compare April 26, 2024 12:48
@holzeis holzeis added this pull request to the merge queue Apr 28, 2024
Merged via the queue into main with commit 5306066 Apr 28, 2024
22 checks passed
@holzeis holzeis deleted the feat/wrap-rust-dlc-messages-with-10101-messages branch April 28, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrap rust-dlc messages with 10101 messages Stop periodically syncing sub channels
2 participants