Skip to content

Swap - Xgram Support#441

Open
j0ntz wants to merge 2 commits intomasterfrom
jon/xgram
Open

Swap - Xgram Support#441
j0ntz wants to merge 2 commits intomasterfrom
jon/xgram

Conversation

@j0ntz
Copy link
Contributor

@j0ntz j0ntz commented Feb 26, 2026

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

Context

Asana: "exch: Swap - Xgram Support" (P1). This branch reapplies the plugin work from #405 so the exchange engine can serve the Xgram team with the new swap flow and mappings.

Changes

Original PR
  • Register the xgram plugin in src/index.ts, include its synchronizer in scripts/allSynchronizers.ts, and add the mapping source plus generated file so EdgeCurrencyPluginIds map to Xgram network codes.
  • Implement src/swap/central/xgram.ts to compose the Xgram API calls, assemble swap estimates, handle memos/mapping metadata, and feed the swap engine usable EdgeSpendInfo.
Additional changes
  • Improve Xgram error handling by parsing ccyAmount limit strings, producing the correct SwapBelowLimitError/SwapAboveLimitError, and recognizing literal error responses via the new asXgramStringError.

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

None

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bf884448e9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@j0ntz
Copy link
Contributor Author

j0ntz commented Mar 4, 2026

Addressed the review’s only actionable item (reverse-quote limit handling) and resolved the inline thread.

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.

1 participant