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

Refactor dependencies to use latest versions and update CI workflows for safe-modules-allowance. #490

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

mmv08
Copy link
Member

@mmv08 mmv08 commented Aug 29, 2024

This PR:

  • Updates the dependencies to use the latest versions
  • Adds a CI job for Safe Allowance module
  • Fixes a interface name collision between ISafe used in tests and in the production code
  • For some reason the tests were not running due to TS complaints, I had to be more specific with the installed packages for pnpm in the Safe Allowance module

@mmv08 mmv08 requested a review from a team as a code owner August 29, 2024 11:29
@mmv08 mmv08 requested review from nlordell, akshay-ap and remedcu and removed request for a team August 29, 2024 11:29
Copy link
Collaborator

@nlordell nlordell left a comment

Choose a reason for hiding this comment

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

LGTM, but CI is failing.

.github/workflows/ci_allowance.yml Outdated Show resolved Hide resolved
modules/4337/certora/requirements.txt Outdated Show resolved Hide resolved
modules/allowances/package.json Outdated Show resolved Hide resolved
"author": "[email protected]",
"license": "ISC",
"author": "safe-global",
"license": "GPL-3.0",
Copy link
Member

Choose a reason for hiding this comment

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

FYI: GPL-3.0 is deprecated. https://spdx.org/licenses/GPL-3.0.html

Copy link
Member Author

Choose a reason for hiding this comment

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

This is the one we use in the other files, I'd raise this with legal. It says the identifier has been deprecated but not the license. We need a translation from legalese

Copy link
Member Author

Choose a reason for hiding this comment

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

I changed it to GPL because this is the one we use in other files. I see it's deprecated and asked in Slack which one we should use.

Let's address this later in a different PR (I can also revert the change until we get more clarity)

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the one we use in the other files, I'd raise this with legal. It says the identifier has been deprecated but not the license. We need a translation from legalese

The non-deprecated identifier is GPL-3.0-only.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Basically, the GPL-3.0 identifier was ambiguous because GPL has a "license update clause" (meaning that if they come up with a GPL-4, then all GPL-3 code will also be licensed under v4). In SPDX, this was represented by GPL-3.0-or-later. GPL-3.0 changed to GPL-3.0-only to avoid confusion (as it is the GPL license opting out of the "license update clause").

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looking at the contract code, this should be LGPL-3.0-only (see the SPDX identifier used in the Solidity code).

…ctories.

* Remove unnecessary directory references in Safe4337Module.conf
* Update package paths in SignatureLengthCheck.conf, TransactionExecutionMethods.conf and ValidationDataLastBitOne.conf
* Refactor checkSignatures function in Account.sol to be viewless
@@ -15,9 +15,10 @@
],
"rule_sanity": "basic",
"solc": "solc8.23",
"solc_allow_path":"../../node_modules",
Copy link
Member Author

Choose a reason for hiding this comment

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

Previously there was a bug with solc's allow path option and certora-cli, now it's fixed we can use it and get rid of the crazy direct links

"@account-abstraction=../../node_modules/.pnpm/@[email protected]/node_modules/@account-abstraction",
"@safe-global=../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected]_/node_modules/@safe-global"
"@account-abstraction=node_modules/@account-abstraction",
"@safe-global=node_modules/@safe-global"
Copy link
Collaborator

@nlordell nlordell Aug 29, 2024

Choose a reason for hiding this comment

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

🎉

@coveralls
Copy link

coveralls commented Aug 30, 2024

Pull Request Test Coverage Report for Build 11324077193

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 11323190278: 0.0%
Covered Lines: 92
Relevant Lines: 92

💛 - Coveralls

@mmv08 mmv08 requested a review from nlordell August 30, 2024 10:36
@mmv08
Copy link
Member Author

mmv08 commented Aug 30, 2024

I updated the licenses everywhere to be LGPL-3.0 only, except the recovery module, because I wasn't sure if we could change the license since it's a distribution of another project.

@mmv08 mmv08 force-pushed the deps/bump branch 6 times, most recently from a71cbef to fbc6511 Compare September 30, 2024 12:10
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.

5 participants