Skip to content

chore: Update deal tag comments - #280

Merged
zguesmi merged 3 commits into
mainfrom
chore/update-tag-comments
Oct 10, 2025
Merged

chore: Update deal tag comments#280
zguesmi merged 3 commits into
mainfrom
chore/update-tag-comments

Conversation

@zguesmi

@zguesmi zguesmi commented Oct 9, 2025

Copy link
Copy Markdown
Member

No description provided.

@zguesmi zguesmi self-assigned this Oct 9, 2025
@zguesmi
zguesmi requested review from Le-Caignec and Copilot October 9, 2025 14:35
@zguesmi
zguesmi marked this pull request as ready for review October 9, 2025 14:35
@zguesmi
zguesmi requested a review from gfournierPro October 9, 2025 14:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR standardizes the way deal tags are used across the codebase by replacing hardcoded string literals with named constants and using ethers' ZeroAddress constant instead of a custom null address constant.

  • Introduces TAG_STANDARD and TAG_TEE constants for deal tags
  • Replaces constants.NULL.ADDRESS with ethers' ZeroAddress
  • Updates all test files to use the new constants consistently

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
utils/createOrders.ts Imports ZeroAddress and replaces constants.NULL.ADDRESS usage
utils/constants.ts Adds TAG_STANDARD and TAG_TEE constants, removes NULL.ADDRESS and unused objects
test/byContract/IexecPocoBoost/IexecPocoBoost.test.ts Replaces hardcoded tag strings with TAG_TEE constant and uses ZeroAddress
test/byContract/IexecPoco/IexecPoco2-reveal.test.ts Replaces hardcoded tag with TAG_STANDARD constant
test/byContract/IexecPoco/IexecPoco2-contribute.test.ts Replaces hardcoded tags with TAG_STANDARD and TAG_TEE constants
test/byContract/IexecPoco/IexecPoco2-contribute-and-finalize.test.ts Uses new tag constants and removes unused import
test/byContract/IexecPoco/IexecPoco1.test.ts Replaces hardcoded tags with constants and fixes tag format
test/byContract/IexecAccessors/IexecAccessorsABILegacy.test.ts Uses TAG_STANDARD constant
test/300_fullchain-reopen.test.ts Uses TAG_STANDARD constant
test/201_fullchain-multi-orders.test.ts Uses TAG_STANDARD constant
test/200_fullchain-bot.test.ts Uses TAG_STANDARD constant
test/000_fullchain.test.ts Uses TAG_STANDARD and TAG_TEE constants
test/000_fullchain-boost.test.ts Uses TAG_TEE constant
contracts/facets/IexecPoco1Facet.sol Improves tag compatibility comments and code organization

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread test/byContract/IexecPoco/IexecPoco1.test.ts Outdated
@codecov

codecov Bot commented Oct 9, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.82%. Comparing base (f7c634b) to head (f3fa500).
⚠️ Report is 19 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #280      +/-   ##
==========================================
+ Coverage   83.66%   84.82%   +1.16%     
==========================================
  Files          38       37       -1     
  Lines        1218     1239      +21     
  Branches      227      235       +8     
==========================================
+ Hits         1019     1051      +32     
+ Misses        199      188      -11     

☔ View full report in Codecov by Sentry.
📢 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.

@zguesmi
zguesmi merged commit 0806c70 into main Oct 10, 2025
4 checks passed
@zguesmi
zguesmi deleted the chore/update-tag-comments branch October 10, 2025 07:54
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.

3 participants