Skip to content
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

feat: Introduce Modules V2 with more flexibility #562

Merged
merged 1 commit into from
Apr 20, 2024
Merged

Conversation

alainncls
Copy link
Collaborator

@alainncls alainncls commented Mar 11, 2024

What does this PR do?

Introduces a "Modules V2" feature, for more flexibility and more use cases

  • Gas cost for the integration test IssuersPortal V1 = 694065
  • Gas cost for the integration test IssuersPortal V2 = 694780
    => Increased by 0.1% (715 gas)

Related ticket

Fixes #574

Type of change

  • Chore
  • Bug fix
  • New feature
  • Documentation update

Check list

  • Unit tests for any smart contract change
  • Contracts and functions are documented

@alainncls alainncls self-assigned this Mar 11, 2024
@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 95.14563% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 93.98%. Comparing base (bf677f4) to head (d8eea55).

Files Patch % Lines
contracts/src/abstracts/AbstractPortal.sol 50.00% 3 Missing ⚠️
contracts/src/stdlib/ERC1271ModuleV2.sol 77.77% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #562      +/-   ##
==========================================
+ Coverage   93.63%   93.98%   +0.34%     
==========================================
  Files          20       30      +10     
  Lines         330      432     +102     
  Branches       76       98      +22     
==========================================
+ Hits          309      406      +97     
- Misses         10       15       +5     
  Partials       11       11              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@leifdejong leifdejong left a comment

Choose a reason for hiding this comment

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

Awesome work @alainncls! This would unblock a lot of the use cases we have been exploring. Thank you for your efforts. I would like to suggest you also update the ECDSAModule.sol replacing msg.sender with portal. That's a really useful one.

contracts/src/ModuleRegistry.sol Show resolved Hide resolved
contracts/src/abstracts/AbstractPortal.sol Outdated Show resolved Hide resolved
@alainncls alainncls force-pushed the feat/modules-v2 branch 5 times, most recently from 78d100f to 723a9f3 Compare March 18, 2024 22:38
@alainncls alainncls force-pushed the dev branch 4 times, most recently from 581c2b6 to f607329 Compare March 23, 2024 10:27
Copy link

netlify bot commented Apr 8, 2024

Deploy Preview for verax-tutorial ready!

Name Link
🔨 Latest commit d8eea55
🔍 Latest deploy log https://app.netlify.com/sites/verax-tutorial/deploys/66150012d244b30008514446
😎 Deploy Preview https://deploy-preview-562--verax-tutorial.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@alainncls alainncls marked this pull request as ready for review April 8, 2024 21:57
@alainncls alainncls requested a review from leifdejong April 9, 2024 08:32
@alainncls alainncls merged commit 70a641d into dev Apr 20, 2024
13 checks passed
@alainncls alainncls deleted the feat/modules-v2 branch April 20, 2024 15:59
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.

[US] As a developer, I want to have a new version of the Modules system
4 participants