centrifuge / centrifuge-chain

Centrifuge Chain: the layer-1 blockchain for real-world assets, built on Substrate.
https://centrifuge.io
GNU Lesser General Public License v3.0
182 stars 81 forks source link

Feat/lp v2 use gateway queue #1943

Closed cdamian closed 2 months ago

cdamian commented 2 months ago

Description

Use the new Gateway Queue pallet in LP and LP gateway.

Changes and Descriptions

MessageQueue trait is implemented by the LP gateway queue and used by the LP gateway to enqueue both inbound and outbound messages. MesageProcessor trait is implemented by the LP gateway and used by the LP gateway queue when processing queued messages. OutboundMessageHandler trait is implemented by the LP gateway and used by LP when sending an outbound message. InboundMessageHandler trait is implemented by LP and used by the LP gateway when processing inbound messages.

Checklist:

lemunozm commented 2 months ago

To track the history, previous Pr with the view of this can be found: https://github.com/centrifuge/centrifuge-chain/pull/1937

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 60.86957% with 36 lines in your changes missing coverage. Please review.

Project coverage is 47.70%. Comparing base (7070f0f) to head (e164791).

Files Patch % Lines
pallets/liquidity-pools-gateway/src/lib.rs 65.00% 14 Missing :warning:
pallets/liquidity-pools/src/hooks.rs 0.00% 9 Missing :warning:
pallets/liquidity-pools-gateway/queue/src/lib.rs 53.33% 7 Missing :warning:
pallets/liquidity-pools-gateway/src/message.rs 0.00% 3 Missing :warning:
libs/types/src/domain_address.rs 0.00% 2 Missing :warning:
pallets/liquidity-pools/src/lib.rs 66.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1943 +/- ## ========================================== - Coverage 47.84% 47.70% -0.14% ========================================== Files 184 184 Lines 13038 12969 -69 ========================================== - Hits 6238 6187 -51 + Misses 6800 6782 -18 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.