Skip to content

Upgrade dependencies and minor clean up #580

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 10 commits into from
Nov 23, 2023
Merged

Conversation

jakeloo
Copy link
Member

@jakeloo jakeloo commented Nov 23, 2023

Clean up and keep our dependencies up-to-date. There are quite a number of unused files, will clean them up in a separate PR later.

Changes:

  • Upgrade OpenZeppelin to 4.9.3, it should NOT have any internal impact. We'll upgrade to 5.0 in a separate PR, since it requires quite a bit of breaking changes. This PR prepares for the v5.0 migration later.
  • Upgrade all the npm packages used for scripts to reduce the security alerts, should NOT have any impact on the contracts.
  • Drop TW prefix for libs because it is a bad practice as they hide the problems of duplicated definitions. This is to increase consistency in the project
  • Update AirdropClaimable contracts to rename confusing states name, remove redundant states, and fixed tests

Copy link

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
erc721a 3.3.0 None +1 2.09 MB chirulabs
keccak256 1.0.6 filesystem, environment +6 2.05 MB miguelmota
@thirdweb-dev/sdk 4.0.16 eval, network, environment +49 269 MB jnsdls
@thirdweb-dev/chains 0.1.58 network, environment +0 6.75 MB jnsdls
@chainlink/contracts 0.8.0 environment +6 8.18 MB secure.andrew
@thirdweb-dev/dynamic-contracts 1.2.4 None +0 59.6 MB krishang
@openzeppelin/contracts 4.9.3 None +0 2.05 MB frangio
@openzeppelin/contracts-upgradeable 4.9.3 None +0 2.11 MB frangio
@thirdweb-dev/contracts 3.10.3 None +0 77.2 MB krishang
eslint-config-prettier 8.5.0...8.10.0 None +31/-21 7.66 MB lydell
@types/mocha 9.1.0...9.1.1 None +0/-0 96.1 kB types
ts-node 10.7.0...10.9.1 None +12/-11 68.5 MB cspotcode
@typescript-eslint/eslint-plugin 5.19.0...5.62.0 None +44/-33 79.2 MB jameshenry
@typescript-eslint/parser 5.19.0...5.62.0 None +38/-29 76.1 MB jameshenry
tsup 5.12.5...5.12.9 None +63/-45 254 MB egoist
@typechain/ethers-v5 10.0.0...10.2.1 filesystem +7/-7 79.2 MB ethereum-ts-bot
solhint 3.3.7...3.6.2 None +24/-86 92.3 MB diego.bale.arg
typechain 8.0.0...8.3.2 None +6/-6 79.1 MB ethereum-ts-bot
fs-extra 10.0.1...10.1.0 None +2/-2 100 kB ryanzim
prettier-plugin-solidity 1.0.0-beta.19...1.2.0 eval +3/-4 24.3 MB janther
tslib 2.3.1...2.6.2 None +0/-0 84 kB typescript-bot
prettier 2.6.2...2.8.8 None +0/-0 11.2 MB prettier-bot
eslint 8.13.0...8.54.0 None +30/-20 7.64 MB eslintbot
dotenv 16.0.0...16.3.1 None +0/-0 71.6 kB motdotla
typescript 4.6.3...4.9.5 None +0/-0 66.8 MB typescript-bot

🚮 Removed packages: @types/node@17.0.23

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

Slither found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

Copy link

codecov bot commented Nov 23, 2023

Codecov Report

Attention: 58 lines in your changes are missing coverage. Please review.

Comparison is base (791e8df) 62.94% compared to head (f57297a) 63.87%.

Files Patch % Lines
contracts/lib/StringSet.sol 0.00% 27 Missing ⚠️
contracts/lib/Address.sol 0.00% 23 Missing ⚠️
contracts/lib/StorageSlot.sol 0.00% 4 Missing ⚠️
contracts/extension/Staking20.sol 0.00% 2 Missing ⚠️
contracts/extension/Multicall.sol 0.00% 1 Missing ⚠️
...acts/legacy-contracts/pre-builts/DropERC721_V3.sol 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #580      +/-   ##
==========================================
+ Coverage   62.94%   63.87%   +0.92%     
==========================================
  Files         215      215              
  Lines        6639     6627      -12     
==========================================
+ Hits         4179     4233      +54     
+ Misses       2460     2394      -66     

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

@jakeloo jakeloo merged commit ef6a072 into main Nov 23, 2023
@jakeloo jakeloo deleted the jl/upgrade-deps-cleanup branch November 23, 2023 16:38
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