Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

web3-utils

Package Overview
Dependencies
Maintainers
2
Versions
494
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-utils - npm Package Versions

1
49

1.5.1-rc.0

Diff

spacesailor
published 1.5.0 •

Changelog

Source

[1.5.0]

Added

  • London transaction support (#4155)
  • RPC support eth_feehistory call (#4191)
  • Add toNumber method to web3.utils (#4191)

Changed

  • Grammar fix (#4088) and updated Swarm (#4151)and Whisper doc links (#4170)
  • Removed deprecation notice for HttpProvider (#4008)
  • Nonce added to send options in documentation and types (#4052)
  • Updated Solidity example to modern syntax (#4147)
  • Changing web3 connection example from lets to const (#3967)
  • Updated the documentation for the transaction object to include EIP-2718 and EIP-1559 options (#4188)
spacesailor
published 1.5.0-rc.1 •

spacesailor
published 1.5.0-rc.0 •

spacesailor
published 3.0.0-rc.5 •

spacesailor
published 1.4.0 •

Changelog

Source

[1.4.0]

Added

  • Berlin Transaction Support (#4083)
  • When signing a transaction, common object now defaults to berlin instead of petersburg

Changed

  • Changed Geth Docker verision from stable to 1.10.3 in e2e.geth.instamine.sh and scripts/e2e.geth.automine.sh (#4154)
spacesailor
published 1.4.0-rc.0 •

spacesailor
published 4.0.0-alpha.0 •

Changelog

Source

[4.0.0-alpha.0]

Note: Yarn is resolving to some old deprecated package versions for 4.0.0-alpha.0 instead of latest alpha versions. A patch bump is posted so yarn users should use 4.0.1-alpha.0 for testing.

Added

web3-errors
  • web3-errors new package is created, it has Web3 Error codes and classes
web3-types
  • web3-types new package is created, it provides the common data structures and interfaces for web3 modules
web3-validator
  • web3-validator new package is created, it has JSON-Schema compatible validator functionality for Web3

Removed

web3-bzz
  • This Package is deprecated
web3-shh
  • This Package is deprecated
web3-core-helpers
  • This Package is removed, errors are moved to web3-errors package and formatters are moved in web3-core package
web3-core-method
  • This Package is removed, and web3-core-method functionality is moved to web3-eth package
web3-core-promieevent
  • This Package is removed, and core promi events functionality is moved to web3-core package
web3-core-requestmanager
  • This Package is removed, batch requests and request manager functionality is moved to web3-core package
web3-core-subscription
  • This Package is removed, and core subscription functionality is moved to web3-core package

Changed

web3
  • Passing callbacks to functions is no longer supported, except for event listeners.
  • Method extend is deprecated
web3-core
  • The function outputBigNumberFormatter in web3-core-helper renamed to outputBigIntFormatter under web3-core
  • Removed this.defaultBlock context from inputDefaultBlockNumberFormatter in web3-core-helper and converted to additional parameter
  • Removed this.defaultBlock context from inputTransactionFormatter in web3-core-helper and converted to additional parameter
web3-utils
  • The following functions soliditySha3 soliditySha3Raw encodePacked now includes type validation and requires type specification, instead of guessing the value type
  • The functions soliditySha3, soliditySha3Raw and encodePacked did not support BN; But, now supports BigInt
  • The functions flattenTypes and jsonInterfaceMethodToString moved to the web3-eth-abi package
  • The function isAddress now includes an optional parameter checkChecksum type boolean
  • isBoolean now accept 1, and 0 as valid values to test. Ref: web3-validator
web3-eth-accounts
  • create function does not take in the optional parameter entropy
  • Wallet.create function doesn't accept entropy param
web3-validator
  • isBoolean now accept 1, and 0 as valid values to test.
web3-eth-contract
  • Event logs do not support types for indexed properties, but named properties are supported.
  • Types for overloaded ABI functions are not yet supported.
  • signTransaction will not fill any default values, and it will only sign and return result. For filling default values, use web3-eth package
  • recover function's last param is boolean hashed, it is used to indicate if data provided is already hashed or not. By default, this function will assume data is not hashed.
  • The Wallet no longer supports address/number indexing. Have to use wallet.get instead.
  • Wallet.create function doesn't accept entropy param
  • contract.method.send() will resolve to transaction receipt instead of transactionHash. User can use receipt.transactionHash instead.
web3-net
  • Package will not support web3.bzz.net and web3.shh.net
web3-eth-iban
  • IBAN constructor now has validation checks for indirect/direct iban.
  • isDirect, isValid, isIndirect are now also included as static methods.
web3-eth-ens
  • setMultihash is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver (https://github.com/ensdomains/resolvers/blob/master/contracts/PublicResolver.sol)
  • setContent is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver (https://github.com/ensdomains/resolvers/blob/master/contracts/PublicResolver.sol)
  • getContent is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver.
  • getMultihash is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver.
web3-eth-abi
  • internalType was renamed to baseType in all abi types
web3-eth
  • givenProvider default value is undefined
  • defaultHardfork default value is 'london'
  • defaultAccount default value is undefined
  • defaultNetworkId default value is undefined
  • When sending a transaction, if Ethereum Node does not respond within transactionSendTimeout, throw an Error.
web3-eth-subscribe
  • clearSubscriptions Instead of returning true , clearSubscriptions now returns array of subscription's ids
web3-eth-personal
  • givenProvider default value is undefined
  • currentProvider default value is undefined
spacesailor
published 4.0.0 •

Changelog

Source

[4.0.0-alpha.0]

Note: Yarn is resolving to some old deprecated package versions for 4.0.0-alpha.0 instead of latest alpha versions. A patch bump is posted so yarn users should use 4.0.1-alpha.0 for testing.

Added

web3-errors
  • web3-errors new package is created, it has Web3 Error codes and classes
web3-types
  • web3-types new package is created, it provides the common data structures and interfaces for web3 modules
web3-validator
  • web3-validator new package is created, it has JSON-Schema compatible validator functionality for Web3

Removed

web3-bzz
  • This Package is deprecated
web3-shh
  • This Package is deprecated
web3-core-helpers
  • This Package is removed, errors are moved to web3-errors package and formatters are moved in web3-core package
web3-core-method
  • This Package is removed, and web3-core-method functionality is moved to web3-eth package
web3-core-promieevent
  • This Package is removed, and core promi events functionality is moved to web3-core package
web3-core-requestmanager
  • This Package is removed, batch requests and request manager functionality is moved to web3-core package
web3-core-subscription
  • This Package is removed, and core subscription functionality is moved to web3-core package

Changed

web3
  • Passing callbacks to functions is no longer supported, except for event listeners.
  • Method extend is deprecated
web3-core
  • The function outputBigNumberFormatter in web3-core-helper renamed to outputBigIntFormatter under web3-core
  • Removed this.defaultBlock context from inputDefaultBlockNumberFormatter in web3-core-helper and converted to additional parameter
  • Removed this.defaultBlock context from inputTransactionFormatter in web3-core-helper and converted to additional parameter
web3-utils
  • The following functions soliditySha3 soliditySha3Raw encodePacked now includes type validation and requires type specification, instead of guessing the value type
  • The functions soliditySha3, soliditySha3Raw and encodePacked did not support BN; But, now supports BigInt
  • The functions flattenTypes and jsonInterfaceMethodToString moved to the web3-eth-abi package
  • The function isAddress now includes an optional parameter checkChecksum type boolean
  • isBoolean now accept 1, and 0 as valid values to test. Ref: web3-validator
web3-eth-accounts
  • create function does not take in the optional parameter entropy
  • Wallet.create function doesn't accept entropy param
web3-validator
  • isBoolean now accept 1, and 0 as valid values to test.
web3-eth-contract
  • Event logs do not support types for indexed properties, but named properties are supported.
  • Types for overloaded ABI functions are not yet supported.
  • signTransaction will not fill any default values, and it will only sign and return result. For filling default values, use web3-eth package
  • recover function's last param is boolean hashed, it is used to indicate if data provided is already hashed or not. By default, this function will assume data is not hashed.
  • The Wallet no longer supports address/number indexing. Have to use wallet.get instead.
  • Wallet.create function doesn't accept entropy param
  • contract.method.send() will resolve to transaction receipt instead of transactionHash. User can use receipt.transactionHash instead.
web3-net
  • Package will not support web3.bzz.net and web3.shh.net
web3-eth-iban
  • IBAN constructor now has validation checks for indirect/direct iban.
  • isDirect, isValid, isIndirect are now also included as static methods.
web3-eth-ens
  • setMultihash is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver (https://github.com/ensdomains/resolvers/blob/master/contracts/PublicResolver.sol)
  • setContent is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver (https://github.com/ensdomains/resolvers/blob/master/contracts/PublicResolver.sol)
  • getContent is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver.
  • getMultihash is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver.
web3-eth-abi
  • internalType was renamed to baseType in all abi types
web3-eth
  • givenProvider default value is undefined
  • defaultHardfork default value is 'london'
  • defaultAccount default value is undefined
  • defaultNetworkId default value is undefined
  • When sending a transaction, if Ethereum Node does not respond within transactionSendTimeout, throw an Error.
web3-eth-subscribe
  • clearSubscriptions Instead of returning true , clearSubscriptions now returns array of subscription's ids
web3-eth-personal
  • givenProvider default value is undefined
  • currentProvider default value is undefined
spacesailor
published 1.3.6 •

Changelog

Source

[1.3.6]

Changes

  • Bump underscore package from 1.9.1 to 1.12.1 (#4051)
  • Bump @ensdomains/ens package from ^0.4.5 to ^0.6.0 (#4059)
  • Bump ethers package from ^5.0.18 to ^5.1.4 (#4059)

Removes

  • Accidental commit (yarn-error.log) (#4062)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc