Skip to content

feat(composer): support ORDER_ROUTER v4 groups - #37

Merged
pbennett merged 1 commit into
mainfrom
feat/order-router-v4
Oct 29, 2026
Merged

pbennett merged 1 commit into
mainfrom
feat/order-router-v4

Conversation

@pbennett

Copy link
Copy Markdown
Contributor

Supports ORDER_ROUTER v4 (app 3757715482) groups alongside v3.

  • Input detection: the swap's input is the user's asset transfer to the router, else their payment to it. On v4 the user can pay the router's opt-ins before an ASA input; v3 groups resolve as before.
  • getSummary() output: on v4 it is the delivered field of the route call's ARC-28 Swap event (selector 6d221c27), when the event names the user as beneficiary and the quote's output asset. v3 groups log no event and still use an inner transfer of the output to the user, now the first one rather than the last.

Tests: tests/router-groups.test.ts builds v3 and v4 groups and covers both (242 tests pass; each new test was checked to fail when the code it covers is broken).

Releases as a minor version (feat).

- The swap's input is the user's asset transfer to the router, else
  their payment to it. On v4 the user can pay the router's opt-ins
  before an ASA input; v3 groups resolve as before.
- getSummary()'s output on v4 is the delivered field of the route
  call's ARC-28 Swap event (selector 6d221c27), when the event names
  the user as beneficiary and the quote's output asset. v3 groups log no
  event and still use an inner transfer of the output to the user, now
  the first one rather than the last.
@pbennett
pbennett merged commit e533395 into main Oct 29, 2026
1 check passed
@pbennett
pbennett deleted the feat/order-router-v4 branch October 29, 2026 19:07
txnlab-release-bot Bot added a commit that referenced this pull request Oct 29, 2026
# [3.2.0](v3.1.0...v3.2.0) (2026-10-29)

### Features

* **composer:** support ORDER_ROUTER v4 groups ([#37](#37)) ([e533395](e533395))
@txnlab-release-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant