Skip to content

feat: setup trading partner (trade magma) [AMB-2421]#697

Open
bufo24 wants to merge 11 commits intomasterfrom
trade-magma
Open

feat: setup trading partner (trade magma) [AMB-2421]#697
bufo24 wants to merge 11 commits intomasterfrom
trade-magma

Conversation

@bufo24
Copy link
Copy Markdown
Collaborator

@bufo24 bufo24 commented Apr 9, 2026

No description provided.

bufo24 and others added 4 commits April 9, 2026 16:07
- Remove magma.schema.graphql (712-line Magma API schema dump, not
  imported anywhere — noise in the PR diff)
- Remove unused AmbossService injection from MagmaResolver and
  AmbossModule from MagmaModule
- Extract inline BigInt order-size calculation into computeMagmaOrderSize()
  helper with a clear doc comment explaining PURCHASE vs SALE semantics
- Drop unused `asset` and `pagination` fields from getOffersQuery
- Fix clearSelection in TradingOffers to check assetId ownership in
  addition to groupKey when switching to Sell mode
Cover the four channel setup scenarios:
- No channels: full setup (Magma inbound + outbound) for PURCHASE and SALE
- Outbound exists: skip outbound, Magma only (skipOutboundChannel flag)
- SALE with grouped asset: passes groupKey instead of assetId to fundAssetChannel
- Peer connection: socket lookup from graph when none provided
- Error cases: Magma failure, payment failure, validation
@wthrajat wthrajat added the enhancement New feature or request label Apr 11, 2026
@wthrajat wthrajat changed the title Trade magma feat: setup trading partner (trade magma) [AMB-2421] Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants