Skip to content

chore(sdk-core): regenerate SysioContractTypes for uwreqs.target_amount - #65

Merged
heifner merged 1 commit into
masterfrom
chore/regen-uwreq-target-amount
Aug 10, 2026
Merged

chore(sdk-core): regenerate SysioContractTypes for uwreqs.target_amount#65
heifner merged 1 commit into
masterfrom
chore/regen-uwreq-target-amount

Conversation

@heifner

@heifner heifner commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Regenerated from the current sysio.uwrit.abi on wire-sysio@master. The diff is one line:

 export interface SysioUwritUwRequestTType {
   ...
   dst_amount: number | string
+  target_amount: number | string
   variance_tolerance_bps: number

Why

wire-sysio#550 added target_amount to uw_request_t: the destination amount the caller asked for, retained as the fixed reference the depot's slippage check measures against. It is deliberately distinct from dst_amount, which is the depot's AMM quote and is re-priced at settlement — sysio.uwrit.hpp states dst_amount is "never the caller's target_amount".

That contract change merged on 08-07; the TypeScript surface was never regenerated, so SysioUwritUwRequestTType still ended at variance_tolerance_bps.

Scope

A full regen against every current ABI produces exactly this one added field and no other change — verified by diffing the generator output against master before committing. There is no unrelated ABI drift riding along.

Unblocks

wire-tools-ts#58, which carries uwreqs.target_amount in the swap-scenario fixture and is red by construction until this type declares the field. That PR's "do not merge yet" banner refers to this regen.

Verification

  • pnpm build clean; the field reaches both lib/cjs and lib/esm SysioContractTypes.d.ts
  • pnpm test — 76 suites, 885 tests, all passing

wire-sysio#550 added `target_amount` to `uw_request_t` — the destination amount
the caller asked for, retained as the fixed reference the depot's slippage check
measures against, distinct from `dst_amount` (the AMM quote, re-priced at
settlement). The regen against current `sysio.uwrit.abi` picks up exactly that
one additive field on `SysioUwritUwRequestTType`; nothing else in the generated
surface moves.

Unblocks wire-tools-ts#58, whose swap-scenario fixture cannot carry the field
until the type declares it.

Change-Id: I57a657ab7c80a7b45ed95e0eed054a7ccf69814e
@heifner
heifner requested a review from jglanz August 10, 2026 17:55
@heifner
heifner merged commit 343a3a1 into master Aug 10, 2026
1 check passed
@heifner
heifner deleted the chore/regen-uwreq-target-amount branch August 10, 2026 20:14
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.

2 participants