Skip to content

AggLayer: unify origin token & address storage reads#2745

Merged
bobbinth merged 4 commits intonextfrom
mmagician-agglayer-unify-origin-reads
Apr 26, 2026
Merged

AggLayer: unify origin token & address storage reads#2745
bobbinth merged 4 commits intonextfrom
mmagician-agglayer-unify-origin-reads

Conversation

@mmagician
Copy link
Copy Markdown
Collaborator

Rather than doing two storage reads, we can read the origin_token_address and origin_network in one go.

This PR also unifies how we store origin_network in faucet storage: LE-encoded. It saves the conversion step (exec.utils::swap_u32_bytes) in the contract logic later.

Also, this unified procedure can be private.

Copy link
Copy Markdown
Contributor

@partylikeits1983 partylikeits1983 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice optimization!

@mmagician mmagician added agglayer PRs or issues related to AggLayer bridging integration pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority labels Apr 13, 2026
Copy link
Copy Markdown
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@bobbinth bobbinth enabled auto-merge April 26, 2026 00:25
@bobbinth bobbinth added this pull request to the merge queue Apr 26, 2026
Merged via the queue into next with commit 5b871b7 Apr 26, 2026
17 checks passed
@bobbinth bobbinth deleted the mmagician-agglayer-unify-origin-reads branch April 26, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agglayer PRs or issues related to AggLayer bridging integration pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants