Skip to content

Conversation

@julio4
Copy link
Collaborator

@julio4 julio4 commented Nov 25, 2025

The goal is to make testing utils slightly more platform agnostic to easily test both Ethereum/Optimism low-levels with mocked block context. Example with payload::exec optimism tests included.

for this:

  • Add PlatformWithTestnet that every platform needs to define (added complexity to define a new platform but should be straightforward)
  • Implementations of BlockContextMocked based on PlatformWithTestnet (+ PayloadBuilderAttributesMocked)
  • make rblib_test macro aware of generics and where clauses

@julio4 julio4 force-pushed the feat/blockcontext-mock-improvement branch from 6698d45 to 8cc9dd3 Compare November 26, 2025 12:59
@julio4 julio4 force-pushed the feat/blockcontext-mock-improvement branch from 8cc9dd3 to 5369f97 Compare November 26, 2025 14:53
@julio4 julio4 merged commit d0adf55 into flashbots:main Nov 26, 2025
7 of 8 checks passed
@julio4 julio4 deleted the feat/blockcontext-mock-improvement branch November 26, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants