Skip to content

Comments

Add EVM State Manipulation Helpers For Forked Simulations#173

Open
jribbink wants to merge 18 commits intofeature/forked-simulationsfrom
jribbink/evm-test-helpers
Open

Add EVM State Manipulation Helpers For Forked Simulations#173
jribbink wants to merge 18 commits intofeature/forked-simulationsfrom
jribbink/evm-test-helpers

Conversation

@jribbink
Copy link

@jribbink jribbink commented Feb 13, 2026

Closes: #174

Description

Adds reusable helper infrastructure for manipulating EVM contract state in forked mainnet tests (ERC4626 vault manipulation + UniswapV3 Pool Manipulation).

Used in forked simulation scenarios 3c and 3d, see the tests on these PRs for validation


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the standards mentioned here.
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@jribbink jribbink force-pushed the jribbink/evm-test-helpers branch 3 times, most recently from e607ce7 to bd1e86c Compare February 13, 2026 18:15
@jribbink jribbink changed the title Add EVM test helpers for state manipulation Add EVM state manipulation test helpers Feb 13, 2026
@jribbink jribbink force-pushed the jribbink/evm-test-helpers branch from 5c030ae to eec9f63 Compare February 13, 2026 18:50
@jribbink jribbink changed the title Add EVM state manipulation test helpers Add EVM State Manipulation Helpers For Forked Simulations Feb 13, 2026
@jribbink jribbink force-pushed the jribbink/evm-test-helpers branch 3 times, most recently from 51f766a to 84d2b99 Compare February 13, 2026 21:25
@jribbink jribbink force-pushed the jribbink/evm-test-helpers branch from 84d2b99 to eae9d1e Compare February 13, 2026 21:32
@RZhang05 RZhang05 mentioned this pull request Feb 23, 2026
6 tasks
@jribbink jribbink marked this pull request as ready for review February 23, 2026 18:09
@jribbink jribbink requested a review from a team as a code owner February 23, 2026 18:09
@jribbink jribbink changed the base branch from main to feature/forked-simulations February 23, 2026 18:54
@RZhang05 RZhang05 mentioned this pull request Feb 23, 2026
6 tasks
@jribbink jribbink requested a review from RZhang05 February 23, 2026 18:59
Copy link

@RZhang05 RZhang05 left a comment

Choose a reason for hiding this comment

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

Maybe we can create some tests just for these helpers to verify they work as expected. E.g. Call set_erc4626_vault_price and check the queried price in ERC..PriceOracle, Call set_uniswap and perform a swap, verify the amounts received.

Could be in a follow up PR.

@jribbink jribbink requested a review from RZhang05 February 24, 2026 01:17
Copy link

@RZhang05 RZhang05 left a comment

Choose a reason for hiding this comment

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

Great work 🎉

@vishalchangrani vishalchangrani requested a review from a team February 24, 2026 17:18
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.

Add Test Helpers For EVM Forked State Manipulation

2 participants