feat: contract class/instance overrides for simulation#22833
Closed
dbanks12 wants to merge 1 commit into
Closed
Conversation
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ae2ed42 to
79b19ff
Compare
2414251 to
363787c
Compare
f1e3abb to
f3e666c
Compare
363787c to
bfce029
Compare
f3e666c to
1c5e1ff
Compare
bfce029 to
5ec5db9
Compare
1c5e1ff to
4587e4a
Compare
5ec5db9 to
5daac75
Compare
4587e4a to
e19009b
Compare
5daac75 to
6f5b16c
Compare
e19009b to
8fb3a6f
Compare
6f5b16c to
9116033
Compare
b16c77b to
d590ce8
Compare
9116033 to
fe71850
Compare
a850ebc to
f5b39b0
Compare
f5b39b0 to
fa5f0a0
Compare
25879a3 to
97c2111
Compare
fa5f0a0 to
63c07f5
Compare
97c2111 to
7e12172
Compare
63c07f5 to
19eb576
Compare
32eb807 to
75faddf
Compare
19eb576 to
24a3219
Compare
75faddf to
ea07d1e
Compare
2b294ce to
a8509cd
Compare
ea07d1e to
8515170
Compare
a8509cd to
cfefd1e
Compare
8515170 to
5afa477
Compare
Adds StateOverrides.contractClasses for shadowing contract classes in the simulator's contract DB - the building block for simulating against mock implementations or unregistered classes.
cfefd1e to
e547c97
Compare
5afa477 to
644467b
Compare
This was referenced May 5, 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.

Summary
Adds
StateOverrides.contractClassesfor shadowing contract classes in the simulator's contract DB. Together withcontractInstances(introduced in #22905), this is the building block for simulating against mock implementations or unregistered classes.Stacks above #22905. The key plumbing (
addContracts({ contractInstances? }), factorycreate()accepting an optionalcontractsDB, server.ts wiring) lives in #22905; this PR extendsaddContractsto also acceptcontractClasses.