-
Notifications
You must be signed in to change notification settings - Fork 14
feat: use storage lib #243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ed storage handling and access patterns across facets
…tBase and adjust LibPocoStorage access in related facets
There was a problem hiding this 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 toLibPocoStorage
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 |
Codecov Report❌ Patch coverage is 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. 🚀 New features to boost your workflow:
|
contracts/libs/LibPocoStorage.sol
Outdated
****************************************************************************/ | ||
|
||
abstract contract Store { | ||
library LibPocoStorage { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
library LibPocoStorage { | |
library PocoStorageLib { |
contracts/libs/LibPocoStorage.v8.sol
Outdated
****************************************************************************/ | ||
|
||
abstract contract Store { | ||
library LibPocoStorage { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
library LibPocoStorage { | |
library PocoStorageLib { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.