-
Notifications
You must be signed in to change notification settings - Fork 115
feat: add native asset claim amount as element in NoteStorage of CLAIM note
#2460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
partylikeits1983
merged 23 commits into
agglayer
from
ajl-claim-note-quotient-notestorage
Feb 23, 2026
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f4fcd16
feat: add native asset claim amount as element in NoteStorage of CLAI…
partylikeits1983 ae80508
chore: merge agglayer
partylikeits1983 dcb4642
feat: add output note assertion checks
partylikeits1983 431fdc7
refactor: rm debug statement
partylikeits1983 1509773
Update crates/miden-testing/tests/agglayer/bridge_in.rs
partylikeits1983 f3bed9f
refactor: cleanup test & rm leftover comments
partylikeits1983 3fa4539
wip: consume P2ID by destination AccountId
partylikeits1983 1f96b6b
feat: add solidity-compat test for generating local claimAsset() para…
partylikeits1983 7fa4f81
feat: add solidity-compat test for generating local claimAsset() para…
partylikeits1983 50cb54b
feat: consume output P2ID note from CLAIM note
partylikeits1983 b4ee5ba
chore: merge latest ajl-claim-asset-local-data-solidity
partylikeits1983 ab00d11
fix: taplo fmt
partylikeits1983 07f74a0
refactor: rename solidity compat test files & claimAsset vector JSON …
partylikeits1983 cca8cdf
refactor: rename testing methods & update test comments
partylikeits1983 39b1bce
chore: merge latest ajl-claim-asset-local-data-solidity & refactor CL…
partylikeits1983 01266fa
Update crates/miden-testing/tests/agglayer/bridge_in.rs
partylikeits1983 489f10d
Update crates/miden-testing/tests/agglayer/bridge_in.rs
partylikeits1983 06b59e0
chore: merge latest ajl-claim-asset-local-data-solidity
partylikeits1983 1f049b6
chore: merge latest agglayer
partylikeits1983 70e3392
refactor: add warnings in comments & update TODO regarding u256 scaling
partylikeits1983 af2a066
chore: merge latest agglayer
partylikeits1983 e49f49a
refactor: assert mock destination account ID matches claim data
partylikeits1983 3be6bfd
fix: load amount BE-felt from mem
mmagician File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,7 +83,7 @@ end | |
| #! output_p2id_serial_num[4], // P2ID note serial number (4 felts, Word) | ||
| #! target_faucet_account_id[2], // Target faucet account ID (2 felts, prefix and suffix) | ||
| #! output_note_tag[1], // P2ID output note tag | ||
| #! padding[1], // padding (1 felt) | ||
| #! miden_claim_amount[1], // Miden claim amount (1 felt) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a fan on this naming, maybe it should be |
||
| #! ] | ||
| #! | ||
| #! Invocation: exec | ||
|
|
@@ -164,7 +164,7 @@ end | |
| #! - output_p2id_serial_num [568..571]: 4 felts | ||
| #! - target_faucet_account_id [572..573]: 2 felts | ||
| #! - output_note_tag [574] : 1 felt | ||
| #! - padding [575] : 1 felt | ||
| #! - miden_claim_amount [575] : 1 felt | ||
| #! | ||
| #! Where: | ||
| #! - smtProofLocalExitRoot: SMT proof for local exit root (bytes32[_DEPOSIT_CONTRACT_TREE_DEPTH]) | ||
|
|
@@ -188,7 +188,8 @@ end | |
| #! - target_faucet_account_id: Target agglayer faucet account ID (prefix and suffix). Only this specific | ||
| #! account can consume the note - any other account will cause a panic. | ||
| #! - output_note_tag: P2ID output note tag | ||
| #! - padding (1 felt) | ||
| #! - miden_claim_amount: Scaled-down Miden token amount (Felt). This is the Y value computed from | ||
| #! scaling down the Ethereum amount (X) by the scale exponent: Y = floor(X / 10^scale_exp) | ||
| #! | ||
| #! Panics if: | ||
| #! - account does not expose claim procedure. | ||
|
|
||
10 changes: 5 additions & 5 deletions
10
crates/miden-agglayer/solidity-compat/test-vectors/claim_asset_vectors_local_tx.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.