Skip to content

test(graph-token): port token, escrow and token utils tests to Foundry - #1376

Closed
Maikol wants to merge 2 commits into
chore/contracts-removal-phase-0from
test/contracts-removal-t2a-graph-token
Closed

Maikol wants to merge 2 commits into
chore/contracts-removal-phase-0from
test/contracts-removal-t2a-graph-token

Conversation

@Maikol

@Maikol Maikol commented Oct 26, 2026

Copy link
Copy Markdown
Member

Adds a private @graphprotocol/graph-token package whose Foundry tests deploy the existing 0.7.6 GraphToken, L2GraphToken and BridgeEscrow from the @graphprotocol/contracts build output, and deletes the TypeScript tests they replace. A small TokenUtilsMock in packages/contracts/contracts/tests gives the package direct tests for the TokenUtils library, which no graph-token contract calls. Stacked on #1375.

@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 90.31%. Comparing base (e7d309a) to head (1b79322).
⚠️ Report is 3 commits behind head on chore/contracts-removal-phase-0.

Additional details and impacted files
@@                         Coverage Diff                         @@
##           chore/contracts-removal-phase-0    #1376      +/-   ##
===================================================================
- Coverage                            90.89%   90.31%   -0.59%     
===================================================================
  Files                                   81       81              
  Lines                                 5326     5326              
  Branches                              1132     1132              
===================================================================
- Hits                                  4841     4810      -31     
- Misses                                 464      495      +31     
  Partials                                21       21              
Flag Coverage Δ
unittests 90.31% <ø> (-0.59%) ⬇️

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-t1-graph-core branch from b03d044 to e7d309a Compare October 29, 2026 17:34
@Maikol
Maikol force-pushed the test/contracts-removal-t2a-graph-token branch from 4152c98 to 1b79322 Compare October 29, 2026 17:34
@Maikol
Maikol changed the base branch from test/contracts-removal-t1-graph-core to chore/contracts-removal-phase-0 October 29, 2026 17:57
@Maikol Maikol closed this Oct 29, 2026
@Maikol
Maikol deleted the test/contracts-removal-t2a-graph-token branch October 29, 2026 18:08
@Maikol
Maikol restored the test/contracts-removal-t2a-graph-token branch October 29, 2026 18:08
@Maikol
Maikol deleted the test/contracts-removal-t2a-graph-token branch October 29, 2026 18:09
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