feat(primitives): add FoundryTransactionBuilder trait#13512
Merged
mattsse merged 3 commits intofoundry-rs:masterfrom Feb 25, 2026
Merged
feat(primitives): add FoundryTransactionBuilder trait#13512mattsse merged 3 commits intofoundry-rs:masterfrom
FoundryTransactionBuilder trait#13512mattsse merged 3 commits intofoundry-rs:masterfrom
Conversation
This enables seamless handling of tx requests for all `Network` impls supported by Foundry Co-authored-by: figtracer <1gusredo@gmail.com>
This was referenced Feb 23, 2026
Closed
mattsse
approved these changes
Feb 25, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation
This enables seamless handling of tx requests for all
Networkimpls supported by Foundry. This basically unlocks the last blocker for fully Network generic Cast ! 🚀It may seem a bit "boilerplate", but I really think this is simplest solution to tackle the specific needs of Cast - don't require tx building/signing pipelines refactor at all. Moreover once integrated we'll be a able to get rid of
FoundryTransactionRequesthacky impl, so the net code diff will be negative.With the new design adding support a new Network simply consist in wiring the supported methods, ie if the network supports EIP-7702, simply re-implement:
authorization_list()set_authorization_list()Crediting @figtracer as co-author for
blob_versioned_hashesmethods proposed here : alloy-rs/alloy#3730Once Alloy 2.0 will be released with new unified eip4844 builder trait alloy-rs/alloy#3600, and Tempo will have it's own
TransactionBuilderTempo, theFoundryTransactionBuilderimpls will be even simpler i.e per-trait bound blanket impls (TransactionBuilder7702/TransactionBuilder4844/TransactionBuilderTempo). In the meantime let's iterate with this.PR Checklist