Skip to content

Conversation

@zguesmi
Copy link
Member

@zguesmi zguesmi commented Oct 31, 2025

  • Remove facet IexecEscrowTokenSwapFacet.
  • Clean Husky v9 hook
  • Update docs in hook only if .sol files are modified.
  • Autogenerated files are ignored by prettier.

Copilot AI review requested due to automatic review settings October 31, 2025 13:25
@zguesmi zguesmi self-assigned this Oct 31, 2025
Copy link
Contributor

Copilot AI left a comment

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 removes the IexecEscrowTokenSwapFacet functionality (a feature for swapping ETH/tokens via Uniswap) and introduces the hardhat-abi-exporter plugin to automate ABI generation. The changes also include improvements to import ordering, configuration updates, and pre-commit hook optimization.

  • Removed unused IexecEscrowTokenSwapFacet and related interfaces
  • Replaced custom ABI generation task with hardhat-abi-exporter plugin
  • Updated pre-commit hooks to conditionally run documentation generation
  • Improved import statement organization

Reviewed Changes

Copilot reviewed 137 out of 190 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
utils/proxy-tools.ts Removed imports for deleted IexecEscrowTokenSwapFacet and reordered imports alphabetically
scripts/tools/sol-to-uml.mjs Removed IexecEscrowTokenSwapFacet from UML diagram generation
package.json Added hardhat-abi-exporter dependency and updated configuration comments
hardhat.config.ts Replaced custom abis task with abiExporter configuration and removed unused import
deploy/0_deploy.ts Removed commented reference to IexecEscrowTokenSwapFacet
contracts/interfaces/IexecEscrowTokenSwap.sol Deleted interface file for token swap functionality
contracts/facets/IexecEscrowTokenSwapFacet.sol Deleted facet implementation file
.solcover.js Simplified skip files configuration
.husky/pre-commit Added conditional documentation generation
abis/* Generated ABI files from new exporter plugin

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zguesmi zguesmi changed the title Chore/remove token swap facet chore: Remove token swap facet & generate human readable ABIs Oct 31, 2025
@zguesmi zguesmi marked this pull request as ready for review October 31, 2025 13:32
@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.53%. Comparing base (7d41712) to head (7e45f81).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #311       +/-   ##
===========================================
+ Coverage   84.85%   96.53%   +11.68%     
===========================================
  Files          37       32        -5     
  Lines        1241     1069      -172     
  Branches      235      213       -22     
===========================================
- Hits         1053     1032       -21     
+ Misses        188       37      -151     

☔ 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.

Copilot AI review requested due to automatic review settings November 3, 2025 10:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 135 out of 188 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -1,4 +1,6 @@
#!/usr/bin/env sh
Copy link
Contributor

Choose a reason for hiding this comment

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

why this is not needed anymore ?

Comment on lines +19 to +23
"function EIP712DOMAIN_SEPARATOR() view returns (bytes32)",
"function GROUPMEMBER_PURPOSE() view returns (uint256)",
"function KITTY_MIN() view returns (uint256)",
"function KITTY_RATIO() view returns (uint256)",
"function WORKERPOOL_STAKE_RATIO() view returns (uint256)",
Copy link
Contributor

Choose a reason for hiding this comment

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

we should remove that maybe later

Copy link
Contributor

@gfournierPro gfournierPro left a comment

Choose a reason for hiding this comment

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

Maybe set the architecture of folders for human-readables-abis to be like abis/ folder => one unique folder for each subfolder insteaf of a subfolder for each abi

@zguesmi zguesmi merged commit b277aa0 into main Nov 3, 2025
10 checks passed
@zguesmi zguesmi deleted the chore/remove-token-swap-facet branch November 3, 2025 13:29
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