Skip to content
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

[Snyk] Upgrade tronweb from 4.4.0 to 5.3.2 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OKEAMAH
Copy link
Owner

@OKEAMAH OKEAMAH commented Aug 2, 2024

snyk-top-banner

Snyk has created this PR to upgrade tronweb from 4.4.0 to 5.3.2.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 7 versions ahead of your current version.

  • The recommended version was released on 5 months ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Cross-site Request Forgery (CSRF)
SNYK-JS-AXIOS-6032459
167 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-AXIOS-6124857
167 Proof of Concept
Release notes
Package name: tronweb
  • 5.3.2 - 2024-02-22
    • Add custom block header argument for building transactions locally in transactionBuilder lib
    • Support TIP586 by trx.getBandwidthPrices and trx.getEnergyPrices
    • Support recover transaction signer address by trx.ecRecover
    • Support multi-dimension address array such as address[][] for ABI params encoding in triggerSmartContract and createSmartContract #433
    • Fix error when triggerSmartContract with error address due to the undefined callback #429
    • Bump axios from 0.26.1 to 1.6.2 #445
  • 5.3.1 - 2023-10-13
    • Fix getBlockRange() error for range of 1 (#398).
    • Add support for estimateenergy in TransactionBuilder#deployConstantContract() API.
  • 5.3.0 - 2023-07-11
    • Replace elliptic with ethereum-cryptography/secp256k1
    • Bump ethers to ^6.6.0
    • Optimize argument validation for createToken, updateToken and applyForSR
    • callValue can be 0 when the contract constructor is payable
    • Support shouldPollResponse to customize poll times (#368)
    • Support TIP541 by transactionBuilder.cancelUnfreezeBalanceV2
    • Support TIP542 by adding a parameter in transactionBuilder.delegateResource
    • Support estimate the energy used in contract deployment by transactionBuilder.deployConstantContract
  • 5.2.0 - 2023-05-17
    • Support build transactions locally with protobuf
    • Support multi-sign for setAccountId, updateBrokerage, clearABI, updateAccountPermissions function in transactionBuilder lib
  • 5.1.1 - 2023-07-05
  • 5.1.0 - 2023-01-31
    • Add freezeBalanceV2, unfreezeBalanceV2, delegateResource, undelegateResource and withdrawExpireUnfreeze function in transactiobBuiler lib to support stakeV2
    • Support tronWeb.transactionBuilder.estimateEnergy to estimate energy for triggersmartcontract transaction
    • Add getDelegatedResourceV2, getDelegatedResourceAccountIndexV2, getCanDelegatedMaxSize, getAvailableUnfreezeCount and getCanWithdrawUnfreezeAmount function to query account resource info
  • 5.0.0 - 2022-12-20
    • Add tronWeb.utils.transaction lib to serialize and deserialize transaction
    • Add tronWeb.utils.transaction.txJsonToPb function to convert transaction json to protobuf
    • Add tronWeb.utils.transaction.txPbToTxID function to get txID from transaction protobuf
    • Support new transaction builder createAccount
  • 4.4.0 - 2022-09-28
    • Support createRandom and fromMnemonic function
    • Add tronWeb.utils.message lib, which includes hashMessage, signMessage and verifyMessage
    • Add signMessageV2 and verifyMessageV2 in tronWeb.trx lib which can support plain text signature and verification
    • Add size filter for event watch
from tronweb GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade tronweb from 4.4.0 to 5.3.2.

See this package in npm:
tronweb

See this project in Snyk:
https://app.snyk.io/org/okeamah/project/f19e6dd2-5072-4177-b44c-a4c5e94555dc?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

changeset-bot bot commented Aug 2, 2024

⚠️ No Changeset found

Latest commit: feacf2f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

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.

2 participants