Skip to content

feat(tests): STAKING precompile (stubs) with tests#17

Draft
pdobacz wants to merge 19 commits intoforks/monad_ninefrom
staking-precompile-tests
Draft

feat(tests): STAKING precompile (stubs) with tests#17
pdobacz wants to merge 19 commits intoforks/monad_ninefrom
staking-precompile-tests

Conversation

@pdobacz
Copy link
Collaborator

@pdobacz pdobacz commented Mar 13, 2026

Opening as draft, as I still would like to go through it and clean - at the very least.

But it is indicative of how large this is (even without any staking precompile logic except interface & simple error cases).

Branching off of mip4 for now, it served as a template for how the tests are structured, but staking precompile is just so much more complex that there are many more tools implemented to handle all that.

Base automatically changed from mip4 to forks/monad_nine March 16, 2026 07:45
pdobacz added 19 commits March 16, 2026 08:46
Co-Authored-By: Claude <claude-sonnet-4-6>
Co-Authored-By: Claude claude-opus-4-6
Co-Authored-By: Claude claude-opus-4-6
Co-Authored-By: Claude claude-opus-4-6
Extract ExpectedOutcome dataclass with factory methods, add
_normalize() for parameterless function edge cases, and centralize
gas computation in scenario_call_code so callers no longer need to
manually calculate gas. Simplify resolve_outcome_pair by sorting
scenarios by priority and adding stipend threshold check.

Co-Authored-By: Claude claude-opus-4-6
Co-Authored-By: Claude claude-opus-4-6
Co-Authored-By: Claude claude-opus-4-6
Co-Authored-By: Claude claude-opus-4-6
Co-Authored-By: Claude <opus>
@pdobacz pdobacz force-pushed the staking-precompile-tests branch from 9b29e9c to 1fd2897 Compare March 16, 2026 07:46
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.

1 participant