Skip to content

feat(cli): expose public payback on swap command#2190

Draft
JereSalo wants to merge 6 commits into
nextfrom
jere/swap-v2-1739
Draft

feat(cli): expose public payback on swap command#2190
JereSalo wants to merge 6 commits into
nextfrom
jere/swap-v2-1739

Conversation

@JereSalo

Copy link
Copy Markdown
Collaborator

Adds --payback-note-type to the swap CLI so the payback note can be created public or private (default: private). Fixes the printed payback tag to use the creator account target, matching what the on-chain script derives. Public payback now works end-to-end thanks to 0xMiden/protocol#2949, and a new integration test (swap_public_payback) exercises it against a real node.

Blocked on 0xMiden/protocol#2949. The integration test swap_public_payback will fail in CI until that PR is merged and the protocol pin updates.

Closes #1739

JereSalo added 3 commits May 14, 2026 19:20
Adds --payback-note-type to the swap subcommand so the payback note can
be created public or private (defaults to private, matching pswap's
CLI). Fixes the printed payback tag to use the creator account target
instead of the SWAP note's own tag.

Adds swap_public_payback_test in the mock-RPC test suite, exercising
build_swap end-to-end with NoteType::Public payback against the
companion protocol branch.

Cargo.toml temporarily redirects miden-protocol, miden-standards,
miden-testing, miden-tx, miden-tx-batch-prover to a local protocol
checkout via [patch], paired with the SWAP standard rewrite in protocol
branch jere/swap-v2. The patch block must be removed and the protocol
revision pinned normally before this is opened as a PR.
@JereSalo JereSalo added no changelog This PR does not require an entry in the `CHANGELOG.md` file maintainer PRs that come from internal contributors or integration partners. They should be given priority. labels May 18, 2026
@JereSalo JereSalo added the blocked Something prevents working on this label Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked Something prevents working on this maintainer PRs that come from internal contributors or integration partners. They should be given priority. no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-add payback note type to CLI

1 participant