Skip to content

Conversation

gfournieriExec
Copy link
Contributor

No description provided.

Copy link
Contributor

@Copilot 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 pull request migrates the codebase to use a centralized storage library pattern by converting the Store abstract contract to a LibPocoStorage library. This modernizes the storage access pattern using libraries instead of inheritance.

  • Converts Store abstract contract to LibPocoStorage library
  • Updates all storage access calls to use the new library pattern
  • Removes unused ethers imports from test files
  • Fixes minor syntax issues with modifier parentheses

Reviewed Changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
contracts/libs/LibPocoStorage.v8.sol Converts abstract contract to library, fixes import path
contracts/libs/LibPocoStorage.sol Converts abstract contract to library, updates import paths
contracts/facets/*.sol Updates storage access to use library pattern instead of inheritance
contracts/registries/*.sol Removes unnecessary parentheses from modifier calls
test/*.ts Removes unused ethers imports

Copy link

codecov bot commented Jul 28, 2025

Codecov Report

❌ Patch coverage is 92.30769% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.66%. Comparing base (248e9ad) to head (fefd282).
⚠️ Report is 2 commits behind head on develop.

Files with missing lines Patch % Lines
contracts/facets/IexecEscrowTokenSwapFacet.sol 0.00% 4 Missing ⚠️
contracts/facets/IexecPocoAccessorsFacet.sol 0.00% 2 Missing ⚠️
contracts/facets/IexecEscrowNativeFacet.sol 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #243   +/-   ##
========================================
  Coverage    83.66%   83.66%           
========================================
  Files           38       38           
  Lines         1218     1218           
  Branches       227      227           
========================================
  Hits          1019     1019           
  Misses         199      199           

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

****************************************************************************/

abstract contract Store {
library LibPocoStorage {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
library LibPocoStorage {
library PocoStorageLib {

****************************************************************************/

abstract contract Store {
library LibPocoStorage {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
library LibPocoStorage {
library PocoStorageLib {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@Le-Caignec Le-Caignec left a comment

Choose a reason for hiding this comment

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

LGTM

@gfournieriExec gfournieriExec merged commit 4376b26 into develop Jul 28, 2025
4 checks passed
@gfournieriExec gfournieriExec deleted the feature/use-storage-lib branch July 28, 2025 16:05
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