Skip to content

Solarity 3.0 #131

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

Merged
merged 7 commits into from
Feb 24, 2025
Merged

Solarity 3.0 #131

merged 7 commits into from
Feb 24, 2025

Conversation

Arvolear
Copy link
Member

Migrating to OpenZeppelin 5.2.

aritkulova and others added 5 commits December 3, 2024 14:03
* updated dependencies

* specified initialOwner for __Ownable_init function

* MathUpgradeable lib -> Math lib

* created mock contract for ERC721Holder

* updated test's error handlers to catch custom errors

* fixed typo in test

* Added custom TransparentUpgradeableProxy contract

* Removed isContract()

* Fixed typo

* Cleaned up dependencies

* Dropped tests for isContract() check in Diamond

* Removed unnecessary dependency

* Added solhint command to scripts

* Renamed TransparentUpgradeableProxy to avoid collisions

* Updated dependencies

* Fixed package-lock

* Switched to custom errors in contracts (#113)

* Switched to custom errors in contracts

* Review fixes:
removed prefixes;
removed redundant comments;
refactored namings;
added args to errors.

* require -> revert in vectorMock

* Remover unused imports

* Review: removed zero args;
added useful args.

* Ordering errors in alphabetical order

* Splited Traversal into separate file

* review fixes;
linting;
errors are located at the top of file.

* switched to own custom error instead of erc20 in DiamondERC20

* Explicitly marked visibility of state in mock contract

* Fixed typo

* Typo InvalidMaxDepth -> MaxDepthIsZero

* switched to revertedWithCustomError in tests

* Switched to custom error in RawReturnMock

* Added testcase for _checkOnERC721Received. Coverage is 100%

* Cleanup:
ZERO_ADDR -> ZeroAddress from ethers;
ordered imports in tests.

* Specified import

* Replaced ZERO_BYTES32 with ethers.ZeroHash

* Replaced ZERO_ADDRESS with ethers.ZeroAddress

* Updated .solhint config. Resolved solhint warnings

---------

Co-authored-by: Kyryl Riabov <kyryl.ryabov@gmail.com>

* Added missed .withArgs() to error handlers

* Updated .solhint config

* Updated versions

* updated openzeppelin to 5.1.0

* review fixes: linting

* renamed TransparentProxy to AdminableProxy

* moved IAdminableProxy to the interfaces;
moved VerifierHelper out of snarkjs dir.

* switched from staticcall to call through interface in AdminableProxyUpgrader

* updated dev dependencies

* downgraded types/chai and types/node

* renamed transparent dir to adminable

* placed Traversal lib into AvlTree file

* erc721:
- deleted `_beforeTokenTransfer` and `_afterTokenTransfer` hooks;
- added a new `_update` function for customizations

* erc20:
- deleted `_beforeTokenTransfer` and `_afterTokenTransfer` hooks;
- added a new `_update` function for customizations

* linting

* linting

---------

Co-authored-by: Kyryl Riabov <kyryl.ryabov@gmail.com>
* Crypto libs (#115)

* added ecdsa384 lib

* added rsassapss

* try fix ci

* fix callvalue

* Added tests covering the `verify` and `_isOnCurve` functions

* fix coverage

* split getModifiedSigOrPubKey into modifyLeft and modifyRight

* Added tests covering the RSASSAPSS lib

* switched to assert two unreachable conditions

* fixed typos in test

* removed unused functions in U384 lib

* added test for a U384.cmp function

* trying to fix test for cmp

* add brainpoolP384r1 test

---------

Co-authored-by: aritkulova <aritkulova.yuliia@gmail.com>

* updated crypto lib contracts:
- pragma solidity;
- solhint;
- custom errors

* updated missed pragma solidity

* fixed typo in README

---------

Co-authored-by: Artem Chystiakov <47551140+Arvolear@users.noreply.github.com>
- ecdsa256 contract (pragma solidity, solhint, custom errors);
- package lock
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.94%. Comparing base (6c2955d) to head (8b3a92c).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #131   +/-   ##
=======================================
  Coverage   99.94%   99.94%           
=======================================
  Files          56       57    +1     
  Lines        3380     3404   +24     
  Branches      386      459   +73     
=======================================
+ Hits         3378     3402   +24     
  Misses          2        2           

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

Copy link
Member Author

@Arvolear Arvolear left a comment

Choose a reason for hiding this comment

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

LFG!

@Arvolear Arvolear merged commit 70a5c0a into master Feb 24, 2025
4 checks passed
@Arvolear Arvolear deleted the dev branch February 24, 2025 18:42
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