Skip to content

test(issuance): port RewardsManager accounting and snapshot tests to Foundry - #1385

Draft
Maikol wants to merge 1 commit into
chore/contracts-removal-phase-0from
test/contracts-removal-t5e-rewards-accounting
Draft

Maikol wants to merge 1 commit into
chore/contracts-removal-phase-0from
test/contracts-removal-t5e-rewards-accounting

Conversation

@Maikol

@Maikol Maikol commented Oct 26, 2026

Copy link
Copy Markdown
Member

Ports the RewardsManager tests for same-block signal and allocation updates and for inverted reward snapshots to Foundry on the issuance test base, and deletes the TypeScript tests they replace. The snapshot tests write RewardsManager storage directly, so a first test checks the storage layout they rely on. Stacked on #1384.

@codecov

codecov Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.29%. Comparing base (b75038d) to head (168bc53).

Additional details and impacted files
@@                                Coverage Diff                                 @@
##           test/contracts-removal-t5d-rewards-eligibility    #1385      +/-   ##
==================================================================================
- Coverage                                           82.33%   82.29%   -0.04%     
==================================================================================
  Files                                                  81       81              
  Lines                                                5326     5326              
  Branches                                             1132     1132              
==================================================================================
- Hits                                                 4385     4383       -2     
- Misses                                                919      921       +2     
  Partials                                               22       22              
Flag Coverage Δ
unittests 82.29% <ø> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Maikol
Maikol force-pushed the test/contracts-removal-t5d-rewards-eligibility branch from 7409b4e to fdf08d8 Compare October 29, 2026 17:34
@Maikol
Maikol force-pushed the test/contracts-removal-t5e-rewards-accounting branch from 3a7004e to 6d153d6 Compare October 29, 2026 17:34
@Maikol
Maikol force-pushed the test/contracts-removal-t5d-rewards-eligibility branch from fdf08d8 to 49871d3 Compare October 29, 2026 18:42
@Maikol
Maikol force-pushed the test/contracts-removal-t5e-rewards-accounting branch from 6d153d6 to 0f62cdd Compare October 29, 2026 18:42
@Maikol
Maikol force-pushed the test/contracts-removal-t5d-rewards-eligibility branch from 49871d3 to 53bf33e Compare October 29, 2026 18:48
@Maikol
Maikol force-pushed the test/contracts-removal-t5e-rewards-accounting branch from 0f62cdd to 337ed2b Compare October 29, 2026 18:48
@Maikol
Maikol force-pushed the test/contracts-removal-t5d-rewards-eligibility branch from 53bf33e to b75038d Compare October 29, 2026 20:07
@Maikol
Maikol force-pushed the test/contracts-removal-t5e-rewards-accounting branch from 337ed2b to 168bc53 Compare October 29, 2026 20:07
@Maikol
Maikol changed the base branch from test/contracts-removal-t5d-rewards-eligibility to chore/contracts-removal-phase-0 October 29, 2026 20:27
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