Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Remove redundant packages & update TypeScript to v5 #248

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

0xNeshi
Copy link
Contributor

@0xNeshi 0xNeshi commented Jul 31, 2023

Explanation of the solution

As the title says.

Reason to update to TS 5:
image
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 use ethers@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

  • run yarn or yarn install to install npm dependencies

@0xNeshi 0xNeshi added the enhancement New feature or request label Jul 31, 2023
@0xNeshi 0xNeshi self-assigned this Jul 31, 2023
package.json Show resolved Hide resolved
@@ -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",
Copy link
Contributor Author

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",
Copy link
Contributor Author

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",
Copy link
Contributor Author

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",
Copy link
Contributor Author

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",
Copy link
Contributor Author

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

Copy link
Contributor

@stevieraykatz stevieraykatz left a 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

@SovereignAndrey SovereignAndrey merged commit 1f7361b into master Aug 2, 2023
1 check passed
@SovereignAndrey SovereignAndrey deleted the ethers-v6 branch August 2, 2023 01:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants