chore: migrate @shardus/crypto-utils to lib-crypto-utils and ethers v5 to v6#58
Open
jairajdev wants to merge 1 commit into
Open
chore: migrate @shardus/crypto-utils to lib-crypto-utils and ethers v5 to v6#58jairajdev wants to merge 1 commit into
jairajdev wants to merge 1 commit into
Conversation
…5 to v6 - Replace @shardus/crypto-utils@4.1.6 with @shardus/lib-crypto-utils@4.3.3 (old package required node 18, incompatible with node 20) - ethers v5 → v6 and pm2 upgrade were pulled in via `npm audit fix --force` to resolve 29 vulnerabilities (2 critical, 6 high) in the dependency tree - Migrated all ethers v5 APIs to v6 across the codebase: - ethers.providers.JsonRpcProvider → ethers.JsonRpcProvider - ethers.utils.Interface → ethers.Interface - ethers.BigNumber → native bigint - ethers.utils.parseEther/keccak256/getAddress/etc → top-level ethers.* - ethers.utils.serializeTransaction → ethers.Transaction.from(...) - ethers.utils.recoverAddress → ethers.recoverAddress - ethers.Event → ethers.EventLog - provider.getBlockWithTransactions → provider.getBlock(n, true) - provider.getGasPrice → provider.getFeeData().gasPrice - provider.sendTransaction → provider.broadcastTransaction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
npm audit fix --forceto resolve 29 vulnerabilities (2 critical, 6 high) in the dependency tree