-
Notifications
You must be signed in to change notification settings - Fork 0
Remove redundant packages & update TypeScript to v5 #248
Conversation
@@ -27,7 +26,6 @@ | |||
"@ethersproject/providers": "^5.6.6", | |||
"@nomicfoundation/hardhat-chai-matchers": "^1.0.5", | |||
"@nomicfoundation/hardhat-network-helpers": "^1.0.0", | |||
"@nomicfoundation/hardhat-toolbox": "^2.0.2", |
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.
We already import all the packages "contained" within this package, so it is redundant
"ts-node": "^10.9.1", | ||
"tsconfig-paths": "^4.2.0", | ||
"typechain": "^8.1.1", | ||
"typescript": "^4.9.4" | ||
}, | ||
"dependencies": { | ||
"@axelar-network/axelar-gmp-sdk-solidity": "^3.3.0", | ||
"@axelar-network/axelar-local-dev": "^1.4.4", |
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.
Wasn't used anywhere
@@ -58,27 +56,23 @@ | |||
"prettier": "^2.8.8", | |||
"prettier-plugin-solidity": "^1.1.3", | |||
"solidity-coverage": "^0.8.3", | |||
"ts-generator": "^0.1.1", |
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.
Wasn't used anywhere
"@chainlink/contracts": "^0.6.1", | ||
"@openzeppelin/contracts": "^4.8.3", | ||
"@openzeppelin/contracts-upgradeable": "^4.8.3", | ||
"@openzeppelin/hardhat-upgrades": "^1.23.1", | ||
"@uniswap/v3-core": "github:AngelProtocolFinance/uniswap-v3-core#fullmath-fix", | ||
"@uniswap/v3-periphery": "^1.4.3", | ||
"dotenv": "^16.0.3", | ||
"hardhat-interface-generator": "^0.0.6", |
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.
Wasn't used anywhere
"keccak256": "^1.0.6", | ||
"merkletreejs": "^0.3.9", | ||
"mockdate": "^3.0.5", | ||
"npm-check-updates": "^16.10.8", |
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.
Not sure about the benefits or why it was even added in the first place
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.
Waiting on reply from @SovereignAndrey
Explanation of the solution
As the title says.
Reason to update to TS 5:
See more at https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#speed-memory-and-package-size-optimizations
Attempted to update to
ethers@6
, but the following packages were causing problems as there seems to be no plans to update them to useethers@6
:On an unrelated note, about the
@uniswap/v3-core > FullMath.sol
unary operator issue, someone created a PR to fix this, but the Uniswap team seems to not pay attention to community PRs atm 😕Uniswap/v3-core#659
Instructions on making this work
yarn
oryarn install
to install npm dependencies