feature(relay): add transfer struct to store announced transfers #77

Merged
PatrykHegenberg merged 1 commit from 52-implement-transfer-struct into 51-implement-local-data-transfer 2024-04-28 13:37:47 +02:00
PatrykHegenberg commented 2024-04-28 13:37:08 +02:00 (Migrated from github.com)

Description

Added a new struct for storing informations about transfers.

Motivation and Context

In order to distinguish between a direct and a relay transfer, the server must be able to know which transfers exist. This new struct was introduced for this purpose.

How Has This Been Tested?

Be creating a unit test for the new structs new funtion.

Screenshots / Logs (if applicable)

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (no code change)
  • Refactor (refactoring production code)
  • Other

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly.
  • I have formatted the code with rustfmt.
  • I checked the lints with clippy.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
## Description Added a new struct for storing informations about transfers. ## Motivation and Context In order to distinguish between a direct and a relay transfer, the server must be able to know which transfers exist. This new struct was introduced for this purpose. ## How Has This Been Tested? Be creating a unit test for the new structs new funtion. ## Screenshots / Logs (if applicable) ## Types of Changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [x] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation (no code change) - [ ] Refactor (refactoring production code) - [ ] Other <!--- (provide information) --> ## Checklist: <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [x] My code follows the code style of this project. - [x] I have updated the documentation accordingly. - [x] I have formatted the code with [rustfmt](https://github.com/rust-lang/rustfmt). - [x] I checked the lints with [clippy](https://github.com/rust-lang/rust-clippy). - [x] I have added tests to cover my changes. - [x] All new and existing tests passed. <!--- Thank you for contributing! -->
Sign in to join this conversation.
No description provided.