Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
d6c38dc
Added the pswap masm contract and its supportive functions
Mar 19, 2026
14c6f5d
Added the pswap masm contract and its supportive functions
Mar 20, 2026
6be38df
refactor: rename swapp_tag to pswap_tag, NUM_ITEMS to NUM_STORAGE_ITE…
Mar 20, 2026
163d813
refactor: remove redundant test helpers, use pswap lib functions dire…
Mar 20, 2026
5345f60
docs: polish pswap doc comments to match sibling note style
Mar 20, 2026
fd3bf63
refactor: make assets a required field on PswapNote builder
Mar 20, 2026
f0b1101
fix: adapt pswap to upstream API changes after rebase
VAIBHAVJINDAL3012 Mar 20, 2026
df523d6
refactor: use procref for P2ID script root, clean up pswap MASM
VAIBHAVJINDAL3012 Mar 23, 2026
b3d9460
refactor: address PR review comments on pswap MASM
VAIBHAVJINDAL3012 Mar 23, 2026
971a6b8
refactor: rename pswap storage accessors, add offered_asset_amount he…
VAIBHAVJINDAL3012 Mar 24, 2026
eb60fba
refactor: address PR review comments on pswap Rust module
VAIBHAVJINDAL3012 Mar 24, 2026
a4ade87
refactor: use builder pattern for PswapNote and PswapNoteStorage
VAIBHAVJINDAL3012 Mar 25, 2026
dae2031
refactor: clean up pswap tests and fix clippy warnings
VAIBHAVJINDAL3012 Mar 25, 2026
1780388
refactor: rename inputs to storage_items in pswap_note_storage_try_fr…
VAIBHAVJINDAL3012 Mar 25, 2026
b54686a
chore: fix Cargo.toml dependency ordering and add CHANGELOG entry for…
VAIBHAVJINDAL3012 Mar 25, 2026
021ca13
Merge branch 'next' into pswap-note
VAIBHAVJINDAL3012 Mar 25, 2026
570ac5a
refactor: address PR review comments — use FungibleAsset types, impro…
VAIBHAVJINDAL3012 Mar 31, 2026
7894fff
refactor: pass creator ID via stack to is_consumer_creator and use ac…
VAIBHAVJINDAL3012 Apr 6, 2026
d7223de
refactor: optimize requested asset storage to 4 felts and add NUM_STO…
VAIBHAVJINDAL3012 Apr 7, 2026
840dca3
refactor: use p2id::new, pass inputs via stack, unify serial derivation
VAIBHAVJINDAL3012 Apr 7, 2026
9c185a6
refactor: pass all inputs via stack to create_remainder_note, elimina…
VAIBHAVJINDAL3012 Apr 7, 2026
7b10e6c
feat: add P2ID reconstruction test, overfill docs, and stack comments
VAIBHAVJINDAL3012 Apr 7, 2026
edce92c
fix: use Rust-predicted note for aux data in P2ID reconstruction test
VAIBHAVJINDAL3012 Apr 7, 2026
1ea42ab
refactor: rename input to account fill, extract load_offered_asset proc
VAIBHAVJINDAL3012 Apr 7, 2026
1cbbecf
refactor: extract test helpers and reduce verbosity in pswap unit tests
VAIBHAVJINDAL3012 Apr 7, 2026
e27b0a1
refactor: guard zero-amount receive_asset in MASM, add NUM_STORAGE_IT…
VAIBHAVJINDAL3012 Apr 7, 2026
a329ae3
refactor: rename ERR_PSWAP_WRONG_NUMBER_OF_INPUTS to ERR_PSWAP_WRONG_…
VAIBHAVJINDAL3012 Apr 7, 2026
2ae6bd0
refactor: replace global memory with @locals in execute_pswap and pas…
VAIBHAVJINDAL3012 Apr 8, 2026
4545726
Merge branch '0xMiden:next' into pswap-note
VAIBHAVJINDAL3012 Apr 11, 2026
82cae63
refactor(pswap): apply PR review nits from #2636
VAIBHAVJINDAL3012 Apr 13, 2026
3018853
feat(pswap): make payback note type configurable via PswapNoteStorage
VAIBHAVJINDAL3012 Apr 13, 2026
2629b8c
perf(pswap): compress note storage layout from 14 to 10 items
VAIBHAVJINDAL3012 Apr 13, 2026
971b5ae
test(pswap): cover combined input+inflight partial and full fill paths
VAIBHAVJINDAL3012 Apr 13, 2026
22d5b63
refactor(pswap): rename input/inflight to account_fill/note_fill
VAIBHAVJINDAL3012 Apr 13, 2026
a991257
Merge branch 'next' into pswap-note
VAIBHAVJINDAL3012 Apr 13, 2026
7dc90ff
refactor(pswap): fetch active note_type inline, drop global NOTE_TYPE
VAIBHAVJINDAL3012 Apr 13, 2026
cbfbedc
refactor(pswap): switch storage consts to STORAGE_PTR base pattern
VAIBHAVJINDAL3012 Apr 13, 2026
1e4d2f8
docs(pswap): add #! doc block to @note_script main procedure
VAIBHAVJINDAL3012 Apr 13, 2026
974c8d9
refactor(pswap): scrub last inflight/input references in tests
VAIBHAVJINDAL3012 Apr 13, 2026
2e48130
style(pswap): readability nits across pswap.masm
VAIBHAVJINDAL3012 Apr 14, 2026
9717b9b
test(pswap): dedupe integration tests via helpers + rstest
VAIBHAVJINDAL3012 Apr 14, 2026
789a938
style(pswap): apply nightly rustfmt
VAIBHAVJINDAL3012 Apr 14, 2026
0128037
Merge branch 'next' into pswap-note
partylikeits1983 Apr 15, 2026
60577b3
fix(pswap): guard user-provided fill sum against u64 overflow
VAIBHAVJINDAL3012 Apr 15, 2026
0b6ab74
fix(pswap): correctness + layout cleanups from PR review theme 2
VAIBHAVJINDAL3012 Apr 15, 2026
be10bce
fix(pswap): align attachment layout + drop dead swap_count slot
VAIBHAVJINDAL3012 Apr 15, 2026
44216c4
refactor(pswap): masm perf + style cleanups from PR review theme 4
VAIBHAVJINDAL3012 Apr 15, 2026
1b03421
refactor(pswap/tests): PR review theme 5 test quality cleanups
VAIBHAVJINDAL3012 Apr 15, 2026
253005b
test(pswap): finish theme 5 — realistic amounts, combined fill, skip …
VAIBHAVJINDAL3012 Apr 15, 2026
5ee897e
refactor(pswap): rename execute_full_fill_network -> execute_full_fill
VAIBHAVJINDAL3012 Apr 15, 2026
16dc925
refactor(pswap): drop FACTOR, use u128 math for payout calculation
VAIBHAVJINDAL3012 Apr 15, 2026
a20090a
test(pswap): second pass on PR review follow-ups
VAIBHAVJINDAL3012 Apr 15, 2026
0fd99fc
style(pswap/tests): apply rustfmt
VAIBHAVJINDAL3012 Apr 15, 2026
b5de6e0
refactor(pswap): expose `PswapNote::create_args` as public helper
VAIBHAVJINDAL3012 Apr 15, 2026
c1940de
Update crates/miden-standards/asm/standards/notes/pswap.masm
VAIBHAVJINDAL3012 Apr 15, 2026
f69d73e
Update crates/miden-standards/asm/standards/notes/pswap.masm
VAIBHAVJINDAL3012 Apr 15, 2026
2fd7ee6
Update crates/miden-standards/asm/standards/notes/pswap.masm
VAIBHAVJINDAL3012 Apr 15, 2026
2c8e305
Update crates/miden-standards/asm/standards/notes/pswap.masm
VAIBHAVJINDAL3012 Apr 15, 2026
4e28ada
Update crates/miden-standards/asm/standards/notes/pswap.masm
VAIBHAVJINDAL3012 Apr 15, 2026
28615c3
Update crates/miden-standards/asm/standards/notes/pswap.masm
VAIBHAVJINDAL3012 Apr 15, 2026
32b3b68
Update crates/miden-standards/asm/standards/notes/pswap.masm
VAIBHAVJINDAL3012 Apr 15, 2026
0ca6aa6
fix(pswap): CI green — unused imports + duplicated exec
VAIBHAVJINDAL3012 Apr 15, 2026
5bfcf10
refactoring changes
VAIBHAVJINDAL3012 Apr 15, 2026
83daa77
fix(pswap): address PR review — storage, attachments, asset validation
VAIBHAVJINDAL3012 Apr 16, 2026
550d503
style: apply nightly rustfmt
VAIBHAVJINDAL3012 Apr 16, 2026
277d60f
fix(pswap): simplify assert_valid_asset_amount and rename procedure
VAIBHAVJINDAL3012 Apr 17, 2026
a253b48
Update crates/miden-standards/asm/standards/notes/pswap.masm
VAIBHAVJINDAL3012 Apr 17, 2026
2c91051
Update crates/miden-standards/asm/standards/notes/pswap.masm
VAIBHAVJINDAL3012 Apr 17, 2026
ea51805
Update crates/miden-standards/asm/standards/notes/pswap.masm
VAIBHAVJINDAL3012 Apr 17, 2026
b017406
Merge branch 'next' into pswap-note
partylikeits1983 Apr 19, 2026
312cc69
test(pswap): add rstest cases for fill-sum overflow and max-asset-amo…
VAIBHAVJINDAL3012 Apr 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## v0.15.0 (TBD)

### Features

- Added PSWAP (partial swap) note for decentralized partial-fill asset exchange with remainder note re-creation ([#2636](https://github.com/0xMiden/protocol/pull/2636)).
### Changes

- Added validation of leaf type on CLAIM note processing to prevent message leaves from being processed as asset claims ([#2730](https://github.com/0xMiden/protocol/pull/2730)).
Expand Down
72 changes: 72 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ miden-verifier = { default-features = false, version = "0.22" }
alloy-sol-types = { default-features = false, version = "1.5" }
anyhow = { default-features = false, features = ["backtrace", "std"], version = "1.0" }
assert_matches = { default-features = false, version = "1.5" }
bon = { default-features = false, version = "3" }
fs-err = { default-features = false, version = "3" }
primitive-types = { default-features = false, version = "0.14" }
rand = { default-features = false, version = "0.9" }
Expand Down
1 change: 1 addition & 0 deletions crates/miden-standards/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ miden-processor = { workspace = true }
miden-protocol = { workspace = true }

# External dependencies
bon = { workspace = true }
rand = { optional = true, workspace = true }
thiserror = { workspace = true }

Expand Down
Loading
Loading